/* =========================================================
   Las Genevas – Company Event 2026 – RRG Suisse
   ========================================================= */

:root {
    --navy: #0a1430;
    --navy-deep: #050a1a;
    --black: #050505;
    --gold: #e8c26a;
    --gold-light: #fbe3a1;
    --gold-dark: #b9862c;
    --white: #fdfbf5;
    --red-neon: #ff4b3a;
    --green: #123301;
    --red-deep: #5e1418; /* feutre rouge assombri : raccord dress code → transport */ /* couleur moyenne du haut du fond vert à motifs */
    --font-body: 'RenaultGroup', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-title: 'Pinyon Script', 'Brush Script MT', cursive; /* titres h2 : anglaise de carton d'invitation gravé */
    --text-col: 640px;
    --container: 1300px; /* largeur max des conteneurs de texte, toutes sections */
    --title-gap: clamp(1rem, .7rem + 1vw, 1.5rem);
    /* Marge latérale commune = celle du texte de l'invitation
       (16px de section + 2px de pointillés + padding interne) */
    --inner-pad: clamp(.5rem, 5vw, 4rem);
    --gutter: calc(18px + var(--inner-pad));
}

/* Police RenaultGroup (textes courants) */
@font-face { font-family: 'RenaultGroup'; src: url('../fonts/RenaultGroup-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'RenaultGroup'; src: url('../fonts/RenaultGroup-Regular.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'RenaultGroup'; src: url('../fonts/RenaultGroup-Bold.woff2') format('woff2'); font-weight: 600 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.02rem);
    line-height: 1.45;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* Un clic n'importe où ouvre le formulaire : curseur « main » partout (hors page d'accès et fenêtres) */
body:not(.gate) { cursor: pointer; }
dialog { cursor: auto; }
dialog button, dialog label, dialog select { cursor: pointer; }

.br-mobile { display: none; } /* saut de ligne affiché uniquement sur mobile */

@media (max-width: 700px) { .br-mobile { display: inline; } }

p { margin: 0 0 1.1em; }

strong { font-weight: 700; }

/* ---------- Titres script dorés ---------- */
.script-title {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.7rem);
    line-height: 1.15;
    margin: 0 0 var(--title-gap); /* même écart titre → texte partout */
    background: linear-gradient(100deg, var(--gold-dark) 0%, var(--gold-light) 25%, var(--gold) 45%, #fff6d8 52%, var(--gold) 60%, var(--gold-dark) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
    animation: gold-sheen 6s ease-in-out infinite;
    /* Le dégradé (background-clip: text) ne peint que dans la boîte de l'élément :
       on lui donne de la marge pour les hampes et boucles du script, qui dépassent. */
    padding: .3em .4em .2em;
    margin-top: -.3em;
}
.script-title--light {
    background: none;
    color: var(--white);
    animation: none;
    filter: drop-shadow(0 2px 4px rgba(90, 40, 0, .5));
}
.script-title--white {
    background: none;
    color: var(--white);
    animation: none;
    font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem);
}

@keyframes gold-sheen {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0 0; }
}

/* ---------- Apparition au défilement ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .reveal--zoom { transform: scale(.88); }
.js .reveal--card-left { transform: translate(-60%, 20%) rotate(-40deg); }
.js .reveal--card-right { transform: translate(60%, -10%) rotate(40deg); }
.js .reveal--drop { transform: translateY(-80px) rotate(var(--drop-rot, 8deg)) scale(1.15); }
.js .reveal--card-left.is-visible,
.js .reveal--card-right.is-visible { transform: rotate(var(--rot)); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    overflow: hidden;
    background: var(--navy-deep);
}
.hero__bg {
    position: absolute;
    inset: -2%;
    background-size: cover;
    background-position: 40% 60%;
    background-repeat: no-repeat;
    background-color: #031c3f; /* couleur du haut du ciel de l'image */
    animation: ken-burns 26s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes ken-burns {
    from { transform: scale(1); }
    to { transform: scale(1.08) translate(-1%, -1%); }
}
@keyframes ken-burns-sign { /* zoom centré sur l'enseigne */
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

/* Desktop : enseigne centrée dans la moitié gauche, texte centré dans la moitié droite.
   L'enseigne est à 28,2 % de la largeur de l'image (2000×1320) : on l'agrandit (≥ 105 %
   de la largeur d'écran, et assez haute pour couvrir le hero) puis on la décale pour
   amener l'enseigne à 25 % de l'écran. */
@media (min-width: 701px) {
    .hero__bg {
        --bg-w: max(105vw, 151.6svh, 788px);
        inset: 0;
        background-size: var(--bg-w) auto;
        background-position: calc(25vw - var(--bg-w) * 0.282) 40%;
        transform-origin: 25% 42%;
        animation-name: ken-burns-sign;
    }
    .hero .hero__content {
        left: 50%;
        right: auto;
        top: 42%; /* même hauteur que le centre de l'enseigne */
        transform: translateY(-50%);
        width: 50%;
        padding: 0 2rem;
    }
}
.hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(5, 10, 26, .35) 0%, transparent 30%, transparent 70%, var(--navy) 100%),
        radial-gradient(ellipse at 78% 22%, rgba(5, 10, 26, .55), transparent 55%);
    pointer-events: none;
}
.hero__sparkles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.hero__content {
    position: absolute;
    z-index: 2;
    top: 14%;
    right: 6%;
    width: min(44%, 560px);
    text-align: center;
}
.hero__title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.4rem, 0.8rem + 3vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: -.01em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.hero__line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: rise-in 1.1s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero__line:nth-child(2) { animation-delay: .25s; }
@keyframes rise-in { to { opacity: 1; transform: none; } }

