/* ==========================================================================
   EULATECH — l'espace client, dans la charte du renard

   La même nuit que la vitrine, le même renard, la même crème : un client qui
   passe de l'accueil à son tableau de bord ne doit pas sentir qu'il change de
   site. La feuille reprend la structure de l'ancienne interface (Bootstrap 5.3
   en mode sombre, des jetons de couleur, des composants posés dessus) avec la
   palette et les polices d'Eulatech :

   1. Le fond est la nuit (#170001) ; les objets s'en détachent par une surface
      un cran plus claire et un filet crème très discret.
   2. Le renard (#f98933, et son dégradé) désigne le geste à faire et l'endroit
      où l'on se trouve. Les pastels disent un état, en teinte translucide.
   3. Sur un aplat de couleur (bouton, étiquette, carte d'accroche), le texte
      est à la nuit (`--on-flat`) ; partout ailleurs, il est crème (`--ink`).
   ========================================================================== */
:root {
    color-scheme: dark;

    /* --- Neutres : la nuit du renard ------------------------------------- */
    --paper: #170001;
    --surface: #1f0507;
    --deep: #0d0000;
    --ink: #f6e8d3;
    --ink-soft: #c9b29a;
    --ink-dim: #8f7a68;
    --cream: #fcf1de;
    /* Un cran au-dessus de la surface : survol, gouttière, champ en lecture. */
    --wash: #2b0c0e;
    --hair: rgba(252, 241, 222, .06);
    --line: rgba(252, 241, 222, .1);
    --line-strong: rgba(252, 241, 222, .2);

    /* Le texte posé sur un aplat de couleur. */
    --on-flat: #170001;

    /* --- Couleurs d'aplat ------------------------------------------------ */
    --orange: #f98933;
    --orange-hover: #ffa75c;
    --orange-deep: #d9622b;
    --orange-soft: rgba(249, 137, 51, .14);
    --mint: #7BE8B4;
    --mint-soft: rgba(123, 232, 180, .12);
    --lilac: #BFACFF;
    --lilac-soft: rgba(191, 172, 255, .12);
    --yellow: #FFD84D;
    --yellow-soft: rgba(255, 216, 77, .12);
    --coral: #FF7B72;
    --coral-soft: rgba(255, 123, 114, .13);

    /* Les mêmes couleurs, assez claires pour se lire en texte sur la nuit. */
    --orange-ink: #ffa75c;
    --red-ink: #ff9a92;
    --green-ink: #8ef0c2;

    --grad-fox: linear-gradient(135deg, #ffa75c 0%, #f98933 45%, #d9622b 100%);

    /* --- Filet, ombre, halo ---------------------------------------------- */
    --stroke: 1px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25), 0 4px 12px -2px rgba(0, 0, 0, .35);
    --shadow: 0 2px 4px -1px rgba(0, 0, 0, .3), 0 14px 30px -10px rgba(0, 0, 0, .55);
    --shadow-lg: 0 4px 8px -2px rgba(0, 0, 0, .3), 0 28px 60px -18px rgba(0, 0, 0, .7);
    --ring: 0 0 0 3px rgba(249, 137, 51, .3);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    /* --- Variables Bootstrap --------------------------------------------- */
    --bs-body-bg: var(--paper);
    --bs-body-bg-rgb: 23, 0, 1;
    --bs-body-color: var(--ink);
    --bs-body-color-rgb: 246, 232, 211;
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    --bs-font-monospace: var(--font-mono);
    --bs-border-color: var(--line);
    --bs-border-color-translucent: var(--line);
    --bs-border-width: 1px;
    --bs-border-radius: var(--radius-sm);
    --bs-link-color: var(--orange-ink);
    --bs-link-hover-color: #ffc58f;
    --bs-link-color-rgb: 255, 167, 92;
    --bs-link-hover-color-rgb: 255, 197, 143;
    --bs-primary: var(--orange);
    --bs-primary-rgb: 249, 137, 51;
    --bs-emphasis-color: var(--cream);
    --bs-emphasis-color-rgb: 252, 241, 222;
    --bs-secondary-color: var(--ink-soft);
    --bs-secondary-color-rgb: 201, 178, 154;
    --bs-secondary-bg: var(--wash);
    --bs-tertiary-bg: var(--surface);
    --bs-tertiary-bg-rgb: 31, 5, 7;
    --bs-heading-color: var(--cream);
    --bs-code-color: var(--orange-ink);
    --bs-highlight-bg: rgba(255, 216, 77, .25);
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--bs-body-font-family);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--ink);
}

.text-muted { color: var(--ink-soft) !important; }
.text-body-secondary { color: var(--ink-soft) !important; }
.text-success { color: var(--green-ink) !important; }
.text-danger  { color: var(--red-ink) !important; }

/* Sur-titre : petites capitales précédées d'un point orange. Le point est ce
   qui le rattache à la marque — sans lui, ce n'est qu'un label. */
.eyebrow {
    font-family: var(--font-display);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.eyebrow::before {
    content: "";
    width: .4rem;
    height: .4rem;
    background: var(--orange);
    border-radius: 50%;
    flex: none;
}

/* Accent orange sur fond clair : la seule teinte lisible en petit corps. */
.text-neon { color: var(--orange-ink); }

/* Surligneur. Le mot est passé au feutre jaune sur sa moitié basse, comme on
   marque un passage dans un texte. C'est la signature de la charte : on
   l'emploie une fois par écran, pas plus. */
.hl {
    padding: 0 .12em;
    background: linear-gradient(transparent 56%, var(--yellow) 56%, var(--yellow) 92%, transparent 92%);
    color: var(--on-flat);
    /* Un surlignage qui passe à la ligne garde ses marges sur chaque morceau. */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* --------------------------------------------------------------------------
   Navigation — une colonne à gauche, dépliable

   Six onglets en ligne tenaient déjà tout juste ; le septième aurait plié la
   barre sur deux lignes. Une colonne, elle, grandit vers le bas — la seule
   direction où la place ne manque pas — et laisse ranger plusieurs pages sous
   une entrée qu'on déplie.

   Le repère de lecture est l'alignement : tous les pictogrammes de premier
   niveau partagent la même verticale, tous les sous-liens la même autre. On
   lit une colonne de mots, pas une grille.

   Sous 992 px la colonne devient un tiroir (`offcanvas` de Bootstrap) : elle
   sort du flux, et tout ce qui la positionne ici est donc enfermé dans la
   requête média du bas de section. Y toucher hors de là casserait le tiroir.
   -------------------------------------------------------------------------- */
.app-shell {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
}

.app-content {
    /* `min-width: 0` : sans lui, un tableau large pousse la colonne de contenu
       au-delà de l'écran au lieu de défiler dans sa propre boîte. */
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding: 1.75rem 1.15rem 2.5rem;
}

@media (min-width: 992px) {
    .app-main { padding: 2.5rem 2.25rem 3rem; }
}

/* La marque, identique dans le tiroir, dans la colonne et dans la barre haute. */
.app-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: -.045em;
    color: var(--ink);
    text-decoration: none;
}

.app-brand:hover { color: var(--ink); }

/* La marque : un carré orange à angles ronds portant un P. Une lettre plutôt
   qu'un pictogramme — EULATECH n'a pas besoin d'un éclair de plus, et un
   monogramme se reconnaît en favicon. */
.brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: .55rem;
    background: var(--orange);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    flex: none;
}

.brand-mark-lg {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: .8rem;
    font-size: 1.6rem;
}

/* --- Barre haute -----------------------------------------------------------
   Deux usages, un seul balisage : le bouton du tiroir quand on est connecté
   (elle disparaît dès 992 px), les boutons d'entrée quand on ne l'est pas. */
.app-topbar {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem 1.15rem;
    /* Le papier, à peine translucide : la page qui défile dessous se devine
       sans brouiller les liens. */
    background: rgba(23, 0, 1, .82);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
    backdrop-filter: saturate(1.6) blur(12px);
    border-bottom: var(--stroke) solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-burger {
    background: var(--surface);
    border: var(--stroke) solid var(--line-strong);
    border-radius: .55rem;
    color: var(--ink);
    padding: .35rem .6rem;
    line-height: 1;
}

/* --- La colonne ----------------------------------------------------------- */
.app-sidebar {
    /* Largeur du tiroir mobile. 400 px par défaut chez Bootstrap : trop pour
       un menu de sept lignes, et ça masque la page qu'on quitte. */
    --bs-offcanvas-width: 288px;
    background: var(--paper);
}

.app-sidebar .offcanvas-header {
    border-bottom: var(--stroke) solid var(--line);
}

.app-sidebar-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* --- Entrées de premier niveau -------------------------------------------- */
.app-menu-list,
.app-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-menu-list > li + li { margin-top: .2rem; }

.app-menu-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .92rem;
    color: var(--ink-soft);
    text-decoration: none;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: .6rem;
    padding: .55rem .75rem;
    transition: color .15s ease, background-color .15s ease;
}

.app-menu-link:hover {
    color: var(--ink);
    background: var(--wash);
}

.app-menu-icon {
    width: 1.15rem;
    text-align: center;
    flex: none;
    font-size: .95rem;
}

.app-menu-label { flex: 1; }

/* La page où l'on se trouve : un fond orange pâle et un pictogramme orange.
   L'aplat plein, lui, est réservé aux boutons — une entrée de menu n'est pas
   un geste à faire. */
.app-menu-link.active {
    color: var(--ink);
    background: var(--orange-soft);
}

.app-menu-link.active .app-menu-icon { color: var(--orange-ink); }

/* Un groupe ouvert n'est pas « actif » — il ne mène nulle part — mais il ne
   doit pas non plus se lire comme éteint : son libellé passe en noir. */
.app-menu-toggle:not(.collapsed) { color: var(--ink); }

.app-menu-caret {
    font-size: .7rem;
    color: var(--ink-soft);
    transition: transform .2s ease;
}

.app-menu-toggle.collapsed .app-menu-caret { transform: rotate(-90deg); }

/* --- Sous-entrées ---------------------------------------------------------
   Le filet vertical passe sous les pictogrammes du niveau au-dessus : c'est
   lui qui dit « ces trois lignes appartiennent à celle du dessus », sans
   qu'on ait besoin d'un cadre ni d'un fond différent. */
.app-submenu {
    margin: .2rem 0 .35rem 1.32rem;
    padding-left: .75rem;
    border-left: var(--stroke) solid var(--line);
}

.app-submenu > li + li { margin-top: .1rem; }

.app-submenu-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border-radius: .55rem;
    padding: .42rem .65rem;
    transition: color .15s ease, background-color .15s ease;
}

.app-submenu-link:hover {
    color: var(--ink);
    background: var(--wash);
}

.app-submenu-link.active {
    color: var(--ink);
    background: var(--orange-soft);
}

.app-submenu-link.active .app-submenu-icon { color: var(--orange-ink); }

.app-submenu-icon {
    width: .95rem;
    text-align: center;
    flex: none;
    font-size: .8rem;
}

/* --- Pied de colonne ------------------------------------------------------
   Le compte, pas la navigation. Poussé en bas par `margin-top: auto` : sur un
   écran haut il reste collé au bas de la colonne plutôt que de flotter juste
   sous le dernier onglet. */
.app-sidebar-foot {
    margin-top: auto;
    padding-top: 1rem;
    border-top: var(--stroke) solid var(--line);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.app-credits {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    align-self: flex-start;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .76rem;
    color: var(--green-ink);
    text-decoration: none;
    background: var(--mint-soft);
    border-radius: 999px;
    padding: .25rem .65rem;
}

/* --- L'encart de parrainage -----------------------------------------------
   Une carte, pas un onglet de plus : elle porte deux lignes de texte là où le
   menu n'en porte qu'une, et c'est cette différence de forme qui la fait lire
   au lieu d'être balayée avec le reste de la colonne.

   L'orange pâle la distingue de la pastille des modifications, en menthe
   juste en dessous : les deux sont au même endroit et ne disent pas la même
   chose — l'une rassure, l'autre propose quelque chose. */
.app-promo {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--ink);
    text-decoration: none;
    background: var(--orange-soft);
    border-radius: .7rem;
    padding: .6rem .7rem;
    transition: transform .15s ease, box-shadow .15s ease;
}

/* Le même relèvement que les cartes du contenu : la colonne emploie le
   vocabulaire du reste de l'interface, elle n'en invente pas un second. */
.app-promo:hover {
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.app-promo-icon {
    flex: none;
    font-size: .9rem;
    color: var(--orange-ink);
}

/* `min-width: 0` sans quoi une ligne longue élargirait la colonne au lieu
   d'être coupée : un flex-item refuse de rétrécir sous la largeur de son
   contenu tant qu'on ne le lui dit pas. */
.app-promo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-promo-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .78rem;
    line-height: 1.2;
}

.app-promo-line {
    font-size: .7rem;
    color: var(--ink-soft);
    line-height: 1.25;
}

