/* =====================================================================
   jonathancloutier.net — v2 (refonte IA, 2026-10)
   Aucune ressource tierce : polices auto-hébergées, aucun style en ligne (CSP).
   Les couleurs et les polices sont des variables : la direction visuelle se
   change dans « 1. Jetons » seulement.
   ===================================================================== */

/* ---------- 0. Polices auto-hébergées ---------- */
@font-face {
  font-family: "Display";
  src: url("/assets/fonts/display.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Texte";
  src: url("/assets/fonts/texte.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: optional;
}

/* ---------- 1. Jetons ---------- */
:root {
  color-scheme: light dark;

  --police-titre: "Display", Georgia, "Times New Roman", serif;
  --police-texte: "Texte", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Clair : direction B « Clair et doux » (choix de Jonathan, 2026-10-06) — fond très pâle #F7F9F8, cartes blanches à bordure visible,
     un seul accent vert sauge. --accent : boutons et traits (texte blanc dessus ≥ 6:1) ; --or : filets décoratifs seulement. */
  --fond: #F7F9F8;
  --fond-2: #EEF3F0;
  --surface: #FFFFFF;
  --encre: #1F2A26;
  --encre-2: #3F4A45;
  --encre-3: #5B6560;
  --ligne: #CBD3CE;
  --accent: #3E6556;
  --accent-fort: #2F5446;
  --accent-texte: #3E6556;
  --accent-doux: #E6EEE8;
  --sur-accent: #FFFFFF;
  --indigo: #3F4A45;
  --vert: #2F6F57;
  --jaune: #8A6508;
  --rouge: #B3412E;
  --or: #8FB3A1;
  --ombre: 0 1px 2px rgb(20 40 32 / .08), 0 12px 32px rgb(20 40 32 / .06);
  --halo: #E3ECE6;      /* lueur sauge derrière le hero */
  --ilot: #DCE9E1;      /* îlot de contact */
  --filet: #7F8F87;     /* filets structurants (≥ 3:1 sur --fond) */
  --ligne-panneau: #B9C6BF;

  /* Rayons : 3 valeurs */
  --rayon-petit: 8px;
  --rayon: 12px;
  --rayon-grand: 12px;
  --rayon-ilot: 28px;
  --largeur: 1160px;
  --largeur-texte: 38rem;
  --goutiere: clamp(1rem, 4vw, 2rem);

  /* Typographie : 7 jetons, rien sous 13 px */
  --t-label: .8125rem;   /* 13 px */
  --t-petit: .9375rem;   /* 15 px */
  --t-corps: 1.0625rem;  /* 17 px */
  --t-chapeau: 1.25rem;  /* 20 px */
  --t-h3: 1.375rem;      /* 22 px */
  --t-h2: clamp(2rem, 1.25rem + 2.4vw, 2.75rem);
  --t-h1: clamp(2.75rem, 1.2rem + 4.6vw, 5rem);

  /* Espacements : 9 jetons */
  --e-1: .25rem; --e-2: .5rem; --e-3: .75rem; --e-4: 1rem; --e-5: 1.5rem;
  --e-6: 2rem; --e-7: 3rem; --e-8: 4rem; --e-9: 6rem;
  --espace-section: clamp(4rem, 8vw, 6rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #14181A;
    --fond-2: #1A1F21;
    --surface: #20262A;
    --encre: #F2F0E9;
    --encre-2: #C6C6C9;
    --encre-3: #9A9CA3;
    --ligne: #30383B;
    --accent: #9CC5B2;
    --accent-fort: #B5D7C6;
    --accent-texte: #9CC5B2;
    --accent-doux: #1F2D27;
    --sur-accent: #14181A;
    --indigo: #9CC5B2;
    --vert: #8FD1B5;
    --or: #6E9985;
    --jaune: #E7B743;
    --rouge: #F08A73;
    --ombre: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
    --halo: #1A2621;
    --ilot: #1F2D27;
    --filet: #5A6B63;
    --ligne-panneau: #3A4549;
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; } /* pas de scroll-behavior: smooth : saut direct et fiable vers les ancres, même lointaines au mobile */
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: var(--t-corps);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; }
.mot-accent { color: var(--accent-texte); }
h2 { font-size: var(--t-h2); max-width: 20ch; }
h3 { font-size: var(--t-h3); letter-spacing: -.01em; }
h4 { font-size: var(--t-chapeau); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent-texte); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--encre); text-decoration-thickness: 2px; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgb(62 101 86 / .15); }
:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-doux); color: var(--encre); }
strong { font-weight: 650; }

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--encre); color: var(--fond); padding: .6rem 1rem; border-radius: var(--rayon-petit);
}
.evitement:focus { top: 1rem; }

