/* ------------------------------------------------------------------
   Site public (index.html, famille.html, contact.html) — habillage commun.

   Palette = constants/theme.ts de l'app. Toute nouvelle couleur passe
   d'abord par theme.ts, puis se reporte ici avec le meme HEX.

   PARTI PRIS : « le fil ». Filia relie l'auxiliaire, la direction et la
   famille ; le site le dessine avec trois signatures de la marque :
   - le fil et son point or qui voyage (etapes de la solution, bande
     « Pour qui ? ») ;
   - le soulignement or (onglet actif de l'app) pour le mot qui compte ;
   - le point final or (celui du logo « Filia. »).
   Le reste suit l'app : listes a filets fins, fonds duotone, Nunito seule.
   Graisses de l'app, 400 a 700, jamais au-dela : 700 pour les titres, 600
   pour ce qui doit ressortir, 500 pour les chapeaux, 400 pour le texte.
   Les grandes phrases (piliers) restent a 600 pour ne pas peser.
   Ni pastille au-dessus des titres, ni tuile de pictogramme, ni coche, ni
   carte ombree, ni numero decoratif (DESIGN_SYSTEM.md §5.6-5.7). Un
   pictogramme n'apparait que s'il aide a reconnaitre une action.

   CONTRASTE
   - Le blanc sur #488CBC plafonne a 3,6:1 : les fonds bleus qui portent du
     texte partent de #2F6B96 (blanc dessus ~5,6:1) et descendent vers
     #1F5275 ; #488CBC n'y sert qu'en lueur. Boutons pleins bleus : #2F6B96.
   - #488CBC ne sert en texte que pour les grands chiffres (>= 24 px gras).
   - L'or ne porte jamais de texte courant : soulignement, point, puce, et
     le fond du bouton d'appel principal (texte #3A2E07 dessus).
   - Pas de bord gauche colore sur une carte (.claude/rules/design.md).

   MOUVEMENT
   - Tout est visible et dans son etat final sans JavaScript. site.js pose
     la classe .anim sur <html> (sauf « animations reduites ») ; seules les
     regles prefixees .anim cachent puis revelent.
   ------------------------------------------------------------------ */
:root {
    --primary:       #488CBC;   /* Palette.primary — icones, gros chiffres, lueurs */
    --primary-text:  #2F6B96;   /* Palette.primaryText — liens, boutons pleins */
    --primary-hover: #285D83;
    --primary-deep:  #1F5275;   /* encre bleue, sections sombres */
    --primary-night: #16405D;   /* bas des sections sombres, pied de page */
    --blue-soft:     #EAEFFA;   /* Palette.blueSoft */
    --blue-mid:      #BFD0F5;   /* Palette.blueMid */

    --gold:          #E9C46A;   /* Palette.accent — ponctuel, jamais dominant */
    --gold-ink:      #3A2E07;   /* Palette.goldInk — texte sur fond or */

    /* Sur fond clair, le texte fort du site est l'encre bleue, pas le
       quasi-noir Palette.text (#1E2A35) de l'app : 8,3:1 sur blanc. */
    --ink:           var(--primary-deep);
    --muted:         #5F7385;   /* Palette.textMuted */
    --meta:          #4B5563;   /* Palette.textMetadata */
    --field-line:    #8A9BAD;   /* Palette.secondary — bord de champ, jamais du texte */

    --paper:         #FAFAF9;   /* Palette.background */
    --white:         #FFFFFF;
    --border:        #E4EEF5;   /* Palette.border */
    --row-line:      #EEF1F6;   /* Palette.rowLine */

    --success:       #43C59E;
    --error-bg:      #FDE4E1;
    --error-ink:     #A3342B;   /* Palette.errorInk */

    --ff: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);

    --gutter: clamp(16px, 4vw, 48px);
    --radius: 16px;
    --radius-sm: 12px;
    --shadow-phone: 0 50px 80px -34px rgba(8, 30, 50, .8);
    --nav-h: 72px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
    margin: 0;
    font-family: var(--ff);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.022em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary-text); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
    font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
