/**
 * Vitrine 2027 — socle du site public Boxanet (lot 1, 2026-11-17).
 *
 * Chargée par layouts/main.php pour les seules pages du périmètre
 * (Vitrine2027::concerne() : /home/*, centre d'aide, pages légales, pages
 * de compte /auth/* depuis le 2026-11-18), APRÈS Bootstrap et style.css,
 * qui ne sont pas modifiés. Tout est rangé sous body.vitrine-2027 ou sous
 * le préfixe vx- : le tableau de bord et les sites des centres ne reçoivent
 * rien.
 *
 * Sommaire
 *   1. Tokens (clair sur :root, sombre sur [data-vx-theme] et .vx-sombre)
 *   2. Base : polices, titres, liens, focus visible
 *   3. Pont Bootstrap : les pages existantes prennent la charte sans que
 *      leur contenu change (retiré page par page aux lots suivants)
 *   4. Mise en page : conteneur, sections, grille 375 → 1440 px
 *   5. Composants : boutons, cartes, pastilles
 *   6. En-tête et lien d'évitement
 *   7. Pied de page
 *   8. Lecteur vidéo commun (lot 2, public/js/vitrine/lecteur.js)
 *   9. Pages (lots 4 à 7, 2026-11-18) : héros, parcours, piliers, cadres
 *      d'appareil, comparatif avant/après, chapitres, tableaux, FAQ, appels
 *      à l'action, bloc de repli d'une vidéo absente
 *  10. Centre d'aide et pages légales : la charte, contenu inchangé
 *  11. Pages de compte (2026-11-18) : connexion, inscription, mot de
 *      passe oublié, validation de l'email
 *  12. Demande d'étude (2026-11-18) : vue partagée avec /storagelab
 *  13. Mouvement réduit
 *
 * Polices : Manrope (titres) et Inter (texte), servies par le site
 * (public/fonts, @font-face de css/self-hosted-fonts.css, liée par le
 * gabarit juste avant cette feuille). Aucune police tierce.
 *
 * Contraste (AA, 4,5:1 pour le texte) : #0b7285 sur blanc 5,6:1 ; blanc sur
 * #0b7285 5,6:1 ; texte #14262b sur fond #f4f8f9 14:1 ; texte discret
 * #4a5f65 sur blanc 6,6:1 ; sombre : #e6f0f2 sur #0b181c 15:1, accent
 * #5cc8d7 sur #0b181c 9:1.
 */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
    /* Couleurs — thème clair */
    --vx-accent: #0b7285;
    --vx-accent-fort: #095c6b;
    --vx-accent-doux: #e3f3f6;
    --vx-accent-rgb: 11, 114, 133;
    --vx-sur-accent: #ffffff;
    --vx-fond: #ffffff;
    --vx-fond-doux: #f4f8f9;
    --vx-surface: #ffffff;
    --vx-texte: #14262b;
    --vx-texte-discret: #4a5f65;
    --vx-bordure: #d5e1e4;
    --vx-succes: #1a7f4b;
    --vx-alerte: #9a5b00;
    --vx-erreur: #b3261e;
    --vx-focus: #0b7285;

    /* Typographie */
    --vx-police-titre: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --vx-police-texte: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    /* Échelle fluide : la première valeur vaut à 375 px, la dernière à 1440 px */
    --vx-t-xs: 0.8125rem;
    --vx-t-sm: 0.9375rem;
    --vx-t-base: 1rem;
    --vx-t-lg: clamp(1.0625rem, 0.99rem + 0.3vw, 1.25rem);
    --vx-t-xl: clamp(1.25rem, 1.12rem + 0.56vw, 1.625rem);
    --vx-t-2xl: clamp(1.5rem, 1.28rem + 0.94vw, 2.125rem);
    --vx-t-3xl: clamp(1.875rem, 1.48rem + 1.69vw, 3rem);
    --vx-t-4xl: clamp(2.125rem, 1.51rem + 2.63vw, 3.875rem);
    --vx-interligne-titre: 1.15;
    --vx-interligne-texte: 1.65;

    /* Espacements (pas de 4 px) */
    --vx-e-1: 0.25rem;
    --vx-e-2: 0.5rem;
    --vx-e-3: 0.75rem;
    --vx-e-4: 1rem;
    --vx-e-5: 1.5rem;
    --vx-e-6: 2rem;
    --vx-e-7: 3rem;
    --vx-e-8: 4rem;
    --vx-e-9: 6rem;
    --vx-section: clamp(3rem, 2.3rem + 3vw, 6rem);
    --vx-gouttiere: clamp(1rem, 0.65rem + 1.5vw, 2rem);
    --vx-largeur: 75rem; /* 1200 px de contenu dans un écran de 1440 px */

    /* Rayons */
    --vx-rayon-sm: 0.375rem;
    --vx-rayon: 0.75rem;
    --vx-rayon-lg: 1.25rem;
    --vx-rayon-pilule: 999px;

    /* Ombres */
    --vx-ombre-sm: 0 1px 2px rgba(11, 40, 48, 0.08);
    --vx-ombre: 0 6px 18px rgba(11, 40, 48, 0.10);
    --vx-ombre-lg: 0 18px 40px rgba(11, 40, 48, 0.16);

    /* Mouvement */
    --vx-duree: 180ms;
    --vx-courbe: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/*
 * Thème sombre. Posé sur demande seulement ([data-vx-theme="sombre"] sur
 * <html>, ou .vx-sombre sur une section comme le pied de page) : tant que
 * les pages portent encore des fonds clairs Bootstrap (bg-light, bg-white),
 * suivre prefers-color-scheme les rendrait illisibles. Le suivi automatique
 * viendra quand les pages seront passées aux composants vx-.
 */