/* ---------- 3. Mise en page ---------- */
.cadre { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--goutiere); }
.cadre--texte { max-width: calc(var(--largeur-texte) + 2 * var(--goutiere)); }
.section { padding-block: var(--espace-section); }
.section--teinte { background: var(--fond-2); }
.section__tete { max-width: var(--largeur-texte); margin-bottom: clamp(var(--e-6), 5vw, var(--e-7)); }
.section__chapeau { font-size: var(--t-chapeau); line-height: 1.5; color: var(--encre-2); }
.surtitre {
  display: flex; align-items: center; gap: .75rem;
  font-size: var(--t-petit); font-weight: 600;
  color: var(--accent-texte); margin-bottom: var(--e-4);
}
.surtitre::before { content: ""; flex: none; width: 2rem; height: 1px; background: var(--or);
}
.phrase-forte { font-family: var(--police-titre); font-size: clamp(2.5rem, 1rem + 5.2vw, 4.5rem); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; color: var(--accent-texte); max-width: 18ch; margin: var(--e-8) 0 0; text-wrap: balance; }
.note-discrete { color: var(--encre-3); font-size: var(--t-petit); margin-top: var(--e-6); }

/* ---------- 4. En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fond) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--ligne) 70%, transparent);
}
.entete__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--encre); text-decoration: none; font-weight: 650; }
.logo:hover { color: var(--encre); }
.logo__marque {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: var(--rayon-petit);
  background: var(--accent); color: var(--sur-accent);
  font-family: var(--police-titre); font-size: var(--t-petit); letter-spacing: 0;
}
.logo__nom { font-size: var(--t-corps); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__liens { display: none; list-style: none; margin: 0; padding: 0; gap: 1.6rem; }
.nav__liens a { display: inline-flex; align-items: center; min-height: 44px; position: relative; color: var(--encre-2); text-decoration: none; font-size: var(--t-petit); }
.nav__liens a:hover { color: var(--encre); }
@media (min-width: 1080px) { .nav__liens { display: flex; } }

/* ---------- 5. Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .75rem 1.65rem; border: 0; border-radius: 10px; letter-spacing: .01em;
  background: var(--accent); color: var(--sur-accent);
  font: inherit; font-weight: 650; font-size: var(--t-corps); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 8px 18px -8px rgb(31 64 50 / .5);
  transition: background-color .2s ease, transform .2s var(--sortie), box-shadow .2s ease;
}
.bouton::after { content: "→"; content: "→" / ""; display: inline-block; transition: transform .2s var(--sortie); }
.bouton:hover { background: var(--accent-fort); color: var(--sur-accent); }
.bouton:hover::after { transform: translateX(4px); }
.bouton:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 3px 8px -4px rgb(31 64 50 / .5); }
.bouton--petit { min-height: 2.75rem; padding: .5rem 1rem; font-size: var(--t-petit); }
.bouton--petit::after { content: none; }
.lien-fleche { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--encre); }
.lien-fleche:hover { color: var(--accent-texte); }

/* ---------- 6. Hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 6rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; overflow: clip;
  background: radial-gradient(52% 62% at 80% 40%, var(--halo) 0%, transparent 72%); } /* clip : coupe sans créer de conteneur de défilement (timelines view()) */
.hero__grille { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero__grille { grid-template-columns: 7fr 5fr; gap: 4.5rem; } }
.hero__sous { font-size: var(--t-chapeau); line-height: 1.5; color: var(--encre-2); max-width: var(--largeur-texte); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-4) var(--e-5); margin-top: var(--e-6); }