.app-account {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Le nom est coupé plutôt que replié : un prénom long — ou l'email qui le
   remplace tant qu'aucun prénom n'a été donné — doublerait la hauteur du pied,
   et son début suffit à reconnaître le compte connecté. */
.app-account-name {
    flex: 1;
    min-width: 0;
    font-size: .78rem;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-logout { flex: none; }

/* --- À partir de 992 px : la colonne cesse d'être un tiroir ---------------
   Bootstrap rend `.offcanvas-lg` transparent et sans défilement au-dessus de
   ce seuil — les `!important` ci-dessous répondent aux siens. */
@media (min-width: 992px) {
    .app-sidebar {
        width: 268px;
        flex: none;
        /* Collée en haut et haute d'un écran : le menu reste visible quand la
           page défile, sans que rien ne soit sorti du flux. */
        position: sticky;
        top: 0;
        height: 100vh;
        background: var(--paper) !important;
        border-right: var(--stroke) solid var(--line);
    }

    .app-sidebar .app-sidebar-body {
        flex-grow: 1;
        overflow-y: auto;
        padding: 1.25rem 1rem;
    }
}

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

   Un bouton est un aplat ou un contour, jamais les deux à la fois : plein et
   orange pour le geste principal, blanc et bordé pour les autres. Au survol
   sa couleur fonce d'un cran ; au clic il se tasse à peine. Le geste est le
   même partout, quelle que soit la couleur du bouton.
   -------------------------------------------------------------------------- */
.btn {
    --shadow-btn: var(--shadow-xs);
    --bs-btn-border-radius: var(--radius-sm);
    --bs-btn-border-width: 1px;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.01em;
    padding: .55rem 1.1rem;
    box-shadow: var(--shadow-btn);
    transition: transform .12s ease, box-shadow .15s ease, color .15s ease,
                background-color .15s ease, border-color .15s ease;
}

.btn:active:not(:disabled):not(.disabled) { transform: scale(.98); }

/* Bootstrap remplace l'ombre du bouton par son propre anneau flou au focus
   clavier. L'anneau de la charte, lui, arrive par `:focus-visible` plus bas. */
.btn:focus-visible { box-shadow: var(--shadow-btn); }

/* Un bouton désactivé perd sa couleur et son ombre : il est à plat sur la
   page, ce qui se voit avant même qu'on ait lu son libellé. La règle vaut pour
   toutes les variantes — d'où ces variables posées ici plutôt que dans
   chacune. */
.btn:disabled, .btn.disabled {
    --bs-btn-disabled-bg: var(--wash);
    --bs-btn-disabled-color: var(--ink-soft);
    --bs-btn-disabled-border-color: var(--line);
    box-shadow: none;
    opacity: 1;
}

.btn-primary {
    --shadow-btn: 0 10px 30px -10px rgba(249, 137, 51, .6);
    --bs-btn-bg: var(--orange);
    --bs-btn-color: var(--on-flat);
    --bs-btn-border-color: var(--orange);
    --bs-btn-hover-bg: var(--orange-hover);
    --bs-btn-hover-color: var(--on-flat);
    --bs-btn-hover-border-color: var(--orange-hover);
    --bs-btn-active-bg: var(--orange-hover);
    --bs-btn-active-color: var(--on-flat);
    --bs-btn-active-border-color: var(--orange-hover);
}

/* L'orange au second rang : un fond pâle, qui se remplit au survol. */
.btn-outline-primary {
    --shadow-btn: none;
    --bs-btn-color: var(--ink);
    --bs-btn-bg: var(--orange-soft);
    --bs-btn-border-color: var(--orange-soft);
    --bs-btn-hover-bg: var(--orange);
    --bs-btn-hover-color: var(--on-flat);
    --bs-btn-hover-border-color: var(--orange);
    --bs-btn-active-bg: var(--orange);
    --bs-btn-active-color: var(--on-flat);
    --bs-btn-active-border-color: var(--orange);
}

.btn-outline-secondary {
    --bs-btn-color: var(--ink);
    --bs-btn-bg: var(--surface);
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-bg: var(--wash);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-border-color: var(--line-strong);
    --bs-btn-active-bg: var(--hair);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-border-color: var(--line-strong);
}

.btn-outline-danger {
    --bs-btn-color: var(--red-ink);
    --bs-btn-bg: var(--surface);
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-bg: var(--coral-soft);
    --bs-btn-hover-color: var(--red-ink);
    --bs-btn-hover-border-color: var(--coral);
    --bs-btn-active-bg: var(--coral-soft);
    --bs-btn-active-color: var(--red-ink);
    --bs-btn-active-border-color: var(--coral);
}

/* Valider, supprimer : la menthe et le corail de la charte, à la place du
   vert et du rouge de Bootstrap. */
.btn-success {
    --bs-btn-bg: var(--mint);
    --bs-btn-color: var(--on-flat);
    --bs-btn-border-color: var(--mint);
    --bs-btn-hover-bg: #9df0c8;
    --bs-btn-hover-color: var(--on-flat);
    --bs-btn-hover-border-color: #9df0c8;
    --bs-btn-active-bg: #9df0c8;
    --bs-btn-active-color: var(--on-flat);
    --bs-btn-active-border-color: #9df0c8;
}

.btn-danger {
    --bs-btn-bg: var(--coral);
    --bs-btn-color: var(--on-flat);
    --bs-btn-border-color: var(--coral);
    --bs-btn-hover-bg: #F96A60;
    --bs-btn-hover-color: var(--on-flat);
    --bs-btn-hover-border-color: #F96A60;
    --bs-btn-active-bg: #F96A60;
    --bs-btn-active-color: var(--on-flat);
    --bs-btn-active-border-color: #F96A60;
}

/* Bouton clair : c'est celui qui se pose sur un aplat de couleur (la carte
   d'accroche, l'encart d'offre). Le blanc y ressort là où l'orange
   disparaîtrait dans son propre fond. */
.btn-light,
.card-hero .btn-primary {
    --shadow-btn: var(--shadow-xs);
    --bs-btn-bg: var(--surface);
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--surface);
    --bs-btn-hover-bg: var(--wash);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-border-color: var(--wash);
    --bs-btn-active-bg: var(--hair);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-border-color: var(--hair);
}

/* À côté de lui, le bouton secondaire s'efface : un simple contour à l'encre,
   sans quoi la carte porterait deux boutons blancs de même poids. */
.card-hero .btn-outline-secondary {
    --shadow-btn: none;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(20, 18, 12, .32);
    --bs-btn-hover-bg: rgba(20, 18, 12, .08);
    --bs-btn-hover-border-color: rgba(20, 18, 12, .32);
    --bs-btn-active-bg: rgba(20, 18, 12, .14);
    --bs-btn-active-border-color: rgba(20, 18, 12, .32);
}

/* Un lien déguisé en bouton reste un lien : ni fond, ni filet, ni ombre.
   C'est ce qui le maintient au second plan (annuler un abonnement, par
   exemple) alors qu'il partage la même balise que l'action principale. */
.btn-link {
    --shadow-btn: none;
    --bs-btn-color: var(--ink-soft);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-border-color: transparent;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.btn-link:active:not(:disabled):not(.disabled) { transform: none; }

.btn-link:disabled, .btn-link.disabled {
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: transparent;
}

.btn-lg {
    padding: .8rem 1.6rem;
    font-size: 1.02rem;
    --bs-btn-border-radius: .75rem;
}

.btn-sm {
    padding: .34rem .75rem;
    font-size: .82rem;
    --bs-btn-border-radius: .5rem;
}

/* --------------------------------------------------------------------------
   Cartes — des feuilles blanches posées sur le papier
   -------------------------------------------------------------------------- */
.card {
    --card-shadow: var(--shadow-sm);
    --bs-card-bg: var(--surface);
    --bs-card-border-color: var(--line);
    --bs-card-border-width: 1px;
    --bs-card-border-radius: var(--radius);
    --bs-card-inner-border-radius: calc(var(--radius) - 1px);
    background: var(--surface);
    border: var(--stroke) solid var(--line);
    box-shadow: var(--card-shadow);
}

/* `.shadow-sm` est posé un peu partout dans les gabarits : sans cette ligne,
   l'utilitaire de Bootstrap remplacerait l'ombre de la carte par la sienne,
   grise et plus lourde. */
.card.shadow-sm { box-shadow: var(--card-shadow) !important; }

/* Seules les cartes qui mènent quelque part réagissent. Une carte de contenu
   qui bouge au survol promet un clic qu'elle ne tient pas. */
a.card, .perk-card {
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

a.card:hover, .perk-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow) !important;
}

a.card { color: inherit; }

/* --- La carte d'accroche -------------------------------------------------
   Un seul aplat orange par écran : c'est l'objet qu'on voit en premier, et le
   seul qui ait le droit de hausser le ton. Sa couleur suffit à le détourer,
   il n'a donc pas de filet ; et son ombre est orange, comme une lueur portée
   sur le papier. */
.card-hero {
    --card-shadow: 0 20px 50px -18px rgba(249, 137, 51, .55);
    background: var(--grad-fox);
    border-color: var(--orange);
    border-radius: var(--radius-lg);
    color: var(--on-flat);
}

/* Tout le contenu de la carte reste noir : sur cet orange, le noir donne
   8,4:1 quand le blanc n'en donnerait que 2,9. Les surcharges ci-dessous ne
   corrigent donc pas une couleur de texte — elles empêchent seulement les
   gris et les couleurs d'état de s'y délaver. */
.card-hero h1, .card-hero h2, .card-hero h3,
.card-hero h4, .card-hero h5,
.card-hero .h3, .card-hero .h4, .card-hero .h5 { color: var(--on-flat); }

.card-hero p,
.card-hero span:not(.badge):not(.hl),
.card-hero li,
.card-hero .small,
.card-hero .text-muted,
.card-hero .text-body-secondary { color: var(--on-flat) !important; }

.card-hero .eyebrow { color: var(--on-flat); }
.card-hero .eyebrow::before { background: var(--on-flat); }

.card-hero i.text-success,
.card-hero i.text-muted,
.card-hero i.text-neon { color: var(--on-flat) !important; }

.card-hero a:not(.btn) { color: var(--on-flat); text-decoration-thickness: 2px; }

/* Sur l'orange, un badge menthe ou orange se noierait : il repasse en blanc. */
.card-hero .badge[class*="text-bg-"] {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border-color: transparent;
}

/* Le surligneur reste jaune sur l'orange. Il y a été essayé en blanc, qui
   tranche plus fort : le bloc se lisait alors comme un champ de saisie. Le
   jaune, lui, ne peut être qu'un coup de feutre. */

/* Page Offres : la ligne de badge est réservée même quand l'encart n'en porte
   pas, sinon les trois prix ne s'alignent plus dès qu'une seule carte est
   étiquetée. */
.offer-badge-row { min-height: 1.7rem; }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */
.form-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .86rem;
    color: var(--ink);
    margin-bottom: .35rem;
}

.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: var(--stroke) solid var(--line-strong);
    background-color: var(--surface);
    color: var(--ink);
    padding: .6rem .85rem;
    font-size: .95rem;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* Le champ actif prend la couleur de la marque : un filet orange, doublé d'un
   halo pâle qui le désigne de loin sans épaissir le trait. */
.form-control:focus, .form-select:focus {
    background-color: var(--surface);
    border-color: var(--orange);
    box-shadow: var(--ring);
    outline: none;
}

.form-control::placeholder { color: var(--ink-dim); }

.form-text { color: var(--ink-soft); font-size: .8rem; }

/* Compteur posé sous les zones de texte par le script de base.html. */
.char-count {
    margin-top: .25rem;
    text-align: right;
    color: var(--ink-soft);
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}
.char-count.is-near { color: var(--orange-ink); font-weight: 600; }

.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--red-ink);
    background-image: none;
}

.form-control.is-invalid:focus, .form-select.is-invalid:focus {
    border-color: var(--red-ink);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .16);
}

.invalid-feedback { font-size: .82rem; font-weight: 600; color: var(--red-ink); }

.form-check-input {
    border: var(--stroke) solid var(--line-strong);
    background-color: var(--surface);
}

.form-check-input:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}

/* La coche de Bootstrap est dessinée en blanc : sur l'orange elle disparaît.
   Celle-ci est la même image, à l'encre. */
.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%2314120C' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%2314120C'/%3e%3c/svg%3e");
}

.form-check-input:focus {
    border-color: var(--orange);
    box-shadow: var(--ring);
}

.input-group .btn { box-shadow: none; }
.input-group .btn:active:not(:disabled):not(.disabled) { transform: none; }
.input-group-text {
    border: var(--stroke) solid var(--line-strong);
    background: var(--wash);
    color: var(--ink-soft);
}

/* Le bouton interne d'un champ fichier est dessiné par le navigateur : il
   garde son gris tant qu'on ne le reprend pas explicitement. */
.form-control::file-selector-button {
    background: var(--wash);
    color: var(--ink);
    border: 0;
    border-right: var(--stroke) solid var(--line-strong);
    font-family: var(--font-display);
    font-weight: 500;
    padding: .6rem .85rem;
    margin: -.6rem .85rem -.6rem -.85rem;
}

.form-control:hover:not(:disabled):not([readonly])::file-selector-button { background-color: var(--hair); }

/* Un champ en lecture seule (les liens de partage) n'attend pas de saisie :
   il se distingue par son fond, sans quoi on essaie d'y écrire. */
.form-control[readonly] { background-color: var(--wash); }
.form-control[readonly]:focus {
    background-color: var(--wash);
    border-color: var(--line-strong);
    box-shadow: none;
}

/* L'œil des champs mot de passe, posé par le script de base.html. Il est
   dans le champ plutôt qu'à côté : un bouton accolé ferait de chaque champ
   mot de passe un groupe, plus large que ses voisins. */
.password-field { position: relative; }
.password-field > .form-control { padding-right: 2.75rem; }

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
}

.password-toggle:hover { color: var(--ink); }

/* Le message d'erreur suit le champ dans le même parent chez Bootstrap. Le
   champ étant maintenant enveloppé, c'est l'enveloppe qui porte l'état. */
.password-field.is-invalid ~ .invalid-feedback { display: block; }

/* Focus clavier : un liseré orange, visible sur toutes les surfaces de la
   charte. Détaché de l'objet, il s'ajoute à son contour au lieu de le
   remplacer. */
