/* ==========================================================================
   Auto vum Joer 2027 — feuille de styles unique (toutes pages, toutes langues)
   Les règles de base (liens, focus, box-sizing) sont limitées au conteneur
   .avj pour ne pas déborder sur les styles existants d'avj.lu si les pages
   sont intégrées dans un gabarit commun.
   ========================================================================== */

/* ---------- Polices auto-hébergées (pas d'appel à Google Fonts : GDPR) ---------- */
@font-face {
  font-family: 'Anton';
  src: url('../fonts/Anton-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Variable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Charte graphique ---------- */
:root {
  --accent: #A6EEBB;
  --accent-ink: #0A0E0C;
  --ground: #0A0E0C;
  --surface: #121915;
  --deep: #050806;
  --ink: #F4F6F3;
  --muted: #A9B4AE;
  --body-text: #C9D1CC;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.12);
  --font-display: 'Anton', 'Impact', sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
  --wrap: 1240px;
  /* Rythme vertical des sections : 56 px sur mobile → 96 px sur grand écran */
  --section-y: clamp(56px, 7vw, 96px);
  --section-y-sm: clamp(44px, 5vw, 64px);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); }
.avj, .avj *, .avj *::before, .avj *::after { box-sizing: border-box; }
.avj {
  width: 100%; min-height: 100vh;
  background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
:where(.avj) a { color: var(--accent); }
:where(.avj) a:hover { color: #fff; }
.avj h1, .avj h2 { overflow-wrap: break-word; }
.avj :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.u-accent { color: var(--accent); }
/* Masqué à l'écran, lu par les lecteurs d'écran */
.u-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; }

/* ---------- Mise en page ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.split--md { gap: 24px; }
.split--lg { gap: 32px; }
.split__main { flex: 1 1 520px; min-width: 0; }
.section { padding: var(--section-y) 24px; }
.section--alt { background: var(--surface); }
.section--band { padding: var(--section-y-sm) 24px; border-bottom: 1px solid var(--line); }
.section--tail { padding: 0 24px var(--section-y); }
/* Bloc court (titre + bouton) : moins de hauteur pour ne pas créer de vide */
.section--compact { padding-block: var(--section-y-sm); }
.stack-xl { display: flex; flex-direction: column; gap: 88px; }

/* ---------- Typographie ---------- */
.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.eyebrow--tight { margin-bottom: 10px; }
.h-section, .h-band, .h-block, .h-vote, .h-page {
  margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
}
.h-section { font-size: clamp(44px, 5.5vw, 76px); line-height: 1; }
.h-band    { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.h-block   { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.h-vote    { font-size: clamp(48px, 7vw, 104px); line-height: .95; }
.h-page    { font-size: clamp(52px, 7vw, 96px); line-height: .95; color: #fff; }
.intro      { max-width: 680px; margin: 20px 0 0; font-size: 17px; color: var(--muted); }
.intro--lg  { max-width: 620px; margin-top: 24px; font-size: 18px; }
.page-intro { max-width: 760px; margin: 22px 0 0; font-size: 18px; color: var(--muted); }
.lead       { margin: 32px 0 0; font-size: 19px; line-height: 1.7; color: var(--ink); }
.body-muted { margin: 20px 0 0; font-size: 17px; line-height: 1.75; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary, .btn--primary:hover { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--md { gap: 12px; min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--lg { gap: 12px; min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--ghost, .btn--ghost:hover { gap: 10px; min-height: 56px; padding: 0 28px; font-size: 16px; border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn--outline, .btn--outline:hover { min-height: 52px; padding: 0 24px; font-size: 15px; border: 1.5px solid var(--accent); color: var(--accent); }
.btn--link { min-height: 48px; font-size: 15px; border-radius: 0; }

/* ---------- En-tête ---------- */
.topbar { padding: 20px 24px; border-bottom: 1px solid var(--line-strong); }
.topbar--overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 5; border-bottom: 0; }
.topbar--overlay .bar { gap: 16px 32px; }
.brand { display: block; line-height: 0; }
.brand__logo { height: 42px; width: auto; }
.brand__logo--lg { height: 46px; }
.brand__logo--footer { height: 52px; align-self: flex-start; }
.mainnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.mainnav > a:not(.btn) { color: inherit; text-decoration: none; }
.mainnav > a:not(.btn):hover { color: var(--accent); }
.mainnav .btn--primary { font-weight: 600; }
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.subnav__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.subnav__link--ink, .subnav__link--ink:hover { color: var(--ink); }

/* Sélecteur de langue */
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.avj .lang__link, .avj .lang__link:hover {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 38px; padding: 0 8px; border-radius: 999px;
  text-decoration: none; color: var(--ink);
}
.avj .lang__link[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- Visuels ---------- */
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover--hero     { object-position: 70% 50%; }
.cover--hero-low { object-position: 70% 55%; }
.cover--left     { object-position: 40% 50%; }
.cover--top      { object-position: 50% 20%; }
.cover--right    { object-position: 65% 40%; }
.fade-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(0deg, var(--ground) 0%, rgba(0,0,0,0) 100%); }
.fade-bottom--lg { height: 220px; }
.logo { width: auto; }
.logo--22 { height: 22px; } .logo--26 { height: 26px; } .logo--30 { height: 30px; }
.logo--34 { height: 34px; } .logo--fedamo { height: 40px; }
.logo-link { line-height: 0; }

/* ---------- Accueil : bannière ---------- */
.hero { position: relative; min-height: 820px; display: flex; align-items: flex-end; overflow: hidden; background-color: var(--deep); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,6,.92) 0%, rgba(5,8,6,.65) 45%, rgba(5,8,6,.1) 100%); }
.hero__content { position: relative; width: 100%; padding: 180px 24px var(--section-y); }
.hero__text { min-width: 0; container-type: inline-size; }
.hero__title { margin: 0; font-weight: 400; line-height: .9; }
.hero__line { display: block; color: #fff; white-space: nowrap; }
/* Taille plafonnée par la largeur de la colonne de texte (unités cqw) pour que chaque ligne
   tienne sur une ligne. Rapports mesurés = largeur du texte pour 1 px de police ; l'allemand est plus long. */
.hero__line--xl { font-family: var(--font-display); font-size: min(clamp(110px, 16vw, 240px), 100cqw / 2.55); letter-spacing: -.01em; }
.hero__line--md { margin-top: 18px; font-size: min(clamp(34px, 5vw, 70px), 100cqw / 8.8); font-weight: 300; letter-spacing: .01em; }
:lang(de) .hero__line--xl { font-size: min(clamp(110px, 16vw, 240px), 100cqw / 3.1); }
:lang(de) .hero__line--md { font-size: min(clamp(34px, 5vw, 70px), 100cqw / 13); }
.hero__line--accent { font-size: clamp(56px, 9vw, 132px); font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.hero__lead { max-width: 560px; margin: 28px 0 0; font-size: 19px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Compte à rebours (masqué tant que le script ne l'a pas initialisé) */
.countdown { margin-top: 32px; }
.countdown[hidden], .countdown [hidden] { display: none !important; }
.countdown__label { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.countdown__units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 440px; }
.countdown__unit { padding: 14px 6px 12px; border-radius: 14px; background: rgba(10,14,12,.55); border: 1px solid rgba(166,238,187,.35); text-align: center; backdrop-filter: blur(4px); }
.countdown__num { display: block; font-family: var(--font-display); font-size: clamp(34px, 4.5vw, 52px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.countdown__name { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.countdown__closed { display: inline-flex; align-items: center; margin: 0; padding: 12px 20px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); font-weight: 700; color: #fff; }
@media (max-width: 480px) {
  .countdown__units { gap: 8px; }
  .countdown__unit { padding: 12px 2px 10px; }
  .countdown__name { font-size: 10px; letter-spacing: .03em; }
}
.hero__org { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 72px; }
.hero__org-label { font-size: 13px; color: var(--muted); }

/* Formulaire de vote dans la bannière : sous le texte sur mobile / tablette,
   colonne de droite sur desktop (le haut du formulaire est visible dès le premier écran).
   Le cadre est ajusté à la hauteur de l'écran (desktop : tient dans le premier écran sous l'en-tête ;
   mobile / tablette : un écran complet quand on y arrive) ; la suite du questionnaire défile à
   l'intérieur du cadre. La hauteur CSS remplace l'attribut height (repli sans CSS). */
.hero__vote { margin-top: 48px; scroll-margin-top: 16px; }
.vote-frame--hero { border: 1px solid rgba(166,238,187,.25); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.vote-frame--hero .vote-frame__iframe { height: calc(100vh - 32px); height: calc(100svh - 32px); min-height: 480px; max-height: 1200px; }
@media (min-width: 1024px) {
  .hero { overflow: clip; }   /* « clip » au lieu de « hidden » : permet la colonne fixée (sticky) */
  .hero__content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 56px; align-items: start; }
  .hero__text { position: sticky; top: 32px; }
  .hero__vote { margin-top: 0; }
  /* 180 px = marge haute de .hero__content (sous l'en-tête) ; 32 px de respiration en bas */
  .vote-frame--hero .vote-frame__iframe { height: calc(100vh - 212px); height: calc(100svh - 212px); min-height: 520px; }
}
/* Mobile / tablette : le formulaire passe sous le texte, la bannière devient très haute et la photo
   (object-fit: cover sur toute la hauteur) serait fortement zoomée. La photo encadre donc seulement
   le premier écran (titre, compte à rebours, logos) puis se fond dans le fond sombre ; le formulaire
   est posé sur le fond uni. */
@media (max-width: 1023px) {
  .hero .cover--hero, .hero__shade { display: none; }
  .hero__text { position: relative; isolation: isolate; }
  .hero__text::before {
    content: ''; position: absolute; z-index: -1;
    top: -200px; bottom: -48px; left: 50%; width: 100vw; transform: translateX(-50%);
    background:
      linear-gradient(180deg, rgba(5,8,6,.35) 0%, rgba(5,8,6,.55) 45%, rgba(5,8,6,.85) 80%, var(--deep) 100%),
      url(../../images/hero-voiture.jpg) 70% 50% / cover no-repeat;
  }
}

/* ---------- Accueil : bandeau partenaires ---------- */
.chip-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.chip { min-height: 76px; display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line-strong); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: var(--muted); }

/* ---------- Cartes génériques ---------- */
.card { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.card--step  { padding: 24px; }
.card--prize { padding: 22px; }
.card__title { font-weight: 700; }
.card__text  { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ---------- Accueil : concept ---------- */
.media-row { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.media-row__main  { flex: 999 1 520px; min-width: 0; }
.media-row__aside { flex: 1 1 340px; min-width: 0; max-width: 460px; margin: 0 auto; }
.poster { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.steps__num   { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--accent); }
.steps__title { margin-top: 14px; font-weight: 700; }
.steps__text  { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* ---------- Accueil : lots ---------- */
.prizes { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.prize-main { flex: 1 1 380px; min-width: 0; padding: 36px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.prize-main__label { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.prize-main__title { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 60px); line-height: 1; text-transform: uppercase; }
.prize-main__text  { margin: 14px 0 0; font-size: 16px; line-height: 1.6; }
.prize-list { flex: 999 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* ---------- Accueil : gala ---------- */
.gala { display: flex; flex-wrap: wrap; align-items: stretch; gap: 56px; }
.gala__media { flex: 1 1 420px; min-width: 0; min-height: 380px; border-radius: 20px; overflow: hidden; position: relative; }
.gala__body  { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.gala__text  { margin: 24px 0 0; font-size: 18px; line-height: 1.7; color: var(--muted); }

/* ---------- Accueil : édition 2026 ---------- */
.stats { margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { padding: 28px; border-radius: 18px; background: var(--ground); border: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; }
.stat__label { font-size: 15px; color: var(--muted); }
.stat__value { margin: 0; font-family: var(--font-display); font-size: clamp(52px, 5.5vw, 72px); line-height: 1; color: var(--accent); }
.gallery { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gallery__item { margin: 0; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; position: relative; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 72px 24px 40px; background: var(--deep); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.site-footer__brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.site-footer__tagline { margin: 0; max-width: 340px; }
.site-footer__col { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.site-footer__links { flex-basis: 200px; gap: 12px; }
.site-footer__heading { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.site-footer__note { margin-top: 6px; }
.site-footer__support { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.site-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.flag { display: flex; gap: 3px; transform: skewX(-20deg); }
.flag > span { display: block; width: 28px; height: 4px; }
.flag__red { background: #EF3340; } .flag__white { background: #fff; } .flag__blue { background: #00A3E0; }

/* ---------- Pages secondaires : bandeau titre ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero__shade { position: absolute; inset: 0; background: rgba(5,8,6,.72); }
.page-hero__content { position: relative; }
.page-hero__inner { padding: 72px 24px 96px; }
.page-hero__inner--text { max-width: 928px; }
.cta-box { padding: 36px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-box--rules { margin-top: 72px; padding: 32px; border-radius: 18px; }
.cta-box__text { font-size: 20px; font-weight: 700; max-width: 640px; }
.cta-box__text--sm { font-size: 18px; max-width: none; }

/* ---------- Partenaires ---------- */
.cat-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.cat-card { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.cat-card__head { display: flex; align-items: center; gap: 14px; }
.cat-card__badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-size: 24px; }
.cat-card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cat-card__name { font-size: 19px; font-weight: 700; line-height: 1.3; }
.cat-card__partner { display: flex; flex-direction: column; gap: 8px; }
.cat-card__partner-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.logo-slot { min-height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 2px dashed rgba(255,255,255,.2); font-size: 14px; color: var(--muted); }
/* Partenaires Or / Argent / Bronze : pyramide inversée, la taille des cartes marque le niveau.
   Or : 1 carte par ligne (nom, logo, texte, lien) · Argent : 2 par ligne (nom, logo, texte)
   Bronze : 4 par ligne, 3 sur tablette, 2 sur mobile (nom, logo).
   Les logos sont posés sur un fond clair pour rester lisibles quelles que soient leurs couleurs. */
.tiers { display: flex; flex-direction: column; gap: 20px; }
.tier { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tier--gold { grid-template-columns: minmax(0, 1fr); }
.tier--silver { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier--bronze { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tier-card { min-width: 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.tier-card__logo { display: flex; align-items: center; justify-content: center; padding: 16px; border-radius: 12px; background: #F4F6F3; }
.tier-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tier-card__logo-slot { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #7A857F; }
.tier-card__name { margin: 0; overflow-wrap: anywhere; }
.tier-card__desc { margin: 12px 0 0; color: var(--muted); line-height: 1.65; }

.tier-card--gold {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px;
  border-color: rgba(166,238,187,.35);
  background: linear-gradient(120deg, rgba(166,238,187,.10) 0%, rgba(166,238,187,0) 55%), var(--surface);
}
.tier-card--gold .tier-card__logo { height: 200px; }
.tier-card--gold .tier-card__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; text-transform: uppercase; }
.tier-card--gold .tier-card__desc { max-width: 640px; font-size: 17px; }
.tier-card__link { margin-top: 24px; }

.tier-card--silver { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px; }
.tier-card--silver .tier-card__logo { height: 130px; }
.tier-card--silver .tier-card__name { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.tier-card--silver .tier-card__desc { font-size: 15px; }

.tier-card--bronze { display: flex; flex-direction: column; gap: 14px; padding: 18px; text-align: center; }
.tier-card--bronze .tier-card__logo { height: 96px; }
.tier-card--bronze .tier-card__name { font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

@media (max-width: 1023px) {
  .tier--bronze { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier-card--silver { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .tier-card--gold { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
  .tier-card--gold .tier-card__logo { height: 160px; }
  .tier--silver { grid-template-columns: minmax(0, 1fr); }
  .tier--bronze { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}


/* ---------- Règlement ---------- */
.rules { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.toc { padding: 28px 32px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.toc__title { margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.toc__list { margin: 0; padding-left: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 32px; font-size: 15px; }
.toc a { color: inherit; text-decoration: none; }
.toc a:hover { color: var(--accent); }
.art { margin-top: 32px; display: flex; flex-direction: column; gap: 48px; overflow-wrap: anywhere; }
.art section { scroll-margin-top: 24px; }
.art h2 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.15; text-transform: uppercase; color: var(--ink); }
.art h3 { margin: 28px 0 12px; font-size: 20px; font-weight: 700; color: var(--ink); }
.art h4 { margin: 22px 0 10px; font-size: 17px; font-weight: 700; color: var(--accent); }
.art h5 { margin: 18px 0 8px; font-size: 15px; font-weight: 700; font-style: italic; color: var(--ink); }
.art p, .art li { margin: 0 0 12px; font-size: 16px; line-height: 1.75; color: var(--body-text); }
.art ul { margin: 0 0 12px; padding-left: 22px; }
.art strong { color: var(--ink); }
.art .lot { padding-left: 16px; border-left: 2px solid rgba(166,238,187,.35); }
.art .note { padding: 10px 14px; border-radius: 10px; background: rgba(166,238,187,.06); font-size: 14px; }
.art .tbc { color: var(--accent); font-weight: 600; }

/* ---------- Cadre du formulaire de vote (iframe Qualifio) ---------- */
.vote-frame { width: 100%; max-width: 810px; margin: 0 auto; border-radius: 20px; overflow: hidden; background: rgba(10,14,12,.72); }
.vote-frame__iframe { display: block; width: 100%; max-width: 810px; border: 0; overflow-x: hidden; }

/* ---------- Tablette : en-tête sur deux lignes ----------
   Ligne 1 : logo + sélecteur de langue en haut à droite
   Ligne 2 : onglets (tailles desktop conservées) */
@media (max-width: 1179px) {
  .topbar { position: relative; }
  .topbar--overlay { position: absolute; }
  .topbar .lang { position: absolute; top: 20px; right: 24px; }
  .mainnav, .subnav { width: 100%; }
}

/* ---------- Mobile : en-tête sur deux lignes ----------
   Ligne 1 : logo réduit + sélecteur de langue (placé en absolu à droite)
   Ligne 2 : tous les onglets sur une seule ligne, taille de police proportionnelle à l'écran.
   Sur l'accueil, le bouton « Je vote » de l'en-tête est masqué : le bouton « Je vote maintenant »
   de la bannière est visible juste en dessous. Si un écran est trop étroit, la ligne défile
   horizontalement au lieu de casser la mise en page. */
@media (max-width: 767px) {
  .topbar { position: relative; padding: 14px 16px; }
  .topbar--overlay { position: absolute; }
  .topbar .bar, .topbar--overlay .bar { gap: 12px 0; }
  .brand__logo, .brand__logo--lg { height: clamp(24px, 8vw, 30px); }

  .topbar .lang { position: absolute; top: 14px; right: 16px; padding: 2px; font-size: 11px; }
  .avj .topbar .lang__link { min-width: 30px; min-height: 30px; padding: 0 6px; }

  .mainnav, .subnav {
    width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 4px;
    letter-spacing: .02em; white-space: nowrap;
    overflow-x: auto; scrollbar-width: none;
  }
  .mainnav::-webkit-scrollbar, .subnav::-webkit-scrollbar { display: none; }
  .mainnav { font-size: clamp(8.5px, 2.75vw, 13px); }
  .mainnav .btn { display: none; }
  .subnav { font-size: clamp(8.5px, 2.7vw, 13px); }
  .subnav__link { min-height: 34px; font-size: inherit; }
  .subnav__link svg { display: none; }
  .topbar .btn--sm { flex: none; min-height: 32px; padding: 0 12px; font-size: inherit; }

  .hero__content { padding-top: 132px; }
}
@media (max-width: 360px) {
  .mainnav, .subnav { letter-spacing: 0; }
}

/* ---------- Logos partenaires (cases de la homepage + bandeau au-dessus du footer) ---------- */
/* Les logos sont prévus pour un fond clair : on les pose sur la même plaque que les cartes Or. */
.chip--logo { min-height: 96px; padding: 16px 20px; border-color: transparent; background: #F4F6F3; }
.chip__logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 56px; object-fit: contain; }

.partner-strip { padding: 28px 24px; background: #F4F6F3; color: #0B0F0D; }
.partner-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 40px; }
.partner-strip__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4A5550; }
.partner-strip__logos { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 36px; margin: 0; padding: 0; list-style: none; }
.partner-strip__logo { display: block; width: auto; height: 34px; max-width: 150px; object-fit: contain; }
.partner-strip__logo--axa, .partner-strip__logo--codex, .partner-strip__logo--heineken { height: 46px; }
.partner-strip__logo--vandivinit { height: 30px; }
.partner-strip__logo--gridx { height: 22px; }
.partner-strip__all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; color: #0B0F0D; }
.partner-strip__all:hover { color: #0B0F0D; text-decoration: underline; }
@media (max-width: 767px) {
  .partner-strip { padding: 24px 16px; }
  .partner-strip__inner { flex-direction: column; gap: 16px; }
  .partner-strip__logos { gap: 16px 24px; }
  .partner-strip__logo { height: 28px; max-width: 120px; }
  .partner-strip__logo--axa, .partner-strip__logo--codex, .partner-strip__logo--heineken { height: 38px; }
  .partner-strip__logo--vandivinit { height: 24px; }
  .partner-strip__logo--gridx { height: 18px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
