/* ==========================================================================
   MISS LOLO — design « éditorial »
   Police : Montserrat (conservée du site d'origine)
   Couleur principale : #FFC600 (or), noir #0B0B0C et ivoire en secondaires.
   Toutes les valeurs de design passent par les variables :root ci-dessous.
   ========================================================================== */

:root {
    /* Couleurs — principale */
    --color-primary: #FFC600;
    --color-primary-hover: #E6B000;
    --color-primary-soft: #FFF3C2;
    --color-primary-deep: #B88A00;      /* contours / chiffres décoratifs */
    --color-primary-ink: #7A5C00;       /* texte or sur fond clair (contraste AA) */

    /* Couleurs — secondaires (sobres) */
    --color-ink: #0B0B0C;
    --color-ink-2: #17171A;
    --color-ink-3: #232328;
    --color-text: #2B2B30;
    --color-muted: #6A6A72;
    --color-on-dark: #E9E7E0;
    --color-muted-on-dark: #A9A79F;
    --color-surface: #FFFFFF;
    --color-surface-alt: #FAF7EF;       /* ivoire chaud */
    --color-line: #E8E3D5;
    --color-line-dark: rgb(255 255 255 / .12);
    --color-success: #1F7A4D;
    --color-success-bg: #E7F5EC;
    --color-danger: #B3261E;
    --color-danger-bg: #FCECEA;

    /* Typographie */
    --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fs-xs: .75rem;
    --fs-sm: .9375rem;
    --fs-base: 1rem;
    --fs-lg: 1.15rem;
    --fs-xl: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
    --fs-h3: clamp(1.1rem, 1rem + .4vw, 1.3rem);
    --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
    --fs-h1: clamp(2.4rem, 1.2rem + 4.6vw, 4.8rem);
    --fs-display: clamp(2.7rem, 1.2rem + 5.4vw, 5.6rem);
    --lh-body: 1.7;
    --lh-title: 1.1;

    /* Espacements */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --space-9: 7rem;
    --container: 1200px;
    --container-narrow: 780px;
    --gutter: clamp(1.1rem, 4vw, 2.25rem);

    /* Bordures & rayons */
    --border: 1px solid var(--color-line);
    --radius-xs: 4px;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    /* Ombres (volontairement discrètes) */
    --shadow-sm: 0 1px 2px rgb(11 11 12 / .06);
    --shadow: 0 10px 30px rgb(11 11 12 / .1);
    --shadow-lg: 0 24px 60px rgb(11 11 12 / .22);

    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font-sans); font-size: var(--fs-base); line-height: var(--lh-body);
    color: var(--color-text); background: var(--color-surface); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary-ink); text-underline-offset: 3px; }
a:hover { color: var(--color-ink); }
h1, h2, h3 { margin: 0 0 var(--space-4); line-height: var(--lh-title); color: var(--color-ink); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.center { text-align: center; }
.big { font-size: var(--fs-lg); }
.skip-link { position: absolute; left: var(--space-4); top: -80px; z-index: 100; background: var(--color-primary); color: var(--color-ink); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: var(--space-3); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }
.section { padding-block: var(--space-9); }
.section-tight { padding-block: var(--space-7) var(--space-9); }
.section-alt { background: var(--color-surface-alt); }
.section-dark { background: var(--color-ink); color: var(--color-on-dark); }
.section-dark h2 { color: #fff; }

/* Apparition au défilement (uniquement si JS actif) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: 1rem 1.9rem; border: 2px solid transparent; border-radius: var(--radius-pill);
    font: 700 .8125rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: var(--color-ink); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-ink); }
.btn-dark { background: var(--color-ink); color: var(--color-primary); }
.btn-dark:hover { background: var(--color-ink-3); color: var(--color-primary); }
.btn-ghost { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn-ghost:hover { background: var(--color-ink); color: var(--color-primary); }
.btn-lg { padding: 1.2rem 2.4rem; font-size: .875rem; }
.btn[hidden] { display: none; }

/* ---------- Header flottant ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; pointer-events: none; }
.header-pill {
    pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: space-between;
    width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; padding: .45rem .5rem .45rem .9rem;
    background: rgb(11 11 12 / .94); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--color-line-dark); border-radius: var(--radius-pill); box-shadow: var(--shadow);
}
.brand img { height: 48px; width: auto; }
.nav ul { display: flex; align-items: center; gap: var(--space-1); }
.nav a { display: block; padding: .65rem 1.05rem; color: var(--color-on-dark); text-decoration: none; font-size: .875rem; font-weight: 500; border-radius: var(--radius-pill); transition: background .2s, color .2s; }
.nav a:hover { background: rgb(255 255 255 / .1); color: #fff; }
.nav a.is-active { color: var(--color-primary); }
.nav a.nav-cta { margin-left: var(--space-2); background: var(--color-primary); color: var(--color-ink); font-weight: 700; }
.nav a.nav-cta:hover { background: var(--color-primary-hover); }
.nav-toggle { display: none; width: 46px; height: 46px; background: none; border: 0; padding: 12px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--color-primary); margin: 5px 0; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Notification (retour de formulaire) */
.toast { position: fixed; z-index: 70; top: 5.5rem; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: var(--space-3); width: min(100% - 2 * var(--gutter), 560px); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-weight: 500; animation: toastIn .5s var(--ease); }
.toast p { margin: 0; flex: 1; font-size: var(--fs-sm); }
.toast svg { flex: none; width: 1.4rem; height: 1.4rem; fill: currentColor; }
.toast button { flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.toast-success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success); }
.toast-error { background: var(--color-danger-bg); color: var(--color-danger); border: 1px solid var(--color-danger); }
@keyframes toastIn { from { opacity: 0; translate: -50% -16px; } }

/* ---------- Hero (accueil) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 860px); display: grid; align-items: center; padding-block: 8.5rem var(--space-8); background: var(--color-ink); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 40%, rgb(255 198 0 / .22), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgb(255 198 0 / .1), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-8); align-items: center; }
.hero h1 { color: #fff; font-size: var(--fs-display); margin-bottom: var(--space-5); }
.hero h1 em { font-style: normal; color: var(--color-primary); }
.hero .lead { max-width: 46ch; font-size: var(--fs-xl); color: var(--color-on-dark); margin-bottom: var(--space-6); }
.hero-visual { position: relative; width: min(100%, 460px); margin-inline: auto; }
.hero-visual::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--color-primary); border-radius: var(--radius-pill) var(--radius-pill) var(--radius-lg) var(--radius-lg); }
.arch { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-pill) var(--radius-pill) var(--radius-lg) var(--radius-lg); background: var(--color-ink-3); }
.arch-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: slideFade 15s infinite; }
.arch-slide:nth-child(2) { animation-delay: 5s; }
.arch-slide:nth-child(3) { animation-delay: 10s; }
@keyframes slideFade { 0% { opacity: 0; } 5% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; } }
.seal { position: absolute; left: -2.6rem; bottom: 2.4rem; width: 152px; height: 152px; display: grid; place-items: center; background: var(--color-ink); border-radius: 50%; box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-lg); }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.seal text { font: 700 11.5px var(--font-sans); letter-spacing: 2.2px; fill: var(--color-primary); }
.seal img { width: 52%; height: auto; }
@keyframes spin { to { rotate: 1turn; } }

/* Ruban de candidates */
.ribbon { background: var(--color-surface-alt); border-block: 1px solid var(--color-line); padding-block: var(--space-5); overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--space-5); width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; }
.marquee-track img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--space-5) / 2)); } }

/* ---------- Un mouvement ---------- */
.movement { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-9); align-items: center; }
.collage { position: relative; margin: 0 var(--space-5) var(--space-5) 0; }
.collage::before { content: ""; position: absolute; inset: var(--space-5) calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-5); background: var(--color-primary); border-radius: var(--radius-xs); z-index: -1; }
.collage { z-index: 0; isolation: isolate; }
.collage img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xs); }
.collage-year { position: absolute; left: calc(-1 * var(--space-5)); bottom: var(--space-6); padding: var(--space-3) var(--space-5); background: var(--color-ink); color: var(--color-primary); font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.collage-year small { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-on-dark); margin-bottom: var(--space-1); }
.movement-body h2 { margin-bottom: var(--space-5); }
.movement-body .big { color: var(--color-muted); margin-bottom: var(--space-6); }