:root[data-vx-theme="sombre"],
.vx-sombre {
    --vx-accent: #5cc8d7;
    --vx-accent-fort: #8adbe6;
    --vx-accent-doux: #12333a;
    --vx-accent-rgb: 92, 200, 215;
    --vx-sur-accent: #06222a;
    --vx-fond: #0b181c;
    --vx-fond-doux: #10232a;
    --vx-surface: #142a31;
    --vx-texte: #e6f0f2;
    --vx-texte-discret: #a9bdc2;
    --vx-bordure: #24424a;
    --vx-succes: #5fd39a;
    --vx-alerte: #f0b85a;
    --vx-erreur: #ff8a80;
    --vx-focus: #8adbe6;
    --vx-ombre-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --vx-ombre: 0 6px 18px rgba(0, 0, 0, 0.45);
    --vx-ombre-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.vx-sombre {
    background-color: var(--vx-fond);
    color: var(--vx-texte);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
body.vitrine-2027 {
    font-family: var(--vx-police-texte);
    font-size: var(--vx-t-base);
    line-height: var(--vx-interligne-texte);
    color: var(--vx-texte);
    background-color: var(--vx-fond);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.vitrine-2027 h1,
body.vitrine-2027 h2,
body.vitrine-2027 h3,
body.vitrine-2027 h4,
body.vitrine-2027 h5,
body.vitrine-2027 h6,
body.vitrine-2027 .display-1,
body.vitrine-2027 .display-2,
body.vitrine-2027 .display-3,
body.vitrine-2027 .display-4,
body.vitrine-2027 .display-5,
body.vitrine-2027 .display-6,
.vx-titre {
    font-family: var(--vx-police-titre);
    line-height: var(--vx-interligne-titre);
    letter-spacing: -0.015em;
}

.vx-titre-1 { font-size: var(--vx-t-4xl); font-weight: 800; }
.vx-titre-2 { font-size: var(--vx-t-3xl); font-weight: 800; }
.vx-titre-3 { font-size: var(--vx-t-2xl); font-weight: 700; }
.vx-titre-4 { font-size: var(--vx-t-xl); font-weight: 700; }
.vx-chapeau { font-size: var(--vx-t-lg); color: var(--vx-texte-discret); max-width: 42rem; }
.vx-surtitre {
    font-family: var(--vx-police-titre);
    font-size: var(--vx-t-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vx-accent);
}
.vx-discret { color: var(--vx-texte-discret); }

/* Focus visible : un anneau net au clavier, rien à la souris */
body.vitrine-2027 :focus-visible {
    outline: 3px solid var(--vx-focus);
    outline-offset: 2px;
    border-radius: var(--vx-rayon-sm);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9);
}
body.vitrine-2027 .vx-sombre :focus-visible,
body.vitrine-2027 .vx-entete :focus-visible {
    box-shadow: 0 0 0 5px rgba(6, 34, 42, 0.9);
}
body.vitrine-2027 .vx-entete :focus-visible {
    outline-color: #ffffff;
}
/* Cible du lien d'évitement : pas d'anneau autour de tout le contenu */
body.vitrine-2027 main:focus {
    outline: none;
    box-shadow: none;
}

.vx-masque {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   3. PONT BOOTSTRAP — les pages existantes prennent la charte
   ========================================================================== */
body.vitrine-2027 {
    --primary-color: #0b7285;
    --bs-primary: #0b7285;
    --bs-primary-rgb: 11, 114, 133;
    --bs-link-color: #0b7285;
    --bs-link-color-rgb: 11, 114, 133;
    --bs-link-hover-color: #095c6b;
    --bs-link-hover-color-rgb: 9, 92, 107;
    --bs-body-font-family: var(--vx-police-texte);
    --bs-body-color: var(--vx-texte);
}

body.vitrine-2027 .hero-section {
    background: linear-gradient(135deg, #0b7285 0%, #084c59 100%);
}

body.vitrine-2027 .btn {
    border-radius: var(--vx-rayon-pilule);
}

body.vitrine-2027 .btn-primary {
    --bs-btn-bg: #0b7285;
    --bs-btn-border-color: #0b7285;
    --bs-btn-hover-bg: #095c6b;
    --bs-btn-hover-border-color: #095c6b;
    --bs-btn-active-bg: #084c59;
    --bs-btn-active-border-color: #084c59;
    --bs-btn-disabled-bg: #0b7285;
    --bs-btn-disabled-border-color: #0b7285;
    background: #0b7285;
}

body.vitrine-2027 .btn-primary:hover {
    background: #095c6b;
    box-shadow: 0 5px 15px rgba(11, 114, 133, 0.3);
}

body.vitrine-2027 .btn-outline-primary {
    --bs-btn-color: #0b7285;
    --bs-btn-border-color: #0b7285;
    --bs-btn-hover-bg: #0b7285;
    --bs-btn-hover-border-color: #0b7285;
    --bs-btn-active-bg: #095c6b;
    --bs-btn-active-border-color: #095c6b;
}

body.vitrine-2027 .card {
    border-radius: var(--vx-rayon);
}

body.vitrine-2027 .form-control:focus,
body.vitrine-2027 .form-select:focus {
    border-color: #0b7285;
    box-shadow: 0 0 0 0.2rem rgba(11, 114, 133, 0.25);
}

/* ==========================================================================
   4. MISE EN PAGE
   ========================================================================== */
.vx-conteneur {
    width: 100%;
    max-width: calc(var(--vx-largeur) + 2 * var(--vx-gouttiere));
    margin-inline: auto;
    padding-inline: var(--vx-gouttiere);
}
.vx-conteneur--etroit { max-width: calc(48rem + 2 * var(--vx-gouttiere)); }

.vx-section {
    padding-block: var(--vx-section);
    background-color: var(--vx-fond);
    color: var(--vx-texte);
}
.vx-section--douce { background-color: var(--vx-fond-doux); }
.vx-section--accent {
    background: linear-gradient(135deg, #0b7285 0%, #084c59 100%);
    color: #ffffff;
}
.vx-section__tete {
    display: grid;
    gap: var(--vx-e-3);
    margin-bottom: var(--vx-e-7);
    max-width: 46rem;
}
.vx-section__tete--centre {
    margin-inline: auto;
    text-align: center;
    justify-items: center;
}

/* Grille : une colonne à 375 px, puis 2, 3 ou 4 ; jamais de débordement */
.vx-grille {
    display: grid;
    gap: var(--vx-e-5);
    grid-template-columns: minmax(0, 1fr);
}
.vx-grille--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.vx-pile { display: grid; gap: var(--vx-e-4); }
.vx-ligne {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--vx-e-3);
}

@media (min-width: 600px) {
    .vx-grille--2,
    .vx-grille--3,
    .vx-grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .vx-grille { gap: var(--vx-e-6); }
    .vx-grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vx-grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .vx-grille--media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
}

/* ==========================================================================
   5. COMPOSANTS
   ========================================================================== */
.vx-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--vx-e-2);
    min-height: 2.75rem; /* cible tactile de 44 px */
    padding: 0.625rem 1.375rem;
    border: 2px solid transparent;
    border-radius: var(--vx-rayon-pilule);
    font-family: var(--vx-police-titre);
    font-size: var(--vx-t-sm);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    background-color: var(--vx-accent);
    color: var(--vx-sur-accent);
    transition: background-color var(--vx-duree) var(--vx-courbe),
        color var(--vx-duree) var(--vx-courbe),
        transform var(--vx-duree) var(--vx-courbe),
        box-shadow var(--vx-duree) var(--vx-courbe);
}
.vx-bouton:hover {
    background-color: var(--vx-accent-fort);
    color: var(--vx-sur-accent);
    transform: translateY(-1px);
    box-shadow: var(--vx-ombre);
}
.vx-bouton:active { transform: translateY(0); box-shadow: none; }
.vx-bouton[disabled],
.vx-bouton[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.vx-bouton--contour {
    background-color: transparent;
    border-color: var(--vx-accent);
    color: var(--vx-accent);
}
.vx-bouton--contour:hover { background-color: var(--vx-accent-doux); color: var(--vx-accent-fort); }

.vx-bouton--clair {
    background-color: #ffffff;
    color: #095c6b;
}
.vx-bouton--clair:hover { background-color: #e3f3f6; color: #084c59; }

.vx-bouton--discret {
    background-color: transparent;
    color: var(--vx-accent);
    padding-inline: var(--vx-e-3);
}
.vx-bouton--discret:hover { background-color: var(--vx-accent-doux); color: var(--vx-accent-fort); box-shadow: none; }

.vx-bouton--grand { min-height: 3.25rem; padding: 0.875rem 1.75rem; font-size: var(--vx-t-base); }

.vx-carte {
    display: grid;
    gap: var(--vx-e-3);
    align-content: start;
    padding: var(--vx-e-5);
    background-color: var(--vx-surface);
    color: var(--vx-texte);
    border: 1px solid var(--vx-bordure);
    border-radius: var(--vx-rayon);
    box-shadow: var(--vx-ombre-sm);
}
.vx-carte--relief { box-shadow: var(--vx-ombre); border-color: transparent; }
a.vx-carte,
.vx-carte--lien {
    text-decoration: none;
    transition: transform var(--vx-duree) var(--vx-courbe), box-shadow var(--vx-duree) var(--vx-courbe);
}
a.vx-carte:hover,
.vx-carte--lien:hover { transform: translateY(-3px); box-shadow: var(--vx-ombre-lg); color: var(--vx-texte); }
.vx-carte__titre { font-family: var(--vx-police-titre); font-size: var(--vx-t-xl); font-weight: 700; margin: 0; }
.vx-carte__texte { margin: 0; color: var(--vx-texte-discret); }

.vx-pastille {
    display: inline-flex;
    align-items: center;
    gap: var(--vx-e-1);
    padding: 0.2rem 0.7rem;
    border-radius: var(--vx-rayon-pilule);
    background-color: var(--vx-accent-doux);
    color: var(--vx-accent-fort);
    font-size: var(--vx-t-xs);
    font-weight: 600;
    line-height: 1.5;
}
.vx-pastille--neutre { background-color: var(--vx-fond-doux); color: var(--vx-texte-discret); border: 1px solid var(--vx-bordure); }

/* ==========================================================================
   6. EN-TÊTE ET LIEN D'ÉVITEMENT
   ========================================================================== */
.vx-evitement {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    border-radius: var(--vx-rayon-sm);
    background-color: #ffffff;
    color: #095c6b;
    font-weight: 700;
    text-decoration: underline;
    box-shadow: var(--vx-ombre-lg);
    transform: translateY(-200%);
}
.vx-evitement:focus,
.vx-evitement:focus-visible {
    transform: translateY(0);
    color: #095c6b;
}

.vx-entete {
    position: relative;
    z-index: 1030;
    background-color: #0b7285;
    color: #ffffff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}
.vx-entete .navbar {
    --bs-navbar-padding-y: 0.625rem;
    --bs-navbar-color: rgba(255, 255, 255, 0.92);
    --bs-navbar-hover-color: #ffffff;
    --bs-navbar-active-color: #ffffff;
    --bs-navbar-brand-color: #ffffff;
    --bs-navbar-brand-hover-color: #ffffff;
    --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.55);
}
.vx-entete .navbar-brand {
    font-family: var(--vx-police-titre);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.vx-entete .navbar-brand:hover { transform: none; }
.vx-entete .nav-link {
    font-family: var(--vx-police-texte);
    font-weight: 600;
    font-size: var(--vx-t-sm);
    border-radius: var(--vx-rayon-sm);
}
/* Vrais boutons de menu : même allure que les liens voisins */
.vx-entete button.nav-link {
    background: none;
    border: 0;
    text-align: left;
    width: 100%;
}
.vx-entete .nav-link[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.4em;
}
.vx-entete .navbar-toggler {
    min-width: 2.75rem;
    min-height: 2.75rem;
    color: #ffffff;
}
.vx-entete .dropdown-menu {
    --bs-dropdown-link-active-bg: #0b7285;
    --bs-dropdown-link-hover-bg: #e3f3f6;
    border: 1px solid var(--vx-bordure);
    border-radius: var(--vx-rayon);
    box-shadow: var(--vx-ombre);
    font-size: var(--vx-t-sm);
}
.vx-entete .dropdown-item { padding-block: 0.5rem; }
.vx-entete .vx-entete__essai {
    background-color: #ffffff;
    color: #095c6b;
    min-height: 2.5rem;
    padding: 0.5rem 1.125rem;
}
.vx-entete .vx-entete__essai:hover { background-color: #e3f3f6; color: #084c59; }

@media (min-width: 992px) {
    .vx-entete button.nav-link { width: auto; }
    .vx-entete .nav-link { padding-inline: 0.75rem; }
    .vx-entete .vx-entete__essai { margin-left: var(--vx-e-2); }
}
@media (max-width: 991.98px) {
    .vx-entete .navbar-collapse { padding-block: var(--vx-e-3); }
    .vx-entete .nav-link { padding: 0.75rem 0.5rem; } /* cibles de 44 px */
    .vx-entete .vx-entete__essai { margin-top: var(--vx-e-2); width: 100%; }
    .vx-entete .dropdown-menu { margin-bottom: var(--vx-e-2); }
}

/* ==========================================================================
   7. PIED DE PAGE
   ========================================================================== */
.vx-pied {
    /* « background » entier : remplace le dégradé que style.css pose sur tout <footer> */
    background: var(--vx-fond);
    margin-top: var(--vx-e-7);
    padding-block: var(--vx-e-8) var(--vx-e-5);
    font-size: var(--vx-t-sm);
}
.vx-pied__grille {
    display: grid;
    gap: var(--vx-e-6) var(--vx-e-5);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vx-pied__marque { grid-column: 1 / -1; display: grid; gap: var(--vx-e-3); justify-items: start; }
.vx-pied__nom {
    font-family: var(--vx-police-titre);
    font-size: var(--vx-t-xl);
    font-weight: 800;
    margin: 0;
}
.vx-pied__texte { margin: 0; color: var(--vx-texte-discret); max-width: 24rem; }
.vx-pied__titre {
    font-family: var(--vx-police-titre);
    font-size: var(--vx-t-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vx-accent);
    margin: 0 0 var(--vx-e-3);
}
.vx-pied__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--vx-e-1); }
.vx-pied a {
    color: var(--vx-texte);
    text-decoration: none;
}
.vx-pied__liste a { display: inline-block; padding-block: 0.3rem; }
.vx-pied a:hover { color: var(--vx-accent-fort); text-decoration: underline; }
.vx-pied__badge { display: inline-block; line-height: 0; border-radius: 0.5rem; }
.vx-pied__badge img { display: block; height: 2.75rem; width: auto; }
.vx-pied__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid var(--vx-bordure);
}
.vx-pied__bas {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--vx-e-2) var(--vx-e-5);
    margin-top: var(--vx-e-7);
    padding-top: var(--vx-e-5);
    border-top: 1px solid var(--vx-bordure);
    color: var(--vx-texte-discret);
}
.vx-pied__bas p { margin: 0; }

@media (min-width: 768px) {
    .vx-pied__grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    /* La marque, puis une colonne par bloc de liens (4, ou 5 avec « Les apps ») */
    .vx-pied__grille {
        grid-template-columns: minmax(0, 1.6fr);
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
    }
    .vx-pied__marque { grid-column: auto; }
}

/* ==========================================================================
   8. LECTEUR VIDÉO COMMUN (public/js/vitrine/lecteur.js)
   ========================================================================== */
.vx-lecteur { margin: 0; display: grid; gap: var(--vx-e-3); }
.vx-lecteur__cadre {
    position: relative;
    overflow: hidden;
    border-radius: var(--vx-rayon-lg);
    background-color: #06222a;
    box-shadow: var(--vx-ombre-lg);
}
.vx-lecteur__media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.vx-lecteur--vertical .vx-lecteur__media { aspect-ratio: 9 / 16; }
.vx-lecteur__commandes {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: flex;
    gap: var(--vx-e-2);
}
.vx-lecteur__commande {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.94);
    color: #06222a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
/* « Regarder avec le son » : posé sur la vidéo, en bas à gauche */
.vx-lecteur__son,
[data-vx-son] {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: var(--vx-e-2);
    min-height: 2.75rem;
    max-width: calc(100% - 8rem);
    padding: 0.5rem 1.125rem;
    border: 0;
    border-radius: var(--vx-rayon-pilule);
    background-color: #ffffff;
    color: #06222a;
    font-family: var(--vx-police-titre, inherit);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}
[data-vx-son][hidden] { display: none; }
[data-vx-son]:hover { background-color: #e3f3f6; }
.vx-lecteur__legende { font-size: var(--vx-t-sm); color: var(--vx-texte-discret); }
.vx-lecteur__transcription,
[data-vx-transcription] {
    border: 1px solid var(--vx-bordure);
    border-radius: var(--vx-rayon);
    background-color: var(--vx-surface);
    color: var(--vx-texte);
    font-size: var(--vx-t-sm);
    text-align: left;
}
[data-vx-transcription] > summary {
    padding: 0.75rem 1rem;
    font-weight: 600;
    cursor: pointer;
}
[data-vx-transcription] > :not(summary) { padding: 0 1rem; }
[data-vx-transcription] p { margin: 0 0 0.75rem; }

/* ==========================================================================
   9. PAGES
   ========================================================================== */

/* ---- Textes et listes --------------------------------------------------- */
body.vitrine-2027 .vx-section h2,
body.vitrine-2027 .vx-section h3,
body.vitrine-2027 .vx-heros h1 { margin: 0; }
body.vitrine-2027 .vx-section p { margin: 0; }
.vx-texte-lg { font-size: var(--vx-t-lg); }
.vx-centre { text-align: center; }
.vx-liste-coche {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--vx-e-3);
}
.vx-liste-coche li {
    position: relative;
    padding-left: 1.9rem;
}
.vx-liste-coche li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background-color: var(--vx-accent-doux);
    box-shadow: inset 0 0 0 0.3rem var(--vx-accent);
}
.vx-liste-coche li.vx-liste-coche__option::before {
    background-color: #fff4dc;
    box-shadow: inset 0 0 0 0.3rem #9a5b00;
}
@media (min-width: 768px) {
    .vx-liste-coche--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--vx-e-6); }
}
.vx-badge-option {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.6rem;
    border-radius: var(--vx-rayon-pilule);
    background-color: #fff4dc;
    color: #6b3f00;
    border: 1px solid #e9c987;
    font-size: var(--vx-t-xs);
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}
.vx-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    flex: none;
    border-radius: var(--vx-rayon);
    background-color: var(--vx-accent-doux);
    color: var(--vx-accent-fort);
    font-size: 1.35rem;
}
.vx-icone--pleine { background-color: var(--vx-accent); color: var(--vx-sur-accent); }
.vx-icone--ronde { border-radius: 50%; }
.vx-lien-fleche {
    font-weight: 700;
    text-decoration: none;
    color: var(--vx-accent);
}
.vx-lien-fleche::after { content: " \2192"; }
.vx-lien-fleche:hover { color: var(--vx-accent-fort); text-decoration: underline; }
body.vitrine-2027 .vx-section a:not(.vx-bouton):not(.vx-carte):not(.btn) { color: var(--vx-accent); }
body.vitrine-2027 .vx-section.vx-section--accent a:not(.vx-bouton):not(.vx-carte):not(.btn),
body.vitrine-2027 .vx-heros a:not(.vx-bouton):not(.vx-carte):not(.btn) { color: #ffffff; text-decoration: underline; }
.vx-section [id],
body.vitrine-2027 main [id] { scroll-margin-top: 1.5rem; }

/* ---- Héros --------------------------------------------------------------- */
body.vitrine-2027 .vx-heros {
    position: relative;
    padding-block: clamp(2.5rem, 1.8rem + 3vw, 5rem);
    background: linear-gradient(135deg, #0b7285 0%, #084c59 62%, #06343d 100%);
    color: #ffffff;
    overflow: hidden;
}

/* Le motif à points de l'ancienne feuille (style.css, .hero-section::before)
   est posé au-dessus du héros (position absolue, z-index 1) : il recevait
   tous les clics, et « Recevoir ma démo personnelle » ou « Essai gratuit »
   ne faisaient rien (signalé par Frédéric le 18/11). Il reste visible mais
   laisse passer les clics. */
body.vitrine-2027 .vx-heros::before {
    pointer-events: none;
}
.vx-heros__grille {
    display: grid;
    gap: var(--vx-e-6);
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
}
.vx-heros__texte { display: grid; gap: var(--vx-e-4); justify-items: start; min-width: 0; }
.vx-heros__media { min-width: 0; }
body.vitrine-2027 .vx-heros h1 {
    font-size: var(--vx-t-4xl);
    font-weight: 800;
    color: #ffffff;
    text-wrap: balance;
}
.vx-heros--page h1 { font-size: var(--vx-t-3xl); }
.vx-heros__accent { color: #9be7f2; }
.vx-heros__surtitre {
    display: inline-flex;
    align-items: center;
    gap: var(--vx-e-2);
    padding: 0.3rem 0.85rem;
    border-radius: var(--vx-rayon-pilule);
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-family: var(--vx-police-titre);
    font-size: var(--vx-t-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
body.vitrine-2027 .vx-heros .vx-heros__chapeau {
    margin: 0;
    font-size: var(--vx-t-lg);
    color: #e3f3f6;
    max-width: 40rem;
}
.vx-heros__puces {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--vx-e-2) var(--vx-e-5);
    font-size: var(--vx-t-sm);
    color: #e3f3f6;
}
.vx-heros__puces li::before { content: "\2713\00a0"; font-weight: 700; color: #9be7f2; }
.vx-heros--centre .vx-heros__texte { justify-items: center; text-align: center; margin-inline: auto; max-width: 52rem; }
.vx-heros--centre .vx-ligne { justify-content: center; }
.vx-heros .vx-lecteur__legende,
.vx-section--accent .vx-lecteur__legende { color: #e3f3f6; }
.vx-bouton--contour-clair {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
}
.vx-bouton--contour-clair:hover { background-color: rgba(255, 255, 255, 0.14); color: #ffffff; border-color: #ffffff; }
body.vitrine-2027 .vx-heros a.vx-bouton--clair,
body.vitrine-2027 .vx-section--accent a.vx-bouton--clair { color: #095c6b; }
/* Bouton clair qui garde ses classes Bootstrap (page Tarifs, lue par les tests) */
body.vitrine-2027 .btn.vx-bouton--clair { background: #ffffff; border-color: #ffffff; color: #095c6b; box-shadow: none; }
body.vitrine-2027 .btn.vx-bouton--clair:hover { background: #e3f3f6; border-color: #e3f3f6; color: #084c59; }
.vx-logo-grand { max-width: 100%; height: auto; }
/* Héros de l'accueil : boutons de pause et de plein écran posés sur la vidéo */
body.vitrine-2027 .hero-video__cadre { border-radius: var(--vx-rayon-lg); overflow: hidden; box-shadow: var(--vx-ombre-lg); background-color: #06222a; }
body.vitrine-2027 .hero-video__media { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 992px) {
    .vx-heros__grille--media { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--vx-e-7); }
}

/* ---- Sélecteur exploitant / locataire ------------------------------------ */
.vx-selecteur {
    display: grid;
    gap: var(--vx-e-4);
    grid-template-columns: minmax(0, 1fr);
    margin-top: calc(-1 * var(--vx-e-6));
    position: relative;
    z-index: 2;
}
.vx-selecteur__choix {
    display: flex;
    align-items: center;
    gap: var(--vx-e-4);
    padding: var(--vx-e-4) var(--vx-e-5);
    border-radius: var(--vx-rayon);
    background-color: var(--vx-surface);
    border: 1px solid var(--vx-bordure);
    box-shadow: var(--vx-ombre);
    color: var(--vx-texte);
    text-decoration: none;
    transition: transform var(--vx-duree) var(--vx-courbe), box-shadow var(--vx-duree) var(--vx-courbe);
}
.vx-selecteur__choix:hover { transform: translateY(-2px); box-shadow: var(--vx-ombre-lg); color: var(--vx-texte); }
.vx-selecteur__titre { display: block; font-family: var(--vx-police-titre); font-weight: 800; font-size: var(--vx-t-lg); }
.vx-selecteur__texte { display: block; color: var(--vx-texte-discret); font-size: var(--vx-t-sm); }
@media (min-width: 700px) {
    .vx-selecteur { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Parcours en étapes -------------------------------------------------- */
.vx-parcours {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--vx-e-4);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    counter-reset: vx-etape;
}
.vx-parcours__etape {
    display: grid;
    gap: var(--vx-e-2);
    align-content: start;
    padding: var(--vx-e-4);
    border-radius: var(--vx-rayon);
    background-color: var(--vx-surface);
    border: 1px solid var(--vx-bordure);
    min-width: 0;
}
.vx-parcours__visuel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    border-radius: var(--vx-rayon-sm);
    background: linear-gradient(145deg, #e3f3f6 0%, #c9e8ee 100%);
    color: #095c6b;
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
    overflow: hidden;
}
.vx-parcours__etape:nth-child(even) .vx-parcours__visuel { background: linear-gradient(145deg, #0b7285 0%, #084c59 100%); color: #ffffff; }
.vx-parcours__numero {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding-inline: 0.4rem;
    border-radius: var(--vx-rayon-pilule);
    background-color: #ffffff;
    color: #095c6b;
    font-family: var(--vx-police-titre);
    font-size: var(--vx-t-xs);
    font-weight: 800;
}
body.vitrine-2027 .vx-parcours__titre { margin: 0; font-size: var(--vx-t-lg); font-weight: 800; }
body.vitrine-2027 .vx-parcours__texte { margin: 0; font-size: var(--vx-t-sm); color: var(--vx-texte-discret); }
@media (min-width: 700px) {
    .vx-parcours { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--vx-e-5); }
}
@media (min-width: 1100px) {
    .vx-parcours { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--vx-e-4); }
}

/* ---- Piliers et cartes d'app --------------------------------------------- */
.vx-pilier { height: 100%; }
body.vitrine-2027 .vx-pilier h3 { font-size: var(--vx-t-xl); font-weight: 800; }
.vx-app-carte { height: 100%; grid-template-rows: auto auto 1fr auto; }
.vx-app-carte__etat { justify-self: start; }
.vx-pastille--bientot { background-color: #fff4dc; color: #6b3f00; }
.vx-badge-store { display: inline-block; line-height: 0; border-radius: 0.5rem; }
.vx-badge-store img { display: block; height: 2.75rem; width: auto; }

/* ---- Cadre d'appareil (captures des apps), dessiné en CSS ---------------- */
.vx-appareils {
    display: flex;
    gap: var(--vx-e-4);
    margin: 0;
    padding: var(--vx-e-2) 0 var(--vx-e-4);
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.vx-appareils > li { flex: 0 0 auto; scroll-snap-align: start; width: min(62vw, 13.5rem); }
.vx-appareil { margin: 0; display: grid; gap: var(--vx-e-2); }
.vx-appareil__cadre {
    position: relative;
    padding: 0.5rem;
    border-radius: 1.9rem;
    background-color: #10232a;
    box-shadow: var(--vx-ombre-lg), inset 0 0 0 2px #2a474f;
}
.vx-appareil__cadre::before {
    content: "";
    position: absolute;
    top: 0.85rem;
    left: 50%;
    width: 28%;
    height: 0.9rem;
    transform: translateX(-50%);
    border-radius: var(--vx-rayon-pilule);
    background-color: #10232a;
    z-index: 1;
}
.vx-appareil__ecran {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 6 / 13;
    object-fit: cover;
    object-position: top;
    border-radius: 1.45rem;
    background-color: #f1f4f6;
}
.vx-appareil__legende { font-size: var(--vx-t-sm); color: var(--vx-texte-discret); text-align: center; }
@media (min-width: 992px) {
    .vx-appareils { overflow: visible; flex-wrap: wrap; }
    .vx-appareils > li { width: calc((100% - 3 * var(--vx-e-4)) / 4); max-width: 13.5rem; }
}

/* ---- Bloc d'une app (page /home/apps) ------------------------------------ */
.vx-app { display: grid; gap: var(--vx-e-6); }
.vx-app__tete { display: grid; gap: var(--vx-e-5); grid-template-columns: minmax(0, 1fr); align-items: center; }
.vx-app__texte { display: grid; gap: var(--vx-e-4); justify-items: start; min-width: 0; }
.vx-app__note {
    padding: var(--vx-e-3) var(--vx-e-4);
    border-left: 4px solid var(--vx-accent);
    border-radius: var(--vx-rayon-sm);
    background-color: var(--vx-accent-doux);
    color: var(--vx-texte);
    font-size: var(--vx-t-sm);
}
@media (min-width: 992px) {
    .vx-app__tete { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--vx-e-7); }
    .vx-app--inverse .vx-app__texte { order: 2; }
}
.vx-logo-partenaire { height: 2.25rem; width: auto; justify-self: start; }
.vx-icone-app { border-radius: 0.9rem; flex: none; }
.vx-sommaire {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vx-e-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.vx-sommaire--centre { justify-content: center; }

/* ---- Bloc de repli d'une vidéo absente ----------------------------------- */
.vx-repli__cadre { background: linear-gradient(135deg, #0b7285 0%, #06343d 100%); }
.vx-repli__visuel {
    display: grid;
    gap: var(--vx-e-3);
    place-content: center;
    justify-items: center;
    aspect-ratio: 16 / 9;
    padding: var(--vx-e-5);
    color: #ffffff;
    text-align: center;
    background-image: radial-gradient(circle at 20% 15%, rgba(155, 231, 242, 0.28), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(155, 231, 242, 0.18), transparent 40%);
}
.vx-repli__visuel i { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); color: #9be7f2; }
body.vitrine-2027 .vx-repli__titre {
    margin: 0;
    font-family: var(--vx-police-titre);
    font-size: var(--vx-t-xl);
    font-weight: 800;
    color: #ffffff;
    text-wrap: balance;
}

/* ---- Comparatif avant / après (photos nettoyées par l'IA) ---------------- */
.vx-comparatif { display: grid; gap: var(--vx-e-3); margin: 0; --vx-coupe: 50%; }
.vx-comparatif__cadre {
    position: relative;
    overflow: hidden;
    border-radius: var(--vx-rayon-lg);
    background-color: #06222a;
    box-shadow: var(--vx-ombre-lg);
    aspect-ratio: 4 / 5;
    max-height: 34rem;
    width: 100%;
}
.vx-comparatif__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vx-comparatif__image--avant { clip-path: inset(0 calc(100% - var(--vx-coupe)) 0 0); }
.vx-comparatif__trait {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--vx-coupe);
    width: 3px;
    margin-left: -1.5px;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(6, 34, 42, 0.4);
    pointer-events: none;
}
.vx-comparatif__etiquette {
    position: absolute;
    top: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: var(--vx-rayon-pilule);
    background-color: rgba(6, 34, 42, 0.82);
    color: #ffffff;
    font-size: var(--vx-t-xs);
    font-weight: 700;
    pointer-events: none;
}
.vx-comparatif__etiquette--avant { left: 0.75rem; }
.vx-comparatif__etiquette--apres { right: 0.75rem; }
.vx-comparatif__curseur {
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    accent-color: var(--vx-accent);
    cursor: ew-resize;
}
.vx-comparatif__aide { font-size: var(--vx-t-sm); color: var(--vx-texte-discret); }
.vx-comparatif__choix { display: flex; flex-wrap: wrap; gap: var(--vx-e-2); }
.vx-comparatif__choix .vx-bouton[aria-pressed="true"] { background-color: var(--vx-accent); color: var(--vx-sur-accent); }

/* ---- Chapitres (page « Le produit en démo ») ----------------------------- */
.vx-chapitre {
    display: grid;
    gap: var(--vx-e-5);
    grid-template-columns: minmax(0, 1fr);
    padding-block: var(--vx-e-7);
    border-top: 1px solid var(--vx-bordure);
}
.vx-chapitre:first-of-type { border-top: 0; padding-top: 0; }
.vx-chapitre__tete { display: grid; gap: var(--vx-e-3); align-content: start; justify-items: start; }
body.vitrine-2027 .vx-chapitre__tete h2 { font-size: var(--vx-t-2xl); font-weight: 800; }
.vx-chapitre__numero {
    font-family: var(--vx-police-titre);
    font-size: var(--vx-t-xs);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vx-accent);
}
@media (min-width: 992px) {
    .vx-chapitre { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--vx-e-7); }
    .vx-chapitre__tete { position: sticky; top: 1.5rem; }
}

/* ---- Tableaux ------------------------------------------------------------ */
.vx-tableau-defile { overflow-x: auto; max-width: 100%; border: 1px solid var(--vx-bordure); border-radius: var(--vx-rayon); }
.vx-tableau {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--vx-surface);
    font-size: var(--vx-t-sm);
}
.vx-tableau caption { caption-side: top; padding: var(--vx-e-3) var(--vx-e-4); text-align: left; color: var(--vx-texte-discret); }
.vx-tableau th,
.vx-tableau td { padding: var(--vx-e-3) var(--vx-e-4); text-align: left; vertical-align: top; border-top: 1px solid var(--vx-bordure); }
.vx-tableau thead th {
    border-top: 0;
    background-color: var(--vx-fond-doux);
    font-family: var(--vx-police-titre);
    font-weight: 800;
    color: var(--vx-texte);
}
.vx-tableau tbody th { font-weight: 600; }
.vx-tableau__oui { color: var(--vx-succes); font-weight: 700; white-space: nowrap; }
.vx-tableau__option { color: #6b3f00; font-weight: 700; white-space: nowrap; }

/* ---- Frise numérotée (études de marché, installation) -------------------- */
.vx-frise { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--vx-e-4); grid-template-columns: minmax(0, 1fr); }
.vx-frise__etape {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--vx-e-2) var(--vx-e-4);
    padding: var(--vx-e-5);
    border-radius: var(--vx-rayon);
    background-color: var(--vx-surface);
    border: 1px solid var(--vx-bordure);
}
.vx-frise__numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--vx-accent);
    color: var(--vx-sur-accent);
    font-family: var(--vx-police-titre);
    font-weight: 800;
}
.vx-frise__corps { display: grid; gap: var(--vx-e-3); min-width: 0; }
body.vitrine-2027 .vx-frise__corps h3 { font-size: var(--vx-t-lg); font-weight: 800; }
@media (min-width: 768px) {
    .vx-frise--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vx-frise--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Journal d'accès illustré (page « Entrer sans attendre ») ------------ */
.vx-journal { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--vx-e-2); }
.vx-journal li {
    display: flex;
    align-items: center;
    gap: var(--vx-e-3);
    padding: var(--vx-e-3) var(--vx-e-4);
    border-radius: var(--vx-rayon-sm);
    background-color: var(--vx-surface);
    border: 1px solid var(--vx-bordure);
    font-size: var(--vx-t-sm);
}
.vx-journal__point { width: 0.85rem; height: 0.85rem; flex: none; border-radius: 50%; background-color: var(--vx-succes); }
.vx-journal__point--refus { background-color: var(--vx-erreur); }
.vx-journal__etat { margin-left: auto; font-weight: 700; color: var(--vx-succes); white-space: nowrap; }
.vx-journal__etat--refus { color: var(--vx-erreur); }
.vx-wallets { display: flex; flex-wrap: wrap; align-items: center; gap: var(--vx-e-3); }
.vx-wallets img { height: 2.75rem; width: auto; display: block; }

/* ---- FAQ de l'accueil (balisage lu par le JSON-LD : id="faq") ------------- */
body.vitrine-2027 #faq {
    padding-block: var(--vx-section) !important;
    background-color: var(--vx-fond-doux);
}
body.vitrine-2027 #faq .container { max-width: calc(var(--vx-largeur) + 2 * var(--vx-gouttiere)); }
body.vitrine-2027 #faq h2 { font-size: var(--vx-t-3xl); font-weight: 800; }
body.vitrine-2027 #faq .vx-faq__item {
    height: 100%;
    padding: var(--vx-e-5);
    border-radius: var(--vx-rayon);
    background-color: var(--vx-surface);
    border: 1px solid var(--vx-bordure);
}
body.vitrine-2027 #faq h3 { font-size: var(--vx-t-lg); font-weight: 800; }
body.vitrine-2027 #faq p { color: var(--vx-texte-discret); }

/* ---- Appel à l'action de fin de page ------------------------------------- */
.vx-cta {
    display: grid;
    gap: var(--vx-e-5);
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
}
.vx-cta__texte { display: grid; gap: var(--vx-e-3); }
body.vitrine-2027 .vx-cta h2 { font-size: var(--vx-t-2xl); font-weight: 800; color: #ffffff; }
body.vitrine-2027 .vx-section--accent p { color: #e3f3f6; }
@media (min-width: 992px) {
    .vx-cta { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .vx-cta .vx-ligne { justify-content: flex-end; }
}

/* ---- Coordonnées (page Contact) ------------------------------------------ */
.vx-coordonnees { display: grid; gap: var(--vx-e-5); align-content: start; }
.vx-coordonnee { display: flex; gap: var(--vx-e-4); align-items: flex-start; }
body.vitrine-2027 .vx-coordonnee h2 { font-size: var(--vx-t-base); font-weight: 800; margin: 0 0 0.15rem; }
body.vitrine-2027 .vx-coordonnee p { margin: 0; color: var(--vx-texte-discret); }
.vx-formulaire { padding: clamp(1.25rem, 0.9rem + 1.5vw, 2rem); }
@media (min-width: 992px) {
    .vx-grille--contact { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
}

/* ---- Apparition au défilement (public/js/vitrine/pages.js) ---------------
   La classe d'attente n'est posée que par le script : sans JavaScript, ou
   si le visiteur réduit les animations, tout est visible d'emblée. */
.vx-apparait--attente { opacity: 0; transform: translateY(18px); }
.vx-apparait { transition: opacity 480ms var(--vx-courbe), transform 480ms var(--vx-courbe); }

/* ==========================================================================
   10. CENTRE D'AIDE ET PAGES LÉGALES — la charte, contenu inchangé
   ========================================================================== */
body.vitrine-2027 .legal-page {
    background: var(--vx-fond-doux);
    padding: var(--vx-e-6) 0;
}
body.vitrine-2027 .legal-card {
    border: 1px solid var(--vx-bordure);
    border-radius: var(--vx-rayon-lg);
    box-shadow: var(--vx-ombre);
    padding: clamp(1.25rem, 0.8rem + 2.2vw, 2.75rem);
    color: var(--vx-texte);
}
body.vitrine-2027 .legal-header { border-bottom-color: var(--vx-accent); }
body.vitrine-2027 .legal-header h1 { color: var(--vx-texte); font-size: var(--vx-t-3xl); font-weight: 800; }
body.vitrine-2027 .legal-header .date { color: var(--vx-texte-discret); }
body.vitrine-2027 .legal-section h2 { color: var(--vx-accent-fort); border-left-color: var(--vx-accent); }
body.vitrine-2027 .legal-section h3 { color: var(--vx-texte); }
body.vitrine-2027 .legal-section p,
body.vitrine-2027 .legal-section li { color: var(--vx-texte); }
body.vitrine-2027 .legal-page a:not(.btn) { color: var(--vx-accent); }
body.vitrine-2027 .legal-page .info-card,
body.vitrine-2027 .legal-page .cookie-card,
body.vitrine-2027 .legal-page .highlight-box { border-radius: var(--vx-rayon); }
body.vitrine-2027 .legal-page .info-card { border-left-color: var(--vx-accent); background-color: var(--vx-fond-doux); }
body.vitrine-2027 .legal-page .info-card .info-label { color: var(--vx-texte-discret); }
body.vitrine-2027 .legal-page .info-card .info-value { color: var(--vx-texte); }
body.vitrine-2027 .legal-page .back-btn { border-radius: var(--vx-rayon-pilule); }
body.vitrine-2027 .legal-page table { max-width: 100%; }
body.vitrine-2027 .legal-page .data-table th,
body.vitrine-2027 .legal-page .cookie-table th { background-color: var(--vx-fond-doux); color: var(--vx-texte); }
body.vitrine-2027 .legal-page,
body.vitrine-2027 .vx-aide { overflow-wrap: anywhere; }

/* Centre d'aide : bandeau, navigation, article */
body.vitrine-2027 .vx-aide .card { border-color: var(--vx-bordure); box-shadow: var(--vx-ombre-sm); }
body.vitrine-2027 .vx-aide .card-header { background-color: var(--vx-fond-doux); font-family: var(--vx-police-titre); font-weight: 700; }
body.vitrine-2027 .vx-aide .bg-primary { background: linear-gradient(135deg, #0b7285 0%, #084c59 100%) !important; }
body.vitrine-2027 .vx-aide .text-primary { color: #0b7285 !important; }
body.vitrine-2027 .vx-aide .list-group-item.active { background-color: #0b7285; border-color: #0b7285; }
body.vitrine-2027 .vx-aide .badge.bg-primary { background: #0b7285 !important; }
body.vitrine-2027 .vx-aide .docs-content h2,
body.vitrine-2027 .vx-aide .docs-content h3 { margin-top: 1.6em; font-weight: 800; }
body.vitrine-2027 .vx-aide .docs-content { font-size: 1.0625rem; max-width: 46rem; }
body.vitrine-2027 .vx-aide .docs-content table { display: block; overflow-x: auto; max-width: 100%; }
body.vitrine-2027 .vx-aide .docs-content pre { overflow-x: auto; max-width: 100%; }
body.vitrine-2027 .vx-aide .docs-content img { max-width: 100%; height: auto; }

/* ==========================================================================
   11. PAGES DE COMPTE — connexion, inscription, mot de passe, validation
       de l'email (app/views/auth/*.php)
   ========================================================================== */
body.vitrine-2027 .vx-compte { padding-block: clamp(2rem, 1.4rem + 2.6vw, 4.5rem); }
/* La section douce va jusqu'au pied de page : pas de bande blanche entre les deux */
body.vitrine-2027 main:has(> .vx-compte) + .vx-pied,
body.vitrine-2027 main:has(> .vx-etude--douce) + .vx-pied { margin-top: 0; }
.vx-compte__conteneur { max-width: calc(30rem + 2 * var(--vx-gouttiere)); }
.vx-compte__conteneur--large { max-width: calc(42rem + 2 * var(--vx-gouttiere)); }
.vx-compte__carte { gap: var(--vx-e-5); min-width: 0; overflow-wrap: anywhere; }
.vx-compte__tete { display: grid; gap: var(--vx-e-3); justify-items: center; text-align: center; }
body.vitrine-2027 .vx-compte__tete h1 { margin: 0; text-wrap: balance; }
.vx-compte__consigne { text-align: center; }
.vx-compte__resultat { font-size: var(--vx-t-lg); color: var(--vx-texte-discret); }
.vx-compte__adresse {
    max-width: 100%;
    padding: var(--vx-e-2) var(--vx-e-4);
    border-radius: var(--vx-rayon-sm);
    background-color: var(--vx-fond-doux);
    border: 1px solid var(--vx-bordure);
    font-weight: 700;
    color: var(--vx-texte);
}

/* Pastille d'état (validation de l'email, renvoi) */
.vx-compte__etat { width: 4rem; height: 4rem; font-size: 1.6rem; }
.vx-compte__etat--succes { background-color: #e3f4ea; color: var(--vx-succes); }
.vx-compte__etat--erreur { background-color: #fbe9e7; color: var(--vx-erreur); }
.vx-compte__etat--attention { background-color: #fff4dc; color: var(--vx-alerte); }
.vx-compte__etat--info { background-color: var(--vx-accent-doux); color: var(--vx-accent-fort); }

/* Champs : une colonne à 375 px, deux pour prénom / nom et les mots de passe */
.vx-compte__champs { display: grid; gap: var(--vx-e-4); }
.vx-compte__champ { display: grid; gap: var(--vx-e-1); align-content: start; min-width: 0; }
.vx-compte__duo { display: grid; gap: var(--vx-e-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
    .vx-compte__duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vx-compte__libelle {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--vx-e-1) var(--vx-e-3);
    font-size: var(--vx-t-sm);
}
body.vitrine-2027 .vx-compte .form-label { margin: 0; font-size: var(--vx-t-sm); font-weight: 600; color: var(--vx-texte); }
body.vitrine-2027 .vx-compte .form-control {
    min-height: 2.875rem; /* cible tactile, et 16 px : pas de zoom d'iOS à la saisie */
    font-size: 1rem;
    color: var(--vx-texte);
    border-color: #7d949a; /* 3:1 sur blanc : le contour du champ se voit */
    border-radius: var(--vx-rayon-sm);
}
body.vitrine-2027 .vx-compte .form-control::placeholder { color: #5f747a; }
body.vitrine-2027 .vx-compte .form-control:focus-visible { outline-offset: 1px; }
body.vitrine-2027 .vx-compte .form-text { margin: 0; font-size: var(--vx-t-xs); color: var(--vx-texte-discret); }
body.vitrine-2027 .vx-compte .invalid-feedback { margin: 0; font-size: var(--vx-t-xs); font-weight: 600; color: var(--vx-erreur); }
body.vitrine-2027 .vx-compte .form-control.is-invalid ~ .invalid-feedback:empty { display: none; }
.vx-compte__requis { color: var(--vx-erreur); font-weight: 700; }
body.vitrine-2027 .vx-compte__case { margin: 0; padding-left: 2rem; min-height: 0; }
body.vitrine-2027 .vx-compte__case .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    margin-left: -2rem;
    border-color: #7d949a;
}
body.vitrine-2027 .vx-compte__case .form-check-input:checked { background-color: var(--vx-accent); border-color: var(--vx-accent); }
.vx-compte__envoi { width: 100%; }
body.vitrine-2027 .vx-compte .as-notice { margin-top: 0 !important; font-size: var(--vx-t-xs); color: var(--vx-texte-discret) !important; }

/* Messages (Bootstrap .alert, role="alert" ou "status") : pictogramme et texte */
body.vitrine-2027 .vx-compte__message {
    display: flex;
    align-items: flex-start;
    gap: var(--vx-e-3);
    margin: 0;
    border-radius: var(--vx-rayon);
    text-align: left;
}
body.vitrine-2027 .vx-compte__message > i { flex: none; margin-top: 0.3em; }
body.vitrine-2027 .vx-compte__message > * { min-width: 0; }
body.vitrine-2027 .vx-compte .vx-compte__message a { color: inherit; font-weight: 700; text-decoration: underline; }

/* Suite : autre page de compte, boutons de fin */
.vx-compte__suite {
    display: grid;
    gap: var(--vx-e-3);
    justify-items: center;
    padding-top: var(--vx-e-5);
    border-top: 1px solid var(--vx-bordure);
    text-align: center;
}
.vx-compte__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--vx-e-3); }
.vx-compte__actions--pile { display: grid; justify-items: stretch; }

/* Étapes numérotées (« Vérifiez votre boîte mail ») */
.vx-compte__etapes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--vx-e-3);
    counter-reset: vx-compte-etape;
}
.vx-compte__etapes li {
    display: flex;
    align-items: flex-start;
    gap: var(--vx-e-3);
    counter-increment: vx-compte-etape;
}
.vx-compte__etapes li::before {
    content: counter(vx-compte-etape);
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: var(--vx-accent);
    color: var(--vx-sur-accent);
    font-family: var(--vx-police-titre);
    font-size: var(--vx-t-xs);
    font-weight: 800;
}

/* ==========================================================================
   12. DEMANDE D'ÉTUDE (app/views/home/request_study.php) — la vue est
       partagée avec /storagelab, qui ne charge pas cette feuille : son
       balisage Bootstrap reste, la charte s'y pose par la classe vx-etude
   ========================================================================== */
body.vitrine-2027 .vx-etude {
    padding-block: var(--vx-section) !important;
    color: var(--vx-texte);
}
body.vitrine-2027 .vx-etude--douce { background-color: var(--vx-fond-doux) !important; }
body.vitrine-2027 .vx-etude h2 { font-size: var(--vx-t-2xl); font-weight: 800; }
body.vitrine-2027 .vx-etude h3 { font-weight: 800; }
body.vitrine-2027 .vx-etude .text-muted,
body.vitrine-2027 .vx-etude-fenetre .text-muted { color: var(--vx-texte-discret) !important; }
body.vitrine-2027 .vx-etude .text-primary,
body.vitrine-2027 .vx-etude-fenetre .text-primary { color: var(--vx-accent) !important; }
body.vitrine-2027 .vx-etude .text-success { color: var(--vx-succes) !important; }
body.vitrine-2027 .vx-etude .text-warning { color: var(--vx-alerte) !important; }
body.vitrine-2027 .vx-etude a:not(.btn) { color: var(--vx-accent); }
body.vitrine-2027 .vx-etude .card {
    border: 1px solid var(--vx-bordure) !important;
    box-shadow: var(--vx-ombre-sm) !important;
}
body.vitrine-2027 .vx-etude .bg-light-subtle {
    background-color: var(--vx-fond-doux) !important;
    border-color: var(--vx-bordure) !important;
    border-radius: var(--vx-rayon) !important;
}
body.vitrine-2027 .vx-etude .badge { font-family: var(--vx-police-titre); }
body.vitrine-2027 .vx-etude .table-responsive {
    border: 1px solid var(--vx-bordure);
    border-radius: var(--vx-rayon) !important;
    box-shadow: var(--vx-ombre-sm) !important;
}
body.vitrine-2027 .vx-etude .table { color: var(--vx-texte); }
body.vitrine-2027 .vx-etude .table thead th {
    background-color: var(--vx-fond-doux);
    font-family: var(--vx-police-titre);
    border-bottom-color: var(--vx-bordure);
}
body.vitrine-2027 .vx-etude .table td { border-color: var(--vx-bordure); }
body.vitrine-2027 .vx-etude .btn { min-height: 2.75rem; font-family: var(--vx-police-titre); font-weight: 700; }
body.vitrine-2027 .vx-etude .btn-lg { display: inline-flex; align-items: center; justify-content: center; }

/* Fenêtres « Votre commande » et « Informations de facturation » */
body.vitrine-2027 .vx-etude-fenetre .modal-content { border: 0; border-radius: var(--vx-rayon-lg); box-shadow: var(--vx-ombre-lg); }
body.vitrine-2027 .vx-etude-fenetre .modal-title { font-family: var(--vx-police-titre); }
body.vitrine-2027 .vx-etude-fenetre .bg-light { background-color: var(--vx-fond-doux) !important; }
body.vitrine-2027 .vx-etude-fenetre .btn { min-height: 2.75rem; font-weight: 700; }
body.vitrine-2027 .vx-etude-fenetre .btn-success {
    --bs-btn-bg: #0b7285;
    --bs-btn-border-color: #0b7285;
    --bs-btn-hover-bg: #095c6b;
    --bs-btn-hover-border-color: #095c6b;
    --bs-btn-active-bg: #084c59;
    --bs-btn-active-border-color: #084c59;
    --bs-btn-disabled-bg: #0b7285;
    --bs-btn-disabled-border-color: #0b7285;
}
body.vitrine-2027 .vx-etude-fenetre .btn-check:checked + .btn-outline-primary { background-color: #0b7285; border-color: #0b7285; color: #ffffff; }
body.vitrine-2027 .vx-etude-fenetre .form-control,
body.vitrine-2027 .vx-etude-fenetre .form-select { min-height: 2.75rem; font-size: 1rem; }

/* ==========================================================================
   13. MOUVEMENT RÉDUIT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    body.vitrine-2027 *,
    body.vitrine-2027 *::before,
    body.vitrine-2027 *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    body.vitrine-2027 .card:hover,
    body.vitrine-2027 .btn:hover,
    .vx-bouton:hover,
    a.vx-carte:hover,
    .vx-carte--lien:hover,
    .vx-selecteur__choix:hover {
        transform: none;
    }
    .vx-apparait--attente { opacity: 1; transform: none; }
}