/* Démonstration : question → réponse → source (contenu fictif) */
.demo { margin: 0; }
.demo__fenetre {
  max-width: 34rem; margin-inline: auto; padding: 1.25rem; border-radius: var(--rayon-grand);
  background: var(--surface); border: 1px solid var(--ligne);
  box-shadow: 14px 16px 0 0 var(--accent-doux), 14px 16px 0 1px var(--ligne), 0 24px 48px -12px rgb(20 40 32 / .16);
  font-size: var(--t-petit); font-variant-numeric: tabular-nums;
}
.demo__barre {
  display: flex; align-items: center; gap: .55rem; margin: -.25rem 0 1rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--ligne); font-size: var(--t-label); font-weight: 600; color: var(--encre-3);
}
.demo__point { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
.demo__qui { margin: 0 0 .3rem; font-size: var(--t-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-3); }
.demo__question { padding: .9rem 1rem; border-radius: var(--rayon); background: var(--fond-2); margin-bottom: .9rem; }
.demo__question p:last-child { margin: 0; font-weight: 600; }
.demo__reponse { padding: .9rem 1rem; border-radius: var(--rayon); border: 1px solid var(--ligne); }
.demo__reponse > p:not(.demo__qui) { color: var(--encre-2); }
.demo__source { margin: 0; padding-top: .4rem; border-top: 1px dashed var(--ligne); font-size: var(--t-label); color: var(--encre-2); line-height: 1.5; }
.demo__source summary {
  display: flex; align-items: center; gap: .25rem .6rem; min-height: 44px; list-style: none; cursor: pointer;
  border-radius: var(--rayon-petit);
}
.demo__source summary::-webkit-details-marker { display: none; }
.demo__source summary::after { content: "▾"; content: "▾" / ""; flex: none; margin-left: auto; padding-inline: .5rem; font-size: 1rem; color: var(--accent-texte); transition: transform .2s var(--sortie); }
.demo__source summary:hover { color: var(--encre); }
.demo__source[open] summary::after { transform: rotate(180deg); }
.demo__source .demo__badge { flex: none; margin-right: 0; }
.demo__extrait { margin: .25rem 0 .5rem; padding: .75rem 1rem; border-radius: var(--rayon-petit); background: var(--fond-2); }
.demo__extrait p { margin: 0; color: var(--encre-2); }
.demo__extrait .demo__extrait-titre { margin-bottom: .25rem; font-weight: 650; color: var(--encre); }
.demo__reponse > .demo__valide { margin: .5rem 0 0; font-size: var(--t-label); }
.demo__badge {
  display: inline-block; margin-right: .4rem; padding: .05rem .5rem; border-radius: 999px;
  background: var(--accent-doux); color: var(--accent-texte); font-size: var(--t-label); font-weight: 700; letter-spacing: .04em;
}
.demo__valide { color: var(--vert); font-weight: 600; }
.demo__reponse > p.demo__valide { color: var(--vert); }
.demo__valide::before { content: "✓ "; content: "✓ " / ""; }
.demo figcaption { text-align: center; color: var(--encre-3); font-size: var(--t-label); margin-top: var(--e-3); }
@media (prefers-reduced-motion: no-preference) {
  .demo__fenetre { animation: carte .6s .9s cubic-bezier(.22, 1, .36, 1) both; }
  .demo__question { animation: arrivee .32s 1.2s cubic-bezier(.22, 1, .36, 1) both; }
  .demo__reponse { animation: arrivee .4s 1.5s cubic-bezier(.22, 1, .36, 1) both; }
  .demo__source { animation: arrivee .32s 1.8s cubic-bezier(.22, 1, .36, 1) both; }
}
@keyframes arrivee { from { opacity: 0; transform: translateY(6px); } }
@keyframes carte { from { opacity: 0; transform: translateY(24px) scale(.97); } }


/* Schéma du deuxième cerveau */
.schema { margin: 0; }
.schema__svg { width: 100%; max-width: 520px; margin-inline: auto; }
.schema figcaption { text-align: center; color: var(--encre-3); font-size: var(--t-label); margin-top: var(--e-3); }
.schema__liens path { fill: none; stroke: var(--ligne); stroke-width: 2; stroke-dasharray: 4 6; }
.schema__liens .schema__lien-ia { stroke: var(--accent); stroke-dasharray: none; stroke-width: 2.5; }
.schema__source rect { fill: var(--surface); stroke: var(--ligne); stroke-width: 1.5; }
.schema__source text, .schema__ia text, .schema__etiquette {
  font-family: var(--police-texte); font-size: 18px; font-weight: 600; text-anchor: middle; fill: var(--encre-2);
}
.schema__halo { fill: var(--accent-doux); }
.schema__graphe path { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .55; }
.schema__noeud { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.schema__noeud--fort { fill: var(--accent); }
.schema__etiquette { fill: var(--encre); font-family: var(--police-titre); font-size: 19px; }
.schema__ia rect { fill: var(--indigo); }
.schema__ia text { fill: var(--sur-accent); font-family: var(--police-titre); font-size: 22px; }

/* Plus de boucle infinie (WCAG 2.2.2) : le flux suit le défilement (section 17) ; sinon, pointillés fixes. */
@keyframes flux { to { stroke-dashoffset: -60; } }

/* ---------- 7. Deuxième cerveau ---------- */
.liste { color: var(--encre-2); }
.liste { margin: 0; padding-left: 1.1rem; }
.liste li + li { margin-top: .5rem; }

.carte-donnees {
  margin-top: var(--e-7);
  padding: clamp(var(--e-5), 4vw, var(--e-6));
  border-radius: var(--rayon-grand);
  background: var(--fond);
  border: 1px solid var(--ligne);
}
.carte-donnees__tete { max-width: var(--largeur-texte); margin-bottom: var(--e-5); }
.carte-donnees__tete p { color: var(--encre-2); margin: 0; }
.feux { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-5); }
@media (min-width: 820px) { .feux { grid-template-columns: repeat(3, 1fr); } }
.feu {
  position: relative; display: flex; flex-direction: column; padding: var(--e-5); border-radius: var(--rayon);
  background: var(--surface); border: 1px solid var(--ligne);
}
.feu::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--rayon) var(--rayon) 0 0;
  background: var(--teinte);
}
.feu--vert { --teinte: var(--vert); }
.feu--jaune { --teinte: var(--jaune); }
.feu--rouge { --teinte: var(--rouge); }
.feu__pastille { display: block; width: .9rem; height: .9rem; border-radius: 50%; background: var(--teinte); margin-bottom: 1rem;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--teinte) 18%, transparent); }
.feu h4 { font-size: var(--t-chapeau); margin-bottom: var(--e-2); }
.feu__couleur { display: block; font-family: var(--police-texte); font-size: var(--t-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teinte); margin-bottom: .2rem; }
.feu p { margin-bottom: var(--e-4); color: var(--encre-2); font-size: var(--t-petit); }
.feu p.feu__ex { margin: auto 0 0; padding-top: var(--e-3); border-top: 1px solid var(--ligne); font-size: var(--t-label); color: var(--encre-3); }
.carte-donnees__note { margin: var(--e-5) 0 0; color: var(--encre-2); }

