/* v3.9 — Polices de la marque Land Rover (The Foundry, fournies par SMEIA le 18/11), auto-hébergées en WOFF2 (sous-ensemble latin étendu).
   Land Rover Wide Medium : titres, CTA, titre du formulaire, merci. Land Rover Web : texte courant, libellés. */
@font-face{font-family:"Land Rover Wide";src:url(/build/fonts/landrover-wide-medium.43b36b4e.woff2) format("woff2");font-weight:300 700;font-display:swap}
@font-face{font-family:"Land Rover Web";src:url(/build/fonts/landrover-web-medium.935c1db3.woff2) format("woff2");font-weight:300 500;font-display:swap}
@font-face{font-family:"Land Rover Web";src:url(/build/fonts/landrover-web-demi.ad0ce962.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Land Rover Web";src:url(/build/fonts/landrover-web-bold.3c846659.woff2) format("woff2");font-weight:700 900;font-display:swap}

/* Art of Living by Range Rover — v3
   Un écran, deux moitiés. À gauche, la photo en plein cadre porte l'accroche, à l'encre sur un voile clair.
   À droite, le formulaire sur le crème de la photo elle-même (#e0d1be, relevé sur ses bords) :
   la photo se fond dans ce crème, il n'y a donc aucune arête entre l'image et le fond.
   Ratios de contraste : voir _tests/ (mesurés sur les pixels réels du fond). */

:root {
    --cream: #e0d1be; /* fond de la colonne formulaire = fond de la photo (mesuré) */
    --cream-rgb: 224, 209, 190;
    --paper: #f3ece2; /* v3.1 : colonne formulaire, papier plus clair que le fond de la photo -> bord net */
    --ink: #171412; /* titres, valeurs, bouton : 12,1:1 sur --cream */
    --text: #2e2721; /* texte courant */
    --muted: #574b40; /* libellés : 5,6:1 sur --cream */
    --field: #7a6b5c; /* filet de champ, non textuel : 3,4:1 */
    --rule: rgba(23, 20, 18, 0.22); /* filets décoratifs */
    --error: #8f1d16; /* erreurs : 5,9:1 */

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 700ms;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: "Land Rover Web", Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    font-kerning: normal;
    overflow-x: clip;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
p {
    margin: 0;
}
::selection {
    background: var(--ink);
    color: var(--paper);
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
}
.skip:focus {
    left: 16px;
    top: 16px;
    background: var(--ink);
    color: #fff;
    padding: 12px 16px;
    z-index: 20;
    font-size: 14px;
    text-decoration: none;
}
.skip:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -5px;
}

/* =========================================================
   Structure — mobile d'abord : visuel (≈ 78 vh) puis formulaire
   ========================================================= */
.stage {
    display: block;
}
.left {
    position: relative;
    isolation: isolate;
    min-height: 80vh;
    min-height: 80svh;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 22px;
    overflow: hidden;
}
.right {
    position: relative;
    padding: 44px 24px 40px;
    background: var(--paper);
}

/* Photo plein cadre */
.bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    margin: 0;
}
.bg picture,
.photo {
    display: block;
    width: 100%;
    height: 100%;
}
.photo {
    object-fit: cover;
    object-position: 50% 100%;
    transform-origin: 40% 70%;
}
/* Voile clair : apaise le haut de l'image sous le texte, laisse les monogrammes intacts.
   Fondu bas vers le crème : le visuel se termine dans la couleur du formulaire (mobile). */
.veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(var(--cream-rgb), 0.5) 0%,
            rgba(var(--cream-rgb), 0.5) 50%,
            rgba(var(--cream-rgb), 0.2) 60%,
            rgba(var(--cream-rgb), 0) 66%
        ),
        linear-gradient(
            0deg,
            rgba(var(--cream-rgb), 0.8) 0%,
            rgba(var(--cream-rgb), 0.5) 10%,
            rgba(var(--cream-rgb), 0) 20%
        );
}

/* Accroche sur la photo */
.masthead {
    margin: 0;
}
.logo {
    width: min(78vw, 300px);
    height: auto;
}
.hero {
    margin-top: clamp(28px, 4vh, 64px);
}
.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.4;
}
.title {
    font-family: "Land Rover Wide", Arial, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--ink);
    font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.25rem);
    letter-spacing: 0.05em;
    line-height: 1.14;
    margin: 14px 0 0;
}
.title span {
    display: block;
    text-wrap: balance;
}
.lede {
    margin-top: 18px;
    max-width: 27em;
    color: var(--ink);
}
.lede p {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}
.lede p + p {
    margin-top: 8px;
}

