/* =====================================================================
   Concours de Noël 2026 — « La nuit des lumières » (maquette de direction artistique)
   Identité N4CC : Fraunces + DM Sans + DM Mono, bleu nuit #0A2540. Palette de l'affiche :
   crépuscule (bleu nuit → prune → orangé), blanc chaud, or, rouge en touche (ruban).
   ===================================================================== */
:root {
  --nuit-0: #050F1F; --nuit: #0A2540; --nuit-2: #12355A; --prune: #3A2A55; --braise: #E8894A;
  --blanc: #FFF6E4; --blanc-2: rgba(255, 246, 228, .74); --blanc-3: rgba(255, 246, 228, .16);
  --or: #F0C56E; --or-2: #D9A441; --ambre: #FFB45C; --rouge: #C4313B; --rouge-2: #9E1F2B;
  --papier: #FBF8F1; --encre: #0A2540; --encre-2: #33445C;
  --f-display: 'Fraunces', Georgia, serif; --f-body: 'DM Sans', system-ui, sans-serif;
  --f-data: 'DM Mono', ui-monospace, monospace; --f-hand: 'Caveat', cursive;
  --wrap: 1180px; --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.12, .9, .18, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit-0); color: var(--blanc); font: 400 1.0625rem/1.6 var(--f-body); overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
sup { font-size: .6em; line-height: 0; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }
.nx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nx-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--or); color: var(--nuit); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.nx-skip:focus { top: 12px; }

/* ---------- En-tête ---------- */
.nx-top { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gut); }
.nx-brand { font: 700 1.15rem/1 var(--f-body); text-decoration: none; letter-spacing: -.01em; }
.nx-brand b { color: var(--ambre); }
.nx-back { font-size: .875rem; text-decoration: none; padding: 10px 16px; border: 1px solid var(--blanc-3); border-radius: 999px; background: rgba(5, 15, 31, .35); backdrop-filter: blur(8px); }
.nx-back:hover { border-color: var(--or); }

