/* ==========================================================================
   KIPO - Feuille de styles principale (design system + composants partagés)
   --------------------------------------------------------------------------
   Sommaire
     01. Polices (auto-hébergées)
     02. Tokens (variables CSS : couleurs, rayons, typo, espacements)
     03. Réinitialisation & base
     04. Typographie
     05. Mise en page (conteneur, sections, utilitaires)
     06. Décor (étiquettes surlignées, blobs, pastilles, séparateurs, feuilles)
     07. Composants - boutons
     08. Composants - chips, listes à coches, étoiles, avatars
     09. Composants - cartes & forfaits
     10. Composants - accordéon
     11. Composants - formulaires
     12. En-tête / navigation
     13. Pied de page
     14. Sections partagées (hero, bannière CTA, timeline « comment ça marche »)
     15. Interrupteur, cookies, chat
     16. Animations d'apparition & accessibilité
   ========================================================================== */

/* 01. Polices ============================================================== */
@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/hanken-grotesk-v12-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/hanken-grotesk-v12-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/hanken-grotesk-v12-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/hanken-grotesk-v12-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal; font-weight: 800; font-display: swap;
    src: url('../fonts/hanken-grotesk-v12-latin-800.woff2') format('woff2');
}
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/bricolage-grotesque-v9-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/bricolage-grotesque-v9-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal; font-weight: 800; font-display: swap;
    src: url('../fonts/bricolage-grotesque-v9-latin-800.woff2') format('woff2');
}

/* 02. Tokens =============================================================== */
:root {
    /* Couleurs - encre & textes */
    --ink: #1a1916;       /* titres */
    --prose: #47453d;     /* corps de texte (charte « Prose ») */
    --muted: #6e6a5e;     /* secondaire */
    --subtle: #6f6a5b;    /* tertiaire / légendes (assombri pour atteindre WCAG AA) */

    /* Couleurs - accents */
    --green: #9bb728;
    --green-fonce: #86a221;
    --olive: #5e7321;
    --foret: #2e3a11;        /* vert forêt profond - texte des boutons (lisible sur le vert) */
    --terracotta: #ad4128;   /* assombri vs charte #bc4a30 pour la lisibilité du texte (WCAG AA) */

    /* Couleurs - surfaces */
    --white: #ffffff;
    --cream: #fbf8f1;
    --sand: #f4ecda;
    --fond-sable: #f5efe0;   /* fond de section « sable » adouci (plus proche du crème) */
    --sand-deep: #e3d6b6;
    --pale: #eaf1d6;
    --pale-fonce: #e1ead0;   /* survol des boutons secondaires */
    --alert: #f6e3dc;
    --border: #ece4d2;
    --blob-base: var(--cream);   /* backdrop des blobs : ils sont opaques (color-mix) pour masquer le voile d'étoiles ; surchargé par section/bannière */

    /* Rayons */
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 28px;
    --r-pill: 999px;
    --r-petale: 44px;
    --r-panel-sm: 24px;
    --r-panel-lg: 48px;
    /* Rayon « pétale » signature des cartes (haut-gauche/bas-droit arrondis) */
    --r-carte: var(--r-lg) var(--r-md) var(--r-lg) var(--r-md);
    --r-bouton: 20px 7px 20px 7px;   /* coins « galet » des boutons */

    /* Galets dé-cartés de la page Démo (coins galet, sans filet, posés à plat) */
    --r-galet-lg: 40px 14px 40px 14px;   /* grands galets (note sociale, contact, cartes parcours) */
    --r-galet-sm: 22px 8px 22px 8px;     /* avis / photos clients */
    --r-galet-xs: 14px 6px 14px 6px;     /* petits coins internes (< 56px) */

    /* Typographie */
    --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
    --font-text: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --fs-h1: clamp(2.25rem, 1rem + 4.2vw, 4.5rem);
    --fs-h2: clamp(1.7rem, 1rem + 2.5vw, 3.1rem);
    --fs-h3: clamp(1.3125rem, 1.15rem + 0.5vw, 1.65rem);   /* titres de carte */
    --fs-bloc: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);        /* titres de sous-section */
    --fs-lead: clamp(1.125rem, 0.95rem + 0.55vw, 1.45rem);
    --fs-body: 1rem;
    --fs-sm: 0.875rem;    /* 14px */
    --fs-xs: 0.75rem;     /* 12px */
    --fs-prix: 2.625rem;  /* 42px : montant des forfaits (page Tarifs) */

    /* Mise en page - gouttières proportionnelles (le contenu remplit ~90 % de
       l'écran à toute taille) et conteneur très large pour les grands écrans. */
    --conteneur: 2280px;
    --page-pad: clamp(20px, 4.5vw, 130px);
    --section-y: clamp(56px, 6.5vw, 150px);

    --t: 160ms ease;

    /* Mouvement - apparition reutilisable (reveal / cascade) */
    --t-reveal: .55s;                            /* duree d'entree d'un element revele */
    --ease-doux: cubic-bezier(.2, .7, .2, 1);    /* sortie douce : traces, remplissages */
    --ease-rebond: cubic-bezier(.2, 1.5, .4, 1); /* leger rebond : pastilles numerotees */

    /* Decalage des elements sticky sous l'en-tete collant (formulaire demo, intro FAQ, intro parcours) */
    --sticky-top: 100px;
}