/* ---------- 8-9. L'offre : phases + schéma « en parallèle » ---------- */
.offre__grille { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: start; }
@media (min-width: 960px) {
  .offre__grille { grid-template-columns: 1.1fr .9fr; }
  .jumeau { position: sticky; top: 6rem; }
}
.phases { list-style: none; margin: 0; padding: 0; counter-reset: phase; }
.phase { counter-increment: phase; position: relative; padding: 0 0 var(--e-7) 4.5rem; }
.phase::before {
  content: counter(phase); content: counter(phase) / "";
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--accent); color: var(--sur-accent); font-family: var(--police-titre); font-size: 1.25rem; font-weight: 500;
}
.phase:not(:last-child)::after { content: ""; position: absolute; left: calc(1.5rem - 1px); top: 3.5rem; bottom: .5rem; width: 2px; background: var(--or); }
.phase h3 { font-size: var(--t-h3); margin: 0 0 var(--e-2); padding-top: .4rem; }
.phase p { color: var(--encre-2); font-size: var(--t-petit); margin: 0; }
.offre__suite { margin: var(--e-6) 0 0; }

.jumeau { margin: 0; }
.jumeau__svg { width: 100%; max-width: 400px; margin-inline: auto; }
.jumeau figcaption { text-align: center; color: var(--encre-3); font-size: var(--t-label); margin-top: var(--e-3); }
.jumeau__voie { fill: var(--fond); stroke: var(--ligne); stroke-width: 1.5; }
.jumeau__voie--agent { fill: var(--accent-doux); stroke: color-mix(in srgb, var(--accent) 35%, var(--ligne)); }
.jumeau__titre-voie { font-family: var(--police-titre); font-size: 15px; font-weight: 600; text-anchor: middle; fill: var(--encre); }
.jumeau__boite rect { fill: var(--surface); stroke: var(--ligne); stroke-width: 1.5; }
.jumeau__nom { font-family: var(--police-texte); font-size: 14px; font-weight: 650; text-anchor: middle; fill: var(--encre); }
.jumeau__etat { font-family: var(--police-texte); font-size: 13px; text-anchor: middle; fill: var(--encre-3); }
.jumeau__boite--veille rect { fill: var(--fond-2); } /* en réserve : atténuée, texte au contraste plein */
.jumeau__boite--agent rect { fill: var(--accent); stroke: var(--accent); }
.jumeau__boite--agent .jumeau__nom, .jumeau__boite--agent .jumeau__etat { fill: var(--sur-accent); }
.jumeau__boite--essai rect { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; } /* en essai : pointillé */
.jumeau__boite--attente rect { fill: var(--fond); stroke-dasharray: 3 5; } /* pas commencée : contour pâle ; pas d'opacité, le texte garde son contraste */
.jumeau__fleche { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.jumeau__retour { fill: none; stroke: var(--jaune); stroke-width: 2; stroke-dasharray: 4 3; }
.jumeau__double { fill: none; stroke: var(--encre-3); stroke-width: 2; stroke-dasharray: 2 4; }
.jumeau__pointe { fill: var(--accent); }
.jumeau__pointe--retour { fill: var(--jaune); }
.jumeau__legende text { font-family: var(--police-texte); font-size: 15px; fill: var(--encre-2); }


/* ---------- 9 bis. Deux pièces et trois forfaits ---------- */
.pieces { display: grid; gap: var(--e-5); }
@media (min-width: 960px) { .pieces { grid-template-columns: 1fr 1fr; gap: var(--e-8); } }
.piece { padding: var(--e-5) 0 0; border-top: 2px solid var(--accent); }
.piece__num { margin: 0 0 var(--e-3); color: var(--accent-texte); font-family: var(--police-titre); font-size: 3.5rem; font-weight: 500; line-height: 1; }
.piece > p { color: var(--encre-2); }
.piece__photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--rayon); margin: 0 0 var(--e-5); background: var(--fond-2); }
.piece .liste { font-size: var(--t-petit); }
.piece .schema { margin-top: var(--e-5); }

.forfaits { display: grid; align-items: stretch; background: var(--fond); border: 1px solid var(--ligne-panneau); border-radius: 16px; overflow: hidden; box-shadow: var(--ombre); }
@media (min-width: 960px) { .forfaits { grid-template-columns: repeat(3, 1fr); } }
.forfait { position: relative; display: flex; flex-direction: column; padding: 3.5rem var(--e-6) var(--e-6); background: var(--fond); }
.forfait + .forfait { border-top: 1px solid var(--ligne); }
@media (min-width: 960px) { .forfait + .forfait { border-top: 0; border-left: 1px solid var(--ligne); } }
.forfait--depart { background: var(--surface); box-shadow: inset 0 4px 0 var(--accent); }
.forfait__badge {
  position: absolute; top: var(--e-5); left: var(--e-6); margin: 0; padding: .1rem .65rem; border-radius: 4px;
  background: var(--accent); color: var(--sur-accent); font-size: var(--t-label); font-weight: 650;
}
.forfait h3 { font-size: 2rem; letter-spacing: -.02em; margin-bottom: var(--e-2); }
.forfait__accroche { margin: 0 0 var(--e-4); color: var(--encre-2); }
.forfait__pour { margin: 0 0 var(--e-4); padding: var(--e-2) var(--e-3); border-radius: var(--rayon-petit); background: var(--accent-doux); color: var(--accent-texte); font-size: var(--t-petit); font-weight: 650; }
@media (min-width: 960px) { .forfait__pour { display: flex; align-items: center; min-height: 3.25rem; } }
.forfait__liste { list-style: none; margin: 0 0 var(--e-5); padding: 0; display: grid; gap: var(--e-3); font-size: var(--t-petit); color: var(--encre-2); font-variant-numeric: tabular-nums; }
.forfait__liste li { position: relative; padding-left: 1.6rem; }
.forfait__liste li::before { content: "✓"; content: "✓" / ""; position: absolute; left: 0; color: var(--vert); font-weight: 700; }
.forfait__delai { margin: auto 0 0; padding-top: var(--e-4); border-top: 1px solid var(--ligne); font-size: var(--t-petit); color: var(--encre-2); }
.modes { display: grid; gap: var(--e-5) var(--e-8); margin-top: var(--e-7); }
@media (min-width: 720px) { .modes { grid-template-columns: 1fr 1fr; } }
.mode { padding: var(--e-4) 0 0; border-top: 1px solid var(--filet); }
.mode h3 { font-size: var(--t-chapeau); margin-bottom: var(--e-2); }
.mode p { margin: 0; color: var(--encre-2); font-size: var(--t-petit); }
.forfaits__note { max-width: var(--largeur-texte); margin: var(--e-6) 0 0; color: var(--encre-3); font-size: var(--t-petit); }