/* ---------- Héro ---------- */
.nx-hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: clamp(84px, 12svh, 120px) var(--gut) clamp(130px, 21svh, 200px); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #050F1F 0%, #0A2540 38%, #2B2B5C 62%, #6B3F63 78%, #C9703F 92%, #F0A04E 100%); }
.nx-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.nx-glow { position: absolute; left: 50%; bottom: -30%; width: 140vmax; height: 70vmax; translate: -50% 0; z-index: -2; background: radial-gradient(closest-side, rgba(255, 180, 92, .38), transparent 70%); }
.nx-garland { position: absolute; inset: 0 0 auto; width: 100%; height: clamp(90px, 14vw, 170px); z-index: 1; overflow: visible; pointer-events: none; }
.nx-garland path { fill: none; stroke: rgba(255, 246, 228, .28); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.nx-b { fill: #5a4a3a; transition: fill .5s, filter .5s; }
.nx-b.on { fill: var(--c, var(--ambre)); filter: drop-shadow(0 0 6px var(--c, var(--ambre))) drop-shadow(0 0 16px var(--c, var(--ambre))); }
.nx-b.on.tw { animation: nx-tw 3.6s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes nx-tw { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.nx-hero__in { width: 100%; max-width: var(--wrap); margin-inline: auto; text-align: center; position: relative; z-index: 2; }
.nx-eyebrow { font: 700 .8125rem/1.2 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--or); display: flex; align-items: center; gap: 10px; }
.nx-hero .nx-eyebrow { justify-content: center; margin-bottom: clamp(14px, 2.4vw, 26px); }
.nx-eyebrow--ink { color: #A0621A; }
h1 { font: 700 clamp(2.7rem, min(10.4vw, 11svh), 8.4rem)/.94 var(--f-display); letter-spacing: -.035em; font-variation-settings: 'opsz' 144; }
h1 .l { display: block; overflow: hidden; padding-block: .06em; margin-block: -.02em; }
h1 .l > span { display: inline-block; }
.nx-js h1 .l > span { transform: translateY(112%); }
h1 em { font-style: italic; font-weight: 800; background: linear-gradient(100deg, #FFE7A8, var(--or) 45%, var(--or-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
h1 .yr { font-style: normal; font-weight: 500; color: transparent; -webkit-text-stroke: 1.5px var(--blanc-2); letter-spacing: -.02em; }
.nx-ribbon { margin: clamp(18px, 3vw, 30px) auto 0; width: fit-content; rotate: -2deg; }
.nx-ribbon span { display: block; font: 700 clamp(1.35rem, 3vw, 1.9rem)/1 var(--f-hand); color: #fff; padding: .42em 1.5em .5em; background: linear-gradient(180deg, var(--rouge), var(--rouge-2));
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6); }
.nx-lede { max-width: 34em; margin: clamp(18px, 3vw, 28px) auto 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--blanc); text-wrap: balance; text-shadow: 0 1px 14px rgba(5, 15, 31, .7); }

.nx-act { margin-top: clamp(20px, 3svh, 34px); display: grid; justify-items: center; gap: clamp(18px, 3vw, 40px); }
@media (min-width: 820px) { .nx-act { display: flex; justify-content: center; align-items: flex-end; } .nx-act .nx-cta { margin-bottom: 19px; } }
.nx-count__label { font: 500 .8125rem/1 var(--f-data); letter-spacing: .14em; text-transform: uppercase; color: var(--blanc-2); margin-bottom: 12px; }
.nx-count__row { display: inline-flex; gap: clamp(8px, 2vw, 20px); }
.nx-unit { display: grid; gap: 8px; justify-items: center; }
.nx-unit small { font: 500 .6875rem/1 var(--f-data); letter-spacing: .12em; text-transform: uppercase; color: var(--blanc-2); }
.nx-tiles { display: inline-flex; gap: 3px; }
.nx-tile { width: clamp(30px, 7.4vw, 54px); height: clamp(44px, 10.5vw, 76px); display: grid; place-items: center; border-radius: 8px; position: relative; overflow: hidden;
  font: 500 clamp(1.5rem, 5.6vw, 2.75rem)/1 var(--f-data); color: var(--blanc); background: linear-gradient(180deg, rgba(5, 15, 31, .78), rgba(5, 15, 31, .58)); border: 1px solid var(--blanc-3); backdrop-filter: blur(6px); }
.nx-tile::after { content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: rgba(5, 15, 31, .9); }
.nx-tile.flip > b { animation: nx-flip .42s var(--ease); }
.nx-tile > b { font-weight: 500; }
@keyframes nx-flip { from { transform: translateY(-60%); opacity: 0; } }
[data-phase="resultats"] .nx-count { display: none; }

.nx-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border: 0; cursor: pointer;
  font: 700 1.0625rem/1 var(--f-body); color: var(--nuit); text-decoration: none; border-radius: 999px; background: linear-gradient(135deg, #FFE7A8, var(--or) 50%, var(--or-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 14px 36px -12px rgba(240, 197, 110, .7); transition: box-shadow .25s, translate .25s var(--ease); }
.nx-cta:hover { translate: 0 -2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 20px 44px -12px rgba(240, 197, 110, .9); }
.nx-cta--full { width: 100%; margin-top: 14px; }
.nx-horizon { position: absolute; inset: auto 0 0; width: 100%; height: clamp(120px, 20vw, 220px); z-index: 0; }

/* ---------- Sections ---------- */
.nx-sec { max-width: var(--wrap); margin-inline: auto; padding: clamp(64px, 10vw, 130px) var(--gut); }
.nx-head { max-width: 46rem; margin-bottom: clamp(30px, 5vw, 60px); }
.nx-head .nx-eyebrow { margin-bottom: 16px; }
h2 { font: 700 clamp(2rem, 5.2vw, 3.9rem)/1.02 var(--f-display); letter-spacing: -.025em; text-wrap: balance; }
h2 em { font-style: italic; color: var(--or); }
.nx-sub { margin-top: 16px; color: var(--blanc-2); max-width: 36em; }
.nx-bulb { width: 10px; height: 10px; border-radius: 50%; background: #5a4a3a; flex: none; transition: background .6s, box-shadow .6s; }
.is-lit .nx-bulb, .nx-bulb.on { background: var(--ambre); box-shadow: 0 0 10px var(--ambre), 0 0 26px rgba(255, 180, 92, .7); }
[data-show] { display: none; }
[data-phase="avant"] [data-show~="avant"], [data-phase="resultats"] [data-show~="resultats"] { display: block; }

/* ---------- Calendrier ---------- */
.nx-steps { display: grid; gap: 0; position: relative; }
.nx-steps li { position: relative; padding: 0 0 34px 44px; }
.nx-steps li::before { content: ''; position: absolute; left: 10px; top: 14px; bottom: -14px; width: 1px; background: var(--blanc-3); }
.nx-steps li:last-child::before { display: none; }
.nx-lamp { position: absolute; left: 0; top: 4px; width: 21px; height: 21px; border-radius: 50%; background: #3b3340; border: 1px solid var(--blanc-3); transition: background .6s, box-shadow .6s; }
.nx-steps li.is-on .nx-lamp { background: var(--ambre); box-shadow: 0 0 14px var(--ambre), 0 0 40px rgba(255, 180, 92, .65); }
.nx-steps li.is-past .nx-lamp { background: var(--or-2); }
.nx-date { font: 500 .8125rem/1 var(--f-data); letter-spacing: .1em; text-transform: uppercase; color: var(--or); }
.nx-steps h3 { font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--f-display); margin: 10px 0 8px; }
.nx-steps li > p:last-child { color: var(--blanc-2); max-width: 26em; }
.nx-steps li.is-on h3::after { content: 'en ce moment'; font: 700 1.15rem/1 var(--f-hand); color: var(--ambre); margin-left: 12px; white-space: nowrap; }
@media (min-width: 820px) {
  .nx-steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .nx-steps li { padding: 46px 0 0; }
  .nx-steps li::before { left: 22px; right: -36px; top: 10px; bottom: auto; width: auto; height: 1px; }
}

/* ---------- Galerie ---------- */
.nx-grid { display: grid; gap: 34px; }
.nx-card { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.nx-card__img { display: block; position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: var(--nuit); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .9); }
.nx-card__img img { width: 100%; height: 112%; object-fit: cover; transition: scale .9s var(--ease); }
.nx-card__img::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 200, 120, .26), transparent 65%); }
.nx-card:hover .nx-card__img img { scale: 1.045; }
.nx-card:hover .nx-card__img::after { opacity: 1; }
.nx-card__n { position: absolute; left: 14px; top: 10px; font: 500 clamp(3rem, 8vw, 5.4rem)/1 var(--f-display); font-style: italic; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 246, 228, .85); text-shadow: 0 4px 30px rgba(5, 15, 31, .5); }
.nx-card__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 4px 0; }
.nx-card__t { font: 600 clamp(1.25rem, 2vw, 1.6rem)/1.15 var(--f-display); }
.nx-card__go { flex: none; font: 600 .875rem/1 var(--f-body); color: var(--or); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.nx-card.is-mine .nx-card__img { outline: 2px solid var(--or); outline-offset: 4px; }
.nx-badge { position: absolute; right: 12px; top: 12px; font: 700 .75rem/1 var(--f-body); letter-spacing: .04em; color: var(--nuit); background: var(--or); padding: 8px 12px; border-radius: 999px; }
[data-phase="avant"] .nx-grid { display: none; }
@media (min-width: 900px) {
  .nx-grid { grid-template-columns: repeat(12, 1fr); gap: 28px; row-gap: 70px; }
  .nx-card:nth-child(4n+1) { grid-column: 1 / 8; }
  .nx-card:nth-child(4n+2) { grid-column: 9 / 13; margin-top: 130px; }
  .nx-card:nth-child(4n+3) { grid-column: 2 / 6; }
  .nx-card:nth-child(4n+4) { grid-column: 7 / 13; margin-top: 70px; }
  .nx-card:nth-child(4n+2) .nx-card__img, .nx-card:nth-child(4n+3) .nx-card__img { aspect-ratio: 4 / 5; }
}
.nx-empty { text-align: center; padding: clamp(40px, 8vw, 90px) 20px; border: 1px dashed var(--blanc-3); border-radius: 20px; }
.nx-empty p + p { color: var(--blanc-2); margin: 10px auto 24px; max-width: 28em; }
.nx-ex { max-width: 760px; margin: 0 auto clamp(22px, 4vw, 36px); }
.nx-ex img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .9); }
.nx-ex figcaption { margin-top: 12px; font: 700 clamp(1.25rem, 2.6vw, 1.6rem)/1.2 var(--f-hand); color: var(--or); }
.nx-ex small { display: block; margin-top: 4px; font: 500 .6875rem/1 var(--f-data); letter-spacing: .12em; text-transform: uppercase; color: var(--blanc-2); }
.nx-hand { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1 var(--f-hand); color: var(--or); }
.nx-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--or); border-radius: 999px; color: var(--or); font-weight: 600; text-decoration: none; }
.nx-btn:hover { background: var(--or); color: var(--nuit); }
.nx-btn--ink { border-color: var(--encre); color: var(--encre); margin-top: 22px; }
.nx-btn--ink:hover { background: var(--encre); color: var(--papier); }