/* Mise à l'échelle sur grands écrans : tout grandit (rem) avec l'écran,
   pour que le contenu remplisse sans s'étirer en lignes trop longues. */
@media (min-width: 1700px) { :root { font-size: 17px; } }
@media (min-width: 2200px) { :root { font-size: 18px; } }
@media (min-width: 2800px) { :root { font-size: 19px; } }

/* 03. Réinitialisation & base ============================================= */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;          /* compense l'en-tête collant sur les ancres */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-text);
    font-size: var(--fs-body);
    line-height: 1.55;
    color: var(--prose);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

button { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 2px;
}

/* Lien d'évitement (accessibilité clavier) */
.lien-evitement {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: var(--cream);
    padding: 12px 18px;
    border-radius: 0 0 var(--r-sm) 0;
}
.lien-evitement:focus { left: 0; }

/* Masqué visuellement, mais lu par les lecteurs d'écran */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* 04. Typographie ========================================================= */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink);
}
h1 { font-size: var(--fs-h1); line-height: 1.04; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { text-wrap: pretty; }

.texte-vert { color: var(--olive); }
.texte-olive { color: var(--olive); }
.texte-terracotta { color: var(--terracotta); }

/* 05. Mise en page ======================================================== */
.conteneur {
    width: min(100% - (var(--page-pad) * 2), var(--conteneur));
    margin-inline: auto;
}
.conteneur--etroit { --conteneur: 820px; }

.section {
    position: relative;
    padding-block: var(--section-y);
    overflow: clip;                    /* contient les décors qui débordent */
    /* Voile d'étoiles discret (clin d'oeil aux avis 5 étoiles), semé de façon
       irrégulière dans la tuile. À plat, derrière le contenu. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='270' viewBox='0 0 300 270' fill='%235e7321'%3E%3Cpath opacity='.085' transform='translate(22 28) scale(.55)' d='M12 2.5l2.94 5.96 6.58.96-4.76 4.64 1.12 6.55L12 18.56l-5.88 3.09 1.12-6.55L2.48 9.42l6.58-.96z'/%3E%3Cpath opacity='.06' transform='translate(178 18) scale(.42)' d='M12 2.5l2.94 5.96 6.58.96-4.76 4.64 1.12 6.55L12 18.56l-5.88 3.09 1.12-6.55L2.48 9.42l6.58-.96z'/%3E%3Cpath opacity='.075' transform='translate(258 86) scale(.5)' d='M12 2.5l2.94 5.96 6.58.96-4.76 4.64 1.12 6.55L12 18.56l-5.88 3.09 1.12-6.55L2.48 9.42l6.58-.96z'/%3E%3Cpath opacity='.085' transform='translate(92 112) scale(.6)' d='M12 2.5l2.94 5.96 6.58.96-4.76 4.64 1.12 6.55L12 18.56l-5.88 3.09 1.12-6.55L2.48 9.42l6.58-.96z'/%3E%3Cpath opacity='.06' transform='translate(200 170) scale(.45)' d='M12 2.5l2.94 5.96 6.58.96-4.76 4.64 1.12 6.55L12 18.56l-5.88 3.09 1.12-6.55L2.48 9.42l6.58-.96z'/%3E%3Cpath opacity='.075' transform='translate(40 210) scale(.5)' d='M12 2.5l2.94 5.96 6.58.96-4.76 4.64 1.12 6.55L12 18.56l-5.88 3.09 1.12-6.55L2.48 9.42l6.58-.96z'/%3E%3C/svg%3E");
    background-size: 300px 270px;
}
.section--cream { background-color: var(--cream); }
.section--sand { background-color: var(--fond-sable); --blob-base: var(--fond-sable); }

/* Entête de section centré (kicker + titre + sous-titre) */
.section__entete {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: clamp(32px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.section__titre { font-size: var(--fs-h2); }
.section__sous-titre { color: var(--muted); font-size: var(--fs-lead); max-width: 56ch; }

/* Grille « duo » : deux colonnes qui s'empilent sur mobile */
.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 64px);
    align-items: center;
}
.duo--haut { align-items: start; }

.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.5; }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; color: var(--olive); }

.center { text-align: center; }