.nowrap {
    white-space: nowrap;
}
/* v3.3 : Date et Lieu — picto contour (aria-hidden, dans le dt) aligné sur l'ensemble intitulé + valeur */
.infos {
    margin: 0;
    padding: 0;
}
.infos div {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-left: 34px;
}
.infos dt {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0;
    line-height: 1.4;
}
.infos dd {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
}
.ico {
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
} /* 1,46 px de trait à 20 px */

/* =========================================================
   Formulaire (colonne crème)
   ========================================================= */
.form-section:focus {
    outline: none;
}
.form-section h2 {
    font-family: "Land Rover Wide", Arial, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--ink);
    font-size: 20px;
    letter-spacing: 0.16em;
    line-height: 1.25;
    margin: 0;
}
.lead {
    margin-top: 12px;
    max-width: 36em;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
}
.required-note {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 14px;
    line-height: 1.4;
}
#form-zone {
    margin-top: 12px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 18px;
}
.field,
fieldset {
    margin: 0;
    min-width: 0;
}
fieldset {
    border: 0;
    padding: 0;
}
fieldset legend {
    padding: 0;
}
label,
.legend {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 2px;
    line-height: 1.4;
    transition: color 0.2s var(--ease);
}
.field:focus-within > label {
    color: var(--ink);
}
.req {
    font-weight: 400;
    margin-left: 2px;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--field);
    border-radius: 0;
    padding: 6px 0 7px;
    min-height: 40px;
    -webkit-appearance: none;
    appearance: none;
    transition:
        border-color 0.2s var(--ease),
        box-shadow 0.2s var(--ease);
}
input[type="text"]:hover,
input[type="tel"]:hover,
input[type="email"]:hover {
    border-bottom-color: var(--ink);
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    outline: none;
    border-bottom-color: var(--ink);
    box-shadow: 0 1px 0 0 var(--ink);
}
input[type="text"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="email"]:focus-visible {
    outline: none;
}
input[aria-invalid="true"] {
    border-bottom-color: var(--error);
}
input[type="text"][aria-invalid="true"]:focus,
input[type="tel"][aria-invalid="true"]:focus,
input[type="email"][aria-invalid="true"]:focus {
    border-bottom-color: var(--error);
    box-shadow: 0 1px 0 0 var(--error);
}

/* Radios sur une ligne, cases au trait */
.choices {
    display: flex;
    gap: 36px;
}
.choice,
.check {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    margin: 0;
}
.choice {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    min-height: 36px;
}
.check {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 12px;
    line-height: 1.5;
    padding: 1px 0;
    min-height: 24px;
}
input[type="radio"],
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex: none;
    background: transparent;
    border: 1px solid var(--field);
    cursor: pointer;
    display: grid;
    place-content: center;
    transition:
        background-color 0.2s var(--ease),
        border-color 0.2s var(--ease),
        box-shadow 0.2s var(--ease);
}
/* Cible ≥ 24 px : la case est dans un libellé cliquable de 24 px de haut ou plus */
input[type="radio"] {
    border-radius: 50%;
}
input[type="radio"]:checked {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 4px var(--paper);
    background: var(--ink);
}
input[type="checkbox"] {
    margin-top: 1px;
}
input[type="checkbox"]:checked {
    border-color: var(--ink);
    background: var(--ink)
        url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M5 10.5l3.2 3.2L15 6.8%27 fill=%27none%27 stroke=%27%23f3ece2%27 stroke-width=%271.8%27/%3E%3C/svg%3E")
        center/16px no-repeat;
}
input[type="radio"]:hover,
input[type="checkbox"]:hover {
    border-color: var(--ink);
}
input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}
input[type="radio"][aria-invalid="true"],
input[type="checkbox"][aria-invalid="true"] {
    border-color: var(--error);
}

.error {
    display: block;
    color: var(--error);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 4px;
    text-wrap: balance;
}
.error:empty {
    display: none;
}
.summary {
    border-left: 2px solid var(--error);
    padding: 2px 0 2px 12px;
    margin: 0 0 16px;
    color: var(--error);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}
.summary:empty {
    display: none;
}

.consents {
    margin-top: 2px;
}
.submit {
    margin-top: 6px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Land Rover Wide", Arial, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
    border-radius: 0;
    font-size: 14px;
    letter-spacing: 0.32em;
    padding: 15px 40px 15px calc(40px + 0.32em);
    min-width: min(100%, 240px);
    min-height: 50px;
    cursor: pointer;
    text-decoration: none;
    transition:
        background-color 0.25s var(--ease),
        color 0.25s var(--ease);
}
.btn:hover {
    background: transparent;
    color: var(--ink);
}
.btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}
.btn[aria-busy="true"] {
    cursor: progress;
    opacity: 0.72;
}
.btn:disabled:hover {
    background: var(--ink);
    color: #fff;
}