.hero__by {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    margin: .5em 0 0;
    font-size: clamp(.8rem, .6rem + .8vw, 1.25rem);
    opacity: 0;
    animation: rise-in 1.1s .6s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero__by-label { font-weight: 500; }

.hero__logo {
    width: 7.5em;
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5));
}
.hero__scroll {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 26px;
    width: 30px;
    height: 48px;
    margin-left: -15px;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 16px;
}
.hero__scroll span {
    position: absolute;
    left: 50%;
    top: 9px;
    width: 4px;
    height: 9px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--gold);
    animation: scroll-hint 1.8s ease-in-out infinite;
}
.hero__scroll::after { /* libellé au-dessus de l'icône souris */
    content: attr(data-label); /* « Découvrir » / « Entdecken » selon la langue */
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .85);
    font-size: .8rem;
    font-weight: 300; /* RenaultGroup Light */
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
@keyframes scroll-hint {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(16px); opacity: 0; }
    100% { opacity: 0; }
}

/* =========================================================
   BOUTON D'INSCRIPTION ACCROCHÉ EN HAUT
   Hauteur nulle : il ne pousse pas la mise en page et se pose dans le haut de
   l'invitation, puis reste collé en haut de l'écran pendant tout le défilement.
   ========================================================= */
.cta-sticky {
    /* --cta-y : position de départ du bouton dans la page. Marge haute + marge basse
       opposée : l'élément ne décale pas la mise en page (pas de fusion de marges
       puisqu'il contient le bouton). Une fois la page défilée jusque-là, il colle en haut. */
    --cta-y: 100vw; /* mobile : juste sous le hero (hauteur 100vw) */
    position: sticky;
    top: 12px;
    z-index: 45;
    height: 0;
    margin-top: var(--cta-y);
    margin-bottom: calc(-1 * var(--cta-y));
    display: flex;
    justify-content: center;
    align-items: flex-start; /* sinon le bouton est écrasé à la hauteur nulle du conteneur */
    pointer-events: none;
}
.cta-sticky__inner { display: flex; flex-direction: column; align-items: center; }
/* Date limite d'inscription, sous les boutons « Je m'inscris » */
.cta-deadline {
    margin: .6em 0 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--gold-light);
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
/* bouton accroché en haut : la date reste visible, sur une pastille sombre pour rester lisible sur tous les fonds */
.cta-sticky.is-stuck .cta-deadline {
    margin-top: .45em;
    padding: .2em .8em;
    border-radius: 999px;
    background: rgba(5, 10, 26, .75);
    font-size: 13px;
}
.cta-sticky .btn-notch {
    margin-top: 12px;
    pointer-events: auto;
    transition: opacity .3s ease, transform .3s ease;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55));
}
/* =========================================================
   INVITATION
   ========================================================= */
.invitation {
    background: linear-gradient(to bottom, var(--navy) 0%, #0b1736 50%, var(--navy) 100%);
    /* + place pour le bouton d'inscription posé en haut et sa deadline */
    padding: calc(clamp(3rem, 8vw, 6rem) + 100px) 16px clamp(2rem, 6vw, 4rem);
}
.invitation__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--inner-pad);
    border-left: 2px dashed rgba(232, 194, 106, .18);
    border-right: 2px dashed rgba(232, 194, 106, .18);
}
.welcome { margin: 2.2em 0 0; }

.las-genevas {
    margin: .1em 0 .7em;
    font-weight: 800;
    font-size: clamp(2.6rem, 1.2rem + 7vw, 6rem);
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
}
.neon-letter {
    display: inline-block;
    color: #fff;
    text-shadow:
        0 0 6px rgba(255, 255, 255, .9),
        0 0 18px rgba(255, 210, 140, .55),
        0 0 40px rgba(255, 170, 60, .35);
    animation: neon-flicker 7s infinite;
    animation-delay: calc(var(--i) * .37s);
}
@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: .55; text-shadow: none; }
}

/* =========================================================
   BELLAGIO + THÈME
   ========================================================= */
.theme {
    position: relative;
    background: linear-gradient(to bottom, var(--navy) 0%, #070c1d 32%, var(--black) 52%);
    padding-bottom: clamp(3rem, 8vw, 6rem);
    /* Coupe seulement à gauche/droite : les cartes peuvent déborder vers le bas */
    overflow: hidden;
    overflow: clip visible;
}
.bellagio { position: relative; }
.bellagio__img { width: 100%; height: auto; }
.bellagio::after { /* fondu de l'eau vers le noir */
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent, var(--black));
}
.bellagio__glow { /* respiration lumineuse de la fontaine */
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: 30%;
    height: 70%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 85%, rgba(255, 205, 110, .5), transparent 65%);
    mix-blend-mode: screen;
    animation: fountain-pulse 3.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes fountain-pulse {
    0%, 100% { opacity: .35; transform: translateX(-50%) scaleY(.92); }
    50% { opacity: .9; transform: translateX(-50%) scaleY(1.05); }
}

.theme__stage {
    position: relative;
    max-width: calc(var(--container) + 2 * var(--gutter)); /* même largeur que les autres sections */
    margin: clamp(-7rem, -9vw, -2rem) auto 0;
    padding: 0 var(--gutter);
}

/* Cadre doré : le motif n'est jamais étiré (il est recadré), les coins échancrés et le
   liseré doré sont dessinés en CSS pour s'adapter à toutes les tailles. */