/* Rangée de boutons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.actions--center { justify-content: center; }

/* 06. Décor =============================================================== */
/* Étiquette « galet » : petite pastille vert pâle, texte olive, coins galet */
.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content; /* ne pas s'étirer si le parent flex étire ses enfants */
    background: var(--pale);
    color: var(--olive);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 12px 4px 12px 4px;
}
.badge--kicker {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: var(--fs-xs);
    padding: 5px 11px;
}

/* Blobs organiques (formes décoratives qui débordent des sections) */
.blob {
    position: absolute;
    border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%;
    z-index: 0;
    pointer-events: none;
    filter: blur(.2px);
}
/* Blobs OPAQUES : color-mix de la teinte sur le fond local (--blob-base) = exactement la
   même couleur qu'avec l'ancienne transparence, mais sans laisser transparaître le voile
   d'étoiles. Les étoiles restent donc toujours DERRIÈRE les blobs. (fallback hex = mix sur crème) */
.blob--green { background: #eceed1; background: color-mix(in srgb, var(--green) 16%, var(--blob-base)); }
.blob--olive { background: #e8e8d8; background: color-mix(in srgb, var(--olive) 12%, var(--blob-base)); }
.blob--sand  { background: #efe7d4; background: color-mix(in srgb, var(--sand-deep) 50%, var(--blob-base)); }
.blob--pale  { background: #edf2db; background: color-mix(in srgb, var(--pale) 80%, var(--blob-base)); }

/* Pastilles (petits points) */
.pastille {
    position: absolute;
    border-radius: 50%;
    background: var(--olive);
    opacity: .35;
}

/* Transition en vague entre sections : la couleur du haut coule vers le bas
   (plus de bande), avec un fin trait ondulé olive qui garde le rythme. */
.separateur {
    position: relative;
    height: clamp(44px, 5vw, 72px);
    background: var(--sep-bas, var(--cream));
    overflow: hidden;
    line-height: 0;
}
.separateur__vague { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.separateur--2 .separateur__vague { transform: scaleX(-1); }

/* 07. Boutons ============================================================= */
.btn {
    --pad-x: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1;
    padding: 13px var(--pad-x);
    border: 1.5px solid transparent;
    border-radius: var(--r-bouton);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--t), border-color var(--t), transform var(--t), color var(--t);
}
.btn:active { transform: translateY(1px); }
.btn.is-busy { opacity: .7; cursor: progress; }

.btn--primaire { background: var(--olive); color: var(--cream); }
.btn--primaire:hover { background: var(--foret); }

.btn--secondaire { background: var(--pale); color: var(--olive); }
.btn--secondaire:hover { background: var(--pale-fonce); }

.btn--fantome { background: transparent; color: var(--olive); padding-inline: 4px; }
.btn--fantome:hover { color: var(--foret); }

.btn__icone { display: inline-flex; transition: transform var(--t); }
.btn__icone .icon { width: 18px; height: auto; }
.btn--icone:hover .btn__icone { transform: translateX(3px); }
.btn--full { width: 100%; }
/* Bouton lisible sur un panneau pâle (bannières CTA) */
.btn--sur-pale { background: var(--white); border-color: var(--border); }
.btn--sur-pale:hover { background: var(--white); border-color: var(--green); }

/* Lien fléché (« Voir comment ça marche → ») */
.lien-fleche {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--olive);
    transition: gap var(--t), color var(--t);
}
.lien-fleche .icon { width: 18px; }
.lien-fleche:hover { gap: 11px; color: var(--green-fonce); }

/* 08. Chips, listes, étoiles, avatars ===================================== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    line-height: 1.2;
}
.chip--pale { background: var(--pale); color: var(--olive); }
.chip--green { background: var(--green); color: var(--ink); }
.chip--terracotta { background: var(--terracotta); color: var(--white); }
.chip--sand { background: var(--sand); color: var(--subtle); }

.chip-info {            /* pilule de réassurance « ✓ Sans engagement » */
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--pale);
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 500;
    padding: 9px 14px;
    border-radius: var(--r-pill);
}
.chip-info .icon { width: 15px; color: var(--olive); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }

.liste-check { display: flex; flex-direction: column; gap: 12px; }
.liste-check__item { display: flex; gap: 12px; align-items: flex-start; }
.liste-check__marque {
    flex: none;
    width: 22px; height: 22px;
    margin-top: 1px;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.liste-check__marque .icon { width: 14px; }
.liste-check__marque--oui { background: color-mix(in srgb, var(--olive) 12%, transparent); color: var(--olive); }
.liste-check__marque--non { background: rgba(188, 74, 48, .10); color: var(--terracotta); }

.etoiles { color: var(--olive); letter-spacing: 1px; font-size: .95em; }

.avatar {
    width: 44px; height: 44px;
    flex: none;
    border-radius: var(--r-pill);
    background: var(--pale);
    color: var(--olive);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-family: var(--font-display);
}

/* Témoignage (carte avec citation + auteur) */
.temoignage { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.temoignage blockquote { font-size: 1.05rem; line-height: 1.5; }
.temoignage__auteur { display: flex; align-items: center; gap: 12px; }
.temoignage__auteur strong { display: block; font-size: var(--fs-sm); }
.temoignage__auteur span { font-size: var(--fs-sm); color: var(--subtle); }

/* 09. Cartes & forfaits ==================================================== */
.carte {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-carte);
    position: relative;
}

.grille-forfaits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.forfait {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-galet-lg);
    padding: 30px 28px;
}
.forfait--populaire {
    background: var(--pale);
    border: 1px solid var(--olive);   /* flat : filet 1px accent (au lieu de 2px vert), meme largeur que les autres -> zero reflow dans la grille stretch */
}
.forfait__feuille {
    position: absolute;
    top: 16px; right: 18px;
    width: 22px; color: var(--green);
    transform: rotate(12deg);
}
.forfait__etiquette { align-self: flex-start; }
.forfait__icone {
    width: 50px; height: 50px;
    border-radius: var(--r-galet-xs);
    background: var(--pale);
    color: var(--olive);
    display: grid; place-items: center;
    margin-top: 4px;
}
.forfait--populaire .forfait__icone { background: var(--white); }
.forfait__icone .icon { width: 26px; }
.forfait__nom { font-size: var(--fs-h3); }
.forfait__accroche { color: var(--muted); font-size: var(--fs-sm); min-height: 2.6em; }
.forfait__tarif { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.forfait__prix { display: flex; align-items: baseline; gap: 8px; }
.forfait__montant { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-prix); line-height: 1; }
.forfait__periode { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.forfait__note { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-xs); }
.forfait__rabais {
    align-self: flex-start;
    background: color-mix(in srgb, var(--olive) 12%, transparent);
    color: var(--olive);
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--r-pill);
}
.forfait__alt { color: var(--subtle); }
.forfait__cta { margin-top: 8px; }
.forfait__filet { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.forfait--populaire .forfait__filet { border-color: color-mix(in srgb, var(--olive) 25%, transparent); }
.forfait__inclus-intro { font-weight: 600; font-size: var(--fs-sm); }
.forfait__inclus { font-size: var(--fs-sm); }
.forfait__inclus .liste-check__item { color: var(--ink); }

/* 10. Accordéon =========================================================== */
.accordeon { display: flex; flex-direction: column; }
.accordeon__item { border-top: 1px solid var(--border); }
.accordeon__item:last-child { border-bottom: 1px solid var(--border); }
.accordeon__titre { margin: 0; font-size: inherit; }
.accordeon__question { transition: color var(--t); }
.accordeon__bouton:hover .accordeon__question { color: var(--olive); }
.accordeon__bouton {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 6px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-text);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.3;            /* interligne de lecture (pas le 1.08 des titres) pour les questions sur 2 lignes */
    color: var(--ink);
}
.accordeon__icone {
    flex: none;
    width: 34px; height: 34px;
    border-radius: var(--r-pill);
    background: var(--pale);
    color: var(--olive);
    display: grid; place-items: center;
    transition: transform .25s ease, background var(--t), color var(--t);
}
.accordeon__icone .icon { width: 16px; }
.accordeon__item.is-open .accordeon__icone {
    transform: rotate(45deg);          /* le + devient × */
    background: var(--green);
    color: var(--ink);
}
.accordeon__panneau {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}
.accordeon__panneau > * { overflow: hidden; }
.accordeon__item.is-open .accordeon__panneau { grid-template-rows: 1fr; }
/* Le padding va sur le contenu interne (pas sur l'élément qui se replie),
   sinon le panneau fermé garde la hauteur du padding et la réponse déborde. */