section[id], [id].anchor { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* ------------------------------------------------- signatures de la marque */
/* Le mot qui compte : souligne d'or, comme l'onglet actif de l'app. */
.mark {
    background-image: linear-gradient(var(--gold), var(--gold));
    background-repeat: no-repeat;
    background-position: 0 92%;
    background-size: 100% .13em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
/* Le point final or du logo « Filia. ». */
.point { color: var(--gold); }

/* Apparitions au defilement (site.js pose .anim et .is-visible). */
.anim [data-reveal] {
    opacity: 0; transform: translateY(22px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.anim [data-reveal].is-visible { opacity: 1; transform: none; }
.anim [data-reveal] .mark {
    background-size: 0% .13em;
    transition: background-size 1.1s var(--ease) .45s;
}
.anim [data-reveal].is-visible .mark { background-size: 100% .13em; }

/* -------------------------------------------------------------- boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
    padding: 12px 20px; border-radius: 999px; border: 0;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .2s ease, transform .15s ease;
}
.btn .material-symbols-outlined { font-size: 20px; transition: transform .2s var(--ease); }
.btn:hover .material-symbols-outlined:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary-text); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--primary-text); }
.btn-ghost:hover { background: var(--blue-soft); }
/* L'or est reserve a l'appel a l'action principal d'une section. */
.btn-gold {
    background: var(--gold); color: var(--gold-ink);
    font-size: 17px; font-weight: 700; padding: 17px 28px;
    box-shadow: 0 12px 28px -14px rgba(5, 25, 45, .9);
}
.btn-gold:hover { box-shadow: 0 16px 32px -14px rgba(5, 25, 45, 1); filter: brightness(1.04); }
/* Second bouton sur fond bleu : un contour, jamais un second aplat. */
.btn-line {
    color: #fff; font-size: 17px; padding: 17px 24px;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5);
}
.btn-line:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255, 255, 255, .08); }

/* ----------------------------------------------------------- navigation */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--row-line);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter);
    min-height: var(--nav-h);
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
}
/* Le PNG du logo porte ~60 % de vide transparent autour du mot : on le
   recadre sur son contenu (boite visible 131,79 → 540,225 sur 658 × 306)
   pour que le logo s'aligne sur la goutiere comme le reste. */
.brand-logo {
    display: block; position: relative; overflow: hidden;
    height: 30px; aspect-ratio: 410 / 147;
}
.brand-logo img {
    /* width: auto ecrase l'attribut width="658" : sans lui l'image garde
       658 px de large et la boite ne montre que du transparent. */
    position: absolute; max-width: none; width: auto;
    height: calc(306 / 147 * 100%);
    left: calc(-131 / 410 * 100%);
    top: calc(-79 / 147 * 100%);
}
.nav-tabs { display: flex; justify-content: center; gap: 4px; }
.nav-tabs a {
    position: relative;
    padding: 10px 14px;
    font-size: 15px; font-weight: 600;
    color: var(--meta); text-decoration: none;
    border-radius: 10px;
    transition: color .15s ease, background-color .15s ease;
}
.nav-tabs a:hover { color: var(--ink); background: var(--blue-soft); }
/* Onglet actif : le meme soulignement or que les onglets de l'app. */
.nav-tabs a[aria-current="page"] { color: var(--ink); }
.nav-tabs a[aria-current="page"]::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px;
    height: 3px; border-radius: 3px; background: var(--gold);
}
.nav-tab-sep {
    width: 1px; height: 22px; align-self: center; margin-inline: 8px;
    background: var(--border);
}
.nav-tabs .nav-tab-famille { display: inline-flex; align-items: center; gap: 6px; }
.nav-tabs .nav-tab-famille .material-symbols-outlined { font-size: 20px; color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 6px; }