.golden-frame {
    --notch-r: clamp(18px, 4vw, 30px);
    position: relative;
    z-index: 2;
    isolation: isolate;
    width: 100%;
    margin: 0 auto;
    padding: clamp(3.5rem, 11vw, 9.5rem) clamp(2rem, 9vw, 7rem); /* cadre plus haut : le texte respire (mobile réglé à part) */
    color: var(--white);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(110, 50, 0, .45);
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6));
}
.golden-frame::before,
.golden-frame::after,
.golden-frame__shine {
    --o: 0px; /* retrait par rapport au bord du cadre */
    --r: calc(var(--notch-r) + var(--o));
    --notch:
        radial-gradient(circle at calc(0px - var(--o)) calc(0px - var(--o)), #0000 var(--r), #000 calc(var(--r) + .5px)) 0 0 / 51% 51% no-repeat,
        radial-gradient(circle at calc(100% + var(--o)) calc(0px - var(--o)), #0000 var(--r), #000 calc(var(--r) + .5px)) 100% 0 / 51% 51% no-repeat,
        radial-gradient(circle at calc(0px - var(--o)) calc(100% + var(--o)), #0000 var(--r), #000 calc(var(--r) + .5px)) 0 100% / 51% 51% no-repeat,
        radial-gradient(circle at calc(100% + var(--o)) calc(100% + var(--o)), #0000 var(--r), #000 calc(var(--r) + .5px)) 100% 100% / 51% 51% no-repeat;
    content: "";
    position: absolute;
    inset: var(--o);
    z-index: -1;
    -webkit-mask: var(--notch);
    mask: var(--notch);
}
.golden-frame::before { /* liseré doré */
    background: linear-gradient(135deg, #f8e3a4 0%, #d9a94f 35%, #f3d68c 60%, #c8963f 100%);
}
.golden-frame::after { /* motif damassé (sans bordure), recadré sans déformation */
    --o: 5px;
    background: var(--frame-bg) center / cover no-repeat, #d9822a;
}
.golden-frame p:last-child { margin-bottom: 0; }
.golden-frame__shine {
    --o: 5px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 250, 220, .35) 48%, transparent 60%);
    background-size: 300% 100%;
    animation: frame-shine 7s ease-in-out infinite;
}
.golden-frame > :not(.golden-frame__shine) { position: relative; z-index: 1; }
@keyframes frame-shine {
    0%, 60% { background-position: 120% 0; }
    100% { background-position: -40% 0; }
}

.card {
    position: absolute;
    z-index: 3;
    width: clamp(86px, 17vw, 210px);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .55);
    transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .9s ease;
}
.card--king { --rot: 14deg; right: max(0px, calc(50% - 760px)); top: -10%; transform: rotate(var(--rot)); }
.card--queen { --rot: -16deg; left: max(0px, calc(50% - 770px)); bottom: -14%; transform: rotate(var(--rot)); }
.card.is-visible:hover { transform: rotate(0deg) scale(1.06) translateY(-6px); }

/* =========================================================
   CE QUI SE PASSE…
   ========================================================= */
.secret {
    background: var(--black);
    padding: clamp(1rem, 4vw, 3rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}
.secret > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

/* =========================================================
   DRESS CODE
   ========================================================= */
.dresscode {
    position: relative;
    /* Le fondu est au-dessus du vignettage : le bas de la section est exactement
       de la couleur --red-deep, qui démarre la section transport. */
    background:
        linear-gradient(to bottom,
            transparent 52%,
            color-mix(in srgb, var(--red-deep) 6%, transparent) 60%,
            color-mix(in srgb, var(--red-deep) 20%, transparent) 68%,
            color-mix(in srgb, var(--red-deep) 42%, transparent) 76%,
            color-mix(in srgb, var(--red-deep) 66%, transparent) 84%,
            color-mix(in srgb, var(--red-deep) 86%, transparent) 92%,
            var(--red-deep) 100%),
        radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(0, 0, 0, .45) 100%),
        var(--felt) center top / cover no-repeat,
        #7d1418;
    padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
}

/* Séparateur posé exactement à cheval sur la limite noir / rouge */
.suits-divider {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    transform: translateY(-50%);
    color: var(--gold);
    pointer-events: none;
}
.suits-divider__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
}
.suits-divider__suits { display: flex; gap: .7rem; font-size: 1.4rem; line-height: 1; }
.suits-divider__suits span { animation: suit-bounce 2.6s ease-in-out infinite; }
.suits-divider__suits span:nth-child(2) { animation-delay: .2s; }
.suits-divider__suits span:nth-child(3) { animation-delay: .4s; }
.suits-divider__suits span:nth-child(4) { animation-delay: .6s; }
@keyframes suit-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.dresscode__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding-top: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
}
.award { color: var(--gold); font-weight: 600; }

/* Petit séparateur doré : courtes lignes de part et d'autre d'un dé */
.mini-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
    color: var(--gold);
    font-size: 1rem;
    line-height: 1;
}
.mini-divider::before,
.mini-divider::after {
    content: "";
    width: clamp(48px, 10vw, 90px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}
.mini-divider::after { background: linear-gradient(to left, transparent, var(--gold)); }
.mini-divider__die { font-size: 1.3rem; line-height: 1; }

/* Invitation à ouvrir la galerie */
.collage-hint {
    max-width: var(--container);
    margin: clamp(1rem, 2.5vw, 1.5rem) auto 0;
    color: var(--gold-light);
    font-style: italic;
    font-size: .92em;
    opacity: .9;
}

/* Collage de photos (déjà détourées et inclinées) */
.collage {
    max-width: 1150px;
    margin: clamp(1rem, 3vw, 1.75rem) auto 0;
}
.collage__row {
    display: flex;
    justify-content: center;
}
.collage__row + .collage__row { margin-top: clamp(-3.2rem, -4vw, -1rem); }
.collage__row--2 { padding-left: 3%; }

.polaroid {
    --size: clamp(78px, 19vw, 230px);
    position: relative;
    width: var(--size);
    margin: 0 calc(var(--size) * -0.06);
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    --delay: calc(var(--n) * 70ms);
}
.polaroid:nth-child(odd) { --drop-rot: -10deg; }
.polaroid img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55));
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.polaroid:hover, .polaroid:focus-visible { z-index: 5; }
.polaroid:hover img, .polaroid:focus-visible img { transform: scale(1.12) rotate(-2deg); }
.polaroid:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

/* =========================================================
   TRANSPORT
   ========================================================= */