.accordeon__reponse { color: var(--muted); max-width: 68ch; }
.accordeon__reponse > p { padding: 0 6px 22px; }

/* Panneau blanc qui contient une FAQ (accueil & tarifs) */
.faq__panneau { padding: 6px 28px; }
@media (max-width: 540px) { .faq__panneau { padding: 4px 18px; } }

/* 11. Formulaires ========================================================= */
.carte-formulaire {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-carte);
    padding: clamp(24px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.carte-formulaire__feuille {
    position: absolute; top: 16px; right: 18px;
    width: 22px; color: var(--green); transform: rotate(12deg);
}
.carte-formulaire__titre { font-size: var(--fs-bloc); }
.carte-formulaire__intro { color: var(--muted); font-size: var(--fs-sm); margin-top: -6px; }
.carte-formulaire__champs { display: flex; flex-direction: column; gap: 15px; }
.carte-formulaire__note { color: var(--subtle); font-size: var(--fs-sm); text-align: center; }

.formulaire__resume {
    background: var(--alert);
    color: var(--terracotta);
    border-radius: var(--r-sm);
    padding: 12px 16px;
    font-size: var(--fs-sm);
}
.formulaire__resume:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.formulaire__resume-titre { font-weight: 600; }
.formulaire__resume-liste { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding-left: 0; }
.formulaire__resume-liste a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 2px; }

