/* Youth Christmas Night Show 2026 — feuille de style du site public */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2-variations"), url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2-variations"), url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}

:root {
  --pine: #041D10;        /* fond le plus profond */
  --forest: #08301A;      /* surfaces */
  --forest-2: #0D4024;    /* surfaces relevees */
  --gold: #E8C66C;        /* filets, details dores */
  --lime: #D3EE72;        /* pastilles comme sur les visuels */
  --cream: #F6F0E0;       /* texte principal */
  --mist: #B8C8B5;        /* texte secondaire */
  --carpet: #D2303C;      /* tapis rouge : action principale */
  --carpet-deep: #A81F2B;
  --line: rgba(232, 198, 108, 0.28);
  --display: "Bricolage", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(1160px, 100% - 2.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--pine); color: var(--cream);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 99; background: var(--lime); color: var(--pine); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- Titres ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 750; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-stretch: 82%; }
h3 { font-size: 1.25rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--mist); max-width: 60ch; margin: 1rem 0 0; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 750; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-vote { background: var(--carpet); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 30px -10px rgba(210,48,60,.8); }
.btn-vote:hover { background: var(--carpet-deep); }
.btn-ghost { background: rgba(246,240,224,.06); color: var(--cream); box-shadow: 0 0 0 1px var(--line) inset; }
.btn-ghost:hover { background: rgba(246,240,224,.12); }
.btn-wa { background: #25D366; color: #06331A; }
.btn-wa:hover { background: #20bd5b; }
.btn-gold { background: var(--gold); color: #2A2208; }
.btn-gold:hover { background: #f0d385; }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .93rem; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- En-tete ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 29, 16, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232,198,108,.14);
}
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img.ems { width: 38px; height: 38px; border-radius: 50%; }
.brand img.ycns { height: 40px; width: auto; }
.nav { display: flex; gap: .3rem; align-items: center; }
.nav a { text-decoration: none; padding: .5rem .8rem; border-radius: 999px; color: var(--mist); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); background: rgba(246,240,224,.07); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--cream); margin: 4px auto; border-radius: 2px; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; padding: .8rem 1.25rem 1.2rem; gap: .2rem;
    background: rgba(4,29,16,.97); border-bottom: 1px solid var(--line); display: none; }
  .menu-open .nav { display: flex; }
  .nav a { padding: .85rem 1rem; font-size: 1.05rem; }
  .top .btn-vote { min-height: 44px; padding: .5rem 1rem; font-size: .92rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--pine) center / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 30%, rgba(4,29,16,.15), rgba(4,29,16,.75) 70%), linear-gradient(to bottom, rgba(4,29,16,0) 60%, var(--pine)); }
.hero-in { display: grid; justify-items: center; text-align: center; }
.church { display: inline-flex; align-items: center; gap: .6rem; color: var(--cream); font-weight: 700; font-size: .82rem; letter-spacing: .22em; }
.church img { width: 30px; height: 30px; border-radius: 50%; }
.hero-title { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3rem); flex-wrap: wrap; margin: clamp(1.5rem, 3vw, 2.2rem) 0 0; }
.hero-title .logo { width: min(520px, 82vw); height: auto; }
.hero-title .theme { width: min(420px, 70vw); height: auto; }
.when {
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 0; font-family: var(--display); font-weight: 800; font-stretch: 78%;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem); line-height: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2em .45em;
}
.when .hl { color: var(--lime); }
.when .dot { width: .22em; height: .22em; background: var(--gold); transform: rotate(45deg); display: inline-block; }
.free { font-family: var(--body); font-stretch: 100%; font-size: .78rem; font-weight: 800; letter-spacing: .04em; line-height: 1.1; background: var(--carpet); color: #fff;
  padding: .45rem .6rem; border-radius: 6px; text-align: left; align-self: center; }
.where { margin: .9rem 0 0; color: var(--mist); font-weight: 600; font-size: clamp(.98rem, 1.6vw, 1.1rem); }
.where b { color: var(--gold); font-weight: 700; }
.countdown { display: flex; gap: clamp(.5rem, 2vw, 1rem); margin: 2rem 0 0; }
.countdown div { min-width: 74px; padding: .7rem .5rem .55rem; border-radius: 12px; background: rgba(4,29,16,.55); box-shadow: 0 0 0 1px var(--line) inset; }
.countdown b { display: block; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .78rem; color: var(--mist); font-weight: 600; }
.countdown.is-live div { display: none; }
.countdown.is-live::after { content: "C'est ce soir !"; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--lime); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 2rem 0 0; }

/* ---------- Film ---------- */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(0,0,0,.8); }
.player video, .player iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.film-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .film-grid { grid-template-columns: 1.7fr 1fr; gap: 3rem; } }
.film-grid p { color: var(--mist); margin: 1rem 0 1.5rem; }