:focus-visible {
    outline: 2px solid var(--orange-ink);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Alertes — un aplat pâle, cerné d'un filet de la même teinte
   -------------------------------------------------------------------------- */
.alert {
    --bs-alert-border-radius: var(--radius-sm);
    border: var(--stroke) solid var(--line);
    color: var(--ink);
    font-size: .92rem;
    padding: .9rem 1.1rem;
}

/* Le filet est la couleur d'aplat coupée de blanc : assez pour border le
   pastel, trop peu pour redevenir un trait. */
.alert-success   { background: var(--mint-soft);   border-color: color-mix(in srgb, var(--mint) 55%, var(--surface)); }
.alert-info      { background: var(--lilac-soft);  border-color: color-mix(in srgb, var(--lilac) 55%, var(--surface)); }
.alert-warning   { background: var(--yellow-soft); border-color: color-mix(in srgb, var(--yellow) 70%, var(--surface)); }
.alert-danger    { background: var(--coral-soft);  border-color: color-mix(in srgb, var(--coral) 50%, var(--surface)); }
.alert-secondary { background: var(--wash); }
.alert-light     { background: var(--surface); }
.alert-dark      { background: var(--deep); border-color: var(--line); color: var(--ink); }
.alert-dark code { color: var(--yellow); background: rgba(255, 255, 255, .1); }

.alert .btn-close {
    --bs-btn-close-opacity: .7;
    padding: 1.1rem;
}

/* --------------------------------------------------------------------------
   Badges — des pastilles : un fond pâle, et un texte de la même famille
   -------------------------------------------------------------------------- */
.badge {
    font-family: var(--font-display);
    border: var(--stroke) solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: 0;
    padding: .3em .7em;
    display: inline-flex;
    align-items: center;
    color: var(--ink) !important;
}

.badge.text-bg-success   { background: var(--mint-soft) !important; color: var(--green-ink) !important; }
.badge.text-bg-danger    { background: var(--coral-soft) !important; color: var(--red-ink) !important; }
.badge.text-bg-warning   { background: var(--yellow-soft) !important; }
.badge.text-bg-info      { background: var(--lilac-soft) !important; }
.badge.text-bg-primary   { background: var(--orange) !important; }
.badge.text-bg-secondary { background: var(--orange-soft) !important; }
.badge.text-bg-light     { background: var(--surface) !important; border-color: var(--line); }
.badge.text-bg-dark      { background: var(--deep) !important; color: var(--ink) !important; }

/* Plusieurs gabarits écrivent `text-bg-light border` : le filet y est déjà. */
.badge.border { border-color: var(--line) !important; }

/* --------------------------------------------------------------------------
   Listes — un bloc unique, cloisonné par des filets
   -------------------------------------------------------------------------- */
.list-group {
    --bs-list-group-bg: var(--surface);
    --bs-list-group-border-color: var(--line);
    --bs-list-group-border-width: 1px;
    --bs-list-group-border-radius: var(--radius);
    border: var(--stroke) solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.list-group.shadow-sm { box-shadow: var(--shadow-sm) !important; }

.list-group-item {
    background: var(--surface);
    border: 0;
    border-top: var(--stroke) solid var(--hair);
    color: var(--ink);
    transition: background-color .15s ease;
}

.list-group-item:first-child { border-top: 0; }
.list-group-item:hover { background: var(--paper); }

/* Bootstrap annule la bordure haute de tout element qui suit un autre — ses
   elements se chevauchent de 1 px, la notre ne se chevauche pas. Sans cette
   ligne, les sections d'une page se lisent comme un seul bloc sans cloisons. */
.list-group-item + .list-group-item { border-top-width: var(--stroke); }

.list-group-item a.h6 {
    color: var(--ink);
    font-weight: 600;
}

.list-group-item a.h6:hover { color: var(--orange-ink); }

/* --------------------------------------------------------------------------
   Divers
   -------------------------------------------------------------------------- */
.spinner-border { color: var(--ink); border-width: .2em; }
/* Dans un bouton verrouillé pendant l'envoi : la couleur de son texte. */
.btn .spinner-border { color: inherit; }

/* La barre d'avancement d'une génération : une gouttière que l'orange
   remplit. Fine, mais d'une couleur franche — c'est l'objet qu'on regarde
   pendant deux minutes en attendant son site. */
.progress {
    background: var(--hair);
    border-radius: 999px;
    height: .5rem !important;
    overflow: hidden;
}

.progress-bar {
    background: var(--orange);
    border-radius: 999px;
    transition: width .5s ease;
}

/* --- Le pied de page -------------------------------------------------------
   Cinq colonnes sur le blanc, détachées de la page par un filet. Le texte est
   à l'encre atténuée et prend sa pleine couleur au survol : une colonne de
   liens soulignés en permanence ferait une grille de traits. */
.site-footer {
    background: var(--surface);
    border-top: var(--stroke) solid var(--line);
    color: var(--ink-soft);
    font-size: .9rem;
}

.site-footer-inner {
    max-width: 1140px;
    margin-inline: auto;
    padding: 3.25rem 1.15rem 0;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
}

@media (max-width: 991.98px) {
    .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .site-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.site-footer-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 1.1rem;
}

.site-footer-text {
    line-height: 1.65;
    max-width: 32ch;
    margin-bottom: 0;
}

.site-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer-links li + li { margin-top: .75rem; }

.site-footer a,
.site-footer-linkbtn {
    color: inherit;
    text-decoration: none;
    transition: color .12s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer-linkbtn:hover,
.site-footer-linkbtn:focus-visible {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Un bouton (il ouvre le chat, il ne mène nulle part) habillé en lien. */
.site-footer-linkbtn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.site-footer-contact li {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    overflow-wrap: anywhere;
}

.site-footer-contact i {
    flex: none;
    width: 1rem;
    color: var(--orange-ink);
}

/* Trois colonnes, dont la dernière reste vide : c'est elle qui fait tomber
   les liens légaux au centre exact de la page, et non au centre de ce que le
   copyright laisse libre. */
.site-footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .6rem 1.4rem;
    margin-top: 3rem;
    padding: 1.25rem 0 1.5rem;
    border-top: var(--stroke) solid var(--hair);
    font-size: .8rem;
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem 1.4rem;
}

@media (max-width: 767.98px) {
    .site-footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* Pastilles d'icône : de petits carrés à angles ronds, teintés d'un pastel,
   qui portent un pictogramme de la même famille. */
.icon-pill {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .7rem;
    display: grid;
    place-items: center;
    flex: none;
    font-size: .95rem;
    color: var(--ink);
}

.icon-pill-lg {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: .95rem;
    font-size: 1.3rem;
}

/* La couleur dit l'état : orange ce qui est à nous, menthe ce qui est acquis,
   jaune ce qui travaille, gris ce qui dort. */
.icon-pill-brand { background: var(--orange-soft); color: var(--orange-ink); }
.icon-pill-cool  { background: var(--mint-soft); color: var(--green-ink); }
.icon-pill-warm  { background: var(--yellow-soft); }
.icon-pill-muted { background: var(--wash); color: var(--ink-soft); }

/* Sur l'aplat orange, la pastille repasse en blanc et son pictogramme à
   l'encre. */
.card-hero .icon-pill-warm,
.card-hero .icon-pill-brand { background: var(--surface); color: var(--ink); }

/* Génération en cours : le fond du bloc respire, du jaune pâle au blanc.
   C'est le seul mouvement continu de l'interface — il ne sert qu'à ça. */
.is-working {
    background: var(--yellow-soft);
    animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
    50% { background-color: var(--surface); }
}

main > .container, main.container { animation: rise .34s ease both; }

@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    a.card:hover, .perk-card:hover { transform: none !important; }
}

/* `code` par défaut de Bootstrap : trop clair sur nos fonds teintés */
code {
    color: var(--ink);
    background: var(--wash);
    padding: .1em .35em;
    border-radius: .35rem;
    font-size: .84em;
}

/* ==========================================================================
   Tableau de bord : le geste demandé, et ceux qui restent

   La page tient sur une idée : un seul geste est mis en avant, et tout le
   reste dit où on en est. D'où les trois familles ci-dessous — l'accroche qui
   porte le geste, la liste qui montre le chemin parcouru, et les tuiles, qui
   ne sont plus des chiffres mais des portes.
   ========================================================================== */

/* --- L'accroche ----------------------------------------------------------
   La pastille et le texte côte à côte, et la pastille qui passe au-dessus
   sous 576 px : à cette largeur, une colonne de texte amputée de 4 rem se lit
   moins bien qu'une icône qui prend sa propre ligne. */
.next-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

@media (max-width: 575.98px) {
    .next-step { flex-direction: column; gap: .9rem; }
}

/* --- La mise en route ----------------------------------------------------
   Une liste de gestes, pas un formulaire : la coche ne s'actionne pas, elle
   constate. D'où des pastilles et non des cases — une case à cocher inerte
   est la plus sûre façon de faire cliquer dans le vide. */
.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 0;
    border-top: var(--stroke) solid var(--hair);
}

.step:first-child { border-top: 0; padding-top: 0; }
.step:last-child { padding-bottom: 0; }

/* Le texte du geste passe avant le bouton, qui ne prend que sa place. */
.step > .min-w-0 { flex: 1; }

.step-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: var(--stroke) solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-soft);
    display: grid;
    place-items: center;
    flex: none;
    font-size: .8rem;
}

.step-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink);
}

/* Sur un téléphone, le bouton et le texte ne tiennent pas sur la même ligne :
   le texte s'y réduisait à un ruban de deux mots par ligne. Le bouton passe
   donc dessous, aligné sur le texte plutôt que sur la pastille. La base de
   12 rem donnée au texte est ce qui force le report — sans elle, une colonne
   `flex: 1` accepte de se réduire indéfiniment et rien ne se replie jamais. */
@media (max-width: 575.98px) {
    /* La pastille remonte sur la première ligne du titre : centrée sur un bloc
       de texte devenu haut de quatre lignes, elle flottait au milieu de rien. */
    .step { flex-wrap: wrap; row-gap: .7rem; align-items: flex-start; }
    .step > .min-w-0 { flex: 1 1 12rem; }
    .step > .btn { margin-left: 2.9rem; }
}

/* Fait : la pastille passe à la menthe, comme partout ailleurs dans la charte,
   et le libellé s'éteint. Il ne disparaît pas — c'est ce qui reste visible qui
   donne envie de cocher la suite. */
.step.is-done .step-mark {
    background: var(--mint-soft);
    border-color: transparent;
    color: var(--green-ink);
}

.step.is-done .step-label {
    color: var(--ink-soft);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

/* --- Les tuiles ----------------------------------------------------------
   La ligne d'action, en bas de chaque carte cliquable. Elle est écrite en
   petit et en majuscules, comme les intertitres de la charte, et porte sa
   flèche : c'est ce qui distingue une tuile qui mène quelque part d'un
   compteur qui se contente d'afficher. */
.tile-action {
    margin-top: .65rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .74rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--orange-ink);
}

/* La flèche est le caractère « → » et non une icône Font Awesome : un
   pseudo-élément qui cite une police externe ne montre rien tant qu'elle n'est
   pas chargée, et la ligne perd alors ce qui dit qu'elle mène quelque part. */
.tile-action::after {
    content: "→";
    margin-left: .35rem;
    display: inline-block;
    transition: transform .14s ease;
}

a.card:hover .tile-action::after { transform: translateX(.2rem); }

/* Une ancre visée depuis une autre page ne doit pas coller au bord haut de la
   fenêtre : on veut voir le titre de la carte, pas son premier champ. */
.scroll-anchor { scroll-margin-top: 1.5rem; }

/* ==========================================================================
   Formulaire de création : une question par bloc

   Le formulaire ne se présente pas comme une fiche à remplir mais comme un
   entretien : un numéro, une question, et de quoi y répondre. Chaque bloc est
   une carte, ce qui donne au regard un endroit où s'arrêter entre deux
   réponses — c'est ce qui fait qu'un formulaire de huit questions se lit plus
   vite qu'une colonne de douze champs.
   ========================================================================== */