.transport {
    position: relative;
    /* Façade + tapis rouge en fond de toute la section. Taille et position (--bg-*)
       sont calculées en JS pour que la chaussée tombe sous la limousine.
       Au-dessus de l'image : rouge profond (raccord dress code) ; en bas : coupure nette + séparateur. */
    --img-top: 0px;
    /* le fondu descend jusqu'à la marquise (47 % de l'image) : le titre doré ressort sur le voile rouge */
    --fade-end: calc(var(--img-top) + var(--bg-px, 900px) * .48);
    background:
        linear-gradient(to bottom,
            var(--red-deep) 0,
            var(--red-deep) max(0px, var(--img-top)),
            color-mix(in srgb, var(--red-deep) 88%, transparent) calc(var(--fade-end) * .15),
            color-mix(in srgb, var(--red-deep) 74%, transparent) calc(var(--fade-end) * .35),
            color-mix(in srgb, var(--red-deep) 62%, transparent) calc(var(--fade-end) * .55),
            color-mix(in srgb, var(--red-deep) 50%, transparent) calc(var(--fade-end) * .75), /* ≈ derrière le titre */
            color-mix(in srgb, var(--red-deep) 30%, transparent) calc(var(--fade-end) * .93),
            transparent var(--fade-end)),
        /* bas de l'image fondu dans la couleur de chaussée : aucune ligne de raccord */
        linear-gradient(to bottom,
            transparent calc(var(--img-top) + var(--bg-px, 900px) * .82),
            #141318 calc(var(--img-top) + var(--bg-px, 900px) * .99),
            #141318 100%),
        var(--transport-bg) var(--bg-x, 50%) var(--bg-y, 0) / var(--bg-size, cover) no-repeat,
        #141318; /* couleur de la chaussée, prolonge l'image vers le bas */
    /* grand espace en haut : le fondu rouge se fait sur les étages de l'hôtel */
    padding: clamp(4.5rem, 13vw, 9rem) 16px clamp(3rem, 7vw, 5rem);
    overflow: hidden;
    overflow: clip visible;
}
.transport__inner { /* même largeur de texte que l'invitation, sans les pointillés */
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 calc(var(--inner-pad) + 2px);
}
.transport__inner p:last-child { margin-bottom: 0; }
/* Sous-titres (Transports, Logement) */
.subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    margin: 2.2em 0 1em;
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.subtitle:first-child { margin-top: 0; }
.subtitle__emoji { margin-right: -.4rem; letter-spacing: 0; font-size: 1.2em; }
.subtitle::before,
.subtitle::after {
    content: "";
    width: clamp(32px, 8vw, 70px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}
.subtitle::after { background: linear-gradient(to left, transparent, var(--gold)); }

/* Séparateur « Vos coordonnées » dans le formulaire */
.subtitle.form-section { margin: 1.6rem 0 .4rem; font-size: .95rem; }
.subtitle.form-section::before,
.subtitle.form-section::after { flex: 1; width: auto; }

/* Encadré d'avertissement (parking) */
.notice {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1em 1.3em;
    border: 0;
    border-left: 1px solid var(--gold); /* bordure à gauche uniquement */
    border-radius: 0; /* angles droits */
    background: rgba(0, 0, 0, .9);
    color: var(--white);
    text-align: left;
}
.shuttle-form .notice { margin-left: 0; } /* dans le formulaire : aligné à gauche comme les champs */
.notice strong { color: #e8545a; } /* rouge éclairci : le bordeaux serait illisible sur le noir */
/* titre posé sur la marquise lumineuse : ombre renforcée pour la lisibilité */
.transport .script-title {
    /* remonte le titre au-dessus de la marquise (≈ 6 % de la hauteur de l'image de fond) */
    margin-bottom: calc(var(--title-gap) + var(--bg-px, 0px) * 0.09 + 30px);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, .95)) drop-shadow(0 2px 4px rgba(0, 0, 0, .9));
}

/* Scène : tapis rouge en fond, limousine qui arrive de la gauche et se gare */
.limo-scene {
    position: relative;
    max-width: 1100px;
    --curb: .59; /* hauteur de la ligne de trottoir dans la scène (lue par le JS) */
    aspect-ratio: 2.6 / 1;
    /* le bas de la scène est vide sous la limousine remontée (23 % d'une hauteur = largeur / 2.6) :
       on le récupère avec une marge négative pour garder l'écart habituel avant le texte */
    margin: 0 auto calc(var(--title-gap) - min(1100px, 100%) / 2.6 * .23);
    /* zone transparente : sert de repère pour placer la limousine sur la chaussée du fond */

}
.limo { /* garée au centre, sur la chaussée devant le tapis rouge */
    position: absolute;
    left: 4%; /* desktop : garée au centre de la page */
    bottom: 23%;
    width: 92%; /* à l'échelle du décor : elle masque en partie le tapis */
}
.limo__car {
    position: relative;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45));
}
/* Ombre portée au sol : nappe diffuse sous la caisse + ombres de contact sous les roues
   (roue arrière ≈ 14 %, roue avant ≈ 90 % de la largeur de l'image) */
.limo::before {
    content: "";
    position: absolute;
    left: 1%;
    right: 1%;
    bottom: -7%;
    height: 24%;
    background:
        radial-gradient(ellipse 8% 45% at 14% 50%, rgba(0, 0, 0, .95), transparent 100%),
        radial-gradient(ellipse 8% 45% at 90% 50%, rgba(0, 0, 0, .95), transparent 100%),
        radial-gradient(ellipse 52% 50% at 52% 50%, rgba(0, 0, 0, .9), rgba(0, 0, 0, .55) 60%, transparent 100%);
    filter: blur(5px);
    pointer-events: none;
}
.limo__brake,
.limo__headlight {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}
.limo__brake { /* feux stop à l'arrière (à gauche) */
    left: -2%;
    top: 32%;
    width: 9%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 40, 30, .95), rgba(255, 0, 0, 0) 70%);
}
.limo__headlight { /* halo autour du phare allumé de l'image (≈ 96 % / 50 %) */
    left: 96%;
    top: 50%;
    width: 9%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 245, 210, .9) 0, rgba(255, 225, 150, .45) 25%, rgba(255, 220, 140, 0) 70%);
}

