/* Le site vitrine de Haou (ADR 0043).
 *
 * La charte de l'application (ADR 0033) : un papier à peine chaud, une encre presque
 * noire, un seul accent pêche et son brun, des titres à empattement en graisse normale,
 * des angles nets. Rien d'autre : pas de dégradé décoratif, pas d'ombre sur ce qui ne
 * flotte pas. Les illustrations et les vidéos sont dessinées avec les mêmes couleurs.
 *
 * Téléphone d'abord, iPhone en tête : zones sûres (encoche, barre d'accueil), hauteurs
 * dynamiques (svh), champs à 16 px (sans quoi Safari zoome), cibles de 44 px.
 */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #ffffff;
  --paper: #fbfaf8;
  --mist: #f2f2f3;
  --mist-2: #e9e9eb;
  --line: #e6e3de;
  --ink: #17191c;
  --ink-2: #26272a;
  --mid: #686c76;            /* texte secondaire : 5,3:1 sur blanc */
  /* Audit du 04/10 : --faint ne sert qu'à du texte (pied de page, durées des chapitres,
     « (facultatif) », sous-titres des onglets), en 13-14 px. À #8a8d96 il tombait à
     3,2:1 sur le papier, sous le seuil de 4,5:1 : il reste un cran plus clair que --mid. */
  --faint: #6e727b;
  --peach: #fbe1d1;
  --peach-line: #f2c9b0;
  --brown: #5d2a1a;          /* sur pêche : 10,6:1 */
  --green: #2f7d32;
  --ember: #c4320a;
  /* Retour du 03/10 : un mode sombre. Les surfaces d'encre gardent un texte clair, quel
     que soit le thème : elles passent par ces jetons plutôt que par des couleurs fixes. */
  --on-ink: #ffffff;
  --ink-strong: #000000;
  --band: #17191c;
  --band-fg: #f3f1ee;
  --glass: rgb(255 255 255 / 84%);
  --peach-soft: #fdf3ec;
  --ember-soft: #fdecea;
  --echo-outline: none;
  --logo-ring: none;

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
  --shadow-float: 0 0 0 1px rgb(23 25 28 / 6%), 0 24px 48px -20px rgb(23 25 28 / 22%), 0 10px 20px -12px rgb(23 25 28 / 12%);
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Retour du 03/10 : « sur un grand écran, trop d'espace vide sur les bords ». Le site
     occupe la largeur jusqu'à 1 760 px, et ses marges grandissent avec l'écran. */
  --gutter: clamp(20px, 4.4vw, 96px);
  --max: 1760px;
  --section: clamp(64px, 7.5vw, 152px);
  --header: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --canvas: #121315;
  --paper: #18191c;
  --mist: #222327;
  --mist-2: #2a2b30;
  --line: #2e3035;
  --ink: #f3f1ee;
  --ink-2: #e4e2de;
  --mid: #a7aab2;
  --faint: #81848c;
  --peach: #3b2a22;
  --peach-line: #5c3c2c;
  --brown: #f6cdb4;
  --green: #79c47c;
  --ember: #ff8a65;
  --on-ink: #121315;
  --ink-strong: #ffffff;
  --band: #1d1e22;
  --band-fg: #f3f1ee;
  --glass: rgb(18 19 21 / 82%);
  --peach-soft: #241c18;
  --ember-soft: #3a1d17;
  --shadow-float: 0 0 0 1px rgb(255 255 255 / 6%), 0 24px 48px -20px rgb(0 0 0 / 60%), 0 10px 20px -12px rgb(0 0 0 / 40%);
  /* Les militants du ralliement sont dessinés à l'encre : sur fond sombre, un contour
     clair les garde lisibles (Echo, lui, passe à l'habillage « nuit »). */
  --echo-outline: drop-shadow(0 0 1px rgb(255 255 255 / 75%)) drop-shadow(0 0 1px rgb(255 255 255 / 45%));
  --logo-ring: 0 0 0 1px rgb(255 255 255 / 18%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #121315;
  --paper: #18191c;
  --mist: #222327;
  --mist-2: #2a2b30;
  --line: #2e3035;
  --ink: #f3f1ee;
  --ink-2: #e4e2de;
  --mid: #a7aab2;
  --faint: #81848c;
  --peach: #3b2a22;
  --peach-line: #5c3c2c;
  --brown: #f6cdb4;
  --green: #79c47c;
  --ember: #ff8a65;
  --on-ink: #121315;
  --ink-strong: #ffffff;
  --band: #1d1e22;
  --band-fg: #f3f1ee;
  --glass: rgb(18 19 21 / 82%);
  --peach-soft: #241c18;
  --ember-soft: #3a1d17;
  --shadow-float: 0 0 0 1px rgb(255 255 255 / 6%), 0 24px 48px -20px rgb(0 0 0 / 60%), 0 10px 20px -12px rgb(0 0 0 / 40%);
  /* Les militants du ralliement sont dessinés à l'encre : sur fond sombre, un contour
     clair les garde lisibles (Echo, lui, passe à l'habillage « nuit »). */
  --echo-outline: drop-shadow(0 0 1px rgb(255 255 255 / 75%)) drop-shadow(0 0 1px rgb(255 255 255 / 45%));
  --logo-ring: 0 0 0 1px rgb(255 255 255 / 18%);
}

/* ------------------------------------------------------------------ socle */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + var(--safe-top) + 16px);
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  /* Le texte grandit avec l'écran : 17 px sur un portable, 20 px sur un écran de 2 560 px. */
  font-size: clamp(16px, .3vw + 12.7px, 20px);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
body.menu-open { overflow: hidden; }
/* Echo peut voler hors de l'écran (il part et revient) : jamais de défilement horizontal. */
html, body { overflow-x: clip; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--peach); color: var(--brown); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap { width: min(var(--max), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: min(1040px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--on-ink); border-radius: var(--r); text-decoration: none;
}
.skip:focus { top: calc(12px + var(--safe-top)); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ------------------------------------------------------------------ typographie */

.display {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 1.2rem + 4.4vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.1rem + 2.8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(1.0625rem, .9rem + .5vw, 1.6rem);
  line-height: 1.55;
  color: var(--mid);
  max-width: 44rem;
  text-wrap: pretty;
}
.muted { color: var(--mid); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mid);
}
.eyebrow b { color: var(--brown); font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: var(--peach); color: var(--brown);
  font-size: 14px; font-weight: 500; line-height: 1.3;
}
.pill svg { flex: none; }
.serif { font-family: var(--serif); }

/* ------------------------------------------------------------------ boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r);
  font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-strong); box-shadow: 0 8px 20px -10px rgb(23 25 28 / 60%); }
.btn-secondary { background: var(--canvas); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: 14px; }
.btn-ghost:hover { background: var(--mist); }
.btn-inverse { background: var(--band-fg); color: #17191c; }
.btn-inverse:hover { background: var(--peach); color: var(--brown); }
.btn-outline-inverse { background: transparent; color: var(--band-fg); border-color: rgb(243 241 238 / 35%); }
.btn-outline-inverse:hover { border-color: var(--band-fg); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line);
  padding-bottom: 2px; transition: border-color .2s var(--ease);
}
.link:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ en-tête */

.site-head {
  position: sticky; top: 0; z-index: 50;
  padding-top: var(--safe-top);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: var(--header); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); flex: none;
}
/* En sombre, la tuile d'encre du logo se fondait dans le fond (audit du 04/10) : un filet clair la détache. */
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--logo-ring); }
.brand span { font-family: var(--serif); font-size: 25px; letter-spacing: -0.02em; line-height: 1; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: var(--r);
  color: var(--mid); font-size: clamp(15px, .2vw + 12px, 17px); font-weight: 500; text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--ink); }
.head-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.menu-btn {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: transparent; border-radius: var(--r); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: calc(var(--header) + var(--safe-top)) 0 0 0; z-index: 49;
  display: flex; flex-direction: column;
  padding: 12px var(--gutter) calc(24px + var(--safe-bottom));
  background: var(--canvas);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 30px; letter-spacing: -0.02em; text-decoration: none;
}
.mobile-menu nav a[aria-current="page"] { color: var(--brown); }
.mobile-menu .menu-ctas { display: grid; gap: 10px; margin-top: auto; padding-top: 28px; }
.mobile-menu .menu-ctas .btn { width: 100%; min-height: 52px; }

/* Audit du 04/10 : avec la navigation, la loupe, le thème, « Se connecter » et « Créer mon
   espace », l'en-tête demande environ 1 270 px. Entre 961 et 1 279 px, « Créer mon espace »
   sortait de l'écran (invisible à 1 024 px, sur une tablette en paysage). Le menu prend
   donc le relais jusqu'à 1 279 px (le seuil est repris dans site.js). */
@media (max-width: 1279px) {
  .nav, .head-actions .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
  .head-actions .btn-primary { min-height: 40px; padding: 0 14px; font-size: 15px; }
}
/* Juste au-dessus, tout tient, à quelques pixels près : on resserre un peu. */
@media (min-width: 1280px) and (max-width: 1365px) {
  .head-row { gap: 20px; }
  .nav a { padding-inline: 10px; }
}
@media (max-width: 380px) { .head-actions .btn-primary { display: none; } }

/* ------------------------------------------------------------------ sections */

