/* =====================================================================
   Feuille de style — identité QUOZIT (brand board : bleu foncé / rose /
   jaune / bleu ciel. Titres en Fredoka — alternative gratuite à Groka,
   voir note plus bas — sous-titres en Fraunces italique, texte courant
   en Montserrat). Les couleurs et polices sont regroupées ici pour être
   changées facilement.
   ===================================================================== */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/montserrat-variable.woff2') format('woff2');
}
@font-face {
    /* Fredoka — Eva a envoyé Groka, mais le fichier fourni est une version
       « Demo for Personal Use » (pas de licence commerciale) : impossible à
       utiliser sur ce site. Fredoka est une alternative gratuite et
       géométrique, de même esprit que le lettrage du logo. */
    font-family: 'Fredoka';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/fredoka-variable.woff2') format('woff2');
}
@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 300 600;
    font-display: swap;
    src: url('fonts/fraunces-italic-variable.woff2') format('woff2');
}

:root {
    /* Fond crème + encre — nouvelle direction visuelle (étape 15, inspirée de
       Studio Ducasse). Remplace le fond bleu pâle/encre bleu nuit de l'étape 13. */
    --bg: #fffaf3;
    --surface: #ffffff;
    --ink: #2b2b33;
    --ink-soft: #55555f;
    --muted: #8a8a93;
    --line: #efe3d0;
    --line-strong: #ddccac;

    /* Bleu foncé QUOZIT — couleur de marque principale (logo, boutons,
       liens, focus). */
    --brand: #3548c0;
    --brand-dark: #273598;
    --brand-ink: #ffffff;
    --brand-soft: #e4eaff;
    --brand-border: #b3d2ff;

    /* Rose, jaune et bleu ciel de la brand board. Règles de contraste d'Eva :
       rose sur bleu (3,6) réservé aux grands titres/bandeau, jamais au texte
       courant ni aux petits boutons ; blanc sur rose (2,0) à éviter partout —
       toujours de l'encre (--ink) ou du bleu (--brand) sur un aplat rose ou
       jaune, jamais du blanc. Blanc sur bleu (7,4), bleu sur jaune (6,4) et
       encre sur crème (13,5) passent partout. */
    --pink: #ff98aa;
    --accent: #fff187;
    --sky: #b3d2ff;

    --ok: #1f7a4d;
    --ok-soft: #e4f3ea;
    /* --warn est une teinte foncée dérivée de --accent (jaune), pour rester
       lisible en texte ; --accent reste la couleur jaune franche pour les
       aplats (badges, bandeaux). */
    --warn: #7a6a00;
    --warn-soft: #fff9d6;
    --warn-border: #f0e18a;
    /* Pas de rouge/corail dans cette brand board : --danger reste une teinte
       de rouge indépendante, pour que les erreurs restent reconnaissables. */
    --danger: #c0444b;
    --danger-soft: #fdeceb;
    --danger-border: #f6cac8;

    /* Alias en français des 6 couleurs de charte (demandés tels quels dans le brief de la
       refonte visuelle) — mêmes valeurs que les variables ci-dessus, qui restent les seules
       utilisées dans le reste de cette feuille : renommer partout aurait été un très gros
       diff pour aucun bénéfice, puisque les couleurs étaient déjà centralisées ici sous ces
       noms depuis l'étape 15. Ces alias servent de repère si vous relisez ce fichier. */
    --bleu: var(--brand);
    --rose: var(--pink);
    --jaune: var(--accent);
    --bleu-clair: var(--sky);
    --creme: var(--bg);
    --encre: var(--ink);

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(43, 43, 51, .06), 0 4px 18px rgba(43, 43, 51, .08);
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: 'Fredoka', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-sub: 'Fraunces', Georgia, 'Times New Roman', serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.55 var(--font);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Les bandeaux "plein bord" de la page d'accueil (voir .bleed) débordent de
       .page via une astuce 100vw/-50vw : ce overflow-x évite toute barre de
       défilement horizontale parasite si 100vw inclut la largeur de la
       scrollbar du navigateur. */
    overflow-x: hidden;
}

a { color: var(--brand); text-underline-offset: 2px; }
/* Focus clavier visible partout (accessibilité) — les boutons/widgets qui ont déjà leur
   propre anneau de focus plus bas gardent le leur, celui-ci couvre tous les liens simples
   (nav, onglets, pagination, tableaux…). */
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; letter-spacing: 0; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
/* Reprise du H1/H2 de la référence envoyée par Eva : la fin du titre bascule
   en Fraunces italique, comme "communication" dans la référence Studio
   Ducasse d'origine. Utilisé dans home.php sur chaque grand titre. */
.heading-accent { font-family: var(--font-sub); font-weight: 400; font-style: italic; letter-spacing: 0; }

/* Grands titres de section de la page d'accueil : le h2 générique ci-dessus
   (1.2rem, pensé pour les pages de formulaire/tableau de bord) les écrasait
   sans ce bloc, qui cible explicitement chaque section de home.php — à
   compléter si une nouvelle section avec un h2 est ajoutée à cette page. */
.problem h2, .how-it-works h2, .audience h2, .benefits h2, .security h2,
.testimonial h2, .pricing h2, .faq h2, .final-cta h2, .metier-amounts h2, .metier-related h2,
.option-pro h2 {
    font-weight: 700;
    font-size: clamp(30px, 3.6vw, 44px);
    color: var(--brand);
}
.final-cta h2 { color: var(--ink); }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .92em; }
[hidden] { display: none !important; }

/* ---------- En-tête ---------- */

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.brand-logo { height: 56px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
/* Nav du visiteur anonyme (page d'accueil et consorts) : centrée entre le logo
   et le bouton d'inscription, qui devient son propre élément à droite — voir
   layout.php. La nav de l'espace loueur/admin garde son alignement simple. */
.nav-public { flex: 1; justify-content: center; }
.nav a, .link-button {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    text-decoration: none;
    font: inherit;
    font-size: .95rem;
}
.nav a:hover, .link-button:hover { background: var(--bg); color: var(--ink); }
.nav a.is-active { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.nav-logout { margin: 0; }
.link-button { background: none; border: 0; cursor: pointer; }
/* Bouton "menu" mobile (espace connecté) : masqué sur desktop, voir le bloc mobile
   plus bas pour son apparence et le dépliage de .nav-collapsible. */
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px; cursor: pointer; }
.nav-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 1px; }
.nav-toggle span + span { margin-top: 4px; }

/* ---------- Page ---------- */

.page {
    flex: 1;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 20px 56px;
}
/* La page d'accueil respire un peu plus large que le reste du site (demandé
   explicitement : ~1200px au lieu de 1080px) — l'espace loueur/admin ne sont
   pas concernés. */
body.is-home .page { max-width: 1200px; }

/* Pied de page plein bord, fond bleu, logo primaire en rose (vrai SVG
   d'Eva), liens légaux en blanc — étendu à tout le site (étape 18), plus
   réservé à la page d'accueil — même technique "plein bord" que .bleed,
   réécrite ici en propriétés individuelles (jamais le raccourci "margin",
   qui écraserait left/right). */
.footer {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    background: var(--brand);
    color: var(--brand-ink);
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 28px;
    padding: 28px 24px;
    font-size: .85rem;
}
.footer-brand { display: block; height: 32px; width: auto; margin: 0; order: 1; }
.footer-links { order: 2; }
.footer-links a { color: var(--brand-ink); }
.footer-metiers { order: 2; }
.footer-metiers-label { opacity: .7; font-size: .82rem; }
.footer-copy { margin: 0; order: 4; color: var(--brand-ink); font-size: .82rem; }
.footer-copy a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.footer-copy a:hover { text-decoration: none; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .75rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0 0 .5em;
}
.lead { font-family: var(--font-sub); font-style: italic; font-weight: 400; color: var(--ink-soft); font-size: 1.2rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Landing page ---------- */

/* Bandeau "plein bord" : casse le conteneur centré .page (1080px) pour que
   l'aplat de couleur touche les deux bords de l'écran, quelle que soit sa
   largeur — le contenu à l'intérieur reste recentré via .bleed-inner.
   N'utiliser QUE sur app/views/home.php : le ludique reste sur la page
   d'accueil, l'espace loueur et les pages caution gardent un style sobre. */
.bleed { position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.bleed-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Mot surligné dans le H1 ("chèques") : fond rose avec texte encre, pas blanc
   — le blanc sur rose (contraste 2,0) ne passe pas la règle de lisibilité
   d'Eva, même en grand titre (il faudrait au moins 3:1). Signalé en réponse. */
.h1-highlight {
    background: var(--pink);
    color: var(--ink);
    padding: 0 .18em;
    border-radius: 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero {
    max-width: 1200px;
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-content { position: relative; }
.hero h1 { font-size: 2.5rem; }
.hero-lead { font-family: var(--font); font-style: normal; font-weight: 400; color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 1.3em; }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-sub { color: var(--muted); font-size: .85rem; margin: 14px 0 6px; }
.hero-sub-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--ink);
    font-weight: 700;
    font-size: .78rem;
    padding: 3px 10px;
    border-radius: 999px;
    margin-right: 6px;
}

/* Collage hero (droite) : la vraie photo d'Eva (hero-quozit.jpg/.webp),
   mêmes coins arrondis et mêmes dimensions que l'ancien mock-up CSS — sticker
   Q qui chevauche le coin haut-gauche, étiquette "Libérée en 1 clic" en haut
   à droite, sticker de confirmation qui déborde en bas à droite, tous les
   trois au-dessus de l'image (z-index). */
.hero-visual { display: flex; justify-content: center; }
.hero-device {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
}
/* Le rayon est sur l'image elle-même, pas sur .hero-device avec un
   "overflow: hidden" — ça couperait le sticker Q et les 2 étiquettes, qui
   doivent justement déborder du bord du visuel. */
.hero-device-photo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}
/* Sélecteur composé (.sticker-q.hero-device-q) et pas juste .hero-device-q :
   la règle de base .sticker-q (taille par défaut) est définie plus bas dans
   ce fichier, après celle-ci — sans les deux classes dans le même sélecteur,
   elle écraserait silencieusement cette taille en gardant la même
   spécificité CSS (la règle la plus basse dans le fichier l'emporte à
   spécificité égale). */
.sticker-q.hero-device-q {
    position: absolute;
    z-index: 2;
    top: -22px;
    left: -22px;
    width: 100px;
    height: 100px;
    transform: rotate(-10deg);
}
.hero-device-tag {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: var(--ink);
    font-weight: 700;
    font-size: .76rem;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    transform: rotate(3deg);
}
.hero-device-sticker {
    position: absolute;
    z-index: 2;
    right: -14px;
    bottom: -10px;
    background: var(--accent);
    color: var(--ink);
    border: 2px solid var(--ink);
    font-weight: 700;
    font-size: .8rem;
    padding: 7px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    transform: rotate(5deg);
}

/* Sticker Q qui tourne doucement — le vrai submark SVG d'Eva (rose), dans un
   rond bleu. S'arrête si l'appareil demande de réduire les animations. */
.sticker-q {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    animation: sticker-spin 9s linear infinite;
}
.sticker-q img { width: 58%; height: 58%; display: block; }
@keyframes sticker-spin { to { transform: rotate(360deg); } }
.price-card { position: relative; }

/* Touche de marque légère sur les pages publiques simples — connexion,
   inscription, mot de passe oublié, vérification, pages légales, 404/500
   (étape 18) : le même submark Q que le hero, en pur CSS (pas de balise
   supplémentaire dans ces templates), une seule touche par page, jamais
   devant la zone de saisie. S'arrête si prefers-reduced-motion (voir plus
   bas, ajouté à la même règle que .sticker-q). */
.auth-head, .legal, .empty-state { position: relative; }
.auth-head::before, .legal::before, .empty-state::before {
    content: "";
    position: absolute;
    top: -16px;
    right: -8px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand) url('img/submark-q-pink.svg') no-repeat center / 58% 58%;
    box-shadow: var(--shadow);
    animation: sticker-spin 9s linear infinite;
}
.legal::before { top: -8px; right: 4px; }
/* La page publique de caution a déjà sa propre identité visuelle (bloc
   montant, pastilles, coches) — pas besoin du sticker Q générique en plus
   dans son en-tête. */
.caution-public .auth-head::before { content: none; }

/* Bandeau incliné défilant, juste sous le hero — plein bord comme les autres
   bandeaux (.bleed), avec un peu de marge en plus pour que la rotation ne
   laisse jamais voir le fond crème dans les coins. Le texte est dupliqué
   dans le HTML (home.php) pour une boucle de défilement sans coupure ; la
   copie est masquée aux lecteurs d'écran et retirée visuellement si
   l'animation est coupée (reduced motion), pour ne pas afficher deux fois le
   même texte. */