.q {
    background: var(--surface);
    border: var(--stroke) solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.q-head {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    margin-bottom: 1.15rem;
}

/* Le numéro tient lieu de fil conducteur : on sait toujours où on en est. */
.q-num {
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: .6rem;
    display: grid;
    place-items: center;
    background: var(--orange-soft);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .92rem;
}

.q-title {
    font-size: 1.12rem;
    font-weight: 700;
    margin: .18rem 0 0;
}

.q-help {
    color: var(--ink-soft);
    font-size: .87rem;
    margin: .25rem 0 0;
}

.q-field + .q-field { margin-top: .9rem; }

/* Dans une grille, chaque champ est seul dans sa colonne : la règle
   ci-dessus ne joue pas, et deux rangées de champs se collent. */
.q .row .q-field { margin-bottom: .9rem; }

/* L'étiquette est passée au second plan : la question porte le sens, elle ne
   fait plus que nommer la case. */
.q-label {
    font-family: var(--bs-body-font-family);
    font-size: .84rem;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: .3rem;
}

/* Logo facultatif de la question 2 : l'aperçu à gauche du champ, sur un
   damier discret qui laisse voir si le fond est transparent. */
.logo-picker {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.logo-preview:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 7.5rem;
    height: 2.4rem;
    padding: .25rem .4rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    background: repeating-conic-gradient(#f1f1f1 0% 25%, #fff 0% 50%) 50% / 12px 12px;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Choix uniques en pastilles ------------------------------------------
   Un menu déroulant cache ses options et demande deux gestes. Ici tout est
   visible, chaque option porte son exemple, et un clic suffit. */

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    gap: .7rem;
}

.choice { position: relative; }

/* Le bouton radio reste dans la page — il porte le focus clavier et la
   validation — mais c'est l'étiquette qu'on voit et qu'on clique. */
.choice-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.choice-label {
    display: block;
    height: 100%;
    padding: .8rem .95rem;
    background: var(--surface);
    border: var(--stroke) solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.choice-label:hover { background: var(--wash); }

/* L'option retenue prend la couleur de la marque : un fond orange pâle, et un
   filet orange doublé vers l'intérieur — il s'épaissit sans que la pastille
   change de taille ni que ses voisines bougent. */
.choice-input:checked + .choice-label {
    background: var(--orange-soft);
    border-color: var(--orange);
    box-shadow: inset 0 0 0 1px var(--orange);
}

/* Le focus doit rester visible alors que la case elle-même est masquée :
   sans cette règle, la navigation au clavier devient aveugle. */
.choice-input:focus-visible + .choice-label {
    outline: 2px solid var(--orange-ink);
    outline-offset: 2px;
}

.choice-title {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
}

.choice-hint {
    display: block;
    color: var(--ink-soft);
    font-size: .8rem;
    margin-top: .15rem;
}

/* Cases à cocher (question 8) : une fois la limite de l'offre atteinte, celles
   qui restent s'effacent plutôt que de refuser le clic sans rien dire. */
.choice-input:disabled + .choice-label {
    opacity: .45;
    cursor: not-allowed;
}

.choice-input:disabled + .choice-label:hover { background: var(--surface); }

/* Les exemples sont longs, et un placeholder tronqué n'aide personne :
   dans un textarea ils tiennent sur plusieurs lignes. */
.q textarea::placeholder { white-space: pre-line; }

/* Sous-titre d'un second groupe de champs dans la même question. */
.q-sub {
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-soft);
    margin: 1.4rem 0 .7rem;
    padding-top: 1.1rem;
    border-top: var(--stroke) solid var(--hair);
}

/* La précision qui accompagne un sous-titre, sans sa casse ni sa graisse. */
.q-sub-note { text-transform: none; font-weight: 400; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Création d'un site : le formulaire, en colonne étroite
   -------------------------------------------------------------------------- */

.site-new-narrow { max-width: 50rem; margin-inline: auto; }

/* Les sections décrites à la main (question 8) : une zone de texte, sa croix
   à droite, et l'erreur éventuelle sur toute la largeur. */
.custom-sections { margin-top: 1.25rem; }
.custom-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
    align-items: start;
    margin-bottom: .6rem;
}
.custom-row .invalid-feedback { grid-column: 1 / -1; margin-top: 0; }
.custom-row .char-count { grid-column: 1; grid-row: 2; margin-top: -.25rem; }

/* --------------------------------------------------------------------------
   Annuaire des avantages
   -------------------------------------------------------------------------- */

/* Les logos viennent des partenaires : formats, fonds et proportions varient
   d'un outil à l'autre. Une boîte carrée au fond blanc, et `contain` pour ne
   jamais rogner un logo large, sont ce qui rend la grille régulière malgré ça. */
.perk-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    padding: .35rem;
    background: var(--surface);
    border: var(--stroke) solid var(--line);
    border-radius: .7rem;
    overflow: hidden;
}

.perk-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.perk-logo-lg {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: .9rem;
}

/* Un partenaire qui est une personne, pas une marque, n'a pas de logo : ses
   initiales prennent la boîte, sur le jaune des étiquettes. */
.perk-logo:has(.perk-logo-initials) { background: var(--yellow); }

.perk-logo-initials {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .02em;
    color: var(--on-flat);
}

.perk-logo-lg .perk-logo-initials { font-size: 1.45rem; }

/* Une photo, elle, remplit la boîte : un visage réduit au milieu d'un cadre
   blanc ressemble à un timbre. */
.perk-logo-photo { padding: 0; }

.perk-logo-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

/* La réduction est l'information que l'on vient chercher : elle est traitée
   comme une étiquette de prix agrafée sur la fiche, pas comme une ligne de
   description. Le jaune ne sert qu'à ça dans tout le catalogue. */
.perk-offer {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .86rem;
    color: var(--on-flat);
    background: var(--yellow);
    border-radius: .5rem;
    padding: .3rem .65rem;
}

/* Un enfant de flex refuse de rétrécir sous la largeur de son contenu : sans
   ça, `text-truncate` ne coupe rien et un nom long déborde de la carte. */
.min-w-0 { min-width: 0; }

/* Contenu importé d'une fiche : du texte long, des listes, parfois une grille
   tarifaire. Il arrive sans le moindre attribut — le filtre d'import les jette
   tous — donc toute sa mise en forme se joue ici. */
.perk-article {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.65;
    /* La grille tarifaire de certains outils est plus large qu'une colonne de
       texte : elle défile dans son cadre plutôt que d'élargir la page. */
    overflow-x: auto;
}

.perk-article > :last-child { margin-bottom: 0; }
.perk-article p { margin-bottom: 1rem; }
.perk-article strong, .perk-article b { color: var(--ink); font-weight: 700; }

.perk-article ul, .perk-article ol { padding-left: 1.1rem; margin-bottom: 1rem; }
.perk-article li { margin-bottom: .5rem; }

/* La source enchaîne des listes d'un seul élément. Sans cette règle, deux
   points successifs se collent l'un à l'autre. */
.perk-article ul + ul { margin-top: -.5rem; }

.perk-article h3, .perk-article h4, .perk-article h5 {
    font-size: 1rem;
    margin: 1.6rem 0 .7rem;
}

.perk-article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: .88rem;
}

.perk-article th, .perk-article td {
    padding: .55rem .7rem;
    border-bottom: var(--stroke) solid var(--hair);
    text-align: left;
    vertical-align: top;
}

.perk-article thead th {
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
    border-bottom: var(--stroke) solid var(--line-strong);
}

/* Deux colonnes côte à côte pour les points forts et faibles : le texte y est
   plus dense, il tient mieux un cran plus bas. */
.perk-article-sm { font-size: .88rem; }

/* La barre de navigation est collante : sans marge de défilement, un lien du
   sommaire amène le titre de la section juste dessous, caché. */
.perk-section { scroll-margin-top: 5.5rem; }

/* ==========================================================================
   La page d'accueil publique

   Le seul écran de l'application qui ne soit pas un outil : il doit convaincre
   quelqu'un qui ne sait pas encore ce que nous vendons. D'où deux différences
   avec le reste de la feuille, et deux seulement :

   1. Le contenu n'est plus borné à 1140 px par la coquille. Les bandes vont
      d'un bord à l'autre, chacune avec son fond, et c'est `.lp-inner` qui
      recentre le texte. Un filet les sépare, et l'alternance du crème et du
      blanc fait le reste.
   2. Des choses bougent : un mot qui tourne, des chiffres qui montent, une
      maquette qui se construit, un ruban de logos qui défile. Partout ailleurs
      le mouvement est réservé à ce qui travaille vraiment (`.is-working`) ;
      ici il sert à montrer le produit à quelqu'un qui ne l'a jamais vu.

   Tout le reste est emprunté : `.card`, `.card-hero`, `.btn`, `.icon-pill`,
   `.eyebrow`, `.hl`, `.badge`, `.perk-logo`. Une page d'accueil qui se
   redessinerait entièrement deviendrait le second système de la maison, et
   c'est le second système qui dérive.
   ========================================================================== */

/* Les ancres passent sous la barre haute collante. `scroll-behavior` est posé
   sur le document entier faute de pouvoir l'être depuis `main` ; la requête
   média de mouvement réduit, plus bas dans ce fichier, ne le couvre pas — d'où
   la seconde règle, écrite ici et pas là-bas pour rester avec la première. */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* La coquille borne son contenu et l'espace ; une bande pleine largeur ne peut
   pas vivre avec ça. Les messages éclairs, eux, gardent leur gouttière. */
.app-main.lp {
    max-width: none;
    padding: 0;
}

.app-main.lp > .alert {
    margin: 1.15rem 1.15rem 0;
}

/* --- Les ancres dans la barre haute -------------------------------------- */
.lp-topnav {
    align-items: center;
    gap: .1rem;
    margin-left: .5rem;
}

.lp-topnav a {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .88rem;
    color: var(--ink-soft);
    text-decoration: none;
    padding: .4rem .7rem;
    border-radius: .55rem;
    transition: color .15s ease, background-color .15s ease;
}

.lp-topnav a:hover {
    background: var(--wash);
    color: var(--ink);
}

/* La page où l'on se trouve : le même fond orange pâle que l'entrée active de
   la colonne, une fois connecté. */
.lp-topnav a.is-on {
    background: var(--orange-soft);
    color: var(--ink);
}

/* --- Les bandes ---------------------------------------------------------- */
.lp-band {
    padding: 4rem 0;
    border-bottom: var(--stroke) solid var(--line);
}

.lp-band:last-of-type { border-bottom: 0; }

/* Le fond blanc n'est pas une variante décorative : il découpe la page en
   chapitres, et c'est ce qui permet de sauter d'un service aux tarifs sans
   relire. */
.lp-band-alt { background: var(--surface); }

.lp-band-hero { padding-top: 2.75rem; }

.lp-band-figures {
    background: var(--yellow-soft);
    padding: 2.25rem 0;
}

/* L'unique bande à l'encre. Elle isole l'annuaire du reste : c'est le service
   qu'on n'attend pas en arrivant, et il se raconte mieux détaché. */
.lp-band-ink {
    background: var(--ink);
    color: var(--paper);
}

.lp-band-ink .lp-h2 { color: var(--cream); }
.lp-band-ink .lp-sub { color: rgba(255, 252, 242, .74); }
.lp-band-ink .eyebrow { color: rgba(255, 252, 242, .74); }
.lp-band-ink .eyebrow::before { background: var(--yellow); }

/* Une carte posée sur la bande est claire : son sur-titre y reprend le gris
   qu'il a partout ailleurs. */
.lp-band-ink .lp-perk-star .eyebrow { color: var(--ink-soft); }

/* Les liens d'ancre amènent le titre juste sous la barre collante sans ça. */
.lp-band[id] { scroll-margin-top: 4.25rem; }

.lp-inner {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 1.15rem;
}

.lp-narrow { max-width: 47rem; }

/* --- Les titres de bande ------------------------------------------------- */
/* Une page d'accueil ne se lit pas, elle se parcourt : personne n'est obligé
   d'arriver au bout. Le texte y est donc plus grand et plus aéré que dans
   l'application, où l'on est venu pour travailler. */
.lp-head {
    max-width: 58ch;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.lp-eyebrow-center { justify-content: center; }

.lp-h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    letter-spacing: -.035em;
    line-height: 1.1;
}

.lp-sub {
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- 1. L'accroche ------------------------------------------------------- */
.lp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 2.5rem;
    align-items: center;
}

.lp-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.05rem, 5.2vw, 3.3rem);
    letter-spacing: -.045em;
    line-height: 1.04;
}

.lp-lead {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 46ch;
}

.lp-lead strong { color: var(--ink); }

/* Le métier qui tourne. `nowrap` empêche la phrase de se recomposer à chaque
   mot, ce qui ferait sauter les deux lignes suivantes toutes les deux
   secondes. */
.lp-rotator {
    display: inline-block;
    white-space: nowrap;
    font-weight: 700;
    color: var(--orange-ink);
    transition: opacity .22s ease, transform .22s ease;
}

.lp-rotator.is-out {
    opacity: 0;
    transform: translateY(-.3em);
}

.lp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.1rem;
    font-size: .84rem;
    font-weight: 600;
}

.lp-trust i {
    color: var(--green-ink);
    margin-right: .3rem;
}

/* --- La maquette qui se construit ---------------------------------------- */
/* Un navigateur dessiné en boîtes, posé sur l'ombre la plus ample de la
   charte. Il rejoue les six temps d'une vraie création : la charte, puis les
   sections. Rien n'y est une image — tout est en boîtes, donc rien à charger. */
.lp-frame {
    background: var(--surface);
    border: var(--stroke) solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding-bottom: .9rem;
    overflow: hidden;
}

.lp-frame-bar {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem .7rem;
    background: var(--wash);
    border-bottom: var(--stroke) solid var(--line);
}

.lp-frame-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    flex: none;
}

.lp-frame-dot:nth-child(1) { background: var(--coral); }
.lp-frame-dot:nth-child(2) { background: var(--yellow); }
.lp-frame-dot:nth-child(3) { background: var(--mint); }

.lp-frame-url {
    flex: 1;
    margin-left: .4rem;
    background: var(--surface);
    border: var(--stroke) solid var(--line);
    border-radius: 999px;
    padding: .12rem .6rem;
    font-size: .72rem;
    color: var(--ink-soft);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-frame-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    padding: .75rem .9rem .4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .8rem;
}

.lp-frame-count { color: var(--ink-soft); }

.lp-frame-progress {
    margin: 0 .9rem .85rem;
    height: .375rem !important;
}

.lp-mock {
    display: grid;
    gap: .5rem;
    padding: 0 .9rem;
}

/* Un bloc pas encore écrit n'est pas absent : il est pâle. Les cinq sont donc
   toujours là, la maquette garde sa hauteur du début à la fin, et l'on voit le
   plan de la page se remplir — c'est exactement ce que fait l'écran de
   création. Les faire disparaître laissait un grand vide blanc au premier
   temps, qui se lisait comme une page cassée. */
