/* Barre globale */
.ammoi-info-bar{
  --bar-bg: #ff0000;
  --bar-color:#ffffff;
  background: var(--bar-bg);
  color: var(--bar-color);
  font-family: 'Lato', sans-serif;
  padding: 6px 15px;
  font-size: 18px;
  line-height: 30px;
  margin-bottom: 30px;
  border-radius: 10px;
}

.ammoi-info-inner{
  max-width: 1180px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  gap:24px;
}

/* Label INFO */
.ammoi-info-label{
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 3px 10px;
  font-size: 20px;
  line-height: 30px;
  align-items: center;         /* <-- s’assure que le texte du label est centré aussi */
  height: 100%;                /* pour un alignement parfait si besoin */
}

/* Conteneur du texte qui défile */
.ammoi-info-slider{
  position: relative;
  flex: 1;
  overflow: hidden;              /* IMPORTANT : pour que ça ‘clipse’ le contenu pendant l’anim */
  display: block;
  align-items: center;
  height: auto;                  /* sera ensuite fixé en JS */
  transition: height .35s ease;  /* l’effet d’agrandissement/réduction */
}


/* Items : par défaut, invisibles et hors du flux */
.ammoi-info-item{
  position:absolute;
  top:0;
  left:0;
  width:100%;

  display:block;

  white-space:normal;   
  opacity:0;
  transform:translateX(16px);
  transition:opacity .35s ease, transform .35s ease;
  pointer-events:none;
}

/* Seul l’item actif est dans le flux + visible */
.ammoi-info-item.is-active{
  position:static;        /* entre dans le flux → le bloc prend sa hauteur */
  opacity:1;
  transform:translateX(0);
  pointer-events:auto;
}

/* Version mobile */
@media (max-width:785px){
  .ammoi-info-inner{
    flex-direction: row;          /* On garde le label à gauche */
    gap: 10px;
    padding: 0 10px;
  }

  .ammoi-info-bar{
    font-size:15px;
  }

  .ammoi-info-label{
    flex-shrink: 0;               /* Le label garde sa largeur */
    white-space: normal;          /* Il reste sur une seule ligne */
  }

  .ammoi-info-slider{
    flex: 1;                      /* Le texte utilise tout l’espace */
    overflow: visible;            /* Permet au texte long de prendre de la place */
    min-height: auto;
  }

  .ammoi-info-item{
    white-space: normal;          /* Retour à la ligne */
    padding: 4px 0;
  }

  
}