.marquee { position: relative; width: 100vw; left: 50%; margin-left: -50vw; overflow: hidden; margin-top: 28px; margin-bottom: 40px; }
/* Horizontale, pleine largeur, aucune rotation — le seul mouvement est le
   translateX de .marquee-track ci-dessous. */
.marquee-band {
    background: var(--brand);
    transform: none;
    width: 100%;
    margin: 0;
    padding: 10px 0;
    overflow: hidden;
}
/* Chaque "groupe" répète les 4 phrases plusieurs fois pour être plus large
   qu'un écran de bureau à lui seul (voir home.php) : avec 2 groupes
   identiques bout à bout et une animation qui ne va que jusqu'à -50%, la
   boucle ne montre jamais de vide, même en plein écran large. */
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 80s linear infinite; }
/* Chaque mot et chaque ✱ sont des éléments séparés dans un flex à espacement
   fixe (gap), pour que chaque ✱ soit exactement centré entre deux mots —
   plutôt qu'un espace collé au mot précédent dans un seul <span>. */
.marquee-group { display: flex; flex: none; align-items: center; gap: 28px; padding: 0 14px; }
.marquee-track span {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 18px;
    white-space: nowrap;
}
.marquee-sep { font-size: 11px; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Grille de cartes réutilisée par "Pour qui" (2 cartes) et "Bénéfices" (4 blocs) :
   auto-fit s'adapte au nombre d'éléments sans classe séparée par section. */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
.feature-card h3 { font-size: 1.05rem; color: var(--brand); margin: 0 0 .5em; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.trust-bar {
    list-style: none;
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 32px;
    text-align: center;
}
.trust-bar li { color: var(--ink-soft); font-size: .88rem; }
.trust-bar li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

.problem { max-width: 960px; margin: 0 auto 48px; text-align: center; }
.problem-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    text-align: left;
}
/* Effet "post-it" : bordure foncée + légère rotation alternée par carte. */
.problem-list li {
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--ink-soft);
    font-size: .92rem;
}
.problem-list li:nth-child(1) { transform: rotate(-1.5deg); }
.problem-list li:nth-child(2) { transform: rotate(1deg); }
.problem-list li:nth-child(3) { transform: rotate(-1deg); }
.problem-list li:nth-child(4) { transform: rotate(1.5deg); }
.problem-bascule {
    font-family: var(--font-sub);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--brand);
    margin: 24px 0 0;
}

/* Pages métiers (étape 39) : "Quel montant de caution ?" (texte simple, sans carte) et
   "Vous louez aussi…" (liens vers les pages liées). */
.metier-amounts { max-width: 760px; margin: 0 auto 48px; }
.metier-amounts p { color: var(--ink-soft); }
.metier-related { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.metier-pricing { max-width: 600px; margin: 0 auto 48px; text-align: center; }
.metier-pricing p { color: var(--ink-soft); margin-bottom: 1.3em; }

/* "Gérez aussi votre stock" (étape 56, maillage vers la page SEO stock) — petit panneau
   bleu clair, même esprit que .security-wrap juste au-dessus. */
.metier-stock-pitch {
    max-width: 600px; margin: 0 auto 48px; text-align: center;
    background: var(--sky); border-radius: var(--radius); padding: 32px 28px;
}
.metier-stock-pitch h2 { font-size: 1.4rem; margin: 0 0 .5em; color: var(--brand-dark); }
.metier-stock-pitch p { color: var(--ink); margin: 0 0 .6em; }
.metier-stock-pitch p:last-child { margin-bottom: 0; font-weight: 600; }

/* Damier bleu ciel/crème en fond de "Comment ça marche", en CSS pur (pas
   d'image) — conic-gradient tuilé en carrés de 44px. */
.checkerboard {
    background-color: var(--bg);
    background-image: conic-gradient(var(--sky) 90deg, transparent 90deg 180deg, var(--sky) 180deg 270deg, transparent 270deg);
    background-size: 44px 44px;
    padding: 48px 0;
    margin-bottom: 48px;
}
.how-it-works { max-width: 960px; margin: 0 auto; text-align: center; }
.how-it-works h2 {
    display: inline-block;
    width: fit-content;
    max-width: 90%;
    background: var(--bg);
    padding: 14px 32px;
    border-radius: 14px;
    white-space: normal;
}
.how-steps {
    list-style: none;
    counter-reset: hstep;
    padding: 0;
    margin: 24px 0 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}
.how-steps li {
    counter-increment: hstep;
    border-radius: var(--radius);
    /* Ombre portée décalée ("post-it"), demandée dans la direction visuelle —
       remplace l'ombre douce standard (--shadow) sur ces 3 cartes seulement. */
    box-shadow: 6px 6px 0 var(--ink);
    padding: 24px;
}
.how-steps li::before {
    content: counter(hstep);
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 64px;
    line-height: 1;
    margin-bottom: 10px;
}
.how-steps h3 { font-size: 1rem; margin: 0 0 .4em; }
.how-steps p { margin: 0; font-size: .92rem; }
/* Trois cartes colorées (bleue / rose / jaune), demandées dans la direction
   visuelle — toujours de l'encre ou du blanc, jamais de blanc sur rose/jaune
   (mêmes règles de contraste que partout ailleurs sur cette page). Le grand
   chiffre est rose sur la carte bleue, bleu sur les cartes rose et jaune. */
.how-steps .step-blue { background: var(--brand); }
.how-steps .step-blue h3, .how-steps .step-blue p { color: var(--brand-ink); }
.how-steps .step-blue::before { color: var(--pink); }
.how-steps .step-pink { background: var(--pink); }
.how-steps .step-pink h3, .how-steps .step-pink p { color: var(--ink); }
.how-steps .step-pink::before { color: var(--brand); }
.how-steps .step-yellow { background: var(--accent); }
.how-steps .step-yellow h3, .how-steps .step-yellow p { color: var(--ink); }
.how-steps .step-yellow::before { color: var(--brand); }

.audience { max-width: 960px; margin: 0 auto 48px; text-align: center; }
.audience .card-grid { text-align: left; }
.audience-note { color: var(--muted); font-size: .9rem; margin: 0; }

.benefits { max-width: 960px; margin: 0 auto 48px; text-align: center; }
.benefits .card-grid { text-align: left; }
/* Présentation à plat (pas de carte bordée) avec un filet de couleur en haut,
   une par bloc — reprend la version simplifiée de la référence envoyée. */
.benefits .feature-card {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 14px 0 0;
    border-top: 3px solid var(--brand);
}
.benefits .card-grid > :nth-child(2) { border-top-color: var(--pink); }
.benefits .card-grid > :nth-child(3) { border-top-color: var(--accent); }
.benefits .card-grid > :nth-child(4) { border-top-color: var(--sky); }
.benefits .feature-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.benefits .feature-card strong { color: var(--ink); }

/* Étiquettes penchées (Pour qui, Bénéfices) — alternent jaune/rose pour
   varier, texte toujours en encre. */
.tilted-label {
    display: inline-block;
    transform: rotate(-4deg);
    background: var(--accent);
    color: var(--ink);
    font-weight: 700;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 12px;
    border-radius: 6px;
    margin: 0 0 10px;
}
.tilted-label--pink { background: var(--pink); transform: rotate(3deg); }

/* Bandeau bleu ciel plein bord derrière "Sécurité" : 2 colonnes en grande
   largeur — texte à gauche (aligné à gauche), 3 pastilles empilées à droite —
   empilées l'une sur l'autre sur mobile. */
/* Pas de margin-bottom : la section Sécurité touche directement le Témoignage
   qui suit (bords ondulés plein bloc, voir .testimonial-wrap plus bas). */
.security-wrap { background: var(--sky); padding: 56px 0; }
.security {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}
.security-text h2 { text-align: left; }
.security-text p { color: var(--ink); font-size: 17px; line-height: 1.65; }
.security-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.security-points li {
    background: var(--bg);
    color: var(--brand-dark);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: .95rem;
    font-weight: 600;
}

/* Bandeau bleu à motif (vrai submark Q d'Eva, rose pâle, très discret) —
   les bords ondulés sont de vrais <svg> (pas un fond CSS tuilé) : un plein
   en haut, de la couleur de la section Sécurité juste au-dessus (#b3d2ff),
   donne l'impression que son bleu clair "coule" dans ce bloc ; un plein en
   bas, de la couleur de la section suivante (#fffaf3, crème), fait la
   transition vers le Tarif. Pas de margin : les 3 sections se touchent. */
.testimonial-wrap {
    position: relative;
    overflow: hidden;
    background-color: var(--brand);
    /* Vrai submark Q d'Eva (pas une lettre tapée en police), tuilé à très
       faible opacité — même tracé que public/assets/img/submark-q-pink.svg. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='163 122 620 600' width='70' height='68'%3E%3Cpath fill='%23ff98aa' opacity='0.07' d='M621.6,502.22l141.05,136.14c-2.82,5.81-18.06,35.76-52.51,46.45-32.51,10.09-69.26-.98-93.87-28.19-29.01,18.65-83.59,45.26-152.81,45.26-154.41,0-279.53-125.12-279.53-279.53s125.12-279.53,279.53-279.53,279.53,125.12,279.53,279.53c0,12.66-.54,42.88-21.8,63.99-33.3,33.09-91.87,17.98-99.6,15.88ZM627.98,422.36c0-91.04-73.48-164.52-164.52-164.52s-164.52,73.48-164.52,164.52,74.01,164.53,164.52,164.53c24.49,0,47.39-5.33,68.15-14.91l-92.11-92.64c10.8-8.77,30.47-22.05,57.89-26.78,62.2-10.74,109.32,31.99,115.69,37.96,3.25-7.04,14.91-16.16,14.91-68.15Z'/%3E%3C/svg%3E");
    background-repeat: repeat;
    padding: 100px 0;
}
.testimonial-wrap .wave {
    position: absolute;
    left: 0;
    width: 100%;
    height: 60px;
    display: block;
}
.testimonial-wrap .wave-top { top: -1px; }
.testimonial-wrap .wave-bottom { bottom: -1px; transform: scaleY(-1); }
.testimonial { max-width: 600px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.testimonial h2 { color: var(--pink); }
.testimonial-card {
    background: var(--bg);
    border-radius: var(--radius);
    /* Ombre portée décalée rose, demandée dans la direction visuelle — pas
       l'ombre douce standard (--shadow) sur cette carte. */
    box-shadow: 8px 8px 0 var(--pink);
    padding: 32px 28px;
    margin-top: 24px;
}
.testimonial-stars { color: var(--pink); font-size: 1.3rem; letter-spacing: .2em; margin: 0 0 .6em; }
.testimonial blockquote {
    font-family: var(--font-sub);
    font-style: italic;
    font-size: 20px;
    line-height: 1.5;
    color: var(--ink);
    margin: 0 0 16px;
}
.testimonial cite { font-family: var(--font); font-style: normal; font-weight: 700; color: var(--brand); font-size: .92rem; }

.pricing { max-width: 900px; margin: 0 auto 48px; text-align: center; }
.pricing .eyebrow { justify-content: center; }
.pricing h2 { margin-bottom: 1em; }
.price-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 14px;
}
.price-cards .price-card { flex: 1 1 320px; max-width: 360px; margin-bottom: 0; }
/* Carte tarif jaune, "mise en avant" dans la brand board — bleu sur jaune
   (contraste 6,4) passe partout, donc le prix reste en bleu ; le reste du
   texte passe en encre pour rester lisible sur l'aplat jaune. */
.price-card {
    background: var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 28px;
    margin-bottom: 14px;
}
/* Carte annuelle en bleu ciel pour la distinguer de la mensuelle, même
   logique de contraste : prix en bleu marque, reste du texte en encre. */
.price-card--yearly { background: var(--sky); }
.price-badge {
    position: absolute;
    top: -12px;
    right: 18px;
    display: inline-block;
    background: var(--pink);
    color: var(--ink);
    font-weight: 700;
    font-size: .78rem;
    padding: 5px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    transform: rotate(4deg);
}
.price-amount { margin: 0 0 .4em; }
.price-value { font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: var(--brand); line-height: 1; }
.price-period { font-size: 1.1rem; color: var(--ink); margin-left: 4px; }
.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    text-align: left;
    display: inline-block;
    color: var(--ink);
    font-size: .92rem;
}
.price-features li { padding: 3px 0; }
.price-features li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }
.price-note { max-width: 560px; margin: 0 auto; font-size: .78rem; color: var(--muted); }
.price-note a { color: var(--muted); }

/* Carte "Caution + Pro" mise en avant (bordure + fond + badge) et sélecteur mensuel/annuel
   propre à chaque carte tarif (étape 51, option Pro publique). */