/* ---------- Engagement (carte sur photo) ---------- */
.overlap { position: relative; padding: clamp(11rem, 26vw, 19rem) 0 var(--space-9); background: var(--color-surface-alt); }
.overlap-bg { position: absolute; inset: 0 0 auto 0; width: 100%; height: 72%; object-fit: cover; }
.overlap::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 72%; z-index: 1; background: linear-gradient(180deg, rgb(11 11 12 / .25), rgb(11 11 12 / .6)); }
.overlap .container { position: relative; z-index: 2; }
.overlap-card { max-width: 640px; margin-left: auto; padding: clamp(1.75rem, 4vw, 3.25rem); background: var(--color-ink); color: var(--color-on-dark); border-top: 6px solid var(--color-primary); border-radius: var(--radius-xs); box-shadow: var(--shadow-lg); }
.overlap-card h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.overlap-card p { color: var(--color-on-dark); }

/* ---------- Pourquoi candidate ---------- */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--space-9); align-items: start; }
.why-intro { position: sticky; top: 6.5rem; }
.why-intro p { font-size: var(--fs-lg); color: var(--color-muted); }
.why-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-4); padding-block: var(--space-6); border-top: 1px solid var(--color-line); }
.why-list li:last-child { border-bottom: 1px solid var(--color-line); }
.why-num { font-size: 3.4rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--color-primary-deep); transition: color .3s var(--ease); }
.why-list li:hover .why-num { color: var(--color-primary); }
.why-list h3 { margin-bottom: var(--space-2); }
.why-list p { margin: 0; color: var(--color-muted); }
.film { display: flex; gap: var(--space-4); margin-top: var(--space-8); padding: var(--space-6) var(--gutter); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--color-primary) transparent; }
.film img { flex: none; width: clamp(170px, 20vw, 240px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); scroll-snap-align: start; }
.film img:nth-child(even) { translate: 0 1.75rem; }

/* ---------- Vision ---------- */
.vision { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--space-9); background: var(--color-ink); color: var(--color-on-dark); }
.vision-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: grayscale(.4); }
.vision::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--color-ink) 15%, rgb(11 11 12 / .55)); }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.vision h2 { color: #fff; }
.vision-quote { position: relative; margin-top: var(--space-6); padding-left: var(--space-5); border-left: 4px solid var(--color-primary); font-size: var(--fs-xl); font-weight: 600; line-height: 1.4; color: var(--color-primary); }
.vision-text p { color: var(--color-on-dark); font-size: var(--fs-lg); }
.vision-text p:last-child { margin: 0; }

/* ---------- Galeries ---------- */
.masonry { column-width: 230px; column-gap: var(--space-3); }
.masonry li { break-inside: avoid; margin-bottom: var(--space-3); }
.masonry a { display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-surface-alt); }
.masonry img { width: 100%; transition: transform .6s var(--ease), filter .3s; }
.masonry a:hover img { transform: scale(1.05); }
.masonry-lg { column-width: 270px; }
.label-title { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); font-size: var(--fs-sm); letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.label-title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--color-primary), transparent); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(120px, 17vw, 210px); grid-auto-flow: dense; gap: var(--space-3); margin-bottom: var(--space-7); }
.bento li { overflow: hidden; border-radius: var(--radius-sm); }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bento li:hover img { transform: scale(1.05); }
/* Placement explicite : mosaïque 4 × 4 sans trou */
.bento li:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
.bento li:nth-child(2) { grid-area: 1 / 3; }
.bento li:nth-child(3) { grid-area: 1 / 4; }
.bento li:nth-child(4) { grid-area: 2 / 3 / 4 / 4; }
.bento li:nth-child(5) { grid-area: 2 / 4; }
.bento li:nth-child(6) { grid-area: 3 / 1; }
.bento li:nth-child(7) { grid-area: 3 / 2; }
.bento li:nth-child(8) { grid-area: 3 / 4; }
.bento li:nth-child(9) { grid-area: 4 / 1 / 5 / 3; }
.bento li:nth-child(10) { grid-area: 4 / 3 / 5 / 5; }

/* ---------- Onglets missions / objectifs ---------- */
.tablist { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-7); }
.tablist button { padding: var(--space-4) var(--space-5); text-align: left; font: 700 var(--fs-base)/1.3 var(--font-sans); color: var(--color-ink); background: transparent; border: 2px solid var(--color-line); border-radius: var(--radius); cursor: pointer; transition: all .25s var(--ease); }
.tablist button:hover { border-color: var(--color-primary); }
.tablist button[aria-selected="true"] { background: var(--color-ink); color: var(--color-primary); border-color: var(--color-ink); }
.tabpanel { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-8); align-items: start; }
.tabpanel[hidden] { display: none; }
.tab-media { position: sticky; top: 6.5rem; margin: 0; }
.tab-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-xs); }
.steps { counter-reset: s; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--color-line); }
.steps li:first-child { padding-top: 0; }
.steps span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--color-primary); color: var(--color-ink); font-weight: 800; font-size: var(--fs-sm); }
.steps p { margin: 0; align-self: center; }
.steps strong { color: var(--color-ink); }

/* ---------- Actualités ---------- */
.news { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-8); align-items: center; }
.news-card { display: grid; grid-template-columns: 42% 1fr; min-height: 280px; overflow: hidden; background: var(--color-ink-2); border: 1px solid var(--color-line-dark); border-radius: var(--radius-lg); color: var(--color-on-dark); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.news-card:hover { border-color: var(--color-primary); transform: translateY(-4px); color: var(--color-on-dark); }
.news-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.news-body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); padding: var(--space-6); }
.news-body strong { font-size: var(--fs-xl); color: #fff; line-height: 1.2; }
.news-body time { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary); }
.link-more { font-style: normal; font-weight: 700; font-size: var(--fs-sm); color: var(--color-primary); }

.feature { display: grid; grid-template-columns: 5fr 6fr; gap: var(--space-8); align-items: center; }
.feature-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: var(--color-surface-alt); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.04); }
.tag { position: absolute; left: var(--space-4); top: var(--space-4); padding: .3rem .85rem; background: var(--color-primary); color: var(--color-ink); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.feature-body h2 { font-size: var(--fs-h1); margin-bottom: var(--space-5); }
.feature-body h2 a { color: var(--color-ink); text-decoration: none; }
.feature-body h2 a:hover { color: var(--color-primary-ink); }
.feature-body .big { color: var(--color-muted); margin-bottom: var(--space-6); }
.meta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-4); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
.meta span::before { content: "•"; margin-right: var(--space-3); color: var(--color-primary-deep); }

