/* Bandeau d'actualité — sobre, en flux, pousse le contenu sans recouvrir l'en-tête. */
.ab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px clamp(16px, 4vw, 28px);
  background: var(--ink);
  color: var(--bg);
  border-bottom: 1px solid rgba(224, 168, 63, 0.35);
  font-size: 0.875rem;
}
.ab[hidden] { display: none; }

/* Variante « mise à jour » : même bandeau, accent plus sobre. */
.ab--update {
  background: #13253a;
  border-bottom-color: rgba(31, 122, 92, 0.55);
}
.ab--update .ab-kicker { color: #8fd3b8; }
.ab-note {
  color: rgba(246, 244, 239, 0.78);
  font-size: 0.82rem;
}

.ab-kicker {
  flex: none;
  color: var(--gold-bright);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.ab-msg { flex: 1; min-width: 0; color: var(--bg); }

/* Le titre est un lien inline dans le DOM : sans display: block,
   overflow/text-overflow sont ignorés et white-space: nowrap fait
   déborder le texte hors du bandeau (superposition avec la croix)
   au lieu de le tronquer proprement. */
.ab-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Soulignement classique : text-decoration suit le texte (et chaque
   ligne en cas de retour à la ligne), là où border-bottom traçait sous
   tout le bloc depuis le passage du titre en display: block. */
.ab-link {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: rgba(224, 168, 63, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ab-link:hover, .ab-link:focus-visible { text-decoration-color: var(--gold-bright); color: var(--gold-soft); }

.ab-btn {
  flex: none;
  background: none;
  border: 0;
  padding: 4px 6px;
  color: var(--gold-bright);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.ab-btn:hover, .ab-btn:focus-visible { border-bottom-color: var(--gold-bright); color: var(--gold-soft); }

.ab-btn.is-sub { text-transform: none; }

.ab-close {
  flex: none;
  background: none;
  border: 0;
  padding: 2px 6px;
  color: rgba(246, 244, 239, 0.65);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.ab-close:hover, .ab-close:focus-visible { color: var(--bg); }

/* Mobile : empilement en colonne — « NOUVEAU » puis le titre (qui
   revient à la ligne naturellement, sans chevauchement), puis les
   actions sur une rangée en bas, toujours accessibles. */
@media (max-width: 640px) {
  .ab { flex-wrap: wrap; gap: 10px 12px; }
  .ab-kicker { width: 100%; }
  .ab-msg { flex: 1 1 100%; }
  .ab-title { white-space: normal; overflow: visible; text-overflow: clip; }
  .ab-close { margin-left: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .ab { animation: ab-in 240ms ease-out; }
  @keyframes ab-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* ---------- Consentement notifications (PWA, premier lancement) ----------
   Fenêtre non refermable : pas de croix, pas de clic-fond, pas d'échap.
   Un vrai choix, oui ou non — c'est l'exigence posée par le site. */

.nm {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(14, 26, 43, 0.6);
}

.nm-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(14, 26, 43, 0.35);
}

.nm-kicker {
  margin: 0 0 8px;
  color: var(--gold-bright);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nm-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

/* Historique des mises à jour : liste déroulante, un seul Ok pour tout. */
.nm-list {
  max-height: 45vh;
  overflow-y: auto;
  margin: 0 0 16px;
  border-top: 1px solid var(--line-2);
  -webkit-overflow-scrolling: touch;
}

.nm-entry {
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-2);
}
.nm-entry:last-child { border-bottom: 0; }

.nm-date {
  margin: 0 0 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.nm-entry-title {
  margin: 0 0 3px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nm-entry-note {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.5;
}

.nm-text {
  margin: 0 0 16px;
  font-size: 0.925rem;
  line-height: 1.55;
}

.nm-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nm-btn {
  flex: 1 1 auto;
  border: 1px solid var(--line-2);
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
}
.nm-btn:hover, .nm-btn:focus-visible { border-color: var(--gold-bright); }

.nm-btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.nm-btn--primary:hover, .nm-btn--primary:focus-visible { background: var(--ink-2); }