.price-card--pro { background: var(--sky); border: 2px solid var(--brand); }
.price-pro-badge {
    display: inline-block; background: var(--brand); color: #fff; font-weight: 700;
    font-size: .74rem; padding: 3px 12px; border-radius: 999px; margin: 0 0 10px;
}
.price-card-title { margin: 0 0 .6em; font-family: var(--font-display); color: var(--ink); }
.price-toggle {
    display: inline-flex; background: rgba(255, 255, 255, .55); border-radius: 999px;
    padding: 3px; margin-bottom: 14px;
}
.price-toggle-btn {
    border: none; background: none; font-family: var(--font); font-size: .82rem; font-weight: 700;
    color: var(--ink); padding: 6px 16px; border-radius: 999px; cursor: pointer;
}
.price-toggle-btn.is-active { background: var(--ink); color: #fff; }
.price-alt-note { font-size: .78rem; color: var(--muted); margin: 0 0 1.2em; }

/* Section d'accueil "Option Pro" (étape 51, PRO_PUBLIC=1 uniquement) — réutilise
   .card-grid/.feature-card (section "Pour qui"/"Bénéfices") plutôt que d'en redéfinir un. */
.option-pro { max-width: 1040px; margin-left: auto; margin-right: auto; text-align: center; }
.option-pro h2 { margin-bottom: .4em; }
.option-pro-lead { max-width: 640px; margin: 0 auto 2em; color: var(--ink-soft); }
.option-pro-grid {
    text-align: left; margin-bottom: 28px;
    /* minmax plus large que .card-grid par défaut : 3 colonnes à la largeur de cette
       section (max 1040px), 1 colonne sur mobile, sans breakpoint à part (brief §4a). */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.option-pro-icon { width: 32px; height: 32px; color: var(--brand); margin-bottom: 10px; }
.option-pro-note { font-weight: 700; margin-bottom: 1em; }
.option-pro-note strong { color: var(--brand); }
/* Option Pro en 3 étapes (modif manuelle en prod, 15/11/2026) */
.option-pro .how-steps { margin-bottom: 2.5em; text-align: left; }
.option-pro-extras-title { font-size: 1.15rem; margin: 0 0 1em; }
/* Encart Option Pro dans le hero (modif manuelle en prod, 15/11/2026) */
.hero-pro {
    display: block; max-width: 560px; margin: 18px 0 14px; padding: 16px 18px;
    background: #fff; border: 2px solid var(--brand); border-radius: 14px;
    box-shadow: 4px 4px 0 var(--brand); color: var(--ink); text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.hero-pro:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--brand); }
.hero-pro-badge {
    display: inline-block; background: var(--brand); color: #fff; font-weight: 700;
    font-size: .78rem; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.hero-pro-text { display: block; font-size: .95rem; line-height: 1.45; }
.hero-pro-link { display: block; margin-top: 8px; font-weight: 700; color: var(--brand); font-size: .92rem; }

.faq { max-width: 720px; margin: 0 auto 48px; }
.faq h2 { text-align: center; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 2px 18px;
    margin-bottom: 10px;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1rem; font-weight: 600; margin: 0; color: var(--ink); }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--ink-soft); margin: 0 0 16px; }

/* Bandeau rose plein bord pour l'appel final — dernier contraste fort avant
   le pied de page. */
.final-cta-wrap { background: var(--pink); padding: 56px 0 64px; margin-bottom: 8px; }
.final-cta { max-width: 560px; margin: 0 auto; text-align: center; }
.final-cta p { color: var(--ink); }

/* ---------- Messages ---------- */

.flash {
    max-width: 720px;
    margin: 0 auto 20px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: .95rem;
}
.flash-success { background: var(--ok-soft); border-color: #bfe0cc; color: #14532f; }
.flash-error { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger); }
.flash-info { background: var(--brand-soft); border-color: var(--brand-border); color: var(--brand); }
.flash-success::before { content: "✓ "; }
.flash-error::before { content: "⚠ "; }
.flash-info::before { content: "ℹ "; }

.notice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    flex-wrap: wrap;
    /* Fond neutre par défaut (ex. simple info liée à une caution) : toujours
       un encadré visible, jamais juste du texte nu — .notice-warning le
       recolore en jaune doux ci-dessous. */
    background: var(--brand-soft);
    border: 1px solid var(--brand-border);
}
.notice p { margin: .25em 0 0; }
.notice form { margin: 0; }
.notice-warning { background: var(--warn-soft); border: 1px solid var(--warn-border); }

/* ---------- Cartes ---------- */

/* Carte des écrans de travail (formulaires, tableaux de bord) — reprend le
   langage graphique des cartes "1-2-3"/Tarif de l'accueil (bordure encre
   fine + ombre portée décalée) plutôt que l'ombre douce neutre d'avant,
   pour que l'espace loueur/admin ait l'air du même site (étape 18). Fond
   blanc, pas de couleur vive : on habille, on ne surcharge pas. */
.card {
    background: var(--surface);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 6px 6px 0 var(--ink);
    padding: 28px;
    margin-bottom: 20px;
}
.card-title { font-size: 1.1rem; margin-bottom: 1em; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 1em; }
.card-title-row .card-title { margin-bottom: 0; }
.card-highlight { border-color: var(--brand); box-shadow: 6px 6px 0 var(--brand); }
.empty-state { text-align: center; padding: 48px 28px; }

/* ---------- Pages d'authentification ---------- */

.auth { max-width: 440px; margin: 0 auto; }
.auth-wide { max-width: 720px; }
.auth-head { margin-bottom: 24px; }
.auth-head .lead { margin-bottom: 0; }

/* ---------- Page publique de caution (client du loueur) ---------- */

/* Reprend le visuel du téléphone du hero (étape 18) : montant en grand dans
   un bloc bleu ciel, pastilles d'info, coches jaunes de réassurance — sur
   les mêmes textes qu'avant, juste réemballés visuellement. */
.caution-amount-card { text-align: center; }
.caution-amount-block {
    background: var(--sky);
    border-radius: var(--radius);
    padding: 20px 16px;
    margin: 0 0 16px;
}
.caution-amount-value {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.6rem;
    color: var(--brand-dark);
    line-height: 1;
}
.caution-amount-label { display: block; margin-top: 4px; font-size: .85rem; color: var(--ink); }
.caution-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; }
.pill-chip {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    font-size: .8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
}
.pill-chip--brand { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.caution-reassurance { list-style: none; padding: 0; margin: 0; text-align: left; }
.caution-reassurance li { position: relative; padding: 4px 0 4px 26px; color: var(--ink-soft); font-size: .88rem; }
.caution-reassurance li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--accent);
    color: var(--ink);
    font-size: .7rem;
    font-weight: 700;
    border-radius: 50%;
}
.caution-secure-note { text-align: center; color: var(--muted); font-size: .8rem; margin: 12px 0 0; }

/* Titres des pages internes (connexion, inscription, espace loueur, admin,
   pages légales…) : Fredoka (déjà le cas via la règle h1 générique) +
   couleur de marque, comme les grands titres de l'accueil — étendu à tout
   le site (étape 18). Le h1 du hero de l'accueil garde son propre
   traitement (encre + .h1-highlight), volontairement non touché ici. */
.auth-head h1, .dash-head h1, .legal h1, .empty-state h1 { color: var(--brand); }

/* ---------- Formulaires ---------- */

.form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.form legend {
    font-weight: 700;
    font-size: 1rem;
    padding: 0 0 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
    width: 100%;
}
.field { margin-bottom: 16px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 16px; }
.field-sm { flex: 0 0 140px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.small-link { font-size: .85rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="date"], input[type="search"], input[type="number"], select, textarea {
    width: 100%;
    padding: 11px 12px;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.has-error input, .has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; margin: 6px 0 0; }
.hint { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }

.input-code { font-family: var(--mono); letter-spacing: .2em; font-size: 1.1rem; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; min-width: 0; }

.checkbox label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.checkbox input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }

.form-foot { text-align: center; margin: 18px 0 0; font-size: .92rem; color: var(--ink-soft); }
.inline-form { margin-top: 12px; }

/* ---------- Boutons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    /* Boutons pilule partout, demandé dans la direction visuelle étape 15. */
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.button:disabled { opacity: .6; cursor: wait; }
.button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.button-primary { background: var(--brand); color: var(--brand-ink); }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.button-secondary:hover { background: var(--brand-soft); }
/* Variante rose du bouton pilule (ex. CTA d'inscription dans l'en-tête) :
   toujours du texte encre dessus, jamais blanc — blanc sur rose ne passe pas
   le contraste (voir la note sur --pink dans :root). */
.button-pink { background: var(--pink); color: var(--ink); }
.button-pink:hover { background: #ff7f92; }
/* Action sensible (encaisser, déconnecter, supprimer, rembourser…) : rouge doux avec texte
   foncé plutôt qu'un rouge franc et du blanc — jamais de texte blanc sur un fond pastel
   (même règle que .button-pink), et un ton moins alarmant que l'ancien rouge plein, repris
   des couleurs déjà utilisées pour les badges d'échec (--danger-soft/--danger). */
.button-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-border); }
.button-danger:hover { background: var(--danger-border); }
.button-block { width: 100%; }
.button-sm { padding: 7px 18px; font-size: .88rem; }

/* ---------- Badges & statuts ---------- */

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.badge-sm { font-size: .7rem; padding: 1px 8px; }
/* Couleurs de marque plutôt que les feux tricolores génériques d'avant
   (étape 18) — bleu ciel pour un état positif/actif, jaune pour une
   attente, comme les étiquettes de l'accueil. --danger (refus/échec) reste
   un rouge franc, volontairement à part : c'est le seul signal "ça a
   échoué", le garder distinct du reste de la palette ludique évite toute
   ambiguïté. Contrastes encre/bleu marque sur ces fonds clairs largement
   AA (> 7:1). */
.badge-ok { background: var(--sky); color: var(--brand-dark); }
.badge-pending { background: var(--accent); color: var(--ink); }
.badge-refused { background: var(--danger-soft); color: var(--danger); }
/* Statuts de caution à part : "encaissée" (seul statut réellement débité) et les statuts
   clos sans action possible (libérée/remboursée/expirée/supprimée), distincts de badge-ok
   (bloquee) et badge-refused (echec, le seul vrai signal d'alerte). */
.badge-caution-rose { background: var(--pink); color: var(--ink); }
.badge-caution-neutre { background: var(--line); color: var(--ink-soft); }

.status-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--warn);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.status-card h2 { margin-top: 12px; }
.status-ok { border-left-color: var(--ok); }
.status-refused { border-left-color: var(--danger); }

.steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: step; }
.steps li {
    counter-increment: step;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    color: var(--muted);
}
.steps li::before {
    content: counter(step);
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
    border: 2px solid var(--line-strong);
}
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.is-current { color: var(--ink); font-weight: 600; }
.steps li.is-current::before { border-color: var(--warn); color: var(--warn); }

/* ---------- Tableau de bord ---------- */

.dash { max-width: 760px; margin: 0 auto; }
.dash-wide { max-width: 1080px; }
.dash-head { margin-bottom: 24px; }

.details { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0 0 16px; }
.details dt { color: var(--muted); font-size: .9rem; }
.details dd { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s;
}
a.stat:hover { border-color: var(--brand); }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--brand); }
.stat-label { color: var(--muted); font-size: .85rem; margin-top: 6px; }

.filters { margin-bottom: 20px; display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.filters .field-row { flex: 1; min-width: 240px; margin-bottom: 0; }

/* Onglets des listes cautions/paiements (étape 22) : défilement horizontal sur mobile, la
   liste elle-même passe en cartes empilées (.legal-table) plutôt que de défiler. */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}
.tab:hover { background: var(--bg); color: var(--ink); }
.tab-active { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-border); }
.tab-count { font-size: .78rem; color: var(--muted); background: var(--line); border-radius: 999px; padding: 1px 8px; }
.tab-active .tab-count { color: var(--brand); background: var(--surface); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }

#card-element {
    margin: 16px 0;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}
#payment-message { margin: 0 0 12px; }

.table-wrap { overflow-x: auto; margin: 0 -8px 12px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
    text-align: left;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink);
    padding: 8px;
    border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Sécurité / 2FA ---------- */

.setup-steps { padding-left: 20px; margin: 20px 0 0; }
.setup-steps > li { margin-bottom: 20px; padding-left: 4px; }
.setup-steps > li > strong { display: block; margin-bottom: 4px; }
.setup-steps .muted { display: block; }
.qr {
    width: 200px;
    height: 200px;
    margin: 12px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px;
    background: #fff;
}
.qr svg { width: 100%; height: 100%; display: block; }
.secret {
    display: inline-block;
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 6px;
    word-break: break-all;
    user-select: all;
}
.backup-codes {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.backup-codes code {
    display: block;
    text-align: center;
    background: var(--bg);
    border: 1px dashed var(--line-strong);
    border-radius: 6px;
    padding: 8px;
    font-size: 1rem;
    letter-spacing: .08em;
}
.help, .danger-zone { margin-top: 20px; font-size: .92rem; }
.help summary, .danger-zone summary { cursor: pointer; color: var(--ink-soft); }
.danger-zone summary { color: var(--danger); }
.danger-zone form { margin-top: 16px; }
.help p { margin: 8px 0 0; color: var(--ink-soft); }

.checklist { list-style: none; padding: 0; margin: 0 0 12px; }
.checklist li { padding: 4px 0; }
.checklist .ok span { color: var(--ok); font-weight: 700; }
.checklist .ko { color: var(--danger); }
.checklist .ko span { font-weight: 700; }

/* ---------- Bulle d'aide (FAQ, espace loueur) ---------- */

#faq-widget { position: fixed; right: 20px; bottom: 20px; z-index: 1000; }
#faq-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 0;
    background: var(--brand);
    color: var(--brand-ink);
    font: inherit;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}
