:root {
  --bg: #09090b;
  --bg-2: #12121a;
  --card: #16161f;
  --line: rgba(246, 174, 76, .22);
  --gold: #f6ae4c;
  --gold-2: #ffd36b;
  --cream: #f3e3c3;
  --text: #ece6da;
  --muted: #a39a8a;
  --radius: 6px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head-h: 67px; /* hauteur de l'entête fermé (logo 46 px + marges) */
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-color: rgba(246, 174, 76, .35) var(--bg); }
/* Lenis : il gère lui-même le lissage, le CSS ne doit pas s’y ajouter */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
[data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  caret-color: var(--gold);
  font: 400 16px/1.65 Poppins, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: url(img/marbre.jpg) center / cover; }
::selection { background: var(--gold); color: #1a1206; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 10px max(16px, calc((100% - 1200px) / 2));
  background: linear-gradient(rgba(9, 9, 11, .55), rgba(9, 9, 11, .55)), url(img/fond.jpg) center top / cover fixed;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .3s;
}
/* en haut de l'accueil, l'entête est transparent : le fond de la bannière continue dessous sans raccord */
.topbar.clear:not(.menu-open) { background: transparent; border-bottom-color: transparent; }
.brand { justify-self: start; }
.brand img { height: 46px; width: auto; }
.head-vote { justify-self: end; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; padding: 9px 18px; }
.topbar nav { display: flex; gap: 28px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.topbar nav a { text-decoration: none; color: #fff; white-space: nowrap; transition: color .15s; }
.topbar nav a:hover { color: var(--gold); }
.topbar nav .muted { color: var(--muted); }

.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.section { padding: 72px 0; scroll-margin-top: 60px; }
h1, h2, h3 { font-family: Poppins, sans-serif; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 0; text-wrap: balance; color: #fff; }
h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 28px; }
.gold { color: var(--gold); }
/* petit libellé or au-dessus des titres, et titre de section centré souligné d'or */
.kicker { margin: 0 0 12px; display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.head { text-align: center; margin-bottom: 40px; }
.head .kicker { justify-content: center; }
.head .kicker::before { display: none; }
.head h2 { margin: 0; }
.head h2::after { content: ""; display: block; width: 40px; height: 2px; margin: 22px auto 0; background: var(--gold); }
.empty { color: var(--muted); }
.loading { min-height: 60vh; display: grid; place-items: center; margin: 0; color: var(--muted); }

/* accueil : fond bokeh doré, partagé avec l'entête (même image fixée à l'écran, donc sans raccord) ; texte à gauche, nimba doré à droite */
.hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--head-h)); padding-top: var(--head-h); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(9, 9, 11, .35), rgba(9, 9, 11, .55)), url(img/fond.jpg) center top / cover fixed;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; align-items: center; min-height: min(80vh, 760px); padding: 64px 0 80px; }
.hero-text > * { max-width: 560px; }
/* paillettes dorées animées (dessinées par app.js), entre le fond et le texte */
.sparkles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mix-blend-mode: screen; }
/* nimba en gros plan, coupé par le bas de la bannière (comme le visage du thème Luxa) */
.hero { overflow: hidden; }
.hero-text { position: relative; z-index: 1; }
.hero-nimba {
  position: absolute; z-index: 0; top: calc(var(--head-h) + 56px); right: max(0px, calc((100% - 1200px) / 2));
  width: min(40vw, 600px); height: auto; max-width: none; pointer-events: none;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .7));
}
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.08; }
.hero p.lead { margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.countdown { display: flex; gap: 10px; margin: 32px 0 8px; }
.countdown div { min-width: 76px; padding: 12px 8px; text-align: center; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); background: rgba(14, 14, 17, .7); }
.countdown b { display: block; font: 700 30px/1 Poppins, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.end, .closed { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.closed { font-size: 18px; color: var(--gold); font-weight: 600; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 28px; }
.hero-share { display: flex; flex-wrap: wrap; gap: 14px 18px; }

/* chiffres clés */
.stats { border-block: 1px solid rgba(255, 255, 255, .08); background: rgba(9, 9, 11, .6); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; }
.stat { display: flex; align-items: center; gap: 16px; }
.stat svg { flex: none; width: 40px; height: 40px; stroke-width: 1.3; color: #fff; }
.stat p { margin: 0; padding-left: 16px; border-left: 2px solid var(--gold); }
.stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; color: #fff; }
.stat span { color: var(--gold); font-weight: 600; font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius); border: 0;
  background: rgba(255, 255, 255, .08); text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  transition: transform .2s var(--ease), background .15s, color .15s, filter .15s;
}
.btn:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: #1a1206; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .9); }
.btn-gold:hover { background: var(--gold); filter: brightness(1.06); }
/* bouton « entre crochets » : traits or à gauche et à droite */
.btn-line { background: transparent; border-radius: 0; padding: 8px 16px; border-inline: 2px solid var(--gold); color: #fff; }
.btn-line:hover { background: transparent; color: var(--gold); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { background: rgba(255, 255, 255, .06); color: var(--cream); }
.btn-sm { padding: 7px 12px; font-size: 12px; letter-spacing: .03em; text-transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* recherche */
.search { position: relative; display: block; width: min(460px, 100%); margin: 28px 0 0; }
.search input {
  width: 100%; padding: 13px 18px 13px 44px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(9, 9, 11, .8); color: var(--text); font: inherit; font-size: 15px;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: none; border-color: var(--gold); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
#results .empty { margin: -12px 0 0; }
#results .btn { margin-top: 18px; }

/* carrousel */
.track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 16px; scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(760px, 86%); scroll-snap-align: center; }
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.ctl {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: var(--gold); cursor: pointer; transition: background .15s;
}
.ctl:hover { background: rgba(255, 255, 255, .14); }
.ctl svg { width: 20px; height: 20px; }
.ctl.pause { margin-left: 6px; }
.ctl.pause svg { width: 16px; height: 16px; }
.car-count { min-width: 64px; text-align: center; font: 700 16px/1 Poppins, sans-serif; letter-spacing: .04em; color: var(--cream); font-variant-numeric: tabular-nums; }

/* cartes catégorie */
.cat-card {
  display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .2s;
}
.cat-card:hover { transform: translateY(-3px); border-color: rgba(246, 174, 76, .6); }
.cat-card img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; background: var(--bg-2); }
.cat-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.cat-card .num { font-size: 12px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.cat-card h3 { font-size: 19px; margin-top: 4px; }
.cat-card .count { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* toutes les catégories, par famille */
.families { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.family h3 { font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.family ul { list-style: none; margin: 0; padding: 0; }
.family a {
  display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08); text-decoration: none; transition: color .15s;
}
.family a:hover { color: var(--gold); }
.family .n { flex: none; width: 24px; font: 700 14px/1 Poppins, sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; }
.family .t { flex: 1; font-size: 15px; line-height: 1.35; }
.family .k { flex: none; font-size: 12px; color: var(--muted); }

/* comment voter : trois colonnes centrées, séparées par de fins traits */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; border-block: 1px solid rgba(255, 255, 255, .08); }
.steps li { counter-increment: step; padding: 40px 28px; text-align: center; }
.steps li + li { border-left: 1px solid rgba(255, 255, 255, .08); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--gold); margin-bottom: 10px; }
.steps h3 { font-size: 22px; margin: 0; }
.steps h3::after { content: ""; display: block; width: 28px; height: 2px; margin: 16px auto; background: var(--gold); }
.steps p { margin: 0 auto; color: var(--muted); font-size: 15px; max-width: 30ch; }
.note { margin: 32px auto 0; color: var(--text); max-width: 68ch; text-align: center; }

/* page catégorie */
.back { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 14px; margin: -10px 0 8px; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--gold); }
.cat-hero { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
.cat-hero img { border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow); width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.cat-hero h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 12px; }
.cat-hero .meta { color: var(--muted); margin: 0 0 4px; font-size: 15px; }
.cat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.share-more summary { list-style: none; }
.share-more summary::-webkit-details-marker { display: none; }
.share-more[open] { order: 2; flex-basis: 100%; }
.share-more[open] summary { background: rgba(255, 255, 255, .14); }
.share-more .share { margin-top: 12px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }

.live { margin: 40px 0 0; color: var(--muted); font-size: 14px; }
.live .dot { display: inline-block; width: 8px; height: 8px; margin: 0 10px 1px 0; border-radius: 50%; background: var(--gold); }

.nominees { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 18px; }
.nominee {
  border-radius: var(--radius); overflow: hidden; background: rgba(22, 22, 26, .92); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: border-color .2s, transform .25s var(--ease);
}
.nominee:hover { border-color: rgba(246, 174, 76, .6); transform: translateY(-2px); }
.nominee.is-lead { border-color: var(--gold); }
.nominee button.pic { padding: 0; border: 0; background: var(--bg-2); cursor: pointer; }
.nominee img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.nominee .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.nominee h3 { font-size: 19px; }
.nominee .in-cat { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.nominee .row { display: flex; gap: 8px; margin-top: auto; }
.nominee .row .btn-gold { flex: 1; }

/* pourcentage des votes */
.pct { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 13px; }
.pct em { flex: none; font-style: normal; font-weight: 600; color: var(--cream); min-width: 28px; }
.is-lead .pct em { color: #1a1206; background: var(--gold); padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.pct > span { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pct i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.pct b { font-weight: 600; color: var(--gold); min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.pct.zero { color: var(--muted); }

/* fenêtre */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow);
  animation: pop .3s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-close {
  position: absolute; top: 8px; right: 10px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(10, 10, 15, .8); display: grid; place-items: center; cursor: pointer;
}
.modal-close svg { width: 20px; height: 20px; }
.modal-box img { width: 100%; border-radius: 12px; aspect-ratio: 5 / 3; object-fit: cover; }
.modal-box h2 { margin: 16px 0 4px; font-size: clamp(24px, 3vw, 34px); }
.modal-box .cat { color: var(--gold); font-size: 14px; margin: 0; }
.modal-box .standing { margin: 8px 0 0; color: var(--text); font-size: 15px; }
.modal-box .standing b { color: var(--gold); }
.modal-box .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.modal-box .actions .btn-gold { padding: 11px 22px; font-size: 15px; white-space: normal; text-align: center; max-width: 100%; }
.modal-box .pay-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.modal-box .label { font: 600 14px/1.4 Poppins, sans-serif; letter-spacing: 0; color: var(--cream); margin: 26px 0 10px; }

/* merci, au retour de billetfacile */
.thanks {
  position: fixed; left: 50%; bottom: 20px; z-index: 55; transform: translateX(-50%);
  width: min(560px, calc(100% - 24px)); padding: 16px 52px 16px 18px; border-radius: 16px;
  background: var(--bg-2); border: 1px solid var(--gold); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .9);
  animation: rise .45s var(--ease);
}
@keyframes rise { from { transform: translate(-50%, 16px); opacity: 0; } }
.thanks p { margin: 0 0 12px; font-size: 14px; }
.thanks b { color: var(--gold); }
.thanks-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.thanks-close svg { width: 18px; height: 18px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px);
  padding: 12px 20px; border-radius: 999px; background: var(--cream); color: #1a1206; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.footer { background: rgba(9, 9, 11, .75); border-top: 1px solid rgba(255, 255, 255, .08); color: var(--muted); font-size: 14px; padding: 56px 0 28px; }
.foot-grid { width: min(1200px, 100% - 32px); margin: 0 auto; display: grid; gap: 32px 40px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-logo { height: 54px; width: auto; margin-bottom: 14px; }
.foot-brand p { margin: 0; max-width: 32ch; line-height: 1.6; }
.footer h2 { font: 600 13px/1.4 Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); margin: 4px 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.foot-bottom a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { width: min(1200px, 100% - 32px); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12px; text-align: center; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* pages Event */
.event .editions { margin-bottom: 28px; }
.event h1 { font-size: clamp(34px, 4.6vw, 58px); }
.event .lead { color: var(--muted); margin: 8px 0 8px; max-width: 62ch; font-size: 17px; }
.bloc { max-width: 72ch; padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.bloc:last-of-type { border-bottom: 0; }
.bloc h2 { font-size: clamp(22px, 2.6vw, 28px); color: var(--gold); margin: 0 0 12px; }
.bloc p { margin: 0; white-space: pre-line; color: var(--text); line-height: 1.7; }
.event-cta { margin: 20px 0 0; }

/* galerie photo */
.topbar nav a[aria-current] { color: var(--gold); }
.gallery h1 { font-size: clamp(36px, 5vw, 64px); }
.gallery .lead { color: var(--muted); margin: 6px 0 24px; max-width: 60ch; }
.editions { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; }
.editions::-webkit-scrollbar { display: none; }
.editions a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.editions a span { color: var(--muted); font-size: 12px; }
.editions a:hover { background: rgba(255, 255, 255, .12); }
.editions a.on { background: var(--gold); color: #1a1206; }
.editions a.on span { color: rgba(26, 18, 6, .7); }
.ed-count { color: var(--muted); font-size: 13px; margin: 10px 0 16px; }
.photos { columns: 4 240px; column-gap: 12px; }
.ph { display: block; width: 100%; padding: 0; margin: 0 0 12px; border: 0; border-radius: 12px; overflow: hidden; background: var(--card); cursor: zoom-in; break-inside: avoid; }
.ph img { display: block; width: 100%; height: auto; aspect-ratio: auto 3 / 4; object-fit: cover; transition: transform .4s var(--ease); }
.ph:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5, 5, 8, .94); padding: 64px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox .ctl { position: absolute; background: rgba(0, 0, 0, .6); }
.lightbox .ctl:hover { background: rgba(0, 0, 0, .8); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; top: 24px; left: 0; right: 0; margin: 0; text-align: center; font: 700 15px/1 Poppins, sans-serif; letter-spacing: .06em; color: var(--cream); pointer-events: none; }
@media (max-width: 560px) {
  .photos { columns: 2; column-gap: 8px; }
  .ph { margin-bottom: 8px; border-radius: 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; translate: none; }
  .lightbox { padding: 64px 0 72px; }
}

@media (max-width: 820px) {
  .cat-hero { grid-template-columns: 1fr; gap: 20px; }
  .topbar nav { gap: 16px; }
  .topbar nav .muted { display: none; }
  .slide { flex-basis: 90%; }
  .countdown div { min-width: 62px; }
  .section { padding: 48px 0; }
  .live { margin-top: 28px; }
  /* bannière mobile (maquette de l'utilisateur) : tout centré, nimba en gros plan sous les boutons,
     coupé par la barre de recherche qui le chevauche ; fond fixe coûteux sur téléphone et ignoré par iOS */
  .hero-in { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; min-height: 0; padding: 36px 0 44px; }
  .hero-text { display: contents; }
  .hero-text > * { max-width: 100%; }
  .hero .kicker { justify-content: center; text-transform: none; letter-spacing: .02em; font-weight: 400; font-size: 15px; }
  .hero .kicker::before { display: none; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero p.lead, .hero .end { display: none; }
  .countdown { justify-content: center; margin: 24px 0 0; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-actions > .btn-gold { min-width: 210px; }
  /* « | Partager le site | Copier le lien | » : les deux boutons partagent le trait du milieu */
  .hero-share { gap: 0; flex-wrap: nowrap; }
  .hero-share .btn-line { padding: 6px 12px; font-size: 11px; }
  .hero-share .btn-line + .btn-line { border-left: 0; }
  .hero-nimba {
    position: relative; order: 1; top: auto; right: auto; z-index: 0; margin-top: 24px;
    width: min(62vw, 340px); height: min(68vw, 374px); object-fit: cover; object-position: top;
  }
  .search { order: 2; position: relative; z-index: 1; margin-top: -28px; width: 100%; }
  .topbar, .hero::before { background-attachment: scroll, scroll; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; padding: 28px 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 28px 8px; }
  .steps li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
}
.burger { display: none; }
/* téléphone : logo, « Voter » et bouton burger ; le menu s'ouvre par-dessus la page, sous l'entête, sans la pousser */
@media (max-width: 600px) {
  .topbar { grid-template-columns: 1fr auto auto; gap: 10px; row-gap: 0; }
  .brand { grid-column: 1; grid-row: 1; }
  .head-vote { grid-column: 2; grid-row: 1; height: 44px; min-height: 44px; padding-block: 0; box-sizing: border-box; } /* même hauteur que le burger */
  .burger {
    grid-column: 3; grid-row: 1; display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; box-sizing: border-box; padding: 0;
    border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); background: rgba(9, 9, 11, .5); cursor: pointer;
  }
  .burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
  .menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; }
  .menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 4px 16px 12px; font-size: 20px; background: rgba(9, 9, 11, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .8);
  }
  .menu-open nav { display: flex; animation: drop .25s var(--ease); }
  .topbar #menu a { display: block; padding: 18px 2px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .topbar nav .muted { color: var(--muted); }
  .section[id] { scroll-margin-top: 70px; } /* l'entête collant ne cache pas les titres */
}
/* téléphone : fiches en une colonne, image en haut (choix de l'utilisateur) */
@media (max-width: 560px) {
  .nominees { gap: 16px; }
  .nominee h3 { font-size: 18px; }
  .nominee .row { flex-wrap: wrap; }
  .nominee .row > * { flex: 1 1 auto; }
  .nominee .row .btn { padding-inline: 12px; letter-spacing: .03em; }
  .stat svg { width: 30px; height: 30px; }
  .stat b { font-size: 24px; }
  .stat { gap: 10px; }
  .stat p { padding-left: 10px; }
  .pct em { min-width: 0; }
  .pct b { min-width: 0; }
}
@media (pointer: coarse) {
  .btn, .btn-sm { min-height: 44px; }
  .topbar nav a { display: inline-block; padding: 10px 2px; }
  .footer ul { gap: 0; }
  .footer ul a { display: inline-block; padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