#a-propos { border-top: 1px solid var(--ligne); }
#probleme { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(5rem, 11vw, 9rem); }
#probleme .liste { list-style: none; padding: 0; border-top: 1px solid var(--ligne); }
#probleme .liste li { margin: 0; padding: 1.25rem 0; border-bottom: 1px solid var(--ligne); font-family: var(--police-titre); font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); line-height: 1.3; color: var(--encre-2); }

/* ---------- 11. Pourquoi moi : fiche « En bref » (place prévue pour la photo au-dessus) ---------- */
.apropos { display: grid; gap: var(--e-7); align-items: start; }
@media (min-width: 860px) { .apropos { grid-template-columns: 22rem 1fr; } }
.apropos__cote { display: grid; gap: var(--e-5); }
.apropos__photo { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--rayon-grand); object-fit: cover; }
.apropos__texte p { color: var(--encre-2); }
.fiche { color: var(--encre); border-top: 2px solid var(--accent); padding: var(--e-5) 0 0; }
.fiche__titre { margin: 0 0 var(--e-5); font-family: var(--police-titre); font-size: var(--t-h3); font-weight: 600; }
.fiche dl { display: grid; gap: var(--e-4); margin: 0; }
.fiche dt { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-texte); font-weight: 650; }
.fiche dd { margin: var(--e-1) 0 0; font-size: var(--t-petit); color: var(--encre-2); }

/* ---------- 12. FAQ ---------- */
.faq { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-family: var(--police-titre); font-size: var(--t-chapeau); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-texte); }
.faq summary::after {
  content: "+"; content: "+" / ""; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid var(--ligne); font-family: var(--police-texte); font-weight: 400; color: var(--encre-2);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--encre-2); padding-bottom: var(--e-5); margin: 0; max-width: var(--largeur-texte); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }


/* ---------- 13. Contact : fond vert sauge pâle, une seule zone d'action ---------- */
.section--contact { padding-block: 0 var(--e-8); }
.section--contact .contact {
  width: min(var(--largeur), 100% - 2 * var(--goutiere)); padding: clamp(2rem, 6vw, 5rem);
  background: var(--ilot); border-radius: var(--rayon-ilot);
}
.section--contact h2 { font-size: clamp(2.5rem, 1.2rem + 4vw, 4rem); max-width: none; letter-spacing: -.035em; }
.contact { display: grid; gap: var(--e-7); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__texte > p:not(.surtitre) { font-size: var(--t-chapeau); line-height: 1.5; max-width: var(--largeur-texte); }
.contact__action { display: grid; gap: var(--e-4); justify-items: start; }
.contact__coord { margin: 0; }
.contact__note { margin: 0; font-size: var(--t-petit); max-width: var(--largeur-texte); }

/* ---------- 14. Pied de page ---------- */
.pied { padding-block: var(--e-7) var(--e-5); font-size: var(--t-petit); color: var(--encre-2); }
.pied__in { display: grid; gap: var(--e-6); }
@media (min-width: 760px) { .pied__in { grid-template-columns: 2fr 1fr 1fr; } }
.pied p { margin: 0 0 var(--e-2); }
.pied__titre { font-size: var(--t-label); font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-3); }
.pied__bas { margin-top: var(--e-6); padding-top: var(--e-5); border-top: 1px solid var(--ligne); }
.pied a { color: var(--encre-2); }
.pied a:hover { color: var(--encre); }
.pied__nom { font-family: var(--police-titre); font-size: var(--t-chapeau); font-weight: 600; color: var(--encre); }
.pied p.pied__droits { color: var(--encre-3); margin: 0; font-size: var(--t-label); }

/* ---------- 15. Pages de texte (confidentialité) ---------- */
.prose h1 { font-size: clamp(2.2rem, 4vw + .6rem, 3.4rem); }
.prose h2 { font-size: clamp(1.35rem, 1vw + 1rem, 1.7rem); max-width: none; margin-top: 2.4rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .6rem; }
.prose p, .prose li { color: var(--encre-2); }
.introuvable { min-height: 60vh; }