#faq-bubble:hover { background: var(--brand-dark); }
#faq-bubble:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }

#faq-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: 340px;
    max-height: min(70vh, 560px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
#faq-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--brand-soft);
}
#faq-panel-header strong { font-size: .98rem; }
#faq-close {
    background: none;
    border: 0;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink-soft);
    padding: 2px 6px;
}
#faq-close:hover { color: var(--ink); }
#faq-panel-body { padding: 16px; overflow-y: auto; flex: 1; }

#faq-search {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: .92rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}
#faq-search:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.faq-question-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.faq-question-btn {
    text-align: left;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font: inherit;
    font-size: .88rem;
    color: var(--ink);
    cursor: pointer;
}
.faq-question-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
#faq-themes h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }

#faq-answer-question { font-size: 1rem; margin-bottom: .6em; }
#faq-answer-body { font-size: .92rem; }
#faq-answer-body p:last-child { margin-bottom: 0; }
#faq-feedback { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
#faq-feedback .button { padding: 7px 14px; font-size: .85rem; margin-right: 8px; }

#faq-contact-message {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: .9rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    resize: vertical;
    margin: 10px 0;
}
#faq-contact-message:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ---------- Bulle « Quelle formule pour vous ? » (étape 54) ---------- */
/* Même position/z-index que #faq-widget : jamais affichés en même temps (celui-ci est
   réservé aux visiteurs non connectés, l'autre aux loueurs connectés), donc aucun risque de
   superposition malgré les mêmes coordonnées. */
#quiz-widget { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: flex; align-items: flex-end; gap: 6px; opacity: 0; }
#quiz-widget.quiz-ready { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    #quiz-widget.quiz-ready { animation: quiz-bubble-in .4s ease; }
}
@keyframes quiz-bubble-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
#quiz-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 2px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow);
    max-width: 240px;
}
#quiz-bubble:hover { border-color: var(--brand); }
#quiz-bubble:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
#quiz-bubble img { flex-shrink: 0; border-radius: 999px; background: var(--brand-soft); padding: 4px; }
.quiz-bubble-text { font-weight: 700; font-size: .85rem; line-height: 1.3; }
.quiz-bubble-sub { font-weight: 600; font-size: .78rem; color: var(--brand); }
#quiz-bubble-close {
    background: var(--surface);
    border: 2px solid var(--line-strong);
    border-radius: 999px;
    width: 26px;
    height: 26px;
    line-height: 1;
    font-size: 1rem;
    color: var(--ink-soft);
    cursor: pointer;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}
#quiz-bubble-close:hover { color: var(--ink); border-color: var(--brand); }

#quiz-panel {
    position: fixed;
    right: 20px;
    bottom: 88px;
    width: 380px;
    max-height: 560px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 1001;
}
#quiz-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--brand-soft);
}
#quiz-progress {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--brand-border);
    position: relative;
    overflow: hidden;
}
#quiz-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    width: calc(var(--quiz-progress, 1) / 7 * 100%);
    background: var(--brand);
    border-radius: 999px;
    transition: width .25s ease;
}
#quiz-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 2px 6px; flex-shrink: 0; }
#quiz-close:hover { color: var(--ink); }
#quiz-panel-body { padding: 18px; overflow-y: auto; flex: 1; }

.quiz-step-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px; }
.quiz-question { font-size: 1.1rem; margin: 0 0 16px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.quiz-option {
    text-align: left;
    width: 100%;
    border: 2px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: .92rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.quiz-option:hover, .quiz-option:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.quiz-option-checkbox { display: flex; align-items: center; gap: 10px; }
.quiz-option-checkbox input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brand); }
.quiz-option.is-selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.quiz-back { margin-top: 4px; font-size: .85rem; }

#quiz-screen-email .field { margin-bottom: 12px; }
#quiz-screen-result { text-align: center; }
#quiz-result-title { font-size: 1.3rem; margin-bottom: 4px; }
#quiz-result-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--brand); font-weight: 600; margin: 0 0 14px; }
#quiz-result-phrases { text-align: left; margin-bottom: 18px; }
#quiz-result-phrases p { font-size: .9rem; color: var(--ink-soft); padding-left: 1.4em; position: relative; margin-bottom: 8px; }
#quiz-result-phrases p::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ---------- Pages légales ---------- */

.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal h2:first-of-type { margin-top: .8em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--muted); font-size: .85rem; margin-top: 2.5em; }

.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .9rem; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--sky); color: var(--brand-dark); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.legal-table td { color: var(--ink-soft); }
.legal-table tbody tr:hover { background: var(--line); }

.footer-links { display: flex; justify-content: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; }

/* ---------- Mouvement réduit ---------- */

/* Arrête le défilement du bandeau et la rotation du sticker Q si le visiteur
   a activé "réduire les animations" sur son appareil — demandé explicitement
   dans la direction visuelle. Sans ça, la copie dupliquée du bandeau
   défilant resterait visible deux fois de suite : on la masque aussi. */
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; justify-content: center; }
    .marquee-dup { display: none; }
    .sticker-q, .auth-head::before, .legal::before, .empty-state::before { animation: none; }
    .sticker-q.error-404-q { animation: none; transform: none; }
    .error-404-sticker { animation: none; transform: rotate(3deg); }
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
    h1 { font-size: 1.5rem; }
    .page { padding: 20px 16px 40px; }
    .card { padding: 20px; }
    .field-row { flex-direction: column; gap: 0; }
    .field-sm { flex: 1; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .hero { margin: 8px auto 0; }
    .hero h1 { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero { grid-template-columns: 1fr; gap: 28px; }
    .hero-device { max-width: 260px; }
    .sticker-q.hero-device-q { width: 64px; height: 64px; top: -14px; left: -14px; }
    .hero-device-tag { font-size: .68rem; padding: 4px 10px; }
    .checkerboard { padding: 32px 0; background-size: 32px 32px; margin-bottom: 32px; }
    .security-wrap { padding: 32px 0; }
    .testimonial-wrap { padding: 56px 0; }
    .testimonial-wrap .wave { height: 36px; }
    .final-cta-wrap { padding: 40px 0 48px; }
    .trust-bar { grid-template-columns: 1fr; }
    .how-steps { grid-template-columns: 1fr; }
    .how-steps li::before { font-size: 48px; }
    .price-value { font-size: 2.3rem; }
    .price-card { padding: 24px 20px; }
    .caution-amount-value { font-size: 2.1rem; }
    .security { grid-template-columns: 1fr; text-align: center; }
    .security-text h2 { text-align: center; }
    .security-points { align-items: center; }
    .marquee-group { gap: 18px; padding: 0 9px; }
    .marquee-track span { font-size: 14px; }
    .marquee-sep { font-size: 9px; }
    .footer { padding: 24px 16px; }
    .auth-head::before, .legal::before, .empty-state::before { width: 40px; height: 40px; top: -10px; right: 0; }
    .legal-table thead { display: none; }
    .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
    .legal-table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 12px; }
    .legal-table td { border: 0; padding: 8px 0; }
    .legal-table td:not(:last-child) { border-bottom: 1px dashed var(--line); }
    .legal-table td::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 2px; }
    .details { grid-template-columns: 1fr; gap: 2px; }
    .details dd { margin-bottom: 10px; }
    .topbar-inner { padding: 12px 16px; }
    .nav { width: 100%; justify-content: flex-start; margin-left: -12px; }
    /* Espace connecté (admin/loueur) : la nav devient un menu repliable sous un bouton
       "hamburger", au lieu de s'empiler en liste — .nav-public (accueil/connexion/
       inscription, 1-2 liens seulement) garde son comportement actuel, non concerné. */
    .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; margin-left: -6px; }
    .nav-collapsible { display: none; width: 100%; margin-left: 0; }
    .nav-collapsible.is-open { display: flex; flex-direction: column; align-items: stretch; order: 10; }
    .nav-collapsible a, .nav-collapsible .link-button { width: 100%; padding: 12px; }
    .nav-collapsible .nav-logout { width: 100%; }
    /* Les ancres vers les sections (Comment ça marche, Tarif, FAQ) encombrent
       l'en-tête mobile sans hamburger ; elles restent utiles au clavier/SEO
       (toujours dans le HTML), juste masquées visuellement ici. */
    .nav-anchor { display: none; }
    .notice { flex-direction: column; align-items: flex-start; }
    #faq-widget { right: 12px; bottom: 12px; }
    #faq-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 80px;
        width: auto;
        max-height: calc(100vh - 100px);
    }
    /* Bulle compacte (une seule ligne, ~56px), plein écran à l'ouverture (brief, section 1). */
    #quiz-widget { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
    #quiz-bubble { max-width: none; height: 56px; padding: 8px 14px; }
    .quiz-bubble-sub { display: none; }
    #quiz-panel {
        position: fixed;
        inset: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 100%;
        border-radius: 0;
        border: 0;
    }
}

/* ---------- Bandeau du site de test (étape 29) ---------- */

.staging-banner {
    background: var(--accent);
    color: var(--ink);
    text-align: center;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
    padding: 8px 12px;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* ---------- Bandeau paiement d'abonnement en échec (étape 38) ---------- */

.payment-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 49;
    border-bottom: 1px solid transparent;
}
.payment-banner .inline-form { margin: 0; }
.payment-banner-warning {
    background: var(--warn-soft);
    color: var(--warn);
    border-bottom-color: var(--warn-border);
}
.payment-banner-danger {
    background: var(--danger-soft);
    color: var(--danger);
    border-bottom-color: var(--danger-border);
}

/* ---------- Tableau de bord chiffres, admin (étape 28) ---------- */

.legend-inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); margin: 0 0 8px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 2px; }
.legend-dot--brand { background: var(--brand); }
.legend-dot--pink { background: var(--pink); }
.legend-dot--sky { background: var(--sky); }

/* ---------- Preuve d'acceptation imprimable (étape 25-A) ---------- */

@media print {
    .topbar, .footer, #faq-widget, .no-print { display: none !important; }
    .page { padding: 0; max-width: 100%; }
    .card { box-shadow: none; border: 1px solid var(--line); break-inside: avoid; }
    body { background: #fff; }
}

/* ---------- Site prêt à vendre (étape 31) ---------- */

/* Champ piège anti-spam (formulaire de contact) : hors écran plutôt que
   display:none — certains bots ignorent display:none mais remplissent tout
   champ visible dans le flux, celui-ci reste dans le flux mais invisible. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Afficher/masquer le mot de passe (inscription allégée, étape 31) : bouton
   texte dans le coin du champ, pas d'icône (pas de police d'icônes chargée). */
.password-field { position: relative; }
.password-field input { padding-right: 76px; }
.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
}

/* Checklist de démarrage (tableau de bord loueur, étape 31) : visible tant que
   les 4 étapes ne sont pas toutes cochées (voir espace_home() côté PHP). */
.onboarding-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.onboarding-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
}
.onboarding-item.is-done { opacity: .6; }
.onboarding-check {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--line);
    display: grid;
    place-items: center;
    font-size: .8rem;
    color: transparent;
}
.onboarding-item.is-done .onboarding-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.onboarding-item a { font-weight: 600; }
.onboarding-item.is-done a { color: var(--ink); pointer-events: none; text-decoration: none; }

/* Email en clair dans le pied de page (étape 31), en plus des liens légaux — entre les
   liens (order 2) et le copyright (order 4, décalé pour lui laisser la place). */
.footer-email { font-size: .82rem; margin: 0; order: 3; }
.footer-email a { color: var(--brand-ink); }

/* Page 404 animée (étape 31, pleine hauteur + Q "qui cherche" étape 32) : même habillage
   que la page d'accueil (damier, sticker incliné, submark Q, bandeau défilant), dans sa
   propre section pour ne dépendre d'aucune classe de home.php. */
.error-404-wrap {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
}
.error-404 { max-width: 560px; margin: 0 auto; text-align: center; position: relative; }
.error-404-sticker {
    margin-bottom: 4px;
    display: inline-block;
    transform-origin: top center;
    animation: error-404-swing 2.6s ease-in-out infinite;
}
@keyframes error-404-swing {
    0%, 100% { transform: rotate(3deg); }
    50% { transform: rotate(-3deg); }
}
/* Sélecteur composé, pas .error-404-q seul : même raison que .sticker-q.hero-device-q
   plus haut dans ce fichier — .sticker-q (animation par défaut) doit être battue à coup sûr.
   "Qui cherche" : penche à gauche, regarde, rebondit, penche à droite — boucle de 3 s,
   pas un simple saut (demandé explicitement, étape 32). */