/* ---------- Cartes des candidates (visuel de Vincent, intact) ---------- */
.queens { background: linear-gradient(to bottom, var(--pine), var(--forest) 30%, var(--forest) 70%, var(--pine)); }
.queen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 2.4vw, 1.6rem) clamp(.6rem, 2vw, 1.4rem); }
@media (min-width: 900px) { .queen-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.queen { display: grid; justify-items: center; text-align: center; position: relative; }
.queen .card { width: 100%; height: auto; aspect-ratio: 810 / 841; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.queen .name { margin-top: .2rem; font-family: var(--display); font-weight: 750; font-stretch: 85%; font-size: clamp(1.02rem, 2vw, 1.25rem); line-height: 1.15; }
.queen .name small { display: block; font-family: var(--body); font-stretch: 100%; font-size: .8rem; font-weight: 600; color: var(--mist); letter-spacing: .02em; margin-top: .15rem; }
.pct { width: min(220px, 92%); margin: .7rem auto 0; }
.pct-row { display: flex; justify-content: space-between; font-size: .82rem; color: var(--mist); font-weight: 600; }
.pct-row b { color: var(--cream); font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 6px; background: rgba(246,240,224,.1); overflow: hidden; margin-top: .3rem; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--lime)); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.queen .actions { display: flex; gap: .45rem; justify-content: center; flex-wrap: wrap; margin-top: .8rem; }
.queens-foot { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.note { font-size: .92rem; color: var(--mist); max-width: 62ch; text-align: center; margin: 0; }
.note b { color: var(--gold); }

/* ---------- Programme ---------- */
.lineup { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35em .55em; margin: 0 auto; max-width: 980px; padding: 0; list-style: none;
  font-family: var(--display); font-weight: 800; font-stretch: 76%; font-size: clamp(1.7rem, 4.6vw, 3.3rem); line-height: 1.12; text-align: center; }
.lineup li { display: inline-flex; align-items: center; gap: .55em; }
.lineup li + li::before { content: ""; width: .2em; height: .2em; background: var(--gold); transform: rotate(45deg); display: inline-block; }
.lineup .star { color: var(--lime); }

/* ---------- Artistes ---------- */
.artists { overflow: hidden; }
.artists-strip { width: min(1100px, 100%); margin: 0 auto; }
.artists-strip img { width: 100%; height: auto; }

/* ---------- Dress code ---------- */
.dress { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .dress { grid-template-columns: 1fr 1.05fr; } }
.dress img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0,0,0,.9); }
.swatches { display: flex; gap: .8rem; margin: 1.6rem 0 0; }
.swatch { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem .5rem .5rem; border-radius: 999px; background: rgba(246,240,224,.06); box-shadow: 0 0 0 1px var(--line) inset; font-weight: 700; }
.swatch i { width: 28px; height: 28px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
.tag { display: inline-block; background: #BFE59A; color: #0B3A1E; font-weight: 800; font-size: .8rem; padding: .3rem .7rem; border-radius: 6px; letter-spacing: .03em; margin-bottom: 1rem; }

/* ---------- Infos pratiques ---------- */
.infos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.info { padding: 1.5rem; border-radius: var(--radius); background: rgba(246,240,224,.04); box-shadow: 0 0 0 1px rgba(232,198,108,.18) inset; }
.info h3 { color: var(--gold); font-size: 1rem; font-family: var(--body); font-weight: 700; margin-bottom: .6rem; }
.info p { margin: 0; font-size: 1.08rem; font-weight: 600; }
.info p + p { margin-top: .3rem; }
.info .muted { color: var(--mist); font-weight: 500; font-size: .95rem; }
.info a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.info a:hover { text-decoration-color: var(--gold); }
.info .btn { margin-top: 1rem; }

/* ---------- Pied de page ---------- */
.foot { border-top: 1px solid rgba(232,198,108,.14); padding: 2.5rem 0 3rem; color: var(--mist); font-size: .92rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.foot .org { display: flex; align-items: center; gap: .8rem; }
.foot .org img { width: 44px; height: 44px; border-radius: 50%; }
.foot .org b { color: var(--cream); display: block; }
.socials { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(246,240,224,.06); color: var(--cream); box-shadow: 0 0 0 1px var(--line) inset; }
.socials a:hover { background: rgba(246,240,224,.14); }
.socials svg { width: 19px; height: 19px; }

/* ---------- Page vote ---------- */
.ad { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -30px rgba(0,0,0,.9); background: var(--forest); }
.ad video { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: #000; }
.ad-bar { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .8rem 1rem; }
.ad-bar span { font-weight: 700; font-size: .92rem; color: var(--mist); }
.ad-label { position: absolute; top: .7rem; left: .7rem; background: rgba(4,29,16,.75); color: var(--gold); font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 6px; }
.vote-head { display: grid; gap: 1.2rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 900px) { .vote-head { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.rules { list-style: none; padding: 1.1rem 1.2rem; margin: 0; border-radius: var(--radius); background: rgba(246,240,224,.04); box-shadow: 0 0 0 1px rgba(232,198,108,.18) inset; display: grid; gap: .55rem; font-size: .95rem; }
.rules li { display: flex; gap: .6rem; align-items: flex-start; }
.rules svg { width: 18px; height: 18px; color: var(--lime); flex: none; margin-top: .2rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(211,238,114,.1); color: var(--lime); margin-top: 1rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.closed { background: rgba(210,48,60,.14); color: #ff9aa2; }
.voted-banner { display: none; margin: 0 0 1.5rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: rgba(211,238,114,.08); box-shadow: 0 0 0 1px rgba(211,238,114,.3) inset; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.voted-banner.show { display: flex; }
.demo-banner { background: #E8C66C; color: #2A2208; text-align: center; font-weight: 700; font-size: .85rem; padding: .45rem 1rem; }

/* ---------- Fenetre candidate / merci ---------- */
dialog.sheet { width: min(560px, 100% - 1.5rem); max-height: calc(100dvh - 1.5rem); padding: 0; border: 0; border-radius: 20px; background: var(--forest); color: var(--cream);
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0,0,0,.7); overflow: auto; }
dialog.sheet::backdrop { background: rgba(2, 12, 6, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-in { padding: 1.3rem 1.3rem 1.6rem; position: relative; }
.x { position: absolute; top: .7rem; right: .7rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(246,240,224,.08); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.x svg { width: 18px; height: 18px; }
.sheet-top { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; padding-right: 2.5rem; }
.sheet-top img { width: 120px; height: 120px; object-fit: contain; }
.queen > a, .queen > button { display: block; width: 100%; }
.sheet-top h3 { font-size: 1.45rem; font-stretch: 85%; }
.sheet-top p { margin: .25rem 0 0; color: var(--mist); font-size: .92rem; }
.video-box { margin-top: 1.1rem; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: rgba(0,0,0,.35); box-shadow: 0 0 0 1px rgba(232,198,108,.18) inset; display: grid; place-items: center; text-align: center; }
.video-box iframe { width: 100%; height: 100%; border: 0; }
.video-box .soon { padding: 1rem; color: var(--mist); font-size: .95rem; }
.video-box .soon b { display: block; color: var(--cream); font-family: var(--display); font-size: 1.1rem; margin-bottom: .2rem; }
.vote-form { margin-top: 1.3rem; display: grid; gap: .5rem; }
.vote-form label { font-weight: 700; }
.vote-form .hint { font-size: .85rem; color: var(--mist); margin: 0; }
.phone { display: flex; align-items: stretch; border-radius: 12px; background: rgba(4,29,16,.6); box-shadow: 0 0 0 1px rgba(232,198,108,.35) inset; overflow: hidden; }
.phone span { display: grid; place-items: center; padding: 0 .9rem; color: var(--mist); font-weight: 700; border-right: 1px solid rgba(232,198,108,.2); }
.phone input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .9rem 1rem; font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; outline: none; }
.phone:focus-within { box-shadow: 0 0 0 2px var(--lime) inset; }
.err { color: #ff9aa2; font-size: .9rem; font-weight: 600; margin: 0; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vote-form .btn { width: 100%; margin-top: .3rem; }

/* Fiche merci */
.thanks { text-align: center; padding: 1.8rem 1.3rem 1.6rem; position: relative;
  background: radial-gradient(120% 60% at 50% 0%, rgba(232,198,108,.14), transparent 60%); }
.thanks .check { width: 60px; height: 60px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; color: var(--gold); box-shadow: 0 0 0 1.5px var(--gold) inset; }
.thanks .check svg { width: 28px; height: 28px; }
.thanks .card { width: 170px; height: 170px; object-fit: contain; margin: -.3rem auto .2rem; }
.thanks h3 { font-size: clamp(1.5rem, 5vw, 1.9rem); font-stretch: 85%; }
.thanks .who { color: var(--gold); font-weight: 700; font-size: .95rem; margin: .4rem 0 1.1rem; }
.weight { background: rgba(232,198,108,.1); border-radius: 12px; padding: .95rem 1rem; font-size: 1rem; line-height: 1.55; }
.weight strong { color: var(--lime); font-size: 1.15em; }
.date-line { margin: 1.1rem 0 .1rem; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 1.35rem; }
.place-line { margin: 0 0 1.3rem; color: var(--mist); font-size: .93rem; }
.thanks .btns { display: grid; gap: .6rem; }
.thanks .btns .btn { width: 100%; }
.thanks .small-link { display: inline-block; margin-top: .9rem; color: var(--mist); font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar i { transition: none; }
  .btn { transition: none; }
}

/* Lecteur YouTube leger : la video ne se charge qu'au clic (economise les donnees mobiles) */
.yt { position: relative; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #000 center / cover no-repeat; display: block; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05) 55%); }
.yt .play { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--carpet);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .15s ease; }
.yt:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.yt .play svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.yt .cap { position: absolute; left: 1rem; bottom: .85rem; z-index: 1; font-weight: 700; font-size: .92rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.video-box .yt .play { width: 60px; height: 60px; }
@media (max-width: 700px) {
  .ad-bar span { font-size: .85rem; }
  .ad-bar .btn { width: 100%; }
}

.share-panel { padding: 1rem; border-radius: 14px; background: rgba(4,29,16,.55); box-shadow: 0 0 0 1px var(--line) inset; display: grid; gap: .7rem; }
.share-img { width: 150px; height: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.share-help { margin: 0; font-size: .9rem; color: var(--mist); }

[hidden] { display: none !important; }