.js .limo { transform: translateX(-180%); }
.limo-scene.is-arriving .limo {
    animation:
        limo-drive 3.2s cubic-bezier(.15, .6, .25, 1) forwards,
        limo-settle .7s ease-out 3.1s;
}
.limo-scene.is-arriving .limo__headlight { animation: light-on .4s ease-out forwards; }
.limo-scene.is-arriving .limo__brake { animation: brake-light 1.6s ease-in-out 2s forwards; }
/* Quand on fait défiler plus bas, la limousine repart vers la droite et sort de l'écran */
.limo-scene.is-leaving .limo {
    animation: limo-leave 2.4s cubic-bezier(.55, 0, .9, .45) forwards;
}
.limo-scene.is-leaving .limo__brake { animation: none; opacity: 0; }
.limo-scene.is-leaving .limo__headlight { animation: none; opacity: .85; }
/* Appels de phares à l'arrêt (deux éclats, synchronisés avec le klaxon) */
.limo-scene.is-flashing .limo__headlight { animation: headlight-flash .8s ease-out forwards; }
@keyframes headlight-flash {
    0% { opacity: .85; transform: translate(-50%, -50%) scale(1); }
    6%, 22% { opacity: 1; transform: translate(-50%, -50%) scale(3); }
    32% { opacity: .5; transform: translate(-50%, -50%) scale(1); }
    42%, 78% { opacity: 1; transform: translate(-50%, -50%) scale(3); }
    100% { opacity: .85; transform: translate(-50%, -50%) scale(1); }
}
@keyframes limo-leave {
    0% { transform: translateX(0); }
    8% { transform: translateX(-.6%); } /* léger recul de la caisse au démarrage */
    100% { transform: translateX(170%); }
}
@keyframes limo-drive {
    0% { transform: translateX(-180%); }
    100% { transform: translateX(0); }
}
@keyframes limo-settle { /* la suspension s'affaisse puis se stabilise à l'arrêt */
    0% { transform: translateX(0) translateY(0) rotate(0); }
    30% { transform: translateX(.4%) translateY(1.5%) rotate(.35deg); }
    65% { transform: translateX(0) translateY(-.5%) rotate(-.15deg); }
    100% { transform: translateX(0) translateY(0) rotate(0); }
}
@keyframes light-on { to { opacity: .85; } }
@keyframes brake-light {
    0% { opacity: 0; }
    35%, 70% { opacity: 1; }
    100% { opacity: .25; }
}

.transport__cta { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

/* Bouton doré */
.btn-gold {
    display: inline-block;
    padding: .9em 1.8em;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f8e3a4 0%, #d9a94f 45%, #f3d68c 70%, #c8963f 100%);
    background-size: 200% 100%;
    color: #2a1a04;
    font: 700 .95rem/1.2 var(--font-body);
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
    transition: transform .2s ease, box-shadow .2s ease, background-position .6s ease;
}
.btn-gold:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 12px 28px rgba(0, 0, 0, .5), 0 0 18px rgba(232, 194, 106, .45); }
.btn-gold:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* Bouton contour doré, coins en arrondi inversé (comme le cadre du thème).
   Le contour est un SVG dessiné en JS à la taille du bouton ; sans JS, simple bordure. */