.sticker-q.error-404-q {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    animation: error-404-search 3s ease-in-out infinite;
}
@keyframes error-404-search {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    15% { transform: rotate(-16deg) translateY(0); }
    30% { transform: rotate(-16deg) translateY(-8px); }
    45% { transform: rotate(13deg) translateY(0); }
    60% { transform: rotate(13deg) translateY(-12px); }
    78% { transform: rotate(-5deg) translateY(-4px); }
    90% { transform: rotate(4deg) translateY(0); }
}
.error-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.error-404-marquee { margin-top: 36px; margin-bottom: 0; }

/* ---------- Aperçu des modèles d'e-mail, admin (étape 34) ---------- */

.email-preview-card { margin-bottom: 20px; }
.email-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.email-preview-frame {
    display: block;
    width: 100%;
    max-width: 680px;
    height: 640px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
@media (max-width: 640px) {
    .email-preview-frame { height: 520px; }
}
.email-preview-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Modification du texte d'un modèle d'e-mail (étape 55) ---------- */

.email-edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.email-edit-form textarea { resize: vertical; width: 100%; }
.email-edit-vars { margin: 4px 0 18px; }
.var-chip {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--brand-border);
    background: var(--brand-soft);
    color: var(--brand-dark);
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}
.var-chip:hover { background: var(--brand-border); }
.email-edit-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.email-edit-versions { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.email-edit-version-list { list-style: none; margin: 0; padding: 0; }
.email-edit-version-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.email-edit-version-list li:last-child { border-bottom: 0; }

.email-edit-preview { position: sticky; top: 16px; }
.email-edit-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.email-edit-viewport-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.email-edit-viewport-toggle button { border: 0; background: var(--surface); color: var(--ink-soft); font: inherit; font-size: .82rem; font-weight: 600; padding: 6px 14px; cursor: pointer; }
.email-edit-viewport-toggle button.is-active { background: var(--brand); color: var(--brand-ink); }
.email-edit-preview-frame-wrap { display: flex; justify-content: center; }
#email-edit-preview-frame { display: block; width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 8px; transition: width .2s ease; }
.email-edit-preview-frame-wrap.is-mobile #email-edit-preview-frame { width: 375px; }

@media (max-width: 900px) {
    .email-edit-grid { grid-template-columns: 1fr; }
    .email-edit-preview { position: static; }
}

/* ---------- En-tête mobile (correctif du 08/11) ----------
   Une seule ligne : logo réduit à gauche, bouton "Créer mon compte" + menu hamburger
   à droite. Les liens publics (Comment ça marche, Tarif, FAQ, Contact, Connexion)
   passent dans le menu déroulant, comme dans l'espace connecté. */
@media (max-width: 640px) {
    .topbar-inner { gap: 10px; padding: 10px 16px; }
    .brand-logo { height: 34px; }
    .topbar-inner .brand { margin-right: auto; }
    .nav-public { flex: none; }
    .nav-collapsible .nav-anchor { display: block; }
    .topbar-cta { padding: 8px 14px; font-size: .82rem; white-space: nowrap; }
    .nav-toggle-public { margin-left: 0; }
}
@media (max-width: 360px) {
    .brand-logo { height: 28px; }
    .topbar-inner { gap: 8px; padding: 10px 12px; }
    .topbar-cta { padding: 7px 10px; font-size: .78rem; }
}

/* ---------- Respiration entre les blocs (10/11/2026, demande d'Eva) ----------
   Uniquement des marges/paddings plus généreux sur l'accueil et les pages métiers
   (mêmes classes) — aucun changement de contenu ni de style. Pour revenir en arrière,
   supprimer ce bloc. */
.hero { margin-bottom: 24px; }
.marquee { margin-top: 40px; margin-bottom: 64px; }
.trust-bar { margin-bottom: 80px; }
.problem, .audience, .benefits, .pricing, .faq, .option-pro,
.metier-amounts, .metier-related, .metier-pricing, .metier-stock-pitch { margin-bottom: 88px; }
.checkerboard { padding: 72px 0; margin-bottom: 88px; }
.security-wrap { padding: 80px 0; }
.security-wrap + section, .testimonial-wrap + section { margin-top: 88px; }
@media (max-width: 640px) {
    .hero { margin-bottom: 16px; }
    .marquee { margin-top: 28px; margin-bottom: 44px; }
    .trust-bar { margin-bottom: 56px; }
    .problem, .audience, .benefits, .pricing, .faq, .option-pro,
    .metier-amounts, .metier-related, .metier-pricing, .metier-stock-pitch { margin-bottom: 60px; }
    .checkerboard { padding: 44px 0; margin-bottom: 60px; }
    .security-wrap { padding: 48px 0; }
    .security-wrap + section, .testimonial-wrap + section { margin-top: 60px; }
}

/* ---------- Module Stock & Locations (formule Pro, étape 41) ----------
   Réutilise .table/.table-wrap/.card/.badge/.tabs/.notice-warning/.checklist existants
   (espace loueur) — seules les classes propres à ce module sont ajoutées ici. */

/* Couleur des cases "disponibilité d'un article" (vert ≥ 20 % du total, orange en dessous,
   rouge en surréservation — voir stock_availability_cell_class(), app/core/stock.php) :
   utilisée par le calendrier mensuel ci-dessous. Mêmes teintes que les badges existants
   (--ok/--warn/--danger). ("Stock par date", qui utilisait aussi ces classes, a été retiré
   de la navigation et remplacé par le Calendrier — modif Eva en prod du 12/11/2026.) */
.stock-cell-ok { background: var(--ok-soft); }
.stock-cell-warn { background: var(--warn-soft); }
.stock-cell-over { background: var(--danger-soft); color: var(--danger); font-weight: 600; }

/* Ligne d'un article dont la quantité dépasse la disponibilité réelle (formulaire de
   location et fiche) — surréservation assumée (statut "option"), jamais bloquée, juste
   signalée (voir rental_overbooked_line_ids(), app/core/stock.php). */
.stock-line-over { background: var(--danger-soft); }

.stock-qty-input { width: 72px; text-align: center; }

/* ---------- Calendrier mensuel (étape 43) ----------
   Même technique desktop/mobile que .stock-availability-desktop/-mobile (retiré) : les deux
   blocs existent toujours dans le HTML, un seul est affiché selon la largeur d'écran. */
.calendar-table { table-layout: fixed; }
.calendar-table th { text-align: center; font-size: .8rem; color: var(--ink-soft); }
.calendar-day { position: relative; vertical-align: top; height: 92px; padding: 6px; border: 1px solid var(--line); }
.calendar-day-out { background: var(--bg); color: var(--ink-soft); }
.calendar-day-today { background: var(--brand-soft); }
.calendar-day-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 4px; }
.calendar-day-num { font-weight: 600; color: inherit; }

/* Raccourci "Nouvelle location" par jour (ajouté le 12/11/2026, remplace l'ancien clic sur
   une case de "Stock par date") : au survol sur ordinateur (caché par défaut), toujours
   visible sur mobile (override ci-dessous, même seuil 640px que le reste du module). */
.calendar-day-add {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-ink);
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    opacity: 0;
    transition: opacity .15s;
}
.calendar-day:hover .calendar-day-add,
.calendar-day-add:focus-visible {
    opacity: 1;
}
/* "Vérifier les disponibilités ce jour-là" (étape 58) — même raccourci que .calendar-day-add,
   juste à côté plutôt qu'au-dessus, pour ne jamais se chevaucher. */
.calendar-day-check {
    position: absolute;
    top: 4px;
    right: 24px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: .7rem;
    text-decoration: none;
    opacity: 0;
    transition: opacity .15s;
}
.calendar-day:hover .calendar-day-check,
.calendar-day-check:focus-visible {
    opacity: 1;
}
.calendar-day-availability { font-size: .78rem; font-weight: 600; border-radius: 4px; padding: 1px 6px; display: inline-block; margin: 0 0 4px; }
.calendar-day-counts { margin: 0 0 4px; }
.calendar-day-rentals { list-style: none; margin: 0; padding: 0; font-size: .78rem; }
.calendar-day-rentals li { display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.calendar-day-rentals a { color: inherit; overflow: hidden; text-overflow: ellipsis; }

/* Point de couleur par statut de location — 4 teintes bien distinctes, volontairement
   différentes de rental_status_badge_class() qui partage une seule couleur pour
   option+confirmee ailleurs dans l'appli (voir rental_calendar_dot_class(), app/core/stock.php). */
.calendar-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.calendar-dot-option { background: var(--pink); }
.calendar-dot-confirmee { background: var(--brand); }
.calendar-dot-sortie { background: var(--accent); }
.calendar-dot-rendue { background: var(--sky); }

/* Pastille d'état de la caution (étape 46, brief section 6) — à côté du point de statut,
   seulement quand rental_caution_badge() renvoie quelque chose (son absence est déjà le
   signal "rien de sécurisé") — voir app/core/stock.php. */
.calendar-caution-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: 3px; vertical-align: middle; }
.calendar-caution-dot-badge-ok { background: var(--sky); }
.calendar-caution-dot-badge-pending { background: var(--accent); }
.calendar-caution-dot-badge-refused { background: var(--danger); }
.calendar-caution-dot-badge-caution-neutre { background: var(--line); }

/* Indicateur d'alerte stock (au moins un article bas/surréservé ce jour-là, tout le catalogue
   confondu — voir stock_calendar_weeks(), app/core/stock.php). */
.calendar-alert-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.calendar-alert-dot-warn { background: var(--warn); }
.calendar-alert-dot-over { background: var(--danger); }

.calendar-mobile { display: none; }
.calendar-mobile-day { margin-bottom: 12px; }
@media (max-width: 640px) {
    .calendar-desktop { display: none; }
    .calendar-mobile { display: block; }
    /* Sur mobile, le "+" est un enfant normal de .calendar-day-head (pas absolument
       positionné comme sur le bureau, où il flotte dans le coin de la case) et toujours
       visible, pas seulement au survol — qui n'existe pas au toucher. */
    .calendar-day-add,
    .calendar-day-check {
        position: static;
        margin-left: auto;
        opacity: 1;
    }
}

/* ---------- Impression groupée par date (étape 43) ----------
   À l'écran, une page normale (en-tête + bouton Imprimer, .no-print). À l'impression
   (@media print, section existante plus haut), chaque .print-fiche démarre sur une nouvelle
   page sauf la première — "une fiche par page" demandé par le brief. */
.print-sheet-head { margin-bottom: 20px; }
.print-fiche { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.print-fiche:last-child { border-bottom: 0; }

/* Colonnes vides à remplir à la main (fiches de récupération groupées) : une ligne pour
   écrire, pas un champ de formulaire — ce sont des pages imprimées, jamais soumises. */
.print-fill-cell { min-width: 70px; border-bottom: 1px solid var(--ink-soft); }

.print-checkbox-cell { width: 28px; text-align: center; }
.print-checkbox { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 3px; }

@page {
    margin: 1.5cm;
    /* Numéros de page (brief étape 48) : syntaxe standard CSS Paged Media — fonctionne dans
       les moteurs d'impression-vers-PDF (ex. wkhtmltopdf/Prince) mais PAS dans Chrome ni
       Firefox à ce jour, qui ignorent les marges @page. Laissé en place (ne fait de mal
       nulle part) mais ne pas compter dessus pour une impression navigateur classique. */
    @bottom-right { content: "Page " counter(page) " / " counter(pages); font-size: 9px; }
}

@media print {
    .print-fiche-break { break-before: page; }
    .print-fill-cell { border-bottom: 1px solid #000; }
    .print-checkbox { border-color: #000; }
    /* Repère visuel écran uniquement (cases pointillées) — sur le papier, seul le filet du
       bas de .print-fill-cell doit rester, pas de bordure pointillée superflue. */
    .print-fiche { border-bottom: 0; }
}

/* ---------- Exporter (catalogue, étape 48) ---------- */

.export-panel summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); list-style: none; }
.export-panel summary::before { content: '⤓ '; }
.export-panel[open] summary { margin-bottom: 16px; }

/* ---------- Feuille d'inventaire à imprimer (étape 48) ---------- */

.inventory-category { margin: 24px 0 8px; font-size: 1rem; }
.inventory-category:first-of-type { margin-top: 0; }

/* ---------- Import d'un devis (PDF/photo) → location (étape 45) ----------
   .import-dropzone est générique (renommée étape 47 : réutilisée par l'import de catalogue,
   même zone de dépôt). */

.import-dropzone {
    position: relative;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    padding: 36px 16px;
    text-align: center;
    cursor: pointer;
}
.import-dropzone.is-dragover { border-color: var(--brand); background: var(--brand-soft); }
.import-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Deux colonnes (document / formulaire) — seuil propre à cet écran, plus large que le
   640px habituel du site : le document importé a besoin d'une vraie largeur pour rester
   lisible, une bascule plus tôt le rendrait inutilisable avant même le reste du site. */
.import-verify-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.4fr); gap: 24px; align-items: start; }
@media (max-width: 900px) {
    .import-verify-grid { grid-template-columns: 1fr; }
}
.import-verify-doc { position: sticky; top: 16px; }
.import-verify-doc-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: var(--radius); }
.import-verify-doc-image { width: 100%; max-height: 70vh; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); }
.import-verify-abandon { margin-top: 12px; }
@media (max-width: 900px) {
    .import-verify-doc { position: static; }
}