.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.split-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px;
  align-items: end; margin-bottom: clamp(36px, 5vw, 64px);
}
.split-head .lead { max-width: 30rem; }
@media (max-width: 860px) { .split-head { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ ouverture (accueil) */

/* Retour du 03/10 : « la vidéo est trop petite, le titre doit être plus grand : c'est
   notre panneau publicitaire ». Le titre prend la largeur, la vidéo toute la page
   dessous, et grandit à mesure qu'on descend. */
.hero { padding-block: clamp(36px, 5vw, 96px) 0; overflow: clip; }
.hero .display { font-size: clamp(2.8rem, .6rem + 7vw, 9.6rem); line-height: .98; letter-spacing: -0.035em; max-width: 15ch; }
/* Le titre de l'accueil dit ce qu'est Haou (« logiciel de campagne et de mobilisation »,
   ce que l'on cherche), puis l'accroche : les deux forment un seul H1. */
.hero-title { display: grid; gap: clamp(10px, 1.1vw, 18px); justify-items: start; }
.hero-title .display { display: block; }
.hero-kicker {
  font-family: var(--sans); font-size: clamp(1.0625rem, .92rem + .5vw, 1.5rem); font-weight: 600;
  line-height: 1.3; letter-spacing: -0.01em; color: var(--brown); text-wrap: balance;
}
.hero-top { position: relative; display: grid; gap: clamp(22px, 2.4vw, 40px); justify-items: start; }
.hero-row { display: grid; width: min(100%, 52rem); }
.hero-copy { display: grid; gap: clamp(20px, 2vw, 30px); justify-items: start; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* Echo se tient à droite du titre, à hauteur de la vidéo : il salue, puis crie. */
.hero-echo { --echo-size: clamp(200px, 21vw, 440px); position: absolute; right: var(--gutter); bottom: -10px; }
.reassure {
  display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none;
  font-size: .875em; color: var(--mid);
}
.reassure li { display: inline-flex; align-items: center; gap: 7px; }
.reassure svg { color: var(--ink); }
@media (max-width: 900px) { .hero-echo { display: none; } }

.hero-film { margin-top: clamp(36px, 4.5vw, 80px); }
.hero-film .player {
  transform: scale(var(--film-scale, 1)); transform-origin: 50% 0;
  border-radius: var(--film-radius, 18px);
  will-change: transform;
}

.player {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-float);
  isolation: isolate;
}
.player video { width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.player-hero { aspect-ratio: 16 / 9; }
.player-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgb(23 25 28 / 72%); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: .0; transition: opacity .25s var(--ease), transform .2s var(--ease);
}
.player:hover .player-toggle, .player-toggle:focus-visible, .player.is-paused .player-toggle { opacity: 1; }
.player-toggle:active { transform: scale(.94); }
@media (hover: none) { .player-toggle { opacity: .9; } }
/* Sur téléphone : la version verticale, cadrée comme un écran. */
@media (max-width: 720px) {
  .player-hero { aspect-ratio: 9 / 16; width: min(100%, calc(78svh * 9 / 16)); margin-inline: auto; border-radius: 24px; }
}

/* La scène d'Echo : il se promène sur le défilé des sources, s'arrête pour les lire. */
.echo-stage { position: relative; height: clamp(118px, 9vw, 168px); margin-top: clamp(28px, 4vw, 64px); pointer-events: none; }
.echo-stage[data-echo-spot] { width: min(var(--max), 100%); aspect-ratio: auto; }

/* Le défilé des sources officielles, chacune avec sa marque (retour du 03/10 : « des
   logos, c'est plus parlant », puis « les logos officiels »). Le pictogramme dessiné
   pour Haou ne sert plus qu'à défaut de logo dans assets/logos. */
.ticker {
  position: relative; overflow: hidden; padding-block: clamp(18px, 1.6vw, 28px);
  border-block: 1px solid var(--line); background: var(--canvas);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; gap: clamp(36px, 3.4vw, 72px); padding: 0 clamp(18px, 1.7vw, 36px); margin: 0; list-style: none; }
.src { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--ink); }
.src-mark {
  display: inline-grid; place-items: center; flex: none;
  width: clamp(38px, 2.6vw, 48px); height: clamp(38px, 2.6vw, 48px); border-radius: 11px;
  background: var(--ink); color: var(--peach);
}
.src-mark svg { width: 56%; height: 56%; }
.src-name { display: grid; line-height: 1.15; }
.src-name strong { font-size: clamp(15px, .25vw + 12px, 18px); font-weight: 650; letter-spacing: -0.01em; }
.src-name small { font-size: clamp(12.5px, .15vw + 10.5px, 14px); color: var(--mid); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ blocs */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas);
}
.card-mist { background: var(--mist); border-color: transparent; }
.card h3, .card h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; font-family: var(--sans); }
.card p { color: var(--mid); font-size: 15.5px; }
.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: var(--r); background: var(--peach); color: var(--brown);
}
/* Retour du 03/10 : plus de pictogramme décoratif au-dessus d'un titre (« ça fait IA »),
   un simple numéro, comme les sections. */
.card-num { display: block; margin-bottom: 14px; font: 600 13px/1 var(--sans); letter-spacing: .08em; color: var(--brown); }
.card-link { text-decoration: none; transition: border-color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.card-link:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-float); }
.card-link .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 500; font-size: 15px; }

.figure { margin: 0; }
.figure img { width: 100%; height: auto; }
.figure-frame {
  padding: clamp(18px, 3vw, 40px); border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
}
.figure-peach { background: linear-gradient(180deg, var(--peach-soft), var(--paper)); }

.checks { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks li svg { margin-top: 3px; color: var(--ink); }
.checks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 640px) { .checks.two { grid-template-columns: minmax(0, 1fr); } }

.ai-note {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px;
  padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--peach); color: var(--brown); font-size: 15.5px; line-height: 1.55;
}
.ai-note strong { font-weight: 600; }

/* ------------------------------------------------------------------ l'IA en tête (accueil) */

.ai-feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ai-feature .figure { order: 2; }
@media (max-width: 960px) { .ai-feature { grid-template-columns: minmax(0, 1fr); } .ai-feature .figure { order: 0; } }
.ai-points { display: grid; gap: 22px; margin-top: 30px; }
.ai-point { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.ai-point .num { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--brown); padding-top: 2px; }
.ai-point h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; font-family: var(--sans); }
.ai-point p { color: var(--mid); font-size: 15.5px; }

/* ------------------------------------------------------------------ onglets */

/* Une barre d'onglets au-dessus, le texte et l'illustration côte à côte dessous : aucune
   colonne ne reste vide. Sur l'accueil, un trait dit le temps avant l'onglet suivant. */
.tabs { display: grid; gap: clamp(28px, 4vw, 48px); }
.tablist {
  display: flex; gap: 4px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.tablist::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; scroll-snap-align: start;
  padding: 14px 18px 16px; border: 0; background: transparent; cursor: pointer;
  color: var(--mid); font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: color .2s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab .tab-sub { display: none; }
.tab .tab-progress {
  position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--ink);
  transform-origin: left; transform: scaleX(0);
}
.tab[aria-selected="true"] .tab-progress { transform: scaleX(var(--progress, 1)); }
.tabpanel {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.tabpanel[hidden] { display: none; }
.tabpanel.is-entering .panel-copy { animation: panel-in .55s var(--ease) both; }
.tabpanel.is-entering .figure { animation: panel-in .65s var(--ease) .05s both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tabpanel .panel-copy { display: grid; gap: 16px; }
.tabpanel .checks.two { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) {
  .tabpanel { grid-template-columns: minmax(0, 1fr); }
  .tabpanel .figure { order: -1; }
  .tablist { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); gap: 8px; border-bottom: 0; }
  .tab { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
  .tab .tab-progress { display: none; }
  .tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
}

/* ------------------------------------------------------------------ la visite (vidéo et chapitres) */

.tour { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
/* La liste des chapitres prend la hauteur de la vidéo, et défile dedans. */
.chapters-wrap { position: relative; min-height: 320px; }
.chapters-wrap .chapters { position: absolute; inset: 0; }
.tour .player { aspect-ratio: 16 / 9; }
.tour-start {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: rgb(23 25 28 / 0%); transition: background-color .3s var(--ease);
}
.tour-start:hover { background: rgb(23 25 28 / 8%); }
.tour-start span {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px 16px 18px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-size: 16px; font-weight: 500;
  box-shadow: 0 16px 40px -16px rgb(23 25 28 / 70%);
  transition: transform .3s var(--ease);
}
.tour-start:hover span { transform: scale(1.04); }
.tour-start .play-dot { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--peach); color: var(--brown); }
.player.is-started .tour-start { display: none; }

.chapters { display: block; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.chapters button {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; width: 100%;
  padding: 14px 6px; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  text-align: left; cursor: pointer; transition: background-color .2s var(--ease);
}
.chapters button:hover { background: var(--paper); }
.chapters .time { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--faint); padding-top: 1px; }
.chapters .title { font-weight: 600; font-size: 16px; }
.chapters .desc { grid-column: 2; font-size: 14.5px; line-height: 1.5; color: var(--mid); }
.chapters button.is-active .time { color: var(--brown); font-weight: 600; }
.chapters button.is-active { background: var(--paper); box-shadow: inset 2px 0 0 var(--brown); }
@media (max-width: 960px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .chapters-wrap { min-height: 0; }
  .chapters-wrap .chapters { position: static; }
}

/* ------------------------------------------------------------------ chiffres */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.stat { padding: 24px 24px 0 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--mid); font-size: 15px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 24px; }
}

/* ------------------------------------------------------------------ étapes */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 1px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.steps li::before { content: "0" counter(step); font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.steps h3 { font-size: 18px; font-weight: 600; font-family: var(--sans); }
.steps p { color: var(--mid); font-size: 15.5px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ offre */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .plans-3 { grid-template-columns: minmax(0, 1fr); max-width: 30rem; } }
.plan-footnote { margin-top: 22px; font-size: 14.5px; color: var(--mid); max-width: 52rem; }
.packs { display: grid; gap: 12px; }
.pack { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas); }
.pack strong { display: block; font-size: 18px; }
.pack .muted { font-size: 14px; }
.pack-price { font-family: var(--serif); font-size: 32px; letter-spacing: -0.02em; }
.plan { display: grid; gap: 22px; align-content: start; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas); }
.plan-featured { border-color: var(--ink); box-shadow: var(--shadow-float); position: relative; }
.plan-badge { position: absolute; top: -13px; left: 28px; padding: 4px 10px; border-radius: var(--r-sm); background: var(--ink); color: var(--on-ink); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.plan-name { font-size: 15px; font-weight: 600; color: var(--mid); text-transform: uppercase; letter-spacing: .08em; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price strong { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 2.6rem + 2.4vw, 4.6rem); line-height: .9; letter-spacing: -0.035em; }
.price span { color: var(--mid); }
.plan .btn { width: 100%; }
.plan-note { font-size: 14px; color: var(--mid); text-align: center; margin-top: -8px; }

.offer-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .offer-teaser { grid-template-columns: minmax(0, 1fr); } }