.champ { display: flex; flex-direction: column; gap: 6px; }
.champ__label { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.champ__option { color: var(--subtle); font-weight: 400; }
.champ__controle {
    width: 100%;
    font: inherit;
    font-size: .9375rem;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-bouton);
    transition: border-color var(--t), box-shadow var(--t);
}
.champ__controle::placeholder { color: var(--subtle); }
.champ__controle:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--olive) 35%, transparent);
}
.champ__controle--zone { min-height: 96px; resize: vertical; }
.champ--erreur .champ__controle { border-color: var(--terracotta); }
.champ--erreur .champ__controle:focus { box-shadow: 0 0 0 3px rgba(188, 74, 48, .2); }
.champ__erreur { color: var(--terracotta); font-size: var(--fs-sm); }

/* Case à cocher personnalisée */
.champ--checkbox { margin-top: 2px; }
.champ__case {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--muted);
    line-height: 1.4;
}
.champ__case input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.champ__case-marque {
    flex: none;
    width: 20px; height: 20px;
    margin-top: 1px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: transparent;
    display: grid; place-items: center;
    transition: background var(--t), border-color var(--t), color var(--t);
}
.champ__case-marque .icon { width: 13px; }
.champ__case input:checked ~ .champ__case-marque {
    background: var(--green); border-color: var(--green); color: var(--ink);
}
.champ__case input:focus-visible ~ .champ__case-marque {
    outline: 2px solid var(--olive); outline-offset: 2px;
}

/* Pot de miel (anti-robot, invisible) */
.champ-pot-de-miel {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* 12. En-tête / navigation =============================================== */
.entete {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}
.entete__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}
.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.625rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.logo__point { color: var(--green); }
.logo--pied { font-size: 1.5rem; }

.entete__menu { display: flex; align-items: center; gap: 28px; }
.nav-principale { display: flex; align-items: center; gap: 28px; }
.nav-principale__lien {
    font-size: .9375rem;
    font-weight: 500;
    color: var(--ink);
    transition: color var(--t);
}
.nav-principale__lien:hover { color: var(--olive); }
.nav-principale__lien.is-active { color: var(--olive); font-weight: 600; }

.entete__actions { display: flex; align-items: center; gap: 18px; }
.langue {
    display: inline-flex;
    gap: 2px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 3px;
}
.langue__option {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--muted);
    padding: 5px 11px;
    border-radius: var(--r-pill);
    transition: background var(--t), color var(--t);
}
.langue__option.is-active { background: var(--green); color: var(--ink); }
.entete__connexion { font-size: .9375rem; font-weight: 500; }
.entete__connexion:hover { color: var(--olive); }
.entete__cta { padding-block: 10px; }

.entete__burger {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--white);
    cursor: pointer;
    place-items: center;
}
.entete__burger .icon { width: 22px; }
.entete__burger-fermer { display: none; }