.btn-notch {
    --notch: 14px;
    position: relative;
    isolation: isolate;
    display: inline-block;
    padding: 1em 2.2em;
    border: 0;
    background: none;
    color: var(--gold-light);
    font: 700 .95rem/1.2 var(--font-body);
    letter-spacing: .02em;
    cursor: pointer;
    transition: color .25s ease, transform .2s ease;
}
.btn-notch:not(.has-outline) { border: 2px solid var(--gold); background: linear-gradient(to right, #4a0d10, #b8262c); }
.btn-notch__outline {
    position: absolute;
    z-index: -1; /* sous le texte */
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.btn-notch__outline path {
    stroke: url(#btn-notch-gold);
    stroke-width: 2;
}
.btn-notch__outline { transition: filter .25s ease; }
.btn-notch:hover { transform: translateY(-2px); color: #fff3cf; }
.btn-notch:hover .btn-notch__outline { filter: brightness(1.25); }
.btn-notch:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
/* =========================================================
   MODALE (formulaire navette)
   ========================================================= */
/* Cadre doré 2px à coins en arrondi inversé + fond noir luxueux : SVG dessiné en JS
   (même principe que .btn-notch). Le contenu défile dans .modal__body. */
.modal {
    --notch: 26px;
    --modal-gap: clamp(32px, 7vh, 72px); /* marge au-dessus et au-dessous de la fenêtre */
    width: min(1200px, calc(100vw - 32px));
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    background: none;
    color: var(--white);
    text-align: left;
    overflow: visible;
    isolation: isolate;
}
/* Ombre portée sur le contour échancré plutôt que sur la fenêtre : un filtre sur <dialog>
   décalerait le bouton musique (position: fixed) qu'on y glisse quand la fenêtre est ouverte. */
.modal > .btn-notch__outline { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .75)); }
.modal:not(.has-outline) { background: #0d0d0f; }
.modal__body {
    /* hauteur max = écran − marges haut/bas − retraits des coins échancrés */
    max-height: calc(100dvh - 2 * var(--modal-gap) - 2 * (var(--notch) + 4px));
    overflow: auto;
    padding: clamp(1.8rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3.5rem);
    overscroll-behavior: contain;
    /* barre de défilement fine et discrète, tenue à l'écart des coins échancrés */
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 194, 106, .22) transparent;
    margin: calc(var(--notch) + 4px) 6px calc(var(--notch) + 4px) 0;
    padding-top: max(0px, calc(clamp(1.8rem, 5vw, 3rem) - var(--notch) - 4px));
    padding-bottom: max(0px, calc(clamp(1.8rem, 5vw, 3rem) - var(--notch) - 4px));
}
.modal[open] { animation: modal-in .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(3px); }
.modal__title { text-align: center; }
.modal__close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--gold-light);
    font-size: 2.6rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, color .2s ease;
}
.modal__close:hover { color: #fff3cf; transform: rotate(90deg); }
.modal__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.modal__success { text-align: center; }
/* Inscriptions closes : fenêtre courte, texte centré */
.modal--closed { width: min(760px, calc(100vw - 32px)); text-align: center; }
.modal--closed .modal__body { padding-left: clamp(2.5rem, 6vw, 4rem); padding-right: clamp(2.5rem, 6vw, 4rem); }
.modal__closed-text { margin: 0; }
.modal__closed-text a { color: var(--gold-light); }
.modal__success-text { max-width: 44rem; margin-left: auto; margin-right: auto; } /* phrase récap : lignes de longueur confortable */
.modal__gif { width: min(340px, 100%); height: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.modal__gif[hidden] { display: none; }
.modal__success-info { max-width: 40rem; margin: 0 auto 1.5rem; font-size: .9em; color: rgba(253, 251, 245, .8); }
.modal__success-info[hidden] { display: none; }
.text-gold { color: var(--gold); font-weight: 700; }

.shuttle-form { display: grid; gap: 1rem; }
.shuttle-form[hidden], .modal__success[hidden] { display: none; } /* l'attribut hidden doit primer sur display: grid */
.shuttle-form .btn-notch { justify-self: center; margin-top: clamp(1.25rem, 3vw, 2rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--site { margin-bottom: .6rem; } /* site de rattachement, en tête du formulaire : détaché des questions */
.field { display: grid; gap: .35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: .85rem; font-weight: 700; color: var(--gold-light); padding: 0; }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select {
    width: 100%;
    padding: .75em .9em;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .8);
    color: #1a1a1a;
    transition: background .2s ease, box-shadow .2s ease;
    font: 400 1rem/1.3 var(--font-body);
}
.field select option { color: #111; }
.field input:focus, .field select:focus { outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(232, 194, 106, .6); }
.field.is-invalid input, .field.is-invalid select { box-shadow: 0 0 0 3px rgba(255, 107, 91, .75); }
.field--choice legend { margin-bottom: .35rem; }
.choice { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; cursor: pointer; }
/* Boutons radio en jetons de casino : jeton sombre par défaut, jeton vert et or une fois choisi */
.choice input {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 30px;
    height: 30px;
    margin: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle, #2c2c30 0 38%, rgba(255, 255, 255, .55) 39% 42%, #2c2c30 43% 58%, transparent 59%),
        repeating-conic-gradient(from 7deg, #8d8d93 0 18deg, #2c2c30 18deg 45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .5);
    cursor: pointer;
    transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s ease, filter .25s ease;
}
.choice input:not(:checked) { opacity: .8; }
.choice input:hover { transform: translateY(-2px); }
.choice input:checked {
    background:
        radial-gradient(circle, #1d7a3c 0 30%, #f3d68c 31% 34%, #1d7a3c 35% 38%, #fff 39% 42%, #1d7a3c 43% 58%, transparent 59%),
        repeating-conic-gradient(from 7deg, #fff 0 18deg, #1d7a3c 18deg 45deg); /* jeton vert tapis de jeu */
    box-shadow: 0 0 0 2px rgba(60, 200, 110, .7), 0 0 14px rgba(60, 200, 110, .6), 0 2px 4px rgba(0, 0, 0, .6); /* lueur verte */
    animation: chip-flip .5s ease;
}
/* « Je ne participe pas » : jeton rouge */
.choice input[name="participation"][value="non"]:checked {
    background:
        radial-gradient(circle, #b8262c 0 30%, #f3d68c 31% 34%, #b8262c 35% 38%, #fff 39% 42%, #b8262c 43% 58%, transparent 59%),
        repeating-conic-gradient(from 7deg, #fff 0 18deg, #b8262c 18deg 45deg);
    box-shadow: 0 0 0 2px rgba(230, 70, 70, .7), 0 0 14px rgba(230, 70, 70, .6), 0 2px 4px rgba(0, 0, 0, .6); /* lueur rouge */
}
.choice input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
@keyframes chip-flip {
    0% { transform: rotateY(0) scale(1); }
    50% { transform: rotateY(90deg) scale(1.15); }
    100% { transform: rotateY(0) scale(1); }
}
.form-error { margin: 0; color: #ff8a7d; font-size: .9rem; text-align: center; }
.form-error a { color: var(--gold-light); font-weight: 700; white-space: nowrap; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shuttle-form [hidden] { display: none !important; } /* l'attribut hidden prime sur les display des champs */
.form-step { display: grid; gap: 1rem; }
.field__hint { margin: -.15rem 0 .35rem; font-size: .85em; font-style: italic; color: rgba(253, 251, 245, .65); }
.choice--detailed { align-items: flex-start; }
.choice--detailed > span { display: grid; gap: .1rem; }
.choice--detailed small { font-size: .85em; line-height: 1.35; color: rgba(253, 251, 245, .7); }
.field--choice.is-invalid legend { color: #ff8a7d; }

/* =========================================================
   MOT DE LA FIN
   ========================================================= */
.finale {
    position: relative;
    background-color: var(--green);
    background-size: 1400px auto;
    background-position: center top;
    padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
}

.finale::before { /* voile sombre sur le fond à motifs */
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    pointer-events: none;
}
.finale__inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    font-weight: 500;
}
.finale__logo {
    width: min(300px, 70%);
    height: auto;
    margin: 2.5rem auto 0;
    animation: logo-glow 3s ease-in-out infinite;
}
/* Contact RH, discret sous le logo */
.finale__contact {
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(232, 194, 106, .3);
    font-size: .85em;
    color: rgba(253, 251, 245, .8);
}
.finale__contact a { color: var(--gold-light); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(232, 194, 106, .5); white-space: nowrap; }
.finale__contact a:hover { color: #fff; border-bottom-color: currentColor; }

@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 220, 140, .35)); }
    50% { filter: drop-shadow(0 0 22px rgba(255, 220, 140, .8)); }
}

/* =========================================================
   MUSIQUE
   ========================================================= */
.music-toggle {
    --size: 62px; /* 52px + 20 % */
    position: fixed;
    z-index: 50;
    right: 16px;
    bottom: 16px;
    display: grid;
    place-items: center;
    width: var(--size);
    height: var(--size);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(251, 227, 161, .9), rgba(232, 194, 106, .9)); /* fond doré à 90 %, icône bleu nuit opaque */
    color: var(--navy);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
    transition: transform .2s ease, background .2s ease;
}
.music-toggle:hover { transform: translateY(-2px); background: linear-gradient(145deg, rgba(255, 240, 196, .9), rgba(251, 227, 161, .9)); }
/* Invitation à lancer la musique : deux rebonds puis une pause, en boucle, jusqu'au premier clic */
.music-toggle.is-inviting { animation: music-bounce 2.6s ease-in-out 1.5s infinite; }
@keyframes music-bounce {
    0%, 40%, 100% { transform: translateY(0) scale(1); box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
    8% { transform: translateY(-16px) scale(1.04, .97); }
    16% { transform: translateY(0) scale(1.06, .92); box-shadow: 0 6px 20px rgba(0, 0, 0, .5), 0 0 22px rgba(232, 194, 106, .55); }
    23% { transform: translateY(-8px) scale(1); }
    30% { transform: translateY(0) scale(1.03, .96); box-shadow: 0 6px 20px rgba(0, 0, 0, .5), 0 0 16px rgba(232, 194, 106, .4); }
}
.music-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.music-toggle__icon { width: 18px; height: auto; fill: currentColor; transform: translateX(1px); }
.music-toggle__pause { display: none; width: 18px; height: auto; fill: currentColor; }
/* En lecture : icône pause à la place de la note */
.music-toggle[aria-pressed="true"] .music-toggle__icon { display: none; }
.music-toggle[aria-pressed="true"] .music-toggle__pause { display: block; }

/* Contour façon minuteur : se remplit au fil du morceau (épaisseur 2) */
.music-toggle__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* départ en haut */
    pointer-events: none;
}
.music-toggle__ring circle { fill: none; stroke-width: 2; }
.music-toggle__track { stroke: rgba(10, 20, 48, .15); }
.music-toggle__progress {
    stroke: var(--navy);
    stroke-linecap: butt; /* pas de point visible à 0 % */
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--progress, 0) * 100);
}
.music-toggle[aria-pressed="true"] { box-shadow: 0 6px 20px rgba(0, 0, 0, .5), 0 0 14px rgba(232, 194, 106, .35); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--white);
    overflow: hidden;
}
.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightbox-in .35s cubic-bezier(.2, .7, .2, 1);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .88); backdrop-filter: blur(3px); }
@keyframes lightbox-in { from { opacity: 0; } }

.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(88vw, 620px);
    margin: 0;
    touch-action: pan-y;
}
.lightbox__img {
    max-height: calc(100dvh - 12rem);
    width: auto;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .7));
}
.lightbox__caption {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    max-width: 34rem;
    margin-top: 1rem;
    padding: 0 .5rem;
    font-size: .95rem;
    line-height: 1.5;
}
.lightbox__name { font-family: var(--font-title); font-weight: 400; font-size: 1.9rem; line-height: 1.2; color: var(--gold-light); }
.lightbox__count { font-size: .75rem; letter-spacing: .12em; color: rgba(253, 251, 245, .55); }

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: rgba(5, 10, 26, .8);
    color: var(--gold-light);
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(30, 40, 80, .95); }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.7rem; }
.lightbox__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 2.2rem; padding-bottom: .15em; }
.lightbox__nav--prev { left: max(12px, calc(50% - 420px)); }
.lightbox__nav--next { right: max(12px, calc(50% - 420px)); }
.lightbox__nav--prev:hover { transform: translateX(-3px); }
.lightbox__nav--next:hover { transform: translateX(3px); }

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 700px) {
    /* Hero mobile : panneau (9–47 % de l'image) et Jet d'Eau (70–80 %) tous deux visibles.
       Image à 128 % de la largeur d'écran, centrée sur le point situé à 44,75 % ;
       L'image est calée en bas et le hero est plus haut qu'elle : le ciel est prolongé par
       sa couleur exacte (#031c3f) pour laisser de la place au titre, centré en haut ;
       « by RRG » centré en bas. */
    .hero {
        height: 100vw;
        min-height: 0;
    }
    .hero__bg {
        inset: 0;
        background-size: 128vw auto;
        background-position: calc(50vw - 128vw * 0.4475) 100%;
        background-repeat: no-repeat;
        background-color: #031c3f;
        transform-origin: 50% 50%;
    }
    .hero__content {
        inset: 0;
        width: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 7vw 4vw 6vw;
    }
    .hero__title { font-size: clamp(1.3rem, 7vw, 1.9rem); }
    .hero__by { font-size: .85rem; margin: 0; }
    .finale { background-size: 700px auto; padding-bottom: 100px; } /* bas de page dégagé des boutons fixes (langue, musique) */
    .hero__scroll { display: none; }

    :root { --inner-pad: .9rem; }

    /* Bellagio agrandi et recadré sur l'hôtel central (les ailes débordent) */
    .bellagio__img { width: 180%; max-width: none; margin-left: -40%; }
    .theme__stage { margin-top: -1.5rem; }
    .golden-frame { padding: 3.6rem 1.9rem 3.8rem; font-size: .86rem; }
    .card { width: 22vw; } /* le cadre plus haut laisse la place à des cartes plus grandes */
    .card--king { right: -2vw; top: -14%; }
    .card--queen { left: -8vw; bottom: -19vw; } /* calé sur la taille de la carte : seul son tiers haut chevauche le bas du cadre */
    .secret { padding-top: 4.5rem; } /* place pour la dame de cœur qui déborde du cadre */

    .collage__row--2 { padding-left: 0; }
    .field-row { grid-template-columns: 1fr; }
    .limo-scene { aspect-ratio: 2 / 1; --curb: .5; --bg-scale: 1.5; } /* façade à l'échelle de la limousine agrandie */
    .limo { width: 135%; left: -47%; bottom: 30%; }
    .limo-scene { margin-bottom: calc(var(--title-gap) - 100% / 2 * .30); } /* déborde de l'écran, assumé */
    .polaroid { --size: 21vw; }

    /* Galerie : flèches en bas pour laisser toute la largeur à la photo */
    .lightbox__figure { max-width: 92vw; }
    .lightbox__img { max-height: calc(100dvh - 15rem); }
    .lightbox__nav { top: auto; bottom: 18px; margin-top: 0; width: 46px; height: 46px; }
    .lightbox__nav--prev { left: calc(50% - 60px); }
    .lightbox__nav--next { right: calc(50% - 60px); }
}