/* Signature Smeia, en bas de la colonne droite */
.sign {
    margin-top: 40px;
    padding-top: 0;
}
.smeia {
    font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
    color: #000;
    margin: 0;
    line-height: 1;
}
.smeia-mark {
    display: block;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.01em;
}
.smeia-sign {
    display: block;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.02em;
    margin-top: 5px;
}

/* =========================================================
   Tablette
   ========================================================= */
@media (min-width: 600px) {
    .left {
        padding: 40px 48px 36px;
    }
    .right {
        padding: 56px 48px 48px;
    }
    .logo {
        width: 320px;
    }
    .lede p {
        font-size: 16px;
    }
    .grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
    }
    .span {
        grid-column: 1/-1;
    }
    #form-zone,
    .form-head {
        max-width: 620px;
    }
}

/* =========================================================
   Desktop ≥ 1200 px : un seul écran, deux moitiés
   ========================================================= */
@media (min-width: 1200px) {
    :root {
        --lw: 50%; /* largeur de la moitié gauche */
        --py: clamp(
            32px,
            6vh,
            64px
        ); /* marge haute, commune aux deux colonnes */
        --pb: clamp(
            26px,
            4.2vh,
            48px
        ); /* marge basse, commune (Date/Lieu et Smeia sur la même ligne de pied) */
        --lx: clamp(48px, 4.4vw, 88px); /* marge gauche du texte sur la photo */
        --rx: clamp(56px, 5.6vw, 120px); /* marges de la colonne formulaire */
    }
    html,
    body {
        height: 100%;
    }
    .stage {
        display: grid;
        grid-template-columns: var(--lw) minmax(0, 1fr);
        height: 100vh;
        height: 100dvh;
    }
    .left {
        min-height: 0;
        height: 100%;
        padding: var(--py) calc(var(--lx) + 4%) var(--py) var(--lx);
    }
    /* Bloc formulaire de 620 px au plus, centré dans la moitié droite (pas de vide à droite à 1920) */
    .right {
        height: 100%;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        padding: var(--py) max(var(--rx), calc((100% - 620px) / 2));
        overscroll-behavior: contain;
    }

    /* Le cadrage garde les deux monogrammes : bas de l'image calé en bas de l'écran */
    .photo {
        object-position: 50% 100%;
    }
    /* Desktop : voile clair en haut (sous l'accroche), voile bas (sous Date/Lieu),
     et fondu de la photo vers le crème sur ses 16 % de droite — aucune coupure avec le formulaire. */
    /* v3.1 : plus de fondu vers la droite (bord net), voile allégé sous l'accroche */
    /* v3.2 : voile crème chaud (= fond photo #e0d1be), limité au texte en haut à gauche et en bas ; RR et bloc intacts */
    .veil {
        background:
            radial-gradient(
                ellipse 96% 40% at 20% 26%,
                rgba(var(--cream-rgb), 0.56) 0%,
                rgba(var(--cream-rgb), 0.52) 52%,
                rgba(var(--cream-rgb), 0.22) 80%,
                rgba(var(--cream-rgb), 0) 100%
            ),
            linear-gradient(
                0deg,
                rgba(var(--cream-rgb), 0.8) 0%,
                rgba(var(--cream-rgb), 0.5) 8%,
                rgba(var(--cream-rgb), 0) 15%
            );
    }

    .logo {
        width: clamp(300px, 25vw, 400px);
    }
    .hero {
        margin-top: clamp(40px, 6.6vh, 96px);
    }
    .eyebrow {
        font-size: 12px;
    }
    .title {
        font-size: clamp(2.25rem, 2.85vw, 3rem);
        margin-top: clamp(14px, 2.2vh, 24px);
    }
    .title span {
        white-space: nowrap;
    }
    .lede {
        margin-top: clamp(18px, 3vh, 32px);
        max-width: 27.5em;
    }
    .lede p {
        font-size: 16px;
    }
    /* v3.3 : les deux enveloppes mobiles s'effacent, la colonne gauche garde sa mise en page v3.2 */
    .visual,
    .intro {
        display: contents;
    }
    .left {
        display: flex;
        flex-direction: column;
        position: relative;
        isolation: isolate;
        overflow: hidden;
    }
    /* Date / Lieu : filets fins au-dessus et en dessous, filet vertical entre les deux, pictos à gauche */
    .infos {
        margin-top: auto;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 32px;
        width: max-content;
        max-width: none; /* v3.3b : largeur du contenu, les filets couvrent tout le texte (peut entrer dans la marge droite, jamais à moins de 32 px du bord) */
        border-top: 1px solid var(--rule);
        border-bottom: 1px solid var(--rule);
        padding: 14px 0;
    }
    .left {
        padding-bottom: var(--pb);
    }
    .right {
        padding-bottom: var(--pb);
    }
    .infos div + div {
        border-left: 1px solid var(--rule);
        padding-left: 66px;
    }
    .infos div + div .ico {
        left: 32px;
    }
    .infos dt {
        font-size: 11px;
    }
    .infos dd {
        font-size: 16px;
    }

    .form-section {
        width: 100%;
        margin: auto 0;
    } /* v3.1 : formulaire centré verticalement */
    .form-section h2 {
        font-size: clamp(18px, 1.4vw, 22px);
    }
    .lead {
        font-size: clamp(13.5px, 1.45vh, 15px);
        max-width: none;
    }
    #form-zone {
        margin-top: clamp(12px, 2vh, 24px);
    }
    .grid {
        column-gap: 28px;
        row-gap: clamp(12px, 2.6vh, 32px);
    }
    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        min-height: clamp(40px, 4.4vh, 48px);
    }
    .infos dd {
        white-space: nowrap;
    }
    .sign {
        margin-top: 0;
        padding-top: 24px;
    }
    /* État d'erreur : les 7 messages prennent la place des respirations, la hauteur ne déborde pas */
    .form-section:has(.summary:not(:empty)) .grid {
        row-gap: clamp(10px, 1.3vh, 20px);
    }
    .form-section:has(.summary:not(:empty)) .lead {
        margin-top: 8px;
    }
}

