/* ============================================================
   Copie de prototype de main-landing@2efdee9 : le SOCLE VISUEL de
   toutes les pages de landing/ (jetons, racine, typographie par
   défaut, boutons, tags, motifs signature).

   Chargé APRÈS ../css/tokens.css et ../css/components.css : on garde
   leurs polices (Museo Sans sur le CDN, Mukta Mahee auto-hébergée),
   le .sr-only et le sélecteur de plateforme, et on surcharge le reste.

   Trois partis pris, à connaître avant d'écrire une page :
   1. LA RACINE REJOUE CELLE DE LA PROD (_global.sass:44-50). Entre
      1201 et 1680 px, 1rem ne vaut pas 16 px (12,32 px à 1440). Les
      `rem` de la source se recopient donc TELS QUELS : ils rendent
      comme en prod à toutes les largeurs. Les `px` aussi.
   2. PAS DE `* { font-family: Mukta Mahee }` comme en prod : le corps
      est en Mukta Mahee et l'héritage fait le reste. Une section qui
      pose Museo Sans sur son conteneur le transmet à ses enfants
      (en prod il fallait le répéter sur chaque balise).
   3. LA LANDING EST TOUJOURS CLAIRE ET TOUJOURS MAPi : jetons en
      valeurs littérales, jamais branchés sur --blue & co, pour ne
      suivre ni la marque blanche ni le chrome sombre du prototype.
   ============================================================ */

/* ---------- Racine : 1rem = celui de la prod à chaque largeur ----------
   tokens.css pose `html { font-size: var(--tx-root) }` (18 px dans le
   reste du prototype) : on ne redéfinit que la variable. Le « saut » à
   1201 px (16 px → 11,6 px) est hérité de la prod, voulu ici. */
:root { --tx-root: 16px; }
@media (min-width: 1201px) and (max-width: 1440px) { :root { --tx-root: calc(50% + .3vw); } }
@media (min-width: 1441px) and (max-width: 1680px) { :root { --tx-root: calc(60% + .3vw); } }

/* ---------- Jetons ----------
   Sur :root (et non sur body.lp) pour qu'ils servent aussi à <html>
   et au panneau du sélecteur, porté sur <body>. Cette feuille n'est
   chargée que par les pages de landing/ : aucune fuite ailleurs. */