/* ---------- 16. Apparition au défilement ----------
   CSS seulement : si le navigateur ne gère pas les animations liées au défilement,
   ou si l'appareil demande moins de mouvement, le contenu est simplement visible.
   (Jamais de contenu caché qui dépendrait de JavaScript.) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-apparition] {
      animation: apparition linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes apparition { from { opacity: 0; transform: translateY(12px); } }

/* ---------- 17. Mouvement (v4) ----------
   Règles : l'état par défaut est l'état final, visible. Tout état de départ caché vit
   seulement sous prefers-reduced-motion: no-preference ET @supports. On anime transform
   et opacity (exception : stroke-dashoffset de quelques traits SVG, lié au défilement).
   Rien sur le H1 ni sur les boutons du hero. Aucune bibliothèque. */
:root { --ressort: cubic-bezier(.34, 1.56, .64, 1); --sortie: cubic-bezier(.22, 1, .36, 1); }
@supports (transition-timing-function: linear(0, 1)) {
  :root { --ressort: linear(0, .006, .025 2.8%, .101 6.1%, .539 18.9%, .721 25.3%, .849 31.5%, .937 38.1%, .968 41.8%, .991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.9%, 1); }
}

/* Changement de page (accueil, confidentialité, 404) : enrichissement, Firefox l'ignore */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .entete { view-transition-name: entete; }
  ::view-transition-old(root) { animation: vt-sortie .18s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-entree .32s var(--sortie) both; }
}
@keyframes vt-sortie { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-entree { from { opacity: 0; transform: translateY(10px); } }

/* En-tête : ombre qui apparaît au défilement, barre de lecture */
.entete::after {
  content: ""; position: absolute; inset: auto 0 -12px 0; height: 12px; pointer-events: none;
  background: linear-gradient(rgb(20 40 32 / .07), transparent);
}
@supports (animation-timeline: scroll()) {
  .entete::after { animation: fondu linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
  @media (prefers-reduced-motion: no-preference) {
    .entete::before {
      content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
      background: var(--or); transform-origin: 0 50%;
      animation: progression linear both; animation-timeline: scroll(root);
    }
  }
}
@keyframes fondu { from { opacity: 0; } }
@keyframes progression { from { transform: scaleX(0); } }

/* Navigation : soulignement qui glisse */
.nav__liens a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .14s var(--sortie);
}
.nav__liens a:hover::after, .nav__liens a:focus-visible::after { transform: scaleX(1); }

/* Boutons : aucun rebond ; seule la couleur change au survol */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Schéma du cerveau : le flux avance avec le défilement */
    .schema__liens path { animation: flux linear both; animation-timeline: view(); animation-range: cover; }
    .schema__liens .schema__lien-ia { animation: none; }

    /* Cascades : les enfants arrivent l'un après l'autre */
    [data-cascade] > * {
      animation: apparition both; animation-timing-function: cubic-bezier(.2, .7, .2, 1);
      animation-timeline: view(); animation-range: entry 5% entry 45%;
    }
    [data-cascade] > :nth-child(2) { animation-range: entry 12% entry 52%; }
    [data-cascade] > :nth-child(3) { animation-range: entry 19% entry 59%; }
    [data-cascade] > :nth-child(n+4) { animation-range: entry 26% entry 66%; }

    /* Schéma « en parallèle » : la copie glisse, la bascule se trace, le retour apparaît */
    .jumeau { view-timeline: --parallele block; }
    @media (min-width: 960px) {
      .offre__grille { view-timeline: --parallele block; }
      .jumeau { view-timeline: none; }
    }
    .jumeau__copie { animation: parallele-copie both; animation-timing-function: cubic-bezier(.2, .8, .2, 1); animation-timeline: --parallele; }
    .jumeau__rang .jumeau__fleche { stroke-dasharray: 1; animation: parallele-trace linear both; animation-timeline: --parallele; }
    .jumeau__rang .jumeau__retour, .jumeau__rang .jumeau__double { animation: fondu linear both; animation-timeline: --parallele; }
    .jumeau__rang--1 .jumeau__copie  { animation-range: cover 15% cover 30%; }
    .jumeau__rang--1 .jumeau__fleche { animation-range: cover 24% cover 32%; }
    .jumeau__rang--1 .jumeau__retour { animation-range: cover 32% cover 37%; }
    .jumeau__rang--2 .jumeau__copie  { animation-range: cover 30% cover 45%; }
    .jumeau__rang--2 .jumeau__fleche { animation-range: cover 39% cover 47%; }
    .jumeau__rang--2 .jumeau__retour { animation-range: cover 47% cover 52%; }
    .jumeau__rang--3 .jumeau__copie  { animation-range: cover 45% cover 60%; }
    .jumeau__rang--3 .jumeau__double { animation-range: cover 55% cover 62%; }
  }
}
@keyframes parallele-copie { from { transform: translateX(-180px); opacity: .25; } }
@keyframes parallele-trace { from { stroke-dashoffset: 1; } }