@media (max-width: 960px) {
    :root { --nav-h: 60px; }
    .nav-inner {
        grid-template-columns: auto 1fr;
        grid-template-areas: "logo actions" "tabs tabs";
        gap: 0 12px; padding-top: 10px;
    }
    .nav-inner > .brand { grid-area: logo; }
    .nav-actions { grid-area: actions; justify-content: flex-end; }
    /* Les onglets passent sur une seconde ligne qui defile seule, comme la
       barre d'onglets de l'app : jamais de defilement horizontal de la page. */
    .nav-tabs {
        grid-area: tabs; justify-content: flex-start;
        margin-inline: calc(var(--gutter) * -1); padding-inline: calc(var(--gutter) - 10px);
        overflow-x: auto; scrollbar-width: none;
        padding-block: 4px 2px;
    }
    .nav-tabs::-webkit-scrollbar { display: none; }
    .nav-tabs a { font-size: 14.5px; padding: 9px 10px; white-space: nowrap; }
    .nav-tabs a[aria-current="page"]::after { left: 10px; right: 10px; bottom: 0; }
    .brand-logo { height: 26px; }
    section[id], [id].anchor { scroll-margin-top: 112px; }
}
/* Sur telephone, libelles courts : les quatre onglets tiennent dans 360 px,
   et « Familles », le dernier, reste visible sans faire defiler la barre. */
@media (max-width: 520px) {
    .nav-actions .btn { font-size: 14px; padding: 10px 14px; }
    .nav-actions .btn-ghost .label-long { display: none; }
    .nav-actions .btn-ghost { padding-inline: 10px; }
    .nav-tabs { justify-content: space-between; gap: 0; }
    .nav-tabs a { padding-inline: 7px; }
    .nav-tabs a[aria-current="page"]::after { left: 7px; right: 7px; }
    .nav-tabs .tab-long, .nav-tab-sep { display: none; }
}
@media (max-width: 400px) {
    /* Logo + « Connexion » + « Nous contacter » depassaient de 6 px a 360 px. */
    .nav-actions .btn-ghost .material-symbols-outlined { display: none; }
    .nav-actions .btn { padding-inline: 12px; }
}
@media (min-width: 521px) {
    .nav-actions .btn-ghost .label-short, .nav-tabs .tab-short { display: none; }
}

/* ----------------------------------------------------------------- hero */
.hero {
    position: relative; z-index: 1; isolation: isolate;
    color: #fff;
    /* La lueur #488CBC se pose derriere le telephone ; le texte, lui, reste
       sur #2F6B96 et plus sombre (blanc >= 5,6:1). */
    background:
        radial-gradient(760px 560px at 82% 42%, rgba(72, 140, 188, .9), rgba(72, 140, 188, 0) 70%),
        linear-gradient(160deg, var(--primary-text) 0%, var(--primary-hover) 52%, var(--primary-deep) 100%);
}
.hero-inner {
    /* Le telephone garde sa largeur, le texte prend tout le reste. */
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: clamp(48px, 6vw, 96px);
    padding-block: clamp(56px, 8vw, 104px);
}
.hero h1 {
    font-size: clamp(42px, 6.2vw, 86px);
    line-height: 1.0; letter-spacing: -.038em;
    margin-bottom: 30px;
}
/* Le chapeau reste a gauche, sur #2F6B96 et plus sombre (blanc >= 5,6:1) :
   la lueur claire ne l'atteint pas. Ne pas l'etendre sous la lueur. */
