/* =====================================================================
   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 « Blanc et or » (2026-10-04) — vrai blanc, texte graphite, une seule touche d'or.
     --accent : boutons et traits (graphite en clair, or champagne en sombre) ; --accent-texte : or foncé lisible (≥ 5:1) ;
     --or : filets décoratifs seulement. */
  --fond: #FFFFFF;
  --fond-2: #F6F6F4;
  --surface: #FFFFFF;
  --encre: #16181D;
  --encre-2: #4A4E57;
  --encre-3: #5F636C;
  --ligne: #E6E4DF;
  --accent: #16181D;
  --accent-fort: #33363D;
  --accent-texte: #7D5F28;
  --accent-doux: #F4EEE2;
  --sur-accent: #FFFFFF;
  --indigo: #3A3D45;
  --vert: #2F6F57;
  --jaune: #8A6508;
  --rouge: #B3412E;
  --or: #B08D57;
  --ombre: 0 1px 2px rgb(22 24 29 / .04), 0 12px 32px rgb(22 24 29 / .06);

  --rayon: 8px;
  --rayon-grand: 12px;
  --largeur: 1160px;
  --largeur-texte: 44rem;
  --goutiere: clamp(1rem, 4vw, 2rem);
  --espace-section: clamp(4rem, 10vw, 7.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0F1012;
    --fond-2: #15161A;
    --surface: #1C1D22;
    --encre: #F3F1EC;
    --encre-2: #C6C6C9;
    --encre-3: #9A9CA3;
    --ligne: #2C2D33;
    --accent: #D4B87A;
    --accent-fort: #E3CC97;
    --accent-texte: #D4B87A;
    --accent-doux: #2B2820;
    --sur-accent: #0F1012;
    --indigo: #4A4D57;
    --vert: #8FD1B5;
    --or: #D4B87A;
    --jaune: #E7B743;
    --rouge: #F08A73;
    --ombre: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  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: clamp(2.4rem, 5.2vw + .6rem, 4.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.85rem, 2.6vw + .8rem, 2.9rem); }
h3 { font-size: clamp(1.2rem, .6vw + 1rem, 1.4rem); letter-spacing: -.01em; }
h4 { font-size: 1.1rem; }
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; }
: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: 8px;
}
.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--etroite { padding-block: clamp(3rem, 7vw, 5rem); }
.section--teinte { background: var(--fond-2); }
.section__tete { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__chapeau { font-size: 1.12em; color: var(--encre-2); }
.surtitre {
  display: flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-texte); margin-bottom: 1rem;
}
.surtitre::before { content: ""; flex: none; width: 2rem; height: 1px; background: var(--or);
}
.phrase-forte { font-family: var(--police-titre); font-size: 1.45em; font-weight: 600; color: var(--encre); margin-top: 1.4em; }
.note-discrete { color: var(--encre-3); font-size: .92em; margin-top: 2rem; }