/* FAQ : le « + » tourne avec un ressort, le contenu glisse à l'ouverture */
.faq summary::after { transition: transform .45s ease-out; transition: transform .45s var(--ressort); }
@media (prefers-reduced-motion: no-preference) {
  @supports selector(::details-content) {
    .faq details::details-content {
      opacity: 0; transform: translateY(-.4rem);
      transition: opacity .28s ease, transform .28s var(--sortie), content-visibility .28s allow-discrete;
    }
    .faq details[open]::details-content { opacity: 1; transform: none; }
  }
}


/* Menu mobile : popover natif (Échap, clic extérieur et couche supérieure sans JS).
   Sans support du popover, le bouton reste caché et le panneau aussi. */
.menu__bouton { display: none; }
.menu__panneau { display: none; }
@supports selector(:popover-open) {
  @media (max-width: 1079px) {
    .menu__bouton {
      display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
      border: 1px solid var(--ligne); border-radius: var(--rayon-petit); background: transparent; color: var(--encre);
      cursor: pointer;
    }
  }
}
/* le menu se ferme au choix d'un lien (site.js) */
.menu__panneau:popover-open {
  display: block; position: fixed; inset: 4.75rem var(--goutiere) auto auto; margin: 0;
  min-width: 14rem; max-width: calc(100vw - 2 * var(--goutiere)); padding: .5rem;
  max-height: calc(100vh - 5.75rem); max-height: calc(100dvh - 5.75rem); overflow-y: auto; overscroll-behavior: contain; /* liens accessibles par défilement si l'écran est court */
  background: var(--surface); color: var(--encre); border: 1px solid var(--ligne);
  border-radius: var(--rayon); box-shadow: var(--ombre);
  opacity: 1; transform: none;
  transition: opacity .2s ease, transform .25s var(--ressort), overlay .25s allow-discrete, display .25s allow-discrete;
}
@starting-style { .menu__panneau:popover-open { opacity: 0; transform: translateY(-8px); } }
.menu__panneau ul { list-style: none; margin: 0; padding: 0; }
.menu__panneau a {
  display: flex; align-items: center; min-height: 44px; padding: 0 .75rem; border-radius: var(--rayon-petit);
  color: var(--encre); text-decoration: none;
}
.menu__panneau a:hover { background: var(--fond-2); }
/* Sans popover : les liens restent visibles, sur une seconde ligne au besoin */
@supports not selector(:popover-open) {
  @media (max-width: 1079px) {
    .entete__in { flex-wrap: wrap; padding-block: .5rem; }
    .nav { flex-wrap: wrap; }
    .nav__liens { display: flex; flex-wrap: wrap; gap: 0 1rem; }
  }
}

/* Impression et filet de sécurité */
@media print {
  [data-apparition], [data-cascade] > *, .jumeau *, .schema *, .demo, .demo * { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- 18. Animation signature du hero : le deuxième cerveau se construit ----------
   1) six documents convergent vers leur place ; 2) des liens se tracent jusqu'au réseau ;
   3) le cœur « Deuxième cerveau » s'allume et émet deux ondes ; 4) la carte question → réponse → source arrive.
   Environ 4 s, une seule fois (WCAG 2.2.2). État par défaut = image finale : sans animation
   (mouvement réduit, impression, vieux navigateur), le schéma complet s'affiche immobile.
   On anime seulement transform, opacity et stroke-dashoffset (traits courts). */
.demo--signature { display: grid; }
.signature { width: 100%; max-width: 560px; margin: 0 auto -1.25rem; }
.signature__svg { width: 100%; height: auto; overflow: visible; }
.demo--signature .demo__fenetre { position: relative; z-index: 1; width: min(100%, 30rem); margin-left: auto; margin-right: 0; }
@media (max-width: 959px) { .demo--signature .demo__fenetre { margin-inline: auto; } }
.sig__lien, .sig__maille, .sig__rayon { fill: none; stroke-linecap: round; }
.sig__lien { stroke: var(--ligne); stroke-width: 1.5; }
.sig__maille { stroke: color-mix(in srgb, var(--or) 55%, var(--ligne)); stroke-width: 1.5; }
.sig__rayon { stroke: var(--or); stroke-width: 1.75; }
.sig__noeud { fill: var(--surface); stroke: var(--or); stroke-width: 2.5; }
.sig__coeur-fond { fill: var(--accent); }
.sig__coeur-anneau { fill: none; stroke: var(--or); stroke-width: 1.5; }
.sig__coeur text { font-family: var(--police-titre); font-size: 17px; font-weight: 600; text-anchor: middle; fill: var(--sur-accent); }
.sig__onde { fill: none; stroke: var(--or); stroke-width: 1.5; opacity: 0; } /* décor pur (SVG aria-hidden) : invisible au repos et en mouvement réduit, voulu ; exclu du contrôle de visibilité */
.sig__doc rect { fill: var(--surface); stroke: var(--ligne); stroke-width: 1.25; }
.sig__doc circle { fill: var(--or); }
.sig__doc text { font-family: var(--police-texte); font-size: 21px; font-weight: 600; text-anchor: middle; fill: var(--encre-2); }
.sig__doc, .sig__noeud, .sig__coeur, .sig__onde { transform-box: fill-box; transform-origin: center; }
@media (prefers-color-scheme: dark) { .sig__doc rect { fill: var(--fond-2); } }