.hero-lede {
    font-size: clamp(19px, 1.6vw, 21px); font-weight: 500; line-height: 1.55;
    color: rgba(255, 255, 255, .94);
    max-width: 33em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
/* Trois colonnes separees par un filet, comme la bande des chiffres :
   ni puce, ni pictogramme. */
.hero-points {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 34px 0 0; padding: 22px 0 0; list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff;
}
.hero-points li { padding: 0 20px; }
.hero-points li:first-child { padding-left: 0; }
.hero-points li + li { border-left: 1px solid rgba(255, 255, 255, .22); }
@media (max-width: 600px) {
    .hero-points { grid-template-columns: 1fr; gap: 10px; }
    .hero-points li, .hero-points li:first-child { padding: 0; }
    .hero-points li + li { border-left: 0; }
}
.hero-visual { display: flex; justify-content: center; position: relative; }
/* Deux cercles concentriques autour du telephone : l'onde de l'attention. */
.hero .hero-visual::before, .hero .hero-visual::after {
    content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
    border-radius: 50%; pointer-events: none;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, .16);
}
.hero .hero-visual::before { width: 470px; height: 470px; }
.hero .hero-visual::after  { width: 660px; height: 660px; border-color: rgba(255, 255, 255, .08); }

/* --------------------------------------------------------------- phone */
.phone {
    position: relative; flex-shrink: 0;
    width: 290px; aspect-ratio: 9 / 19.5;
    padding: 11px; border-radius: 48px;
    background: #12191F;
    box-shadow: var(--shadow-phone), inset 0 0 0 2px #2B3640;
}
.phone::before {
    content: ""; position: absolute; z-index: 2;
    top: 20px; left: 50%; transform: translateX(-50%);
    width: 22px; height: 22px; border-radius: 50%; background: #12191F;
}
.phone-screen {
    width: 100%; height: 100%; overflow: hidden;
    border-radius: 38px; background: var(--white);
}
.phone-screen img, .phone-screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Les cercles autour du telephone depassent : le bandeau les coupe. */
.hero { overflow: hidden; }
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 56px; }
    .phone { width: 250px; }
    .hero .hero-visual::before { width: 360px; height: 360px; }
    .hero .hero-visual::after  { width: 500px; height: 500px; }
}

/* Variante photo (accueil) : la photo d'une visite occupe la droite du
   bandeau et se fond dans le bleu par un masque. Le texte garde le bleu uni
   sous lui (contraste inchange) : la photo commence la ou il s'arrete. Un
   voile bleu leger accorde la photo a la palette. */
.hero-photo {
    --hero-texte: clamp(420px, 40vw, 540px);
    background: linear-gradient(160deg, var(--primary-text) 0%, var(--primary-hover) 52%, var(--primary-deep) 100%);
}
.hero-photo .hero-inner { grid-template-columns: minmax(0, var(--hero-texte)); }
.hero-photo h1 { font-size: clamp(42px, 5.2vw, 76px); }
.hero-media {
    position: absolute; top: 0; right: 0; bottom: 0; z-index: -1;
    left: calc(max(var(--gutter), 50% - 600px + var(--gutter)) + var(--hero-texte));
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(31, 82, 117, .30) 0%, rgba(31, 82, 117, .08) 55%, rgba(22, 64, 93, .40) 100%);
}
/* Entree lente, une fois : la photo se pose. */
.anim .hero-media img { animation: photo-entree 2.4s var(--ease) both; }
@keyframes photo-entree { from { transform: scale(1.06); } to { transform: none; } }
@media (max-width: 960px) {
    /* La photo passe au-dessus du texte, en entier, et se fond vers le bas. */
    .hero-photo .hero-media {
        position: relative; left: auto; width: 100%; height: auto;
        aspect-ratio: 2000 / 1116;
        -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    }
    .hero-photo .hero-inner { grid-template-columns: 1fr; padding-top: 12px; }
}