.lp-mock-block {
    background: var(--paper);
    border: var(--stroke) solid var(--hair);
    border-radius: .6rem;
    padding: .65rem;
    opacity: .3;
    transform: translateY(5px);
    transition: opacity .35s ease, transform .35s ease;
}

.lp-mock-block.is-on {
    opacity: 1;
    transform: none;
}

.lp-mock-header { background: var(--orange-soft); border-color: transparent; }
.lp-mock-footer { background: var(--deep); border-color: transparent; }
.lp-mock-footer .lp-mock-line { background: rgba(255, 252, 242, .5); }

.lp-mock-nav {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .5rem;
}

.lp-mock-logo {
    width: .85rem;
    height: .85rem;
    background: var(--orange);
    border-radius: .25rem;
    flex: none;
}

.lp-mock-pill {
    width: 1.5rem;
    height: .38rem;
    background: var(--surface);
    border-radius: 999px;
}

.lp-mock-pill:first-of-type { margin-left: auto; }

.lp-mock-h1 {
    height: .7rem;
    width: 76%;
    background: var(--ink);
    border-radius: .2rem;
    margin-bottom: .4rem;
}

.lp-mock-h2 {
    height: .52rem;
    width: 56%;
    background: var(--ink);
    border-radius: .2rem;
    margin-bottom: .4rem;
}

.lp-mock-line {
    height: .3rem;
    background: var(--hair);
    border-radius: 999px;
    margin-bottom: .26rem;
}

.lp-mock-cta {
    display: inline-block;
    width: 4rem;
    height: 1.05rem;
    margin-top: .45rem;
    background: var(--orange);
    border-radius: .35rem;
}

.lp-mock-cta-sm {
    width: 3.2rem;
    margin-top: 0;
    flex: none;
}

.lp-mock-two {
    display: grid;
    grid-template-columns: .78fr 1fr;
    gap: .6rem;
    align-items: center;
}

.lp-mock-photo {
    aspect-ratio: 16 / 10;
    background: var(--mint-soft);
    border-radius: .5rem;
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    font-size: .8rem;
}

.lp-mock-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
}

.lp-mock-card {
    aspect-ratio: 5 / 3;
    background: var(--lilac-soft);
    border-radius: .5rem;
    display: grid;
    place-items: center;
    font-size: .8rem;
}

.lp-mock-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}

.lp-mock-col { min-width: 0; }

/* Toujours en place, invisible jusqu'à la fin : réserver sa hauteur évite le
   sursaut du dernier temps. */
.lp-frame-done {
    margin: .85rem .9rem 0;
    padding: .4rem .6rem;
    background: var(--mint-soft);
    border-radius: .6rem;
    color: var(--green-ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .82rem;
    text-align: center;
    opacity: 0;
    transform: scale(.97);
    transition: opacity .3s ease, transform .3s ease;
}

.lp-frame-done.is-on {
    opacity: 1;
    transform: none;
}

/* --- 2. Les chiffres ----------------------------------------------------- */
.lp-figures {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    text-align: center;
}

.lp-figure {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -.045em;
    line-height: 1;
}

.lp-figure-label {
    display: block;
    max-width: 20ch;
    margin: .35rem auto 0;
    font-size: .8rem;
    color: var(--ink-soft);
}

/* --- 3. Les services ----------------------------------------------------- */
.lp-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.25rem;
}

/* Six cartes, donc deux lignes pleines de trois. Rien à corriger ici : une
   règle de dernier enfant traînait du temps où il y en avait sept, et elle
   étalait la sixième sur toute la largeur en laissant un trou à côté de la
   cinquième. */

.lp-service h3 { margin-bottom: .5rem; }

.lp-service p {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.6;
}

.lp-ticks li {
    display: flex;
    gap: .5rem;
    font-size: .9rem;
    line-height: 1.45;
    margin-bottom: .55rem;
}

.lp-ticks li:last-child { margin-bottom: 0; }

.lp-ticks i {
    flex: none;
    margin-top: .25rem;
    font-size: .75rem;
    color: var(--green-ink);
}

/* Sur l'aplat orange, le vert des coches passe à l'encre — même règle que les
   pastilles d'icône, pour la même raison de contraste. */
.card-hero .lp-ticks i { color: var(--on-flat); }

/* --- 4. Les étapes ------------------------------------------------------- */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.lp-steps h3 { margin-bottom: .5rem; }

.lp-steps p {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.lp-step-num {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: .85rem;
    background: var(--orange-soft);
    border-radius: .65rem;
    font-family: var(--font-display);
    font-weight: 600;
}

.lp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .75rem;
}

.lp-chip {
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 500;
    background: var(--surface);
    border: var(--stroke) solid var(--line);
    border-radius: 999px;
    padding: .22rem .6rem;
}

.lp-band-alt .lp-chip { background: var(--paper); }

.lp-projects {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--paper);
    border: var(--stroke) solid var(--line);
    border-radius: var(--radius);
}

.lp-projects-say p {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.6;
}

.lp-projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: .75rem 1rem;
}

.lp-projects-list li {
    border-left: 2px solid var(--orange);
    padding-left: .7rem;
}

.lp-projects-list strong {
    display: block;
    font-family: var(--font-display);
    font-size: .92rem;
}

.lp-projects-list span {
    font-size: .78rem;
    color: var(--ink-soft);
}

/* --- 5. Les posts Facebook ----------------------------------------------
   Deux colonnes : ce qu'on fait à gauche, un post tel qu'il sort à droite.
   La démonstration n'est pas une maquette de barres grises comme celle de
   l'accroche — c'est du texte lisible, parce que c'est lui qu'on vend. */
.lp-posts {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 2.25rem;
    align-items: start;
}

.lp-posts-points li {
    display: flex;
    gap: .85rem;
    margin-bottom: 1.15rem;
}

.lp-posts-points li:last-child { margin-bottom: 0; }

/* La pastille garde sa taille quoi qu'il arrive au texte d'à côté. */
.lp-posts-points .icon-pill { flex: none; }

.lp-posts-points strong {
    display: block;
    font-family: var(--font-display);
    margin-bottom: .15rem;
}

.lp-posts-points p {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.lp-posts-legend {
    margin-top: 1.6rem;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.lp-posts-honest {
    display: flex;
    gap: .6rem;
    margin-top: 1.4rem;
    padding: .8rem .9rem;
    background: var(--surface);
    border: var(--stroke) solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    color: var(--ink-soft);
}

.lp-posts-honest i { margin-top: .15rem; }

/* --- Le post de démonstration -------------------------------------------- */
.lp-post { margin: 0; }

.lp-post-legend {
    margin-bottom: .5rem;
    font-size: .74rem;
    color: var(--ink-soft);
}

.lp-post-card {
    background: var(--surface);
    border: var(--stroke) solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.lp-post-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    padding: .9rem 1rem;
    border-bottom: var(--stroke) solid var(--hair);
}

.lp-post-avatar {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    flex: none;
    background: var(--mint-soft);
    border-radius: 50%;
}

.lp-post-who { min-width: 0; }

.lp-post-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
}

.lp-post-meta {
    display: block;
    font-size: .72rem;
    color: var(--ink-soft);
}

/* L'angle tenu par le post, comme la page du post l'affiche. Poussé à droite
   tant qu'il y a la place, il repasse à la ligne sur un écran étroit plutôt
   que d'écraser le nom. */
.lp-post-angle {
    margin-left: auto;
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 600;
    background: var(--yellow-soft);
    border-radius: 999px;
    padding: .2rem .6rem;
}

.lp-post-text {
    padding: 1rem;
    font-size: .92rem;
    line-height: 1.55;
}

.lp-post-text p { margin-bottom: .75rem; }

.lp-post-tags {
    margin-top: .75rem;
    color: var(--ink-soft);
}

.lp-post-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
    padding: 0 1rem 1rem;
}

.lp-post-photo {
    aspect-ratio: 3 / 2;
    display: grid;
    place-items: center;
    background: var(--lilac-soft);
    border-radius: .5rem;
    color: var(--ink-soft);
    font-size: .85rem;
}

.lp-post-bar {
    display: flex;
    justify-content: space-around;
    gap: .5rem;
    padding: .55rem 1rem;
    border-top: var(--stroke) solid var(--hair);
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.lp-posts-quota {
    margin-top: .9rem;
    text-align: center;
    font-size: .85rem;
    color: var(--ink-soft);
}

/* --- 6. Le ruban de logos ------------------------------------------------ */
/* Il est coupé par les deux bords de l'écran : c'est ce qui fait qu'on ne voit
   pas la boucle se recoller. La piste contient deux fois la même liste et
   glisse d'exactement la moitié de sa largeur, donc le raccord tombe sur un
   état identique au départ. */
.lp-ribbon {
    margin: 2.25rem 0;
    padding: 1.1rem 0;
    overflow: hidden;
    border-top: var(--stroke) solid rgba(255, 252, 242, .16);
    border-bottom: var(--stroke) solid rgba(255, 252, 242, .16);
}

.lp-ribbon-track {
    display: flex;
    width: max-content;
    animation: lp-slide 44s linear infinite;
}

/* Le survol arrête le ruban : sans ça on ne peut pas lire un nom qui passe. */
.lp-ribbon:hover .lp-ribbon-track { animation-play-state: paused; }

.lp-ribbon-list {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding-right: 1.6rem;
}

.lp-ribbon-list li {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.lp-ribbon-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .85rem;
    color: var(--ink);
    white-space: nowrap;
}

@keyframes lp-slide {
    from { transform: none; }
    to   { transform: translateX(-50%); }
}

/* --- La vitrine des avantages -------------------------------------------
   Deux rangs : trois offres de tête, puis huit cartes. Le rapport de taille
   entre les deux est tout ce qui les hiérarchise ; la couleur, elle, reste la
   même partout, sans quoi la vitrine ressemblerait à un catalogue de soldes. */
.lp-perk-stars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.lp-perk-star {
    display: flex;
    flex-direction: column;
    padding: 1.35rem;
    background: var(--surface);
    border: var(--stroke) solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}

.lp-perk-star-head {
    display: flex;
    align-items: center;
    gap: .85rem;
}

/* L'offre est l'objet qu'on vient lire : traitée comme l'étiquette de prix du
   catalogue (`.perk-offer`), mais en grand. Poussée en bas par `margin-top`,
   les trois étiquettes s'alignent quel que soit le nombre de lignes du nom
   au-dessus — sans quoi le rang entier aurait l'air bancal. */
.lp-perk-star-offer {
    margin-top: auto;
    padding: .7rem .85rem;
    background: var(--yellow);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: -.025em;
    line-height: 1.2;
}

/* L'étiquette a besoin d'air au-dessus d'elle, mais seulement s'il y a
   quelque chose au-dessus : `margin-top: auto` ne crée pas d'espace quand la
   carte est déjà pleine. */
.lp-perk-star-head + .lp-perk-star-offer { margin-top: 1.1rem; }

.lp-perk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.lp-perk {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding: .85rem;
    background: var(--surface);
    border: var(--stroke) solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    color: var(--ink);
}

/* Dans la bande à l'encre, les cartes n'ont ni filet ni ombre : sur un fond
   sombre, le contraste des surfaces suffit à les détacher. */
.lp-band-ink .lp-perk-star,
.lp-band-ink .lp-perk {
    border-color: transparent;
    box-shadow: none;
}

.lp-perk-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.2;
}

/* L'étiquette du catalogue, reprise telle quelle mais un cran plus bas : huit
   offres côte à côte, dont certaines font deux lignes. */
.lp-perk .perk-offer {
    margin-top: auto;
    font-size: .78rem;
    padding: .25rem .5rem;
    white-space: normal;
}

.lp-perks-more {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: .88rem;
    color: rgba(255, 252, 242, .72);
}

/* Le rappel dans l'accroche : la même information que la bande à l'encre, à
   l'endroit où l'on décide de continuer à lire ou non. */
.lp-hero-perk {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    max-width: 42rem;
    padding: .7rem .9rem;
    background: var(--lilac-soft);
    border-radius: var(--radius-sm);
    font-size: .88rem;
}

.lp-hero-perk i {
    margin-top: .15rem;
    color: var(--orange-ink);
}

/* Les cartes entrent dans le champ ensemble : sans décalage, la bande
   apparaît d'un bloc. */
.lp-perk-stars > *:nth-child(2).is-in { transition-delay: .07s; }
.lp-perk-stars > *:nth-child(3).is-in { transition-delay: .14s; }

.lp-perk-grid > *:nth-child(2).is-in { transition-delay: .05s; }
.lp-perk-grid > *:nth-child(3).is-in { transition-delay: .1s; }
.lp-perk-grid > *:nth-child(4).is-in { transition-delay: .15s; }
.lp-perk-grid > *:nth-child(5).is-in { transition-delay: .2s; }
.lp-perk-grid > *:nth-child(6).is-in { transition-delay: .25s; }
.lp-perk-grid > *:nth-child(7).is-in { transition-delay: .3s; }
.lp-perk-grid > *:nth-child(8).is-in { transition-delay: .35s; }

@media (max-width: 991.98px) {
    .lp-perk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    /* Trois offres de tête en ligne deviennent trois colonnes de texte trop
       étroites bien avant que la place ne manque vraiment. */
    .lp-perk-stars { grid-template-columns: 1fr; }
    .lp-perk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-perk-star-offer { font-size: 1rem; }
}

/* --- 7. Les tarifs ------------------------------------------------------- */
/* Deux pastilles dans une gouttière. Le rythme retenu est une pastille blanche
   posée dedans : la couleur reste aux boutons qui engagent. */
.lp-switch {
    display: flex;
    width: max-content;
    margin: 0 auto 1.75rem;
    padding: .25rem;
    background: var(--wash);
    border: var(--stroke) solid var(--line);
    border-radius: 999px;
}

