/* ── Announcement Banner ────────────────────────────────────────── */
/* Bandeau d'informations discret, raffiné et chaleureux : sert de
   transition premium entre le header blanc et le corps crème du site.
   Hauteur, structure et contenu inchangés — travail purement esthétique. */

.ann-banner {
  display: block;
  width: 100%;
  /* Ivoire chaud (et non blanc froid) : intègre le bandeau à la toile
     naturelle du site plutôt qu'à une barre utilitaire. */
  background:
    linear-gradient(to bottom, #fdfbf6 0%, #faf6ee 100%);
  /* Filet chaud + léger relief interne = profondeur douce, pas de trait dur. */
  border-bottom: 1px solid rgba(74, 56, 33, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 1px 0 rgba(74, 56, 33, 0.035);
  font-family:
    "Montserrat",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  opacity: 0;
  animation: ann-banner-in 0.35s ease forwards;
}

@keyframes ann-banner-in {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ann-banner {
    animation: none;
    opacity: 1;
  }
}

/* ── Structure ──────────────────────────────────────────────────── */

.ann-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 max(20px, 2.5vw);
  height: 44px;
  gap: 16px;
  overflow: hidden;
}

.ann-banner__track {
  display: grid;
  align-items: center;
  height: 44px;
  min-width: 0;
  max-width: 100%;
}

.ann-banner__item {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.ann-banner__item.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ann-banner__item.is-leaving {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .ann-banner__item {
    transition: none;
  }
}

/* ── Label ──────────────────────────────────────────────────────── */

.ann-banner__label {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #00857a;
  white-space: nowrap;
  flex-shrink: 0;
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Pastille d'accent : petit signal chaleureux qui ancre la composition. */
.ann-banner__label::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 0.6em;
  border-radius: 50%;
  background: #009c8e;
  box-shadow: 0 0 0 3px rgba(0, 156, 142, 0.12);
  flex-shrink: 0;
}

/* ── Message ────────────────────────────────────────────────────── */

.ann-banner__message {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #33302b; /* encre tiède, pas noir froid */
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Séparateur ─────────────────────────────────────────────────── */
/* Filet vertical dégradé (le point médian du markup est masqué) :
   rythme éditorial raffiné, à la place du « · » utilitaire. */

.ann-banner__sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 clamp(9px, 1.1vw, 15px);
  padding: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(74, 56, 33, 0.18) 50%,
    transparent
  );
  font-size: 0;
  line-height: 0;
  color: transparent;
  flex-shrink: 0;
  user-select: none;
}

/* ── Détail ─────────────────────────────────────────────────────── */

.ann-banner__detail {
  font-size: 0.8125rem;
  color: #7c756a; /* gris tiède */
  font-weight: 400;
  letter-spacing: 0.005em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── CTA ────────────────────────────────────────────────────────── */

.ann-banner__cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #00857a;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.ann-banner__cta::after {
  content: "\00A0›";
  font-size: 1.05em;
  font-weight: 400;
  display: inline-block;
  transition: transform 0.18s ease;
}

.ann-banner__cta:hover {
  color: #006a61;
  text-decoration: none;
}

.ann-banner__cta:hover::after {
  transform: translateX(3px);
}

.ann-banner__cta svg {
  display: none;
}

/* ── Dots ───────────────────────────────────────────────────────── */
/* Indicateur de progression raffiné : la puce active s'allonge en
   pilule (au lieu d'un point grossi), teintes réchauffées. */

.ann-banner__dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 2px;
}

.ann-banner__dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(74, 56, 33, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.25s ease,
    width 0.25s ease;
  flex-shrink: 0;
  position: relative;
}

.ann-banner__dot::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.ann-banner__dot.is-active {
  width: 16px;
  background: #009c8e;
}

.ann-banner__dot:hover:not(.is-active) {
  background: rgba(74, 56, 33, 0.4);
}

/* ── Live region (accessible, invisible) ───────────────────────── */

.ann-banner__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Mobile ─────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .ann-banner__inner {
    height: auto;
    min-height: 44px;
    padding: 0 16px;
    gap: 10px;
  }

  .ann-banner__track {
    height: auto;
    min-height: 44px;
  }

  .ann-banner__item {
    height: auto;
    min-height: 44px;
    flex-wrap: wrap;
    padding: 10px 0;
    justify-content: center;
    gap: 0;
    overflow: visible;
  }

  .ann-banner__message {
    font-size: 0.75rem;
    white-space: normal;
    text-align: center;
    overflow: visible;
    text-overflow: clip;
  }

  .ann-banner__detail {
    display: none;
  }

  .ann-banner__label {
    font-size: 0.5625rem;
  }

  .ann-banner__label::before {
    width: 4px;
    height: 4px;
    margin-right: 0.5em;
  }

  /* Filet un peu plus court en usage compact. */
  .ann-banner__sep {
    height: 10px;
    margin: 0 10px;
  }
}