/* ---------------------------------------------------------------- stats */
.stats { position: relative; background: var(--white); border-bottom: 1px solid var(--row-line); }
.stats-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0; padding: 52px 0 0;
}
.stat { padding: 4px 24px 0; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--row-line); } /* filet neutre entre colonnes, pas un etat */
.stat-value {
    font-size: clamp(44px, 5vw, 70px); font-weight: 700; line-height: 1;
    letter-spacing: -.045em; color: var(--primary);
}
.stat-label { margin: 12px 0 0; font-size: 15.5px; font-weight: 500; line-height: 1.4; color: var(--muted); max-width: 15em; }
.stats-source { padding: 26px 0 40px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 720px) {
    .stats-grid { grid-template-columns: 1fr; padding-top: 16px; }
    .stat, .stat:first-child { padding: 22px 0; }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--row-line); }
    .stats-source { padding-top: 8px; }
}

/* ------------------------------------------------------------ sections */
.section { padding-block: clamp(80px, 11vw, 144px); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
    font-size: clamp(34px, 4.8vw, 60px); line-height: 1.04;
    letter-spacing: -.035em; margin-bottom: 22px;
}
.section-head p { font-size: 18.5px; color: var(--muted); max-width: 34em; }

/* Page Familles, « Déjà invité » : la marche à suivre sur iPhone, sous le
   bouton Android. Texte simple, sans pictogramme. */
.app-note { font-size: 16px; color: var(--muted); max-width: 40em; margin: 20px 0 0; }
.app-note a { color: var(--primary-text); text-decoration: underline; }

/* ------------------------------------------ les piliers : les onglets de l'app
   Trois onglets, comme ceux de la fiche bénéficiaire, avec le soulignement or
   sous l'onglet actif. Ce soulignement se remplit comme une minuterie, puis
   passe au pilier suivant tant que le visiteur n'a rien choisi (site.js). Le
   pilier tient en une grande phrase : ni numéro, ni pictogramme, ni puce.
   Sans JavaScript, les trois piliers s'affichent les uns sous les autres. */
.onglets-liste { display: none; }
.onglets-prets .onglets-liste {
    display: flex; gap: clamp(20px, 4vw, 56px);
    border-bottom: 1px solid var(--border);
    overflow-x: auto; scrollbar-width: none;
}
.onglets-liste::-webkit-scrollbar { display: none; }
.onglet {
    position: relative; flex-shrink: 0;
    appearance: none; -webkit-appearance: none; background: none; border: 0;
    padding: 0 0 18px; cursor: pointer;
    font: inherit; font-size: clamp(18px, 1.9vw, 23px); font-weight: 700;
    letter-spacing: -.02em; line-height: 1.2; text-align: left;
    color: var(--muted);
    transition: color .2s ease;
}
.onglet:hover, .onglet[aria-selected="true"] { color: var(--ink); }
.onglet:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 6px; }
.onglet::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 4px; border-radius: 4px; background: var(--gold);
    transform: scaleX(0); transform-origin: left center;
}
.onglet[aria-selected="true"]::after { transform: scaleX(1); }
.onglets.is-running .onglet[aria-selected="true"]::after { animation: onglet-temps 7s linear both; }
.onglets:hover .onglet::after { animation-play-state: paused; }
@keyframes onglet-temps { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.onglet .court { display: none; }

.onglets-panneaux { display: grid; }
.pilier + .pilier { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--border); }
/* Les trois panneaux occupent la meme case : la hauteur est celle du plus
   long, rien ne saute quand on change d'onglet. */