.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { font-weight: 600; font-size: 14px; color: var(--mid); text-transform: uppercase; letter-spacing: .06em; }
.compare td:first-child { font-weight: 500; width: 34%; }
.compare td { color: var(--mid); }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------------ questions */

.faq-split { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-split .section-head { position: sticky; top: calc(var(--header) + var(--safe-top) + 32px); margin-bottom: 0; }
@media (max-width: 900px) { .faq-split { grid-template-columns: minmax(0, 1fr); } .faq-split .section-head { position: static; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.6px 12px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--mid); max-width: 46rem; }
.faq details[open] .answer { animation: panel-in .4s var(--ease) both; }

/* ------------------------------------------------------------------ dernier appel */

.cta-band { background: var(--band); color: var(--band-fg); text-align: center; padding-block: clamp(80px, 11vw, 140px); overflow: hidden; position: relative; }
.cta-band .h2 { color: var(--band-fg); }
.cta-band p { color: rgb(243 241 238 / 72%); margin: 18px auto 34px; max-width: 34rem; font-size: 18px; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-band .waves { position: absolute; inset: 0; pointer-events: none; opacity: .5; }

/* ------------------------------------------------------------------ pages intérieures */

.page-hero { padding-block: clamp(48px, 8vw, 112px) clamp(36px, 5vw, 72px); }
.page-hero .wrap { display: grid; gap: 22px; justify-items: start; }
.page-hero .display { max-width: 19ch; }
.page-hero .lead { max-width: 40rem; }

.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .figure { order: -1; }
.feature-copy { display: grid; gap: 18px; align-content: start; }
.feature-copy .eyebrow { margin-bottom: -4px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-of-type(even) .figure { order: 0; }
}

.subnav {
  position: sticky; top: calc(var(--header) + var(--safe-top)); z-index: 40;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.subnav ul { display: flex; gap: 6px; margin: 0; padding: 10px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--mid); text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.subnav a:hover { color: var(--ink); background: var(--mist); }
.subnav a.is-active { background: var(--ink); color: var(--on-ink); }

.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.more-grid > div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.more-grid > div:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.more-grid h3 { font-size: 16.5px; font-weight: 600; font-family: var(--sans); }
.more-grid p { font-size: 15px; color: var(--mid); }
@media (max-width: 860px) {
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .more-grid > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .more-grid > div:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Les agents (page IA). */
.agents { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.agent-list { display: grid; gap: 8px; }
.agent-btn {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--canvas); text-align: left; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.agent-btn:hover { border-color: var(--ink); }
.agent-btn .card-icon { margin: 0; width: 44px; height: 44px; background: var(--mist); color: var(--ink); }
.agent-btn strong { display: block; font-size: 17px; }
.agent-btn small { display: block; color: var(--mid); font-size: 14px; line-height: 1.4; }
.agent-btn[aria-selected="true"] { border-color: var(--peach-line); background: var(--peach); }
/* Sur la pêche, le gris secondaire n'atteint que 4,2:1 (audit du 04/10) : le brun, 9:1. */
.agent-btn[aria-selected="true"] small { color: var(--brown); }
.agent-btn[aria-selected="true"] .card-icon { background: var(--brown); color: var(--on-ink); }
.agent-detail { position: sticky; top: calc(var(--header) + var(--safe-top) + 24px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 22px; }
.agent-detail[hidden] { display: none; }
.agent-detail.is-entering { animation: panel-in .45s var(--ease) both; }
.agent-detail h3 { font-family: var(--serif); font-size: 32px; letter-spacing: -0.02em; }
.asks { display: grid; gap: 10px; }
.ask { justify-self: end; max-width: 92%; padding: 14px 18px; border-radius: 14px 14px 4px 14px; background: var(--peach); color: var(--brown); font-weight: 500; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools span { padding: 6px 10px; border-radius: var(--r-sm); background: var(--canvas); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 900px) {
  .agents { grid-template-columns: minmax(0, 1fr); }
  .agent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-btn small { display: none; }
  .agent-detail { position: static; }
}
@media (max-width: 420px) { .agent-btn { grid-template-columns: 36px minmax(0, 1fr); padding: 12px; } .agent-btn .card-icon { width: 36px; height: 36px; } }

/* ------------------------------------------------------------------ contact */

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas); box-shadow: var(--shadow-float); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 15px; font-weight: 500; }
.field .opt { color: var(--faint); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--canvas);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(23 25 28 / 8%); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--ember); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14.5px; color: var(--mid); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.consent a { color: var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: var(--r); font-size: 15px; }
.form-status.is-error { display: grid; background: var(--ember-soft); color: var(--ember); }
.form-status.is-ok { display: grid; background: var(--peach); color: var(--brown); }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.contact-aside { display: grid; gap: 28px; }
.next-steps { display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; counter-reset: next; }
.next-steps li { counter-increment: next; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.next-steps li::before { content: counter(next); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ink); font-size: 14px; font-weight: 600; }
.next-steps strong { display: block; font-weight: 600; }
.next-steps span { color: var(--mid); font-size: 15px; }

/* ------------------------------------------------------------------ pied de page */

.site-foot { padding: clamp(56px, 7vw, 88px) 0 calc(32px + var(--safe-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
/* Le nombre de colonnes suit les rubriques présentes (« Pour qui » et « Guides » n'apparaissent
   qu'une fois remplies) : assembler.py le pose dans --foot-cols. */
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(var(--foot-cols, 3), minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-family: var(--sans); }
.foot-grid ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.foot-grid a { color: var(--ink); text-decoration: none; font-size: 15px; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-brand { display: grid; gap: 14px; align-content: start; max-width: 22rem; }
.foot-brand p { color: var(--mid); font-size: 15px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--mid); font-size: 14px; }
/* Au-delà de trois rubriques, la marque passe au-dessus avant que les colonnes ne s'écrasent. */
@media (max-width: 1200px) { .foot-grid[data-wide] { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-grid[data-wide] .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ apparition */

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker ul + ul { display: none; }
}

/* ------------------------------------------------------------------ Echo, le robot au porte-voix */

/* La mascotte (assets/js/echo-robot.js, planche d'identité du 04/10). Les articulations
   tournent autour de points du dessin (l'épaule, la hanche, le cou), posés en ligne sur
   chaque groupe : le cadre de référence est donc celui du dessin, pas celui de la forme. */
.echo-robot { width: var(--echo-size, 128px); aspect-ratio: 250 / 290; flex: none; }
.echo-robot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.echo-robot svg * { transform-box: view-box; }
.echo-robot :is(.e-eye, .e-check, .e-pin, .e-talk-bar, .e-voice-bar, .e-dot, .e-z) { transform-box: fill-box; transform-origin: center; }
.echo-robot.is-gauche svg { transform: scaleX(-1); }

/* L'habillage suit le thème : « céramique » en clair (les valeurs par défaut du dessin),
   « nuit » en sombre — coque graphite, contour lumineux, réacteur en veille. Une coque
   blanche sur un fond presque noir se lirait comme une découpe ; le graphite s'y fond,
   et son contour le détache. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .echo-robot:not([data-habillage]) {
    --e-shell-a: #3b3f47; --e-shell-b: #1d1f24; --e-edge: #6fe3ff; --e-edge-op: .5; --e-limb: #2e3138;
    --e-joint: #4a4e57; --e-joint-dark: #23262b; --e-boot: #0f1013; --e-boot-edge: .5; --e-visor: #050607;
    --e-eye: #9ff3ff; --e-halo: #2fd6ff; --e-tank: #2a2d33; --e-mega: #2a2d33; --e-mega-bell: #6fe3ff;
    --e-mega-ring: #6fe3ff; --e-mega-edge: #6fe3ff; --e-gloss: .14; --e-ground: #2fd6ff; --e-ground-op: .14;
    --e-pilot: 1; --e-t-ink: #5b6070;
  }
}
:root[data-theme="dark"] .echo-robot:not([data-habillage]) {
  --e-shell-a: #3b3f47; --e-shell-b: #1d1f24; --e-edge: #6fe3ff; --e-edge-op: .5; --e-limb: #2e3138;
  --e-joint: #4a4e57; --e-joint-dark: #23262b; --e-boot: #0f1013; --e-boot-edge: .5; --e-visor: #050607;
  --e-eye: #9ff3ff; --e-halo: #2fd6ff; --e-tank: #2a2d33; --e-mega: #2a2d33; --e-mega-bell: #6fe3ff;
  --e-mega-ring: #6fe3ff; --e-mega-edge: #6fe3ff; --e-gloss: .14; --e-ground: #2fd6ff; --e-ground-op: .14;
  --e-pilot: 1; --e-t-ink: #5b6070;
}

/* Ce qui n'apparaît qu'avec une action : le bras levé, la loupe, le document, les ondes. */
.echo-robot :is(.e-arm-up, .e-loupe, .e-prop, .e-hip, .e-waves) { opacity: 0; }
.echo-robot :is(.e-arm, .e-prop, .e-hip, .e-waves) { transition: opacity .22s var(--ease); }
.echo-robot .e-head { transition: transform .4s var(--ease); }
.echo-robot .e-arm { transition: opacity .22s var(--ease), transform .4s var(--ease); }
.echo-robot .e-eye { animation: e-blink 4.8s infinite; }
.echo-robot .e-bulb { animation: e-bulb 2.6s ease-in-out infinite; }
@keyframes e-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes e-bulb { 50% { opacity: .45; } }

/* Le réacteur : éteint le jour, une veilleuse la nuit (--e-pilot), pleins gaz en vol. */
.echo-robot .e-flame { opacity: var(--e-pilot, 0); transform: scale(.42); transition: opacity .2s ease, transform .25s ease; }
.echo-robot .e-flame { animation: e-pilot 1.3s ease-in-out infinite alternate; }
.echo-robot .e-flame-2 { animation-delay: -.65s; }
@keyframes e-pilot { from { transform: scale(.36, .34); } to { transform: scale(.46, .5); } }
@keyframes e-flame { from { transform: scale(.9, .75); } to { transform: scale(1.05, 1.15); } }
/* La cape du ralliement flotte un peu dans le dos (option `cape`, ADR 0055). */
.echo-robot .e-cape { animation: e-cape 1.4s ease-in-out infinite alternate; }
@keyframes e-cape { from { transform: skewX(-3deg); } to { transform: skewX(4deg) scaleY(1.04); } }

/* ---- les visages (data-emotion) */

.echo-robot .e-face { display: none; }
.echo-robot:not([data-emotion]) .e-face-content,
.echo-robot[data-emotion="content"] .e-face-content,
.echo-robot[data-emotion="parle"] .e-face-parle,
.echo-robot[data-emotion="joie"] .e-face-joie,
.echo-robot[data-emotion="clin"] .e-face-clin,
.echo-robot[data-emotion="surpris"] .e-face-surpris,
.echo-robot[data-emotion="reflechit"] .e-face-reflechit,
.echo-robot[data-emotion="cherche"] .e-face-cherche,
.echo-robot[data-emotion="charge"] .e-face-charge,
.echo-robot[data-emotion="valide"] .e-face-valide,
.echo-robot[data-emotion="alerte"] .e-face-alerte,
.echo-robot[data-emotion="carte"] .e-face-carte,
.echo-robot[data-emotion="dort"] .e-face-dort,
.echo-robot[data-emotion="crie"] .e-face-crie,
.echo-robot[data-emotion="coeur"] .e-face-coeur { display: inline; }
/* Sans humeur précisée, chaque action a la sienne : il salue et danse ravi, il cherche
   et il lit en balayant du regard. */
.echo-robot:not([data-emotion]):is([data-etat="salue"], [data-etat="danse"], [data-etat="cherche"], [data-etat^="lit"]) .e-face-content { display: none; }
.echo-robot:not([data-emotion]):is([data-etat="salue"], [data-etat="danse"]) .e-face-joie { display: inline; }
.echo-robot:not([data-emotion]):is([data-etat="cherche"], [data-etat^="lit"]) .e-face-cherche { display: inline; }
/* L'appel impose son cri, quelle que soit l'humeur. */
.echo-robot[data-etat="crie"] .e-face { display: none; }
.echo-robot[data-etat="crie"] .e-face.e-face-crie { display: inline; }

/* Ce qui vit dans chaque visage. */
.echo-robot .e-talk-bar { animation: e-voice .3s ease-in-out infinite alternate; }
.echo-robot .e-talk-bar:nth-child(2) { animation-delay: -.1s; }
.echo-robot .e-talk-bar:nth-child(3) { animation-delay: -.2s; }
.echo-robot .e-dot { animation: e-dot 1.1s ease-in-out infinite; }
.echo-robot .e-dot-1 { animation-delay: .18s; }
.echo-robot .e-dot-2 { animation-delay: .36s; }
.echo-robot .e-face-reflechit .e-dot { animation-duration: 1.6s; }
.echo-robot .e-look { animation: e-look 2.6s ease-in-out infinite; }
.echo-robot .e-check { animation: e-pop .55s var(--ease) both; }
.echo-robot .e-pin { animation: e-drop 1.6s var(--ease) infinite; }
.echo-robot .e-z { animation: e-z 2.4s ease-in-out infinite; }
.echo-robot .e-z-2 { animation-delay: .8s; }
@keyframes e-voice { to { transform: scaleY(.35); } }
@keyframes e-dot { 0%, 100% { opacity: .3; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.12); } }
@keyframes e-look { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(9px); } }
@keyframes e-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes e-drop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
@keyframes e-z { 0% { opacity: 0; transform: translate(-3px, 4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(4px, -6px); } }
/* Le voyant de voix : il bat quand Echo parle ou crie. */
.echo-robot:is([data-emotion="parle"], [data-etat="crie"], [data-etat="danse"]) .e-voice-bar { animation: e-voice .3s ease-in-out infinite alternate; }
.echo-robot .e-voice-1 { animation-delay: -.08s !important; }
.echo-robot .e-voice-2 { animation-delay: -.16s !important; }
.echo-robot .e-voice-3 { animation-delay: -.24s !important; }
/* Il dort : la tête tombe un peu, le souffle ralentit, l'antenne s'éteint presque. */
.echo-robot[data-emotion="dort"] .e-head { transform: rotate(5deg) translateY(3px); }
.echo-robot[data-emotion="dort"] .e-bulb { animation: e-bulb 5s ease-in-out infinite; opacity: .35; }
.echo-robot[data-emotion="dort"][data-etat="repos"] .e-all { animation-duration: 4.6s; }
/* Attention : l'antenne clignote. Il réfléchit : elle bat plus vite. */
.echo-robot[data-emotion="alerte"] .e-bulb { animation: e-bulb .5s steps(2, jump-none) infinite; }
.echo-robot[data-emotion="reflechit"] .e-bulb { animation-duration: .8s; }

/* ---- les actions (data-etat) */

.echo-robot[data-etat="repos"] .e-all { animation: e-breathe 3.4s ease-in-out infinite; }
@keyframes e-breathe { 50% { transform: translateY(1.6px); } }

.echo-robot[data-etat="marche"] .e-all { animation: e-bob .52s ease-in-out infinite; }
.echo-robot[data-etat="marche"] .e-leg-l { animation: e-step .52s ease-in-out infinite; }
.echo-robot[data-etat="marche"] .e-leg-r { animation: e-step .52s ease-in-out -.26s infinite; }
.echo-robot[data-etat="marche"] .e-arm-l { animation: e-swing .52s ease-in-out infinite; }
.echo-robot[data-etat="marche"] .e-head { transform: rotate(2deg); }
@keyframes e-bob { 0%, 50%, 100% { transform: translateY(0); } 25%, 75% { transform: translateY(-3px); } }
@keyframes e-step { 0%, 100% { transform: rotate(16deg); } 50% { transform: rotate(-16deg); } }
@keyframes e-swing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(14deg); } }

/* Il appelle (rameute) : le porte-voix se lève, il crie, les ondes partent. */
.echo-robot[data-etat="crie"] .e-arm-r { transform: rotate(-36deg); animation: e-call .8s ease-in-out infinite alternate; }
.echo-robot[data-etat="crie"] .e-head { animation: e-shout .8s ease-in-out infinite alternate; }
.echo-robot[data-etat="crie"] .e-waves { opacity: 1; }
.echo-robot[data-etat="crie"] .e-wave { animation: e-wave .9s ease-out infinite; }
.echo-robot .e-wave-2 { animation-delay: .14s !important; }
.echo-robot .e-wave-3 { animation-delay: .28s !important; }
@keyframes e-call { from { transform: rotate(-30deg); } to { transform: rotate(-42deg); } }
@keyframes e-shout { from { transform: rotate(-2deg); } to { transform: rotate(-5deg) translateY(-1.5px); } }
@keyframes e-wave { 0% { opacity: 0; transform: translateX(-7px); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateX(8px); } }

/* Il salue : le bras gauche se lève et s'agite. */
.echo-robot:is([data-etat="salue"], [data-etat="danse"]) .e-arm-l { opacity: 0; }
.echo-robot:is([data-etat="salue"], [data-etat="danse"]) .e-arm-up { opacity: 1; }
.echo-robot[data-etat="salue"] .e-arm-up { animation: e-hello .42s ease-in-out infinite alternate; }
.echo-robot[data-etat="salue"] .e-head { transform: rotate(-4deg); }
@keyframes e-hello { from { transform: rotate(-8deg); } to { transform: rotate(12deg); } }

/* Il cherche : la loupe devant l'œil, la tête et le regard qui balaient. */
.echo-robot[data-etat="cherche"] .e-arm-l { opacity: 0; }
.echo-robot[data-etat="cherche"] .e-loupe { opacity: 1; animation: e-scan-arm 2.6s ease-in-out infinite; }
.echo-robot[data-etat="cherche"] .e-head { animation: e-scan 2.6s ease-in-out infinite; }
@keyframes e-scan { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes e-scan-arm { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* Il lit (un texte de loi, un journal) : le document à deux mains, le porte-voix à la
   hanche, la tête penchée qui suit les lignes. */
.echo-robot[data-etat^="lit"] :is(.e-arm-l, .e-arm-r) { opacity: 0; }
.echo-robot[data-etat^="lit"] .e-hip { opacity: 1; }
.echo-robot[data-etat="lit-loi"] .e-law, .echo-robot[data-etat="lit-journal"] .e-news { opacity: 1; animation: e-hold 3.2s ease-in-out infinite; }
.echo-robot[data-etat^="lit"] .e-head { animation: e-read 3.2s ease-in-out infinite; }
@keyframes e-read { 0%, 100% { transform: rotate(-3deg) translateY(2px); } 50% { transform: rotate(3deg) translateY(2px); } }
@keyframes e-hold { 50% { transform: translateY(-2px) rotate(1deg); } }

/* Il vole : le réacteur s'allume, il décolle, les jambes ballantes, l'ombre rétrécit. */
.echo-robot:is([data-etat="vole"], .is-jet) .e-flame { opacity: 1; transform: none; animation: e-flame .16s ease-in-out infinite alternate; }
.echo-robot:is([data-etat="vole"], .is-jet) .e-flame-2 { animation-delay: -.08s; }
.echo-robot:is([data-etat="vole"], .is-jet) .e-shadow { transform: scale(.68); opacity: .6; }
.echo-robot .e-shadow { transition: transform .4s var(--ease), opacity .4s var(--ease); }
.echo-robot[data-etat="vole"] .e-all { transform: translateY(-12px); animation: e-hover 1.1s ease-in-out infinite; }
.echo-robot[data-etat="vole"] .e-leg-l { animation: e-dangle 1.1s ease-in-out infinite; }
.echo-robot[data-etat="vole"] .e-leg-r { animation: e-dangle 1.1s ease-in-out -.55s infinite; }
.echo-robot[data-etat="vole"] .e-arm-l { transform: rotate(26deg); }
.echo-robot[data-etat="vole"] .e-head { transform: rotate(-3deg); }
@keyframes e-hover { 0%, 100% { transform: translateY(-11px); } 50% { transform: translateY(-16px); } }
@keyframes e-dangle { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-6deg); } }

/* Il danse : tout le corps balance, un bras s'agite, l'autre lève le porte-voix. */
.echo-robot[data-etat="danse"] .e-all { animation: e-dance .5s ease-in-out infinite alternate; }
.echo-robot[data-etat="danse"] .e-arm-up { animation: e-hello .25s ease-in-out infinite alternate; }
.echo-robot[data-etat="danse"] .e-arm-r { animation: e-call .25s ease-in-out infinite alternate; }
.echo-robot[data-etat="danse"] .e-leg-l { animation: e-step .5s ease-in-out infinite; }
.echo-robot[data-etat="danse"] .e-leg-r { animation: e-step .5s ease-in-out -.25s infinite; }
@keyframes e-dance { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(6deg) translateY(-6px); } }

/* La bulle de ce qu'il crie. */
.echo-say {
  position: absolute; bottom: calc(100% - 8px); left: 50%; z-index: 2;
  padding: 8px 14px; border-radius: 14px 14px 14px 4px;
  background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateY(6px) scale(.96); transform-origin: 0 100%;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.echo-say.is-on { opacity: 1; transform: none; }

/* Moins d'animations : il reste immobile, dans la pose de son action. */
@media (prefers-reduced-motion: reduce) {
  .echo-robot svg * { animation: none !important; }
}

/* L'Echo unique du site (retour du 03/10 : « un seul à l'écran, qui se balade ») : il se
   pose dans les emplacements prévus ([data-echo-spot]) et, entre eux, il vole avec vous. */
[data-echo-spot] { width: var(--echo-size, 128px); aspect-ratio: 250 / 290; pointer-events: none; }
.echo-companion {
  position: fixed; left: 0; top: 0; z-index: 45; width: 240px;
  transform-origin: 0 0; pointer-events: none; will-change: transform;
  transition: opacity .3s ease;
}
.echo-companion .echo-robot { --echo-size: 240px; }
.echo-companion .echo-robot svg { pointer-events: auto; cursor: pointer; }
.echo-companion-in { transform-origin: 50% 60%; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.menu-open .echo-companion, .menu-open .echo-companion-say { opacity: 0; }
.echo-companion-say {
  position: fixed; left: 0; top: 0; bottom: auto; z-index: 46;
  transform-origin: 0 100%; max-width: min(260px, 70vw); white-space: normal;
}

/* ------------------------------------------------------------------ version plein écran (03/10) */

.btn-lg { min-height: clamp(52px, 3.4vw, 60px); padding: 0 clamp(22px, 1.8vw, 30px); font-size: clamp(16px, .25vw + 13px, 18px); }
.page-hero .eyebrow { margin-bottom: -4px; }

/* Le schéma de l'IA, vivant : trois colonnes reliées par des fils où passent des
   impulsions. Sur téléphone, il se lit de haut en bas, sans fils. */
.brain {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 120px); align-items: center;
  padding: clamp(28px, 3.4vw, 64px); border-radius: 22px;
  background: linear-gradient(180deg, var(--peach-soft), var(--paper)); border: 1px solid var(--line);
}
.brain-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.brain-links path { fill: none; stroke: rgb(93 42 26 / 22%); stroke-width: 1.6; }
.brain-links path.pulse { stroke: var(--brown); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 3 160; animation: brain-pulse 3.6s linear infinite; }
@keyframes brain-pulse { from { stroke-dashoffset: 163; } to { stroke-dashoffset: 0; } }
.brain-col { position: relative; z-index: 1; display: grid; gap: 14px; align-content: center; }
.brain-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.brain-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.brain-col li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 12px; background: var(--canvas); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgb(23 25 28 / 3%);
}
.brain-col li strong { display: block; font-size: clamp(14.5px, .2vw + 12px, 16.5px); font-weight: 600; line-height: 1.2; }
.brain-col li small { display: block; font-size: clamp(12.5px, .12vw + 11px, 14px); color: var(--mid); line-height: 1.3; }
.brain-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--peach); color: var(--brown); }
/* Le logo au-dessus du nom : côte à côte, la plaque laissait trop peu de place au texte
   dans cette colonne étroite. */
.brain-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brain-col .brain-sources li { grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; padding: 10px; }
.brain-sources .src-mark { width: 38px; height: 38px; border-radius: 10px; }
.brain-filter {
  display: block;
  padding: 16px 18px; border-radius: 14px; background: var(--band); color: var(--band-fg); font-size: 15px; line-height: 1.5;
}
.brain-filter strong { color: #fff; }
.brain-core { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; text-align: center; }
.brain-core::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: 118%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--peach) 95%, transparent) 0 46%, transparent 70%);
  z-index: -1; animation: core-breathe 4s ease-in-out infinite;
}
@keyframes core-breathe { 50% { transform: scale(1.06); } }
.brain-echo { --echo-size: clamp(150px, 12vw, 230px); }
.brain-core strong { font-family: var(--serif); font-size: clamp(28px, 2vw, 40px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.brain-core span { color: var(--mid); font-size: 14.5px; }
@media (max-width: 1100px) {
  .brain { grid-template-columns: minmax(0, 1fr); }
  .brain-links { display: none; }
  .brain-core { order: -1; }
  /* Sans les fils, Echo est seul en tête du schéma : il peut y prendre toute sa place
     (retour du 04/10 : le remettre, immobile, sur téléphone). */
  .brain-echo { --echo-size: clamp(170px, 46vw, 240px); }
  .brain-col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brain-col .brain-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .brain { padding: 20px 16px; border-radius: 18px; }
  .brain-col ul { grid-template-columns: minmax(0, 1fr); }
  .brain-col .brain-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brain-sources li { grid-template-columns: minmax(0, 1fr); justify-items: start; padding: 10px 12px; }
}

/* Les trois engagements de l'IA ; le troisième, en encre, est celui qui protège. */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.pillar { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.4vw, 40px); border-radius: 18px; border: 1px solid var(--line); background: var(--canvas); }
.pillar-num { font-family: var(--serif); font-size: clamp(34px, 2.6vw, 48px); line-height: 1; color: var(--brown); min-height: 40px; }
.pillar h3 { font-size: clamp(18px, .5vw + 14px, 22px); font-weight: 600; font-family: var(--sans); letter-spacing: -0.01em; }
.pillar p { color: var(--mid); }
.pillar-strong { background: var(--band); border-color: var(--band); }
.pillar-strong h3 { color: #fff; }
.pillar-strong p { color: rgb(243 241 238 / 74%); }
.pillar-strong .pillar-num { color: #fbe1d1; }
@media (max-width: 900px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* L'accompagnement : Echo salue, le texte à côté. */
.support { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 140px); align-items: center; }
.support-echo { --echo-size: clamp(170px, 18vw, 340px); justify-self: center; }
@media (max-width: 760px) { .support { grid-template-columns: minmax(0, 1fr); } .support-echo { --echo-size: 150px; } }

/* Quatre formules sur une ligne, puis deux, puis une. Les crédits d'IA prennent le même
   habit que les formules (retour du 03/10 : « on dirait deux choses différentes »). */
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
.plans-4 .plan { padding: clamp(24px, 2vw, 36px); gap: 18px; }
.plans-4 .price strong { font-size: clamp(2.8rem, 1.8rem + 1.8vw, 4.4rem); }
.plans-4 .price { flex-wrap: wrap; row-gap: 4px; }
.plans-4 .price span { font-size: 14.5px; line-height: 1.35; }
.plans-4 .plan-note { text-align: left; margin-top: -4px; }
.plans-4 .checks li { font-size: .95em; }
@media (max-width: 1280px) { .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .plans-4 { grid-template-columns: minmax(0, 1fr); } }
.plan-addon {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 56px); align-items: center;
  margin-top: 16px; padding: clamp(22px, 2.2vw, 36px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas);
}
.plan-addon-copy { display: grid; gap: 10px; }
.plan-addon-copy p { color: var(--mid); }
.plan-addon .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-addon .pack { background: var(--paper); }
@media (max-width: 860px) { .plan-addon, .plan-addon .packs { grid-template-columns: minmax(0, 1fr); } }

/* Ce qui peut s'ajouter. */
.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.extra { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: clamp(20px, 2vw, 30px); border: 1px solid var(--line); border-radius: var(--r-lg); }
.extra-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--peach); color: var(--brown); }
.extra h3 { font-size: 18px; font-weight: 600; font-family: var(--sans); margin-bottom: 6px; }
.extra p { color: var(--mid); font-size: .95em; }