/* Écrans larges : moitié gauche ramenée à 46 % pour limiter l'agrandissement de la photo */
@media (min-width: 1700px) {
    :root {
        --lw: 46%;
    }
}

/* Hauteurs courtes (ex. 1280 × 720) : compaction, puis défilement interne de la colonne formulaire si besoin */
@media (min-width: 1200px) and (max-height: 780px) {
    :root {
        --py: 28px;
        --pb: 24px;
        --rx: 52px;
    }
    .infos {
        column-gap: 22px;
        padding: 10px 0;
    }
    .infos div + div {
        padding-left: 56px;
    }
    .infos div + div .ico {
        left: 22px;
    }
    .infos dd {
        font-size: 15px;
    }
    .grid {
        column-gap: 24px;
    }
    .error {
        margin-top: 2px;
    }
    .summary {
        margin-bottom: 10px;
    }
    .check {
        line-height: 1.45;
    }
    .logo {
        width: 360px;
    }
    .hero {
        margin-top: 32px;
    }
    .title {
        font-size: 2.125rem;
    }
    .lede {
        margin-top: 14px;
    }
    .lede p {
        font-size: 15px;
        line-height: 1.55;
    }
    .lede p + p {
        margin-top: 6px;
    }
    .form-section h2 {
        font-size: 18px;
    }
    .lead {
        margin-top: 8px;
        font-size: 12.5px;
        line-height: 1.5;
    }
    .required-note {
        margin-bottom: 8px;
    }
    #form-zone {
        margin-top: 8px;
    }
    .grid {
        row-gap: 10px;
    }
    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        min-height: 36px;
        padding: 4px 0 5px;
    }
    .choice {
        min-height: 30px;
    }
    .btn {
        min-height: 46px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .sign {
        padding-top: 16px;
    }
    .smeia-mark {
        font-size: 22px;
    }
    .form-section:has(.summary:not(:empty)) .grid {
        row-gap: 6px;
    }
    .form-section:has(.summary:not(:empty)) .required-note {
        margin-bottom: 6px;
    }
}

/* =========================================================
   Page Merci
   ========================================================= */
.logo-link {
    display: inline-block;
}
.logo-link:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 6px;
}
.thanks:focus {
    outline: none;
}
.title-merci {
    font-family: "Land Rover Wide", Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--ink);
    font-size: clamp(3rem, 2rem + 5vw, 5.5rem);
    letter-spacing: 0.1em;
    line-height: 1;
    margin: 0;
}
.thanks-text {
    margin-top: 28px;
    max-width: 30em;
}
.thanks-text p {
    font-size: 16px;
    line-height: 1.6;
}
.thanks-text p + p {
    margin-top: 10px;
}
.confirm {
    color: var(--ink);
    font-weight: 500;
}
.back {
    margin-top: 32px;
    font-size: 15px;
    font-weight: 500;
}
.back a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    text-decoration-color: var(--field);
    display: inline-block;
    padding: 6px 0;
    transition: text-decoration-color 0.2s var(--ease);
}
.back a:hover {
    text-decoration-color: var(--ink);
}
.back a:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