/* ---------- 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: 3px;
  background: #16181D; color: #D4B87A; box-shadow: inset 0 0 0 1px #B08D57;
  font-family: var(--police-titre); font-size: .95rem; letter-spacing: 0;
}
.logo__nom { font-size: 1.02rem; 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: .95rem; }
.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: 3rem; padding: .8rem 1.6rem; border: 0; border-radius: 4px; letter-spacing: .01em;
  background: var(--accent); color: var(--sur-accent);
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.bouton:hover { background: var(--accent-fort); color: var(--sur-accent); transform: translateY(-1px); }
.bouton:active { transform: none; }
.bouton:disabled { opacity: .6; cursor: progress; transform: none; }
.bouton--petit { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: .92rem; }
.lien-fleche { font-weight: 600; text-decoration: none; color: var(--encre); }
.lien-fleche:hover { color: var(--accent-texte); }
@media (prefers-reduced-motion: reduce) { .bouton, .bouton:hover { transition: none; transform: none; } }

/* ---------- 6. Hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; overflow: clip; } /* 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: 1.15fr .85fr; } }
.hero__sous { font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); color: var(--encre-2); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* 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: var(--ombre);
  font-size: .98rem;
}
.demo__barre {
  display: flex; align-items: center; gap: .55rem; margin: -.25rem 0 1rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--ligne); font-size: .82rem; 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: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-3); }
.demo__question { padding: .9rem 1rem; border-radius: 12px; background: var(--fond-2); margin-bottom: .9rem; }
.demo__question p:last-child { margin: 0; font-weight: 600; }
.demo__reponse { padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--ligne); }
.demo__reponse > p:not(.demo__qui) { color: var(--encre-2); }
.demo__source {
  margin: 0 !important; padding-top: .8rem; border-top: 1px dashed var(--ligne);
  font-size: .85rem; color: var(--encre-2); line-height: 1.5;
}
.demo__badge {
  display: inline-block; margin-right: .4rem; padding: .05rem .5rem; border-radius: 999px;
  background: var(--accent-doux); color: var(--accent-texte); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.demo__valide { color: var(--vert); font-weight: 600; }
.demo__valide::before { content: "✓ "; content: "✓ " / ""; }
.demo figcaption { text-align: center; color: var(--encre-3); font-size: .85rem; margin-top: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .demo__fenetre { animation: carte .6s 2.1s cubic-bezier(.22, 1, .36, 1) both; }
  .demo__question { animation: arrivee .32s 2.45s cubic-bezier(.22, 1, .36, 1) both; }
  .demo__reponse { animation: arrivee .4s 2.9s cubic-bezier(.22, 1, .36, 1) both; }
  .demo__source { animation: arrivee .32s 3.45s 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); } }

/* En-tête de la section vedette : texte + schéma */
.vedette__tete { display: grid; gap: 2rem; align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.vedette__tete .section__tete { margin-bottom: 0; }
@media (min-width: 960px) { .vedette__tete { grid-template-columns: 1.1fr .9fr; } }

/* 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: .9rem; margin-top: .75rem; }
.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: #FFFFFF; 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 ---------- */
.section--vedette { background: var(--surface); border-block: 1px solid var(--ligne); }
.trio { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 820px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio__bloc h3 { padding-top: 1rem; border-top: 2px solid var(--encre); }
.trio__bloc p, .liste { color: var(--encre-2); }
.liste { margin: 0; padding-left: 1.1rem; }
.liste li + li { margin-top: .5rem; }

.carte-donnees {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--rayon-grand);
  background: var(--fond);
  border: 1px solid var(--ligne);
}
.carte-donnees__tete { max-width: 40rem; margin-bottom: 2rem; }
.carte-donnees__tete h3 { font-size: clamp(1.4rem, 1.4vw + 1rem, 1.85rem); }
.carte-donnees__tete p { color: var(--encre-2); margin: 0; }
.feux { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 820px) { .feux { grid-template-columns: repeat(3, 1fr); } }
.feu {
  position: relative; padding: 1.5rem 1.4rem 1.3rem; border-radius: var(--rayon);
  background: var(--surface); border: 1px solid var(--ligne); box-shadow: var(--ombre);
}
.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: 1.2rem; margin-bottom: .5rem; }
.feu__couleur { display: block; font-family: var(--police-texte); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teinte); margin-bottom: .2rem; }
.feu p { margin-bottom: .6rem; color: var(--encre-2); font-size: .98rem; }
.feu__ex { font-size: .9rem; color: var(--encre-3); margin: 0; }
.carte-donnees__note { margin: 1.75rem 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; display: grid; gap: 1rem; counter-reset: phase; }
.phase {
  counter-increment: phase; position: relative;
  padding: 1.4rem 1.5rem 1.3rem 4.25rem; border-radius: var(--rayon);
  background: var(--surface); border: 1px solid var(--ligne);
}
.phase::before {
  content: counter(phase); content: counter(phase) / "";
  position: absolute; left: 1.25rem; top: 1.3rem;
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent-texte);
  font-family: var(--police-titre); font-weight: 600; line-height: 1;
}
.phase--cle { border-color: color-mix(in srgb, var(--accent) 40%, var(--ligne)); }
.phase--cle::before { background: var(--accent); color: var(--sur-accent); }
.phase h3 { font-size: clamp(1.15rem, .5vw + 1rem, 1.3rem); margin-bottom: .45rem; }
.phase p { color: var(--encre-2); font-size: .98rem; margin: 0; }
.filet {
  margin-top: clamp(2rem, 5vw, 3rem); padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent); background: var(--surface); border-radius: var(--rayon);
}
.filet h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.filet p { color: var(--encre-2); font-size: .98rem; margin: 0; }
.offre__suite { margin: 2rem 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: .85rem; margin-top: .75rem; }
.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: 16px; 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: 12px; text-anchor: middle; fill: var(--encre-3); }
.jumeau__boite--veille rect { stroke-dasharray: 5 4; }
.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; }
.jumeau__boite--attente rect { fill: var(--fond-2); } /* pas d'opacité : le texte garde son contraste */
.jumeau__boite--attente rect { stroke-dasharray: 3 5; }
.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: 12px; fill: var(--encre-2); }