/* Echo crie l'appel final dans son porte-voix. */
.cta-echo { --echo-size: clamp(120px, 11vw, 210px); position: absolute; left: clamp(12px, 6vw, 140px); bottom: 0; }
.cta-band .echo-robot .e-shadow { opacity: .35; }
@media (max-width: 1100px) { .cta-echo { position: static; margin: -24px auto 12px; --echo-size: 120px; } }

/* Grands écrans : plus de colonnes, pour ne rien laisser vide. */
@media (min-width: 1600px) {
  .more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .more-grid > div { padding-left: 24px !important; border-left: 1px solid var(--line) !important; }
  .more-grid > div:nth-child(4n + 1) { padding-left: 0 !important; border-left: 0 !important; }
}
.plans-4 .plan { display: flex; flex-direction: column; }
.plans-4 .plan .checks { margin-bottom: 6px; }
.plans-4 .plan .btn { margin-top: auto; }
.linkedin-btn { justify-self: start; }
/* Les logos officiels (retour du 03/10 : « qu'ils aient tous la même taille ») : ils
   n'ont ni les mêmes proportions ni les mêmes marges, c'est donc la plaque qui fait
   l'égalité. Toutes identiques, blanches même en mode sombre (les logos sont dessinés
   pour un fond clair), le logo y tient entier sans déformation. */