@media (min-width: 1200px) {
    .page-merci .left {
        min-height: 0;
    }
    .page-merci .right {
        justify-content: flex-start;
    }
    .page-merci .thanks {
        margin: auto 0;
    }
    .page-merci .sign {
        margin-top: 0;
    }
}

/* =========================================================
   v3.3 — Mobile et tablette (< 1200 px) : la photo d'abord, le texte ensuite
   1er écran : photo nette, logo + surtitre + titre seuls dessus (voile crème minimal en haut).
   Coupure nette, puis section papier : accroche aérée, Date / Lieu entre filets, formulaire.
   ========================================================= */
@media (max-width: 1199px) {
    .left {
        display: block;
        min-height: 0;
        padding: 0;
        overflow: visible;
        isolation: auto;
    }
    /* v3.3c — maquette Mehdi : logo centré en grand sur la photo, photo cadrée haut qui se fond dans son crème,
     titre centré sur trois niveaux sur ce crème, signature en bas. Plus de voile ni de surtitre au-dessus du titre. */
    .visual {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: var(--cream);
        height: 100vh;
        height: 100svh;
        min-height: 560px;
        max-height: 1100px;
        padding: 0;
    }
    /* Cadrage calé sur la maquette : image à 143 vw de large, RR centrés vers 40 % de la hauteur d'écran,
     bloc coupé en haut et à droite sur la moitié droite ; le bas de l'image se fond dans son crème. */
    .bg {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        z-index: 0;
        height: calc(var(--rr-v, 40vh) + 50.6vw);
        height: calc(var(--rr, 40svh) + 50.6vw);
    }
    .bg::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 22%;
        pointer-events: none;
        background: linear-gradient(
            180deg,
            rgba(var(--cream-rgb), 0) 0%,
            rgba(var(--cream-rgb), 0.55) 45%,
            var(--cream) 100%
        );
    }
    /* image calée en bas et rognée en haut : le coin brun du rouleau sort du cadre, le logo reste sur le crème */
    .bg picture {
        position: absolute;
        left: -21.5vw;
        width: 143.3vw;
        top: calc(var(--rr-v, 40vh) - 150.2vw);
        top: calc(var(--rr, 40svh) - 150.2vw);
        height: 200.8vw;
    }
    .photo {
        object-position: 50% 50%;
    }
    .veil {
        display: none;
    }
    .masthead {
        position: absolute;
        top: clamp(22px, 3.4svh, 32px);
        left: 24px;
        right: 24px;
        z-index: 1;
        text-align: center;
    }
    .logo {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }
    .hero {
        margin-top: var(--ty-v, 65vh);
        margin-top: var(--ty, 65svh);
        position: relative;
        z-index: 1;
        padding: 0 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .title {
        order: 1;
        margin: 0;
        letter-spacing: 0.04em;
        line-height: 1.08;
        font-size: min(calc((100vw - 48px) / 8.6), 3.4rem);
    }
    .title .line {
        width: auto;
    }
    .title .l3 {
        font-size: 0.56em;
        letter-spacing: 0.06em;
        margin-top: 0.5em;
    }
    .title span {
        white-space: nowrap;
    }
    .eyebrow {
        order: 2;
        margin-top: clamp(44px, 8.4svh, 78px);
        font-size: 11.5px;
        font-weight: 500;
        letter-spacing: 0.36em;
        padding-left: 0.36em;
        white-space: nowrap;
        --d: 1450ms !important;
    }
    .l2 .line-in {
        --d: 1020ms;
    }
    .l3 .line-in {
        --d: 1160ms !important;
    }
    /* Merci mobile : même premier écran qu'index ; « Merci. » + confirmation dans l'image, à la place du titre */
    .title-m .l3 span {
        white-space: normal;
        text-wrap: balance;
    }
    .title-m .l3 {
        max-width: 20em;
        margin-left: auto;
        margin-right: auto;
    }
    .title-m {
        padding-bottom: 0.56em;
    } /* compense la ligne en moins : signature à la même hauteur que sur index */
    .page-merci .title-merci,
    .page-merci .confirm {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .page-merci .thanks-text {
        margin-top: 0;
    }
    .intro {
        background: var(--paper);
        padding: 44px 24px 4px;
    }
    .lede {
        margin: 0;
        max-width: 32em;
    }
    .lede p {
        font-size: 16px;
        line-height: 1.75;
        font-weight: 400;
        color: var(--text);
    }
    .lede p + p {
        margin-top: 14px;
    }
    .infos {
        margin-top: 36px;
        border-top: 1px solid var(--rule);
        max-width: 32em;
    }
    .infos div {
        padding: 16px 0 16px 38px;
        border-bottom: 1px solid var(--rule);
    }
    .infos dt {
        font-size: 10.5px;
    }
    .infos dd {
        font-size: 16px;
    }
    .right {
        padding-top: 48px;
    }
    /* Confirmer pleine largeur du formulaire (mêmes marges que les champs), cible tactile ≥ 52 px ; survol/focus en contour inchangés */
    .submit {
        margin-top: 14px;
    }
    .btn {
        display: flex;
        width: 100%;
        min-height: 52px;
    }
    /* Merci : le lien retour devient un bouton contour pleine largeur (action secondaire) */
    .back a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 52px;
        padding: 12px 10px;
        border: 1px solid var(--ink);
        text-decoration: none;
        font-family: "Land Rover Wide", Arial, sans-serif;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        font-size: 12px;
        white-space: nowrap;
        text-align: center;
        transition:
            background-color 0.3s var(--ease-soft),
            color 0.3s var(--ease-soft);
    }
    .back a:hover,
    .back a:focus-visible {
        background: var(--ink);
        color: var(--paper);
    }
    .page-merci .intro {
        padding-top: 36px;
    }
    .page-merci .infos {
        margin-top: 0;
    }
    /* Apparition au défilement (IntersectionObserver, v3.js) : la section papier, pas la photo */
    .js .intro .rise {
        animation: none;
    }
    .io .reveal {
        opacity: 0;
        transform: translateY(16px);
        transition:
            opacity 0.8s var(--ease-out),
            transform 0.8s var(--ease-out);
    }
    .io .reveal.is-in {
        opacity: 1;
        transform: none;
    }
    .io .infos.reveal {
        transition-delay: 0.12s;
    }
}
@media (min-width: 600px) and (max-width: 1199px) {
    .masthead {
        left: 48px;
        right: 48px;
    }
    .intro {
        padding: 56px 48px 4px;
    }
}