/* Moins d'animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .hero__line, .hero__by { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* Desktop : tous les textes (hors titres) à 18 px */
@media (min-width: 701px) {
    body,
    .btn-gold,
    .field > span,
    .field legend,
    .field input[type="text"],
    .field input[type="email"],
    .field input[type="password"],
    .field select,
    .form-error,
    .lightbox__caption,
    .lightbox__count { font-size: 18px; }
    .btn-notch { font-size: 24px; } /* bouton navette */
}

/* Desktop : fond à motifs du mot de la fin fixe au défilement (non supporté sur iOS) */
@media (min-width: 701px) {
    .finale { background-attachment: fixed; }
    /* le voile rouge descend sur la marquise et le haut des portes (≈ 64 % de l'image) */
    .transport { --fade-end: calc(var(--img-top) + var(--bg-px, 900px) * .64); }
}

/* =========================================================
   PAGE D'ACCÈS (mot de passe)
   ========================================================= */
.gate {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background: radial-gradient(ellipse at 50% 30%, #13204a 0%, var(--navy) 45%, var(--navy-deep) 100%);
}
.gate__box { width: min(440px, 100%); }
.gate__logo { width: min(260px, 70%); height: auto; margin: 0 auto 1.5rem; filter: drop-shadow(0 0 24px rgba(255, 200, 120, .35)); }
.gate__form { display: grid; gap: 1rem; margin-top: 1.5rem; text-align: left; }
.gate__form .btn-notch { justify-self: center; margin-top: .5rem; }
.gate__form input[type="password"] { padding: .9em 1.1em; font-size: 1.2rem; letter-spacing: .12em; text-align: center; } /* champ bien visible */

/* Desktop : bouton d'inscription dans le hero, sous « by RRG Suisse One Team » (colonne de droite) */
@media (min-width: 701px) {
    .cta-sticky {
        --cta-y: calc(max(100vh, 520px) * .42 + 110px);
        padding-left: 50%;
    }
    .cta-sticky .btn-notch { font-size: 18px; } /* plus discret que les autres boutons (24 px) */
    /* Reflet lumineux qui balaie le fond du bouton (même rythme que les titres) */
    .cta-sticky .btn-sheen { position: relative; z-index: 1; }
    .cta-sticky .btn-notch::after {
        --r: 13px;
        content: "";
        position: absolute;
        inset: 2px;
        pointer-events: none;
        background: linear-gradient(105deg, transparent 38%, rgba(255, 236, 190, .36) 48%, rgba(255, 245, 220, .5) 50%, rgba(255, 236, 190, .36) 52%, transparent 62%);
        background-size: 300% 100%;
        animation: btn-sheen 6s ease-in-out infinite;
        /* découpe aux coins échancrés du bouton */
        -webkit-mask:
            radial-gradient(circle at 0 0, #0000 var(--r), #000 calc(var(--r) + .5px)) 0 0 / 51% 51% no-repeat,
            radial-gradient(circle at 100% 0, #0000 var(--r), #000 calc(var(--r) + .5px)) 100% 0 / 51% 51% no-repeat,
            radial-gradient(circle at 0 100%, #0000 var(--r), #000 calc(var(--r) + .5px)) 0 100% / 51% 51% no-repeat,
            radial-gradient(circle at 100% 100%, #0000 var(--r), #000 calc(var(--r) + .5px)) 100% 100% / 51% 51% no-repeat;
        mask:
            radial-gradient(circle at 0 0, #0000 var(--r), #000 calc(var(--r) + .5px)) 0 0 / 51% 51% no-repeat,
            radial-gradient(circle at 100% 0, #0000 var(--r), #000 calc(var(--r) + .5px)) 100% 0 / 51% 51% no-repeat,
            radial-gradient(circle at 0 100%, #0000 var(--r), #000 calc(var(--r) + .5px)) 0 100% / 51% 51% no-repeat,
            radial-gradient(circle at 100% 100%, #0000 var(--r), #000 calc(var(--r) + .5px)) 100% 100% / 51% 51% no-repeat;
    }
    @keyframes btn-sheen {
        0%, 100% { background-position: 100% 0; }
        50% { background-position: 0 0; }
    }
    /* Une fois accroché (classe posée en JS) : dans le coin supérieur droit de l'écran */
    .cta-sticky.is-stuck { padding-left: 0; padding-right: 32px; justify-content: flex-end; }
    .cta-sticky.is-stuck .btn-notch { margin-top: 20px; animation: cta-dock .35s ease-out; } /* même taille de texte, décollé des bords */
    @keyframes cta-dock { from { opacity: 0; transform: translateY(-10px); } }
    .invitation { padding-top: clamp(3rem, 8vw, 6rem); } /* plus besoin de place pour le bouton */
}

/* Mobile : le bouton accroché s'efface pendant la section transport (évite le doublon avec son bouton) */
@media (max-width: 700px) {
    .cta-sticky.is-hidden .btn-notch, .cta-sticky.is-hidden .cta-deadline { opacity: 0; transform: translateY(-12px); pointer-events: none; }
}

/* Desktop : paragraphes limités à ~65 caractères par ligne pour une lecture confortable */
@media (min-width: 701px) {
    main p:not(.las-genevas) {
        max-width: 65ch;
        margin-left: auto;
        margin-right: auto;
    }
    /* contact RH : sur une seule ligne, sans renvoyer l'adresse e-mail à la ligne */
    main p.finale__contact { max-width: none; }
}
/* =========================================================
   SÉLECTEUR DE LANGUE (FR | DE), en haut à gauche
   ========================================================= */
.lang-switch {
    position: fixed;
    bottom: 16px; /* mobile : en bas à gauche, face au bouton musique (le haut est pris par le bouton d'inscription) */
    left: 16px;
    z-index: 46;
    display: flex;
    align-items: center;
    gap: .45em;
    padding: .55em .95em;
    border-radius: 999px;
    background: rgba(3, 8, 25, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .12em;
    color: rgba(232, 194, 106, .55);
}
.lang-switch a {
    color: rgba(253, 251, 245, .7);
    text-decoration: none;
    transition: color .2s;
}
.lang-switch a:hover, .lang-switch a:focus-visible { color: #fff; }
.lang-switch a[aria-current="page"] { color: var(--gold); }
@media (min-width: 701px) {
    .lang-switch { top: 20px; bottom: auto; left: 32px; } /* desktop : en haut à gauche */
}