.lp-switch-btn {
    display: flex;
    align-items: center;
    gap: .45rem;
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: .45rem 1.05rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink-soft);
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.lp-switch-btn:hover { color: var(--ink); }

.lp-switch-btn.is-on {
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.lp-offers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.25rem;
    max-width: 44rem;
    margin-inline: auto;
}

.lp-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.1rem;
    letter-spacing: -.045em;
    line-height: 1;
}

.lp-price-period {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.lp-addon {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 44rem;
    margin: 1.5rem auto 0;
    padding: 1.15rem 1.25rem;
    background: var(--lilac-soft);
    border-radius: var(--radius);
    font-size: .9rem;
}

/* --- 8. Les questions ---------------------------------------------------- */
/* L'accordéon de Bootstrap arrive avec son fond bleu pâle à l'ouverture, son
   anneau de focus et son chevron bleu. Tout se règle par ses variables, sauf
   le chevron qui est une image. */
.lp-faq {
    --bs-accordion-border-color: var(--line);
    --bs-accordion-border-width: 1px;
    --bs-accordion-border-radius: var(--radius-sm);
    --bs-accordion-inner-border-radius: calc(var(--radius-sm) - 1px);
    --bs-accordion-bg: var(--surface);
    --bs-accordion-color: var(--ink);
    --bs-accordion-btn-color: var(--ink);
    --bs-accordion-active-bg: var(--surface);
    --bs-accordion-active-color: var(--ink);
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2314120C'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}

/* Les questions sont détachées les unes des autres. Bootstrap, qui les
   empile, retire le filet haut de toutes sauf la première : on le rend. */
.lp-faq .accordion-item {
    border: var(--stroke) solid var(--line);
    border-radius: var(--radius-sm);
}

.lp-faq .accordion-item + .accordion-item { margin-top: .6rem; }

.lp-faq .accordion-button {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .98rem;
    border-radius: calc(var(--radius-sm) - 1px);
}

.lp-faq .accordion-body {
    color: var(--ink-soft);
    font-size: .92rem;
}

/* --- L'apparition au défilement ------------------------------------------
   `.reveal` ne cache rien : c'est `.lp-armed`, posée par le script, qui donne
   l'état de départ. Sans JavaScript — ou en mouvement réduit, où le script ne
   l'arme pas — la page reste entièrement visible. */
.reveal.lp-armed {
    opacity: 0;
    transform: translateY(14px);
}

.reveal.lp-armed.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease, transform .5s ease;
}

/* Les voisins d'une même grille entrent dans le champ ensemble : sans décalage,
   six cartes apparaissent d'un bloc et l'effet ne se lit pas. */
.lp-services > *:nth-child(2).is-in,
.lp-figures > *:nth-child(2).is-in,
.lp-steps > *:nth-child(2).is-in { transition-delay: .07s; }

.lp-services > *:nth-child(3).is-in,
.lp-figures > *:nth-child(3).is-in,
.lp-steps > *:nth-child(3).is-in { transition-delay: .14s; }

.lp-services > *:nth-child(4).is-in,
.lp-figures > *:nth-child(4).is-in { transition-delay: .21s; }

.lp-services > *:nth-child(5).is-in { transition-delay: .28s; }
.lp-services > *:nth-child(6).is-in { transition-delay: .35s; }

/* --------------------------------------------------------------------------
   La page des clubs d'entreprises

   Elle emprunte toute la page d'accueil (`.lp-band`, `.lp-service`,
   `.lp-steps`, `.lp-faq`) et n'ajoute que ce qu'elle seule porte : le code de
   réduction, le message à copier, et le détail de ce que paie l'adhérent.
   ========================================================================== */

/* Le code, en grand, dans la colonne droite de l'accroche. Il est traité comme
   un bon à découper — fond jaune pâle, bord en pointillé : c'est l'objet que
   le lecteur de l'email est venu chercher. */
.club-code {
    align-self: center;
    padding: 1.5rem;
    background: var(--surface);
    border: var(--stroke) solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.club-code-value {
    padding: .85rem .5rem;
    background: var(--yellow-soft);
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    text-align: center;
}

/* Le code lui-même. L'interlettrage compte autant que la taille : c'est ce qui
   permet de le recopier à la main sans confondre deux caractères. */
.club-code-value code {
    /* Le fond des `code` ordinaires ferait une tache dans le bon. */
    padding: 0;
    background: none;
    font-family: var(--font-display);
    font-weight: 700;
    /* Il ne doit jamais déborder : un code coupé en deux lignes ne se recopie
       plus. La borne basse tient sur un téléphone de 320 px. */
    font-size: clamp(1.05rem, 4.2vw, 1.55rem);
    letter-spacing: .06em;
    color: var(--ink);
    word-break: break-all;
}

.club-code-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .45rem;
    font-family: var(--font-display);
}

.club-code-price s { color: var(--ink-soft); }

.club-code-price strong {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -.035em;
}

.club-code-price span {
    font-size: .85rem;
    color: var(--ink-soft);
}

/* Le bouton qui vient de copier. La couleur seule ne dirait rien à qui ne la
   voit pas : le libellé change aussi (voir le script de la page). */
.btn.is-copied {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--on-flat);
}

/* Quatre cartes et non six : deux rangs de deux, là où l'accueil en range
   trois. Sous 992 px, la grille de l'accueil reprend la main et empile. */
@media (min-width: 992px) {
    .club-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Le message tout prêt ------------------------------------------------ */
.club-share {
    background: var(--surface);
    border: var(--stroke) solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.club-share-text {
    padding: 1.5rem;
    font-size: .95rem;
    line-height: 1.6;
}

.club-share-text p { margin-bottom: .9rem; }

.club-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    padding: 1rem 1.5rem;
    background: var(--paper);
    border-top: var(--stroke) solid var(--hair);
}

/* --- Ce que paie l'adhérent ---------------------------------------------- */
/* Une facture, pas un tableau de prix : chaque ligne porte ce qu'on paie à
   gauche et la somme à droite, et la dernière ne cache rien de ce qui se
   facture à part. */
.club-bill li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: var(--stroke) solid var(--hair);
}

.club-bill li:last-child { border-bottom: 0; padding-bottom: 0; }
.club-bill li:first-child { padding-top: 0; }

.club-bill em {
    display: block;
    font-style: normal;
    font-size: .82rem;
    opacity: .75;
}

.club-bill strong {
    flex: none;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -.02em;
    white-space: nowrap;
}

/* --- Réductions d'écran -------------------------------------------------- */
@media (max-width: 991.98px) {
    .lp-hero,
    .lp-steps,
    .lp-posts,
    .lp-projects { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .lp-band { padding: 2.5rem 0; }
    .lp-figures { grid-template-columns: repeat(2, 1fr); }
    .lp-switch { width: 100%; }
    .lp-switch-btn { flex: 1; justify-content: center; padding-inline: .5rem; }
    .lp-addon { flex-direction: column; gap: .75rem; }

    /* La facture passe en deux lignes : côte à côte, le libellé se réduit à un
       mot par ligne et la somme n'est plus lisible d'un coup d'oeil. */
    .club-bill li {
        flex-direction: column;
        align-items: flex-start;
        gap: .25rem;
    }

    .club-share-actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Bandeau de consentement aux cookies (vanilla-cookieconsent)

   La bibliothèque arrive avec sa propre charte. On la ramène à la nôtre par
   ses variables — mêmes couleurs, même filet, même ombre douce que les cartes.
   Les boutons « Tout accepter » et « Tout refuser » restent strictement
   identiques : c'est l'exigence de la CNIL, et la raison de
   `equalWeightButtons` dans `_cookies.html`.
   ========================================================================== */
#cc-main {
    --cc-font-family: var(--bs-body-font-family);
    --cc-bg: var(--surface);
    --cc-primary-color: var(--ink);
    --cc-secondary-color: var(--ink-soft);
    --cc-link-color: var(--ink);
    --cc-modal-border-radius: var(--radius);
    --cc-btn-border-radius: var(--radius-sm);

    --cc-btn-primary-bg: var(--orange);
    --cc-btn-primary-color: var(--ink);
    --cc-btn-primary-border-color: var(--orange);
    --cc-btn-primary-hover-bg: var(--orange-hover);
    --cc-btn-primary-hover-color: var(--ink);
    --cc-btn-primary-hover-border-color: var(--orange-hover);

    --cc-btn-secondary-bg: var(--surface);
    --cc-btn-secondary-color: var(--ink);
    --cc-btn-secondary-border-color: var(--line-strong);
    --cc-btn-secondary-hover-bg: var(--wash);
    --cc-btn-secondary-hover-color: var(--ink);
    --cc-btn-secondary-hover-border-color: var(--line-strong);

    --cc-separator-border-color: var(--hair);
    --cc-toggle-on-bg: var(--ink);
    --cc-toggle-off-bg: var(--ink-soft);
    --cc-toggle-readonly-bg: var(--hair);
    --cc-cookie-category-block-bg: var(--paper);
    --cc-cookie-category-block-border: var(--hair);
    --cc-cookie-category-block-hover-bg: var(--wash);
    --cc-cookie-category-block-hover-border: var(--line);
    --cc-cookie-category-expanded-block-bg: var(--surface);
    --cc-cookie-category-expanded-block-hover-bg: var(--paper);
    --cc-footer-bg: var(--paper);
    --cc-footer-color: var(--ink-soft);
    --cc-footer-border-color: var(--hair);
    --cc-overlay-bg: rgba(10, 0, 0, .7);
}

#cc-main .cm,
#cc-main .pm {
    border: var(--stroke) solid var(--line);
    box-shadow: var(--shadow-lg);
}

#cc-main .cm__title,
#cc-main .pm__title,
#cc-main .pm__section-title,
#cc-main .cm__btn,
#cc-main .pm__btn {
    font-family: var(--font-display);
}

#cc-main .cm__btn,
#cc-main .pm__btn {
    font-weight: 600;
}

/* Le faux bouton du chat (voir la fin de `base.html`). Même place que la bulle
   de Tidio, qui le remplace une fois chargée : le visiteur clique là où il
   s'attend à trouver le chat. */
.chat-facade {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.05rem;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: var(--on-flat);
    font-family: var(--font-display);
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.chat-facade:hover:not(:disabled) {
    background: var(--orange-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.chat-facade:disabled { cursor: progress; }

@media (max-width: 575.98px) {
    /* Sur téléphone, la bulle seule : le libellé masquerait le contenu. */
    .chat-facade { padding: .75rem; }
    .chat-facade span { display: none; }
}


/* ==========================================================================
   Boîte à outils gratuits (templates/tools/)
   ==========================================================================
   Des pages d'acquisition bâties sur les bandes de la page d'accueil (.lp-*) :
   il n'y a ici que ce que ces bandes n'ont pas — les cartes d'outils et le
   résultat d'un générateur. */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.tool-card {
    color: var(--ink);
    text-decoration: none;
}

/* Le relèvement au survol vient de `a.card`. Il ne reste ici qu'à garder
   l'encre : un lien survolé passerait sinon à l'orange. */
a.tool-card:hover { color: var(--ink); }

.tool-card.is-soon { opacity: .7; }

.tool-card-icon { flex: none; }

/* L'aperçu du texte généré : une feuille blanche, bornée en hauteur pour que
   les boutons de copie restent à portée sans faire défiler toute la page. */
.tool-notice {
    max-height: 26rem;
    overflow-y: auto;
    padding: 1.1rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--hair);
    border-radius: var(--radius-sm);
    font-size: .9rem;
}

.tool-notice h1 { font-size: 1.15rem; margin-bottom: .9rem; }
.tool-notice h2 { font-size: .95rem; margin: 1.1rem 0 .35rem; }
.tool-notice p { margin-bottom: .5rem; }
.tool-notice h3 { font-size: .9rem; margin: .8rem 0 .3rem; }
.tool-notice ul { padding-left: 1.2rem; margin-bottom: .5rem; }

/* Les cases à cocher d'un générateur, avec leur ligne d'aide. */
.tool-checks { display: grid; gap: .55rem; }

/* La barre haute est collante : sans cette marge, le titre du résultat
   passerait dessous au défilement automatique. */
.tool-result { scroll-margin-top: 4.75rem; }

.tool-result .lp-ticks .fa-triangle-exclamation { color: var(--orange-ink); }

.tool-upsell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: var(--yellow-soft);
    border-radius: var(--radius-sm);
}

/* --- Simulateur de bénéfices ------------------------------------------- */
/* Le chiffre qui compte, en grand : ce qu'il reste chaque mois. */
.profit-net {
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    background: var(--mint-soft);
    border-radius: var(--radius-sm);
}

.profit-net.is-loss { background: var(--coral-soft); }

.profit-net-label { font-weight: 600; font-size: .9rem; }

.profit-net-amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 1.15;
}

.profit-net.is-loss .profit-net-amount { color: var(--red-ink); }

.profit-net-hint { font-size: .85rem; color: var(--ink-soft); }

.profit-summary { font-size: 1.05rem; line-height: 1.6; }

.profit-goal {
    padding: .75rem 1rem;
    background: var(--yellow-soft);
    border-radius: var(--radius-sm);
}

.profit-table { --bs-table-bg: transparent; }
.profit-table th { font-weight: 400; }
.profit-table td { text-align: right; white-space: nowrap; }
.profit-table tr.is-total th,
.profit-table tr.is-total td { font-weight: 700; }

.tool-more summary {
    font-weight: 600;
    cursor: pointer;
}


/* --- Générateur de noms ------------------------------------------------- */
.name-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    gap: 1rem;
}