/* v3.6 — CTA « Je m'inscris » dans le premier écran mobile (index seulement) :
   titre → CTA → signature ; sur les écrans courts, photo et titre remontent un peu pour que tout tienne. */
.cta-hero {
    display: none;
}
@media (max-width: 1199px) {
    .page-index .cta-hero {
        display: flex;
        order: 2;
        width: 100%;
        max-width: 420px;
        min-height: 0;
        height: 52px;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: clamp(18px, 3.2svh, 30px);
        letter-spacing: 0.08em;
    }
    .page-index .eyebrow {
        order: 3;
        margin-top: clamp(16px, 3svh, 28px);
        --d: 1560ms !important;
    }
}
@media (max-width: 1199px) and (max-height: 760px) {
    .page-index {
        --rr-v: 36vh;
        --rr: 36svh;
        --ty-v: 59vh;
        --ty: 59svh;
    }
}
/* =========================================================
   Mouvement v3.1 : entrée orchestrée (≈ 2,3 s), une seule fois, au chargement.
   Photo (fondu + 1,04 → 1) · logo · surtitre · titre ligne par ligne (masque) · accroche · Date/Lieu.
   Colonne formulaire : un seul fondu global, aucun texte révélé. transform/opacity uniquement :
   aucun décalage de mise en page. prefers-reduced-motion : tout est coupé.
   ========================================================= */