@media (max-width: 960px) {
    .entete__burger { display: grid; }
    .entete__menu {
        position: absolute;
        inset: 100% 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        background: var(--cream);
        border-bottom: 1px solid var(--border);
        padding: 22px var(--page-pad) 28px;
        clip-path: inset(0 0 100% 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: clip-path .25s ease, opacity .2s ease, visibility .25s ease;
    }
    .entete.is-open .entete__menu { clip-path: inset(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .entete.is-open .entete__burger-ouvrir { display: none; }
    .entete.is-open .entete__burger-fermer { display: block; }
    .nav-principale { flex-direction: column; align-items: flex-start; gap: 4px; }
    .nav-principale__lien { display: block; padding: 10px 0; font-size: 1.0625rem; }
    .entete__actions { flex-wrap: wrap; gap: 14px; padding-top: 8px; border-top: 1px solid var(--border); }
    .entete__cta { margin-left: auto; }
}

/* 13. Pied de page ======================================================== */
.pied {
    background: var(--sand);
    border-top: 1px solid var(--border);
    padding-block: clamp(48px, 6vw, 64px) 44px;
}
.pied__inner { display: flex; flex-direction: column; gap: 34px; }
.pied__colonnes {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
}
.pied__marque { max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.pied__slogan { font-weight: 600; font-size: .9375rem; }
.pied__baseline { color: var(--muted); font-size: var(--fs-sm); }
.pied__lieu { color: var(--subtle); font-size: var(--fs-sm); }
.pied__titre {
    font-family: var(--font-text);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--subtle);
    margin-bottom: 14px;
}
.pied__liste { display: flex; flex-direction: column; gap: 10px; }
.pied__lien { color: var(--muted); font-size: var(--fs-sm); transition: color var(--t); }
.pied__lien:hover { color: var(--olive); }
.pied__filet { border: 0; border-top: 1px solid var(--border); }
.pied__bas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.pied__copy { color: var(--subtle); font-size: var(--fs-sm); }
.pied__social { display: flex; align-items: center; gap: 16px; }
.pied__social .icon { width: 18px; color: var(--subtle); transition: color var(--t); }
.pied__social a:hover .icon { color: var(--olive); }
.pied__cookies { color: var(--subtle); font-size: var(--fs-sm); }
.pied__cookies:hover { color: var(--olive); }

@media (max-width: 820px) {
    .pied__colonnes { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
    .pied__marque { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .pied__colonnes { grid-template-columns: 1fr; }
}

/* 14. Sections partagées ================================================== */
/* Hero (générique 2 colonnes) */
.hero { padding-block: clamp(48px, 6vw, 84px); }
.hero__titre { font-size: var(--fs-h1); }
.hero__texte { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero__sous-titre { font-size: var(--fs-lead); color: var(--muted); max-width: 34ch; }
.hero__preuve { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-sm); flex-wrap: wrap; }

/* Bannière d'appel à l'action */
.cta-banniere {
    position: relative;
    overflow: hidden;
    background: var(--pale);
    --blob-base: var(--pale);   /* le blob de la bannière est opaque sur ce pale */
    border-radius: var(--r-panel-lg) var(--r-panel-sm) var(--r-panel-lg) var(--r-panel-sm);
    padding: clamp(40px, 6vw, 64px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.cta-banniere__titre { font-size: var(--fs-h2); max-width: 18ch; }
.cta-banniere__sous-titre { color: var(--muted); font-size: var(--fs-lead); }
.cta-banniere__tagline { color: var(--olive); font-weight: 600; margin-top: 6px; }
.cta-banniere__feuille { position: absolute; top: 20px; right: 26px; width: 24px; color: var(--green); transform: rotate(12deg); z-index: 1; }
.cta-banniere__blob-a { width: 260px; height: 260px; right: -90px; bottom: -90px; }
.cta-banniere .actions { position: relative; z-index: 1; }

/* Variante page Démo : une personne en pied détourée (fond transparent). Elle
   "sort" du bas de la bannière, ses jambes étant masquées par le bord arrondi du
   panneau (overflow: hidden). Ce n'est pas un découpage du sujet : c'est le bord
   du panneau qui passe devant, comme une personne debout derrière un comptoir. */
.cta-banniere--illu { overflow: hidden; }
.cta-banniere__illu {
    position: absolute;
    left: clamp(8px, 1.6vw, 40px);
    top: 16px;                           /* tête posée près du haut, dans le panneau */
    bottom: auto;
    height: clamp(360px, 35vw, 460px);   /* grand : tête + téléphone bien lisibles, jambes coupées par le bas */
    width: auto;
    z-index: 1;
    pointer-events: none;
}
.cta-banniere--illu .cta-banniere__titre,
.cta-banniere--illu .cta-banniere__sous-titre,
.cta-banniere--illu .actions { position: relative; z-index: 2; }   /* texte toujours au-dessus de l'illustration */

@media (max-width: 760px) {
    /* mobile : la personne repasse dans le flux (en pied), au-dessus du texte */
    .cta-banniere__illu { position: static; height: clamp(300px, 70vw, 380px); margin-bottom: 8px; }
}

/* Section « Comment ça se passe » + parcours numéroté : DEMO-ONLY, déplacé dans
   pages/demo.css (kipo.css ne conserve que les styles partagés entre pages). */

/* Timeline « Comment ça marche » (zig-zag pointillé) - Accueil + Partenaires */
.timeline { position: relative; max-width: 980px; margin-inline: auto; }
.timeline::before {
    content: "";
    position: absolute;
    left: 50%; top: 6px; bottom: 6px;
    border-left: 3px dotted var(--olive);
    opacity: .45;
    transform: translateX(-50%);
}
.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 88px;
    margin-bottom: 26px;
}
.timeline__item::before {        /* marqueur sur la ligne centrale */
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--cream);
    border: 3px solid var(--olive);
    box-shadow: 0 0 0 5px var(--cream);
    transform: translate(-50%, -50%);
    z-index: 1;
}
.timeline__carte {
    grid-column: 2;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-petale) var(--r-md) var(--r-petale) var(--r-md);
    padding: 24px 28px;
    position: relative;
}
.timeline__item:nth-child(even) .timeline__carte {
    grid-column: 1;
    flex-direction: row-reverse;
}
.timeline__puce {
    flex: none;
    width: 50px; height: 50px;
    border-radius: var(--r-md) var(--r-sm) var(--r-md) var(--r-sm);
    background: var(--pale);
    color: var(--olive);
    display: grid; place-items: center;
}
.timeline__puce .icon { width: 24px; }
.timeline__puce--final { background: var(--green); color: var(--ink); }
.timeline__titre { font-size: var(--fs-h3); margin-bottom: 4px; }
.timeline__desc { color: var(--muted); font-size: var(--fs-sm); }
.timeline__feuille { position: absolute; top: 12px; right: 14px; width: 18px; color: var(--green); transform: rotate(12deg); }
.timeline__item:nth-child(even) .timeline__feuille { right: auto; left: 14px; transform: rotate(-12deg) scaleX(-1); }

/* (Empilement mobile de .etapes/.parcours : déplacé dans la section RESPONSIVE de
   pages/demo.css, avec le reste du responsive de la page Démo - styles demo-only.) */
@media (max-width: 760px) {
    .timeline { max-width: 520px; }
    .timeline::before { left: 19px; }
    .timeline__item { grid-template-columns: 1fr; }
    .timeline__item::before { left: 19px; }
    .timeline__carte,
    .timeline__item:nth-child(even) .timeline__carte {
        grid-column: 1;
        margin-left: 50px;
        flex-direction: row;
    }
    .timeline__item:nth-child(even) .timeline__feuille { right: 14px; left: auto; transform: rotate(12deg); }
}

/* Empilement des grilles « duo » sur mobile */
@media (max-width: 900px) {
    .duo { grid-template-columns: 1fr; }
    .hero__sous-titre { max-width: none; }
    /* .grille-forfaits (page Tarifs) : son empilement mobile vit dans pages/tarifs.css */
}

/* Pages centrées (merci, 404) */
.page-centre { min-height: 56vh; display: grid; place-items: center; text-align: center; }
.page-centre__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 600px; }
.page-centre__icone {
    width: 72px; height: 72px;
    border-radius: var(--r-pill);
    background: var(--pale);
    color: var(--olive);
    display: grid; place-items: center;
}
.page-centre__icone .icon { width: 34px; }

/* 15. Interrupteur, cookies, chat ========================================= */

/* Interrupteur (toggle on/off) */
.interrupteur { display: inline-flex; }
.interrupteur input { position: absolute; opacity: 0; width: 0; height: 0; }
.interrupteur__piste { position: relative; width: 46px; height: 26px; flex: none; border-radius: var(--r-pill); background: var(--sand-deep); cursor: pointer; transition: background var(--t); }
.interrupteur__piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform var(--t); }
.interrupteur input:checked + .interrupteur__piste { background: var(--green); }
.interrupteur input:checked + .interrupteur__piste::after { transform: translateX(20px); }
.interrupteur input:focus-visible + .interrupteur__piste { outline: 2px solid var(--olive); outline-offset: 2px; }
.interrupteur input:disabled + .interrupteur__piste { opacity: .55; cursor: default; }

/* Bandeau cookies (1re visite) */
.cookies { position: fixed; left: 0; bottom: 0; z-index: 60; padding: 24px; width: min(510px, 100%); }
.cookies[hidden] { display: none; }
.cookies__carte { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg) var(--r-md) var(--r-lg) var(--r-md); padding: 24px 26px; }
.cookies__feuille { position: absolute; top: 14px; right: 16px; width: 20px; color: var(--green); transform: rotate(12deg); }
.cookies__titre { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.cookies__pastille { width: 30px; height: 30px; flex: none; border-radius: var(--r-pill); background: var(--pale); color: var(--olive); display: grid; place-items: center; }
.cookies__pastille .icon { width: 16px; }
.cookies__texte { color: var(--muted); font-size: var(--fs-sm); margin: 12px 0; }
.cookies__lien { color: var(--olive); font-weight: 600; font-size: var(--fs-sm); }
.cookies__actions { display: flex; gap: 10px; margin-top: 16px; }
.cookies__actions .btn { flex: 1; padding-inline: 12px; }
.cookies__perso { display: block; width: 100%; margin-top: 10px; text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 11px; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; transition: border-color var(--t); }
.cookies__perso:hover { border-color: var(--green); }

/* Modale de préférences cookies */
.modale { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; }
.modale[hidden] { display: none; }
.modale__voile { position: absolute; inset: 0; background: rgba(26, 25, 22, .5); border: 0; cursor: pointer; }
.modale__carte { position: relative; z-index: 1; width: min(600px, 100%); max-height: 90vh; overflow: auto; background: var(--white); border-radius: var(--r-lg) var(--r-md) var(--r-lg) var(--r-md); padding: 30px 34px; }
.modale__feuille { position: absolute; top: 18px; right: 64px; width: 20px; color: var(--green); transform: rotate(12deg); }
.modale__fermer { position: absolute; top: 22px; right: 22px; width: 36px; height: 36px; border: 0; border-radius: var(--r-pill); background: var(--pale); color: var(--olive); display: grid; place-items: center; cursor: pointer; }
.modale__fermer .icon { width: 16px; }
.modale__titre { font-size: var(--fs-bloc); }
.modale__intro { color: var(--muted); font-size: var(--fs-sm); margin: 10px 0 6px; }
.cookie-option { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--border); }
.cookie-option:first-of-type { border-top: 0; }
.cookie-option__titre { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.cookie-option__desc { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; max-width: 60ch; }
.modale__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.modale__actions .btn { flex: 1; min-width: 150px; }

/* Widget de chat */
.chat-lanceur { position: fixed; right: 24px; bottom: 24px; z-index: 55; width: 60px; height: 60px; border: 0; border-radius: var(--r-pill); background: var(--green); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background var(--t), transform var(--t); }
.chat-lanceur:hover { background: var(--green-fonce); transform: translateY(-2px); }
.chat-lanceur .icon { width: 28px; }
.chat-lanceur[hidden] { display: none; }
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 56; width: min(380px, calc(100vw - 32px)); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.chat[hidden] { display: none; }
.chat__entete { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 12px; }
.chat__avatars { display: flex; }
.chat__avatars span { width: 34px; height: 34px; border-radius: var(--r-pill); border: 2px solid var(--white); margin-left: -10px; }
.chat__avatars span:first-child { margin-left: 0; }
.chat__avatars span:nth-child(1) { background: var(--olive); }
.chat__avatars span:nth-child(2) { background: var(--green); }
.chat__avatars span:nth-child(3) { background: var(--sand-deep); }
.chat__fermer { border: 0; background: none; color: var(--muted); cursor: pointer; }
.chat__fermer .icon { width: 18px; }
.chat__salut { padding: 0 22px 14px; }
.chat__salut-bonjour { color: var(--muted); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.chat__salut-titre { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-bloc); color: var(--ink); }
.chat__corps { padding: 0 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.chat__carte { border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; transition: border-color var(--t); }
.chat__carte:hover { border-color: var(--green); }
.chat__msg { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; color: var(--ink); }
.chat__msg .icon { width: 18px; color: var(--olive); }
.chat__demo-label { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 10px; }
.chat__nav { display: flex; justify-content: space-around; border-top: 1px solid var(--border); padding: 12px 0; }
.chat__nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.chat__nav a.is-active { color: var(--olive); }
.chat__nav .icon { width: 22px; }

@media (max-width: 480px) {
    .cookies { padding: 14px; }
    .chat-lanceur { right: 16px; bottom: 16px; }
    .chat { right: 8px; bottom: 8px; }
}

/* 16. Animations & accessibilité ========================================= */
/* Masqué uniquement si JS est actif (classe .js posée tôt) : sans JS, le
   contenu reste visible - pas de flash de contenu invisible. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Apparition en CASCADE reutilisable : le conteneur reste en place (data-reveal le
   revele), ses enfants directs entrent l'un apres l'autre. Marqueur : data-cascade
   sur le conteneur, EN PLUS de data-reveal. Generique (aucun selecteur par classe)
   -> n'importe quelle page peut l'utiliser. Le mouvement reduit est neutralise par
   la regle [data-reveal] > * ci-dessous. */
.js [data-cascade] { opacity: 1; transform: none; }   /* le conteneur ne s'anime pas en bloc */
.js [data-cascade] > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity var(--t-reveal) ease, transform var(--t-reveal) ease;
    transition-delay: var(--reveal-delay, 0ms);   /* le retard vient d'une variable, pas ecrase par le raccourci transition */
}
.js [data-cascade].is-visible > * { opacity: 1; transform: none; }
/* Decalage progressif, jusqu'a 9 enfants directs. */
[data-cascade] > *:nth-child(2) { --reveal-delay: 80ms; }
[data-cascade] > *:nth-child(3) { --reveal-delay: 160ms; }
[data-cascade] > *:nth-child(4) { --reveal-delay: 240ms; }
[data-cascade] > *:nth-child(5) { --reveal-delay: 320ms; }
[data-cascade] > *:nth-child(6) { --reveal-delay: 400ms; }
[data-cascade] > *:nth-child(7) { --reveal-delay: 480ms; }
[data-cascade] > *:nth-child(8) { --reveal-delay: 560ms; }
[data-cascade] > *:nth-child(9) { --reveal-delay: 640ms; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    [data-reveal] > * { opacity: 1 !important; transform: none !important; }
}