/* ---------- 9 bis. Ordinateur IA personnel ---------- */
.machine { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: machine; }
@media (min-width: 720px) { .machine { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .machine { grid-template-columns: repeat(4, 1fr); } }
.machine__etape {
  counter-increment: machine; padding: 1.5rem 1.4rem 1.4rem;
  background: var(--surface); border: 1px solid var(--ligne); border-top: 2px solid var(--or); border-radius: var(--rayon);
}
.machine__etape::before {
  content: counter(machine, decimal-leading-zero); content: counter(machine, decimal-leading-zero) / "";
  display: block; margin-bottom: 1rem; font-family: var(--police-titre); font-size: 1.6rem; line-height: 1; color: var(--accent-texte);
}
.machine__etape h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.machine__etape p { color: var(--encre-2); font-size: .96rem; margin: 0; }
.machine__note { max-width: 46rem; margin: 2rem 0 0; color: var(--encre-2); font-size: .98rem; }

/* ---------- 9 ter. Formations ---------- */
.formations { display: grid; gap: 1rem; }
@media (min-width: 720px) { .formations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .formations { grid-template-columns: repeat(3, 1fr); } .formation--equipe { grid-column: span 1; } }
.formation {
  display: flex; flex-direction: column; padding: clamp(1.4rem, 3vw, 1.9rem);
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon);
  transition: border-color .2s ease, transform .3s var(--sortie, ease);
}
@media (hover: hover) and (pointer: fine) {
  .formation:hover { border-color: var(--or); transform: translateY(-2px); }
}
.formation__public { margin: 0 0 .6rem; font-size: .75rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-texte); }
.formation h3 { font-size: clamp(1.15rem, .5vw + 1rem, 1.3rem); margin-bottom: .5rem; }
.formation p { color: var(--encre-2); font-size: .96rem; }
.formation__format { margin: auto 0 0; padding-top: .9rem; border-top: 1px solid var(--ligne); font-size: .88rem !important; color: var(--encre-3) !important; }
.formation--equipe { background: var(--accent); border-color: var(--accent); }
.formation--equipe h3, .formation--equipe p { color: var(--sur-accent) !important; }
.formation--equipe .formation__public { color: var(--or) !important; }
@media (prefers-color-scheme: dark) { .formation--equipe .formation__public { color: var(--sur-accent) !important; } }
.formation--equipe .formation__format { border-top-color: color-mix(in srgb, var(--sur-accent) 25%, transparent); color: color-mix(in srgb, var(--sur-accent) 75%, transparent) !important; }
.formations__note { max-width: 46rem; margin: 2rem 0 0; color: var(--encre-2); font-size: .98rem; }