:root {
    /* Noms de design.md §4.4 : ceux que les pages emploient d'abord */
    --lp-blue: #006DEC;              /* $secondary : liens, titres, boutons */
    --lp-orange: #FF934F;            /* $tertiary : soulignements, socles, badges */
    --lp-ink: #28323E;               /* $main-text : texte, fonds sombres expert */
    --lp-ink-2: #2D2D31;             /* titres des sections expert (HeroExpert, OptionPro) */
    --lp-blue-pale: #EBF6FF;         /* $p-lightest : pilule du header, fonds clairs */
    --lp-grey: #EDF1F5;              /* $grey : bordures de cartes */
    --lp-bg: #F7F7FA;                /* $grey-background : fond de <main> */
    --lp-border: #DEDFE0;            /* $grey-border : chips, cartes d'index */
    --lp-card-border: #626263;       /* $darker-grey : bord 1 px des cartes expert */
    --lp-text-2: #474444;            /* $dark-grey : textes secondaires des sous-pages */
    --lp-text-3: #8C8C8C;            /* $darkish-grey : métadonnées */
    --lp-navy: #1C216D;              /* $primary : ombres de Price, couleur par défaut du Button */
    --lp-success: #09BC8A;           /* hors charte prototype, fidélité au site public */
    --lp-error: #EF4A49;
    --lp-warning: #FCC844;
    --lp-white: #FFFFFF;

    /* Le reste du nuancier _colors.sass, à l'identique */
    --lp-p-darker: #141959;
    --lp-p-dark: #232656;
    --lp-p-light: #353B99;
    --lp-p-lighter: #A4A6C2;
    --lp-p-transparent: #1C216D66;
    --lp-gradient-blue: linear-gradient(31.88deg, #006DEC 15.76%, #1676e4 58.18%, #2a82e6 97.48%);
    --lp-s-darker: #003a7b;
    --lp-s-dark: #004faa;
    --lp-s-light: #2a82e6;
    --lp-s-transparent: #006DEC99;
    --lp-s-transparent-more: #006DEC59;
    --lp-s-autocomplete: #006DEC20;
    --lp-t-dark: #FB8F42;
    --lp-t-light: #FFB279;
    --lp-t-transparent: #FC9F5B48;
    --lp-t-autocomplete: #FF934F20;
    --lp-success-transparent: #09bc8920;
    --lp-warning-transparent: #FCC84499;
    --lp-error-transparent: #EF4A4932;
    --lp-info: #4D69FB;
    --lp-black: #000000;
    --lp-black-shadow: #00000030;
    --lp-lighter-black: #4F5362;
    --lp-dark-grey-transparent: rgba(140, 140, 140, .7);
    --lp-darker-grey-strong: #373737;
    --lp-darkish-grey-transparent: #8c8c8cBF;
    --lp-grey-blue: #a3bcd4;
    --lp-lightish-grey: #dddfe0;
    --lp-light-grey: #f0f1f2;
    --lp-lighter-grey: #f8f9f9;
    --lp-light-grey-transparent: #f0f1f25d;
    --lp-slate: #586173;
    --lp-slate-mut: #6e7a8e;
    --lp-success-soft: #E8F9ED;
    --lp-success-ink: #1E7C3C;
    --lp-turquoise: #00CED8;
    --lp-light-green: #9DF28B;
    --lp-light-yellow: #EEE8A9;
    --lp-purple: #9F4697;
    --lp-pink: #D37096;
    --lp-olive: #306863;
    --lp-linkedin: #0e76a8;
    /* Couleurs posées en dur dans les composants landing */
    --lp-avatar-border: #F4F6FF;     /* bord des avatars Expertise */
    --lp-photo-dark: #1C1C1C;        /* fond de l'image du hero expert */

    /* Polices (déclarées par ../css/tokens.css) */
    --lp-font-display: 'Museo Sans', 'Mukta Mahee', sans-serif;
    --lp-font-body: 'Mukta Mahee', sans-serif;

    /* Motifs */
    --lp-grad-border: linear-gradient(to bottom right, #006DEC, #FFFFFF, #FF934F, #FFFFFF, #006DEC);

    /* Ombres dures (signature) et douces, design.md §1.6 */
    --lp-hard-orange: 4px 4px 0 0 #FF934F;
    --lp-hard-blue: 4px 4px 0 0 #006DEC;
    --lp-hard-blue-8: 8px 8px 0 0 #006DEC;
    --lp-hard-navy: 4px 4px 0 0 #1C216D;
    --lp-hard-ink: 4px 4px 0 0 #28323E;
    --lp-soft: 4px 4px 6px 0 rgba(0, 0, 0, .10);
    --lp-soft-strong: 4px 4px 6px 0 rgba(0, 0, 0, .30);
    --lp-smooth: 4px 4px 12px 0 rgba(0, 0, 0, .07);
    --lp-panel: 0 4px 20px rgba(0, 0, 0, .12);
    --lp-search: 0 4px 4px 0 rgba(0, 0, 0, .25), 4px 4px 6px 0 rgba(0, 0, 0, .10);
    --lp-modal: 4px 4px 10px rgba(0, 0, 0, .25);
    --lp-light-shadow: 1px 1px 2px #0000004D;
    --lp-shadow: 2px 2px 4px #00000030;
    --lp-deep-shadow: 4px 4px 10px #00000030;

    /* Rayons, design.md §1.5 ($s-rad 2, $m-rad 3, $l-rad 10) */
    --lp-r-xxs: 2px;
    --lp-r-xs: 3px;
    --lp-r-sm: 8px;
    --lp-r: 10px;
    --lp-r-md: 16px;
    --lp-r-lg: 24px;
    --lp-r-xl: 40px;
    --lp-r-pill: 2rem;
    --lp-r-signature: 3px 3px 15px 3px;   /* coin bas-droit plus rond (.wrapper-1) */

    /* Nombre d'or et gabarits (_variables.sass) */
    --lp-phi: 1.618;
    --lp-s-section: 61.8rem;

    /* Titres par défaut (_typos.sass, > 1200 px ; voir la media query plus bas) */
    --lp-h1: 2rem;
    --lp-h2: 1.6rem;
    --lp-h3: 1.375rem;
    --lp-h4: 1.125rem;
    --lp-h5: .93rem;
    --lp-h6: .67rem;

    /* Coquille : 116 px = headerHeight de la prod (padding-top de <main>) ;
       --lp-bar-h est republié en direct par lp-coquille.js (hauteur de la pilule) */
    --lp-header-h: 116px;
    --lp-bar-h: 60px;

    /* Échelle de z-index de la landing (CLAUDE.md, « Landing, la dixième plateforme ») : le header et son menu
       mobile restent SOUS le panneau du sélecteur de plateforme (z 210,
       ../css/components.css) ; modales et toasts passent au-dessus. */
    --lp-z-contenu: 1;
    --lp-z-decor: 2;
    --lp-z-entete: 100;
    --lp-z-menu: 150;
    --lp-z-liste: 160;   /* suggestions de la recherche SIREN, portées sur <body> : au-dessus du header */
    --lp-z-modale: 220;
    --lp-z-toast: 230;

    /* Mouvements de la prod (aucun des easings du prototype) */
    --lp-ease-card: cubic-bezier(.4, 0, .2, 1);
}
@media (max-width: 1200px) {
    :root { --lp-h1: 1.3rem; --lp-h2: 1.2rem; --lp-h3: 1.1rem; --lp-h4: 1rem; }
}

/* ---------- Document ---------- */
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body.lp {
    font-family: var(--lp-font-body);
    color: var(--lp-ink);
    background: var(--lp-white);
    line-height: 1.15;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
@media (max-width: 1200px) { body.lp { min-height: 100dvh; } }

/* Règles de TYPE de la prod (_global.sass), à spécificité nulle : elles
   donnent le rendu par défaut sans jamais battre une classe de page. */
:where(body.lp) :where(h1, h2, h3, h4, h5, h6) {
    color: var(--lp-blue);
    line-height: 1.15;
    margin-bottom: 1rem;
}
:where(body.lp) :where(h1, h2, h3) { font-weight: 700; }
:where(body.lp) :where(h4, h5, h6) { font-weight: 500; }
:where(body.lp) :where(h1) { font-size: var(--lp-h1); }
:where(body.lp) :where(h2) { font-size: var(--lp-h2); }
:where(body.lp) :where(h3) { font-size: var(--lp-h3); }
:where(body.lp) :where(h4) { font-size: var(--lp-h4); }
:where(body.lp) :where(h5) { font-size: var(--lp-h5); }
:where(body.lp) :where(h6) { font-size: var(--lp-h6); }
:where(body.lp) :where(h1 a) { font-weight: 700; text-decoration: underline; }
:where(body.lp) :where(p) { font-size: 1rem; }
:where(body.lp) :where(a) { color: var(--lp-blue); text-decoration: none; }
:where(body.lp) :where(ul, ol) { margin-block-end: .5em; padding-inline-start: 2rem; }
:where(body.lp) :where(section) { position: relative; }
:where(body.lp) :where(img) { user-select: none; -webkit-user-select: none; }
:where(body.lp) :where(svg) { max-width: 100%; max-height: 100%; }
:where(body.lp) :where(button) { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
:where(body.lp) :where(i) { font-style: normal; }
:where(body.lp) :where(pre) { white-space: pre-wrap; }

/* Focus : la prod l'éteint partout (`outline: none` sur *). Garde-fou du
   prototype : un focus clavier toujours visible, bleu sur fond clair. */
:where(body.lp) :focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 2px; }
.lp-focus-clair:focus-visible,
.lp-focus-clair :focus-visible { outline-color: var(--lp-white); }

/* ---------- Mise en page ---------- */
/* <main> de la prod : fond gris (blanc sur /tarifs, /accompagnement, /faq,
   /ec, /ec/tarifs, /ec/faq : ajouter .lp-main--blanc), réserve la hauteur
   du header fixe (116 px) + la marge du .slot-container (2rem).
   `clip` et non `hidden` : garde le position: sticky des pages secteurs.
   flow-root : les marges des sections ne traversent pas <main>. */
.lp-main {
    display: flow-root;
    position: relative;
    overflow: clip;
    background: var(--lp-bg);
    padding-top: calc(var(--lp-header-h) + 2rem);
}
.lp-main--blanc { background: var(--lp-white); }
/* <main> reçoit le focus du lien d'évitement (tabindex="-1" posé par la
   coquille) : un cadre autour de toute la page n'indiquerait rien. */
.lp-main:focus { outline: none; }

/* Conteneur : la prod n'en a pas d'unique ; la largeur la plus fréquente
   est 1200 px (AidesLanding, blog, Expertise), les autres en modificateur.
   Seul .lp-container sert : le .container de tokens.css reste hors jeu. */
.lp-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
@media (max-width: 1200px) { .lp-container { padding-inline: 1rem; } }
.lp-container--800 { max-width: 800px; padding-inline: 1rem; }                /* page d'erreur blog */
.lp-container--900 { max-width: 900px; }                                      /* guides, solutions, ressources */
.lp-container--1000 { max-width: 1000px; }                                    /* témoignages (TestimonialsSection) */
.lp-container--1180 { max-width: 1180px; padding-inline: 1.25rem; }           /* index des secteurs */
.lp-container--1336 { max-width: 1336px; padding-inline: 1rem; }              /* article, catégories EC */
.lp-container--1440 { max-width: 1440px; padding: 2rem; }                     /* sections à étapes */
@media (max-width: 1200px) { .lp-container--1180 { padding-inline: 1.25rem; } }
/* Gouttière de 2rem (Expertise.svelte), 1rem sous 768 px */
.lp-container--aere { padding-inline: 2rem; }
@media (max-width: 768px) { .lp-container--aere { padding-inline: 1rem; } }

/* Gouttières « page » (FAQ, tarifs, Stats) : 19vw → 10vw → 5vw */
.lp-marges-page { padding-inline: 19vw; }
@media (max-width: 1280px) { .lp-marges-page { padding-inline: 10vw; } }
@media (max-width: 1024px) { .lp-marges-page { padding-inline: 5vw; } }

/* Section standard (+section) : 6rem 10vw, 1.5rem 1rem en téléphone */
.lp-section { padding: 6rem 10vw; }
@media (max-width: 480px) { .lp-section { padding: 1.5rem 1rem; } }

/* Bascule desktop / mobile de la prod (.desktop / .mobile, 1200 px) */
@media (max-width: 1200px) { .lp-desktop { display: none !important; } }
@media (min-width: 1201px) { .lp-mobile { display: none !important; } }

/* Texte réservé aux lecteurs d'écran (même règle que .sr-only de components.css) */
.lp-sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important;
    white-space: nowrap !important; border: 0 !important;
}

/* Icône : un <svg> (sprite img/icons.svg ou inline) à la taille du texte */
.lp-ic { display: inline-block; flex-shrink: 0; width: 1em; height: 1em; vertical-align: middle; overflow: visible; }

/* ============================================================
   BOUTONS · _commons/components/ui/Button.svelte
   Une classe de base + des modificateurs qui reprennent l'API Svelte :
     couleur   (color / secondary / tertiary) : --nuit (défaut, $primary),
               --bleu, --orange, --encre, --blanc, --rouge ($error),
               --vert ($success), --gris ($darkish-grey) ; toute autre
               teinte : style="--lp-btn-c: #…" (Price, familles secteur)
     remplissage : plein (défaut) · --contour (filled={false}) ·
               --inverse (inverted) · --mono · --texte (noBorder) ·
               --degrade (specialBorder)
     taille    : --petit · (moyen par défaut) · --grand
     forme     : arrondi (défaut) · --carre (rounded={false})
     socle     : --socle (shadow orange) · --socle-bleu · --socle-encre
     icônes    : --fleche (arrow-right) · --retour (arrow-left) ;
               ou un <svg class="lp-ic"> avant/après le <span>
     divers    : --centre (centered) · --pleine (fullWidth) ·
               --en-ligne (inline) · --icone (bouton sans texte) ·
               --gras (weight 700) · [disabled] / .is-inactif
   Le libellé va dans un <span> : il s'ellipse comme en prod.
   Exemple, le CTA du hero : <a class="lp-btn lp-btn--bleu lp-btn--grand
   lp-btn--socle lp-btn--fleche" href="…"><span>Commencez gratuitement</span></a>
   ============================================================ */
.lp-btn {
    --lp-btn-c: var(--lp-navy);
    --lp-btn-fond: var(--lp-btn-c);
    --lp-btn-texte: var(--lp-white);
    --lp-btn-bord: var(--lp-btn-c);
    --lp-socle: var(--lp-orange);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: fit-content; max-width: 100%;
    padding: .25rem 1rem;
    border: 1px solid var(--lp-btn-bord);
    border-radius: 2rem;
    background: var(--lp-btn-fond);
    color: var(--lp-btn-texte);
    font-family: var(--lp-font-display);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    user-select: none; -webkit-user-select: none;
    transition: transform .15s ease;
}
.lp-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; }
.lp-btn:focus-visible { outline: 2px solid var(--lp-btn-c); outline-offset: 2px; }
/* Button.svelte : small et medium prennent 44 px de haut sous 768 px, sans
   bord (noBorder) compris ; mesuré sur la référence à 375 : « Retour » du fil
   d'une fiche d'aide et « Effacer les filtres » du blog font 44 px. */
@media (max-width: 768px) { .lp-btn:not(.lp-btn--grand):not(.lp-btn--icone) { min-height: 44px; } }

/* Couleurs */
.lp-btn--nuit { --lp-btn-c: var(--lp-navy); }
.lp-btn--bleu { --lp-btn-c: var(--lp-blue); }
.lp-btn--orange { --lp-btn-c: var(--lp-orange); }
.lp-btn--encre { --lp-btn-c: var(--lp-ink); }
.lp-btn--blanc { --lp-btn-c: var(--lp-white); --lp-btn-texte: var(--lp-blue); }
.lp-btn--rouge { --lp-btn-c: var(--lp-error); }
.lp-btn--vert { --lp-btn-c: var(--lp-success); }
.lp-btn--gris { --lp-btn-c: var(--lp-text-3); }

/* Remplissages */
.lp-btn--contour { --lp-btn-fond: var(--lp-white); --lp-btn-texte: var(--lp-btn-c); }
.lp-btn--inverse { --lp-btn-fond: var(--lp-btn-c); --lp-btn-texte: var(--lp-white); --lp-btn-bord: var(--lp-white); }
/* Anneau de focus blanc d'un bouton posé sur un fond bleu ou encre : la
   classe .lp-focus-clair, sur le bouton ou sur un de ses conteneurs. Rien
   d'office pour --inverse : ce bouton plein se pose aussi sur du BLANC
   (« Commencez gratuitement » de LP.faq, hero d'ec.html), où un anneau
   blanc disparaissait ; l'anneau garde donc la couleur du bouton. */
.lp-btn.lp-focus-clair:focus-visible,
.lp-focus-clair .lp-btn:focus-visible { outline-color: var(--lp-white); }
.lp-btn--mono { --lp-btn-fond: color-mix(in srgb, var(--lp-btn-c) 13%, transparent); --lp-btn-texte: var(--lp-btn-c); --lp-btn-bord: transparent; }
.lp-btn--texte {
    --lp-btn-fond: transparent; --lp-btn-texte: var(--lp-btn-c);
    border: none; padding: 1px; box-shadow: none;
}
.lp-btn--texte:hover, .lp-btn--texte:focus-visible { text-decoration: underline; }
.lp-btn--degrade {
    --lp-btn-texte: var(--lp-btn-c);
    background: linear-gradient(#fff, #fff) padding-box, var(--lp-grad-border) border-box;
    border-color: transparent;
}
.lp-btn--degrade.lp-btn--grand { border-width: 2px; }
.lp-btn--gras { font-weight: 700; }

/* Survol sans socle : la prod assombrit (brightness) */
.lp-btn:not(.lp-btn--socle):not(.lp-btn--socle-bleu):not(.lp-btn--socle-encre):not(.lp-btn--texte):not(:disabled):not(.is-inactif):hover,
.lp-btn:not(.lp-btn--socle):not(.lp-btn--socle-bleu):not(.lp-btn--socle-encre):not(.lp-btn--texte):not(:disabled):not(.is-inactif):focus-visible { filter: brightness(.95); }
.lp-btn:not(.lp-btn--socle):not(.lp-btn--socle-bleu):not(.lp-btn--socle-encre):not(.lp-btn--texte):not(:disabled):not(.is-inactif):active { filter: brightness(.9); }

/* Tailles */
.lp-btn--petit { padding: 0 .6rem; }
/* noBorder l'emporte sur small en prod (padding 1px) : « Effacer les
   filtres » du blog fait 108 × 20 px à 1440, pas 119 × 18. */
.lp-btn--texte.lp-btn--petit { padding: 1px; }
.lp-btn--grand { font-size: 1.3125rem; padding: .6rem 1.4rem; }
@media (max-width: 768px) { .lp-btn--grand { font-size: 1.25rem; padding: .6rem 1rem; } }
.lp-btn--carre { border-radius: 3px; }

/* Bouton sans texte (icône seule) */
.lp-btn--icone { width: 2rem; height: 2rem; padding: 0; }
.lp-btn--icone.lp-btn--petit { width: 1.5rem; height: 1.5rem; }
.lp-btn--icone.lp-btn--grand { width: 2.5rem; height: 2.5rem; }

/* SOCLE (prop `shadow`) : en prod, un div absolu de la couleur du socle
   dépasse de .3rem sous le bouton, et le bouton s'y enfonce au survol.
   Ici une ombre portée sans flou fait le même dessin (même forme, même
   rayon) sans élément en plus ; la marge basse rend la place qu'occupait
   le padding du wrapper. */
.lp-btn--socle, .lp-btn--socle-bleu, .lp-btn--socle-encre {
    margin-bottom: .3rem;
    box-shadow: 0 .3rem 0 0 var(--lp-socle);
    transition: transform .15s ease, box-shadow .15s ease;
}
.lp-btn--socle-bleu { --lp-socle: var(--lp-blue); }
.lp-btn--socle-encre { --lp-socle: var(--lp-ink); }
:is(.lp-btn--socle, .lp-btn--socle-bleu, .lp-btn--socle-encre):not(:disabled):not(.is-inactif):is(:hover, :focus-visible) {
    transform: translateY(1px); box-shadow: 0 calc(.3rem - 1px) 0 0 var(--lp-socle);
}
:is(.lp-btn--socle, .lp-btn--socle-bleu, .lp-btn--socle-encre):not(:disabled):not(.is-inactif):active {
    transform: translateY(2px); box-shadow: 0 calc(.3rem - 2px) 0 0 var(--lp-socle);
}

/* Inactif : couleurs fondues à 53 %, comme la prod (color-mix) */
.lp-btn:disabled, .lp-btn.is-inactif, .lp-btn[aria-disabled="true"] {
    --lp-btn-fond: color-mix(in srgb, var(--lp-btn-c) 53%, transparent);
    --lp-btn-texte: color-mix(in srgb, var(--lp-white) 53%, transparent);
    --lp-btn-bord: transparent;
    cursor: not-allowed;
}
.lp-btn--contour:disabled, .lp-btn--contour.is-inactif, .lp-btn--contour[aria-disabled="true"] {
    --lp-btn-fond: color-mix(in srgb, #fff 53%, transparent);
    --lp-btn-texte: color-mix(in srgb, var(--lp-btn-c) 53%, transparent);
    --lp-btn-bord: color-mix(in srgb, var(--lp-btn-c) 53%, transparent);
}
.lp-btn:disabled:hover, .lp-btn.is-inactif:hover { text-decoration: none; }

/* Disposition */
.lp-btn--centre { margin-inline: auto; }
.lp-btn--pleine { width: 100%; }
.lp-btn--en-ligne { display: inline-flex; }

/* Icônes : flèches du sprite Teenyicons (outline--arrow-right / -left)
   dessinées en masque, donc à la couleur du texte et sans balise en plus */
.lp-btn--fleche::after,
.lp-btn--retour::before {
    content: '';
    flex-shrink: 0;
    width: 1em; height: 1em;
    background: currentColor;
    -webkit-mask: var(--lp-ic-fleche) center / contain no-repeat;
    mask: var(--lp-ic-fleche) center / contain no-repeat;
}
.lp-btn--fleche::after { margin-left: .5rem; }
.lp-btn--retour::before { margin-right: .5rem; --lp-ic-fleche: var(--lp-ic-retour); }
.lp-btn > .lp-ic:first-child:not(:only-child) { margin-right: .5rem; }
.lp-btn > .lp-ic:last-child:not(:only-child) { margin-left: .5rem; }
:root {
    --lp-ic-fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M13.5 7.5l-4-4m4 4l-4 4m4-4H1' fill='none' stroke='%23000'/%3E%3C/svg%3E");
    --lp-ic-retour: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M1.5 7.5l4-4m-4 4l4 4m-4-4H14' fill='none' stroke='%23000'/%3E%3C/svg%3E");
    --lp-ic-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M4.5 6.5l3 3 3-3' fill='none' stroke='%23000' stroke-linecap='square'/%3E%3C/svg%3E");
}

/* ============================================================
   TAG · _commons/components/ui/Tag.svelte
   <span class="lp-tag lp-tag--bleu">Subvention</span>
     couleur : gris (défaut, $darkish-grey) · --bleu · --orange · --nuit
     --plein (filled) · --petit · --grand · --arrondi (rounded) ·
     --en-ligne (inline) · --sans-bord · --degrade (specialBorder)
   Tag de section (OptionPro, Detectez, Accompagnez) :
     <span class="lp-tag lp-tag--section lp-tag--orange">Option Pro</span>
   ============================================================ */
.lp-tag {
    --lp-tag-c: var(--lp-text-3);
    display: flex; align-items: center; justify-content: center;
    width: fit-content; max-width: 100%; height: fit-content;
    padding: .4rem .8rem;
    border: 1px solid var(--lp-tag-c);
    border-radius: 3px;
    background: var(--lp-white);
    color: var(--lp-tag-c);
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    user-select: none; -webkit-user-select: none;
}
.lp-tag > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lp-tag--bleu { --lp-tag-c: var(--lp-blue); }
.lp-tag--orange { --lp-tag-c: var(--lp-orange); }
.lp-tag--nuit { --lp-tag-c: var(--lp-navy); }
.lp-tag--encre { --lp-tag-c: var(--lp-ink); }
.lp-tag--plein { background: var(--lp-tag-c); color: var(--lp-white); }
.lp-tag--petit { padding: .2rem .4rem; font-size: .9rem; }
.lp-tag--grand { padding: .2rem .8rem; font-size: 1.7rem; }
.lp-tag--arrondi { border-radius: 4rem; }
.lp-tag--en-ligne { display: inline-flex; }
.lp-tag--sans-bord { border: none; }
.lp-tag--degrade {
    background: linear-gradient(#fff, #fff) padding-box, var(--lp-grad-border) border-box;
    border-color: transparent;
}
.lp-tag--degrade.lp-tag--grand { border-width: 2px; }
/* Tag de section (OptionPro.svelte:124-137) : la prod demande « Mukta »,
   police jamais chargée ; on prend Mukta Mahee 500, comme le veut design.md */
.lp-tag--section {
    padding: 8px 16px;
    border-width: 2px;
    border-radius: 8px;
    font-family: var(--lp-font-body);
    font-size: 22px;
    line-height: 25px;
    white-space: normal;
}
@media (max-width: 768px) { .lp-tag--section { font-size: 18px; padding: 6px 12px; } }

/* ============================================================
   MOTIFS SIGNATURE (design.md §1.10), en classes utilitaires
   ============================================================ */

/* 1. Bordure dégradée bleu → blanc → orange → blanc → bleu.
   <div class="lp-bord-degrade">…</div> ; --lp-bord règle l'épaisseur,
   --lp-bord-fond le fond intérieur. --12 : la carte ChiffresMapi. */
.lp-bord-degrade {
    --lp-bord: 2px;
    --lp-bord-fond: var(--lp-white);
    border: var(--lp-bord) solid transparent;
    background: linear-gradient(var(--lp-bord-fond), var(--lp-bord-fond)) padding-box, var(--lp-grad-border) border-box;
}
.lp-bord-degrade--12 { --lp-bord: 12px; }
@media (max-width: 768px) { .lp-bord-degrade--12 { --lp-bord: 10px; } }

/* 2. Ombres dures décalées (et helpers .s-* de la prod) */
.lp-ombre-orange { box-shadow: var(--lp-hard-orange); }
.lp-ombre-bleue { box-shadow: var(--lp-hard-blue); }
.lp-ombre-bleue-8 { box-shadow: var(--lp-hard-blue-8); }
.lp-ombre-nuit { box-shadow: var(--lp-hard-navy); }
.lp-ombre-encre { box-shadow: var(--lp-hard-ink); }
.lp-ombre-douce { box-shadow: var(--lp-soft); }
.lp-ombre-lisse { box-shadow: var(--lp-smooth); }
@media (max-width: 480px) { .lp-ombre-bleue-8 { box-shadow: var(--lp-hard-blue); } }

/* Coin signature (coin bas-droit plus rond) */
.lp-coin-signature { border-radius: var(--lp-r-signature); }

/* 3. Grille millimétrée (BackgroundGrid.svelte) : calque absolu à poser
   dans un parent positionné. Couleur par défaut #EBF6FF ; --bleue pour
   Partners / Embarquez ; --sombre pour les fonds encre : la couleur par
   défaut à .15 d'opacité (BackgroundGrid opacity={0.15} de PlatformShowcase,
   mesuré rgb(235, 246, 255) sur la référence), pas du bleu. */
.lp-grille {
    --lp-grille-c: var(--lp-blue-pale);
    position: absolute; inset: 0;
    overflow: hidden;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--lp-grille-c) 1px, transparent 1px),
        linear-gradient(to bottom, var(--lp-grille-c) 1px, transparent 1px);
    background-size: 103px 103px;
    background-position: 0 2px;
    background-repeat: repeat;
}
.lp-grille--bleue { --lp-grille-c: var(--lp-blue); }
.lp-grille--sombre { opacity: .15; }

/* 4. Pont de nuages (FullClouds.svelte) : bande de brume 1440×507 qui
   déborde de 22rem sur la section voisine. À poser dans un parent
   positionné, en haut (défaut) ou en bas (--bas). Masqué ≤ 1200 px,
   comme la classe `desktop` de la prod. L'image est une variable pour
   qu'une page puisse en changer sans toucher au dessin. */
.lp-nuages {
    position: absolute;
    top: -22rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    aspect-ratio: 1440 / 507;
    background: var(--lp-nuages-img, url('/landing-refonte/img/landing/img/decor/nuages-bande.png')) center top / 100% auto no-repeat;
    pointer-events: none;
    z-index: var(--lp-z-decor);
}
.lp-nuages--bas { top: auto; bottom: -22rem; }
@media (max-width: 1200px) { .lp-nuages { display: none; } }

/* 5. Titre-pilule incliné (Stats, PricingDetails) : fond bleu ou orange,
   texte blanc, -2°, parfois une ombre dure encre. */
.lp-pilule-inclinee {
    --lp-pilule-fond: var(--lp-blue);
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: .1rem .8rem;
    border-radius: 2.5rem;
    background: var(--lp-pilule-fond);
    color: var(--lp-white);
    font-family: var(--lp-font-display);
    text-align: center;
    transform: rotate(-2deg);
}
.lp-pilule-inclinee--orange { --lp-pilule-fond: var(--lp-orange); }
.lp-pilule-inclinee--ombre { box-shadow: var(--lp-hard-ink); }

/* 6. Surlignages orange : barre sous le texte (.highlighted, masquée
   ≤ 480 px) et marqueur (moitié basse orange, ReferenceCard) */
.lp-surligne { position: relative; z-index: 1; }
.lp-surligne::before {
    content: '';
    position: absolute;
    top: 2.35rem; left: 0;
    width: 100%; height: .618rem;
    background: var(--lp-orange);
    z-index: -1;
}
@media (max-width: 480px) { .lp-surligne::before { display: none; } }
.lp-marqueur { background: linear-gradient(to top, var(--lp-orange) 50%, transparent 50%); }

/* 7. Verre dépoli (newsletter, footer) */
.lp-verre {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 2px solid var(--lp-white);
}

/* ---------- Mouvement réduit ----------
   La prod ne le gère que pour le défilé des partenaires : ici toute
   animation et toute transition s'éteignent, le défilement doux aussi. */
@media (prefers-reduced-motion: reduce) {
    body.lp *, body.lp *::before, body.lp *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
}