.name-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.name-card-slogan {
    font-style: italic;
    color: var(--ink);
}

/* La disponibilité du .fr : une pastille neutre quand il est pris, verte et
   cliquable quand il est libre — c'est le seul lien vers l'inscription que
   porte chaque carte. */
.name-domain {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .8rem;
    color: var(--ink-soft);
    background: var(--paper);
    border: 1px solid var(--hair);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.name-domain.is-free {
    color: var(--green-ink);
    background: var(--mint-soft);
    border-color: var(--green-ink);
    font-weight: 600;
}

.name-domain.is-free:hover { background: var(--mint); color: var(--ink); }

.name-domain.is-pending { opacity: .7; }

.btn.is-busy { cursor: progress; opacity: .85; }


/* --- Audit SEO ---------------------------------------------------------- */
.seo-form-row {
    display: flex;
    gap: .6rem;
}

.seo-form-row .form-control { min-width: 0; }

@media (max-width: 575.98px) {
    .seo-form-row { flex-direction: column; }
}

/* L'attente : une pastille qui respire, rien de plus. */
.seo-wait {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.8rem;
    background: var(--orange-soft);
    color: var(--orange-ink);
    border-radius: 1.2rem;
    animation: seo-breathe 1.8s ease-in-out infinite;
}

@keyframes seo-breathe {
    50% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .seo-wait { animation: none; }
}

.seo-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 767.98px) {
    .seo-head { grid-template-columns: 1fr; }
}

.seo-shot img {
    display: block;
    width: 11rem;
    max-width: 100%;
    margin-inline: auto;
    border: var(--stroke) solid var(--line);
    border-radius: 1.1rem;
    box-shadow: var(--shadow);
}

.seo-scores {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 34rem;
}

@media (max-width: 459.98px) {
    .seo-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.seo-score { text-align: center; }

/* Les couleurs de Google, pour que le visiteur retrouve ici ce qu'il verrait
   chez lui : vert au-dessus de 90, orange de 50 à 89, rouge en dessous. */
.seo-ring {
    --tone: var(--ink-soft);
    --p: 0;
    display: grid;
    place-items: center;
    width: 4.6rem;
    height: 4.6rem;
    margin: 0 auto .5rem;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, var(--surface) 76%, transparent 78%),
        conic-gradient(var(--tone) calc(var(--p) * 1%), var(--hair) 0);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--tone);
}

.seo-ring.is-good, .seo-dot.is-good { --tone: var(--green-ink); }
.seo-ring.is-fair, .seo-dot.is-fair { --tone: var(--orange-ink); }
.seo-ring.is-poor, .seo-dot.is-poor { --tone: var(--red-ink); }

.seo-score-label {
    font-size: .82rem;
    font-weight: 600;
}

.seo-dot {
    --tone: var(--ink-soft);
    display: inline-block;
    flex: none;
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: var(--tone);
}

.seo-summary {
    font-size: 1.05rem;
    line-height: 1.6;
}

.seo-reco-num { flex: none; }

.seo-tag {
    display: inline-block;
    padding: .1rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    background: var(--paper);
    border: 1px solid var(--hair);
}

.seo-tag.is-fort { background: var(--coral-soft); border-color: var(--red-ink); }
.seo-tag.is-moyen { background: var(--yellow-soft); border-color: var(--orange-ink); }

.seo-how { padding-left: 1.2rem; }
.seo-how li { margin-bottom: .3rem; }

.seo-metrics li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--hair);
}

.seo-issues {
    padding: .8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: var(--radius-sm);
}

.seo-issues summary {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    cursor: pointer;
}

.seo-issue {
    padding: .6rem 0;
    border-top: 1px solid var(--hair);
}

/* --- Audit SEO : le plan à télécharger ------------------------------------
   Le rapport s'efface : le plan téléchargé est tout ce qui reste. Un bloc
   franc sous les notes, un rappel dans le plan, un autre à sa fin, et une
   barre en bas d'écran quand aucun n'est visible. */
.seo-download {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 2rem;
    padding: 1.75rem;
    background: var(--surface);
    border: 2px solid var(--orange);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.seo-download-doc {
    flex: none;
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 5.25rem;
    font-size: 2rem;
    color: var(--orange-ink);
    background: var(--orange-soft);
    border-radius: .5rem 1.4rem .5rem .5rem;
}

.seo-download-body { flex: 1; min-width: 0; }

.seo-download-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.seo-download-more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 .25rem;
    margin-top: .6rem;
    font-size: .85rem;
    color: var(--ink-soft);
}
.seo-download-more .btn-link { padding: .2rem .4rem; font-size: inherit; }

.seo-download-warn {
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--hair);
    font-size: .85rem;
    color: var(--red-ink);
}

.seo-download-end { margin-top: 0; }

@media (max-width: 575.98px) {
    .seo-download { flex-direction: column; gap: 1rem; padding: 1.25rem; }
    .seo-download-doc { width: 3.25rem; height: 4rem; font-size: 1.5rem; }
    .seo-download .btn-lg { width: 100%; }
}

.seo-plan-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    padding: .9rem 1rem .9rem 1.25rem;
    background: var(--orange-soft);
    border-radius: var(--radius);
    font-weight: 600;
}
.seo-plan-cta i { color: var(--orange-ink); }

.seo-sticky {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(42rem, calc(100% - 2rem));
    padding: .6rem .6rem .6rem 1.25rem;
    transform: translateX(-50%);
    background: var(--deep);
    color: var(--ink);
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
}
.seo-sticky[hidden] { display: none; }
.seo-sticky-say { flex: 1; min-width: 0; font-size: .9rem; }
.seo-sticky .btn { flex: none; border-radius: 999px; }

/* En bas à droite vit la bulle du chat : sur un écran étroit, la barre passe
   au-dessus d'elle plutôt que de la recouvrir. */
@media (max-width: 991.98px) {
    .seo-sticky { bottom: 4.5rem; width: calc(100% - 2rem); }
    .seo-sticky-say { font-size: .82rem; line-height: 1.25; }
}

/* --- Audit SEO, page de l'outil : l'aperçu du plan en PDF ----------------- */
.seo-sample-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
@media (max-width: 991.98px) {
    .seo-sample-split { grid-template-columns: 1fr; gap: 2.5rem; }
}

.seo-sample-points li {
    display: flex;
    gap: .75rem;
    margin-bottom: .75rem;
}
.seo-sample-points i {
    flex: none;
    width: 1.25rem;
    margin-top: .2rem;
    color: var(--orange-ink);
    text-align: center;
}

/* Une page A4 en miniature, légèrement inclinée. */
.seo-sample {
    position: relative;
    max-width: 26rem;
    margin: 0 auto;
    padding: 1.75rem 1.75rem 0;
    aspect-ratio: 1 / 1.25;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: .5rem;
    box-shadow: var(--shadow-lg);
    transform: rotate(1.5deg);
    font-size: .72rem;
    line-height: 1.4;
}
.seo-sample-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .2rem .55rem;
    font-weight: 700;
    color: var(--on-flat);
    background: var(--red-ink);
    border-radius: .35rem;
}
.seo-sample-brand {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
}
.seo-sample-brand span {
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--orange);
    border-radius: .3rem;
}
.seo-sample-eyebrow { font-size: .6rem; font-weight: 700; text-transform: uppercase; color: var(--orange-ink); }
.seo-sample-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.15; }
.seo-sample-host { margin-bottom: .8rem; font-weight: 700; color: var(--orange-ink); }
.seo-sample-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
    margin-bottom: 1rem;
}
.seo-sample-scores div {
    padding: .4rem;
    text-align: center;
    font-size: .6rem;
    color: var(--ink-soft);
    background: var(--wash);
    border-radius: .35rem;
}
.seo-sample-scores b { display: block; font-family: var(--font-display); font-size: 1rem; }
.seo-sample-scores .is-good { color: var(--green-ink); }
.seo-sample-scores .is-fair { color: var(--orange-ink); }
.seo-sample-scores .is-poor { color: var(--red-ink); }
.seo-sample-phase { margin-bottom: .5rem; font-family: var(--font-display); font-size: .85rem; font-weight: 700; }
.seo-sample-reco {
    display: flex;
    gap: .6rem;
    padding-bottom: .7rem;
    margin-bottom: .7rem;
    border-bottom: 1px solid var(--hair);
}
.seo-sample-box {
    flex: none;
    width: .8rem;
    height: .8rem;
    margin-top: .15rem;
    border: 1.5px solid var(--ink);
    border-radius: .2rem;
}
.seo-sample-reco-title { font-weight: 700; }
.seo-sample-tags { font-size: .6rem; color: var(--orange-ink); }
.seo-sample-paste {
    margin-top: .4rem;
    padding: .4rem .5rem;
    background: var(--wash);
    border-radius: .25rem;
}
.seo-sample-fade {
    position: absolute;
    inset: auto 0 0;
    height: 4rem;
    background: linear-gradient(transparent, var(--surface));
}

/* --- Audit SEO : le plan d'action, comme document de travail ------------- */
.seo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.seo-basics { max-width: 34rem; }

.seo-bar {
    height: .5rem;
    background: var(--hair);
    border-radius: 999px;
    overflow: hidden;
}

.seo-bar > span {
    display: block;
    height: 100%;
    background: var(--green-ink);
    border-radius: 999px;
    transition: width .25s ease;
}

@media (prefers-reduced-motion: reduce) {
    .seo-bar > span { transition: none; }
}

.seo-delta {
    display: inline-block;
    padding: 0 .4rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    background: var(--paper);
    border: 1px solid var(--hair);
}

.seo-delta.is-up { background: var(--mint-soft); color: var(--green-ink); border-color: var(--green-ink); }
.seo-delta.is-down { background: var(--coral-soft); color: var(--red-ink); border-color: var(--red-ink); }

.seo-compare-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .3rem 0;
    border-bottom: 1px solid var(--hair);
    font-size: .92rem;
}

.seo-phase { margin: 2rem 0 .5rem; }
.seo-phase:first-of-type { margin-top: 1rem; }

/* Une action : sa case à cocher d'abord, puis tout ce qu'il faut pour la faire. */
.seo-reco-head {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.seo-reco-head .min-w-0 { min-width: 0; }

.seo-reco-title { line-height: 1.35; }

.seo-reco-body {
    margin-top: 1rem;
    padding-left: 2.6rem;
}

@media (max-width: 575.98px) {
    .seo-reco-body { padding-left: 0; }
}

.seo-more > summary {
    margin-bottom: .9rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--orange-ink);
    cursor: pointer;
}

.seo-more[open] > summary { margin-bottom: 1rem; }

.seo-reco.is-done { background: var(--mint-soft); }
.seo-reco.is-done .seo-reco-title { text-decoration: line-through; color: var(--ink-soft); }
.seo-reco.is-done .seo-reco-body { opacity: .6; }