/* ---------- 10. Réalisations ---------- */
.realisations { display: grid; gap: 1rem; }
@media (min-width: 900px) { .realisations { grid-template-columns: repeat(3, 1fr); } }
.realisation {
  display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--rayon-grand); background: var(--surface); border: 1px solid var(--ligne);
}
.realisation p { color: var(--encre-2); font-size: .98rem; }
.realisation__apport { margin: auto 0 0; padding-top: 1rem; border-top: 1px dashed var(--ligne); }
.realisation__apport strong { color: var(--encre); }

/* ---------- 11. Pourquoi moi ---------- */
.apropos { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .apropos { grid-template-columns: .7fr 1.3fr; } }
.apropos__photo { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; border-radius: var(--rayon-grand); object-fit: cover; }
.apropos__photo--attente {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, var(--accent-doux), transparent 60%),
    var(--surface);
  border: 1px solid var(--ligne);
}
.apropos__photo--attente span { font-family: var(--police-titre); font-size: clamp(4rem, 9vw, 6rem); color: var(--accent-texte); opacity: .85; }
.apropos__texte p { 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: clamp(1.1rem, .5vw + 1rem, 1.3rem); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.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);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--encre-2); padding-bottom: 1.25rem; margin: 0; max-width: 40rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- 13. Contact et formulaire ---------- */
.section--contact { background: var(--fond-2); }
.contact { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__texte > p:not(.surtitre) { color: var(--encre-2); font-size: 1.08em; }
.contact__coord { margin-top: 1.5rem; font-size: .98rem; }
.formulaire {
  display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon-grand); box-shadow: var(--ombre);
}
.formulaire__intro { margin: 0; color: var(--encre-2); }
.champ { display: grid; gap: .4rem; }
.champ label { font-weight: 600; font-size: .95rem; }
.champ input, .champ textarea {
  width: 100%; padding: .8rem .95rem; border-radius: 10px;
  border: 1.5px solid color-mix(in srgb, var(--encre) 55%, var(--surface)); background: var(--fond); color: var(--encre);
  font: inherit; font-size: 1rem;
}
.champ textarea { resize: vertical; min-height: 8rem; }
.champ input:focus-visible, .champ textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
.formulaire .bouton { justify-self: start; }
.formulaire__etat:empty { display: none; }
.formulaire__etat { margin: 0; padding: .85rem 1rem; border-radius: 10px; background: var(--accent-doux); color: var(--encre); font-weight: 600; }
.formulaire__etat[data-etat="champs"], .formulaire__etat[data-etat="courriel"], .formulaire__etat[data-etat="erreur"] {
  background: color-mix(in srgb, var(--rouge) 14%, var(--surface));
}
.formulaire__note { margin: 0; font-size: .85rem; color: var(--encre-3); }
/* Pot de miel : hors écran (pas display:none, que certains robots détectent) */
.pot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 14. Pied de page ---------- */
.pied { padding-block: 3rem; border-top: 1px solid var(--ligne); font-size: .92rem; color: var(--encre-2); }
.pied__in { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .pied__in { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.pied p { margin: 0 0 .4rem; }
.pied a { color: var(--encre-2); }
.pied a:hover { color: var(--encre); }
.pied__nom { font-family: var(--police-titre); font-size: 1.15rem; font-weight: 600; color: var(--encre); }
.pied__droits { color: var(--encre-3); margin-top: .6rem !important; }

/* ---------- 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); margin-top: 2.4rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .6rem; }
.prose p, .prose li { color: var(--encre-2); }
mark.reserve { background: color-mix(in srgb, var(--jaune) 30%, transparent); color: var(--encre); padding: 0 .25em; border-radius: 4px; font-size: .9em; }
.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(0 0 0 / .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 : ressort au survol, petite pression au clic */
.bouton { transition: background-color .2s ease, transform .45s var(--ressort); }
.bouton:active { transform: scale(.98); transition-duration: .09s; }

@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; }
  }
}