.import-verify-ignored { margin: 16px 0; }
.import-verify-ignored summary { cursor: pointer; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Import d'un catalogue (Excel/CSV/PDF/photo) — aperçu (étape 47) ----------
   Repris du motif .legal-table (en-têtes masqués, cellules empilées en carte sur mobile) :
   cette ligne a trop de champs modifiables pour dupliquer une seconde maquette mobile. */

.import-catalogue-table th { white-space: nowrap; }
.import-catalogue-table td input[type="text"],
.import-catalogue-table td input[type="number"] {
    width: 100%;
    min-width: 64px;
    padding: 6px 8px;
}
.import-catalogue-table td select { padding: 6px 8px; }
.import-catalogue-row-review { background: var(--warn-soft); }
.import-catalogue-row-existing { background: var(--sky); }

/* Réimport d'inventaire (étape 48) : une ligne associée par ID et strictement identique au
   catalogue actuel reste visuellement neutre (pas de fond bleu "doublon") — seule une ligne
   qui change réellement quelque chose doit attirer l'œil. */
.import-catalogue-row-unchanged { background: transparent; opacity: .6; }
.diff-before { color: var(--muted); font-size: .72rem; font-style: italic; }

@media (max-width: 900px) {
    .import-catalogue-table thead { display: none; }
    .import-catalogue-table, .import-catalogue-table tbody, .import-catalogue-table tr, .import-catalogue-table td {
        display: block;
        width: 100%;
    }
    .import-catalogue-table tr {
        margin-bottom: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        padding: 4px 12px;
    }
    .import-catalogue-table td { border: 0; padding: 8px 0; }
    .import-catalogue-table td:not(:last-child) { border-bottom: 1px dashed var(--line); }
    .import-catalogue-table td::before {
        content: attr(data-label);
        display: block;
        font-size: .7rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: var(--muted);
        margin-bottom: 2px;
    }
    .import-catalogue-table td input[type="text"],
    .import-catalogue-table td input[type="number"] { min-width: 0; }
}

/* =====================================================================
   Accueil v2 (étape 53) — page d'accueil plus aérée, inspiration abby.fr
   sans en reprendre textes/illustrations. TOUT ce bloc est scopé sous
   .home-v2 (le conteneur racine de app/views/home_v2.php) : aucune règle
   ici ne peut s'appliquer à home.php, aux pages métiers ou à l'espace
   loueur/admin — c'est voulu, pour ne jamais régresser ces pages (brief
   §"Règles générales"). Composants déjà génériques (boutons, .how-steps/
   .step-blue|pink|yellow, .price-card/.price-toggle, .faq-item via
   <details>/<summary>) réutilisés tels quels à l'intérieur, pas redéfinis.
   ===================================================================== */

.home-v2 {
    /* Beige clair distinct du fond crème (--bg) existant — nouvelle teinte,
       volontairement locale à .home-v2 plutôt qu'ajoutée au :root partagé
       par tout le site. */
    --home-beige: #f4e9d6;
    font-size: 18px;
    line-height: 1.6;
}
.home-v2 p { max-width: 65ch; }
.home-v2-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Rythme vertical entre sections (brief : ~120px ordinateur, ~72px mobile) —
   un seul point de réglage, comme le bloc "Respiration" de home.php. */
.home-v2 > * + * { margin-top: 120px; }
.home-v2-panel + .home-v2-panel,
* + .home-v2-panel, .home-v2-panel + * { margin-top: 0; } /* les panneaux gèrent leur propre espace via leur padding */

/* "Grands panneaux arrondis" plein écran (moins 24px de chaque côté, 12px
   sur mobile) — même principe que .bleed/.bleed-inner (home.php), avec un
   rayon et un padding interne propres à cette refonte. */
.home-v2-panel {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    padding: 24px;
    margin-top: 120px;
}
.home-v2-panel-surface {
    max-width: calc(1100px + 48px);
    margin: 0 auto;
    border-radius: 32px;
    padding: 88px 48px;
}
.home-v2-panel-inner { max-width: 1100px; margin: 0 auto; }
.home-v2-panel--beige .home-v2-panel-surface { background: var(--home-beige); }
.home-v2-panel--pink .home-v2-panel-surface { background: var(--pink); color: var(--ink); }
.home-v2-panel--brand .home-v2-panel-surface,
.home-v2-panel--brand-dark .home-v2-panel-surface { color: var(--brand-ink); }
.home-v2-panel--brand .home-v2-panel-surface { background: var(--brand); }
.home-v2-panel--brand-dark .home-v2-panel-surface { background: var(--brand-dark); }
.home-v2-panel--brand h2, .home-v2-panel--brand-dark h2 { color: var(--brand-ink); }
.home-v2-panel--brand a:not(.button), .home-v2-panel--brand-dark a:not(.button) { color: #fff; }

/* Grille de fond très légère (fines lignes), à la place du damier actuel —
   réutilisée sous le hero (derrière les cartes flottantes) et sur le
   panneau beige de "Comment ça marche" (brief : "le damier disparaît"). */
.home-v2-grid-bg {
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 36px 36px;
}
.home-v2-panel--beige.home-v2-grid-bg .home-v2-panel-surface { background: var(--home-beige); }

.home-v2 h2 { font-weight: 700; font-size: clamp(34px, 5vw, 56px); line-height: 1.15; }

/* ---------- 1. Hero centré ---------- */
.home-v2-hero { text-align: center; max-width: 720px; margin: 0 auto; padding: 48px 24px 0; position: relative; }
.home-v2-hero .eyebrow { justify-content: center; }
.home-v2-hero h1 { font-size: clamp(36px, 5.5vw, 60px); line-height: 1.1; }
.home-v2-hero-lead { max-width: 560px; margin: 0 auto 1.4em; color: var(--ink-soft); font-size: 1.15rem; }
.home-v2-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.home-v2-hero-sub { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.home-v2-hero-sub-badge {
    display: inline-block; background: var(--ok-soft); color: var(--ok); font-weight: 700;
    font-size: .78rem; padding: 3px 12px; border-radius: 999px; margin-right: 8px;
}
.home-v2-hero-note { color: var(--muted); font-size: .85rem; }
.home-v2-hero-phone-mobile { display: none; margin: 24px auto 0; max-width: 220px; }
.home-v2-hero-phone-mobile img { display: block; width: 100%; border-radius: 20px; box-shadow: var(--shadow); }

/* Cartes flottantes décoratives — ordinateur uniquement (brief §1), posées
   sur la grille légère, chacune en léger "post-it" incliné. Pures mentions
   existantes (photo, pastilles), rien de nouveau à illustrer. */
/* Correctif prod (déploiement étape 53) : les cartes sont posées AUTOUR du texte (calque
   absolu derrière le contenu centré), et non plus dans un bloc de 420 px sous le hero. */
.home-v2-hero { max-width: 1160px; padding-bottom: 72px; }
.home-v2-hero > :not(.home-v2-hero-floaters) { position: relative; z-index: 1; max-width: 660px; margin-left: auto; margin-right: auto; }
.home-v2-hero-floaters { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.home-v2-hero-float {
    position: absolute;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px 16px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    max-width: 190px;
    line-height: 1.35;
    text-align: left;
}
.home-v2-hero-float--photo { padding: 0; overflow: hidden; width: 160px; height: 160px; top: 70px; left: 1%; transform: rotate(-4deg); }
.home-v2-hero-float--photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-v2-hero-float--check { top: 290px; left: 3%; transform: rotate(2deg); color: var(--ok); }
.home-v2-hero-float--stock { bottom: 90px; left: 0; transform: rotate(-3deg); color: var(--brand); }
.home-v2-hero-float--amount { top: 80px; right: 1%; transform: rotate(3deg); color: var(--brand); }
.home-v2-hero-float--q { top: 230px; right: 9%; width: 52px; height: 52px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--brand); transform: rotate(8deg); }
.home-v2-hero-float--q img { width: 62%; height: 62%; }
.home-v2-hero-float--released { bottom: 110px; right: 2%; transform: rotate(-2deg); color: var(--brand); }
@media (max-width: 1180px) {
    .home-v2-hero-floaters { display: none; }
    .home-v2-hero-phone-mobile { display: block; }
}

/* ---------- 0. Barre d'annonce Option Pro (si PRO_PUBLIC=1) ---------- */
.home-v2-announce {
    background: var(--brand); color: var(--brand-ink); text-align: center;
    font-size: .88rem; font-weight: 600; padding: 10px 20px;
}
.home-v2-announce a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.home-v2-announce strong { font-weight: 700; }

/* ---------- 2. Réassurance ---------- */
.home-v2-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 36px; text-align: center; }
.home-v2-trust-item { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink-soft); }
.home-v2-trust-dot {
    display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
    border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: .85rem; flex: none;
}

/* ---------- 4. Le problème : 2 colonnes ---------- */
.home-v2-problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.home-v2-problem h2 { margin: 0; }
.home-v2-problem-list { list-style: none; margin: 0; padding: 0; }
.home-v2-problem-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 1rem; }
.home-v2-problem-list li:last-child { border-bottom: 0; }
.home-v2-problem-bascule { grid-column: 1 / -1; font-weight: 700; font-size: 1.15rem; margin: 0; }
@media (max-width: 900px) {
    .home-v2-problem { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- 5/6. Panneaux "en 3 étapes" (Caution, puis Option Pro) ---------- */
.home-v2-steps-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 48px; }
.home-v2-steps-head h2 { margin: 0; }
.home-v2-steps-head p { margin: 0; font-size: 1.05rem; }
.home-v2-panel .how-steps { margin-bottom: 40px; }
.home-v2-panel .how-steps li { padding: 32px 24px; }
.home-v2-panel-cta { text-align: center; }
@media (max-width: 900px) {
    .home-v2-steps-head { grid-template-columns: 1fr; gap: 12px; }
}

/* "Et aussi" : accordéon natif (<details>/<summary>, comme la FAQ) à gauche,
   visuel d'écran à droite (maquette CSS/HTML, données fictives — brief §6). */
.home-v2-extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 40px; }
.home-v2-extras-title { font-size: 1.3rem; margin: 0 0 1em; }
.home-v2-accordion-item {
    background: rgba(255, 255, 255, .5); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
}
.home-v2-panel--brand .home-v2-accordion-item, .home-v2-panel--brand-dark .home-v2-accordion-item { background: rgba(255, 255, 255, .12); }
.home-v2-accordion-item summary {
    cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 20px; font-weight: 600;
}
.home-v2-accordion-item summary::-webkit-details-marker { display: none; }
.home-v2-accordion-item summary::after { content: "+"; font-size: 1.2rem; flex: none; }
.home-v2-accordion-item[open] summary::after { content: "\2212"; }
.home-v2-accordion-item p { margin: 0 20px 16px; font-size: .92rem; opacity: .9; }
.home-v2-extras-visual {
    background: rgba(255, 255, 255, .92); border-radius: var(--radius); padding: 20px; color: var(--ink);
    box-shadow: var(--shadow);
}
/* Maquette très simple d'un écran "Calendrier" — lignes/pastilles en CSS, données fictives,
   jamais une vraie capture (brief §6 : "en HTML/CSS avec données fictives"). */