.sig__doc--1 { --dx: -98px; --dy: -41px; --delai: 0.10s; }
.sig__lien--1 { --delai: 0.95s; }
.sig__noeud--1 { --delai: 1.15s; }
.sig__maille--1, .sig__rayon--1 { --delai: 1.45s; }
.sig__doc--2 { --dx: 0px; --dy: -82px; --delai: 0.19s; }
.sig__lien--2 { --delai: 1.02s; }
.sig__noeud--2 { --delai: 1.22s; }
.sig__maille--2, .sig__rayon--2 { --delai: 1.51s; }
.sig__doc--3 { --dx: 98px; --dy: -41px; --delai: 0.28s; }
.sig__lien--3 { --delai: 1.09s; }
.sig__noeud--3 { --delai: 1.29s; }
.sig__maille--3, .sig__rayon--3 { --delai: 1.57s; }
.sig__doc--4 { --dx: 98px; --dy: 41px; --delai: 0.37s; }
.sig__lien--4 { --delai: 1.16s; }
.sig__noeud--4 { --delai: 1.36s; }
.sig__maille--4, .sig__rayon--4 { --delai: 1.63s; }
.sig__doc--5 { --dx: 0px; --dy: 96px; --delai: 0.46s; }
.sig__lien--5 { --delai: 1.23s; }
.sig__noeud--5 { --delai: 1.43s; }
.sig__maille--5, .sig__rayon--5 { --delai: 1.69s; }
.sig__doc--6 { --dx: -98px; --dy: 41px; --delai: 0.55s; }
.sig__lien--6 { --delai: 1.30s; }
.sig__noeud--6 { --delai: 1.50s; }
.sig__maille--6, .sig__rayon--6 { --delai: 1.75s; }

@media (prefers-reduced-motion: no-preference) {
  .sig__doc { animation: sig-converge .9s var(--delai) cubic-bezier(.16, 1, .3, 1) both; }
  .sig__lien, .sig__maille, .sig__rayon { stroke-dasharray: 1; animation: sig-trace .55s var(--delai) cubic-bezier(.65, 0, .35, 1) both; }
  .sig__noeud { animation: sig-pop .45s var(--delai) var(--ressort) both; }
  .sig__coeur { animation: sig-pop .6s 1.7s var(--ressort) both; }
  .sig__onde { animation: sig-onde 1.1s 2.05s cubic-bezier(.22, 1, .36, 1) both; }
  .sig__onde--2 { animation-delay: 2.45s; }
}
@keyframes sig-converge { from { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.9); } }
@keyframes sig-trace { from { stroke-dashoffset: 1; } }
@keyframes sig-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes sig-onde { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }

/* La signature joue à l'ouverture de la page à toutes les largeurs : à 390 px, elle est déjà dans le
   premier écran ; une timeline de défilement ne pourrait pas finir sans défilement (mesure fb5ec53). */


.ancre-ancienne { display: block; height: 0; } /* alias d'anciens liens ; le décalage de l'en-tête vient de scroll-padding-top */

/* ---------- 20. Version moderne (2026-10-05) : garanties, listes ---------- */
.garanties { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-5); list-style: none; margin: var(--e-5) 0 0; padding: 0; font-size: var(--t-petit); color: var(--encre-2); }
.garanties li::before { content: "✓ "; content: "✓ " / ""; color: var(--vert); font-weight: 700; }
p + .liste { margin-top: var(--e-3); }
.section__tete .liste.section__chapeau { padding-left: 1.2rem; }
.section__tete .liste.section__chapeau li + li { margin-top: var(--e-2); }

/* ---------- 21. Finition (2026-10-05) : un seul bord gauche, pied, mobile ----------
   Règles : une échelle de jetons ; un seul bord gauche ; le nombre de colonnes divise le nombre de cartes ;
   un style par fonction ; lisible d'abord, animé ensuite. */
.grille-5-7, .grille-4-8 { display: grid; gap: var(--e-5) var(--e-7); align-items: start; }
.grille-5-7 h2 { margin: 0; }
.grille-4-8 .section__tete { margin-bottom: 0; }
@media (min-width: 960px) {
  .grille-5-7 { grid-template-columns: 5fr 7fr; }
  .grille-4-8 { grid-template-columns: 4fr 8fr; }
  .grille-4-8 .section__tete { position: sticky; top: 6rem; }
}
.pied nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--e-5); }
@media (min-width: 760px) { .pied nav ul { grid-template-columns: 1fr; } }
.pied nav a { display: inline-flex; align-items: center; min-height: 44px; }
.menu__icone { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (min-width: 960px) {
  .feu { padding-block: var(--e-6); }
  .feu { padding-inline: var(--e-6); }
}
/* Mobile : sections plus compactes, le bouton d'en-tête reste visible */
@media (max-width: 599px) {
  .contact__action .bouton::after { content: none; }
  .signature { display: none; } /* schéma décoratif (aria-hidden) ; la carte question, réponse et source reste */
  .section__tete { margin-bottom: var(--e-5); }
  .carte-donnees { padding: var(--e-4); }
}
@media (max-width: 479px) {
  .entete__in:has(.menu__bouton) .logo__nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* nom gardé pour les lecteurs d'écran */
  .nav { gap: var(--e-2); }
}