.src-mark.src-logo {
  width: var(--plate-w, clamp(116px, 7.4vw, 152px)); height: var(--plate-h, clamp(50px, 3.2vw, 64px));
  padding: var(--plate-pad, clamp(7px, .5vw, 10px) clamp(10px, .7vw, 14px));
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  /* En flex, et non en grille : la hauteur à 100 % de l'image se rapporte alors à la
     plaque, sinon un logo haut (la BAN) en déborde. */
  display: inline-flex; align-items: center; justify-content: center;
}
.src-mark.src-logo img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
/* Les logos presque carrés paraîtraient plus petits que les mots-marques à plaque égale :
   on leur rend un peu de hauteur. */
.src-logo[data-shape="square"] { --plate-pad: clamp(4px, .3vw, 6px) clamp(10px, .7vw, 14px); }
.brain-sources .src-mark.src-logo { --plate-w: 100%; --plate-h: 46px; --plate-pad: 6px 10px; border-radius: 10px; }
.brain-sources .src-logo[data-shape="square"] { --plate-pad: 3px 9px; }
/* Un sigle sans logo officiel (REU, RNE) : en lettres, à la taille des mots-marques. */
.src-mark.src-word { font: 700 clamp(20px, 1.5vw, 26px)/1 var(--sans); letter-spacing: .06em; color: #1b2a4a; }
.brain-sources .src-mark.src-word { font-size: 18px; }

/* Le bouton du thème. */
.theme-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s var(--ease);
}
.theme-btn:hover { background: var(--mist); }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* La maison d'Echo, dans le schéma de l'IA : un emplacement vide, à sa taille. */
[data-echo-home] { width: var(--echo-size, 128px); aspect-ratio: 250 / 290; pointer-events: none; }
/* Sans Echo fixe à côté, l'accompagnement tient sur une colonne de lecture. */
.support { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.hero + .ticker { margin-top: clamp(36px, 4.5vw, 80px); }

/* Les catégories de fonctionnalités (retour du 03/10). */
.cat-nav .wrap { overflow-x: auto; scrollbar-width: none; }
.cat-list { display: flex; gap: 8px; padding: 10px 0; }
.cat-tab {
  display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); color: var(--ink);
  font: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cat-tab:hover { border-color: var(--ink); }
.cat-tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.cat-tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--mist); color: var(--mid); font-size: 12.5px; }
.cat-tab[aria-selected="true"] .cat-tab-count { background: var(--peach); color: var(--brown); }
.catpanel[hidden] { display: none; }
.catpanel.is-entering { animation: panel-in .45s var(--ease) both; }
.cat-head { display: grid; gap: 16px; padding-block: clamp(32px, 4vw, 56px) 8px; }
.cat-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cat-jumps a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--mist); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.cat-jumps a:hover { background: var(--peach); color: var(--brown); }
.cat-panels .feature:first-of-type { border-top: 0; }