/* ---------- En-tête des pages intérieures ---------- */
.page-hero { position: relative; overflow: hidden; padding: 9.5rem 0 var(--space-7); background: var(--color-surface-alt); border-bottom: 1px solid var(--color-line); }
.page-hero::before { content: ""; position: absolute; right: -8rem; top: -9rem; width: 28rem; height: 28rem; border-radius: 50%; background: radial-gradient(circle, rgb(255 198 0 / .5), rgb(255 198 0 / 0) 68%); }
.page-hero .container { position: relative; }
.page-hero h1 { margin: var(--space-3) 0 0; font-size: var(--fs-display); }
.page-hero h1::after { content: ""; display: block; width: 88px; height: 8px; margin-top: var(--space-5); background: var(--color-primary); border-radius: var(--radius-pill); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 500; color: var(--color-muted); }
.breadcrumb a { color: var(--color-primary-ink); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: var(--space-5); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:is(.form, .timeline) legend, :is(.form, .timeline) label:not(.sublabel):not(.pay-option):not(.dropzone):not(.sr-only) { display: block; margin-bottom: var(--space-2); font-weight: 700; font-size: var(--fs-sm); color: var(--color-ink); }
:is(.form, .timeline) legend { padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid-2 legend { grid-column: 1 / -1; }
.field { min-width: 0; }
abbr[title] { color: var(--color-danger); text-decoration: none; }
.sublabel { display: block; margin-top: var(--space-1); font-size: var(--fs-xs); color: var(--color-muted); }
input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], textarea {
    width: 100%; padding: 1rem 1.15rem; font: inherit; color: var(--color-ink); background: var(--color-surface-alt);
    border: 2px solid transparent; border-radius: var(--radius-sm); transition: border-color .2s, background .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 150px; }
input:hover, textarea:hover { border-color: var(--color-line); }
input:focus, textarea:focus { outline: none; background: #fff; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgb(255 198 0 / .25); }
.hint { font-size: var(--fs-sm); color: var(--color-muted); }
.dropzone { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-7) var(--space-4); text-align: center; color: var(--color-muted); font-weight: 500; border: 2px dashed #D9D1B7; border-radius: var(--radius); background: var(--color-surface-alt); cursor: pointer; transition: border-color .2s, background .2s; overflow-wrap: anywhere; }
.dropzone:hover, .dropzone.is-over, #photos:focus-visible + .dropzone { border-color: var(--color-primary); background: var(--color-primary-soft); }
.dropzone svg { width: 2.2rem; height: 2.2rem; fill: var(--color-primary-ink); }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--space-8); align-items: start; }
.contact-panel { padding: clamp(1.75rem, 4vw, 3rem); background: var(--color-ink); color: var(--color-on-dark); border-radius: var(--radius-lg); position: sticky; top: 6.5rem; }
.contact-panel h2 { color: #fff; font-size: var(--fs-h2); }
.contact-panel strong { color: #fff; }
.contact-list { display: grid; gap: var(--space-5); margin: var(--space-6) 0; }
.contact-list li { padding-top: var(--space-4); border-top: 1px solid var(--color-line-dark); }
.contact-list span { display: block; margin-bottom: var(--space-1); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-primary); }
.contact-list a, .contact-list strong { font-size: var(--fs-lg); font-weight: 600; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--color-primary); }
.social { display: flex; gap: var(--space-3); }
.social a { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--color-primary); transition: transform .2s, background .2s; }
.social a:hover { transform: translateY(-3px); background: #fff; }
.social svg { width: 1.2rem; height: 1.2rem; fill: var(--color-ink); }
.map-wrap { padding-bottom: var(--space-9); }
.map { overflow: hidden; border-radius: var(--radius-lg); background: var(--color-surface-alt); }
.map iframe { display: block; width: 100%; height: clamp(300px, 40vw, 440px); border: 0; filter: grayscale(.85) contrast(1.05); transition: filter .4s; }
.map:hover iframe { filter: none; }

/* Soutenez-nous : frise numérotée */
.timeline { position: relative; display: grid; gap: var(--space-7); }
.timeline::before { content: ""; position: absolute; left: 1.4rem; top: 1.5rem; bottom: 7.5rem; width: 2px; background: linear-gradient(var(--color-primary), var(--color-line)); }
.tl-step { position: relative; display: grid; gap: var(--space-4); padding: 0 0 0 4.5rem; border: 0; margin: 0; min-width: 0; }
.tl-num { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--color-ink); color: var(--color-primary); font-weight: 800; box-shadow: 0 0 0 6px var(--color-surface); }
.tl-step legend { padding: 0; float: left; width: 100%; margin-bottom: var(--space-4); }
.amount label { font-size: var(--fs-sm); }
.amount input { padding: .4rem 0 .6rem; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); font-weight: 800; letter-spacing: -.03em; background: transparent; border-width: 0 0 3px; border-color: var(--color-ink); border-radius: 0; }
.amount input:focus { background: transparent; box-shadow: none; border-color: var(--color-primary); }
.amount input::placeholder { color: var(--color-line); }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); clear: both; }
.pay-option { cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option span { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); height: 100%; padding: var(--space-5); border: 2px solid var(--color-line); border-radius: var(--radius); font-weight: 700; color: var(--color-ink); transition: all .25s var(--ease); }
.pay-option svg { width: 2rem; height: 2rem; fill: var(--color-primary-ink); transition: fill .25s; }
.pay-option:hover span { border-color: var(--color-primary); }
.pay-option input:checked + span { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-primary); }
.pay-option input:checked + span svg { fill: var(--color-primary); }
.pay-option input:focus-visible + span { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.timeline .btn-lg { justify-self: start; margin-left: 4.5rem; }

/* Candidature : affiche + assistant par étapes */
.apply { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-8); align-items: start; }
.poster { position: sticky; top: 6.5rem; margin: 0; padding: var(--space-3); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); rotate: -2deg; transition: rotate .4s var(--ease); }
.poster:hover { rotate: 0deg; }
.poster img { width: 100%; border-radius: var(--radius-sm); }
.wizard { padding: clamp(1.5rem, 3.5vw, 2.75rem); background: #fff; border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.wiz-progress { display: none; gap: var(--space-2); }
.js .wiz-progress { display: grid; grid-template-columns: repeat(3, 1fr); }
.wiz-progress li { display: flex; align-items: center; gap: var(--space-2); padding-top: var(--space-3); border-top: 4px solid var(--color-line); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); transition: border-color .3s, color .3s; }
.wiz-progress li span { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--color-line); color: var(--color-ink); font-size: var(--fs-xs); }
.wiz-progress li.is-current, .wiz-progress li.is-done { border-color: var(--color-primary); color: var(--color-ink); }
.wiz-progress li.is-current span, .wiz-progress li.is-done span { background: var(--color-primary); }
.wiz-step { display: grid; gap: var(--space-5); align-content: start; }
.js .wiz-step:not(.is-current) { display: none; }
.wiz-actions { display: flex; gap: var(--space-3); justify-content: flex-end; flex-wrap: wrap; }
.js .wiz-actions [data-submit] { display: none; }
.js .wiz-actions [data-submit].is-on { display: inline-flex; }
.field.has-error input, .field.has-error textarea { border-color: var(--color-danger); }