.onglets-prets .pilier {
    grid-area: 1 / 1; margin: 0; padding-top: clamp(36px, 5vw, 56px); border: 0;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    /* Le panneau sortant s'efface vite, l'entrant attend qu'il soit parti :
       les deux phrases ne se superposent jamais. */
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.onglets-prets .pilier.is-active {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .6s var(--ease) .24s, transform .6s var(--ease) .24s, visibility 0s linear .2s;
}
.pilier-titre { font-size: 22px; color: var(--primary-text); margin-bottom: 16px; }
.onglets-prets .pilier-titre { display: none; }
.pilier-phrase {
    font-size: clamp(28px, 3.7vw, 50px); font-weight: 600; line-height: 1.12;
    letter-spacing: -.034em; text-wrap: balance;
    max-width: 21em; margin-bottom: clamp(28px, 4vw, 44px);
}
.pilier-suite {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 28px clamp(32px, 6vw, 96px); align-items: start;
}
.pilier-suite p { font-size: 18px; line-height: 1.6; color: var(--meta); max-width: 32em; }
.pilier-suite .footnote { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.pilier-apport { padding-top: 16px; border-top: 1px solid var(--border); }
.pilier-suite .pilier-apport { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink); }
/* Le libelle de section de l'app (« LE PETIT PLUS FILIA. ») : capitales grises. */
.pilier-apport span {
    display: block; margin-bottom: 6px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted);
}
@media (max-width: 760px) {
    .pilier-suite { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .onglet .long { display: none; }
    .onglet .court { display: inline; }
    .onglets-prets .onglets-liste { gap: 0; justify-content: space-between; }
    .onglet { font-size: 17px; }
}

/* ----------------------------------------------- la solution (sombre) */
.section-deep {
    position: relative; overflow: hidden; isolation: isolate;
    color: #fff;
    background:
        radial-gradient(820px 520px at 84% 30%, rgba(72, 140, 188, .32), rgba(72, 140, 188, 0) 70%),
        linear-gradient(165deg, var(--primary-deep) 0%, var(--primary-night) 100%);
}
.section-deep .section-head p { color: rgba(255, 255, 255, .84); }
.split {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center; gap: 64px;
}
.split .section-head { margin-bottom: 40px; }
.section-deep .phone { box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .85), inset 0 0 0 2px #2B3640; }

/* Le fil des etapes : une ligne relie de simples points (ni numero, ni
   pictogramme) ; elle se remplit d'or au rythme du defilement (site.js
   renseigne --fil-*), le point or en tete. Sans JS, le fil est plein et
   toutes les etapes sont atteintes. */
.flow { position: relative; }
.flow ol { list-style: none; margin: 0; padding: 0; }
.flow::before, .flow::after {
    content: ""; position: absolute; left: 7px; width: 2px; border-radius: 2px;
    top: var(--fil-debut, 28px);
}
.flow::before { height: var(--fil-long, calc(100% - 56px)); background: rgba(255, 255, 255, .16); }
.flow::after  { height: var(--fil-rempli, var(--fil-long, calc(100% - 56px))); background: var(--gold); }
.flow li {
    display: flex; align-items: center; gap: 24px;
    min-height: 56px; padding-block: 4px;
    font-size: 19px; font-weight: 600; line-height: 1.35;
    transition: color .4s ease;
}
.flow-num {
    position: relative; z-index: 1; flex-shrink: 0;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px var(--primary-night);
    transition: background-color .4s ease, box-shadow .4s ease;
}
.anim .flow li:not(.is-reached) { color: rgba(255, 255, 255, .6); }
.anim .flow li:not(.is-reached) .flow-num {
    background: var(--primary-night);
    box-shadow: 0 0 0 5px var(--primary-night), inset 0 0 0 2px rgba(255, 255, 255, .4);
}
/* Le point passe SOUS les etapes : on ne le voit que sur le fil, entre deux
   points, et il disparait une fois le fil plein (site.js : .fil-plein). */
.anim .flow:not(.fil-plein) ol::before {
    content: ""; position: absolute; z-index: 0; left: 3px;
    top: calc(var(--fil-debut, 28px) + var(--fil-rempli, 0px) - 5px);
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(233, 196, 106, .2), 0 0 18px 4px rgba(233, 196, 106, .55);
}
@media (max-width: 960px) {
    .split { grid-template-columns: 1fr; gap: 56px; }
}

/* ------------------------------------------------------ pour qui (listes)
   La grammaire des listes de l'app (duotone bord-a-bord) : titre sur le fond
   neutre, puis une bande blanche d'un bord a l'autre de la page, et dans
   chaque colonne des lignes separees par un filet fin. Le haut de la bande
   est le fil : un noeud par colonne, le point or passe de l'un a l'autre. */
.section-audience { padding-bottom: 0; }
.audience-band {
    --gap: clamp(32px, 4vw, 64px);
    position: relative;
    background: var(--white);
    border-bottom: 1px solid var(--row-line);
}
.audience-band::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0;
    height: 2px; background: var(--blue-mid);
}
.audience {
    position: relative;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--gap);
    padding-bottom: 32px;
}
.audience-col { position: relative; padding-top: 46px; }
.audience-col::before {
    content: ""; position: absolute; left: 0; top: -7px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--white), 0 0 0 5.5px var(--blue-mid);
}
.audience-col h3 { font-size: clamp(22px, 2vw, 25px); line-height: 1.2; margin-bottom: 6px; }
.audience-gain { font-size: 16px; font-weight: 600; color: var(--primary-text); margin-bottom: 18px; }
.audience-list { list-style: none; margin: 0; padding: 0; }
.audience-list li {
    padding: 14px 0;
    border-top: 1px solid var(--row-line);
    font-size: 16px; line-height: 1.45; color: var(--meta);
}
/* Le voyage du point or, une fois, quand la bande entre a l'ecran. */
.audience::after {
    content: ""; position: absolute; top: -5px; left: 2px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--gold); opacity: 0;
    box-shadow: 0 0 0 5px rgba(233, 196, 106, .25), 0 0 18px 3px rgba(233, 196, 106, .6);
}
.anim .audience .audience-col::before { animation: noeud .45s var(--ease) both paused; }
.anim .audience.is-visible .audience-col::before { animation-play-state: running; }
.anim .audience .audience-col:nth-child(2)::before { animation-delay: 1.05s; }
.anim .audience .audience-col:nth-child(3)::before { animation-delay: 2.1s; }
.anim .audience.is-visible::after { animation: voyage 2.2s var(--ease) .1s both; }
@keyframes noeud {
    from { background: var(--white); transform: scale(.7); }
    to   { background: var(--gold);  transform: scale(1); }
}
@keyframes voyage {
    0%   { left: 2px; opacity: 1; }
    42%  { left: calc(33.333% + var(--gap) / 3 + 2px); }
    55%  { left: calc(33.333% + var(--gap) / 3 + 2px); }
    96%  { left: calc(66.666% + var(--gap) * 2 / 3 + 2px); opacity: 1; }
    100% { left: calc(66.666% + var(--gap) * 2 / 3 + 2px); opacity: 0; }
}
/* Sur telephone, le fil devient vertical, a gauche des colonnes empilees. */
@media (max-width: 960px) {
    .audience-band::before { display: none; }
    .audience { grid-template-columns: 1fr; padding-left: 34px; padding-bottom: 12px; }
    .audience::before {
        content: ""; position: absolute; left: 7px; top: 0; bottom: 0;
        width: 2px; background: var(--blue-mid);
    }
    .audience::after { display: none; }
    .audience-col { padding-block: 30px 14px; }
    .audience-col::before { left: -34px; top: 36px; }
    .audience-col + .audience-col { border-top: 1px solid var(--border); }
    .anim .audience .audience-col:nth-child(2)::before { animation-delay: .5s; }
    .anim .audience .audience-col:nth-child(3)::before { animation-delay: 1s; }
}