/* ------------------------------------------------------------------ « Haou ouvre bientôt » */
/* Le site en ligne avant l'outil (config.js : ouvert = false). Couleurs tirées des jetons :
   le mode sombre suit sans règle de plus. */
.soon {
  width: min(460px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--canvas);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}
.soon::backdrop { background: rgb(23 25 28 / 45%); }
.soon h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 26px; }
.soon p { margin: 0 0 22px; color: var(--mid); line-height: 1.55; }
.soon-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------------ les vidéos de Haou (ADR 0052) */

/* Un lecteur : muet tant qu'on n'a pas demandé le son. Vertical, il garde la taille d'un
   téléphone et ne dépasse jamais l'écran ; horizontal, il prend toute la largeur. */
.clip {
  position: relative; margin: 0 auto; width: min(100%, 400px, calc(78svh * 9 / 16));
  aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: var(--paper); box-shadow: var(--shadow-float);
}
.clip-wide { width: 100%; max-width: 1280px; aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; background: var(--paper); }
.clip-play {
  position: absolute; inset: 50% auto auto 50%; z-index: 2; translate: -50% -50%;
  display: grid; place-items: center; width: 68px; height: 68px; border: 0; border-radius: 50%;
  background: rgb(23 25 28 / 78%); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.clip.is-paused .clip-play { opacity: 1; pointer-events: auto; }
.clip-play svg { margin-left: 3px; }
.clip-sound {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 12px;
  border: 0; border-radius: 999px; background: rgb(23 25 28 / 72%); color: #fff;
  font: 500 14px/1 var(--sans); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.clip-sound .on, .clip.has-sound .clip-sound .off { display: none; }
.clip.has-sound .clip-sound .on { display: block; }
.clip.has-sound .clip-sound { background: #fbe1d1; color: #5d2a1a; }
.clip-length {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 7px 10px; border-radius: 999px;
  background: rgb(23 25 28 / 60%); color: #fff; font: 500 13px/1 var(--sans); pointer-events: none;
  transition: opacity .4s var(--ease) 1s;
}
.clip:not(.is-paused) .clip-length { opacity: 0; }

/* « Rencontrez Echo » : le texte, la vidéo à côté. */
.meet-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .meet-row { grid-template-columns: minmax(0, 1fr); } }
.links-row { display: flex; flex-wrap: wrap; gap: 16px 28px; }

/* Les onglets de l'accueil portent une vidéo verticale : la colonne s'ajuste. */
.tabpanel:has(.clip) { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); }
.tabpanel.is-entering .clip { animation: panel-in .65s var(--ease) .05s both; }
@media (max-width: 960px) {
  .tabpanel:has(.clip) { grid-template-columns: minmax(0, 1fr); }
  .tabpanel .clip { order: -1; }
}

/* ------------------------------------------------------------------ fonctionnalités : la barre à deux niveaux */

/* En haut, les étapes, bien visibles ; dessous, les fonctionnalités de l'étape choisie,
   entre deux flèches (retour du 03/10 : « on dirait que ça bug ; il faut des flèches »). */
.feat-nav { border-bottom: 1px solid var(--line); }
.feat-nav-in { display: grid; gap: 10px; padding-block: 12px; }
.feat-steps {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.feat-steps::-webkit-scrollbar { display: none; }
.feat-step {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 18px 0 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--canvas); color: var(--ink); font: 600 15.5px/1 var(--sans); white-space: nowrap; cursor: pointer;
  scroll-snap-align: center; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.feat-step:hover { border-color: var(--ink); }
.feat-step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--mist); color: var(--mid); font: 600 14px/1 var(--sans);
}
.feat-step-short { display: none; }
.feat-step[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.feat-step[aria-pressed="true"] .feat-step-num { background: var(--peach); color: var(--brown); }
.feat-row { display: flex; align-items: center; gap: 10px; }
.feat-list {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none; padding: 2px;
}
.feat-list::-webkit-scrollbar { display: none; }
.feat-tab {
  flex: none; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--mid); font: 500 15px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.feat-tab[hidden] { display: none; }
.feat-tab:hover { color: var(--ink); background: var(--mist); }
.feat-tab[aria-selected="true"] { background: var(--peach); color: var(--brown); border-color: var(--peach-line); }
.feat-count { flex: none; color: var(--faint); font: 500 13.5px/1 var(--sans); font-variant-numeric: tabular-nums; }
.feat-arrow {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 50%; background: var(--canvas); color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), opacity .2s var(--ease);
}
.feat-arrow:hover:not(:disabled) { border-color: var(--ink); background: var(--mist); }
.feat-arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 720px) {
  .feat-nav-in { gap: 8px; padding-block: 10px; }
  .feat-steps { gap: 6px; }
  .feat-step { flex: 1 1 0; flex-direction: column; gap: 4px; min-height: 58px; min-width: 64px; padding: 6px 4px; border-radius: 16px; font-size: 12px; }
  .feat-step-num { width: 24px; height: 24px; font-size: 12.5px; }
  .feat-step-label { display: none; }
  .feat-step-short { display: inline; }
  .feat-count { display: none; }
  .feat-arrow { width: 40px; height: 40px; }
  .feat-tab { min-height: 38px; padding: 0 12px; font-size: 14.5px; }
}
.feature-panel { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); border-top: 0; }
.feature-panel[hidden] { display: none; }
.feature-panel.is-entering .feature-copy { animation: panel-in .55s var(--ease) both; }
.feature-panel.is-entering .clip, .feature-panel.is-entering .figure { animation: panel-in .65s var(--ease) .05s both; }
.feature-next { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
@media (max-width: 900px) {
  .feature-panel { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 28px; }
  .feature-panel .clip { order: -1; }
}
[data-feats], .feature-panel, section[id], details[id], .pl-panel { scroll-margin-top: calc(var(--header) + var(--safe-top) + 12px); }

/* La vidéo dans un téléphone (page Fonctionnalités) : un cadre d'encre et son encoche. */
.clip-phone {
  width: min(100%, 360px, calc(70svh * 9 / 16)); border: 11px solid #17191c; border-radius: 48px;
  box-shadow: 0 30px 60px -28px rgb(23 25 28 / 45%), 0 0 0 1px rgb(23 25 28 / 10%);
}
.clip-phone::before {
  content: ""; position: absolute; top: 10px; left: 50%; z-index: 3; translate: -50% 0;
  width: 30%; height: 22px; border-radius: 999px; background: #17191c; pointer-events: none;
}
.clip-phone .clip-sound { right: 14px; bottom: 16px; }
.clip-phone .clip-length { left: 14px; bottom: 16px; }

/* ------------------------------------------------------------------ l'accueil : les onglets en liste */

/* Sur grand écran, la liste des fonctionnalités à gauche (pictogramme, nom, phrase), le
   texte au milieu, la vidéo à droite ; sur téléphone, la barre de pastilles habituelle. */
@media (min-width: 961px) {
  .tabs-side { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); align-items: start; }
  .tabs-side .tablist { flex-direction: column; gap: 4px; border-bottom: 0; overflow: visible; }
  .tabs-side .tab {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center;
    padding: 10px 12px; border-radius: 16px; text-align: left; white-space: normal;
  }
  .tabs-side .tab-ic {
    grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: var(--mist); color: var(--mid);
  }
  .tabs-side .tab-title { font-size: 16px; }
  .tabs-side .tab .tab-sub { display: block; color: var(--faint); font-size: 13.5px; font-weight: 400; line-height: 1.35; }
  .tabs-side .tab:hover { background: var(--mist); }
  .tabs-side .tab[aria-selected="true"] { background: var(--peach); color: var(--brown); }
  .tabs-side .tab[aria-selected="true"] .tab-ic { background: var(--brown); color: var(--peach); }
  .tabs-side .tab[aria-selected="true"] .tab-sub { color: var(--brown); opacity: .8; }
  .tabs-side .tab .tab-progress { left: 64px; right: 16px; bottom: 6px; height: 2px; background: var(--brown); opacity: .5; }
  .tabs-side .tabpanel:has(.clip) { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
}
.tab-ic { display: none; }
@media (min-width: 961px) { .tabs-side .tab-ic { display: grid; } }

/* ------------------------------------------------------------------ la page Vidéos : des listes de lecture */

.playlist { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.pl-list {
  display: grid; align-content: start; gap: 6px; max-height: min(78svh, 760px); overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin; overscroll-behavior: contain;
}
.pl-item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--canvas); text-align: left; cursor: pointer; color: var(--ink);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.pl-item img { width: 52px; aspect-ratio: 9 / 16; height: auto; object-fit: cover; border-radius: 8px; background: var(--mist); }
.pl-item img.wide { aspect-ratio: 16 / 9; }
.playlist-wide .pl-item { grid-template-columns: 112px minmax(0, 1fr); }
.playlist-wide .pl-item img { width: 112px; }
.pl-item strong { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.pl-item small { display: block; margin-top: 4px; color: var(--mid); font-size: 13px; }
.pl-item:hover { border-color: var(--ink); }
.pl-item[aria-selected="true"] { border-color: var(--peach-line); background: var(--peach); }
/* La durée sur la pêche : brun plutôt que gris, pour rester lisible (4,2:1 sinon). */
.pl-item[aria-selected="true"] small { color: var(--brown); }
.pl-panel { display: grid; grid-template-columns: min(400px, calc(72svh * 9 / 16)) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.pl-panel .clip { width: 100%; }
.pl-panel[hidden] { display: none; }
.pl-panel .clip { margin: 0; }
.playlist-wide .pl-panel { grid-template-columns: minmax(0, 1fr); }
.playlist-wide .pl-panel .clip { width: 100%; }
.pl-copy { display: grid; gap: 12px; justify-items: start; }
.pl-panel.is-entering .clip { animation: panel-in .5s var(--ease) both; }
@media (max-width: 960px) {
  .playlist { grid-template-columns: minmax(0, 1fr); }
  .pl-list { order: 2; max-height: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 70%); overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
  .pl-panel { grid-template-columns: minmax(0, 1fr); }
  .pl-panel .clip { margin-inline: auto; width: min(100%, 400px, calc(72svh * 9 / 16)); }
  .playlist-wide .pl-panel .clip { width: 100%; }
}

/* ------------------------------------------------------------------ la recherche */

.search-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); color: var(--mid);
  font: 500 14.5px/1 var(--sans); cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.search-btn:hover { border-color: var(--ink); color: var(--ink); }
.search-btn kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px;
  background: var(--mist); color: var(--mid); font: 500 12.5px/1 var(--sans);
}
/* « Rechercher » en toutes lettres seulement quand l'en-tête a la place (audit du 04/10 :
   entre 1 361 et 1 439 px, il poussait « Créer mon espace » contre le bord de l'écran). */
@media (max-width: 1439px) { .search-btn span, .search-btn kbd { display: none; } .search-btn { width: 40px; padding: 0; justify-content: center; } }
.search {
  width: min(720px, calc(100% - 32px)); max-height: min(78svh, 680px); margin: max(10svh, 24px) auto auto;
  padding: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: var(--canvas); color: var(--ink); box-shadow: var(--shadow-float);
}
.search[open] { display: flex; flex-direction: column; }
.search::backdrop { background: rgb(23 25 28 / 38%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); color: var(--mid); }
.search-box input {
  flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 400 19px/1.2 var(--sans);
}
.search-box input::-webkit-search-cancel-button { display: none; }
.search-close {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  color: var(--mid); font: 500 13px/1 var(--sans); cursor: pointer;
}
.search-body { overflow-y: auto; padding: 12px 12px 16px; overscroll-behavior: contain; }
.search-hint { margin: 4px 8px 10px; color: var(--mid); font-size: 14px; }
.search-hint a { color: var(--ink); }
.search-results { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.search-results a { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.search-results [aria-selected="true"] a, .search-results a:hover { background: var(--peach-soft); }
.search-results strong { font-size: 16.5px; font-weight: 600; }
.search-kind { color: var(--brown); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.search-desc { color: var(--mid); font-size: 14.5px; line-height: 1.45; }
.search-results mark { background: var(--peach); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 6px; }
.search-suggest button {
  min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink); font: 500 14.5px/1 var(--sans); cursor: pointer;
}
.search-suggest button:hover { border-color: var(--ink); }
@media (max-width: 640px) {
  .search { width: 100%; max-width: none; max-height: none; height: 100svh; margin: 0; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .clip-length { transition: none; } }

/* ------------------------------------------------------------------ les agents en tenue (page IA) */

.agent-btn { grid-template-columns: 56px minmax(0, 1fr); }
.agent-face {
  display: grid; place-items: end center; width: 56px; height: 56px; border-radius: 16px; overflow: hidden;
  background: var(--mist);
}
.agent-face .echo-robot { --echo-size: 62px; margin-bottom: -6px; }
.agent-btn[aria-selected="true"] .agent-face { background: var(--canvas); }
.agent-head { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: center; }
.agent-portrait {
  display: grid; place-items: end center; width: 132px; height: 132px; border-radius: 50%; overflow: hidden;
  background: var(--peach);
}
.agent-portrait .echo-robot { --echo-size: 124px; margin-bottom: -10px; }
@media (max-width: 420px) {
  .agent-btn { grid-template-columns: 48px minmax(0, 1fr); }
  .agent-face { width: 48px; height: 48px; }
  .agent-face .echo-robot { --echo-size: 54px; }
  .agent-head { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .agent-portrait { width: 96px; height: 96px; }
  .agent-portrait .echo-robot { --echo-size: 90px; margin-bottom: -7px; }
}

/* ------------------------------------------------------------------ l'en-tête sur iPhone */

/* Retour du 03/10 : sur un téléphone, la loupe et le thème restent des icônes à côté du
   menu, jamais des lignes en toutes lettres dans le menu. L'appel se raccourcit
   (« Essayer ») ; sous 380 px il part dans le menu. Rien ne déborde à 360 px. */
.cta-short { display: none; }
@media (max-width: 560px) {
  .head-cta .cta-long { display: none; }
  .head-cta .cta-short { display: inline; }
  .head-row { gap: 12px; }
  .head-actions { gap: 4px; }
  .head-actions .search-btn { width: 38px; min-height: 38px; height: 38px; border: 0; background: transparent; color: var(--ink); }
  .head-actions .theme-btn { width: 38px; height: 38px; }
}

/* Audit du 04/10 : sur téléphone, toute cible tactile fait au moins 44 px (la règle de
   l'en-tête de ce fichier). Plusieurs n'en faisaient que 29 à 42. Quand la place manque
   (les liens soulignés), la zone de toucher déborde du dessin plutôt que de l'agrandir. */
@media (max-width: 720px) {
  .head-row { gap: 8px; }
  .head-actions { gap: 0; }
  .head-actions .search-btn, .head-actions .theme-btn { width: 44px; height: 44px; min-height: 44px; }
  .head-actions .btn-primary, .btn-sm, .clip-sound, .chips label, .search-close, .search-suggest button { min-height: 44px; }
  .brand { min-height: 44px; }
  .feat-tab { min-height: 44px; }
  .feat-arrow { width: 44px; height: 44px; }
  .link { position: relative; }
  .link::after { content: ""; position: absolute; inset: -9px -4px; }
  .foot-grid ul { gap: 0; }
  .foot-grid a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* La barre des fonctionnalités ne s'élargit jamais au-delà de l'écran. */
.feat-nav-in { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 720px) { .feat-step { min-width: 0; } }
@media (max-width: 720px) {
  /* Les fonctionnalités d'une étape passent à la ligne plutôt que d'être coupées. */
  .feat-list { flex-wrap: wrap; justify-content: center; overflow: visible; row-gap: 4px; }
  .feat-step { min-height: 52px; }
}
@media (max-width: 720px) {
  /* Sur téléphone, le téléphone de la vidéo ne prend pas tout l'écran. */
  .clip-phone { width: min(78%, 300px); border-width: 9px; border-radius: 40px; }
  .clip-phone::before { top: 8px; height: 18px; }
}
/* Les vignettes d'agents : cadrées sur la tête et sa tenue (chapeau, lunettes, casque). */
/* La tête du robot est à 44 % de la largeur du dessin : on l'aligne au centre de la case. */
.agent-face { position: relative; display: block; }
.agent-face .echo-robot { --echo-size: 84px; position: absolute; left: 50%; top: 0; translate: -44% 0; margin: 0; }
.agent-btn strong { hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .agent-face .echo-robot { --echo-size: 72px; top: 0; }
  .agent-btn { gap: 10px; padding: 10px; }
  .agent-btn strong { font-size: 15px; }
}

/* ------------------------------------------------------------------ le compagnon : en l'air, jamais sur le texte */

/* Le réacteur, quel que soit ce qu'il fait : il peut lire ou saluer en l'air. */
.echo-robot.is-jet:not([data-etat="danse"]) .e-all { animation: e-hover 1.8s ease-in-out infinite; }
.echo-robot.is-jet .e-leg-l { animation: e-dangle 1.8s ease-in-out infinite; }
.echo-robot.is-jet .e-leg-r { animation: e-dangle 1.8s ease-in-out -.9s infinite; }
/* Il s'efface et réapparaît doucement quand il change de bande. */
.echo-companion { transition: opacity .35s ease; }
/* Sur téléphone, il masquait le texte : il n'y est pas (retour du 03/10). */
@media (max-width: 720px) { .echo-companion, .echo-companion-say { display: none !important; } }

/* ------------------------------------------------------------------ Le ralliement */
/* Retours du 04/10 et du 05/10 : Echo, cape au dos, lance « Militants ! Quel est votre
   métier ? » ; l'équipe accourt et répond « Haou ! Haou ! Haou ! ». Le nom de Haou en
   une scène (assets/js/ralliement.js, ADR 0055). */
.rally { display: grid; gap: clamp(20px, 2.4vw, 36px); }
.rally-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.rally-head .h2 { max-width: 18ch; }
.rally-head .lead { margin-top: 14px; max-width: 40rem; }
.r-stage {
  --ground: clamp(16px, 2vw, 28px);
  position: relative; height: clamp(300px, 34vw, 500px); overflow: hidden;
  border-radius: var(--r-lg); background: var(--peach-soft);
  border: 1px solid var(--line);
}
/* Le sol : une ligne de trottoir, pour que la foule ait où se tenir. */
.r-stage::after {
  content: ""; position: absolute; inset: auto 0 0; height: var(--ground);
  background: var(--peach); border-top: 2px solid var(--peach-line);
}
.r-echo { position: absolute; left: clamp(8px, 5%, 72px); bottom: calc(var(--ground) - 6px); z-index: 3; }
.r-echo .echo-robot { --echo-size: clamp(150px, 19vw, 300px); }

/* La bulle du cri : énorme, et qui tremble tant qu'il crie. */
.r-say {
  position: absolute; z-index: 4; margin: 0;
  left: calc(clamp(8px, 5%, 72px) + clamp(110px, 14vw, 230px)); top: clamp(14px, 3vw, 44px);
  padding: .32em .62em .38em; border-radius: 22px 22px 22px 6px;
  background: var(--ink); color: var(--on-ink);
  font-family: var(--serif); font-size: clamp(1.4rem, .8rem + 2.3vw, 3.3rem); line-height: 1.05; letter-spacing: -.02em;
  white-space: pre-line; min-height: 1.7em; min-width: 2.4em; max-width: calc(100% - 24px - clamp(8px, 5%, 72px) - clamp(110px, 14vw, 230px));
  opacity: 0; transform: scale(.7); transform-origin: 0 100%;
  transition: opacity .2s var(--ease), transform .35s var(--ease);
}
.r-say.is-on { opacity: 1; transform: none; }
.r-say.is-loud { animation: r-loud .09s linear infinite alternate; }
@keyframes r-loud { from { translate: -1.5px 1px; rotate: -.6deg; } to { translate: 1.5px -1px; rotate: .6deg; } }

/* La réponse de l'équipe : « Haou ! », trois fois, au-dessus de la foule, à chaque fois
   un peu plus fort. */
.r-reply {
  position: absolute; z-index: 4; margin: 0; left: 65%; translate: -50% 0;
  bottom: calc(var(--ground) + clamp(120px, 13vw, 200px));
  padding: .28em .6em .34em; border-radius: 22px 22px 6px 22px;
  background: var(--ember); color: #fff;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, .8rem + 2.2vw, 3.2rem); line-height: 1; letter-spacing: -.01em;
  white-space: nowrap; opacity: 0; transition: opacity .2s var(--ease);
}
.r-reply.is-on { opacity: 1; }
.r-reply.is-beat { animation: r-beat .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes r-beat { from { transform: scale(1.3); } to { transform: scale(1); } }
/* À chaque « Haou ! », toute la foule saute, bras levé, d'un même élan. */
.is-cheer .r-person.is-here .r-body { animation: r-cheer .32s ease-out 2 alternate; }
.is-cheer .r-person.is-here .r-arm { animation: r-arm-up .32s ease-out 2 alternate; }

/* Les ondes du porte-voix, qui balaient toute la scène vers la droite : elles partent du
   pavillon levé (91 % de la largeur d'Echo, 55 % de sa largeur au-dessus du sol). */
.r-waves { position: absolute; z-index: 1; left: calc(clamp(8px, 5%, 72px) + clamp(137px, 17.3vw, 273px)); bottom: calc(var(--ground) - 6px + clamp(83px, 10.5vw, 166px)); width: 0; height: 0; }
.r-waves i {
  position: absolute; left: 0; top: 0; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; border: 2.5px solid var(--ember); clip-path: inset(0 0 0 50%);
  opacity: 0;
}
.is-shouting .r-waves i { animation: r-wave 1.5s cubic-bezier(.2, .6, .3, 1) infinite; }
.is-shouting .r-waves i:nth-child(2) { animation-delay: .5s; }
.is-shouting .r-waves i:nth-child(3) { animation-delay: 1s; }
@keyframes r-wave { 0% { opacity: .75; transform: scale(.4); } 100% { opacity: 0; transform: scale(11); } }

/* Les militants : hors champ au départ, ils courent jusqu'à leur place. */
.r-person {
  --size: clamp(60px, 6.6vw, 104px);
  position: absolute; z-index: 2; left: var(--x); bottom: calc(var(--ground) - 4px);
  width: calc(var(--size) * var(--s, 1)); margin-left: calc(var(--size) * var(--s, 1) / -2);
  transform: translateX(var(--from, 100vw));
}
.r-person.is-back { z-index: 1; bottom: calc(var(--ground) + clamp(10px, 1.6vw, 24px)); filter: saturate(.85); }
.r-person svg { display: block; width: 100%; overflow: visible; transform: scaleX(-1); filter: var(--echo-outline); }
.r-person.is-from-left svg { transform: none; }
.r-person.is-running { transform: translateX(0); transition: transform var(--run, 1.6s) cubic-bezier(.3, .1, .3, 1); }
.r-person.is-here { transform: translateX(0); }
.r-person svg * { transform-box: fill-box; }
.r-person .r-leg { transform-origin: 50% 0; }
.r-person .r-arm { transform-origin: 90% 10%; }
.r-person.is-running .r-body { animation: r-bob .3s ease-in-out infinite alternate; }
.r-person.is-running .r-leg-l { animation: r-step .3s ease-in-out infinite alternate; }
.r-person.is-running .r-leg-r { animation: r-step .3s ease-in-out -.3s infinite alternate; }
.r-person.is-running .r-arm { animation: r-swing .3s ease-in-out infinite alternate; }
@keyframes r-bob { to { transform: translateY(-4px); } }
@keyframes r-step { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes r-swing { from { transform: rotate(-30deg); } to { transform: rotate(30deg); } }
/* Tout le monde est là : on saute de joie, chacun à son tour. */
.is-done .r-person.is-here .r-body { animation: r-cheer .5s ease-in-out 3 alternate; }
.is-done .r-person.is-here .r-arm { animation: r-arm-up .5s ease-in-out 3 alternate; }
.is-done .r-person.is-here:nth-child(odd) .r-body, .is-done .r-person.is-here:nth-child(odd) .r-arm { animation-delay: .12s; }
@keyframes r-cheer { to { transform: translateY(-9px); } }
@keyframes r-arm-up { to { transform: rotate(140deg); } }
.r-flag { transform-origin: 0 50%; animation: r-flag 1s ease-in-out infinite alternate; }
@keyframes r-flag { to { transform: skewY(-6deg) scaleX(.94); } }

@media (max-width: 620px) {
  .r-stage { height: 270px; }
  .r-say { left: 50%; translate: -50% 0; transform-origin: 50% 100%; top: 14px; font-size: clamp(1.15rem, 5.6vw, 1.6rem); max-width: calc(100% - 24px); text-align: center; }
  .r-reply { left: 60%; bottom: calc(var(--ground) + 84px); font-size: clamp(1rem, 4.8vw, 1.4rem); max-width: calc(100% - 16px); }
  .r-say.is-loud { animation: none; }
  .r-echo { left: 2%; }
  .r-echo .echo-robot { --echo-size: 132px; }
  .r-waves { left: calc(2% + 120px); bottom: calc(var(--ground) + 67px); }
  .r-person { --size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .r-person, .r-person.is-running { transition: none; transform: none; }
  .r-person svg * , .r-say, .r-reply, .r-waves i, .r-flag { animation: none !important; }
}

/* ------------------------------------------------------------------ pages légales */

/* Mentions légales et confidentialité : un texte à lire, pas une page à parcourir. Une
   colonne de lecture étroite, des intertitres sobres, et ce qui reste à compléter mis en
   évidence pour ne pas être publié par mégarde sans être vu. */
.legal-section { padding-top: 0; }
.legal h2 {
  font-family: var(--serif); font-size: clamp(1.45rem, 1.1rem + 1vw, 2.1rem); line-height: 1.2;
  letter-spacing: -0.015em; margin: clamp(40px, 5vw, 64px) 0 16px; scroll-margin-top: calc(var(--header) + 24px);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 26px 0 8px; }
.legal p, .legal ul:not(.checks) { margin: 0 0 14px; max-width: 46rem; overflow-wrap: anywhere; }
.legal ul:not(.checks) { padding-left: 1.2em; }
.legal ul:not(.checks) li { margin-bottom: 6px; }
.legal .checks { margin-bottom: 8px; }
.legal a:not(.btn) { text-underline-offset: 3px; }
.legal code { font-size: .9em; padding: 1px 5px; border-radius: var(--r-sm); background: var(--mist); }
.legal-facts { display: grid; gap: 0; margin: 8px 0 18px; border-top: 1px solid var(--line); max-width: 46rem; }
.legal-facts > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 6px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-facts dt { font-weight: 600; font-size: 15px; color: var(--mid); }
.legal-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 620px) { .legal-facts > div { grid-template-columns: minmax(0, 1fr); } }
.legal .todo { background: var(--peach); color: var(--brown); padding: 1px 5px; border-radius: var(--r-sm); font-weight: 500; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.legal-updated { margin-top: clamp(40px, 5vw, 64px) !important; color: var(--mid); font-size: 15px; }