:root {
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes photo-in {
    from {
        opacity: 0;
        transform: scale(1.04);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes line-up {
    from {
        transform: translateY(108%);
    }
    to {
        transform: none;
    }
}
/* Masque de ligne : marge intérieure pour ne pas rogner l'accent de « É » ni les jambages */
.title .line {
    display: block;
    overflow: hidden;
    padding: 0.16em 0 0.08em;
    margin: -0.16em 0 -0.08em;
}
.title .line-in {
    display: inline-block;
}
@media (min-width: 1200px) {
    .title-m {
        display: none;
    }
    .title .line {
        width: max-content;
        max-width: none;
    }
    .title {
        white-space: nowrap;
    }
    .title .l1,
    .title .l2 {
        display: inline-block;
        vertical-align: top;
    }
}
.l2 .line-in {
    --d: 900ms;
}
.js .photo {
    animation: photo-in 1.6s var(--ease-soft) both;
}
.js .veil {
    animation: fade 1.2s linear 0.2s both;
}
.js .rise {
    animation: rise 0.9s var(--ease-out) both;
    animation-delay: var(--d, 0ms);
}
.js .title .line-in {
    animation: line-up 1.05s var(--ease-out) both;
    animation-delay: var(--d, 0ms);
}
.js .fade-col {
    animation: fade 0.9s linear 0.35s both;
}

/* Bouton : noir plein -> contour au survol et au focus */
.btn {
    transition:
        background-color 0.3s var(--ease-soft),
        color 0.3s var(--ease-soft),
        border-color 0.3s var(--ease-soft);
}
.btn:hover,
.btn:focus-visible {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn:active {
    transform: translateY(1px);
}

/* Champs : le souligné se trace de gauche à droite au focus */
.field {
    position: relative;
}
input[type="text"],
input[type="tel"],
input[type="email"] {
    background-image: linear-gradient(var(--ink), var(--ink));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition:
        border-color 0.2s var(--ease-soft),
        background-size 0.45s var(--ease-out);
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    box-shadow: none;
    background-size: 100% 2px;
}
input[type="text"][aria-invalid="true"],
input[type="tel"][aria-invalid="true"],
input[type="email"][aria-invalid="true"] {
    background-image: linear-gradient(var(--error), var(--error));
}
input[type="text"][aria-invalid="true"]:focus,
input[type="tel"][aria-invalid="true"]:focus,
input[type="email"][aria-invalid="true"]:focus {
    box-shadow: none;
}
/* Radios et cases : remplissage doux, coche qui se pose */
input[type="radio"]:checked {
    animation: tick 0.28s var(--ease-out);
}
input[type="checkbox"]:checked {
    animation: tick 0.28s var(--ease-out);
}
@keyframes tick {
    from {
        transform: scale(0.82);
    }
    to {
        transform: scale(1);
    }
}
.choice:hover input,
.check:hover input {
    border-color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
    .js .photo,
    .js .veil,
    .js .rise,
    .js .title .line-in,
    .js .fade-col {
        animation: none;
    }
    input[type="radio"]:checked,
    input[type="checkbox"]:checked {
        animation: none;
    }
    .btn,
    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        transition: none;
    }
    .io .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* v3.3c : signature sur une ligne même à 375 */
@media (max-width: 389px) {
    .eyebrow {
        letter-spacing: 0.3em;
        padding-left: 0.3em;
    }
}

/* =========================================================
   v3.7 — corrections SMEIA (18/11)
   1. Logo Range Rover sur une bande blanche en haut, hors de la photo (comme la simulation « Template LP »).
   2. Lieu retiré : Date seule entre filets.
   3. Signature Smeia centrée (et « Importateur exclusif » centré dessous).
   ========================================================= */
:root {
    --tb: 64px;
}
.topbar {
    position: relative;
    z-index: 2;
    background: #fff;
    height: var(--tb);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}
.topbar .logo {
    width: min(calc(100vw - 64px), 300px);
    max-width: none;
    margin: 0;
}
.topbar .logo-link {
    display: block;
    line-height: 0;
}
/* Smeia centré */
.sign {
    text-align: center;
}
.smeia {
    display: inline-block;
}
@media (min-width: 600px) {
    :root {
        --tb: 72px;
    }
    .topbar .logo {
        width: 320px;
    }
}
@media (min-width: 1200px) {
    :root {
        --tb: clamp(64px, 9vh, 92px);
    }
    .topbar .logo {
        width: clamp(240px, 19vw, 320px);
    }
    /* bande blanche limitée à la colonne image (comme la simulation : logo centré au-dessus de la photo) ;
     la colonne formulaire garde toute la hauteur d'écran */
    .topbar {
        position: absolute;
        top: 0;
        left: 0;
        width: var(--lw);
        padding: 0 var(--lx);
    }
    .left {
        margin-top: var(--tb);
        height: calc(100% - var(--tb));
    }
    .hero {
        margin-top: 0;
    }
    /* Date seule : filets haut/bas sur la largeur du contenu */
    .infos {
        grid-template-columns: auto;
    }
    .sign {
        align-self: stretch;
    }
    /* texte remonté de la hauteur du logo : le voile clair suit (accroche AA sur tous les pixels) */
    .veil {
        background:
            radial-gradient(
                ellipse 100% 44% at 20% 21%,
                rgba(var(--cream-rgb), 0.6) 0%,
                rgba(var(--cream-rgb), 0.56) 52%,
                rgba(var(--cream-rgb), 0.22) 80%,
                rgba(var(--cream-rgb), 0) 100%
            ),
            linear-gradient(
                0deg,
                rgba(var(--cream-rgb), 0.8) 0%,
                rgba(var(--cream-rgb), 0.5) 8%,
                rgba(var(--cream-rgb), 0) 15%
            );
    }
}
@media (min-width: 1200px) and (max-height: 780px) {
    :root {
        --tb: 60px;
    }
    .topbar .logo {
        width: 240px;
    }
    .hero {
        margin-top: 0;
    }
}
@media (max-width: 1199px) {
    /* la photo commence sous la bande : le premier écran = bande + visuel */
    .visual {
        height: calc(100vh - var(--tb));
        height: calc(100svh - var(--tb));
        min-height: 500px;
    }
    .page-index,
    .page-merci {
        --rr-v: calc((100vh - var(--tb)) * 0.37);
        --rr: calc((100svh - var(--tb)) * 0.37);
        --ty-v: calc((100vh - var(--tb)) * 0.6);
        --ty: calc((100svh - var(--tb)) * 0.6);
    }
    .infos div:last-of-type {
        border-bottom: 1px solid var(--rule);
    }
}
@media (max-width: 1199px) and (max-height: 760px) {
    .page-index,
    .page-merci {
        --rr-v: calc((100vh - var(--tb)) * 0.34);
        --rr: calc((100svh - var(--tb)) * 0.34);
        --ty-v: calc((100vh - var(--tb)) * 0.56);
        --ty: calc((100svh - var(--tb)) * 0.56);
    }
}

/* v3.8 — Confirmer centré dans la colonne formulaire, sur l'axe de la signature Smeia (ordinateur ; pleine largeur sur mobile) */
.submit {
    text-align: center;
}
@media (min-width: 1200px) {
    .submit {
        display: flex;
        justify-content: center;
    }
}

/* v3.9 — portables Windows à 125–150 % : la fenêtre Chrome n'offre que 560–650 px de haut.
   Sous 660 px, la colonne formulaire débordait de quelques pixels et affichait une barre de défilement interne,
   et l'accroche passait sur les monogrammes. Compaction supplémentaire, sans défilement. */
@media (min-width: 1200px) and (max-height: 660px) {
    :root {
        --py: 20px;
        --pb: 16px;
        --tb: 52px;
    }
    .topbar .logo {
        width: 220px;
    }
    .title {
        font-size: 1.8rem;
        margin-top: 10px;
    }
    .eyebrow {
        font-size: 11px;
    }
    .lede {
        margin-top: 10px;
    }
    .lede p {
        font-size: 14px;
        line-height: 1.5;
    }
    .lede p + p {
        margin-top: 4px;
    }
    .infos {
        padding: 8px 0;
    }
    .form-section h2 {
        font-size: 17px;
    }
    .lead {
        font-size: 12px;
        line-height: 1.45;
        margin-top: 6px;
    }
    .required-note {
        font-size: 11.5px;
        margin-bottom: 6px;
    }
    #form-zone {
        margin-top: 6px;
    }
    .grid {
        row-gap: 6px;
    }
    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        min-height: 32px;
        padding: 3px 0 4px;
    }
    .choice {
        min-height: 28px;
    }
    .check {
        font-size: 11.5px;
        line-height: 1.4;
    }
    .btn {
        min-height: 42px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .sign {
        padding-top: 10px;
    }
    .smeia-mark {
        font-size: 20px;
    }
    .smeia-sign {
        font-size: 11px;
        margin-top: 3px;
    }
    .form-section:has(.summary:not(:empty)) .grid {
        row-gap: 2px;
    }
    .form-section:has(.summary:not(:empty)) .lead {
        display: none;
    }
}
/* Filet de sécurité : si la colonne doit quand même défiler (erreurs sur très petit écran), barre fine aux couleurs du papier */
@media (min-width: 1200px) {
    .right {
        scrollbar-width: thin;
        scrollbar-color: rgba(23, 20, 18, 0.25) transparent;
    }
}

/* v3.9 — Land Rover Wide Medium est ~25 % plus large que Jura : tailles de titre recalculées */
@media (min-width: 1200px) {
    .title {
        font-size: clamp(1.8rem, 2.25vw, 2.4rem);
        letter-spacing: 0.03em;
    }
}
@media (min-width: 1200px) and (max-height: 780px) {
    .title {
        font-size: 1.7rem;
    }
}
@media (min-width: 1200px) and (max-height: 660px) {
    .title {
        font-size: 1.6rem;
    }
}
@media (max-width: 1199px) {
    .title {
        font-size: min(calc((100vw - 48px) / 10.8), 2.7rem);
        letter-spacing: 0.02em;
    }
    .title .l3 {
        font-size: 0.6em;
        letter-spacing: 0.03em;
    }
}
.title .line {
    padding: 0.2em 0 0.1em;
    margin: -0.2em 0 -0.1em;
}