.seo-check {
    position: relative;
    flex: none;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.seo-check input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.seo-check-box {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border: var(--stroke) solid var(--line-strong);
    border-radius: .5rem;
    background: var(--surface);
    color: transparent;
    font-size: .8rem;
    transition: background .15s, border-color .15s, color .15s;
}

.seo-check:hover .seo-check-box { background: var(--wash); }
.seo-check input:checked + .seo-check-box { background: var(--mint); border-color: var(--mint); color: var(--on-flat); }
.seo-check input:focus-visible + .seo-check-box { outline: 2px solid var(--orange-ink); outline-offset: 2px; }

.seo-label {
    margin-bottom: .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.seo-found {
    margin-bottom: 1rem;
    padding: .7rem .9rem;
    background: var(--yellow-soft);
    border-radius: var(--radius-sm);
    font-size: .95rem;
}

.seo-found .seo-label { margin-bottom: .15rem; }

.seo-proposal {
    background: var(--paper);
    border: 1px solid var(--hair);
    border-radius: var(--radius-sm);
    padding: .7rem .8rem;
}

.seo-proposal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .5rem;
}

.seo-text {
    padding: .6rem .75rem;
    background: var(--surface);
    border: 1px dashed var(--ink-soft);
    border-radius: .5rem;
    white-space: pre-wrap;
}

.seo-code {
    max-height: 18rem;
    overflow: auto;
    padding: .75rem;
    background: var(--deep);
    color: #F7F3E6;
    border-radius: .5rem;
    font-size: .8rem;
}

.seo-code code { color: inherit; white-space: pre; }

.seo-verify {
    display: flex;
    align-items: baseline;
    padding: .55rem .8rem;
    background: var(--mint-soft);
    border-radius: var(--radius-sm);
    font-size: .9rem;
}

.seo-verify i { color: var(--green-ink); }

.seo-keyword {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .7rem .9rem;
    margin-bottom: .5rem;
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: var(--radius-sm);
}

/* L'aperçu Google : la seule chose ici qui imite un site tiers, d'où ses
   couleurs propres (le bleu des titres, le vert de l'adresse). */
.seo-serp-card {
    padding: 1rem 1.15rem;
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: var(--radius-sm);
    font-family: Arial, sans-serif;
}

.seo-serp-url { font-size: .8rem; color: #4d5156; }
.seo-serp-title { margin: .1rem 0; font-size: 1.15rem; line-height: 1.3; color: #1a0dab; }
.seo-serp-desc { font-size: .88rem; line-height: 1.5; color: #4d5156; }

.seo-check-row {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .6rem 0;
    border-top: 1px solid var(--hair);
}

.seo-status {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: .1rem;
    border-radius: 50%;
    font-size: .68rem;
    color: #fff;
    background: var(--ink-soft);
}

.seo-check-row.is-ok .seo-status { background: var(--green-ink); }
.seo-check-row.is-warn .seo-status { background: var(--orange-ink); }
.seo-check-row.is-fail .seo-status { background: var(--red-ink); }

.seo-outline li { padding: .2rem 0; font-size: .92rem; }
.seo-examples li { padding: .1rem 0; overflow-wrap: anywhere; }

.seo-recent {
    padding: .8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: var(--radius-sm);
}

.seo-recent li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .2rem .6rem;
    padding: .25rem 0;
}

/* --- Mes audits --- */
.seo-run {
    display: grid;
    grid-template-columns: 6.5rem repeat(4, minmax(0, 1fr)) 6.5rem auto;
    gap: .5rem;
    align-items: center;
    padding: .65rem 0;
    border-top: 1px solid var(--hair);
}

.seo-run-head {
    padding-top: 0;
    border-top: 0;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-soft);
}

.seo-run-score { text-align: center; }
.seo-run-label { display: none; font-size: .68rem; color: var(--ink-soft); }
.seo-run-wide { grid-column: 2 / 7; }

.seo-run-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
}

.seo-pill {
    display: inline-block;
    min-width: 2.2rem;
    padding: .12rem .5rem;
    border-radius: 999px;
    background: var(--wash);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .85rem;
}

.seo-pill.is-good { background: var(--mint-soft); color: var(--green-ink); }
.seo-pill.is-fair { background: var(--yellow-soft); }
.seo-pill.is-poor { background: var(--coral-soft); color: var(--red-ink); }

@media (max-width: 767.98px) {
    .seo-run {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem 1rem;
    }
    .seo-run-head { display: none; }
    .seo-run-label { display: block; }
    .seo-run > :first-child { flex: 1 0 100%; }
    .seo-run-actions { margin-left: auto; }
}

/* --- Impression : le plan sur papier, sans le décor --- */
@media print {
    .app-sidebar, .app-topbar, .site-footer, .no-print { display: none !important; }
    .seo-report .lp-band { padding: 1rem 0 !important; background: none !important; }
    .seo-report .card, .seo-report .seo-issues { box-shadow: none !important; break-inside: avoid; }
    .seo-reco.is-done .seo-reco-body { opacity: 1; }
    .seo-code { max-height: none; background: none; color: inherit; border: 1px solid var(--ink); }
}

/* --- Médiathèque --- */

/* Les pièces jointes d'une demande : une grille de vignettes, chacune avec
   sa croix pour la retirer. */
.attach-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: .5rem;
    margin-bottom: .75rem;
}
.attach-list.d-none { display: none !important; }
.attach-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: .5rem;
    overflow: hidden;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
}
.attach-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.attach-remove {
    position: absolute;
    top: .3rem;
    right: .3rem;
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: .8rem;
}
.attach-remove:hover,
.attach-remove:focus-visible { background: #000; }
/* Un logo se montre en entier : rogné, on ne le reconnaît plus. */
.attach[data-max="1"] .attach-item { background: #fff; }
.attach[data-max="1"] .attach-item img { object-fit: contain; padding: .35rem; }
.min-w-0 { min-width: 0; }

.media-library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}
.media-card-img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0;
    background: var(--bs-tertiary-bg);
}
.media-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --------------------------------------------------------------------------
   Les pages de présentation par service (sites, avantages, posts Facebook)

   Elles sont bâties sur les bandes de la page d'accueil (`.lp-*`, voir
   `landing/_bands.html`). Il n'y a ici que ce qu'elles ajoutent : le lien
   « en savoir plus » qui mène de l'accueil vers elles, les trois offres de
   tête empilées dans l'accroche, et les thèmes du catalogue.
   ========================================================================== */

/* Le lien vers une page dédiée. Un lien et non un bouton : l'accueil garde un
   seul appel à l'action par bande, celui qui crée le compte. */
.lp-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .2em;
    text-decoration-color: var(--orange);
}

.lp-more:hover { color: var(--ink); text-decoration-color: var(--ink); }

.lp-more i { font-size: .75em; transition: transform .12s ease; }
.lp-more:hover i { transform: translateX(2px); }

/* Les trois offres de tête, empilées dans la colonne de l'accroche. */
.lp-perk-stars-stack {
    grid-template-columns: minmax(0, 1fr);
    max-width: 26rem;
    margin-inline: auto;
}

.lp-perk-stars-stack .lp-perk-star:nth-child(2) { margin-left: 1.5rem; margin-right: -1.5rem; }

/* Les thèmes du catalogue : un titre et deux rangs de cartes chacun. */
.lp-theme + .lp-theme { margin-top: 2.25rem; }

.lp-theme-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -.02em;
}

/* L'exemple de post dans l'accroche de la page Posts : il ne doit pas
   dépasser la colonne, ni paraître plus large que le texte à côté. */
.lp-hero-show > .lp-post { max-width: 30rem; margin-inline: auto; }

@media (max-width: 991.98px) {
    .lp-perk-stars-stack .lp-perk-star:nth-child(2) { margin-inline: 0; }
}

/* --- Le menu des visiteurs ----------------------------------------------
   Les liens de la barre haute reprennent `.lp-topnav`. Sous 992 px, ils
   passent dans un panneau qui s'ouvre sous la barre : la barre doit donc
   pouvoir passer à la ligne, et le panneau prendre toute la largeur. */
.app-topbar { flex-wrap: wrap; }

.site-nav-mobile {
    flex-basis: 100%;
}

.site-nav-mobile.show,
.site-nav-mobile.collapsing {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding-top: .5rem;
}

.site-nav-mobile a {
    padding: .6rem .75rem;
    border-radius: .55rem;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}

.site-nav-mobile a:hover { background: var(--wash); color: var(--ink); }

.site-nav-mobile a.is-on { background: var(--orange-soft); }

.site-nav-mobile .site-nav-login {
    margin-top: .35rem;
    border-top: 1px solid var(--hair);
    border-radius: 0;
}

/* --------------------------------------------------------------------------
   Les demandes sur un site

   Le texte d'une demande est celui du client, tel qu'il l'a tapé : ses retours
   à la ligne font partie du message (une liste d'horaires, trois changements
   l'un sous l'autre), ils sont donc gardés. Dans la file de l'administration,
   trois lignes suffisent à savoir de quoi il s'agit.
   -------------------------------------------------------------------------- */

.request-message { white-space: pre-line; overflow-wrap: anywhere; }

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.request-brief {
    font-family: var(--bs-font-monospace);
    font-size: .8rem;
    line-height: 1.45;
}

/* ==========================================================================
   Les signatures d'Eulatech, posées par-dessus les composants
   ========================================================================== */

body {
    font-size: 1rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--cream);
}

::selection { background: var(--orange); color: var(--on-flat); }

/* Le texte au dégradé du renard, comme sur la vitrine. */
.fox-text {
    background: var(--grad-fox);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Le surligneur devient un coup de pinceau orange sous le mot : le jaune
   n'appartient pas à la palette du renard. */
.hl {
    background: linear-gradient(transparent 58%, rgba(249, 137, 51, .55) 58%, rgba(249, 137, 51, .55) 92%, transparent 92%);
    color: var(--cream);
}
.card-hero .hl { background: linear-gradient(transparent 58%, rgba(23, 0, 1, .22) 58%, rgba(23, 0, 1, .22) 92%, transparent 92%); color: var(--on-flat); }

/* Sur-titre : la police à chasse fixe et les oreilles du renard. */
.eyebrow {
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: .14em;
    color: var(--orange);
}
.eyebrow::before {
    width: 22px;
    height: 12px;
    border-radius: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 14'%3E%3Cpath d='M2 13 6.5 2 11 9.5M15 9.5 19.5 2 24 13' fill='none' stroke='%23000' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 14'%3E%3Cpath d='M2 13 6.5 2 11 9.5M15 9.5 19.5 2 24 13' fill='none' stroke='%23000' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card-hero .eyebrow::before { background: var(--on-flat); }
.lp-band-ink .eyebrow::before { background: var(--orange); }

/* --- Boutons : des pilules, le geste principal au dégradé du renard ------- */
.btn {
    --bs-btn-border-radius: 999px;
    font-weight: 650;
    letter-spacing: 0;
    padding: .6rem 1.25rem;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s cubic-bezier(.2, .8, .2, 1),
                color .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-sm { padding: .4rem .9rem; }
.btn-lg { padding: .85rem 1.6rem; }

.btn-primary {
    background-image: var(--grad-fox);
    border-color: transparent;
}
.btn-primary:hover:not(:disabled):not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -12px rgba(249, 137, 51, .8);
}
.btn-primary:disabled, .btn-primary.disabled { background-image: none; }

.btn-outline-secondary {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-bg: rgba(252, 241, 222, .04);
    --bs-btn-hover-color: var(--orange);
    --bs-btn-hover-border-color: var(--orange);
    --bs-btn-active-bg: rgba(252, 241, 222, .08);
    --bs-btn-active-border-color: var(--orange);
}
.btn-outline-danger { --bs-btn-bg: transparent; }

/* Sur la carte d'accroche (le dégradé du renard), le bouton passe à la nuit,
   comme le bouton du bandeau final de la vitrine. */
.btn-light,
.card-hero .btn-primary {
    background-image: none;
    --bs-btn-bg: var(--paper);
    --bs-btn-color: var(--cream);
    --bs-btn-border-color: var(--paper);
    --bs-btn-hover-bg: var(--wash);
    --bs-btn-hover-color: var(--cream);
    --bs-btn-hover-border-color: var(--wash);
    --bs-btn-active-bg: var(--wash);
    --bs-btn-active-color: var(--cream);
    --shadow-btn: 0 10px 30px -12px rgba(23, 0, 1, .6);
}
.card-hero .btn-outline-secondary {
    --bs-btn-color: var(--on-flat);
    --bs-btn-hover-color: var(--on-flat);
    --bs-btn-active-color: var(--on-flat);
    --bs-btn-border-color: rgba(23, 0, 1, .35);
    --bs-btn-hover-border-color: var(--on-flat);
}
.card-hero .badge[class*="text-bg-"] { background: var(--paper) !important; color: var(--cream) !important; }

/* --- Étiquettes et pastilles posées sur un aplat ------------------------- */
.badge.text-bg-primary { color: var(--on-flat) !important; }
.badge.text-bg-warning { color: #ffe27a !important; }
.badge.text-bg-info { color: #d4c8ff !important; }
.badge.text-bg-secondary { color: var(--orange-ink) !important; }
.lp-perk-star-offer { color: var(--on-flat); }
.perk-logo:has(.perk-logo-initials) { background: var(--orange); }

/* --- Cartes et surfaces -------------------------------------------------- */
.card {
    --bs-card-bg: var(--surface);
    --bs-card-color: var(--ink);
    --bs-card-border-color: var(--line);
    --bs-card-cap-bg: transparent;
}
.modal { --bs-modal-bg: var(--surface); --bs-modal-border-color: var(--line); }
.dropdown-menu { --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--line); --bs-dropdown-link-color: var(--ink); --bs-dropdown-link-hover-bg: var(--wash); }
.offcanvas, .offcanvas-lg { --bs-offcanvas-bg: var(--surface); --bs-offcanvas-color: var(--ink); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--line); --bs-table-striped-bg: rgba(252, 241, 222, .03); --bs-table-hover-bg: rgba(252, 241, 222, .05); }
.accordion { --bs-accordion-bg: var(--surface); --bs-accordion-border-color: var(--line); --bs-accordion-active-bg: var(--wash); --bs-accordion-active-color: var(--cream); --bs-accordion-btn-color: var(--ink); --bs-accordion-color: var(--ink); }
.progress { --bs-progress-bg: var(--wash); --bs-progress-bar-bg: var(--orange); }
.nav-tabs { --bs-nav-tabs-border-color: var(--line); --bs-nav-tabs-link-active-bg: var(--surface); --bs-nav-tabs-link-active-color: var(--cream); --bs-nav-tabs-link-active-border-color: var(--line) var(--line) var(--surface); }
.nav-link { --bs-nav-link-color: var(--ink-soft); --bs-nav-link-hover-color: var(--orange); }
.form-check-input { background-color: var(--wash); border-color: var(--line-strong); }
.form-check-input:checked { background-color: var(--orange); border-color: var(--orange); }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* --- La marque dans la colonne : la tête du renard ------------------------ */
.app-brand { font-weight: 800; letter-spacing: -.02em; color: var(--cream); }
.app-brand:hover { color: var(--cream); }
.app-brand .tech { color: var(--orange); }
.app-brand-logo { width: 36px; height: 36px; flex: none; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.app-brand:hover .app-brand-logo { transform: rotate(-8deg) scale(1.06); }

.app-sidebar,
.app-sidebar.offcanvas-lg { background: var(--surface) !important; }
@media (min-width: 992px) {
    .app-sidebar { background: var(--surface) !important; }
}
.app-menu-link.active,
.app-submenu-link.active { color: var(--cream); background: var(--orange-soft); box-shadow: inset 2px 0 0 var(--orange); }
.app-menu-link:hover,
.app-submenu-link:hover { background: rgba(252, 241, 222, .05); }
.app-promo { background: var(--orange-soft); border: var(--stroke) solid rgba(249, 137, 51, .25); }

/* Le fond de page porte la même lueur que la vitrine, discrètement. */
body.app-body {
    background:
        radial-gradient(ellipse 60% 40% at 85% -5%, rgba(249, 137, 51, .10), transparent 70%),
        var(--paper);
    background-attachment: fixed;
}

/* Sur la carte d'accroche, la pastille sombre garde un pictogramme renard. */
.card-hero .icon-pill i,
.card-hero .icon-pill .fa-solid { color: var(--orange) !important; }