/* Message du formulaire */
.formulaire__etat { transition: opacity .3s ease, transform .3s var(--sortie); }
@starting-style { .formulaire__etat { opacity: 0; transform: translateY(6px); } }

/* 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-flex; align-items: center; min-height: 44px; padding: 0 1rem;
      border: 1px solid var(--ligne); border-radius: 4px; background: transparent; color: var(--encre);
      font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
    }
  }
}
.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; /* 7 liens visibles même en paysage ou zoomé */
  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: 10px;
  color: var(--encre); text-decoration: none;
}
.menu__panneau a:hover { background: var(--fond-2); }
@supports selector(:popover-open) {
  @media (max-width: 479px) { .nav:has(.menu__bouton) > .bouton--petit { display: none; } }
}
/* 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 *, .gens * { 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: 15.5px; 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: 19px; 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). */

/* ---------- 19. Pour qui : bande de photos d'ambiance ----------
   Photos Unsplash (licence vérifiée, voir _revue/photos-licences.md), chargées en différé, sous le premier écran (l'élément LCP mesuré est le paragraphe du hero).
   Mouvement : chaque photo monte et se dévoile en cascade, l'image intérieure dézoome doucement au défilement,
   puis un fil d'or se trace sous la rangée vers « un seul deuxième cerveau ». Tout est lié au défilement
   (aucun mouvement automatique) ; en mouvement réduit ou sans support : photos immobiles et fil complet. */
.gens { padding-block: clamp(3rem, 7vw, 5rem); }
.gens__photos {
  list-style: none; margin: 0; padding: 0 0 .5rem; display: grid; grid-auto-flow: column; grid-auto-columns: 68%;
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
@media (min-width: 720px) { .gens__photos { grid-auto-columns: 30%; } }
@media (min-width: 1080px) {
  .gens__photos { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; padding-bottom: 2rem; }
  .gens__item:nth-child(even) { margin-top: 2.5rem; }
}
.gens__item { scroll-snap-align: start; }
.gens__photo { position: relative; margin: 0; overflow: hidden; overflow: clip; border-radius: var(--rayon-grand); background: var(--fond-2); aspect-ratio: 4 / 5; }
.gens__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gens__photo figcaption {
  position: absolute; left: .75rem; bottom: .75rem; padding: .3rem .7rem; border-radius: 999px;
  background: rgb(255 255 255 / .92); color: #16181D; font-size: .8rem; font-weight: 650;
}
.gens__fil { display: flex; align-items: center; gap: .9rem; margin-top: 1.5rem; }
.gens__fil-trait { flex: 1; height: 1px; background: var(--or); transform-origin: 0 50%; }
.gens__fil-but { flex: none; font-family: var(--police-titre); font-size: 1.05rem; font-weight: 600; color: var(--accent-texte); }
.gens__note { margin: 1rem 0 0; font-size: .82rem; color: var(--encre-3); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .gens { view-timeline: --gens block; }
    .gens__item { animation: apparition both; animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-timeline: --gens; animation-range: entry 10% entry 60%; }
    .gens__item:nth-child(2) { animation-range: entry 15% entry 65%; }
    .gens__item:nth-child(3) { animation-range: entry 20% entry 70%; }
    .gens__item:nth-child(4) { animation-range: entry 25% entry 75%; }
    .gens__item:nth-child(5) { animation-range: entry 30% entry 80%; }
    .gens__photo img { animation: gens-zoom linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .gens__fil-trait { animation: gens-fil linear both; animation-timeline: --gens; animation-range: cover 30% cover 55%; }
    .gens__fil-but { animation: fondu linear both; animation-timeline: --gens; animation-range: cover 45% cover 60%; }
  }
}
@keyframes gens-zoom { from { transform: scale(1.14); } }
@keyframes gens-fil { from { transform: scaleX(0); } }

.ancre-ancienne { display: block; position: relative; top: -5rem; }