/* ---------- Lots ---------- */
.nx-prizes { display: grid; gap: 18px; }
.nx-prizes li { position: relative; padding: 28px 26px 30px; border-radius: 20px; border: 1px solid var(--blanc-3); background: linear-gradient(160deg, rgba(18, 53, 90, .7), rgba(10, 37, 64, .35)); overflow: hidden; }
.nx-prizes li::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(240, 197, 110, .2), transparent); }
.nx-prizes b { display: block; font: 800 clamp(5rem, 13vw, 9rem)/.85 var(--f-display); font-style: italic; letter-spacing: -.05em; background: linear-gradient(170deg, #FFE7A8, var(--or) 50%, var(--or-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; width: fit-content; }
.nx-prizes span { font: 500 .8125rem/1 var(--f-data); letter-spacing: .12em; text-transform: uppercase; color: var(--blanc-2); }
.nx-rank { display: block; margin-top: 20px; font: 700 .8125rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--or); }
.nx-rank + h3 { margin-top: 8px !important; }
.nx-prizes h3 { font: 700 1.5rem/1.15 var(--f-display); margin: 20px 0 6px; }
.nx-prizes p { color: var(--blanc-2); }
.nx-note { margin-top: 26px; font-size: .9375rem; color: var(--blanc-2); max-width: 46em; }
@media (min-width: 820px) { .nx-prizes { grid-template-columns: 1.25fr 1fr 1fr; align-items: end; } .nx-prizes li:first-child { padding-block: 44px 46px; } }

/* ---------- Palmarès ---------- */
.nx-podium { display: grid; gap: 22px; }
.nx-pod { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(240, 197, 110, .45); background: var(--nuit); cursor: pointer; padding: 0; color: inherit; font: inherit; text-align: left; }
.nx-pod img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nx-pod div { padding: 18px 20px 22px; }
.nx-pod small { font: 500 .75rem/1 var(--f-data); letter-spacing: .14em; text-transform: uppercase; color: var(--or); }
.nx-pod h3 { font: 700 1.5rem/1.15 var(--f-display); margin-top: 8px; }
.nx-pod p { color: var(--blanc-2); font-size: .9375rem; }
@media (min-width: 820px) { .nx-podium { grid-template-columns: 1.4fr 1fr 1fr; align-items: end; } }

/* ---------- Papier ---------- */
.nx-paper { background: var(--papier); color: var(--encre); border-radius: 28px 28px 0 0; }
.nx-paper__in { max-width: var(--wrap); margin-inline: auto; padding: clamp(56px, 9vw, 110px) var(--gut); display: grid; gap: 48px; }
.nx-paper h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; margin: 12px 0 20px; }
.nx-list { counter-reset: n; display: grid; gap: 14px; }
.nx-list li { counter-increment: n; position: relative; padding-left: 46px; color: var(--encre-2); }
.nx-list li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font: 700 1rem/1 var(--f-display); background: var(--encre); color: var(--or); }
.nx-list b { color: var(--encre); }
.nx-list--dots li { padding-left: 24px; }
.nx-list--dots li::before { content: ''; width: 9px; height: 9px; top: 9px; background: var(--or-2); box-shadow: 0 0 0 4px rgba(217, 164, 65, .2); }
.nx-fine { font-size: .875rem; line-height: 1.5; color: var(--blanc-2); margin-top: 12px; }
.nx-paper .nx-fine { color: #566275; margin-top: 20px; }
.nx-resp { padding: 14px 16px; border-left: 4px solid var(--rouge); background: #FBEDEA; border-radius: 0 10px 10px 0; margin-bottom: 20px; color: var(--encre); }
@media (min-width: 900px) { .nx-paper__in { grid-template-columns: 1fr 1fr; gap: 56px; } .nx-safe { grid-column: 1 / -1; border-top: 1px solid #E2DACA; padding-top: 48px; } .nx-safe .nx-list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.nx-foot a { color: inherit; }
.nx-foot { background: var(--papier); color: #566275; font-size: .875rem; text-align: center; padding: 26px var(--gut) 100px; border-top: 1px solid #E2DACA; }

/* ---------- Fiche (dialog) ---------- */
.nx-dlg { width: min(1080px, 100%); max-width: 100%; max-height: 100dvh; margin: auto; padding: 0; border: 0; color: var(--blanc); background: #0B1D33; overflow: auto; overscroll-behavior: contain; }
.nx-dlg::backdrop { background: rgba(3, 9, 19, .82); backdrop-filter: blur(6px); }
.nx-dlg[open] { display: grid; animation: nx-in .45s var(--ease); }
@keyframes nx-in { from { opacity: 0; transform: translateY(24px); } }
.nx-x { position: sticky; top: 10px; justify-self: end; margin: 10px 10px -58px 0; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--blanc-3); background: rgba(5, 15, 31, .7); color: var(--blanc); font-size: 1.7rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.nx-dlg__media > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nx-thumbs { display: flex; gap: 8px; padding: 10px 14px 0; }
.nx-thumbs button { width: 76px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .65; }
.nx-thumbs button[aria-current="true"] { border-color: var(--or); opacity: 1; }
.nx-thumbs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.nx-dlg__body { padding: 22px 20px 30px; }
.nx-num { font: 500 .8125rem/1 var(--f-data); letter-spacing: .14em; text-transform: uppercase; color: var(--or); }
.nx-dlg h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 10px 0 12px; }
.nx-desc { color: var(--blanc-2); }
.nx-vote { margin-top: 22px; padding: 18px; border-radius: 16px; background: rgba(255, 246, 228, .06); border: 1px solid var(--blanc-3); }
.nx-vote > * { display: none; }
.nx-vote[data-state="closed"] [data-v="closed"], .nx-vote[data-state="start"] [data-v="start"], .nx-vote[data-state="email"] [data-v="email"],
.nx-vote[data-state="code"] [data-v="code"], .nx-vote[data-state="link"] [data-v="link"], .nx-vote[data-state="done"] [data-v="done"] { display: block; }
.nx-vote .nx-cta { margin-top: 0; }
.nx-vote [data-v="closed"] .nx-fine { margin: 0; font-size: 1rem; color: var(--blanc); }
.nx-vote label { display: block; font-weight: 600; margin-bottom: 8px; }
.nx-vote input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 246, 228, .35); background: rgba(5, 15, 31, .6); color: var(--blanc); font: 500 1.0625rem var(--f-body); margin-bottom: 12px; }
.nx-vote input::placeholder { color: rgba(255, 246, 228, .4); }
#nx-code { font: 500 1.7rem var(--f-data); letter-spacing: .5em; text-align: center; padding-left: .5em; }
.nx-err { color: #FFB3A6; font-size: .9375rem; margin: -4px 0 10px; }
.nx-err:empty { display: none; }
.nx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#nx-ts:not(:empty) { margin-bottom: 12px; }
.nx-link { display: block; margin: 12px auto 0; padding: 10px; background: none; border: 0; color: var(--or); font: 600 .9375rem var(--f-body); text-decoration: underline; cursor: pointer; }
[data-v="link"] .nx-fine { text-align: center; margin: 8px 0 14px; }
.nx-demo[hidden] { display: none; }
.nx-none .nx-grid { display: none; }
.nx-none .nx-empty { display: block; }
.nx-seal { width: 72px; margin: 4px auto 10px; fill: none; stroke: var(--or); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nx-seal circle { stroke-dasharray: 214; stroke-dashoffset: 214; animation: nx-draw .9s .1s var(--ease) forwards; }
.nx-seal path { stroke-dasharray: 46; stroke-dashoffset: 46; animation: nx-draw .5s .8s var(--ease) forwards; }
@keyframes nx-draw { to { stroke-dashoffset: 0; } }
.nx-thanks { text-align: center; font: 700 1.4rem/1.2 var(--f-display); }
[data-v="done"] .nx-fine { text-align: center; }
.nx-share { margin-top: 22px; }
.nx-share > p { font: 500 .75rem/1 var(--f-data); letter-spacing: .14em; text-transform: uppercase; color: var(--blanc-2); margin-bottom: 10px; }
.nx-share > div { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-chip { min-height: 46px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid var(--blanc-3); background: none; color: var(--blanc); font: 600 .9375rem var(--f-body); text-decoration: none; cursor: pointer; }
.nx-chip:hover { border-color: var(--or); color: var(--or); }
@media (min-width: 900px) {
  .nx-dlg { border-radius: 22px; max-height: min(92dvh, 760px); }
  .nx-dlg[open] { grid-template-columns: 1.25fr 1fr; }
  .nx-x { grid-column: 1 / -1; }
  .nx-dlg__media { padding: 0 0 14px; }
  .nx-dlg__body { padding: 44px 34px 34px 30px; }
}

/* ---------- Pastille de démo ---------- */
.nx-demo { position: fixed; left: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: #fff; color: #0A2540; font: 700 .75rem var(--f-body); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.nx-demo select { font: 600 .8125rem var(--f-body); border: 1px solid #cfd6df; border-radius: 999px; padding: 6px 8px; background: #F3EEE2; color: #0A2540; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .nx-js h1 .l > span { transform: none; }
}

/* ---------- Règlement ---------- */
.nx-reg { background: var(--papier); color: var(--encre); border-top: 1px solid #E2DACA; }
.nx-reg__in { max-width: 820px; margin-inline: auto; padding: clamp(48px, 8vw, 96px) var(--gut); }
.nx-reg h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 12px 0 18px; }
.nx-reg__act .nx-btn { margin-top: 0; cursor: pointer; background: none; font: 600 1rem var(--f-body); }
.nx-reg__txt { margin-top: 28px; color: var(--encre-2); }
.nx-reg__txt h3 { font: 700 1.2rem/1.25 var(--f-display); color: var(--encre); margin: 30px 0 8px; }
.nx-reg__txt p { margin-bottom: 12px; }
.nx-reg__txt ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; display: grid; gap: 6px; }
.nx-reg__txt b { color: var(--encre); }
.nx-reg__meta { font: 500 .8125rem/1.4 var(--f-data); letter-spacing: .04em; color: #566275; }
.nx-draft { padding: 12px 16px; border: 2px dashed var(--rouge); border-radius: 10px; background: #FBEDEA; color: #8C1D18; }
.nx-preview { position: fixed; inset: 0 0 auto; z-index: 60; background: var(--rouge); color: #fff; font: 600 .8125rem/1.3 var(--f-body); text-align: center; padding: 6px 12px; }

/* Impression : le règlement seul, en noir sur blanc */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .nx-top, .nx-hero, .nx-sec, .nx-paper, .nx-foot, .nx-dlg, .nx-demo, .nx-skip, .nx-reg__act, .nx-preview, #n4c-consent { display: none !important; }
  .nx-reg { border: 0; } .nx-reg__in { padding: 0; max-width: none; }
  .nx-reg__txt, .nx-reg__txt b, .nx-reg h2, .nx-reg__txt h3 { color: #000; }
  .nx-reg__txt h3 { break-after: avoid; }
}
