/* NCA Annonce : fenêtre d'annonce commune (thème néon NCA Chroma, avec valeurs de secours). */
dialog.nca-annonce {
  --nca-a-cyan: var(--nca-neon-left, #22e4ff);
  --nca-a-magenta: var(--nca-neon-right, #ff2bd6);
  --nca-a-orange: var(--nca-neon-top, #ff8a3d);
  --nca-a-fond: #1a0f2e;
  --nca-a-fond-bas: #0c0617;
  --nca-a-texte: #f2ecff;
  --nca-a-doux: #b3a6d4;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px 28px 22px;
  border: 1px solid color-mix(in srgb, var(--nca-a-cyan) 55%, transparent);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--nca-a-fond), var(--nca-a-fond-bas));
  color: var(--nca-a-texte);
  font: 400 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  text-align: left;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 0 32px color-mix(in srgb, var(--nca-a-cyan) 35%, transparent), 0 0 64px color-mix(in srgb, var(--nca-a-magenta) 22%, transparent), 0 24px 60px rgba(0, 0, 0, .55);
  z-index: 2147483000;
  animation: nca-annonce-entree .35s cubic-bezier(.16, 1, .3, 1);
}
dialog.nca-annonce:not([open]) { display: none; }
dialog.nca-annonce::backdrop { background: rgba(6, 3, 14, .62); backdrop-filter: blur(3px); }
dialog.nca-annonce.nca-annonce--sans-dialog { display: block; }
dialog.nca-annonce *, dialog.nca-annonce *::before, dialog.nca-annonce *::after { box-sizing: border-box; }
dialog.nca-annonce::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--nca-a-cyan), var(--nca-a-magenta), var(--nca-a-orange));
}
.nca-annonce__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--nca-a-texte);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.nca-annonce__x:hover { background: rgba(255, 255, 255, .16); }
.nca-annonce__pastille {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 12px;
  border: 1px solid color-mix(in srgb, var(--nca-a-magenta) 60%, transparent);
  border-radius: 999px;
  color: var(--nca-a-magenta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nca-annonce__titre {
  margin: 0 40px 16px 0;
  color: var(--nca-a-texte);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 18px color-mix(in srgb, var(--nca-a-cyan) 55%, transparent);
}
.nca-annonce__liste { margin: 0 0 18px; padding: 0; list-style: none; }
.nca-annonce__point {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nca-annonce__point:last-child { border-bottom: 0; }
.nca-annonce__icone { flex: none; width: 26px; font-size: 19px; text-align: center; }
.nca-annonce__libelle { flex: 1; }
.nca-annonce__badge {
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--nca-a-cyan) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--nca-a-cyan) 60%, transparent);
  color: var(--nca-a-cyan);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nca-annonce__slogan {
  margin: 0 0 4px;
  color: var(--nca-a-orange);
  font-size: 18px;
  font-weight: 800;
}
.nca-annonce__texte { margin: 0 0 6px; color: var(--nca-a-texte); }
.nca-annonce__signature { margin: 0 0 18px; color: var(--nca-a-doux); font-style: italic; }
.nca-annonce__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.nca-annonce__bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: var(--nca-a-texte);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.nca-annonce__bouton:hover { background: rgba(255, 255, 255, .14); }
.nca-annonce__bouton--plein {
  border-color: transparent;
  background: linear-gradient(90deg, var(--nca-a-cyan), var(--nca-a-magenta));
  color: #120a20;
}
.nca-annonce__bouton--plein:hover { filter: brightness(1.1); background: linear-gradient(90deg, var(--nca-a-cyan), var(--nca-a-magenta)); }
dialog.nca-annonce :focus-visible { outline: 3px solid #dcc67d; outline-offset: 2px; }
@keyframes nca-annonce-entree { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  dialog.nca-annonce { padding: 24px 18px 18px; }
  .nca-annonce__titre { font-size: 20px; }
  .nca-annonce__actions { justify-content: stretch; }
  .nca-annonce__bouton { flex: 1 1 auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { dialog.nca-annonce { animation: none; } }
@media (forced-colors: active) {
  dialog.nca-annonce { border: 2px solid CanvasText; background: Canvas; color: CanvasText; box-shadow: none; }
  dialog.nca-annonce::before { display: none; }
  .nca-annonce__titre { text-shadow: none; }
}
@media print { dialog.nca-annonce { display: none !important; } }

/* Version sans script (sites dont la CSP interdit tout JavaScript) : bouton en bas à droite qui déplie l'annonce. */
.nca-annonce-bandeau {
  --nca-a-cyan: var(--nca-neon-left, #22e4ff);
  --nca-a-magenta: var(--nca-neon-right, #ff2bd6);
  --nca-a-orange: var(--nca-neon-top, #ff8a3d);
  --nca-a-fond: #1a0f2e;
  --nca-a-fond-bas: #0c0617;
  --nca-a-texte: #f2ecff;
  --nca-a-doux: #b3a6d4;
  box-sizing: border-box;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  max-width: calc(100vw - 32px);
  border: 1px solid color-mix(in srgb, var(--nca-a-cyan) 55%, transparent);
  border-radius: 999px;
  background: linear-gradient(160deg, var(--nca-a-fond), var(--nca-a-fond-bas));
  color: var(--nca-a-texte);
  font: 400 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  text-align: left;
  box-shadow: 0 0 24px color-mix(in srgb, var(--nca-a-cyan) 35%, transparent), 0 12px 32px rgba(0, 0, 0, .45);
}
.nca-annonce-bandeau *, .nca-annonce-bandeau *::before, .nca-annonce-bandeau *::after { box-sizing: border-box; }
.nca-annonce-bandeau[open] { width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border-radius: 20px; }
.nca-annonce-bandeau > summary { display: block; padding: 10px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.nca-annonce-bandeau > summary::-webkit-details-marker { display: none; }
.nca-annonce-bandeau[open] > summary { padding: 14px 20px 6px; color: var(--nca-a-magenta); }
.nca-annonce-bandeau[open] > summary::after { content: "\2715"; float: right; margin-left: 12px; color: var(--nca-a-texte); }
.nca-annonce-bandeau__corps { padding: 0 20px 18px; }
.nca-annonce-bandeau .nca-annonce__titre { margin: 0 0 10px; font-size: 20px; }
.nca-annonce-bandeau .nca-annonce__signature { margin-bottom: 14px; }
.nca-annonce-bandeau > summary:focus-visible, .nca-annonce-bandeau a:focus-visible { outline: 3px solid #dcc67d; outline-offset: 2px; }
@media (forced-colors: active) { .nca-annonce-bandeau { border: 2px solid CanvasText; background: Canvas; color: CanvasText; box-shadow: none; } }
@media print { .nca-annonce-bandeau { display: none !important; } }