.home-v2-mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; font-size: .9rem; }
.home-v2-mock-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.home-v2-mock-day { aspect-ratio: 1; border-radius: 6px; background: var(--bg); font-size: .68rem; padding: 3px; color: var(--muted); }
.home-v2-mock-day--busy { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.home-v2-mock-day--out { background: var(--pink); color: var(--ink); font-weight: 700; }
@media (max-width: 900px) {
    .home-v2-extras { grid-template-columns: 1fr; }
}

/* ---------- 7. Pour qui : pastilles + carte métier ---------- */
.home-v2-audience { text-align: center; }
.home-v2-audience h2 { text-align: center; }
.home-v2-pastilles { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 32px 0; }
.home-v2-pastille {
    border: 2px solid var(--brand); background: var(--surface); color: var(--brand); font: inherit; font-weight: 600;
    font-size: .9rem; padding: 10px 20px; border-radius: 999px; cursor: pointer;
}
.home-v2-pastille.is-active { background: var(--brand); color: var(--brand-ink); }
.home-v2-pastille:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.home-v2-metier-cards { max-width: 720px; margin: 0 auto; text-align: left; }
.home-v2-metier-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 32px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.home-v2-metier-card h3 { color: var(--brand); margin: 0 0 .5em; }
.home-v2-metier-card p { color: var(--ink-soft); }
/* Sans JS : [hidden] n'est jamais posé côté serveur, toutes les cartes s'affichent
   (brief §7, "Sans JS : toutes les cartes s'affichent les unes sous les autres"). */

/* Page SEO "Gestion de stock" (étape 56, app/views/stock_seo.php) : recentre la maquette
   .home-v2-extras-visual (normalement 1 des 2 colonnes de .home-v2-extras) quand elle est
   utilisée seule, en pleine largeur. */
.stock-seo-mock-wrap { max-width: 480px; margin: 32px auto 0; }

/* ---------- 8. Ce que vous gagnez ---------- */
.home-v2-benefits { text-align: center; }
.home-v2-benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; text-align: left; }
.home-v2-benefit-icon { width: 30px; height: 30px; color: var(--brand); margin-bottom: 12px; }
.home-v2-benefit h3 { font-size: 1.05rem; margin: 0 0 .4em; }
.home-v2-benefit p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .home-v2-benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .home-v2-benefits-grid { grid-template-columns: 1fr; } }

/* ---------- 9. Sécurité ---------- */
.home-v2-security { max-width: 760px; margin: 0 auto; text-align: center; }
.home-v2-security h2 { font-size: clamp(34px, 5vw, 56px); }
.home-v2-security p { color: var(--ink-soft); font-size: 1.1rem; }
.home-v2-security-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; padding: 0; }
.home-v2-security-pills li {
    background: var(--brand-soft); color: var(--brand); font-size: .82rem; font-weight: 600;
    padding: 6px 16px; border-radius: 999px;
}

/* ---------- 10. Témoignage ---------- */
.home-v2-testimonial { max-width: 640px; margin: 0 auto; }
.home-v2-testimonial blockquote { font-family: var(--font-sub); font-style: italic; font-size: 1.3rem; margin: 0 0 .6em; color: var(--ink); }
.home-v2-testimonial cite { font-weight: 700; color: var(--brand); font-style: normal; }

/* ---------- 11. Tarif ---------- */
.home-v2-pricing { text-align: center; }
.home-v2-pricing h2 { text-align: center; }
.home-v2-pricing .price-cards { margin-top: 48px; }
.home-v2-pricing .price-card { background: var(--surface); }
.home-v2-pricing .price-card--pro { background: var(--pink); border-color: var(--brand-ink); }
.home-v2-pricing-note { font-size: .78rem; color: rgba(255, 255, 255, .7); max-width: 560px; margin: 24px auto 0; }