/* Article (Octobre Rose) */
.story-hero { overflow: hidden; padding: 9.5rem 0 var(--space-8); background: var(--color-ink); color: #fff; }
.story-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--space-8); align-items: center; }
.story-hero h1 { color: #fff; font-size: var(--fs-display); margin: var(--space-3) 0 var(--space-4); }
.story-hero .breadcrumb, .story-hero .breadcrumb a { color: var(--color-primary); }
.story-hero .meta { color: var(--color-on-dark); }
.story-hero .meta a { color: var(--color-primary); }
.story-cover { position: relative; margin: 0; max-width: 340px; justify-self: center; }
.story-cover::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 2px solid var(--color-primary); border-radius: var(--radius-lg); }
.story-cover img { position: relative; width: 100%; aspect-ratio: 9 / 14; object-fit: cover; border-radius: var(--radius-lg); }
.story-lead { padding-left: var(--space-5); border-left: 5px solid var(--color-primary); font-size: var(--fs-xl); line-height: 1.6; color: var(--color-ink); font-weight: 500; }
.comments { margin-top: var(--space-8); padding-top: var(--space-7); border-top: 2px solid var(--color-ink); }
.comments h2 { font-size: var(--fs-h2); }
.not-found { padding: 10rem 0 var(--space-8); }
.big-code { font-size: clamp(5rem, 20vw, 11rem); font-weight: 800; line-height: 1; margin: 0; color: var(--color-primary); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-top: var(--space-8); background: var(--color-ink); color: var(--color-on-dark); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--color-primary); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-5); padding-bottom: var(--space-6); }
.footer-brand { display: flex; align-items: center; gap: var(--space-4); color: var(--color-primary); font-weight: 800; letter-spacing: .12em; text-decoration: none; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand:hover { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-nav a { color: var(--color-on-dark); font-weight: 500; font-size: var(--fs-sm); text-decoration: none; }
.footer-nav a:hover { color: var(--color-primary); }
.footer-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.footer-contact li { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--color-line-dark); border-radius: var(--radius); background: var(--color-ink-2); }
.footer-contact svg { flex: none; width: 3rem; height: 3rem; padding: .8rem; border-radius: 50%; background: var(--color-primary); fill: var(--color-ink); }
.footer-contact span { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted-on-dark); }
.footer-contact a, .footer-contact strong { color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--color-primary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-7); padding-block: var(--space-5); border-top: 1px solid var(--color-line-dark); font-size: var(--fs-sm); color: var(--color-muted-on-dark); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--color-primary); font-weight: 700; }
.to-top { position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 40; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--color-primary); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top svg { width: 1.5rem; height: 1.5rem; fill: var(--color-ink); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgb(11 11 12 / .94); }
.lightbox-stage { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 4rem; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.lb-btn:hover { background: var(--color-primary); color: var(--color-ink); }
.lb-close { top: var(--space-4); right: var(--space-4); }
.lb-prev { left: var(--space-4); top: 50%; translate: 0 -50%; }
.lb-next { right: var(--space-4); top: 50%; translate: 0 -50%; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .hero { min-height: auto; padding-top: 7.5rem; }
    .hero-grid, .movement, .why, .vision-grid, .tabpanel, .news, .feature, .contact, .apply, .story-grid { grid-template-columns: 1fr; gap: var(--space-7); }
    .hero-visual { width: min(100%, 380px); margin-bottom: var(--space-5); }
    .seal { left: -1rem; width: 120px; height: 120px; }
    .movement { gap: var(--space-8); }
    .collage { max-width: 440px; }
    .why-intro, .tab-media, .contact-panel, .poster { position: static; }
    .tab-media { max-width: 420px; }
    .poster { max-width: 480px; }
    .film img:nth-child(even) { translate: 0; }
    .footer-contact { grid-template-columns: 1fr; }
    .section { padding-block: var(--space-8); }
    .overlap-card { margin-inline: auto; }
}
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav { position: absolute; left: 0; right: 0; top: calc(100% + 10px); padding: var(--space-3); background: var(--color-ink); border: 1px solid var(--color-line-dark); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity .25s, translate .25s var(--ease), visibility .25s; }
    .nav.is-open { opacity: 1; visibility: visible; translate: 0 0; }
    .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .nav a { padding: .95rem 1.1rem; border-radius: var(--radius-sm); }
    .nav a.nav-cta { margin: var(--space-2) 0 0; text-align: center; }
}
@media (max-width: 640px) {
    .tablist, .grid-2, .pay { grid-template-columns: 1fr; }
    .news-card { grid-template-columns: 1fr; }
    .news-card img { aspect-ratio: 16 / 10; }
    .why-list li { grid-template-columns: 3.6rem 1fr; }
    .why-num { font-size: 2.4rem; }
    .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
    .bento li:nth-child(n) { grid-area: auto; }
    .bento li:nth-child(1) { grid-area: span 2 / span 2; }
    .bento li:nth-child(4) { grid-row: span 2; }
    .masonry { column-width: 150px; }
    .timeline::before { left: 1.15rem; }
    .tl-step { padding-left: 3.6rem; }
    .tl-num { width: 2.4rem; height: 2.4rem; }
    .timeline .btn-lg { margin-left: 0; justify-self: stretch; }
    .wiz-progress li { font-size: 0; gap: 0; }
    .wiz-progress li span { font-size: var(--fs-xs); }
    .lightbox-stage { padding: 4.5rem .5rem; }
    .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
    .overlap-bg, .overlap::before { height: 62%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .arch-slide:first-child { opacity: 1; }
    .marquee { overflow-x: auto; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   VOTE — compte à rebours, podium, cartes des nominées, fenêtre de paiement
   ========================================================================== */
.btn-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .5); }
.btn-light:hover { background: #fff; color: var(--color-ink); border-color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.hero-count { margin-bottom: var(--space-6); }
.hero-count p { margin: 0 0 var(--space-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--color-primary); }
.countdown { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.countdown b { display: grid; justify-items: center; min-width: 76px; padding: var(--space-3) var(--space-3) var(--space-2); background: rgb(255 255 255 / .07); border: 1px solid var(--color-line-dark); border-radius: var(--radius-sm); }
.countdown i { font-style: normal; font-size: 1.9rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--color-primary); }
.countdown em { font-style: normal; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.tab-body { min-width: 0; }
.tab-cta { margin-top: var(--space-6); }

/* Podium (accueil) */
.vote-cta { background: var(--color-primary-soft); }
.vote-cta h2 { max-width: 20ch; margin-inline: auto; margin-bottom: var(--space-7); }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: var(--space-4); margin: 0 auto var(--space-7); max-width: 720px; }
.podium li { display: flex; flex-direction: column; align-items: center; flex: 1 1 0; min-width: 0; text-align: center; }
.podium-avatar { position: relative; display: grid; place-items: center; width: 110px; aspect-ratio: 1; margin-bottom: var(--space-3); overflow: hidden; border-radius: 50%; background: var(--color-ink-3); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--ring, var(--color-primary)); }
.podium-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.podium-1 .podium-avatar { width: 150px; --ring: var(--color-primary); }
.podium-2 { --ring: #BFC4CF; }
.podium-3 { --ring: #D79B6B; }
.podium strong { max-width: 100%; font-size: var(--fs-sm); line-height: 1.3; color: var(--color-ink); overflow-wrap: anywhere; }
.podium li > span { margin-bottom: var(--space-3); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; color: var(--color-primary-ink); }
.podium-step { display: grid; place-items: center; width: 100%; background: var(--color-ink); border-radius: var(--radius-sm) var(--radius-sm) 0 0; color: var(--color-primary); font-size: 2rem; font-weight: 800; }
.podium-1 .podium-step { height: 96px; }
.podium-2 .podium-step { height: 68px; }
.podium-3 .podium-step { height: 48px; }

/* En-tête et chiffres clés de /vote */
.vote-hero { position: relative; overflow: hidden; padding: 9.5rem 0 7rem; background: var(--color-ink); color: #fff; }
.vote-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 85% 20%, rgb(255 198 0 / .24), transparent 70%); }
.vote-hero .container { position: relative; }
.vote-hero h1 { margin: var(--space-3) 0 var(--space-4); color: #fff; font-size: var(--fs-display); }
.vote-hero .lead { max-width: 32ch; margin: 0; font-size: var(--fs-xl); color: var(--color-on-dark); }
.vote-hero .breadcrumb, .vote-hero .breadcrumb a { color: var(--color-primary); }
.vote-hero-sm { padding-bottom: var(--space-8); }
.vote-hero-sm h1 { font-size: var(--fs-h1); }
.vote-stats { position: relative; z-index: 2; margin-top: -3.25rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.stat { display: grid; align-content: center; gap: var(--space-1); padding: var(--space-5); background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat > span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); }
.stat > strong { font-size: 1.7rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.stat small { font-size: .8rem; font-weight: 700; color: var(--color-primary-ink); }
.stat-timer { background: var(--color-ink); border-color: var(--color-ink); }
.stat-timer > span { color: var(--color-primary); }
.stat-timer > strong { color: #fff; font-size: 1.15rem; }
.stat-timer .countdown { gap: var(--space-2); }
.stat-timer .countdown b { min-width: 0; padding: 0; background: none; border: 0; grid-auto-flow: column; align-items: baseline; gap: 2px; }
.stat-timer .countdown i { font-size: 1.5rem; }
.stat-timer .countdown em { font-size: .7rem; text-transform: none; }

.vote-tools { padding-block: var(--space-6) var(--space-5); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.search { position: relative; flex: 1 1 280px; }
.search svg { position: absolute; left: 1.1rem; top: 50%; width: 1.2rem; height: 1.2rem; translate: 0 -50%; fill: var(--color-muted); pointer-events: none; }
.search input { padding-left: 3rem; border-radius: var(--radius-pill); }
.tools select { padding: .95rem 1.25rem; font: inherit; border: 2px solid var(--color-line); border-radius: var(--radius-pill); background: #fff; color: var(--color-ink); }
.seg { display: inline-flex; padding: 4px; background: var(--color-surface-alt); border: var(--border); border-radius: var(--radius-pill); }
.seg button { padding: .65rem 1.25rem; font: 700 .8125rem/1 var(--font-sans); letter-spacing: .04em; color: var(--color-muted); background: none; border: 0; border-radius: var(--radius-pill); cursor: pointer; transition: all .2s; }
.seg button.is-on { background: var(--color-ink); color: var(--color-primary); }
.vote-board { padding-top: var(--space-6); }
.notice { margin: 0 0 var(--space-6); padding: var(--space-4) var(--space-5); background: #fff; border: var(--border); border-left: 4px solid var(--color-primary); border-radius: var(--radius-sm); font-weight: 500; }

/* Cartes de vote : tête sombre + coupon perforé */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: var(--space-5); }
.vcard { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: var(--border); border-radius: var(--radius-lg); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.vcard[hidden] { display: none; }
.vcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.vcard.is-target { outline: 3px solid var(--color-primary); outline-offset: 4px; }
.vcard-head { position: relative; padding: 3.25rem var(--space-4) 1.75rem; background: radial-gradient(70% 70% at 50% 40%, #30290f, var(--color-ink) 75%); }
.vcard-avatar { position: relative; display: grid; place-items: center; width: min(86%, 240px); aspect-ratio: 1; margin-inline: auto; overflow: hidden; border-radius: 50%; background: var(--color-ink-3); box-shadow: 0 0 0 4px var(--color-ink), 0 0 0 6px var(--color-primary-deep); transition: box-shadow .3s; }
.vcard-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard-initials { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--color-primary); }
.vcard-rank { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: baseline; gap: 2px; padding: .4rem .8rem; background: rgb(255 255 255 / .1); border-radius: var(--radius-pill); color: #fff; font-size: .95rem; font-weight: 800; line-height: 1; }
.vcard-rank small { font-size: .6rem; font-weight: 700; opacity: .7; }
.vcard.top-1 .vcard-rank { background: var(--color-primary); color: var(--color-ink); }
.vcard.top-2 .vcard-rank { background: #D5D9E2; color: var(--color-ink); }
.vcard.top-3 .vcard-rank { background: #D79B6B; color: var(--color-ink); }
.vcard.top-1 .vcard-avatar { box-shadow: 0 0 0 4px var(--color-ink), 0 0 0 7px var(--color-primary), 0 0 44px rgb(255 198 0 / .4); }
.vcard.top-2 .vcard-avatar { box-shadow: 0 0 0 4px var(--color-ink), 0 0 0 6px #D5D9E2; }
.vcard.top-3 .vcard-avatar { box-shadow: 0 0 0 4px var(--color-ink), 0 0 0 6px #D79B6B; }
.vcard-share { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: rgb(255 255 255 / .1); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s; }
.vcard-share svg { width: 1.05rem; height: 1.05rem; fill: #fff; }
.vcard-share:hover { background: var(--color-primary); }
.vcard-share:hover svg { fill: var(--color-ink); }
.vcard-body { position: relative; display: flex; flex: 1; flex-direction: column; padding: var(--space-5); border-top: 2px dashed var(--color-line); }
.vcard-body::before, .vcard-body::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--color-surface-alt); border: var(--border); }
.vcard-body::before { left: -13px; }
.vcard-body::after { right: -13px; }
.vcard-cat { margin: 0 0 var(--space-1); text-align: center; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-primary-ink); }
.vcard h3 { margin-bottom: var(--space-4); text-align: center; font-size: 1.1rem; line-height: 1.25; }
.meter { height: 8px; margin-top: auto; overflow: hidden; background: var(--color-surface-alt); border: var(--border); border-radius: var(--radius-pill); }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--color-primary-deep), var(--color-primary)); border-radius: inherit; transition: width .8s var(--ease); }
.vcard-stats { display: flex; align-items: baseline; justify-content: space-between; margin: var(--space-3) 0 var(--space-4); font-size: var(--fs-sm); color: var(--color-muted); }
.vcard-stats strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.vcard-stats [data-part] { font-weight: 700; color: var(--color-primary-ink); }

/* Fenêtres (vote, partage) */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; padding: var(--space-4); overflow-y: auto; background: rgb(11 11 12 / .74); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }
.modal-panel { position: relative; width: min(100%, 480px); margin-block: auto; overflow: hidden; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(24px); transition: transform .3s var(--ease); }
.modal.is-open .modal-panel { transform: none; }
.modal-sm .modal-panel { width: min(100%, 400px); padding: var(--space-6) var(--space-5) var(--space-5); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: rgb(11 11 12 / .12); border: 0; border-radius: 50%; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.modal-close:hover { background: var(--color-primary); color: var(--color-ink); }
.sheet-head { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-6) var(--space-5) var(--space-5); background: radial-gradient(80% 120% at 0% 0%, #332b0f, var(--color-ink) 70%); color: var(--color-on-dark); }
.sheet-head .modal-close { background: rgb(255 255 255 / .12); color: #fff; }
.sheet-photo { position: relative; display: grid; place-items: center; flex: none; width: 68px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--color-ink-3); box-shadow: 0 0 0 3px var(--color-ink), 0 0 0 5px var(--color-primary); }
.sheet-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet-photo .vcard-initials { font-size: 1.5rem; }
.sheet-id { min-width: 0; }
.sheet-id p { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-primary); }
.sheet-id h2 { margin: 2px 0 0; color: #fff; font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sheet-id span { font-size: var(--fs-xs); color: var(--color-muted-on-dark); }
.sheet-score { display: grid; justify-items: end; margin-left: auto; padding-right: 2rem; text-align: right; }
.sheet-score strong { font-size: 1.4rem; font-weight: 800; line-height: 1; color: var(--color-primary); }
.sheet-score span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--color-muted-on-dark); }
.sheet-form { display: grid; gap: var(--space-5); padding: var(--space-5); }
.sheet-form fieldset { display: grid; gap: var(--space-3); margin: 0; padding: 0; border: 0; min-width: 0; }
.sheet-form legend, .sheet-form label { display: block; margin-bottom: var(--space-2); padding: 0; font-weight: 700; font-size: var(--fs-sm); color: var(--color-ink); }
.sheet-form label small { font-weight: 500; color: var(--color-muted); }
.sheet-form .pay-option { margin: 0; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips button { min-width: 3.4rem; padding: .6rem .95rem; font: 700 var(--fs-sm)/1 var(--font-sans); color: var(--color-ink); background: #fff; border: 2px solid var(--color-line); border-radius: var(--radius-pill); cursor: pointer; transition: all .2s; }
.chips button:hover { border-color: var(--color-primary); }
.chips button.is-on { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-primary); }
.stepper { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 4px; border: 2px solid var(--color-line); border-radius: var(--radius-pill); }
.stepper button { flex: none; width: 2.9rem; height: 2.9rem; font-size: 1.5rem; line-height: 1; color: var(--color-ink); background: var(--color-primary); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s; }
.stepper button:hover { background: var(--color-primary-hover); }
.stepper input { width: 100%; padding: 0; text-align: center; font-size: 1.4rem; font-weight: 800; background: transparent; border: 0; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.stepper input:focus { background: transparent; box-shadow: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total { display: flex; align-items: baseline; justify-content: space-between; padding: var(--space-4) var(--space-5); background: var(--color-surface-alt); border: var(--border); border-radius: var(--radius); }
.total span { font-size: var(--fs-sm); font-weight: 600; color: var(--color-muted); }
.total strong { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; color: var(--color-ink); }
.total i { font-style: normal; font-variant-numeric: tabular-nums; }
.total small { font-size: .8rem; color: var(--color-primary-ink); }
.pay-3 { grid-template-columns: repeat(3, 1fr); }
.pay-3 .pay-option span { align-items: center; justify-content: center; gap: 0; padding: .95rem .4rem; text-align: center; font-size: .82rem; }
.form-error { margin: 0; padding: var(--space-3) var(--space-4); background: var(--color-danger-bg); border-left: 4px solid var(--color-danger); border-radius: var(--radius-sm); color: var(--color-danger); font-size: var(--fs-sm); font-weight: 500; }
.form-error[hidden] { display: none; }
.sheet-form .hint { margin: 0; font-size: var(--fs-xs); }
.iti { width: 100%; }
.iti--container { z-index: 200; }

/* Suivi de transaction */
.sheet-status { padding: var(--space-7) var(--space-5) var(--space-5); text-align: center; }
.sheet-status[hidden] { display: none; }
.state { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto var(--space-4); border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary-ink); }
.state[data-tone="ok"] { background: var(--color-success-bg); color: var(--color-success); }
.state[data-tone="ko"] { background: var(--color-danger-bg); color: var(--color-danger); }
.state-icon { display: grid; place-items: center; }
.state-icon svg { width: 2.6rem; height: 2.6rem; fill: currentColor; }
.spinner { width: 2.4rem; height: 2.4rem; border: 4px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .9s linear infinite; }
.sheet-status h3 { margin-bottom: var(--space-2); }
.recap { margin: var(--space-5) 0 var(--space-4); text-align: left; background: var(--color-surface-alt); border: var(--border); border-radius: var(--radius); }
.recap div { display: flex; justify-content: space-between; gap: var(--space-4); padding: .7rem var(--space-4); border-bottom: 1px solid var(--color-line); }
.recap div:last-child { border: 0; }
.recap dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); }
.recap dd { min-width: 0; margin: 0; text-align: right; font-size: var(--fs-sm); font-weight: 600; color: var(--color-ink); overflow-wrap: anywhere; }
.sheet-actions { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.sheet-actions .btn { flex: 1; padding-inline: var(--space-4); }
.status-card { overflow: hidden; background: #fff; border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Partage */
.share-head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); padding-right: 2rem; }
.share-head h2 { margin: 0; font-size: 1.1rem; }
.share-head p { margin: 0; font-size: var(--fs-xs); color: var(--color-muted); }
.copy { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); }
.copy input { flex: 1; min-width: 0; font-size: var(--fs-xs); }
.copy .btn { padding-inline: 1.25rem; }
.share-nets { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.share-nets .btn { padding-inline: var(--space-3); }
.share-nets [hidden] { display: none; }
.vtoast { position: fixed; left: 50%; bottom: 5rem; z-index: 120; translate: -50% 0; padding: .8rem 1.4rem; background: var(--color-ink); border: 1px solid var(--color-primary); border-radius: var(--radius-pill); color: #fff; font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-lg); }
.vtoast[hidden] { display: none; }
body.modal-open { overflow: hidden; }

@media (min-width: 640px) { .modal { align-items: center; } }
@media (max-width: 1000px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .vote-hero { padding-bottom: 6rem; }
}
@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat { padding: var(--space-4); }
    .stat > strong { font-size: 1.3rem; }
    .stat-timer { grid-column: 1 / -1; }
    .vgrid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
    .vcard-head { padding: 3rem var(--space-3) var(--space-5); }
    .vcard-body { padding: var(--space-4) var(--space-3) var(--space-3); }
    .vcard h3 { font-size: .95rem; }
    .vcard-stats strong { font-size: 1.15rem; }
    .vcard .btn { padding-inline: var(--space-2); font-size: .72rem; letter-spacing: .04em; }
    .vcard-rank { top: 10px; left: 10px; padding: .3rem .6rem; font-size: .8rem; }
    .vcard-share { top: 8px; right: 8px; width: 2.1rem; height: 2.1rem; }
    .countdown b { min-width: 64px; }
    .pay-3 { grid-template-columns: repeat(3, 1fr); }
    .podium { gap: var(--space-2); }
    .podium-avatar { width: 80px; }
    .podium-1 .podium-avatar { width: 104px; }
    .modal { padding: 0; align-items: flex-end; }
    .modal-panel { width: 100%; margin-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 94vh; overflow-y: auto; }
    .sheet-actions .btn, .tools .seg { width: auto; }
    .hero-actions .btn { width: auto; }
}
@media (max-width: 380px) { .vgrid { grid-template-columns: 1fr; } }

#vote-modal .modal-close { background: rgb(255 255 255 / .14); color: #fff; }
#vote-modal .modal-close:hover { background: var(--color-primary); color: var(--color-ink); }

/* ==========================================================================
   FENÊTRE DE VOTE « photo plein cadre » : la photo de la nominée est le fond
   de tout le formulaire ; le formulaire repose sur un panneau de verre sombre.
   ========================================================================== */
.vsheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 372px); width: min(100%, 820px); min-height: 520px; overflow: hidden; isolation: isolate; background: var(--color-ink); border: 1px solid rgb(255 198 0 / .35); border-radius: var(--radius-lg); color: var(--color-on-dark); transform: translateY(24px) scale(.98); }
.modal.is-open .vsheet { transform: none; }

/* Fond : photo plein cadre + voiles de lisibilité */
.vs-bg { position: absolute; inset: 0 0 0 -35%; z-index: -2; display: grid; place-items: center; background: center 56% / cover no-repeat; transform: scale(1.12); transition: transform 1.6s var(--ease), opacity .6s; }
.modal.is-open .vs-bg { transform: scale(1); }
.vs-bg.no-photo { background: radial-gradient(70% 80% at 25% 40%, #4a3b0a, var(--color-ink) 75%); }
.vs-initials { display: none; font-size: clamp(7rem, 22vw, 14rem); font-weight: 800; letter-spacing: -.04em; color: rgb(255 198 0 / .22); }
.vs-bg.no-photo .vs-initials { display: block; }
.vsheet::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(11 11 12 / .02) 0%, rgb(11 11 12 / .12) 36%, rgb(11 11 12 / .5) 62%, rgb(11 11 12 / .72) 100%), linear-gradient(0deg, rgb(11 11 12 / .94) 0%, rgb(11 11 12 / .6) 28%, transparent 60%); }

/* Colonne gauche : identité de la nominée */
.vs-hero { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-1); padding: var(--space-7) var(--space-6) var(--space-6); }
.vs-rank { align-self: flex-start; margin-bottom: var(--space-2); padding: .4rem .9rem; background: var(--color-primary); border-radius: var(--radius-pill); color: var(--color-ink); font-size: .8rem; font-weight: 800; letter-spacing: .06em; }
.vs-rank[hidden] { display: none; }
.vs-eyebrow { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--color-primary); }
.vs-hero h2 { margin: 0; max-width: 14ch; color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem); line-height: 1.05; letter-spacing: -.03em; text-shadow: 0 2px 30px rgb(0 0 0 / .5); overflow-wrap: anywhere; }
.vs-cat { margin: 0; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-on-dark); }
.vs-score { display: inline-flex; align-items: baseline; gap: var(--space-2); align-self: flex-start; margin-top: var(--space-3); padding: .4rem .9rem; background: rgb(11 11 12 / .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--color-line-dark); border-radius: var(--radius-pill); }
.vs-score strong { font-size: 1.2rem; font-weight: 800; line-height: 1; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.vs-score span { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-on-dark); }

/* Colonne droite : panneau de verre */
.vs-body { display: flex; flex-direction: column; justify-content: center; padding: var(--space-5); background: rgb(11 11 12 / .46); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); border-left: 1px solid var(--color-line-dark); }
.vsheet .modal-close { top: 14px; right: 14px; z-index: 3; background: rgb(255 255 255 / .14); color: #fff; backdrop-filter: blur(8px); }
.vsheet .modal-close:hover { background: var(--color-primary); color: var(--color-ink); }

/* Formulaire sur verre sombre */
.vsheet .sheet-form { padding: 0; gap: var(--space-3); }
.vsheet .sheet-form legend, .vsheet .sheet-form label { margin-bottom: var(--space-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-primary); }
.vsheet .sheet-form label small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--color-muted-on-dark); }
.vsheet .chips button { color: #fff; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); }
.vsheet .chips button:hover { border-color: var(--color-primary); }
.vsheet .chips button.is-on { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-ink); }
.vsheet .stepper { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .18); }
.vsheet .stepper input { color: #fff; }
.vsheet .total { background: linear-gradient(135deg, rgb(255 198 0 / .16), rgb(255 255 255 / .05)); border-color: rgb(255 198 0 / .4); }
.vsheet .total span { color: var(--color-on-dark); }
.vsheet .total strong { color: #fff; font-size: 2.1rem; }
.vsheet .total small { color: var(--color-primary); }
.vsheet .pay-option span { color: #fff; background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .18); }
.vsheet .pay-option:hover span { border-color: var(--color-primary); }
.vsheet .pay-option input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-ink); }
.vsheet input[type="tel"], .vsheet input[type="email"] { color: #fff; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); }
.vsheet input::placeholder { color: rgb(255 255 255 / .45); }
.vsheet input[type="tel"]:focus, .vsheet input[type="email"]:focus { background: rgb(255 255 255 / .12); border-color: var(--color-primary); box-shadow: 0 0 0 4px rgb(255 198 0 / .25); }
.vsheet .iti__selected-dial-code { color: #fff; }
.vsheet .iti__arrow { border-top-color: var(--color-on-dark); }
.vsheet .form-error { background: rgb(179 38 30 / .22); border-color: #ff8a80; color: #ffd5d1; }
.vsheet .hint { margin: 0; text-align: center; font-size: var(--fs-xs); color: var(--color-muted-on-dark); }
.vsheet #vm-submit { position: relative; overflow: hidden; box-shadow: 0 10px 30px rgb(255 198 0 / .28); }
.vsheet #vm-submit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .45) 50%, transparent 65%); translate: -120% 0; animation: shine 3.2s 1s infinite; }
.vsheet #vm-submit[disabled]::after { display: none; }
@keyframes shine { to { translate: 120% 0; } }

/* Suivi de transaction sur verre sombre */
.vsheet .sheet-status { padding: 0; }
.vsheet .sheet-status h3 { color: #fff; }
.vsheet .recap { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); }
.vsheet .recap div { border-color: rgb(255 255 255 / .1); }
.vsheet .recap dt { color: var(--color-muted-on-dark); }
.vsheet .recap dd { color: #fff; }
.vsheet .state { background: rgb(255 198 0 / .16); color: var(--color-primary); }
.vsheet .state[data-tone="ok"] { background: rgb(31 122 77 / .3); color: #7be0aa; }
.vsheet .state[data-tone="ko"] { background: rgb(179 38 30 / .3); color: #ff9c94; }
.vsheet .btn-ghost { color: #fff; border-color: rgb(255 255 255 / .4); }
.vsheet .btn-ghost:hover { background: #fff; color: var(--color-ink); }
.vsheet .sheet-actions .btn-primary { color: var(--color-ink); }

@media (max-width: 900px) {
    .vsheet { grid-template-columns: 1fr; min-height: 0; }
    .vs-bg { inset: 0 0 auto 0; height: 440px; background-position: center 30%; }
    .vs-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, var(--color-ink) 100%); }
    .vsheet::before { background: linear-gradient(0deg, var(--color-ink) 52%, transparent 100%); }
    .vs-hero { padding: 7.5rem var(--space-5) var(--space-5); }
    .vs-hero h2 { max-width: none; font-size: 2rem; }
    .vs-body { padding: var(--space-5); background: rgb(11 11 12 / .72); border-left: 0; border-top: 1px solid var(--color-line-dark); }
}
@media (max-width: 640px) {
    .vsheet { border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; }
    .vs-hero { padding-top: 6rem; }
}

.finalists { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5) var(--space-6); max-width: 960px; margin: 0 auto var(--space-7); }
.finalists li { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); width: 150px; text-align: center; }
.finalists strong { font-size: var(--fs-sm); line-height: 1.3; color: var(--color-ink); overflow-wrap: anywhere; }
.vgrid.no-rank .vcard-rank { display: none; }

/* Moyen de paiement : liste déroulante */
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 1.25rem; top: 50%; width: .6rem; height: .6rem; margin-top: -.45rem; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; pointer-events: none; color: var(--color-primary-ink); }
.select select { width: 100%; padding: 1rem 3rem 1rem 1.15rem; font: 600 var(--fs-base)/1.4 var(--font-sans); color: var(--color-ink); background: var(--color-surface-alt); border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer; -webkit-appearance: none; appearance: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.select select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgb(255 198 0 / .25); }
.vsheet .select::after { color: var(--color-primary); }
.vsheet .select select { color: #fff; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); }
.vsheet .select select:hover { border-color: var(--color-primary); }
.vsheet .select select option { color: var(--color-ink); background: #fff; }

/* Fenêtre de vote compacte : champs plus serrés */
.vsheet .sheet-form fieldset { gap: var(--space-2); }
.vsheet .sheet-form legend, .vsheet .sheet-form label { margin-bottom: var(--space-1); font-size: .68rem; letter-spacing: .12em; }
.vsheet .chips { gap: .35rem; }
.vsheet .chips button { min-width: 0; padding: .4rem .75rem; font-size: .8rem; border-width: 1.5px; }
.vsheet .stepper { padding: 3px; border-width: 1.5px; }
.vsheet .stepper button { width: 2.3rem; height: 2.3rem; font-size: 1.2rem; }
.vsheet .stepper input { font-size: 1.1rem; }
.vsheet .total { padding: .6rem var(--space-4); border-radius: var(--radius-sm); }
.vsheet .total strong { font-size: 1.6rem; }
.vsheet .select select { padding: .65rem 2.6rem .65rem .9rem; font-size: .9rem; border-width: 1.5px; }
.vsheet .select::after { right: 1rem; }
.vsheet input[type="tel"], .vsheet input[type="email"] { padding: .65rem .9rem; font-size: .9rem; border-width: 1.5px; }
.vsheet #vm-submit { padding: .9rem 1.5rem; font-size: .8rem; }
.vsheet .hint { font-size: .7rem; line-height: 1.4; }
.vsheet .form-error { padding: var(--space-2) var(--space-3); font-size: .8rem; }
.vsheet .modal-close { top: 10px; right: 10px; width: 2.1rem; height: 2.1rem; font-size: 1.3rem; }
.vsheet .sheet-status h3 { font-size: 1.1rem; }
.vsheet .state { width: 64px; height: 64px; margin-bottom: var(--space-3); }
.vsheet .state-icon svg { width: 2rem; height: 2rem; }
.vsheet .recap div { padding: .45rem var(--space-3); }
@media (max-width: 900px) {
    .vsheet { width: min(100%, 480px); min-height: 0; }
    .vs-hero { padding: 6rem var(--space-4) var(--space-4); }
    .vs-hero h2 { font-size: 1.6rem; }
    .vs-bg { height: 340px; }
    .vs-body { padding: var(--space-4); }
}

/* /vote : en-tête réduit au fil d'Ariane, trois chiffres clés */
.vote-hero:not(.vote-hero-sm) { padding: 7.5rem 0 5rem; }
.vote-hero:not(.vote-hero-sm) .breadcrumb { margin: 0; }
.vote-stats .stats-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .vote-stats .stats-grid { grid-template-columns: 1fr 1fr; } }

/* SweetAlert2 aux couleurs du site */
.swal2-popup { font-family: var(--font-sans); border-radius: var(--radius-lg); }
.swal2-title { font-weight: 800; letter-spacing: -.02em; color: var(--color-ink); }
.swal2-html-container { font-size: var(--fs-sm); line-height: 1.6; color: var(--color-text); }
.swal2-confirm.swal2-styled { padding: .8rem 2rem; border-radius: var(--radius-pill); color: var(--color-ink) !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: none !important; }
.swal2-container { z-index: 1000; }

.vsheet .stepper input::placeholder { font-size: .85rem; font-weight: 500; letter-spacing: 0; }

@media (max-width: 640px) { .vcard-avatar { width: 88%; } .vcard-head { padding: 2.75rem var(--space-2) var(--space-4); } }

/* Cartes de vote : plus de fond noir, seule la photo en médaillon ressort */
.vcard-head { background: none; padding-top: 3.5rem; }
.vcard-avatar { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--color-primary-deep), var(--shadow); }
.vcard.top-1 .vcard-avatar { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--color-primary), 0 10px 40px rgb(255 198 0 / .45); }
.vcard.top-2 .vcard-avatar { box-shadow: 0 0 0 4px #fff, 0 0 0 6px #BFC4CF, var(--shadow); }
.vcard.top-3 .vcard-avatar { box-shadow: 0 0 0 4px #fff, 0 0 0 6px #D79B6B, var(--shadow); }
.vcard-rank { background: var(--color-ink); color: #fff; }
.vcard-share { background: var(--color-surface-alt); border: var(--border); }
.vcard-share svg { fill: var(--color-ink); }
.vcard-share:hover { background: var(--color-primary); }

/* Cartes de vote : la photo flotte au-dessus de la carte (aucun fond derrière) ;
   la carte ne contient que nom, catégorie, votes, pourcentage et bouton. */
.vgrid { gap: var(--space-8) var(--space-5); padding-top: var(--space-2); }
.vcard-head, .vcard-body { --av: min(78cqw, 210px); }
.vcard { container-type: inline-size; overflow: visible; background: none; border: 0; border-radius: 0; }
.vcard:hover { box-shadow: none; }
.vcard-head { position: relative; z-index: 2; display: grid; place-items: center; padding: 0; background: none; }
.vcard-avatar { width: var(--av); }
.vcard-rank { top: 0; left: 0; }
.vcard-share { top: 0; right: 0; background: #fff; box-shadow: var(--shadow-sm); }
.vcard-body { flex: 1; margin-top: calc(var(--av) / -2); padding: calc(var(--av) / 2 + var(--space-5)) var(--space-5) var(--space-5); background: #fff; border: var(--border); border-top: 2px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.vcard:hover .vcard-body { box-shadow: var(--shadow); transform: translateY(-4px); }
.vcard:hover .vcard-head { transform: translateY(-4px); }
.vcard-head { transition: transform .3s var(--ease); }
.vcard-body::before, .vcard-body::after { display: none; }
.vcard h3 { margin-bottom: var(--space-3); }
.vcard-stats { margin: 0 0 var(--space-4); padding-top: var(--space-3); border-top: 1px dashed var(--color-line); }
@media (max-width: 640px) {
    .vgrid { gap: var(--space-7) var(--space-3); }
    .vcard-head, .vcard-body { --av: min(84cqw, 150px); }
    .vcard-body { padding: calc(var(--av) / 2 + var(--space-4)) var(--space-3) var(--space-3); }
}

.vcard h3 { flex: 1; }

/* Bouton de partage à côté du bouton Voter */
.vcard-actions { display: flex; gap: var(--space-2); }
.vcard-actions .btn { flex: 1; min-width: 0; }
.vcard-share { position: static; flex: none; width: 3rem; height: auto; align-self: stretch; background: var(--color-surface-alt); border: 2px solid var(--color-line); border-radius: var(--radius-pill); box-shadow: none; }
.vcard-share svg { width: 1.1rem; height: 1.1rem; fill: var(--color-ink); }
.vcard-share:hover { background: var(--color-ink); border-color: var(--color-ink); }
.vcard-share:hover svg { fill: var(--color-primary); }
@media (max-width: 640px) { .vcard-share { width: 2.6rem; } }

/* Photo cliquable + fenêtre d'aperçu */
button.vcard-avatar { padding: 0; border: 0; cursor: zoom-in; font: inherit; }
.vcard-avatar img { transition: transform .5s var(--ease); }
.vcard-avatar:hover img { transform: scale(1.06); }
.vcard-avatar:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 6px; }
.modal-preview { align-items: center; padding: var(--space-4); }
.pv { position: relative; display: grid; place-items: center; min-width: min(86vw, 320px); max-width: min(92vw, 560px); margin: auto; overflow: hidden; background: var(--color-ink); border: 1px solid rgb(255 198 0 / .35); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: scale(.96); transition: transform .3s var(--ease); }
.modal.is-open .pv { transform: none; }
.pv img { display: block; width: auto; max-width: 100%; height: auto; max-height: 88vh; }
.pv img[hidden], .pv-initials[hidden] { display: none; }
.pv-initials { display: grid; place-items: center; width: min(86vw, 420px); aspect-ratio: 4 / 5; background: radial-gradient(70% 70% at 50% 40%, #4a3b0a, var(--color-ink)); font-size: 7rem; font-weight: 800; color: var(--color-primary); }
.pv-bar { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); padding: 4rem var(--space-5) var(--space-5); background: linear-gradient(0deg, rgb(11 11 12 / .92) 0%, rgb(11 11 12 / .6) 55%, transparent 100%); }
.pv-id { display: grid; min-width: 0; }
.pv-id strong { font-size: 1.1rem; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.pv-id span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary); }
.pv .btn { flex: none; }
.pv .modal-close { background: rgb(11 11 12 / .55); color: #fff; backdrop-filter: blur(6px); }
@media (max-width: 640px) {
    .modal-preview { padding: var(--space-3); }
    .pv-bar { flex-direction: column; align-items: stretch; padding: 3rem var(--space-4) var(--space-4); }
    .pv .btn { width: 100%; }
}

/* Aperçu : seul le bouton Voter est affiché sur la photo (le nom reste lisible par les lecteurs d'écran) */
.pv-bar { justify-content: center; padding-top: 5rem; }
.pv-id { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pv.no-photo .pv-id { position: static; width: auto; height: auto; clip: auto; white-space: normal; margin-right: auto; }
.pv:not(.no-photo) .btn { min-width: 12rem; }
@media (max-width: 640px) { .pv:not(.no-photo) .pv-bar { align-items: center; } }

/* ==========================================================================
   Suivi de paiement : frise d'étapes + reçu tamponné
   ========================================================================== */
.track { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.track li { position: relative; display: grid; justify-items: center; gap: .55rem; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--color-muted); transition: color .3s; }
.track li i { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--color-line); box-shadow: 0 0 0 4px #fff; transition: background .3s, box-shadow .3s; }
.track li:not(:last-child)::after { content: ""; position: absolute; top: 6px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 4px; border-radius: 4px; background: var(--color-line); transition: background .4s; }
/* étape 1 toujours acquise */
.track li:nth-child(1) { color: var(--color-ink); }
.track li:nth-child(1) i { background: var(--color-primary); }
/* vérification / attente : étape 2 en cours */
.track:is([data-state="checking"], [data-state="pending"], [data-state="error"]) li:nth-child(1)::after { background: var(--color-primary); }
.track:is([data-state="checking"], [data-state="pending"]) li:nth-child(2) { color: var(--color-ink); }
.track:is([data-state="checking"], [data-state="pending"]) li:nth-child(2) i { background: var(--color-primary); animation: ping 1.4s ease-out infinite; }
.track[data-state="error"] li:nth-child(2) i { background: var(--color-muted); }
/* validé : tout est doré */
.track[data-state="success"] li { color: var(--color-ink); }
.track[data-state="success"] li i { background: var(--color-primary); box-shadow: 0 0 0 4px #fff, 0 0 18px rgb(255 198 0 / .7); }
.track[data-state="success"] li::after { background: var(--color-primary); }
/* annulé : l'étape 2 échoue */
.track[data-state="cancelled"] li:nth-child(1)::after { background: var(--color-primary); }
.track[data-state="cancelled"] li:nth-child(2) { color: var(--color-danger); }
.track[data-state="cancelled"] li:nth-child(2) i { background: var(--color-danger); }
@keyframes ping { 0% { box-shadow: 0 0 0 4px #fff, 0 0 0 4px rgb(255 198 0 / .7); } 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 16px rgb(255 198 0 / 0); } }

.receipt { --stamp: var(--color-primary-ink); position: relative; margin: var(--space-5) 0 var(--space-3); padding: var(--space-5) var(--space-4) var(--space-2); text-align: left; background: var(--color-surface-alt); border: var(--border); border-radius: var(--radius); transition: border-color .4s; }
.receipt::before, .receipt::after { content: ""; position: absolute; top: 2.6rem; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: var(--border); }
.receipt::before { left: -10px; clip-path: inset(0 0 0 50%); }
.receipt::after { right: -10px; clip-path: inset(0 50% 0 0); }
.receipt[data-tone="ok"] { --stamp: var(--color-success); border-color: var(--color-success); }
.receipt[data-tone="ko"] { --stamp: var(--color-danger); border-color: var(--color-danger); }
.receipt-head { margin: 0 0 var(--space-3); padding-bottom: var(--space-3); border-bottom: 2px dashed var(--color-line); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); }
.receipt .recap { margin: 0; background: none; border: 0; border-radius: 0; }
.receipt .recap div { padding: .4rem 0; border-color: var(--color-line); border-bottom-style: dashed; }
.stamp { position: absolute; top: 1.1rem; right: 1rem; z-index: 2; padding: .3rem .8rem; border: 3px double var(--stamp); border-radius: 8px; color: var(--stamp); font-size: .9rem; font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; rotate: -8deg; background: rgb(255 255 255 / .55); backdrop-filter: blur(2px); }
.stamp.is-new { animation: stampIn .55s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes stampIn { from { opacity: 0; scale: 2.6; rotate: -22deg; } 60% { opacity: 1; } to { opacity: .96; scale: 1; rotate: -8deg; } }

/* version fenêtre de vote (fond sombre) */
.vsheet .track { color: var(--color-muted-on-dark); }
.vsheet .track li { color: var(--color-muted-on-dark); }
.vsheet .track li i { background: rgb(255 255 255 / .22); box-shadow: 0 0 0 4px rgb(11 11 12 / .6); }
.vsheet .track li:not(:last-child)::after { background: rgb(255 255 255 / .2); }
.vsheet .track li:nth-child(1), .vsheet .track[data-state="success"] li, .vsheet .track:is([data-state="checking"], [data-state="pending"]) li:nth-child(2) { color: #fff; }
.vsheet .track[data-state="cancelled"] li:nth-child(2) { color: #ff9c94; }
.vsheet .track li:nth-child(1) i, .vsheet .track[data-state="success"] li i, .vsheet .track:is([data-state="checking"], [data-state="pending"]) li:nth-child(2) i { background: var(--color-primary); }
.vsheet .track[data-state="cancelled"] li:nth-child(2) i { background: #ff6b60; }
.vsheet .track[data-state="error"] li:nth-child(2) i { background: rgb(255 255 255 / .4); }
.vsheet .track:is([data-state="checking"], [data-state="pending"], [data-state="error"]) li:nth-child(1)::after, .vsheet .track[data-state="success"] li::after, .vsheet .track[data-state="cancelled"] li:nth-child(1)::after { background: var(--color-primary); }
.vsheet .receipt { --stamp: var(--color-primary); background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .16); }
.vsheet .receipt::before, .vsheet .receipt::after { background: #1a1416; border-color: rgb(255 255 255 / .16); }
.vsheet .receipt[data-tone="ok"] { --stamp: #7be0aa; border-color: rgb(123 224 170 / .6); }
.vsheet .receipt[data-tone="ko"] { --stamp: #ff9c94; border-color: rgb(255 156 148 / .6); }
.vsheet .receipt-head { color: var(--color-muted-on-dark); border-color: rgb(255 255 255 / .18); }
.vsheet .receipt .recap div { border-color: rgb(255 255 255 / .12); }
.vsheet .stamp { background: rgb(11 11 12 / .5); }
.vsheet .sheet-status h3 { margin-top: var(--space-2); }

/* L'attribut hidden doit toujours gagner sur display:grid / flex (formulaire et suivi jamais affichés ensemble) */
.sheet-form[hidden], .sheet-status[hidden], #vm-form[hidden], #vm-status[hidden] { display: none !important; }

/* Carte mise à jour après un vote validé */
.vcard.is-updated .vcard-body { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgb(255 198 0 / .3), var(--shadow); }
.vcard.is-updated .vcard-stats strong { animation: bump .7s var(--ease); color: var(--color-primary-ink); }
@keyframes bump { 40% { transform: scale(1.35); } }
.vcard-stats strong { display: inline-block; transform-origin: left bottom; }

/* Titre du hero d'accueil : taille réduite */
.hero h1 { font-size: clamp(2rem, 1rem + 3.2vw, 3.6rem); max-width: 18ch; line-height: 1.08; }

/* Images de l'accueil cliquables (aperçu plein écran) */
.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.lb-btn[hidden] { display: none; }