/* ------------------------------------------------- appel a l'action final */
.cta-band {
    position: relative; overflow: hidden; isolation: isolate;
    color: #fff; text-align: center;
    background:
        radial-gradient(900px 480px at 50% 0%, rgba(72, 140, 188, .75), rgba(72, 140, 188, 0) 70%),
        linear-gradient(160deg, var(--primary-text) 0%, var(--primary-hover) 60%, var(--primary-deep) 100%);
    padding-block: clamp(88px, 12vw, 160px);
}
.cta-band h2 {
    font-size: clamp(36px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.038em;
    margin: 0 auto 22px; max-width: 13em;
}
.cta-band p {
    font-size: 19px; font-weight: 500; color: rgba(255, 255, 255, .94);
    max-width: 34em; margin: 0 auto 40px;
}

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--primary-night); color: rgba(255, 255, 255, .78); font-size: 15px; }
.footer-tagline {
    padding-block: clamp(56px, 8vw, 96px) clamp(36px, 5vw, 56px);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    font-size: clamp(38px, 7vw, 100px); font-weight: 700; line-height: 1;
    letter-spacing: -.045em; color: #fff;
}
.footer-top {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px;
    padding-block: 48px 44px;
}
.footer-brand { max-width: 320px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
    padding-block: 22px 28px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 14px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ------------------------------------------------------------- contact
   Deux pans : a gauche le bleu profond porte le titre et les faits, a
   droite le formulaire sur le fond neutre. Le pan bleu court jusqu'au bord
   de l'ecran ; son contenu s'aligne sur la grille du reste du site. */
.contact {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    min-height: calc(100vh - var(--nav-h));
}
.contact-aside {
    position: relative; overflow: hidden; isolation: isolate;
    color: #fff;
    background:
        radial-gradient(640px 420px at 10% 0%, rgba(72, 140, 188, .55), rgba(72, 140, 188, 0) 70%),
        linear-gradient(165deg, var(--primary-text) 0%, var(--primary-deep) 70%, var(--primary-night) 100%);
    padding: clamp(56px, 8vw, 104px) clamp(32px, 5vw, 72px) clamp(56px, 8vw, 104px) max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
}
.contact-aside h1 {
    font-size: clamp(38px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -.038em;
    margin-bottom: 24px;
}
.contact-intro { font-size: 18.5px; font-weight: 500; color: rgba(255, 255, 255, .9); max-width: 30em; margin-bottom: 44px; }
.contact-facts { margin: 0; border-top: 1px solid rgba(255, 255, 255, .18); max-width: 30em; }
.contact-facts div { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.contact-facts dt {
    font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255, 255, 255, .72); margin-bottom: 4px;
}
.contact-facts dd { margin: 0; font-size: 17px; font-weight: 600; color: #fff; }
.contact-facts a { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-form {
    padding: clamp(48px, 7vw, 104px) max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))) clamp(56px, 8vw, 104px) clamp(32px, 5vw, 80px);
}
.contact-form-inner { max-width: 520px; }
.contact-form h2 { font-size: 26px; letter-spacing: -.025em; margin-bottom: 8px; }
.contact-form .form-sub { color: var(--muted); margin-bottom: 32px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--ink);
    background: var(--white);
    border: 1px solid var(--field-line); border-radius: var(--radius-sm);
    padding: 13px 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--primary-text);
    box-shadow: 0 0 0 4px rgba(72, 140, 188, .22);
}
.form-error {
    display: flex; gap: 10px; align-items: flex-start;
    background: var(--error-bg); color: var(--error-ink);
    border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px;
    font-size: 15px; font-weight: 600;
}
.form-error[hidden], .form-success[hidden], form[hidden], .spinner[hidden] { display: none; }
.btn-block { width: 100%; padding-block: 17px; font-size: 16px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.form-success { padding: 8px 0; }
.form-success-mark {
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; margin-bottom: 20px;
    background: var(--success); color: #fff;
}
.form-success-mark .material-symbols-outlined { font-size: 32px; }
.form-success h2 { font-size: 30px; margin-bottom: 10px; }
.form-success p { color: var(--muted); }
.spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
    .contact { grid-template-columns: 1fr; min-height: 0; }
    .contact-aside { padding: 48px var(--gutter) 150px; }
    .contact-form { padding: 44px var(--gutter) 64px; }
}
@media (max-width: 480px) {
    .field-row { grid-template-columns: 1fr; }
}