/* ---------- 12. FAQ : 2 colonnes ---------- */
.home-v2-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.home-v2-faq h2 { margin: 0; }
.home-v2-faq-list { background: var(--home-beige); border-radius: var(--radius); padding: 8px 24px; }
.home-v2-faq-item { border-bottom: 1px solid rgba(43, 43, 51, .1); padding: 4px 0; }
.home-v2-faq-item:last-child { border-bottom: 0; }
.home-v2-faq-item summary {
    cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 0; font-weight: 600; color: var(--ink);
}
.home-v2-faq-item summary::-webkit-details-marker { display: none; }
.home-v2-faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--brand); flex: none; }
.home-v2-faq-item[open] summary::after { content: "\2212"; }
.home-v2-faq-item p { margin: 0 0 16px; color: var(--ink-soft); }
@media (max-width: 900px) {
    .home-v2-faq { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- 13. Appel final ---------- */
.home-v2-final { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.home-v2-final-text h2 { margin: 0 0 .6em; }
.home-v2-final-visual { display: flex; justify-content: center; }
.home-v2-final-visual img { max-width: 260px; display: block; border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 900px) {
    .home-v2-final { grid-template-columns: 1fr; text-align: center; }
    .home-v2-final-visual { order: -1; }
}

/* ---------- Mobile (brief : ~72px entre sections, panneaux 48px, texte 17px) ---------- */
@media (max-width: 640px) {
    .home-v2 { font-size: 17px; }
    .home-v2 > * + * { margin-top: 72px; }
    .home-v2-panel { margin-top: 72px; padding: 12px; }
    .home-v2-panel-surface { padding: 48px 20px; }
    .home-v2-inner { padding: 0 12px; }
}

/* =====================================================================
   Accueil v2 — finitions (modif manuelle en prod, 15/11/2026, retours d'Eva)
   - plus de beige (hors charte) : bleu très clair de la marque à la place ;
   - grille de fond en fines lignes bleutées (rappel du damier bleu/blanc) ;
   - barre d'annonce, hero et panneaux sur toute la largeur de l'écran ;
   - cartes flottantes et maquette "Locations" plus propres ;
   - image finale non déformée.
   ===================================================================== */
.home-v2 { --home-beige: var(--brand-soft); --hv2-grid: rgba(53, 72, 192, .07); }
.home-v2-grid-bg {
    background-image:
        linear-gradient(var(--hv2-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--hv2-grid) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Pleine largeur */
.home-v2-announce {
    position: relative; width: 100vw; left: 50%; margin-left: -50vw;
    border-radius: 0; padding: 12px 24px; text-align: center;
}
.home-v2-hero {
    position: relative; width: 100vw; max-width: none; left: 50%; margin-left: -50vw;
    padding: 72px 24px 96px;
}
.home-v2-hero-floaters { max-width: 1240px; margin: 0 auto; left: 0; right: 0; }
.home-v2-panel-surface { max-width: none; padding: 96px 48px; }
.home-v2-panel-inner { max-width: 1100px; }

/* Cartes flottantes du hero, style "interface" */
.home-v2-hero-float {
    display: flex; flex-direction: column; gap: 6px;
    background: #fff; border-radius: 18px; padding: 14px 18px;
    box-shadow: 0 12px 32px rgba(39, 53, 152, .12), 0 2px 6px rgba(39, 53, 152, .06);
    font-size: .85rem; font-weight: 600; color: var(--ink); max-width: 220px;
}
.hv2-f-label { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.hv2-f-value { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--brand); font-weight: 700; }
.hv2-f-value small { font-family: inherit; font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.hv2-f-pill { align-self: flex-start; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.hv2-f-pill--blue { background: var(--brand-soft); color: var(--brand); }
.hv2-f-pill--yellow { background: var(--accent); color: var(--brand); }
.hv2-f-dot { display: inline-flex; width: 22px; height: 22px; border-radius: 999px; background: var(--ok); color: #fff; align-items: center; justify-content: center; font-size: .75rem; margin-right: 6px; }
.home-v2-hero-float--check { flex-direction: row; align-items: center; color: var(--ink); }
.hv2-f-bar { display: block; height: 6px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; min-width: 140px; }
.hv2-f-bar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.home-v2-hero-float--photo { width: 150px; height: 150px; padding: 0; border: 6px solid #fff; border-radius: 24px; overflow: hidden; }
.home-v2-hero-float--photo img { width: 100%; height: 100%; object-fit: cover; }
.home-v2-hero-float--q { width: 56px; height: 56px; padding: 0; border-radius: 999px; background: var(--brand); align-items: center; justify-content: center; }
.home-v2-hero-float--photo    { top: 60px;  left: 2%;  transform: rotate(-5deg); }
.home-v2-hero-float--check    { top: 300px; left: 5%;  transform: rotate(2deg); }
.home-v2-hero-float--stock    { bottom: 70px; left: 1%; transform: rotate(-2deg); }
.home-v2-hero-float--amount   { top: 60px;  right: 2%; transform: rotate(3deg); }
.home-v2-hero-float--q        { top: 260px; right: 11%; transform: rotate(8deg); }
.home-v2-hero-float--released { bottom: 80px; right: 3%; transform: rotate(-3deg); }

/* Comment ça marche : panneau bleu très clair + grille */
.home-v2-panel--beige .home-v2-panel-surface,
.home-v2-panel--beige.home-v2-grid-bg .home-v2-panel-surface {
    background-color: var(--brand-soft);
    background-image:
        linear-gradient(rgba(53, 72, 192, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53, 72, 192, .08) 1px, transparent 1px);
    background-size: 40px 40px;
}
.home-v2-panel--beige.home-v2-grid-bg { background-image: none; }

/* Option Pro : maquette "Locations" */
.home-v2-extras-visual {
    background: #fff; border-radius: 20px; padding: 20px; color: var(--ink);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.hv2-mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.hv2-mock-title { font-weight: 700; font-size: .95rem; color: var(--ink); }
.hv2-mock-chip { font-size: .72rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); padding: 4px 10px; border-radius: 999px; }
.hv2-mock-row {
    display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
    padding: 12px 0; border-top: 1px solid #eef0f8;
}
.hv2-mock-date { display: flex; flex-direction: column; align-items: center; font-size: .7rem; color: var(--muted); line-height: 1.1; }
.hv2-mock-date b { font-family: var(--font-display); font-size: 1.3rem; color: var(--brand); }
.hv2-mock-main { display: flex; flex-direction: column; font-size: .88rem; line-height: 1.3; min-width: 0; }
.hv2-mock-main small { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv2-mock-status { font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.hv2-mock-status--ok { background: var(--ok-soft); color: var(--ok); }
.hv2-mock-status--wait { background: var(--accent); color: var(--brand); }
.hv2-mock-status--print { background: #ffe1e7; color: #b4304a; }
.hv2-mock-stock {
    display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 8px; padding: 12px 14px;
    background: var(--brand-soft); border-radius: 12px; font-size: .8rem; color: var(--ink-soft);
}
.hv2-mock-stock b { color: var(--brand); font-size: .8rem; }
.home-v2-mock-head, .home-v2-mock-grid { display: none; }

/* Ce que vous gagnez : icônes en pastille */
.home-v2-benefits-grid { gap: 40px; margin-top: 48px; }
.home-v2-benefit-icon {
    width: 52px; height: 52px; padding: 13px; border-radius: 16px;
    background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.home-v2-benefit:nth-child(2) .home-v2-benefit-icon { background: #ffe1e7; color: #b4304a; }
.home-v2-benefit:nth-child(3) .home-v2-benefit-icon { background: #fff7c2; color: var(--brand); }
.home-v2-benefit h3 { font-size: 1.15rem; }
.home-v2-benefit p { font-size: 1rem; }

/* FAQ : lignes blanches arrondies, plus de beige */
.home-v2-faq-list { background: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.home-v2-faq-item {
    background: #fff; border: 0; border-radius: 16px; padding: 4px 22px;
    box-shadow: 0 2px 10px rgba(39, 53, 152, .06);
}
.home-v2-faq-item:last-child { border-bottom: 0; }

/* Appel final : image non déformée */
.home-v2-final-visual img {
    width: 100%; max-width: 440px; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 24px; box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

@media (max-width: 640px) {
    .home-v2-panel-surface { padding: 56px 20px; }
    .home-v2-hero { padding: 48px 16px 56px; }
}
/* Carte 1 bleue sur panneau bleu : passée en blanc pour qu'elle se détache */
.home-v2-panel--brand .how-steps .step-blue { background: #fff; }
.home-v2-panel--brand .how-steps .step-blue h3,
.home-v2-panel--brand .how-steps .step-blue p { color: var(--ink); }
.home-v2-panel--brand .how-steps .step-blue::before { color: var(--brand); }
.home-v2-panel--brand .how-steps li { box-shadow: 6px 6px 0 var(--brand-dark); }
/* Respiration entre un panneau et une section simple (les deux sens) */
.home-v2 > .home-v2-panel + :not(.home-v2-panel) { margin-top: 104px; }
.home-v2 > :not(.home-v2-panel):not(.home-v2-announce) + .home-v2-panel { margin-top: 88px; }
@media (max-width: 640px) {
    .home-v2 > .home-v2-panel + :not(.home-v2-panel) { margin-top: 64px; }
    .home-v2 > :not(.home-v2-panel):not(.home-v2-announce) + .home-v2-panel { margin-top: 48px; }
}
/* Titre au-dessus de l'avis client (retour d'Eva) */
.home-v2-testimonial { max-width: 760px; }
.home-v2-testimonial h2 { text-align: center; margin: 0 0 36px; }
.home-v2-testimonial .testimonial-stars { margin-bottom: 10px; }
/* Tarif sur fond bleu clair (retour d'Eva) */
#tarif.home-v2-panel--brand-dark .home-v2-panel-surface { background: var(--sky); color: var(--ink); }
#tarif.home-v2-panel--brand-dark h2 { color: var(--brand); }
#tarif .eyebrow { color: var(--brand); }
#tarif .home-v2-pricing-note { color: var(--ink-soft); }
#tarif.home-v2-panel--brand-dark a:not(.button) { color: var(--brand); }
#tarif .price-card { box-shadow: 0 14px 36px rgba(39, 53, 152, .14); border-color: transparent; }
#tarif .price-card--pro { border: 2px solid var(--brand); }
#tarif .eyebrow { display: block; text-align: center; justify-content: center; margin-left: auto; margin-right: auto; }
/* Hero : les 2 piliers caution + stock en direct (retour d'Eva) */
.home-v2-hero-lead { font-size: 1.25rem; color: var(--ink); font-weight: 600; margin-bottom: 20px; }
.home-v2-hero > .home-v2-hero-pillars {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    max-width: 760px; margin: 0 auto 28px; text-align: left;
}
.home-v2-hero-pillar {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff; border-radius: 18px; padding: 16px 18px;
    box-shadow: 0 10px 28px rgba(39, 53, 152, .10);
    font-size: .95rem; line-height: 1.45; color: var(--ink-soft);
}
.home-v2-hero-pillar strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.home-v2-hero-pillar strong em {
    font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .02em;
    background: var(--brand); color: #fff; padding: 3px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px;
}
.home-v2-hero-pillar b { color: var(--ink); }
.home-v2-hero-pillar-icon {
    flex: none; width: 44px; height: 44px; border-radius: 14px; padding: 10px;
    background: var(--brand-soft); color: var(--brand);
}
.home-v2-hero-pillar--pro .home-v2-hero-pillar-icon { background: var(--accent); }
.home-v2-hero-pillar-icon svg { width: 100%; height: 100%; display: block; }
@media (max-width: 720px) {
    .home-v2-hero > .home-v2-hero-pillars { grid-template-columns: 1fr; }
}
/* Le problème : panneau jaune, plus de couleur (retour d'Eva) */
.home-v2-panel--yellow .home-v2-panel-surface { background: var(--accent); color: var(--ink); }
.home-v2-panel--yellow h2 { color: var(--brand); }
.home-v2-panel--yellow .home-v2-problem-list { display: flex; flex-direction: column; gap: 12px; }
.home-v2-panel--yellow .home-v2-problem-list li {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 0; border-radius: 16px; padding: 16px 20px;
    color: var(--ink); font-weight: 500; box-shadow: 4px 4px 0 var(--ink);
}
.home-v2-problem-x {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 999px; background: var(--pink); color: var(--ink);
    font-size: .85rem; font-weight: 700;
}
.home-v2-panel--yellow .home-v2-problem-bascule {
    justify-self: start; margin-top: 8px; background: var(--brand); color: #fff;
    padding: 14px 24px; border-radius: 999px; font-size: 1.1rem;
}
/* Hero : cartes flottantes légèrement animées (retour d'Eva) */
.home-v2-hero-float--photo    { --r: -5deg; }
.home-v2-hero-float--check    { --r: 2deg; }
.home-v2-hero-float--stock    { --r: -2deg; }
.home-v2-hero-float--amount   { --r: 3deg; }
.home-v2-hero-float--q        { --r: 8deg; }
.home-v2-hero-float--released { --r: -3deg; }
@keyframes hv2-float {
    0%, 100% { transform: translateY(0) rotate(var(--r)); }
    50%      { transform: translateY(-12px) rotate(calc(var(--r) * -0.4)); }
}
@keyframes hv2-in {
    from { opacity: 0; translate: 0 18px; }
    to   { opacity: 1; translate: 0 0; }
}
@keyframes hv2-bar {
    0%   { width: 20%; }
    60%  { width: 76%; }
    100% { width: 76%; }
}
@keyframes hv2-pop {
    0%, 70%, 100% { transform: scale(1); }
    80%           { transform: scale(1.25); }
}
@keyframes hv2-spin {
    0%, 100% { transform: rotate(var(--r)) scale(1); }
    50%      { transform: rotate(calc(var(--r) - 16deg)) scale(1.06); }
}
@media (prefers-reduced-motion: no-preference) {
    .home-v2-hero-float {
        animation: hv2-in .8s ease-out both, hv2-float 6s ease-in-out infinite;
    }
    .home-v2-hero-float--photo    { animation-delay: .1s, .9s; animation-duration: .8s, 6.5s; }
    .home-v2-hero-float--amount   { animation-delay: .25s, 1.2s; animation-duration: .8s, 5.5s; }
    .home-v2-hero-float--check    { animation-delay: .4s, 2s; animation-duration: .8s, 7s; }
    .home-v2-hero-float--q        { animation: hv2-in .8s ease-out .55s both, hv2-spin 5s ease-in-out 1.4s infinite; }
    .home-v2-hero-float--stock    { animation-delay: .7s, 1.6s; animation-duration: .8s, 6.2s; }
    .home-v2-hero-float--released { animation-delay: .85s, 2.4s; animation-duration: .8s, 5.8s; }
    .home-v2-hero-float--stock .hv2-f-bar > span { animation: hv2-bar 4s ease-in-out 1.2s infinite alternate; }
    .home-v2-hero-float--check .hv2-f-dot { animation: hv2-pop 3s ease-in-out 1.5s infinite; }
}
/* Accueil v2 : apparition au défilement (classes posées par app.js uniquement) */
.hv2-reveal {
    opacity: 0; translate: 0 32px;
    transition: opacity .7s ease-out, translate .7s cubic-bezier(.2, .7, .2, 1), scale .7s cubic-bezier(.2, .7, .2, 1);
}
.hv2-reveal--item { translate: 0 20px; transition-duration: .55s; }
.hv2-reveal--zoom { translate: 0 0; scale: .94; }
.hv2-reveal.is-visible { opacity: 1; translate: 0 0; scale: 1; }
/* Finitions (retours d'Eva) : titre, sécurité, avis */
.hv2-nowrap { white-space: nowrap; }
.home-v2-security {
    max-width: 880px; background: #fff; border-radius: 32px; padding: 64px 56px 56px;
    box-shadow: 0 18px 48px rgba(39, 53, 152, .10); position: relative;
}
.home-v2-security-lock {
    display: inline-flex; width: 72px; height: 72px; padding: 18px; border-radius: 22px;
    background: var(--brand); color: #fff; margin-bottom: 20px; box-shadow: 5px 5px 0 var(--pink);
}
.home-v2-security-lock svg { width: 100%; height: 100%; }
.home-v2-security p { margin-left: auto; margin-right: auto; }
.home-v2-testimonial-card {
    position: relative; background: #fff; border-radius: 28px; padding: 48px 48px 40px 56px;
    box-shadow: 0 18px 48px rgba(39, 53, 152, .10); overflow: hidden;
}
.home-v2-testimonial-mark {
    position: absolute; top: -18px; left: 20px; font-family: var(--font-sub); font-size: 140px;
    line-height: 1; color: var(--pink); pointer-events: none;
}
.home-v2-testimonial-card .testimonial-stars,
.home-v2-testimonial-card blockquote,
.home-v2-testimonial-card cite { position: relative; }
@media (max-width: 640px) {
    .home-v2-security { padding: 44px 22px 36px; border-radius: 24px; }
    .home-v2-testimonial-card { padding: 40px 22px 28px 26px; }
}
.home-v2-testimonial-mark { top: 4px; left: 18px; font-size: 110px; opacity: .9; } .home-v2-testimonial-card { padding-top: 64px; }
/* Mobile : photo du hero non déformée et à taille raisonnable (retour d'Eva) */
.home-v2-hero > .home-v2-hero-phone-mobile { max-width: 340px; width: 100%; margin: 28px auto 0; }
.home-v2-hero-phone-mobile img {
    width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 24px; box-shadow: 0 14px 34px rgba(39, 53, 152, .14);
}
@media (max-width: 900px) {
    .home-v2-final-visual img { max-width: 340px; margin: 0 auto; }
}

/* Test en pleine page quand on arrive par le lien #test (modif manuelle en prod) */
html.quiz-lock, html.quiz-lock body { overflow: hidden; }
#quiz-widget.quiz-fullpage { opacity: 1; }
#quiz-widget.quiz-fullpage #quiz-bubble,
#quiz-widget.quiz-fullpage #quiz-bubble-close { display: none; }
#quiz-widget.quiz-fullpage #quiz-panel {
    inset: 0; right: 0; bottom: 0; width: auto; max-height: none;
    border: 0; border-radius: 0; box-shadow: none; z-index: 2000;
    align-items: center; overflow-y: auto; padding: 0 16px 48px;
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(53, 72, 192, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53, 72, 192, .07) 1px, transparent 1px);
    background-size: 40px 40px;
}
#quiz-widget.quiz-fullpage #quiz-panel-header {
    width: 100%; max-width: 640px; margin: 32px auto 0; padding: 14px 0;
    background: none; border: 0; flex: none;
}
#quiz-widget.quiz-fullpage #quiz-close { font-size: 1.8rem; }
#quiz-widget.quiz-fullpage #quiz-panel-body {
    width: 100%; max-width: 640px; margin: 8px auto 0; flex: none; overflow: visible;
    background: #fff; border-radius: 28px; padding: 40px 44px 36px;
    box-shadow: 0 18px 48px rgba(39, 53, 152, .12);
}
#quiz-widget.quiz-fullpage #quiz-panel-body::before {
    content: "Quelle formule pour vous ? · Le test en 1 min";
    display: block; margin-bottom: 22px; font-weight: 700; font-size: .85rem;
    color: var(--brand); letter-spacing: .02em;
}
#quiz-widget.quiz-fullpage .quiz-question { font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.2; margin-bottom: 24px; }
#quiz-widget.quiz-fullpage .quiz-option { font-size: 1.02rem; padding: 14px 18px; }
@media (max-width: 640px) {
    #quiz-widget.quiz-fullpage #quiz-panel-header { margin-top: 12px; }
    #quiz-widget.quiz-fullpage #quiz-panel-body { padding: 28px 20px 24px; border-radius: 22px; }
}
/* Classes remplaçant les anciens styles en ligne de home_v2 (CSP stricte) */
.hv2-f-bar > .hv2-f-bar-76 { width: 76%; }
.hv2-mb0 { margin-bottom: 0; }
.hv2-mt14 { margin-top: 14px; }
.hv2-mt16 { margin-top: 16px; }
.home-v2-panel--brand .home-v2-panel-cta a:not(.button) { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
/* Boutons centrés sous les panneaux (le max-width 65ch des paragraphes les décalait à gauche) */
.home-v2 .home-v2-panel-cta { max-width: none; margin-left: auto; margin-right: auto; }
/* Page gestion de stock : 6 fonctions en 3 colonnes (3 + 3 au lieu de 4 + 2) */
.home-v2-benefits-grid.stock-seo-features { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .home-v2-benefits-grid.stock-seo-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .home-v2-benefits-grid.stock-seo-features { grid-template-columns: 1fr; } }

/* Bandeau d'information cookies */
.cookie-notice {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 340px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 34px rgba(39, 53, 152, .16);
    padding: 20px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .35s ease, transform .35s ease;
}
.cookie-notice.is-visible { opacity: 1; transform: translateY(0); }
.cookie-notice-icon { flex-shrink: 0; width: 64px; height: 64px; transform: rotate(-12deg); transition: transform .5s ease; }
.cookie-notice.is-visible .cookie-notice-icon { transform: rotate(0deg); }
@media (prefers-reduced-motion: reduce) {
    .cookie-notice { transition: none; transform: none; }
    .cookie-notice-icon { transition: none; transform: none; }
}
.cookie-notice-body { min-width: 0; }
.cookie-notice-title { font-family: var(--font-display); color: var(--brand); font-size: 1.05rem; margin: 0 0 .4em; }
.cookie-notice-text { font-size: .86rem; color: var(--ink-soft); margin: 0 0 .8em; }
.cookie-notice-confirm { font-size: .86rem; font-weight: 600; color: var(--brand-dark); margin: 0 0 .8em; }
.cookie-notice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .6em; }
.cookie-notice-more { margin: 0; font-size: .8rem; }
.cookie-notice-more a { color: var(--muted); }
@media (max-width: 640px) {
    .cookie-notice { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
    .cookie-notice-icon { width: 44px; height: 44px; }
    .cookie-notice-actions { flex-wrap: nowrap; }
    /* La bulle du test (bas droite) et ce bandeau (pleine largeur) se chevaudraient sur
       mobile : la bulle se masque tant que le bandeau est affiché, et reprend sa place
       normale (son propre état hidden/opacity n'est jamais touché ici) dès sa fermeture. */
    body.cookie-notice-open #quiz-widget { display: none; }
}

/* Formules et packs (étape 59) */
.stock-variant-name-input { width: 200px; }
/* Ligne enfant d'un pack (une par composant), toujours juste après la ligne de tête de son
   pack (voir rental_lines_for(), app/core/stock.php) — légèrement en retrait et plus discrète,
   jamais interactive (pas de case préparation/retour dessus, seulement sur ses composants). */
.rental-line-pack-child { background: var(--bg); }
.rental-line-pack-child td:first-child { padding-left: 28px; color: var(--ink-soft); }
