/* ---- 01-base.css ---- */
/* ==========================================================================
   BUILDEX — DA « Rouge & noir » : version photographique, noir et rouge vif sur fond clair
   Concept : la page reste claire (papier, encre, un accent), dans la police du
   site (Archivo étiré pour les titres, IBM Plex Mono pour les repères, Caveat
   pour les notes à la main) ; la photographie noir et blanc porte le récit ;
   quelques bandes sombres seulement (scènes photo, appel final) ; l'accent
   n'apparaît que comme un signal : le point du logo, un surlignage, une action.

   Tout passe par les jetons ci-dessous (jeu « rouge-noir »). Feuille de style du site
   (servie telle quelle depuis public/assets/, chargée par components/site/Gabarit.tsx) ;
   quelques règles visent encore des pages retirées (fonctionnement, enjeux, menu des styles) :
   elles restent pour une prochaine version, la maquette complète est dans la branche archive/site-complet.
   ========================================================================== */

:root {
  color-scheme: light;

  /* ---- Jeu par défaut : Rouge & noir (noir et rouge vif, fond clair) ---- */
  --papier: #ffffff;            /* fond de page */
  --papier-rgb: 255 255 255;
  --papier-2: #f4f3f2;          /* fond en retrait, survols */
  --papier-3: #e9e8e6;
  --surface: #ffffff;           /* cartes, panneaux */
  --filet: #dcdbd9;
  --filet-fort: #8f8d8a;        /* contours de champs, de pastilles */
  --encre: #0b0b0b;             /* titres, texte fort */
  --texte: #262626;
  --texte-2: #636161;           /* texte secondaire (≥ 4,5:1 sur papier) */
  --texte-3: #a3a1a0;           /* décor */
  --accent: #ff002b;            /* le rouge vif (teinte du rouge repère de la charte, au plus vif) : aplats, traits, point du logo */
  --accent-texte: #cc0022;      /* le même rouge, assombri pour le petit texte sur fond clair */
  --accent-pale: #ffe3e8;
  --sur-accent: #0b0b0b;        /* texte posé sur un aplat d'accent */
  --surligneur: #ff002b;
  --surligne-epaisseur: 0.12em; /* surlignage des mots forts des titres : un trait… */
  --surligne-position: 96%;     /* …placé au pied des lettres */
  --nuit: #0a0a0a;              /* fond des bandes sombres */
  --nuit-rgb: 8 8 8;
  --sur-nuit: #ffffff;
  --accent-sur-nuit: #ff3355;   /* accent lisible en petit texte sur bande sombre */
  --bouton-fond: #ff002b; --bouton-texte: #0b0b0b;                     /* bouton principal sur fond clair : rouge, texte à l'encre */
  --bouton-survol-fond: #0b0b0b; --bouton-survol-texte: #ffffff;
  --bouton-nuit-fond: #ff002b; --bouton-nuit-texte: #0b0b0b;           /* bouton principal sur bande sombre */
  --logo-encre: #0b0b0b; --logo-point: #ff002b;

  /* Typographie — celle du site */
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-main: "Caveat", "Segoe Print", cursive;
  --titre-graisse: 800; --titre-etirement: 125%; --titre-interlettrage: -0.03em; --titre-interligne: 1;
  --mono-interlettrage: 0.14em; --mono-graisse: 400;

  --t-h1: clamp(2.25rem, 1.05rem + 4.2vw, 4.4rem);       /* 36 → 70 px */
  --t-h2: clamp(1.9rem, 1rem + 3.2vw, 3.5rem);           /* 30 → 56 px */
  --t-h3: 1.25rem;                                       /* 20 px */
  --t-chapo: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); /* 17 → 19 px */
  --t-corps: 1.0625rem;                                  /* 17 px */
  --t-petit: 0.9375rem;                                  /* 15 px */
  --t-mini: 0.75rem;                                     /* 12 px — repères */

  /* Espace */
  --gouttiere: clamp(20px, 6.4vw, 92px);
  --section: clamp(80px, 9.5vw, 152px);
  --section-serre: clamp(52px, 6.5vw, 96px);
  --mesure: 34rem;
  --entete: 76px;

  /* Mouvement */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-lent: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Bandes sombres : scènes photographiques, appel final.
   À l'intérieur, les mêmes jetons basculent : le « papier » devient la nuit, l'encre devient claire. ---- */
.zone-sombre, .scene, .fin {
  --papier: var(--nuit); --papier-rgb: var(--nuit-rgb);
  --papier-2: color-mix(in srgb, var(--nuit) 88%, #fff); --papier-3: color-mix(in srgb, var(--nuit) 78%, #fff);
  --surface: color-mix(in srgb, var(--nuit) 92%, #fff);
  --filet: rgb(255 255 255 / 0.2); --filet-fort: rgb(255 255 255 / 0.45);
  --encre: var(--sur-nuit); --texte: color-mix(in srgb, var(--sur-nuit) 88%, var(--nuit)); --texte-2: color-mix(in srgb, var(--sur-nuit) 66%, var(--nuit)); --texte-3: color-mix(in srgb, var(--sur-nuit) 40%, var(--nuit));
  --accent-texte: var(--accent-sur-nuit); --accent-pale: color-mix(in srgb, var(--accent) 22%, var(--nuit));
  --bouton-fond: var(--bouton-nuit-fond); --bouton-texte: var(--bouton-nuit-texte); --bouton-survol-fond: var(--sur-nuit); --bouton-survol-texte: var(--nuit);
  color: var(--texte);
  background-color: var(--nuit);
}

/* --------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font-family: var(--f-sans);
  font-size: var(--t-corps);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
strong { font-weight: 700; color: var(--encre); }
::selection { background: var(--accent); color: var(--sur-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-seul {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.evitement {
  position: fixed; left: 12px; top: -80px; z-index: 200; padding: 12px 18px;
  background: var(--encre); color: var(--papier); font-weight: 700; font-size: var(--t-petit);
  transition: top 0.2s var(--ease);
}
.evitement:focus { top: 12px; }

/* --------------------------------------------------------------- Mise en page */
.cadre { padding-left: max(var(--gouttiere), env(safe-area-inset-left, 0px)); padding-right: max(var(--gouttiere), env(safe-area-inset-right, 0px)); }
/* très grands écrans : le contenu cesse de s'étirer, les fonds restent plein cadre */
@media (min-width: 1945px) { .cadre { max-width: 1944px; margin-inline: auto; } }
.section { padding-block: var(--section); }
.section--serre { padding-block: var(--section-serre); }
.filet-haut { border-top: 1px solid var(--filet); }

/* --------------------------------------------------------------- Titres : la police du site
   <h2 class="titre">Quatre étapes, <em>une seule</em> réponse.</h2>
   L'<em> marque les mots forts : il est surligné dans la couleur du jeu (trait ou feutre selon le jeu). */
.titre {
  font-family: var(--f-titre);
  font-weight: var(--titre-graisse);
  font-stretch: var(--titre-etirement);
  font-size: var(--t-h2);
  line-height: var(--titre-interligne);
  letter-spacing: var(--titre-interlettrage);
  color: var(--encre);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.titre em {
  font-style: normal;
  padding: 0 0.06em;
  background-image: linear-gradient(var(--surligneur), var(--surligneur));
  background-repeat: no-repeat;
  background-position: 0 var(--surligne-position);
  background-size: 100% var(--surligne-epaisseur);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.titre--h1 { font-size: var(--t-h1); }
.titre--colonne { font-size: clamp(1.75rem, 0.85rem + 2.4vw, 2.75rem); }   /* titre logé dans une colonne étroite */
.titre--petit { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem); letter-spacing: -0.02em; line-height: 1.08; }

.sous-titre {             /* h3 courants */
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.25;
  color: var(--encre);
}
.chapo { font-size: var(--t-chapo); line-height: 1.6; color: var(--texte); max-width: var(--mesure); }
.texte { max-width: var(--mesure); }
.texte + .texte { margin-top: 1em; }
.discret { color: var(--texte-2); }

/* Repère : petite ligne technique en mono, précédée du point d'accent */
.etiquette {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: var(--t-mini); font-weight: var(--mono-graisse);
  letter-spacing: var(--mono-interlettrage); text-transform: uppercase; color: var(--texte-2);
  line-height: 1.3;
}
.etiquette::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.etiquette--nue::before { display: none; }
.mono { font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.02em; font-weight: var(--mono-graisse); }

/* Note « à la main » (comme sur le site : Caveat, couleur d'accent, légèrement penchée) */
.note-main {
  display: inline-block; font-family: var(--f-main); font-weight: 700; font-style: normal;
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem); line-height: 1; color: var(--note, var(--accent));
  transform: rotate(-2deg); transform-origin: left center;
}
.zone-sombre .note-main, .scene .note-main, .fin .note-main { color: var(--accent-sur-nuit); }

/* --------------------------------------------------------------- Liens et boutons */
.lien {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--t-petit); font-weight: 700; color: var(--encre);
  padding-block: 10px;      /* zone tactile */
}
.lien::before {
  content: ""; flex: none; width: 40px; height: 2px; background: var(--accent);
  transform-origin: left center; transition: width 0.45s var(--ease-lent);
}
.lien:hover::before, .lien:focus-visible::before { width: 64px; }
.lien--rouge::before { background: var(--accent); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px;
  background: var(--bouton-fond); color: var(--bouton-texte);
  font-size: 1rem; font-weight: 700;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.bouton:hover, .bouton:focus-visible { background: var(--bouton-survol-fond); color: var(--bouton-survol-texte); }
.bouton .fleche { transition: transform 0.35s var(--ease-lent); }
.bouton:hover .fleche { transform: translateX(5px); }
.bouton--contour { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.bouton--contour:hover, .bouton--contour:focus-visible { background: var(--encre); color: var(--papier); }
.bouton--compact { min-height: 42px; padding: 0 18px; font-size: 0.875rem; }

/* --------------------------------------------------------------- Photographie
   Toutes les photos sont livrées en noir et blanc. .photo cadre et recadre ; ajouter
   .photo--zoom sur un parent cliquable pour le lent zoom au survol. */
.photo { position: relative; overflow: hidden; background: var(--papier-2); }
.photo > img { width: 100%; height: 100%; object-fit: cover; }
.photo--zoom > img { transition: transform 1.4s var(--ease-lent); will-change: transform; }
a:hover .photo--zoom > img, a:focus-visible .photo--zoom > img, .photo--zoom:hover > img { transform: scale(1.045); }
.r-3x4 { aspect-ratio: 3 / 4; } .r-4x5 { aspect-ratio: 4 / 5; } .r-1x1 { aspect-ratio: 1; }
.r-3x2 { aspect-ratio: 3 / 2; } .r-16x9 { aspect-ratio: 16 / 9; } .r-21x9 { aspect-ratio: 21 / 9; }

/* Apparition douce au défilement — n'est armée que si le script a posé .anime sur <html>
   et seulement pour les éléments encore sous le pli : sans script, tout est visible. */
.anime .revele { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease-lent); }
.anime .revele.est-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .anime .revele { opacity: 1; transform: none; }
}

/* ---- 02-chrome.css ---- */
/* ==========================================================================
   En-tête, menu des styles, menu plein écran, pied de page, vues
   ========================================================================== */

/* --------------------------------------------------------------- Vues
   Sans script, toutes les vues s'enchaînent ; avec script, une seule est affichée. */
.js .vue:not(.est-active) { display: none; }
main:focus { outline: none; }
html[lang="fr"] [data-l="en"], html[lang="en"] [data-l="fr"] { display: none !important; }

/* --------------------------------------------------------------- En-tête */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--encre);
  background: var(--papier);
  border-bottom: 1px solid var(--filet);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
/* transparent au-dessus de la photo d'ouverture de l'accueil, tant qu'on n'a pas défilé */
.vue-ouverture-photo .entete:not(.est-pose) { background: transparent; border-bottom-color: transparent; }
.menu-ouvert .entete { background: var(--papier); border-bottom-color: transparent; }

.entete__barre {
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px);
  height: var(--entete);
}
.entete__logo { flex: none; display: block; padding-block: 8px; }
.logo { height: 24px; width: auto; color: var(--logo-encre); --rouge: var(--logo-point); }
.entete__nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); margin-right: auto; }
.entete__nav a, .entete__lien {
  position: relative; padding-block: 10px;
  font-size: var(--t-petit); font-weight: 500; color: var(--texte);
  white-space: nowrap; transition: color 0.2s var(--ease);
}
.entete__nav a:hover, .entete__nav a:focus-visible, .entete__lien:hover { color: var(--encre); }
.entete__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--surligneur);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.4s var(--ease-lent);
}
.entete__nav a[aria-current="page"] { color: var(--encre); }
.entete__nav a[aria-current="page"]::after { transform: scaleX(1); }
.entete__outils { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 22px); flex: none; }
.langues { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--texte-2); }
.langues a, .langues span { padding: 10px 2px; }
.langues [aria-current="true"] { color: var(--encre); }
.langues a:hover { color: var(--encre); }
.bouton--entete { font-weight: 700; }

/* --------------------------------------------------------------- Menu des styles (jeux de couleurs), comme sur le site */
.styles { position: relative; flex: none; }
.styles__bouton {
  display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--filet); color: var(--encre);
  font-family: var(--f-mono); font-size: 0.6875rem; font-weight: var(--mono-graisse); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transition: border-color 0.2s var(--ease);
}
.styles__bouton:hover, .styles__bouton[aria-expanded="true"] { border-color: var(--encre); }
.styles__pastille { display: flex; flex: none; }
.styles__pastille span { width: 12px; height: 12px; display: block; }
.styles__liste {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 120; width: 264px; max-height: min(72vh, 620px); overflow-y: auto;
  padding: 4px 0; background: var(--surface); border: 1px solid var(--filet); box-shadow: 0 12px 30px -18px rgb(0 0 0 / 0.35);
}
.styles__liste button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; text-align: left;
  font-family: var(--f-sans); font-size: 0.875rem; line-height: 1.3; color: var(--encre);
}
.styles__liste button:hover, .styles__liste button:focus-visible { background: var(--papier-2); }
.styles__liste button[aria-checked="true"] { font-weight: 700; }
.styles__liste small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--texte-2); }
.styles__nouveau { margin-left: 6px; padding: 1px 5px; background: var(--accent); color: var(--sur-accent); font-family: var(--f-mono); font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 2px; }
/* Sous 1440 px, le nom du style s'efface : il reste les deux pastilles. (Le script resserre
   davantage si la police du jeu choisi est plus large : voir « En-tête : tenir dans la barre ».) */
@media (max-width: 1439px) { .styles__nom { display: none; } }
.entete-serre-1 .styles__nom { display: none; }

.entete__menu-bouton { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; color: var(--encre); }
.entete__menu-bouton span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform 0.4s var(--ease-lent), top 0.4s var(--ease-lent); }
.entete__menu-bouton span:nth-child(1) { top: 17px; }
.entete__menu-bouton span:nth-child(2) { top: 26px; }
.menu-ouvert .entete__menu-bouton span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-ouvert .entete__menu-bouton span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* --------------------------------------------------------------- Menu plein écran (mobile / tablette) */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--papier);
  padding-top: calc(var(--entete) + env(safe-area-inset-top, 0px) + 12px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease-lent), visibility 0s linear 0.35s;
}
.menu-ouvert .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-ouvert body { overflow: hidden; }
.menu__liens { display: flex; flex-direction: column; }
.menu__liens a {
  display: flex; align-items: baseline; gap: 14px;
  padding-block: 15px; border-bottom: 1px solid var(--filet);
  font-family: var(--f-titre); font-size: clamp(1.375rem, 6vw, 2rem); font-weight: var(--titre-graisse); font-stretch: var(--titre-etirement); letter-spacing: var(--titre-interlettrage); line-height: 1.08;
  color: var(--encre);
}
.menu__liens a .mono { color: var(--texte-2); font-stretch: 100%; flex: none; width: 2.2em; letter-spacing: 0.04em; }
.menu__liens a[aria-current="page"] .mono { color: var(--accent-texte); }
.menu__bas { display: flex; flex-direction: column; gap: 18px; }
.menu__bas .bouton { width: 100%; }
.menu__ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Paliers de resserrement : par largeur d'écran (réglés pour « Rouge & noir »), ou posés par le script */
@media (max-width: 1300px) {
  .entete__barre { gap: 20px; }
  .entete__nav { gap: 16px; }
  .entete__outils { gap: 12px; }
}
.entete-serre-2 .entete__barre { gap: 20px; }
.entete-serre-2 .entete__nav { gap: 16px; }
.entete-serre-2 .entete__outils { gap: 12px; }
.entete-serre-2 .entete__nav a, .entete-serre-2 .entete__lien { font-size: 0.875rem; }
@media (max-width: 1200px) {
  .entete__nav, .entete__outils .langues, .entete__outils .entete__lien { display: none; }
  .entete__outils { margin-left: auto; }
  .entete__menu-bouton { display: block; }
}
.entete-serre-3 .entete__nav, .entete-serre-3 .entete__outils .langues, .entete-serre-3 .entete__outils .entete__lien { display: none; }
.entete-serre-3 .entete__outils { margin-left: auto; }
.entete-serre-3 .entete__menu-bouton { display: block; }
@media (min-width: 1201px) { html:not(.entete-serre-3) .menu { display: none; } }
@media (max-width: 420px) { .entete .bouton--entete { padding: 0 14px; } .styles__liste { right: -96px; } }
@media (max-width: 380px) {
  /* petits téléphones : logo un peu plus petit, espacements serrés, pastilles seules dans le bouton des styles */
  .entete__barre { gap: 10px; }
  .entete__outils { gap: 8px; }
  .entete .logo { height: 20px; }
  .entete .bouton--entete { padding: 0 12px; }
  .styles__bouton { padding: 0 8px; }
  .styles__fleche { display: none; }
}

/* --------------------------------------------------------------- Pied de page */
.pied { border-top: 1px solid var(--filet); background: var(--papier); color: var(--texte); }
.pied__haut {
  display: grid; grid-template-columns: minmax(200px, 1.25fr) repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px) clamp(24px, 3vw, 48px);
  padding-block: clamp(56px, 7vw, 96px);
}
.pied__marque .logo { height: 26px; }
.pied__marque p { margin-top: 20px; font-size: var(--t-petit); color: var(--texte); max-width: 22ch; }
.pied__titre { font-family: var(--f-mono); font-size: var(--t-mini); font-weight: var(--mono-graisse); letter-spacing: var(--mono-interlettrage); text-transform: uppercase; color: var(--texte-2); margin-bottom: 18px; }
.pied__liste { display: flex; flex-direction: column; gap: 4px; font-size: var(--t-petit); }
.pied__liste a, .pied__liste span { display: inline-block; padding-block: 6px; }
.pied__liste a { color: var(--texte); transition: color 0.2s var(--ease); }
.pied__liste a:hover, .pied__liste a:focus-visible { color: var(--encre); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--surligneur); text-decoration-thickness: 2px; }
.pied__liste .a-venir { color: var(--texte-2); }
.pied__liste .lien-fort { color: var(--encre); font-weight: 700; }
.pied__liste .lien-fort::after { content: " →"; color: var(--accent-texte); }
.pied__bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--filet);
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--texte-2);
}
@media (max-width: 980px) { .pied__haut { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pied__marque { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pied__haut { grid-template-columns: 1fr; } }

/* ---- 03-composants.css ---- */
/* ==========================================================================
   Composants partagés par toutes les pages
   ========================================================================== */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(24px, 3vw, 40px); }
.libelle-court { display: none; }
@media (max-width: 520px) { .libelle-long { display: none; } .libelle-court { display: inline; } }

/* En-tête de section : étiquette + titre à gauche, lien à droite */
.tete-section { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 72px); }
.tete-section > div { display: flex; flex-direction: column; gap: 22px; max-width: 46rem; }
.pile { display: flex; flex-direction: column; gap: 22px; }
.pile--large { gap: clamp(28px, 3.5vw, 44px); }

/* --------------------------------------------------------------- Fenêtre-logo
   Le logo sert de fenêtre : une photo dense vue à travers sa forme, posée sur une photo claire
   (ou, dans la bande finale sombre, une photo claire vue à travers le logotype).
   .fenetre--symbole : les quatre barres du X + le point.  .fenetre--logo : le logotype entier. */
.fenetre { pointer-events: none; }
.fenetre__vitre { position: absolute; inset: 0; overflow: hidden; }
.fenetre--symbole .fenetre__vitre { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%2224.5%2027.07%2079%2073.86%22%3E%3Cg%20stroke%3D%22%23fff%22%20stroke-width%3D%2217.6%22%3E%3Cline%20x1%3D%2230.40%22%20y1%3D%2233.60%22%20x2%3D%2254.33%22%20y2%3D%2255.25%22%2F%3E%3Cline%20x1%3D%2273.67%22%20y1%3D%2272.75%22%20x2%3D%2297.60%22%20y2%3D%2294.40%22%2F%3E%3Cline%20x1%3D%2297.60%22%20y1%3D%2233.60%22%20x2%3D%2273.67%22%20y2%3D%2255.25%22%2F%3E%3Cline%20x1%3D%2254.33%22%20y1%3D%2272.75%22%20x2%3D%2230.40%22%20y2%3D%2294.40%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%2224.5%2027.07%2079%2073.86%22%3E%3Cg%20stroke%3D%22%23fff%22%20stroke-width%3D%2217.6%22%3E%3Cline%20x1%3D%2230.40%22%20y1%3D%2233.60%22%20x2%3D%2254.33%22%20y2%3D%2255.25%22%2F%3E%3Cline%20x1%3D%2273.67%22%20y1%3D%2272.75%22%20x2%3D%2297.60%22%20y2%3D%2294.40%22%2F%3E%3Cline%20x1%3D%2297.60%22%20y1%3D%2233.60%22%20x2%3D%2273.67%22%20y2%3D%2255.25%22%2F%3E%3Cline%20x1%3D%2254.33%22%20y1%3D%2272.75%22%20x2%3D%2230.40%22%20y2%3D%2294.40%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; }
.fenetre--logo .fenetre__vitre { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22-12.0%20-97.1%20557.7%20114.3%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%3E%3Cg%20fill%3D%22%23fff%22%3E%3Cpath%20d%3D%22M10.478060546875%200.0V-85.255388671875H80.567546875Q87.49859581316021%20-85.255388671875%2093.1066260315801%20-82.589388671875Q98.71465625%20-79.923388671875%20101.9831279296875%20-75.211388671875Q105.251599609375%20-70.499388671875%20105.251599609375%20-64.24277734375Q105.251599609375%20-58.665501953125%20103.256822265625%20-54.697501953125Q101.262044921875%20-50.729501953125%2097.90072059723269%20-48.26566796875Q94.53939627259037%20-45.801833984375%2090.430935546875%20-44.572611328125V-44.076611328125Q95.21720061383928%20-43.084611328125%2099.06853976004464%20-40.49677734375Q102.91987890625%20-37.908943359375%20105.16265625%20-33.5972490234375Q107.40543359375%20-29.2855546875%20107.40543359375%20-23.03166796875Q107.40543359375%20-15.702166015625%20103.87143359375%20-10.5615546875Q100.33743359375%20-5.420943359375%2094.3463505859375%20-2.7104716796875Q88.355267578125%200.0%2080.97187890625%200.0ZM35.727984375%20-17.971826171875H72.54544921875Q76.51284503823139%20-17.971826171875%2079.01878873005319%20-20.134315607244318Q81.524732421875%20-22.296805042613634%2081.524732421875%20-26.766353338068182Q81.524732421875%20-29.126498046875%2080.44281357030336%20-31.011375826322116Q79.36089471873171%20-32.89625360576923%2077.26887218320164%20-33.93887777944711Q75.17684964767156%20-34.981501953125%2072.20578125%20-34.981501953125H35.727984375ZM35.727984375%20-51.570498046875H70.4482265625Q73.33297645246479%20-51.570498046875%2075.3087147887324%20-52.613720703125Q77.284453125%20-53.656943359375%2078.3559814453125%20-55.55256874359631Q79.427509765625%20-57.44819412781762%2079.427509765625%20-60.016Q79.427509765625%20-63.64978125%2076.97826045496325%20-65.7699208984375Q74.52901114430148%20-67.890060546875%2070.78789453125%20-67.890060546875H35.727984375Z%22%2F%3E%3Cpath%20d%3D%22M144.70033203125%201.488Q130.52122265625%201.488%20123.31305664062499%20-5.36433203125Q116.104890625%20-12.2166640625%20116.104890625%20-25.934830078125V-65.415388671875H139.01231640625V-29.11299609375Q139.01231640625%20-25.773048828125%20139.9544560546875%20-23.1959921875Q140.896595703125%20-20.618935546875%20142.6959580078125%20-18.950324218749998Q144.49532031249998%20-17.281712890625%20147.1626826171875%20-16.4366298828125Q149.83004492187501%20-15.591546875%20153.21310156250001%20-15.591546875Q158.1299921875%20-15.591546875%20162.16271679687497%20-17.5876865234375Q166.19544140624998%20-19.583826171875%20168.5986376953125%20-23.147494140625Q171.001833984375%20-26.711162109375%20171.001833984375%20-31.30188671875V-65.415388671875H193.909259765625V0.0H175.3606640625L173.783720703125%20-10.8904453125H172.66772070312498Q169.263109375%20-6.324%20164.68049804687502%20-3.6296943359375Q160.09788671875%20-0.935388671875%20154.9801923828125%200.2763056640625Q149.862498046875%201.488%20144.70033203125%201.488Z%22%2F%3E%3Cpath%20d%3D%22M205.01872460937503%20-74.462060546875V-89.843388671875H227.92615039062503V-74.462060546875ZM205.01872460937503%200.0V-65.415388671875H227.92615039062503V0.0Z%22%2F%3E%3Cpath%20d%3D%22M239.07872460937503%200.0V-89.843388671875H261.986150390625V0.0Z%22%2F%3E%3Cpath%20d%3D%22M304.68861132812503%201.488Q294.72277734375%201.488%20286.98491699218755%20-2.1983056640624996Q279.24705664062503%20-5.884611328125%20274.78980761718753%20-13.4769169921875Q270.33255859375004%20-21.06922265625%20270.33255859375004%20-32.679388671875Q270.33255859375004%20-44.40277734375%20274.76150195312505%20-51.966777343749996Q279.1904453125%20-59.530777343749996%20286.8150830078125%20-63.21708300781249Q294.43972070312503%20-66.90338867187499%20304.17910937500005%20-66.90338867187499Q308.51105664062504%20-66.90338867187499%20312.95350195312506%20-65.9558603515625Q317.395947265625%20-65.00833203125%20321.30733593750006%20-62.97310937500001Q325.21872460937504%20-60.93788671875%20327.946724609375%20-57.71388671875H328.94950195312504V-89.843388671875H351.856927734375V0.0H333.30833203125L331.483388671875%20-10.224611328125H330.42400000000004Q325.56644531250004%20-3.70922265625%20318.8933623046875%20-1.110611328125Q312.220279296875%201.488%20304.68861132812503%201.488ZM311.31982617187504%20-15.591546875Q317.228716796875%20-15.591546875%20321.1765244140625%20-17.68876953125Q325.12433203125%20-19.7859921875%20327.09891699218747%20-23.5585771484375Q329.073501953125%20-27.331162109375%20329.073501953125%20-32.25077734375V-33.108Q329.073501953125%20-36.87655859375%20327.9507509765625%20-39.93344921875Q326.82800000000003%20-42.99033984375%20324.57172070312504%20-45.1724794921875Q322.31544140625005%20-47.354619140625%20318.97685644531254%20-48.58923046875Q315.638271484375%20-49.823841796875%20311.20660351562503%20-49.823841796875Q305.410935546875%20-49.823841796875%20301.49143359375%20-47.7603134765625Q297.57193164062505%20-45.69678515625%20295.59195800781254%20-42.1155888671875Q293.611984375%20-38.534392578125%20293.611984375%20-33.73877734375V-31.676611328125Q293.611984375%20-26.88099609375%20295.620263671875%20-23.237799804687498Q297.62854296875%20-19.594603515625%20301.54804492187503%20-17.5930751953125Q305.46754687500004%20-15.591546875%20311.31982617187504%20-15.591546875Z%22%2F%3E%3Cpath%20d%3D%22M404.35799218750003%201.488Q390.968716796875%201.488%20381.04605273437505%20-2.1363056640625Q371.12338867187503%20-5.760611328125%20365.6579736328125%20-13.358305664062499Q360.19255859375005%20-20.956%20360.19255859375005%20-32.679388671875Q360.19255859375005%20-44.15477734375%20365.56766796875%20-51.78077734375Q370.94277734375004%20-59.40677734375%20380.66866406250006%20-63.15508300781249Q390.39455078125%20-66.90338867187499%20403.40104882812506%20-66.90338867187499Q417.02754687500004%20-66.90338867187499%20426.66851660156254%20-63.222471679687494Q436.30948632812505%20-59.541554687499996%20441.37998437500005%20-52.1190830078125Q446.45048242187505%20-44.696611328125%20446.45048242187505%20-33.471947265625V-28.193833984375H384.17015039062505Q384.47476171875%20-22.926498046875%20386.9507353515625%20-19.5717470703125Q389.426708984375%20-16.21699609375%20393.9662109375%20-14.672384765625Q398.50571289062503%20-13.1277734375%20404.71921484375%20-13.1277734375Q407.98632421875004%20-13.1277734375%20411.12676953125003%20-13.815162109374999Q414.26721484375%20-14.50255078125%20416.78902246093753%20-15.7762451171875Q419.31083007812504%20-17.049939453125%20420.86894335937507%20-18.860079101562498Q422.42705664062504%20-20.67021875%20422.596890625%20-22.97233203125H446.15664843750005Q446.15664843750005%20-17.3384453125%20443.07553906250007%20-12.80166796875Q439.99442968750003%20-8.264890625%20434.3942373046875%20-5.0799736328125Q428.79404492187507%20-1.895056640625%20421.13032421875005%20-0.2035283203125Q413.466603515625%201.488%20404.35799218750003%201.488ZM384.23753906250005%20-40.275720703124996H422.01194726562505Q422.01194726562505%20-43.063056640625%20420.7085849609375%20-45.262724609375Q419.40522265625003%20-47.462392578125%20417.00202636718757%20-49.0353095703125Q414.59883007812505%20-50.6082265625%20411.32763378906253%20-51.4479208984375Q408.0564375%20-52.287615234375%20404.18815820312506%20-52.287615234375Q398.33587890625006%20-52.287615234375%20394.07807128906256%20-50.80500390624999Q389.820263671875%20-49.322392578125%20387.33890136718753%20-46.5930302734375Q384.85753906250005%20-43.86366796875%20384.23753906250005%20-40.275720703124996Z%22%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%22%23fff%22%20stroke-width%3D%2217.6%22%3E%3Cline%20x1%3D%22460.06%22%20y1%3D%22-64.00%22%20x2%3D%22483.99%22%20y2%3D%22-42.35%22%2F%3E%3Cline%20x1%3D%22503.33%22%20y1%3D%22-24.85%22%20x2%3D%22527.26%22%20y2%3D%22-3.20%22%2F%3E%3Cline%20x1%3D%22527.26%22%20y1%3D%22-64.00%22%20x2%3D%22503.33%22%20y2%3D%22-42.35%22%2F%3E%3Cline%20x1%3D%22483.99%22%20y1%3D%22-24.85%22%20x2%3D%22460.06%22%20y2%3D%22-3.20%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22-12.0%20-97.1%20557.7%20114.3%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%3E%3Cg%20fill%3D%22%23fff%22%3E%3Cpath%20d%3D%22M10.478060546875%200.0V-85.255388671875H80.567546875Q87.49859581316021%20-85.255388671875%2093.1066260315801%20-82.589388671875Q98.71465625%20-79.923388671875%20101.9831279296875%20-75.211388671875Q105.251599609375%20-70.499388671875%20105.251599609375%20-64.24277734375Q105.251599609375%20-58.665501953125%20103.256822265625%20-54.697501953125Q101.262044921875%20-50.729501953125%2097.90072059723269%20-48.26566796875Q94.53939627259037%20-45.801833984375%2090.430935546875%20-44.572611328125V-44.076611328125Q95.21720061383928%20-43.084611328125%2099.06853976004464%20-40.49677734375Q102.91987890625%20-37.908943359375%20105.16265625%20-33.5972490234375Q107.40543359375%20-29.2855546875%20107.40543359375%20-23.03166796875Q107.40543359375%20-15.702166015625%20103.87143359375%20-10.5615546875Q100.33743359375%20-5.420943359375%2094.3463505859375%20-2.7104716796875Q88.355267578125%200.0%2080.97187890625%200.0ZM35.727984375%20-17.971826171875H72.54544921875Q76.51284503823139%20-17.971826171875%2079.01878873005319%20-20.134315607244318Q81.524732421875%20-22.296805042613634%2081.524732421875%20-26.766353338068182Q81.524732421875%20-29.126498046875%2080.44281357030336%20-31.011375826322116Q79.36089471873171%20-32.89625360576923%2077.26887218320164%20-33.93887777944711Q75.17684964767156%20-34.981501953125%2072.20578125%20-34.981501953125H35.727984375ZM35.727984375%20-51.570498046875H70.4482265625Q73.33297645246479%20-51.570498046875%2075.3087147887324%20-52.613720703125Q77.284453125%20-53.656943359375%2078.3559814453125%20-55.55256874359631Q79.427509765625%20-57.44819412781762%2079.427509765625%20-60.016Q79.427509765625%20-63.64978125%2076.97826045496325%20-65.7699208984375Q74.52901114430148%20-67.890060546875%2070.78789453125%20-67.890060546875H35.727984375Z%22%2F%3E%3Cpath%20d%3D%22M144.70033203125%201.488Q130.52122265625%201.488%20123.31305664062499%20-5.36433203125Q116.104890625%20-12.2166640625%20116.104890625%20-25.934830078125V-65.415388671875H139.01231640625V-29.11299609375Q139.01231640625%20-25.773048828125%20139.9544560546875%20-23.1959921875Q140.896595703125%20-20.618935546875%20142.6959580078125%20-18.950324218749998Q144.49532031249998%20-17.281712890625%20147.1626826171875%20-16.4366298828125Q149.83004492187501%20-15.591546875%20153.21310156250001%20-15.591546875Q158.1299921875%20-15.591546875%20162.16271679687497%20-17.5876865234375Q166.19544140624998%20-19.583826171875%20168.5986376953125%20-23.147494140625Q171.001833984375%20-26.711162109375%20171.001833984375%20-31.30188671875V-65.415388671875H193.909259765625V0.0H175.3606640625L173.783720703125%20-10.8904453125H172.66772070312498Q169.263109375%20-6.324%20164.68049804687502%20-3.6296943359375Q160.09788671875%20-0.935388671875%20154.9801923828125%200.2763056640625Q149.862498046875%201.488%20144.70033203125%201.488Z%22%2F%3E%3Cpath%20d%3D%22M205.01872460937503%20-74.462060546875V-89.843388671875H227.92615039062503V-74.462060546875ZM205.01872460937503%200.0V-65.415388671875H227.92615039062503V0.0Z%22%2F%3E%3Cpath%20d%3D%22M239.07872460937503%200.0V-89.843388671875H261.986150390625V0.0Z%22%2F%3E%3Cpath%20d%3D%22M304.68861132812503%201.488Q294.72277734375%201.488%20286.98491699218755%20-2.1983056640624996Q279.24705664062503%20-5.884611328125%20274.78980761718753%20-13.4769169921875Q270.33255859375004%20-21.06922265625%20270.33255859375004%20-32.679388671875Q270.33255859375004%20-44.40277734375%20274.76150195312505%20-51.966777343749996Q279.1904453125%20-59.530777343749996%20286.8150830078125%20-63.21708300781249Q294.43972070312503%20-66.90338867187499%20304.17910937500005%20-66.90338867187499Q308.51105664062504%20-66.90338867187499%20312.95350195312506%20-65.9558603515625Q317.395947265625%20-65.00833203125%20321.30733593750006%20-62.97310937500001Q325.21872460937504%20-60.93788671875%20327.946724609375%20-57.71388671875H328.94950195312504V-89.843388671875H351.856927734375V0.0H333.30833203125L331.483388671875%20-10.224611328125H330.42400000000004Q325.56644531250004%20-3.70922265625%20318.8933623046875%20-1.110611328125Q312.220279296875%201.488%20304.68861132812503%201.488ZM311.31982617187504%20-15.591546875Q317.228716796875%20-15.591546875%20321.1765244140625%20-17.68876953125Q325.12433203125%20-19.7859921875%20327.09891699218747%20-23.5585771484375Q329.073501953125%20-27.331162109375%20329.073501953125%20-32.25077734375V-33.108Q329.073501953125%20-36.87655859375%20327.9507509765625%20-39.93344921875Q326.82800000000003%20-42.99033984375%20324.57172070312504%20-45.1724794921875Q322.31544140625005%20-47.354619140625%20318.97685644531254%20-48.58923046875Q315.638271484375%20-49.823841796875%20311.20660351562503%20-49.823841796875Q305.410935546875%20-49.823841796875%20301.49143359375%20-47.7603134765625Q297.57193164062505%20-45.69678515625%20295.59195800781254%20-42.1155888671875Q293.611984375%20-38.534392578125%20293.611984375%20-33.73877734375V-31.676611328125Q293.611984375%20-26.88099609375%20295.620263671875%20-23.237799804687498Q297.62854296875%20-19.594603515625%20301.54804492187503%20-17.5930751953125Q305.46754687500004%20-15.591546875%20311.31982617187504%20-15.591546875Z%22%2F%3E%3Cpath%20d%3D%22M404.35799218750003%201.488Q390.968716796875%201.488%20381.04605273437505%20-2.1363056640625Q371.12338867187503%20-5.760611328125%20365.6579736328125%20-13.358305664062499Q360.19255859375005%20-20.956%20360.19255859375005%20-32.679388671875Q360.19255859375005%20-44.15477734375%20365.56766796875%20-51.78077734375Q370.94277734375004%20-59.40677734375%20380.66866406250006%20-63.15508300781249Q390.39455078125%20-66.90338867187499%20403.40104882812506%20-66.90338867187499Q417.02754687500004%20-66.90338867187499%20426.66851660156254%20-63.222471679687494Q436.30948632812505%20-59.541554687499996%20441.37998437500005%20-52.1190830078125Q446.45048242187505%20-44.696611328125%20446.45048242187505%20-33.471947265625V-28.193833984375H384.17015039062505Q384.47476171875%20-22.926498046875%20386.9507353515625%20-19.5717470703125Q389.426708984375%20-16.21699609375%20393.9662109375%20-14.672384765625Q398.50571289062503%20-13.1277734375%20404.71921484375%20-13.1277734375Q407.98632421875004%20-13.1277734375%20411.12676953125003%20-13.815162109374999Q414.26721484375%20-14.50255078125%20416.78902246093753%20-15.7762451171875Q419.31083007812504%20-17.049939453125%20420.86894335937507%20-18.860079101562498Q422.42705664062504%20-20.67021875%20422.596890625%20-22.97233203125H446.15664843750005Q446.15664843750005%20-17.3384453125%20443.07553906250007%20-12.80166796875Q439.99442968750003%20-8.264890625%20434.3942373046875%20-5.0799736328125Q428.79404492187507%20-1.895056640625%20421.13032421875005%20-0.2035283203125Q413.466603515625%201.488%20404.35799218750003%201.488ZM384.23753906250005%20-40.275720703124996H422.01194726562505Q422.01194726562505%20-43.063056640625%20420.7085849609375%20-45.262724609375Q419.40522265625003%20-47.462392578125%20417.00202636718757%20-49.0353095703125Q414.59883007812505%20-50.6082265625%20411.32763378906253%20-51.4479208984375Q408.0564375%20-52.287615234375%20404.18815820312506%20-52.287615234375Q398.33587890625006%20-52.287615234375%20394.07807128906256%20-50.80500390624999Q389.820263671875%20-49.322392578125%20387.33890136718753%20-46.5930302734375Q384.85753906250005%20-43.86366796875%20384.23753906250005%20-40.275720703124996Z%22%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%22%23fff%22%20stroke-width%3D%2217.6%22%3E%3Cline%20x1%3D%22460.06%22%20y1%3D%22-64.00%22%20x2%3D%22483.99%22%20y2%3D%22-42.35%22%2F%3E%3Cline%20x1%3D%22503.33%22%20y1%3D%22-24.85%22%20x2%3D%22527.26%22%20y2%3D%22-3.20%22%2F%3E%3Cline%20x1%3D%22527.26%22%20y1%3D%22-64.00%22%20x2%3D%22503.33%22%20y2%3D%22-42.35%22%2F%3E%3Cline%20x1%3D%22483.99%22%20y1%3D%22-24.85%22%20x2%3D%22460.06%22%20y2%3D%22-3.20%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; }
.fenetre__plan { position: absolute; inset: -7%; transform: translate3d(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 12px), 0); transition: transform 0.9s var(--ease-lent); }
.fenetre__plan img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: contrast(1.08); animation: derive 26s ease-in-out infinite alternate; }
.est-en-pause .fenetre__plan img { animation-play-state: paused; }
.fenetre__point { position: absolute; left: 50%; top: 50%; width: 20.25%; aspect-ratio: 1; border-radius: 50%; background: var(--logo-point); transform: translate(-50%, -50%); }
.fenetre--logo .fenetre__point { left: 90.669%; top: 55.556%; width: 2.869%; }
@keyframes derive { from { transform: scale(1.02) translate3d(-1.6%, 1%, 0); } to { transform: scale(1.09) translate3d(1.8%, -1.4%, 0); } }

/* --------------------------------------------------------------- Ouverture (première scène d'une page) */
.ouverture { position: relative; isolation: isolate; overflow: hidden; background: var(--papier); display: flex; flex-direction: column; justify-content: flex-end; }
.ouverture__fond, .ouverture__voile { position: absolute; inset: 0; }
.ouverture__fond { z-index: -3; }
.ouverture__fond img { width: 100%; height: 100%; object-fit: cover; }
.ouverture__contenu { position: relative; width: 100%; padding-top: calc(var(--entete) + env(safe-area-inset-top, 0px) + 40px); padding-bottom: clamp(44px, 6.4vw, 88px); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.ouverture__contenu > * { max-width: 37rem; }
.ouverture__note { margin-top: -6px; }

/* Accueil : photo claire plein cadre, texte à l'encre à gauche, symbole-fenêtre à droite */
.ouverture--accueil { min-height: min(100svh, 1080px); }
.ouverture--accueil .ouverture__fond img { object-position: 72% 50%; filter: brightness(1.04) contrast(0.92); }
.ouverture--accueil .ouverture__voile { z-index: -1; background:
  linear-gradient(90deg, rgb(var(--papier-rgb) / 0.96) 0%, rgb(var(--papier-rgb) / 0.84) 36%, rgb(var(--papier-rgb) / 0) 70%),
  linear-gradient(180deg, rgb(var(--papier-rgb) / 0.75) 0%, rgb(var(--papier-rgb) / 0) 20%),
  linear-gradient(0deg, rgb(var(--papier-rgb) / 0.55) 0%, rgb(var(--papier-rgb) / 0) 22%); }
.ouverture--accueil .titre { max-width: 9.4em; }
/* le symbole-fenêtre : centré dans l'espace laissé libre à droite du texte */
.ouverture .fenetre--symbole {
  position: absolute; z-index: -2; top: 52%;
  left: calc(var(--gouttiere) + 37rem + (100% - 2 * var(--gouttiere) - 37rem) / 2 + 12px);
  width: min(calc(min(70svh, 760px) * 1.0696), calc((100vw - 2 * var(--gouttiere) - 37rem) * 0.96));
  aspect-ratio: 79 / 73.86; transform: translate(-50%, -50%);
}
.ouverture__pause {
  position: absolute; right: max(var(--gouttiere), env(safe-area-inset-right, 0px)); bottom: clamp(36px, 5vw, 72px);
  width: 44px; height: 44px; display: grid; place-items: center; color: var(--encre);
  background: rgb(var(--papier-rgb) / 0.7); border: 1px solid var(--filet-fort); border-radius: 50%; transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.ouverture__pause:hover { border-color: var(--encre); background: var(--papier); }
.ouverture__pause::before { content: ""; width: 9px; height: 11px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.ouverture__pause[aria-pressed="true"]::before { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

@media (max-width: 980px) {
  /* le symbole passe au-dessus du texte, dans le flux */
  .ouverture--accueil { min-height: min(100svh, 980px); justify-content: flex-start; }
  .ouverture .fenetre--symbole {
    position: relative; z-index: 0; left: auto; top: auto; transform: none; flex: none; align-self: center;
    width: min(80vw, calc(34svh * 1.0696), 460px);
    margin-top: calc(var(--entete) + env(safe-area-inset-top, 0px) + clamp(12px, 3svh, 36px));
  }
  .ouverture--accueil .ouverture__contenu { padding-top: clamp(20px, 3.5svh, 40px); margin-top: auto; gap: 18px; }
  .ouverture--accueil .ouverture__voile { background: linear-gradient(0deg, rgb(var(--papier-rgb) / 0.96) 0%, rgb(var(--papier-rgb) / 0.86) 48%, rgb(var(--papier-rgb) / 0.3) 78%, rgb(var(--papier-rgb) / 0.7) 100%); }
  .ouverture--accueil .titre { max-width: none; }
  .ouverture__pause { bottom: auto; top: calc(var(--entete) + env(safe-area-inset-top, 0px) + 8px); width: 40px; height: 40px; }
}
@media (max-width: 560px) {
  /* téléphone : le symbole un peu plus petit, pour que le premier bouton reste sur le premier écran */
  .ouverture .fenetre--symbole { width: min(72vw, calc(27svh * 1.0696), 340px); margin-top: calc(var(--entete) + env(safe-area-inset-top, 0px) + clamp(8px, 2svh, 24px)); }
  .ouverture--accueil .ouverture__contenu { gap: 14px; padding-top: clamp(14px, 2.4svh, 28px); }
}

/* Pages intérieures : le titre sur papier, puis une bande photographique (sans texte dessus) */
.ouverture--page { justify-content: flex-start; padding-top: calc(var(--entete) + env(safe-area-inset-top, 0px)); }
.ouverture--page .ouverture__contenu { order: 1; padding-top: clamp(40px, 5.5vw, 84px); padding-bottom: clamp(32px, 4vw, 56px); }
.ouverture--page .ouverture__contenu > * { max-width: 46rem; }
.ouverture--page .ouverture__contenu .titre { max-width: 13em; }
.ouverture--page .ouverture__fond { order: 2; position: relative; inset: auto; z-index: 0; height: clamp(190px, 30vw, 430px); }
.ouverture--page .ouverture__fond img { object-position: 50% 50%; }
.ouverture--page .ouverture__voile { display: none; }

/* Ouverture sans photo */
.ouverture--texte { padding-top: calc(var(--entete) + env(safe-area-inset-top, 0px)); }
.ouverture--texte .ouverture__contenu { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(40px, 5vw, 72px); }
.ouverture--texte .ouverture__contenu > * { max-width: 44rem; }

/* --------------------------------------------------------------- Scène : bande sombre, photo plein cadre, texte en bas à gauche */
.scene { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(440px, 68svh, 760px); }
.scene--basse { min-height: clamp(340px, 48svh, 520px); }
.scene__fond, .scene__voile { position: absolute; inset: 0; }
.scene__fond { z-index: -2; }
.scene__fond img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.74); }
.scene__voile { z-index: -1; background: linear-gradient(0deg, rgb(var(--nuit-rgb) / 0.88) 0%, rgb(var(--nuit-rgb) / 0.12) 62%), linear-gradient(90deg, rgb(var(--nuit-rgb) / 0.62) 0%, rgb(var(--nuit-rgb) / 0.08) 66%); }
.scene__contenu { width: 100%; padding-block: clamp(44px, 6.4vw, 92px); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.scene__contenu .titre { max-width: 15em; }
.scene__legende { position: absolute; right: max(var(--gouttiere), env(safe-area-inset-right, 0px)); top: clamp(20px, 3vw, 36px); font-family: var(--f-mono); font-size: var(--t-mini); letter-spacing: var(--mono-interlettrage); text-transform: uppercase; color: var(--texte); }

/* --------------------------------------------------------------- Colonnes à filet (triptyque, quadriptyque) */
.colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px) clamp(28px, 4vw, 64px); }
.colonnes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.colonnes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.colonnes > * { border-top: 1px solid var(--filet); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.colonnes p { color: var(--texte); }
.repere { font-family: var(--f-mono); font-size: var(--t-mini); font-weight: var(--mono-graisse); letter-spacing: var(--mono-interlettrage); text-transform: uppercase; line-height: 1.3; color: var(--accent-texte); }
.repere--mono { color: var(--texte-2); }
@media (max-width: 1080px) { .colonnes--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .colonnes, .colonnes--2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .colonnes--4 { grid-template-columns: 1fr; } }

/* Liste à petites puces carrées rouges */
.puces { display: flex; flex-direction: column; gap: 9px; font-size: var(--t-petit); color: var(--texte); }
.puces li { position: relative; padding-left: 18px; }
.puces li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; background: var(--accent); }
.puces--coches li::before { width: 9px; height: 5px; background: none; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); top: 0.48em; }
.puces--croix li::before { content: "×"; background: none; width: auto; height: auto; top: -0.08em; left: 0; color: var(--texte-2); font-size: 1.1em; line-height: 1.5; }

/* --------------------------------------------------------------- Panneau « interface » (exemples illustratifs du produit) */
.panneau { background: var(--surface); border: 1px solid var(--filet); color: var(--texte); font-size: 0.875rem; line-height: 1.5; min-width: 0; }
.panneau__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 16px 20px; border-bottom: 1px solid var(--filet); }
.panneau__tete strong { font-size: 0.9375rem; }
.panneau__tete .mono { color: var(--texte-2); font-size: 0.75rem; }
.panneau__corps { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.panneau__pied { padding: 11px 20px; border-top: 1px solid var(--filet); text-align: right; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-2); }
.panneau__lignes > li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 13px 20px; border-bottom: 1px solid var(--filet); }
.panneau__lignes > li:last-child { border-bottom: 0; }
.panneau__lignes .pousse { margin-left: auto; }
.panneau__lignes small, .panneau small { display: block; font-size: 0.75rem; color: var(--texte-2); }
.fichier { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--encre); }
.fichier::before { content: ""; flex: none; width: 11px; height: 14px; border: 1.5px solid var(--texte-2); border-radius: 1px; background: linear-gradient(225deg, var(--texte-2) 0 4px, transparent 4px); }

.pastille { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border: 1px solid var(--filet-fort); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em; color: var(--texte); white-space: nowrap; }
.pastille--accent { background: var(--accent-pale); border-color: transparent; color: var(--accent-texte); }
.pastille--pleine { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.pastille--mono { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2); border-color: var(--filet); }
.source { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; background: var(--papier-3); font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.03em; color: var(--texte); white-space: nowrap; }
.source::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.sources { display: flex; flex-wrap: wrap; gap: 8px; }

/* Annotation « au stylo rouge » */
.annotation { font-family: var(--f-main); font-weight: 700; font-size: 1.625rem; line-height: 1; color: var(--accent); }

/* Définitions en grille (synthèses) */
.fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.fiche dt { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2); margin-bottom: 3px; }
.fiche dd { color: var(--encre); font-size: 0.9375rem; }
.fiche--1 { grid-template-columns: 1fr; }

/* Bulle question / réponse (assistant) */
.echange { display: flex; flex-direction: column; gap: 12px; }
.echange__question { align-self: flex-end; max-width: 85%; padding: 10px 14px; background: var(--encre); color: var(--papier); font-weight: 400; }
.echange__reponse { align-self: flex-start; max-width: 92%; padding: 12px 14px; border: 1px solid var(--filet); color: var(--texte); display: flex; flex-direction: column; gap: 10px; }

/* Tableau compact */
.tableau { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.tableau th { text-align: left; font-family: var(--f-mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2); padding: 10px 20px; border-bottom: 1px solid var(--filet); }
.tableau td { padding: 12px 20px; border-bottom: 1px solid var(--filet); color: var(--texte); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau td:first-child { color: var(--encre); }
.defile-x { overflow-x: auto; }

/* --------------------------------------------------------------- Liste de liens (questions) */
.liste-liens > li { border-top: 1px solid var(--filet); }
.liste-liens > li:last-child { border-bottom: 1px solid var(--filet); }
.liste-liens a { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding-block: 22px; font-size: var(--t-h3); font-weight: 700; line-height: 1.25; color: var(--encre); transition: padding-left 0.5s var(--ease-lent); }
.liste-liens a .mono { color: var(--texte-2); font-size: 0.75rem; }
.liste-liens a .fleche { color: var(--texte-2); transition: transform 0.5s var(--ease-lent), color 0.25s var(--ease); }
.liste-liens a:hover, .liste-liens a:focus-visible { padding-left: 14px; }
.liste-liens a:hover .fleche, .liste-liens a:focus-visible .fleche { color: var(--accent); transform: translateX(6px); }

/* --------------------------------------------------------------- Accordéon (<details>) */
.accordeon > details { border-top: 1px solid var(--filet); }
.accordeon > details:last-of-type { border-bottom: 1px solid var(--filet); }
.accordeon summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding-block: 24px; font-size: var(--t-h3); font-weight: 700; line-height: 1.25; color: var(--encre); }
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary .mono { color: var(--texte-2); font-size: 0.75rem; }
.accordeon summary .signe { position: relative; width: 18px; height: 18px; align-self: center; flex: none; }
.accordeon summary .signe::before, .accordeon summary .signe::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease-lent), background-color 0.25s var(--ease); }
.accordeon summary .signe::after { transform: rotate(90deg); }
.accordeon details[open] summary .signe::after { transform: rotate(0deg); }
.accordeon details[open] summary .signe::before, .accordeon details[open] summary .signe::after { background: var(--accent); }
.accordeon summary:hover .mono { color: var(--encre); }
.accordeon__corps { padding: 0 0 36px calc(2.4em + 14px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(28px, 4vw, 64px); align-items: start; }
.accordeon__corps--simple { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
@media (max-width: 900px) { .accordeon__corps { grid-template-columns: minmax(0, 1fr); padding-left: 0; } }

/* --------------------------------------------------------------- Scène finale : le logotype en fenêtre */
/* Le logotype est dans le flux, au-dessus du titre : ses marges automatiques le centrent dans la place libre, et la bande
   s'allonge plutôt que de laisser le logotype passer sous le titre (écrans larges mais peu hauts). */
.fin { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(480px, 76svh, 800px); padding-top: clamp(36px, 5vw, 72px); }
.fin__fond { position: absolute; inset: 0; z-index: -3; }
.fin__fond img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; filter: brightness(0.62); }   /* le haut de la photo (ciel) derrière le logotype, les grues en dessous */
.fin__fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(var(--nuit-rgb) / 0.9) 0%, rgb(var(--nuit-rgb) / 0.35) 60%, rgb(var(--nuit-rgb) / 0.45) 100%); }
.fin .fenetre--logo { position: relative; z-index: -2; flex: none; width: min(calc(100% - 2 * var(--gouttiere)), 1560px); aspect-ratio: 557.7 / 114.3; margin: auto; }
.fin .fenetre__plan img { object-position: 50% 80%; filter: contrast(1.12); }
.fin__contenu { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; padding-block: clamp(44px, 6.4vw, 88px); }
@media (max-width: 760px) { .fin .fenetre--logo { width: calc(100% - 2 * var(--gouttiere)); } }

/* --------------------------------------------------------------- Formulaires */
.champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.champ label, .champ legend, .groupe-radio legend { font-size: var(--t-petit); font-weight: 500; color: var(--encre); padding: 0; }
.champ .facultatif, .groupe-radio .facultatif { color: var(--texte-2); font-weight: 400; }
.champ .requis { color: var(--accent-texte); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; background: var(--surface); color: var(--encre);
  border: 1px solid var(--filet-fort); border-radius: 0; font-size: 1rem; font-weight: 400;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.champ textarea { min-height: 132px; resize: vertical; line-height: 1.45; }
.champ select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.champ select option { background: var(--surface); color: var(--encre); }
.champ input::placeholder, .champ textarea::placeholder { color: var(--texte-2); opacity: 1; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--encre); }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--encre); }
.champ [aria-invalid="true"] { border-color: var(--accent-texte); }
.champ__erreur { font-size: 0.8125rem; color: var(--accent-texte); }
.groupe-radio { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border: 1px solid var(--filet-fort); font-size: var(--t-petit); color: var(--texte); cursor: pointer; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease); }
.radios input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radios label:hover { border-color: var(--encre); color: var(--encre); }
.radios label:has(input:checked) { background: var(--encre); border-color: var(--encre); color: var(--papier); font-weight: 500; }
.radios label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- Divers */
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.deux-colonnes--egales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deux-colonnes--inverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.collant { position: sticky; top: calc(var(--entete) + 28px); }
@media (max-width: 900px) { .deux-colonnes, .deux-colonnes--egales, .deux-colonnes--inverse { grid-template-columns: minmax(0, 1fr); } .collant { position: static; } }
.encart { border: 1px solid var(--filet); padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.encart--note { flex-direction: row; align-items: flex-start; gap: 16px; }
.encart--note::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 0.6em; }
.chiffre { font-family: var(--f-titre); font-weight: var(--titre-graisse); font-stretch: var(--titre-etirement); font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); line-height: 1; color: var(--encre); letter-spacing: var(--titre-interlettrage); font-variant-numeric: tabular-nums; }
.symbole { width: 100%; height: auto; --rouge: var(--logo-point); }

/* ---- 04-accueil.css ---- */
/* ==========================================================================
   Page d'accueil
   ========================================================================== */

/* --------------------------------------------------------------- Le constat : titre à gauche, photo + dossier à droite */
.constat__tete { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: center; margin-bottom: clamp(56px, 7vw, 104px); }
.constat__visuel { position: relative; padding: 0 0 clamp(40px, 5vw, 72px) clamp(0px, 6vw, 96px); }
.constat__photo { aspect-ratio: 5 / 4; }
.constat__photo img { object-position: 50% 50%; }
.dossier { position: absolute; left: 0; bottom: 0; width: min(100%, 440px); margin: 0; box-shadow: 0 26px 50px -30px rgb(0 0 0 / 0.42); }
.dossier__note { display: flex; align-items: flex-end; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--filet); }
.dossier__note svg { flex: none; width: 40px; height: 26px; margin-bottom: 4px; }
.dossier__note svg { color: var(--accent); }
.dossier__note .note-main { font-size: 1.625rem; transform-origin: left bottom; }
@media (max-width: 900px) {
  .constat__tete { grid-template-columns: minmax(0, 1fr); }
  .constat__visuel { padding: 0 0 0 0; display: flex; flex-direction: column; }
  .constat__photo { aspect-ratio: 16 / 10; }
  .dossier { position: relative; width: auto; margin: -72px 16px 0; }
}

/* --------------------------------------------------------------- Ce que ça change */
.benefices__titre { margin-bottom: clamp(28px, 3.5vw, 44px); }

/* --------------------------------------------------------------- Quatre étapes
   Chaque étape est une sous-grille de cinq rangées (photo, repère, titre, résumé, liste) :
   les rangées s'alignent d'une colonne à l'autre quelle que soit la longueur des textes. */
.etapes__grille { --ecart: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 28px); margin-bottom: calc(-1 * var(--ecart)); }
.etape { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-bottom: var(--ecart); }
@supports (grid-template-rows: subgrid) {
  .etape { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 12px; }
}
.etape__photo { margin-bottom: 14px; }
.etape .repere--mono { color: var(--texte-2); }
.etape .puces { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--filet); align-self: start; width: 100%; }
@media (max-width: 1080px) { .etapes__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .etapes__grille { grid-template-columns: minmax(0, 1fr); } .etape__photo { aspect-ratio: 3 / 2; } }

/* --------------------------------------------------------------- Pour qui : la liste commande la photo */
.publics { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.publics__cadre { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--entete) - 56px); width: 100%; }
.publics__cadre img { position: absolute; inset: 0; opacity: 0; transform: scale(1.05); transition: opacity 0.8s var(--ease), transform 1.8s var(--ease-lent); }
.publics__cadre img.est-active { opacity: 1; transform: none; }
.publics__texte { display: flex; flex-direction: column; gap: clamp(36px, 4.5vw, 64px); min-width: 0; }
.public { position: relative; border-top: 1px solid var(--filet); padding-block: 26px 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.4s var(--ease); }
.public:last-child { border-bottom: 1px solid var(--filet); }
.public__tete { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
.public__nom { font-family: var(--f-titre); font-weight: var(--titre-graisse); font-stretch: var(--titre-etirement); letter-spacing: var(--titre-interlettrage); font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem); line-height: 1.05; color: var(--encre); transition: transform 0.6s var(--ease-lent); }
.public__rang { color: var(--accent-texte); font-weight: 500; }
.public__metiers { color: var(--texte-2); font-size: 0.75rem; letter-spacing: 0.04em; }
.public__texte { max-width: 32rem; }
.public__photo { display: none; }
@media (hover: hover) and (min-width: 901px) {
  .public::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--encre); transition: width 0.7s var(--ease-lent); }
  .public.est-actif::before { width: 100%; }
  .public.est-actif .public__nom { transform: translateX(10px); }
}
@media (max-width: 900px) {
  .publics { grid-template-columns: minmax(0, 1fr); }
  .publics__visuel { display: none; }
  .public__photo { display: block; margin-bottom: 10px; }
}

/* --------------------------------------------------------------- Vos enjeux : une ligne d'horizon, puis les questions */
.horizon { position: relative; height: clamp(200px, 34vw, 540px); overflow: hidden; background: var(--papier-2); }
.horizon img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.questions__grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 5vw, 72px); padding-bottom: var(--section); }
.questions__texte { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(24px, 3vw, 36px); min-width: 0; }
@media (max-width: 900px) { .questions__grille { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- Ouverture de l'accueil : le logotype se monte
   Les lettres du logotype servent de fenêtre sur la photo dense (comme dans la bande finale), en grand, sur la photo claire ;
   le X reste à l'encre, son point en couleur d'accent.
   Dessous : l'accroche seule (le début en couleur d'accent), puis l'action.
   À l'ouverture du site, il se monte lettre par lettre : B, u, i, l, d, e montent derrière la ligne de base,
   les quatre barres du X glissent vers le centre, le point rouge se pose en dernier ; l'accroche et les boutons suivent.
   C'est le geste prévu par la charte (buildex-brand, « Mouvement ») : le logo se construit barre par barre, le point
   rouge se pose en dernier, mouvements courts et nets, sans rebond.
   Le montage est piloté par le petit script en tête de page (une fois par visite, au moment où la page est
   réellement vue) : sans script, tout est en place et visible.
   Durées : 0,35 à 0,6 s par élément, environ 2 s en tout (ouverture d'un site vitrine, plus longue qu'une transition d'interface). */
.ouverture--marque .ouverture__contenu { padding-top: calc(var(--entete) + env(safe-area-inset-top, 0px) + 28px); padding-bottom: clamp(40px, 5.6vw, 84px); gap: clamp(20px, 2.5vw, 36px); }
.ouverture--marque .ouverture__contenu > * { max-width: none; }
.ouverture--marque .ouverture__voile { z-index: -1; background:
  linear-gradient(90deg, rgb(var(--papier-rgb) / 0.9) 0%, rgb(var(--papier-rgb) / 0.55) 20%, rgb(var(--papier-rgb) / 0) 46%),
  linear-gradient(180deg, rgb(var(--papier-rgb) / 0.75) 0%, rgb(var(--papier-rgb) / 0.22) 14%, rgb(var(--papier-rgb) / 0.3) 100%); }
/* le voile clair suit le contenu : il commence juste au-dessus du logotype, quelle que soit la hauteur de l'écran */
.ouverture--marque .ouverture__contenu::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; top: calc(var(--entete) + env(safe-area-inset-top, 0px) - 72px);
  background: linear-gradient(180deg, rgb(var(--papier-rgb) / 0) 0, rgb(var(--papier-rgb) / 0.88) 104px, rgb(var(--papier-rgb) / 0.95) 100%); pointer-events: none; }
.ouverture--marque .titre { max-width: none; font-size: clamp(2rem, 0.9rem + 3.6vw, 4rem); }
.ouverture--marque .titre em { padding: 0; background: none; color: var(--accent); }
.ouverture--marque .actions { margin-top: clamp(0px, 0.6vw, 8px); }

.marque { position: relative; width: min(100%, 1560px); aspect-ratio: 557.7 / 101.1; pointer-events: none; }
.marque__lettre { position: absolute; top: 0; height: 100%; overflow: hidden; }
.marque__corps { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--encre);
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.marque__barre { position: absolute; background: var(--logo-encre); }
.marque img { position: absolute; max-width: none; height: auto; filter: contrast(1.1) brightness(0.86); }
.marque__point { position: absolute; aspect-ratio: 1; border-radius: 50%; background: var(--logo-point); transform: translate(-50%, -50%); }
.marque__lettre--b { left: 3.228%; width: 18.962%; --rang: 0; }
.marque__lettre--b .marque__corps { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='6%20-97.1%20105.75%20101.1'%20preserveAspectRatio='none'%3E%3Cpath%20d='M10.48%200V-85.26H80.57Q87.5%20-85.26%2093.11%20-82.59Q98.71%20-79.92%20101.98%20-75.21Q105.25%20-70.5%20105.25%20-64.24Q105.25%20-58.67%20103.26%20-54.7Q101.26%20-50.73%2097.9%20-48.27Q94.54%20-45.8%2090.43%20-44.57V-44.08Q95.22%20-43.08%2099.07%20-40.5Q102.92%20-37.91%20105.16%20-33.6Q107.41%20-29.29%20107.41%20-23.03Q107.41%20-15.7%20103.87%20-10.56Q100.34%20-5.42%2094.35%20-2.71Q88.36%200%2080.97%200ZM35.73%20-17.97H72.55Q76.51%20-17.97%2079.02%20-20.13Q81.52%20-22.3%2081.52%20-26.77Q81.52%20-29.13%2080.44%20-31.01Q79.36%20-32.9%2077.27%20-33.94Q75.18%20-34.98%2072.21%20-34.98H35.73ZM35.73%20-51.57H70.45Q73.33%20-51.57%2075.31%20-52.61Q77.28%20-53.66%2078.36%20-55.55Q79.43%20-57.45%2079.43%20-60.02Q79.43%20-63.65%2076.98%20-65.77Q74.53%20-67.89%2070.79%20-67.89H35.73Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='6%20-97.1%20105.75%20101.1'%20preserveAspectRatio='none'%3E%3Cpath%20d='M10.48%200V-85.26H80.57Q87.5%20-85.26%2093.11%20-82.59Q98.71%20-79.92%20101.98%20-75.21Q105.25%20-70.5%20105.25%20-64.24Q105.25%20-58.67%20103.26%20-54.7Q101.26%20-50.73%2097.9%20-48.27Q94.54%20-45.8%2090.43%20-44.57V-44.08Q95.22%20-43.08%2099.07%20-40.5Q102.92%20-37.91%20105.16%20-33.6Q107.41%20-29.29%20107.41%20-23.03Q107.41%20-15.7%20103.87%20-10.56Q100.34%20-5.42%2094.35%20-2.71Q88.36%200%2080.97%200ZM35.73%20-17.97H72.55Q76.51%20-17.97%2079.02%20-20.13Q81.52%20-22.3%2081.52%20-26.77Q81.52%20-29.13%2080.44%20-31.01Q79.36%20-32.9%2077.27%20-33.94Q75.18%20-34.98%2072.21%20-34.98H35.73ZM35.73%20-51.57H70.45Q73.33%20-51.57%2075.31%20-52.61Q77.28%20-53.66%2078.36%20-55.55Q79.43%20-57.45%2079.43%20-60.02Q79.43%20-63.65%2076.98%20-65.77Q74.53%20-67.89%2070.79%20-67.89H35.73Z'/%3E%3C/svg%3E"); }
.marque__lettre--b img { width: 527.38%; left: -17.02%; top: -225.3%; }
.marque__lettre--u { left: 22.189%; width: 15.727%; --rang: 1; }
.marque__lettre--u .marque__corps { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='111.75%20-97.1%2087.71%20101.1'%20preserveAspectRatio='none'%3E%3Cpath%20d='M144.7%201.49Q130.52%201.49%20123.31%20-5.36Q116.1%20-12.22%20116.1%20-25.93V-65.42H139.01V-29.11Q139.01%20-25.77%20139.95%20-23.2Q140.9%20-20.62%20142.7%20-18.95Q144.5%20-17.28%20147.16%20-16.44Q149.83%20-15.59%20153.21%20-15.59Q158.13%20-15.59%20162.16%20-17.59Q166.2%20-19.58%20168.6%20-23.15Q171%20-26.71%20171%20-31.3V-65.42H193.91V0H175.36L173.78%20-10.89H172.67Q169.26%20-6.32%20164.68%20-3.63Q160.1%20-0.94%20154.98%200.28Q149.86%201.49%20144.7%201.49Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='111.75%20-97.1%2087.71%20101.1'%20preserveAspectRatio='none'%3E%3Cpath%20d='M144.7%201.49Q130.52%201.49%20123.31%20-5.36Q116.1%20-12.22%20116.1%20-25.93V-65.42H139.01V-29.11Q139.01%20-25.77%20139.95%20-23.2Q140.9%20-20.62%20142.7%20-18.95Q144.5%20-17.28%20147.16%20-16.44Q149.83%20-15.59%20153.21%20-15.59Q158.13%20-15.59%20162.16%20-17.59Q166.2%20-19.58%20168.6%20-23.15Q171%20-26.71%20171%20-31.3V-65.42H193.91V0H175.36L173.78%20-10.89H172.67Q169.26%20-6.32%20164.68%20-3.63Q160.1%20-0.94%20154.98%200.28Q149.86%201.49%20144.7%201.49Z'/%3E%3C/svg%3E"); }
.marque__lettre--u img { width: 635.85%; left: -141.09%; top: -225.3%; }
.marque__lettre--i { left: 37.916%; width: 6.104%; --rang: 2; }
.marque__lettre--i .marque__corps { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='199.46%20-97.1%2034.04%20101.1'%20preserveAspectRatio='none'%3E%3Cpath%20d='M205.02%20-74.46V-89.84H227.93V-74.46ZM205.02%200V-65.42H227.93V0Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='199.46%20-97.1%2034.04%20101.1'%20preserveAspectRatio='none'%3E%3Cpath%20d='M205.02%20-74.46V-89.84H227.93V-74.46ZM205.02%200V-65.42H227.93V0Z'/%3E%3C/svg%3E"); }
.marque__lettre--i img { width: 1638.37%; left: -621.21%; top: -225.3%; }
.marque__lettre--l { left: 44.02%; width: 5.856%; --rang: 3; }
.marque__lettre--l .marque__corps { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='233.5%20-97.1%2032.66%20101.1'%20preserveAspectRatio='none'%3E%3Cpath%20d='M239.08%200V-89.84H261.99V0Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='233.5%20-97.1%2032.66%20101.1'%20preserveAspectRatio='none'%3E%3Cpath%20d='M239.08%200V-89.84H261.99V0Z'/%3E%3C/svg%3E"); }
.marque__lettre--l img { width: 1707.59%; left: -751.68%; top: -225.3%; }
.marque__lettre--d { left: 49.876%; width: 16.113%; --rang: 4; }
.marque__lettre--d .marque__corps { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='266.16%20-97.1%2089.86%20101.1'%20preserveAspectRatio='none'%3E%3Cpath%20d='M304.69%201.49Q294.72%201.49%20286.98%20-2.2Q279.25%20-5.88%20274.79%20-13.48Q270.33%20-21.07%20270.33%20-32.68Q270.33%20-44.4%20274.76%20-51.97Q279.19%20-59.53%20286.82%20-63.22Q294.44%20-66.9%20304.18%20-66.9Q308.51%20-66.9%20312.95%20-65.96Q317.4%20-65.01%20321.31%20-62.97Q325.22%20-60.94%20327.95%20-57.71H328.95V-89.84H351.86V0H333.31L331.48%20-10.22H330.42Q325.57%20-3.71%20318.89%20-1.11Q312.22%201.49%20304.69%201.49ZM311.32%20-15.59Q317.23%20-15.59%20321.18%20-17.69Q325.12%20-19.79%20327.1%20-23.56Q329.07%20-27.33%20329.07%20-32.25V-33.11Q329.07%20-36.88%20327.95%20-39.93Q326.83%20-42.99%20324.57%20-45.17Q322.32%20-47.35%20318.98%20-48.59Q315.64%20-49.82%20311.21%20-49.82Q305.41%20-49.82%20301.49%20-47.76Q297.57%20-45.7%20295.59%20-42.12Q293.61%20-38.53%20293.61%20-33.74V-31.68Q293.61%20-26.88%20295.62%20-23.24Q297.63%20-19.59%20301.55%20-17.59Q305.47%20-15.59%20311.32%20-15.59Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='266.16%20-97.1%2089.86%20101.1'%20preserveAspectRatio='none'%3E%3Cpath%20d='M304.69%201.49Q294.72%201.49%20286.98%20-2.2Q279.25%20-5.88%20274.79%20-13.48Q270.33%20-21.07%20270.33%20-32.68Q270.33%20-44.4%20274.76%20-51.97Q279.19%20-59.53%20286.82%20-63.22Q294.44%20-66.9%20304.18%20-66.9Q308.51%20-66.9%20312.95%20-65.96Q317.4%20-65.01%20321.31%20-62.97Q325.22%20-60.94%20327.95%20-57.71H328.95V-89.84H351.86V0H333.31L331.48%20-10.22H330.42Q325.57%20-3.71%20318.89%20-1.11Q312.22%201.49%20304.69%201.49ZM311.32%20-15.59Q317.23%20-15.59%20321.18%20-17.69Q325.12%20-19.79%20327.1%20-23.56Q329.07%20-27.33%20329.07%20-32.25V-33.11Q329.07%20-36.88%20327.95%20-39.93Q326.83%20-42.99%20324.57%20-45.17Q322.32%20-47.35%20318.98%20-48.59Q315.64%20-49.82%20311.21%20-49.82Q305.41%20-49.82%20301.49%20-47.76Q297.57%20-45.7%20295.59%20-42.12Q293.61%20-38.53%20293.61%20-33.74V-31.68Q293.61%20-26.88%20295.62%20-23.24Q297.63%20-19.59%20301.55%20-17.59Q305.47%20-15.59%20311.32%20-15.59Z'/%3E%3C/svg%3E"); }
.marque__lettre--d img { width: 620.63%; left: -309.55%; top: -225.3%; }
.marque__lettre--e { left: 65.989%; width: 16.833%; --rang: 5; }
.marque__lettre--e .marque__corps { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='356.02%20-97.1%2093.88%20101.1'%20preserveAspectRatio='none'%3E%3Cpath%20d='M404.36%201.49Q390.97%201.49%20381.05%20-2.14Q371.12%20-5.76%20365.66%20-13.36Q360.19%20-20.96%20360.19%20-32.68Q360.19%20-44.15%20365.57%20-51.78Q370.94%20-59.41%20380.67%20-63.16Q390.39%20-66.9%20403.4%20-66.9Q417.03%20-66.9%20426.67%20-63.22Q436.31%20-59.54%20441.38%20-52.12Q446.45%20-44.7%20446.45%20-33.47V-28.19H384.17Q384.47%20-22.93%20386.95%20-19.57Q389.43%20-16.22%20393.97%20-14.67Q398.51%20-13.13%20404.72%20-13.13Q407.99%20-13.13%20411.13%20-13.82Q414.27%20-14.5%20416.79%20-15.78Q419.31%20-17.05%20420.87%20-18.86Q422.43%20-20.67%20422.6%20-22.97H446.16Q446.16%20-17.34%20443.08%20-12.8Q439.99%20-8.26%20434.39%20-5.08Q428.79%20-1.9%20421.13%20-0.2Q413.47%201.49%20404.36%201.49ZM384.24%20-40.28H422.01Q422.01%20-43.06%20420.71%20-45.26Q419.41%20-47.46%20417%20-49.04Q414.6%20-50.61%20411.33%20-51.45Q408.06%20-52.29%20404.19%20-52.29Q398.34%20-52.29%20394.08%20-50.81Q389.82%20-49.32%20387.34%20-46.59Q384.86%20-43.86%20384.24%20-40.28Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='356.02%20-97.1%2093.88%20101.1'%20preserveAspectRatio='none'%3E%3Cpath%20d='M404.36%201.49Q390.97%201.49%20381.05%20-2.14Q371.12%20-5.76%20365.66%20-13.36Q360.19%20-20.96%20360.19%20-32.68Q360.19%20-44.15%20365.57%20-51.78Q370.94%20-59.41%20380.67%20-63.16Q390.39%20-66.9%20403.4%20-66.9Q417.03%20-66.9%20426.67%20-63.22Q436.31%20-59.54%20441.38%20-52.12Q446.45%20-44.7%20446.45%20-33.47V-28.19H384.17Q384.47%20-22.93%20386.95%20-19.57Q389.43%20-16.22%20393.97%20-14.67Q398.51%20-13.13%20404.72%20-13.13Q407.99%20-13.13%20411.13%20-13.82Q414.27%20-14.5%20416.79%20-15.78Q419.31%20-17.05%20420.87%20-18.86Q422.43%20-20.67%20422.6%20-22.97H446.16Q446.16%20-17.34%20443.08%20-12.8Q439.99%20-8.26%20434.39%20-5.08Q428.79%20-1.9%20421.13%20-0.2Q413.47%201.49%20404.36%201.49ZM384.24%20-40.28H422.01Q422.01%20-43.06%20420.71%20-45.26Q419.41%20-47.46%20417%20-49.04Q414.6%20-50.61%20411.33%20-51.45Q408.06%20-52.29%20404.19%20-52.29Q398.34%20-52.29%20394.08%20-50.81Q389.82%20-49.32%20387.34%20-46.59Q384.86%20-43.86%20384.24%20-40.28Z'/%3E%3C/svg%3E"); }
.marque__lettre--e img { width: 594.06%; left: -392.01%; top: -225.3%; }
.marque__barre--1 { left: 83.478%; top: 25.692%; width: 6.623%; height: 35.511%; -webkit-clip-path: polygon(1.62% 38.02%, 66.41% 98.33%, 98.38% 61.98%, 33.59% 1.67%); clip-path: polygon(1.62% 38.02%, 66.41% 98.33%, 98.38% 61.98%, 33.59% 1.67%); --dx: -92.3%; --dy: -86%; --rang: 0; }
.marque__barre--2 { left: 91.237%; top: 64.416%; width: 6.623%; height: 35.511%; -webkit-clip-path: polygon(1.62% 38.02%, 66.41% 98.33%, 98.38% 61.98%, 33.59% 1.67%); clip-path: polygon(1.62% 38.02%, 66.41% 98.33%, 98.38% 61.98%, 33.59% 1.67%); --dx: 92.3%; --dy: 86%; --rang: 1; }
.marque__barre--3 { left: 91.237%; top: 25.692%; width: 6.623%; height: 35.511%; -webkit-clip-path: polygon(66.41% 1.67%, 1.62% 61.98%, 33.59% 98.33%, 98.38% 38.02%); clip-path: polygon(66.41% 1.67%, 1.62% 61.98%, 33.59% 98.33%, 98.38% 38.02%); --dx: 92.3%; --dy: -86%; --rang: 2; }
.marque__barre--4 { left: 83.478%; top: 64.416%; width: 6.623%; height: 35.511%; -webkit-clip-path: polygon(66.41% 1.67%, 1.62% 61.98%, 33.59% 98.33%, 98.38% 38.02%); clip-path: polygon(66.41% 1.67%, 1.62% 61.98%, 33.59% 98.33%, 98.38% 38.02%); --dx: -92.3%; --dy: 86%; --rang: 3; }
.marque__point { left: 90.669%; top: 62.809%; width: 2.869%; }
@media (max-width: 980px) {
  .ouverture--marque .ouverture__contenu { padding-top: calc(var(--entete) + env(safe-area-inset-top, 0px) + 20px); gap: 20px; }
  .ouverture--marque .ouverture__voile { background:
    linear-gradient(180deg, rgb(var(--papier-rgb) / 0.8) 0%, rgb(var(--papier-rgb) / 0.25) 16%, rgb(var(--papier-rgb) / 0.32) 100%); }
}
@media (max-width: 560px) {
  .ouverture--marque .ouverture__contenu { gap: 18px; }
  .ouverture--marque .actions { width: 100%; }
  .ouverture--marque .actions .bouton { flex: 1 1 auto; }
}

/* Le montage.
   « ouverture-attente » : avant le montage, le logotype, l'accroche et les boutons sont masqués (classe posée avant le premier affichage).
   « ouverture-joue » : le montage se déroule ; il part au moment où la page est réellement vue.
   « ouverture-douce » : l'utilisateur a demandé moins d'animations ; les éléments apparaissent en fondu, sur place. */
.ouverture-attente .marque__corps { transform: translate3d(0, 104%, 0); }
.ouverture-attente .marque__barre, .ouverture-attente .marque__point,
.ouverture-attente .ouverture--marque .titre, .ouverture-attente .ouverture--marque .actions { opacity: 0; }
.ouverture-joue .marque__corps { animation: marque-lettre 0.6s var(--ease-lent) both; animation-delay: calc(0.15s + var(--rang) * 0.09s); }
.ouverture-joue .marque__barre { animation: marque-barre 0.5s var(--ease-lent) both; animation-delay: calc(0.8s + var(--rang) * 0.07s); }
.ouverture-joue .marque__point { animation: marque-point 0.35s var(--ease-lent) 1.36s both; }
.ouverture-joue .ouverture--marque .titre { animation: marque-suite 0.6s var(--ease-lent) 1.46s both; }
.ouverture-joue .ouverture--marque .actions { animation: marque-suite 0.6s var(--ease-lent) 1.58s both; }
@keyframes marque-lettre { from { transform: translate3d(0, 104%, 0); } to { transform: none; } }
@keyframes marque-barre { from { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes marque-point { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes marque-suite { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
/* Animations réduites : mêmes instants, mais un simple fondu de 0,15 s, sans aucun déplacement */
.ouverture-douce.ouverture-attente .marque__corps { transform: none; opacity: 0; }
.ouverture-douce.ouverture-joue .marque__corps, .ouverture-douce.ouverture-joue .marque__barre, .ouverture-douce.ouverture-joue .marque__point,
.ouverture-douce.ouverture-joue .ouverture--marque .titre, .ouverture-douce.ouverture-joue .ouverture--marque .actions { animation-name: marque-fondu; animation-duration: 0.15s !important; animation-timing-function: linear; }
@keyframes marque-fondu { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------- Le concept, version courte
   L'accueil tient en cinq temps : l'ouverture ; ce qu'est BUILDEX (une phrase, pour qui, la démonstration de l'application) ;
   la promesse (scène) ; les sept étapes du process ; l'appel final.
   Le reste (constat détaillé, bénéfices, publics en liste, questions) a quitté cette page. */
.concept { padding-top: clamp(48px, 6vw, 96px); }
.concept .constat__tete { margin-bottom: 0; }
.concept__texte .chapo { max-width: 32rem; }
.concept__public { max-width: 32rem; font-size: var(--t-petit); line-height: 1.55; color: var(--texte-2); }

/* --------------------------------------------------------------- Comment ça marche : les sept étapes du process, en frise
   Une frise ondulée, de gauche à droite : une bulle par étape, posée sur un fil en pointillés. Le tronçon rouge (étapes
   2 à 5) est le fil rouge des exigences, légendé sous la carte ; la pastille rouge marque les trois étapes que vous
   validez. Un clic sur une bulle (ou les flèches) affiche ce qui s'y passe dans la carte en dessous : la bulle passe à
   l'encre, un disque blanc glisse sous elle et le bec de la carte la suit.
   Chaque bulle porte sa position : --x (0 à 1, sur la largeur) et --y (0 à 1, sur la hauteur de la vague) ; le tracé
   SVG (viewBox 1000 × 100, étiré sur la largeur) passe par les mêmes points. Sans script, toutes les descriptions
   restent affichées à la suite. */
.etapes--process .tete-section .chapo { max-width: 36rem; }
.frise-bloc {
  --frise-h: 140px;          /* hauteur de la vague */
  --frise-bulle: 60px;
  --frise-halo: 104px;
  --frise-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --frise-x: 0.0714;         /* étape affichée (posée par le script) */
  --frise-y: 0.5;
  padding: clamp(36px, 5.5vw, 80px) clamp(20px, 4.5vw, 64px) clamp(28px, 3.5vw, 48px);
  border-radius: 36px;
  background: var(--papier-2);
}
.frise-bloc .tete-section { margin-bottom: 0; }

/* lien de la tête de section, en pilule */
.lien--pilule {
  gap: 12px; padding: 13px 20px 13px 24px; border: 1px solid var(--encre); border-radius: 999px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lien--pilule::before { display: none; }
.lien--pilule .fleche { transition: transform 0.25s var(--ease); }
.lien--pilule:hover, .lien--pilule:focus-visible { background: var(--encre); color: var(--papier); }
.lien--pilule:hover .fleche, .lien--pilule:focus-visible .fleche { transform: translateX(3px); }

/* la vague */
.frise__piste { position: relative; height: calc(var(--frise-h) + 76px); margin-top: clamp(44px, 5vw, 64px); }
.frise__vague {
  position: absolute; inset: 0 0 auto 0; width: 100%; height: var(--frise-h); overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.frise__vague path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.frise__trace { stroke: var(--texte-3); stroke-width: 2; stroke-dasharray: 1 7; }
.frise__fil { stroke: var(--accent); stroke-width: 3; clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--frise-ease) 0.35s; }
.anime .frise__piste:not(.est-visible) .frise__fil { clip-path: inset(0 100% 0 0); }   /* le fil rouge se dessine à l'apparition */

/* disque blanc qui glisse sous l'étape affichée */
.frise__halo {
  position: absolute; left: calc(var(--frise-x) * 100%); top: calc(var(--frise-y) * var(--frise-h));
  width: var(--frise-halo); height: var(--frise-halo);
  margin: calc(var(--frise-halo) / -2) 0 0 calc(var(--frise-halo) / -2);
  border-radius: 50%; background: var(--surface);
  box-shadow: 0 18px 40px -18px rgb(var(--nuit-rgb) / 0.3);
  transition: left 0.55s var(--frise-ease), top 0.55s var(--frise-ease);
}

/* les bulles */
.frise__onglets { position: absolute; inset: 0; }
.frise__onglet {
  position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * var(--frise-h));
  transform: translate(-50%, calc(var(--frise-bulle) / -2));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--texte-2); text-align: center; -webkit-tap-highlight-color: transparent;
}
.frise__bulle {
  position: relative; display: grid; place-items: center;
  width: var(--frise-bulle); height: var(--frise-bulle);
  border: 1px solid var(--filet); border-radius: 50%; background: var(--surface);
  font-family: var(--f-titre); font-weight: var(--titre-graisse); font-stretch: var(--titre-etirement);
  font-size: 1.25rem; line-height: 1; color: var(--encre); font-variant-numeric: tabular-nums;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s var(--ease);
}
.frise__nom { width: 14ch; font-size: 0.875rem; font-weight: 500; line-height: 1.35; transition: color 0.25s var(--ease); }
.frise__onglet:hover .frise__bulle {
  transform: translateY(-3px); border-color: var(--filet-fort);
  box-shadow: 0 10px 20px -12px rgb(var(--nuit-rgb) / 0.4);
}
.frise__onglet:hover .frise__nom, .frise__onglet[aria-selected="true"] .frise__nom { color: var(--encre); }
.frise__onglet[aria-selected="true"] .frise__bulle {
  background: var(--encre); border-color: var(--encre); color: var(--papier); transform: scale(1.08); box-shadow: none;
}
.frise__onglet:focus-visible { outline: none; }
.frise__onglet:focus-visible .frise__bulle { outline: 2px solid var(--accent); outline-offset: 5px; }

/* pastille « vous validez » (sur les bulles et dans la légende) */
.frise__coche { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.frise__coche::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 9px; margin: -6px 0 0 -3px;
  border-right: 2px solid var(--sur-accent); border-bottom: 2px solid var(--sur-accent); transform: rotate(40deg);
}
.frise__bulle .frise__coche { position: absolute; top: -4px; right: -6px; box-shadow: 0 0 0 3px var(--papier-2); }

/* la carte de description */
.frise__carte {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px;
  padding: clamp(28px, 3.5vw, 44px); border-radius: 28px; background: var(--surface);
  box-shadow: 0 1px 2px rgb(var(--nuit-rgb) / 0.04), 0 24px 48px -28px rgb(var(--nuit-rgb) / 0.24);
}
.js .frise__carte::before {   /* bec qui pointe vers la bulle affichée */
  content: ""; position: absolute; top: -9px; left: calc(var(--frise-x) * 100%);
  width: 20px; height: 20px; margin-left: -10px; border-radius: 5px 0 0 0;
  background: var(--surface); transform: rotate(45deg);
  transition: left 0.55s var(--frise-ease);
}
.frise__panneaux { display: grid; }
.frise__panneau { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(24px, 3vw, 40px); align-items: start; }
.frise__panneau + .frise__panneau { margin-top: 40px; }
/* avec le script : descriptions superposées (la carte garde sa hauteur), une seule visible, en fondu */
.js .frise__panneau {
  grid-area: 1 / 1; margin-top: 0; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.js .frise__panneau.est-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.4s var(--ease) 0.12s, transform 0.5s var(--ease-lent) 0.12s, visibility 0s;
}
.frise__grand-num {
  min-width: 1.1em; font-family: var(--f-titre); font-weight: var(--titre-graisse); font-stretch: var(--titre-etirement);
  font-size: 6rem; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--filet);
}
.frise__repere {
  margin-bottom: 10px; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: var(--mono-interlettrage);
  text-transform: uppercase; color: var(--texte-2);
}
.frise__titre { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.01em; }
.frise__texte { max-width: 40rem; margin-top: 14px; font-size: 1rem; line-height: 1.65; color: var(--texte); }
.frise__marque {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 9px 16px;
  border: 1px solid var(--filet); border-radius: 999px;
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4;
  color: var(--texte-2);
}
.frise__marque--validation { border-color: var(--accent); background: var(--accent); color: var(--sur-accent); }
.frise__marque--validation::before {
  content: ""; flex: none; width: 5px; height: 9px; margin: -3px 2px 0 1px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(40deg);
}
.frise__marque--validation b { font-weight: 500; }
.frise__marque--validation b::before { content: "· "; }
.frise__marque--retour { transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.frise__marque--retour span { font-family: var(--f-sans); font-size: 1rem; line-height: 1; }
.frise__marque--retour:hover { border-color: var(--encre); color: var(--encre); }

/* flèches précédent / suivant */
.frise__nav { display: flex; gap: 8px; }
.frise__nav button {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--filet); border-radius: 50%; background: var(--surface); color: var(--encre); font-size: 1.125rem;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.frise__nav button:hover:not(:disabled) { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.frise__nav button:disabled { opacity: 0.3; cursor: default; }
html:not(.js) .frise__nav, html:not(.js) .frise__halo { display: none; }

/* pied : le fil rouge et la légende */
.frise__pied {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px;
  margin-top: 32px; font-size: var(--t-petit); line-height: 1.55; color: var(--texte-2);
}
.frise__fil-legende { display: flex; align-items: center; gap: 14px; max-width: 46rem; }
.frise__fil-legende svg { flex: 0 0 30px; width: 30px; height: 12px; color: var(--accent); }
.frise__legende {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
}

@media (max-width: 900px) {
  /* téléphone et tablette : bulles plus petites, sans leur nom (il est repris dans la carte) */
  .frise-bloc { --frise-h: 100px; --frise-bulle: 42px; --frise-halo: 66px; padding-inline: 16px; border-radius: 28px; }
  .frise__piste { height: calc(var(--frise-h) + 28px); }
  .frise__bulle { font-size: 1rem; }
  .frise__bulle .frise__coche { width: 17px; height: 17px; top: -5px; right: -6px; }
  .frise__bulle .frise__coche::before { width: 4px; height: 7px; margin: -5px 0 0 -2.5px; }
  .frise__nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .frise__carte { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 22px; border-radius: 24px; }
  .frise__panneau { grid-template-columns: minmax(0, 1fr); }
  .frise__grand-num { display: none; }
  .frise__titre { font-size: 1.375rem; }
}
@media (max-width: 400px) { .frise-bloc { --frise-bulle: 38px; --frise-halo: 58px; } }
@media (prefers-reduced-motion: reduce) {
  .frise-bloc *, .frise-bloc *::before { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ---- 11-fonctionnement.css ---- */
/* ==========================================================================
   Page « Fonctionnement »
   Une ouverture photographique dont le sommaire forme le socle, quatre chapitres
   (une photo, une fiche technique), deux scènes plein cadre, deux exemples
   illustratifs épinglés sur leurs photos. Tout est préfixé « fonctionnement__ ».
   ========================================================================== */

/* Ancres visées depuis les autres pages : sans script, le titre ne passe pas sous l'en-tête fixe */
.fonctionnement__fonctions, .fonctionnement__livrable, .fonctionnement__capital,
.fonctionnement__garanties, .fonctionnement__questions { scroll-margin-top: var(--entete); }

/* --------------------------------------------------------------- Ouverture : le sommaire sert de socle à la photo */
.fonctionnement__ouverture .ouverture__fond img { object-position: 50% 36%; }
.fonctionnement__ouverture .ouverture__contenu { padding-bottom: clamp(16px, 2vw, 28px); }
.fonctionnement__ouverture .ouverture__contenu > .fonctionnement__sommaire { max-width: none; }
.fonctionnement__ouverture .ouverture__contenu > .chapo { max-width: 36rem; text-wrap: pretty; }

.fonctionnement__sommaire {
  align-self: stretch;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(24px, 3.4vw, 52px);
  margin-top: clamp(8px, 1.8vw, 28px); padding-top: 8px;
  border-top: 1px solid var(--filet);
}
.fonctionnement__sommaire-titre {
  font-family: var(--f-mono); font-size: var(--t-mini); font-weight: var(--mono-graisse);
  letter-spacing: var(--mono-interlettrage); text-transform: uppercase; color: var(--texte-2); line-height: 1.3;
}
.fonctionnement__sommaire-liens { display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 2.8vw, 44px); }
.fonctionnement__sommaire-liens a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  font-size: var(--t-petit); font-weight: 700; color: var(--encre);
}
.fonctionnement__sommaire-liens a span { color: var(--accent-texte); transition: transform 0.45s var(--ease-lent), color 0.25s var(--ease); }
.fonctionnement__sommaire-liens a:hover span,
.fonctionnement__sommaire-liens a:focus-visible span { transform: translateY(4px); }

@media (max-width: 760px) {
  .fonctionnement__ouverture .ouverture__fond img { object-position: 40% 50%; }
  .fonctionnement__sommaire { padding-top: 16px; gap: 6px 0; }
  .fonctionnement__sommaire-titre { flex-basis: 100%; }
  .fonctionnement__sommaire-liens { gap: 0 22px; }
}

/* --------------------------------------------------------------- Fonctionnalités : un chapitre par étape
   La photo et la fiche alternent de côté ; la fiche s'ancre en bas, au pied de la photo. */
.fonctionnement__etapes { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 144px); }
.fonctionnement__etape {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 96px); align-items: end;
}
.fonctionnement__etape:nth-child(odd) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.fonctionnement__etape:nth-child(odd) .fonctionnement__etape-photo { order: 2; }
.fonctionnement__etape-photo { max-height: min(920px, calc(100svh - var(--entete) - 40px)); }
.fonctionnement__etape-photo--1 img { object-position: 50% 42%; }
.fonctionnement__etape-photo--2 img { object-position: 50% 62%; }
.fonctionnement__etape-photo--3 img { object-position: 50% 60%; }
.fonctionnement__etape-photo--4 img { object-position: 50% 45%; }
.fonctionnement__etape-texte { display: flex; flex-direction: column; min-width: 0; }

/* « Étape 2/4 » et sa jauge : quatre traits, celui de l'étape en couleur d'accent */
.fonctionnement__rang { display: flex; align-items: center; gap: 16px; color: var(--texte-2); }
.fonctionnement__rang-n { color: var(--encre); }
.fonctionnement__jauge { display: inline-flex; align-items: center; gap: 4px; }
.fonctionnement__jauge span { width: 22px; height: 2px; background: var(--filet); }
.fonctionnement__jauge .fonctionnement__jauge-ici { height: 3px; background: var(--accent); }

/* Titre intermédiaire (h3 de chapitre) : la police de titre, à mi-chemin entre h2 et h3 */
.fonctionnement__titre-moyen { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.06; }
.fonctionnement__etape-texte .fonctionnement__titre-moyen { margin-top: 18px; }
.fonctionnement__etape-resume {
  margin-top: 12px; max-width: 30rem;
  font-size: var(--t-chapo); font-weight: 400; line-height: 1.45; color: var(--texte); text-wrap: balance;
}

/* La fiche : une ligne par fonctionnalité, le nom à gauche, la phrase à droite */
.fonctionnement__fonctions-liste { margin-top: clamp(28px, 3.2vw, 44px); }
.fonctionnement__fonctions-liste > li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
  padding-block: 16px 18px; border-top: 1px solid var(--filet);
}
.fonctionnement__fonctions-liste > li:last-child { border-bottom: 1px solid var(--filet); }
.fonctionnement__fonctions-liste h4 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--encre); }
.fonctionnement__fonctions-liste p { font-size: 0.9375rem; line-height: 1.5; color: var(--texte); text-wrap: pretty; }
@media (min-width: 1280px), (min-width: 640px) and (max-width: 900px) {
  .fonctionnement__fonctions-liste > li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6px 28px; align-items: baseline; }
}
@media (max-width: 900px) {
  .fonctionnement__etapes { gap: clamp(64px, 12vw, 96px); }
  .fonctionnement__etape, .fonctionnement__etape:nth-child(odd) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fonctionnement__etape:nth-child(odd) .fonctionnement__etape-photo { order: 0; }
  .fonctionnement__etape-photo { aspect-ratio: 3 / 2; max-height: none; }
}

/* --------------------------------------------------------------- Ce que vous récupérez : une scène basse, puis les six pièces */
.fonctionnement__pieces-scene .scene__fond img { object-position: 24% 30%; filter: brightness(0.62); }
.fonctionnement__pieces-scene .scene__contenu .titre { max-width: 10.5em; }   /* trois lignes : le titre laisse le compagnon à découvert */
.fonctionnement__pieces > li {
  flex-direction: row; align-items: baseline; gap: 16px;
  font-size: var(--t-h3); font-weight: 700; line-height: 1.25; color: var(--encre);
}
/* le pictogramme « fichier » des panneaux, un peu plus grand */
.fonctionnement__pieces > li::before {
  content: ""; flex: none; width: 13px; height: 17px; transform: translateY(1px);
  border: 1.5px solid var(--texte-2); border-radius: 1px;
  background: linear-gradient(225deg, var(--texte-2) 0 5px, transparent 5px);
}
@media (max-width: 980px) {
  .fonctionnement__pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .fonctionnement__pieces-scene .scene__fond img { object-position: 57% 30%; }
}
@media (max-width: 620px) {
  .fonctionnement__pieces { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fonctionnement__pieces > li { padding-block: 18px; }
  .fonctionnement__pieces > li:last-child { border-bottom: 1px solid var(--filet); }
}

/* --------------------------------------------------------------- Capitalisation : le texte à gauche, la bibliothèque et l'exemple à droite */
.fonctionnement__capital {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 96px); align-items: start;
}
.fonctionnement__capital-texte { display: flex; flex-direction: column; min-width: 0; }
.fonctionnement__capital-intro { margin-top: clamp(24px, 3vw, 36px); }
.fonctionnement__capital-intro .texte, .fonctionnement__salle-texte .texte { text-wrap: pretty; }
.fonctionnement__fonds { margin-top: clamp(40px, 5vw, 72px); }
.fonctionnement__fonds > li { display: flex; flex-direction: column; gap: 8px; padding-block: 22px 24px; border-top: 1px solid var(--filet); }
.fonctionnement__fonds > li:last-child { border-bottom: 1px solid var(--filet); }
.fonctionnement__fonds p { max-width: 32rem; color: var(--texte); text-wrap: pretty; }

.fonctionnement__capital-visuel {
  --fonctionnement-decalage: clamp(0px, 4vw, 56px);
  display: flex; flex-direction: column; min-width: 0; padding-left: var(--fonctionnement-decalage);
}
.fonctionnement__capital-photo { aspect-ratio: 4 / 5; }
.fonctionnement__capital-photo img { object-position: 50% 40%; }

/* L'exemple illustratif, épinglé à cheval sur le bas de la photo */
.fonctionnement__comparaison {
  position: relative; margin: clamp(-156px, -9.5vw, -88px) clamp(20px, 3vw, 44px) 0 calc(-1 * var(--fonctionnement-decalage));
  box-shadow: 0 26px 50px -30px rgb(0 0 0 / 0.42);
}
.fonctionnement__question { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--encre); }
.fonctionnement__reponse { display: flex; flex-direction: column; gap: 9px; }
.fonctionnement__reponse + .fonctionnement__reponse { margin-top: 2px; padding-top: 16px; border-top: 1px solid var(--filet); }
.fonctionnement__reponse-nom { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2); }
/* la réponse générique est barrée d'un fin trait rouge : le seul signal de ce panneau */
.fonctionnement__reponse s { color: var(--texte-2); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 1px; }
.fonctionnement__reponse--buildex .fonctionnement__reponse-nom { color: var(--encre); }
.fonctionnement__reponse--buildex p:not(.fonctionnement__reponse-nom) { font-size: 0.9375rem; line-height: 1.5; color: var(--encre); }
.fonctionnement__reponse--buildex .sources { margin-top: 4px; }

.fonctionnement__note {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 28px clamp(20px, 3vw, 44px) 0 calc(-1 * var(--fonctionnement-decalage));
  padding-top: 20px; border-top: 1px solid var(--filet);
  font-size: var(--t-petit); line-height: 1.5; color: var(--texte);
}
.fonctionnement__note svg { flex: none; width: 15px; height: 17px; margin-top: 1px; color: var(--encre); }

@media (max-width: 900px) {
  .fonctionnement__capital { grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 9vw, 72px); }
  .fonctionnement__capital-visuel { --fonctionnement-decalage: 0px; }
  .fonctionnement__capital-photo { aspect-ratio: 1; }
  .fonctionnement__comparaison { margin: -72px 16px 0; }
  .fonctionnement__note { margin-inline: 0; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .fonctionnement__capital-photo { aspect-ratio: 3 / 2; }
  .fonctionnement__comparaison { margin: -96px clamp(24px, 8vw, 96px) 0; }
}

/* --------------------------------------------------------------- Garanties : la salle de classe en scène, l'échange posé à droite */
.fonctionnement__salle .scene__fond img { object-position: 50% 62%; filter: brightness(0.56); }
.fonctionnement__salle .scene__voile { background:
  linear-gradient(90deg, rgb(var(--nuit-rgb) / 0.74) 0%, rgb(var(--nuit-rgb) / 0.36) 52%, rgb(var(--nuit-rgb) / 0.12) 100%),
  linear-gradient(0deg, rgb(var(--nuit-rgb) / 0.72) 0%, rgb(var(--nuit-rgb) / 0) 62%); }
.fonctionnement__salle .scene__contenu {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 96px); align-items: end;
}
.fonctionnement__dialogue {
  justify-self: end; width: min(100%, 468px); font-size: 0.9375rem;
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.7);
}
.fonctionnement__dialogue .panneau__corps { padding: 22px 20px; gap: 14px; }
.fonctionnement__dialogue sup { font-size: 0.68em; line-height: 0; }

@media (max-width: 900px) {
  /* sur petit écran : la photo en bandeau, puis le texte et l'échange sur la bande sombre */
  .fonctionnement__salle { display: block; min-height: 0; background: var(--papier); }
  .fonctionnement__salle .scene__fond { position: relative; inset: auto; height: clamp(230px, 62vw, 520px); }
  .fonctionnement__salle .scene__fond img { object-position: 50% 50%; filter: brightness(0.82); }
  .fonctionnement__salle .scene__voile { display: none; }
  .fonctionnement__salle .scene__contenu { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: clamp(44px, 9vw, 72px) 0; }
  .fonctionnement__dialogue { justify-self: stretch; width: auto; max-width: 520px; box-shadow: none; }
}

/* Les trois engagements */
.fonctionnement__engagements .chiffre { font-size: clamp(2.25rem, 0.9rem + 3vw, 3.75rem); white-space: nowrap; }
.fonctionnement__engagements h3 { margin-top: 8px; color: var(--encre); }
.fonctionnement__engagements p:last-child { max-width: 30rem; text-wrap: pretty; }

/* Ce que BUILDEX ne fait pas */
.fonctionnement__limites {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px); align-items: start; margin-top: var(--section-serre);
}
.fonctionnement__limites-tete { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.fonctionnement__mot { margin-top: 4px; max-width: 14em; line-height: 1.05; }   /* note à la main (.note-main) */
.fonctionnement__refus > li {
  display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: baseline; gap: 14px;
  padding-block: 22px; border-top: 1px solid var(--filet);
  font-size: var(--t-h3); font-weight: 700; line-height: 1.25; color: var(--encre);
}
.fonctionnement__refus > li:last-child { border-bottom: 1px solid var(--filet); }
/* la croix : deux traits fins, sans caractère (rien à lire pour un lecteur d'écran) */
.fonctionnement__refus > li::before {
  content: ""; align-self: center; width: 13px; height: 13px;
  background:
    linear-gradient(45deg, transparent calc(50% - 0.75px), var(--texte-2) calc(50% - 0.75px), var(--texte-2) calc(50% + 0.75px), transparent calc(50% + 0.75px)),
    linear-gradient(-45deg, transparent calc(50% - 0.75px), var(--texte-2) calc(50% - 0.75px), var(--texte-2) calc(50% + 0.75px), transparent calc(50% + 0.75px));
}
@media (max-width: 900px) {
  .fonctionnement__limites { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  .fonctionnement__refus > li { grid-template-columns: 1.6em minmax(0, 1fr); gap: 10px; padding-block: 18px; }
}

/* --------------------------------------------------------------- Questions */
.fonctionnement__questions {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px); align-items: start;
}
.fonctionnement__questions .accordeon__corps p { max-width: 40rem; color: var(--texte); text-wrap: pretty; }
@media (min-width: 901px) {
  /* la réponse s'aligne sur le texte de la question (la colonne du numéro vaut 2,4 × la taille du résumé) */
  .fonctionnement__questions .accordeon__corps { padding-left: calc(2.4 * var(--t-h3) + 14px); }
}
@media (max-width: 900px) {
  .fonctionnement__questions { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 12-enjeux.css ---- */
/* ==========================================================================
   Page « Vos enjeux, nos solutions » (vue #enjeux)
   Dix questions dans un seul accordéon, en trois temps, rythmé par deux planches
   photographiques : une scène plein cadre, puis deux photos encadrées.
   Toutes les classes sont préfixées « enjeux- ».
   ========================================================================== */

/* --------------------------------------------------------------- Ouverture
   Les tours se perdent dans le brouillard : on garde la trouée claire au centre. */
.enjeux-ouverture .ouverture__fond img { object-position: 50% 44%; }
.enjeux-ouverture .ouverture__contenu > .chapo { max-width: 35rem; text-wrap: pretty; }

/* --------------------------------------------------------------- Les questions
   L'accordéon court d'un bord à l'autre : les questions et les repères portent la gouttière,
   les planches photographiques restent plein cadre entre deux groupes de questions. */
.enjeux-questions {
  --enjeux-gauche: max(var(--gouttiere), env(safe-area-inset-left, 0px));
  --enjeux-droite: max(var(--gouttiere), env(safe-area-inset-right, 0px));
  --enjeux-souffle: clamp(64px, 8.4vw, 128px);
  --enjeux-retrait: calc(var(--t-h3) * 2.4 + 14px);   /* colonne du numéro + espace : aligne la réponse sur la question */
  padding-bottom: var(--section);
}
.enjeux-accordeon > details,
.enjeux-repere { margin-left: var(--enjeux-gauche); margin-right: var(--enjeux-droite); }

/* Repère de groupe : « Questions 01 — 04 » */
.enjeux-repere { display: flex; margin-top: var(--enjeux-souffle); margin-bottom: clamp(22px, 2.4vw, 32px); }

.enjeux-question { scroll-margin-top: calc(var(--entete) + 12px); }
.enjeux-question--fin { border-bottom: 1px solid var(--filet); }   /* dernière question d'un groupe, avant une planche */
.enjeux-question__titre { font: inherit; letter-spacing: inherit; color: inherit; text-wrap: balance; }

/* Survol : la couleur seule change. Aucun déplacement : une marge ou une transformation qui change au moment
   de l'ouverture empêcherait le navigateur de garder la question cliquée à sa place. */
.enjeux-accordeon summary .signe { transition: color 0.25s var(--ease); }
.enjeux-accordeon details:not([open]) > summary:hover .signe { color: var(--accent); }

/* La réponse : le texte à gauche, sous la question ; l'exemple à droite. */
.enjeux-accordeon .accordeon__corps { padding-top: 6px; padding-bottom: clamp(40px, 4.6vw, 68px); }
/* @ANCRAGE@ */
.enjeux-accordeon details[open] > .accordeon__corps { animation: enjeux-ouvre 0.7s var(--ease) both; }
@keyframes enjeux-ouvre { from { opacity: 0; transform: translateY(10px); } }
@media (min-width: 901px) {
  .enjeux-accordeon .accordeon__corps { padding-left: var(--enjeux-retrait); column-gap: clamp(40px, 6vw, 96px); }
}
.enjeux-reponse { max-width: var(--mesure); }
.enjeux-reponse .texte { font-size: var(--t-chapo); line-height: 1.5; }
.enjeux-balise { font-family: var(--f-mono); font-size: 0.84em; letter-spacing: 0; color: var(--encre); white-space: nowrap; }

/* --------------------------------------------------------------- Les exemples (panneaux « interface ») */
.enjeux-exemple { width: 100%; max-width: 35rem; }
.enjeux-exemple sup { font-size: 0.68em; line-height: 0; }

/* petit libellé technique à l'intérieur d'un panneau */
.enjeux-libelle,
.enjeux-poids dt { font-family: var(--f-mono); font-size: 0.625rem; font-weight: var(--mono-graisse); letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; color: var(--texte-2); }

/* intitulé d'une ligne (titre + précision), qui laisse la pastille à droite */
.enjeux-intitule { flex: 1 1 9rem; min-width: 0; color: var(--encre); }
.enjeux-intitule small { margin-top: 3px; }
.enjeux-pastille--discrete { border-color: var(--filet); color: var(--texte-2); }

/* 01 — Synthèse du DCE : fiche, pondération des critères, alerte sourcée */
.enjeux-fiche { grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr)); }
.enjeux-poids { display: grid; grid-template-columns: 3fr 2fr; column-gap: 3px; margin-top: 8px; }   /* 60 % / 40 % */
.enjeux-poids > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-top: 10px; border-top: 2px solid var(--encre); }
.enjeux-poids > div + div { border-top-color: var(--filet-fort); padding-left: 12px; }
.enjeux-poids dd { font-family: var(--f-titre); font-weight: var(--titre-graisse); font-stretch: var(--titre-etirement); letter-spacing: var(--titre-interlettrage); font-size: 1.625rem; line-height: 1; color: var(--encre); font-variant-numeric: tabular-nums; }
.enjeux-alerte { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 14px; border-top: 1px solid var(--filet); }

/* 02 — Go / no go : recommandation, règles vérifiées */
.enjeux-avis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 20px; border-bottom: 1px solid var(--filet); font-size: 0.8125rem; }
.enjeux-marque { flex: none; align-self: flex-start; position: relative; width: 14px; height: 14px; margin-top: 3px; }
.enjeux-marque--coche::before { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 5px; border-left: 1.5px solid var(--encre); border-bottom: 1.5px solid var(--encre); transform: rotate(-45deg); }
.enjeux-marque--croix::before,
.enjeux-marque--croix::after { content: ""; position: absolute; left: 1px; right: 1px; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--encre); transform: rotate(45deg); }
.enjeux-marque--croix::after { transform: rotate(-45deg); }

/* 03 — Assistant : constats, repérés par un filet (rouge pour l'incohérence) */
.enjeux-constat { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 2px 0 2px 14px; border-left: 2px solid var(--filet-fort); }
.enjeux-constat--alerte { border-left-color: var(--accent); }
.enjeux-constat .sources { margin-top: 3px; }

/* 05 — Plan du mémoire : parties, passage suggéré, source manquante */
.enjeux-plan { border-bottom: 1px solid var(--filet); }
.enjeux-plan > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 16px; padding: 12px 20px; color: var(--encre); }
.enjeux-plan > li + li { border-top: 1px solid var(--filet); }
.enjeux-plan small { font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; }
.enjeux-plan__courante { background: var(--papier-3); box-shadow: inset 2px 0 0 var(--encre); }
.enjeux-passage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 4px 0 4px 14px; border-left: 2px solid var(--encre); }
.enjeux-manque { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px; border: 1px dashed var(--filet-fort); }
.enjeux-manque .enjeux-libelle { color: var(--encre); }

/* 06 — Évaluation de l'offre : trois chiffres, un écart à corriger */
.enjeux-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--filet); }
.enjeux-chiffres > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 9px; min-width: 0; padding: 18px 20px 16px; }
.enjeux-chiffres > div + div { border-left: 1px solid var(--filet); }
.enjeux-chiffres dd { font-family: var(--f-titre); font-weight: var(--titre-graisse); font-stretch: var(--titre-etirement); letter-spacing: var(--titre-interlettrage); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); line-height: 1; color: var(--encre); white-space: nowrap; font-variant-numeric: tabular-nums; }
.enjeux-chiffres dt { font-size: 0.75rem; line-height: 1.3; color: var(--texte-2); }
.enjeux-ecart { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 3px 0 3px 14px; border-left: 2px solid var(--accent); color: var(--encre); }
.enjeux-ecart > span:first-child { flex: 1 1 11rem; min-width: 0; }

/* boutons figurés (les exemples ne sont pas interactifs) */
.enjeux-action { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; background: var(--encre); color: var(--papier); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.enjeux-action--contour { background: none; color: var(--encre); font-weight: 500; box-shadow: inset 0 0 0 1px var(--filet-fort); }

/* 07 — Mes projets : le tableau défile dans son cadre quand la place manque */
.enjeux-tableau { min-width: 21.25rem; }
.enjeux-tableau tbody th { font: inherit; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--encre); padding: 12px 20px; border-bottom: 1px solid var(--filet); vertical-align: middle; }
.enjeux-tableau tbody tr:last-child th { border-bottom: 0; }
.enjeux-tableau td:last-child { white-space: nowrap; color: var(--texte); }
.enjeux-defile:focus-visible { outline-offset: -2px; }

/* 08 — Remise : exports, fichiers nommés */
.enjeux-exports { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.enjeux-fichiers { border: 1px solid var(--filet); }
.enjeux-fichiers > li { min-width: 0; padding: 10px 12px; }
.enjeux-fichiers > li + li { border-top: 1px solid var(--filet); }
.enjeux-fichiers .fichier { min-width: 0; font-size: 0.75rem; overflow-wrap: anywhere; }

/* 10 — Règles go / no go : définitions en lignes */
.enjeux-definitions > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding-block: 11px; border-top: 1px solid var(--filet); }
.enjeux-definitions > div:last-child { padding-bottom: 2px; }
.enjeux-definitions dt { color: var(--texte); }
.enjeux-definitions dd { margin-left: auto; font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--encre); text-align: right; }

@media (max-width: 480px) {
  .enjeux-chiffres > div { padding: 16px 12px 14px; }
  .enjeux-tableau thead th, .enjeux-tableau tbody th, .enjeux-tableau td { padding-left: 12px; padding-right: 12px; }
  .enjeux-tableau .pastille { padding-inline: 8px; }
}

/* --------------------------------------------------------------- Planche I : la scène plein cadre, sans texte */
.enjeux-scene { margin-top: var(--enjeux-souffle); min-height: clamp(340px, 60svh, 640px); }
.enjeux-scene .scene__fond img { object-position: 42% 50%; filter: brightness(0.8); }
.enjeux-scene .scene__voile { background: linear-gradient(0deg, rgb(var(--nuit-rgb) / 0.62) 0%, rgb(var(--nuit-rgb) / 0) 38%), linear-gradient(180deg, rgb(var(--nuit-rgb) / 0.4) 0%, rgb(var(--nuit-rgb) / 0) 28%); }

/* --------------------------------------------------------------- Planche II : deux photographies encadrées, décalées */
.enjeux-planche { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; gap: clamp(20px, 6vw, 96px); margin: var(--enjeux-souffle) var(--enjeux-droite) 0 var(--enjeux-gauche); }
.enjeux-planche__grande { aspect-ratio: 3 / 2; }
.enjeux-planche__petite { aspect-ratio: 4 / 5; margin-top: clamp(40px, 9vw, 136px); }
@media (max-width: 760px) {
  .enjeux-scene .scene__fond img { object-position: 27% 50%; }
  .enjeux-planche { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .enjeux-planche__petite { width: 62%; margin: 0 0 0 auto; }
}

/* ---- 13-equipe.css ---- */
/* ==========================================================================
   Page « L'équipe »
   ========================================================================== */

/* --------------------------------------------------------------- Ouverture : la seule photo de chantier de la page (VRD, vue du ciel), éclaircie */
.equipe-ouverture .ouverture__fond img { filter: brightness(1.22) contrast(0.86); }

/* --------------------------------------------------------------- Notre histoire */
.equipe-recit { display: flex; flex-direction: column; gap: 1.3em; max-width: 40rem; }
.equipe-recit p { font-size: var(--t-chapo); line-height: 1.5; color: var(--texte); }
.equipe-recit p:first-child { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem); font-weight: 500; line-height: 1.4; color: var(--encre); }

/* --------------------------------------------------------------- Les fondateurs */
.equipe-fondateurs__grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.equipe-portrait { margin: 0; }
.equipe-portrait__cadre {
  aspect-ratio: 4 / 5; display: grid; place-items: center; color: var(--encre);
  border: 1px solid var(--filet);
  background: radial-gradient(120% 90% at 50% 40%, var(--papier-3) 0%, var(--papier-2) 62%, var(--papier) 100%);
}
.equipe-portrait__cadre .symbole { width: 30%; }
.equipe-portrait figcaption { margin-top: 14px; font-family: var(--f-mono); font-size: var(--t-mini); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-2); }
.equipe-fondateur { border-top: 1px solid var(--filet); padding-block: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.equipe-fondateur:last-child { border-bottom: 1px solid var(--filet); }
.equipe-fondateur__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.equipe-fondateur__nom { font-family: var(--f-titre); font-weight: var(--titre-graisse); font-stretch: var(--titre-etirement); letter-spacing: var(--titre-interlettrage); font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem); line-height: 1.05; color: var(--encre); }
.equipe-fondateur__lien { position: relative; padding-block: 10px; font-size: var(--t-petit); font-weight: 700; color: var(--encre); white-space: nowrap; }
.equipe-fondateur__lien::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--filet-fort); transition: background-color 0.25s var(--ease), height 0.25s var(--ease); }
.equipe-fondateur__lien:hover::after, .equipe-fondateur__lien:focus-visible::after { background: var(--accent); height: 2px; }
.equipe-fondateur__role { font-family: var(--f-mono); font-size: var(--t-mini); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-2); }
.equipe-fondateur__texte { max-width: 34rem; }
/* Portraits : un par fondateur, côte à côte (en couleur) ; sur tablette et téléphone, une ligne par fondateur */
.equipe-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.2vw, 52px); }
.equipe-trio .equipe-membre, .equipe-trio .equipe-membre:last-child { border: 0; padding: 0; }
.equipe-membre__photo { aspect-ratio: 1; margin-bottom: 16px; overflow: hidden; background: var(--papier-2); }
.equipe-membre__photo img { width: 100%; height: 100%; object-fit: cover; }
.equipe-trio .equipe-fondateur__nom { font-size: clamp(1.375rem, 1.05rem + 0.9vw, 1.875rem); }
.equipe-trio .equipe-fondateur__tete { flex-direction: column; align-items: flex-start; gap: 0; }   /* LinkedIn sous le nom : les trois fiches restent alignées */
@media (max-width: 900px) {
  .equipe-trio { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .equipe-trio .equipe-membre { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-content: start; column-gap: 18px; row-gap: 4px; padding-block: 24px; border-top: 1px solid var(--filet); }
  .equipe-trio .equipe-membre:last-child { border-bottom: 1px solid var(--filet); padding-block: 24px; }
  .equipe-membre__photo { grid-row: 1 / span 2; margin: 0; }
  .equipe-trio .equipe-fondateur__texte { grid-column: 1 / -1; margin-top: 12px; }
}

/* --------------------------------------------------------------- Parlons de vos appels d'offres : bande sombre sans photo */
.equipe-contact { min-height: 0; }
.equipe-contact .scene__contenu { gap: 22px; }
.equipe-note { margin-left: 4px; }   /* note à la main (.note-main) */

@media (max-width: 900px) {
  .equipe-fondateurs__grille { grid-template-columns: minmax(0, 1fr); }
  .equipe-portrait__cadre { aspect-ratio: 16 / 10; }
  .equipe-portrait__cadre .symbole { width: 22%; }
}
@media (max-width: 560px) { .equipe-fondateur__tete { flex-direction: column; align-items: flex-start; gap: 0; } }

/* ---- 14-demo-contact.css ---- */
/* ==========================================================================
   Pages « Demander une démo » et « Nous contacter »
   ========================================================================== */

/* --------------------------------------------------------------- Démo */
.demo__grille { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.demo__marche { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); min-width: 0; }
.demo__etapes > li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: baseline; gap: 14px; padding-block: 20px; border-top: 1px solid var(--filet); }
.demo__etapes > li:last-child { border-bottom: 1px solid var(--filet); }
.demo__etapes .mono { color: var(--texte-2); font-size: 0.75rem; }
.demo__etapes p { font-size: var(--t-chapo); font-weight: 500; line-height: 1.4; color: var(--encre); }
.demo__photo { margin-top: clamp(8px, 2vw, 24px); max-width: 420px; }

.demo__colonne { min-width: 0; }
.demo__formulaire { display: flex; flex-direction: column; gap: clamp(36px, 4.5vw, 56px); }
.demo__mention { font-size: var(--t-petit); color: var(--texte-2); }
.demo__astre, .demo .requis { color: var(--accent-texte); }
.demo__bloc { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--filet); padding-top: 22px; min-width: 0; }
.demo__bloc-titre { display: flex; align-items: baseline; gap: 14px; font-size: var(--t-h3); font-weight: 700; line-height: 1.2; color: var(--encre); }
.demo__bloc-titre .mono { color: var(--texte-2); font-size: 0.75rem; width: 2.4em; flex: none; }
.demo__champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.demo__envoi { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; border-top: 1px solid var(--filet); padding-top: 28px; }
.demo__rgpd { font-size: 0.8125rem; line-height: 1.5; color: var(--texte-2); max-width: 38rem; }
.demo__rgpd a { color: var(--texte); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--filet-fort); }
.demo__rgpd a:hover, .demo__rgpd a:focus-visible { color: var(--encre); text-decoration-color: var(--accent); }
.demo__etat { border: 1px solid var(--filet-fort); padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.demo__etat:focus { outline: none; }
.demo__coche { display: grid; place-items: center; width: 44px; height: 44px; background: var(--encre); color: var(--papier); }
.demo__echec { align-self: stretch; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-pale); color: var(--accent-texte); font-size: var(--t-petit); line-height: 1.5; }
.demo__echec p + p { margin-top: 4px; }
.demo__echec a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.demo__envoi .bouton:disabled { cursor: wait; opacity: 0.7; }
.demo__etat p:not(.etiquette) { max-width: var(--mesure); }

@media (max-width: 900px) {
  .demo__grille { grid-template-columns: minmax(0, 1fr); }
  .demo__photo { display: none; }
}
@media (max-width: 620px) { .demo__champs { grid-template-columns: minmax(0, 1fr); } .demo__envoi .bouton { width: 100%; } }

/* --------------------------------------------------------------- Contact */
.contact__liste > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 22px; border-top: 1px solid var(--filet); }
.contact__liste > div:last-child { border-bottom: 1px solid var(--filet); }
.contact__liste dt { font-family: var(--f-mono); font-size: var(--t-mini); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-2); }
.contact__liste dd { font-size: var(--t-h3); font-weight: 700; line-height: 1.25; color: var(--encre); overflow-wrap: anywhere; }
.contact__liste dd a { background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat; transition: background-size 0.5s var(--ease-lent); padding-bottom: 4px; }
.contact__liste dd a:hover, .contact__liste dd a:focus-visible { background-size: 100% 2px; }
.contact__liste .contact__a-venir { color: var(--texte-2); }

/* ---- 15-pages-simples.css ---- */
/* ==========================================================================
   Pages sans photo d'ouverture : Nous contacter, page 404
   ========================================================================== */

/* le contenu commence sous l'en-tête fixe */
.section--haut { padding-top: calc(var(--entete) + env(safe-area-inset-top, 0px) + clamp(40px, 5.5vw, 84px)); }

/* --------------------------------------------------------------- Nous contacter : le titre et la photo à gauche, le formulaire à droite */
.contact-page__intro .titre { font-size: var(--t-h2); }
.contact-page__direct { font-size: var(--t-petit); color: var(--texte-2); max-width: var(--mesure); }
.contact-page__direct a { color: var(--encre); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.contact-page__formulaire { gap: clamp(24px, 3vw, 32px); }
.contact-page__formulaire .demo__mention { border-top: 1px solid var(--filet); padding-top: 22px; }

/* --------------------------------------------------------------- Page 404 */
.page-introuvable { min-height: 70svh; }
.page-introuvable .titre { max-width: 14em; }

/* ---- 20-comment-ca-marche.css ---- */
/* ==========================================================================
   Page « Comment ça marche » (/comment-ca-marche, /en/how-it-works) : la frise des sept étapes (bloc
   « Comment ça marche » plus haut), puis « Vos questions, nos réponses » (classes enjeux-, bloc 12).
   ========================================================================== */
.questions-page__tete .tete-section { margin-bottom: clamp(28px, 3.4vw, 48px); }
.questions-page .enjeux-question:first-of-type { border-top: 1px solid var(--filet); }

/* --------------------------------------------------------------- Accueil : la promesse et l'appel final en une seule bande */
.accueil-fin .scene__contenu { gap: clamp(28px, 3.4vw, 44px); }

/* ---- 21-illustrations-v4.css ---- */
/* ==========================================================================
   « Vos questions, nos réponses » : chaque exemple est un écran de l'application, dessiné d'après la maquette v4
   (artefact « Maquette Buildex v4 ») : barre latérale noire, titre d'écran, onglets, cartes blanches à filet clair,
   statuts à carré (plein : fait ; vide : en cours ; rouge : à traiter), compteurs, boutons rouge / encre / contour,
   passage cité sur fond rose. Dossiers et personnes fictifs (« Exemple illustratif ») : ne jamais y reprendre le
   chantier, l'entreprise ou les personnes de la maquette. Toutes les classes sont préfixées « v4e ».
   ========================================================================== */
.v4e {
  --v4-r: 0.5em;
  --v4-fond: color-mix(in srgb, var(--papier-2) 45%, var(--surface));
  --v4-filet-2: color-mix(in srgb, var(--filet) 60%, var(--filet-fort));
  --v4-rouge: var(--accent-texte);
  container-type: inline-size;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--filet); border-radius: 10px; background: var(--v4-fond);
  box-shadow: 0 24px 48px -32px rgb(0 0 0 / 0.35);
  font-family: var(--f-sans); font-size: 0.8125rem; line-height: 1.45; color: var(--texte);
}
.v4e p, .v4e dl, .v4e dd, .v4e ul { margin: 0; }
.v4e__fenetre { display: grid; grid-template-columns: 3em minmax(0, 1fr); flex: 1; }
.v4e__nav { display: flex; flex-direction: column; align-items: center; gap: 0.7em; padding: 1.1em 0; background: var(--nuit); color: color-mix(in srgb, var(--sur-nuit) 50%, var(--nuit)); }
.v4e__marque { display: block; width: 1.35em; height: 1.35em; margin-bottom: 0.5em; color: var(--sur-nuit); }
.v4e__marque circle { fill: var(--accent); }
.v4e__navi { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 0.4em; }
.v4e__navi.est-actif { background: color-mix(in srgb, var(--sur-nuit) 15%, var(--nuit)); color: var(--sur-nuit); }
.v4e__navi svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.v4e__corps { min-width: 0; display: flex; flex-direction: column; gap: 0.8em; padding: 1.05em 1.2em 1.2em; }

/* en-tête d'écran */
.v4e__fil { font-size: 0.85em; color: var(--texte-2); }
.v4e__fil > span { text-decoration: underline; text-decoration-color: var(--v4-filet-2); text-underline-offset: 0.2em; }
.v4e__fil b { font-weight: 600; color: var(--v4-rouge); }
.v4e__tete { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0.6em 1em; }
.v4e__tete > div { flex: 1 1 16em; min-width: 0; }
.v4e__titre { font-size: 1.5em; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--encre); }
.v4e .v4e__sous { margin-top: 0.25em; font-size: 0.88em; color: var(--texte-2); text-wrap: pretty; }
.v4e__onglets { display: flex; gap: 1.3em; overflow: hidden; border-bottom: 1px solid var(--filet); font-size: 0.9em; color: var(--texte-2); white-space: nowrap; }
.v4e__onglets > span { padding: 0.2em 0 0.55em; }
.v4e__onglets .est-actif { font-weight: 600; color: var(--encre); box-shadow: inset 0 -2px 0 var(--encre); }
.v4e__onglets i, .v4e__seg i { font-style: normal; color: var(--texte-3); }
.v4e__onglets i.v4e--rouge { color: var(--v4-rouge); }
.v4e__seg { display: inline-flex; align-self: flex-start; gap: 0.15em; padding: 0.2em; border-radius: 0.45em; background: var(--papier-2); font-size: 0.88em; color: var(--texte-2); }
.v4e__seg > span { padding: 0.3em 0.75em; border-radius: 0.35em; }
.v4e__seg .est-actif { background: var(--surface); font-weight: 600; color: var(--encre); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }

/* briques communes */
.v4e__carte { display: flex; flex-direction: column; gap: 0.6em; padding: 0.85em 1em; border: 1px solid var(--filet); border-radius: var(--v4-r); background: var(--surface); }
.v4e__carte-tete, .v4e__carte-pied { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.4em 1em; }
.v4e__h { display: inline-flex; align-items: center; gap: 0.55em; font-weight: 600; color: var(--encre); }
.v4e__note { font-size: 0.85em; color: var(--texte-2); }
.v4e__lbl { font-size: 0.76em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texte-2); }
.v4e__src { font-size: 0.85em; color: var(--texte-2); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--v4-filet-2); text-underline-offset: 0.2em; }
.v4e__src + .v4e__src { margin-left: 0.5em; }
.v4e .v4e--rouge { color: var(--v4-rouge); }
.v4e__st { flex: none; display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.9em; color: var(--encre); white-space: nowrap; }
.v4e__st::before { content: ""; flex: none; width: 0.62em; height: 0.62em; background: currentColor; }
.v4e__st--rouge { font-weight: 600; color: var(--v4-rouge); }
.v4e__st--vide { color: var(--v4-rouge); }
.v4e__st--vide::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.v4e__st--gris { color: var(--texte-2); }
.v4e__st--gris::before { background: var(--texte-3); }
.v4e__tag { display: inline-block; padding: 0.1em 0.45em; border-radius: 0.25em; background: var(--encre); font-size: 0.78em; font-weight: 600; line-height: 1.35; color: var(--surface); vertical-align: 0.08em; white-space: nowrap; }
.v4e__tag--rouge { border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--v4-rouge); color: var(--v4-rouge); }
.v4e__tag--gris { border-radius: 999px; background: var(--papier-2); color: var(--texte-2); }
.v4e__btns { display: inline-flex; flex-wrap: wrap; gap: 0.45em; }
.v4e__btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; height: 2.6em; padding: 0 1.05em; border: 1px solid transparent; border-radius: 0.4em; font-size: 0.9em; font-weight: 600; white-space: nowrap; }
.v4e__btn--petit { height: 2.25em; padding: 0 0.8em; font-size: 0.84em; }
.v4e__btn--rouge { background: var(--v4-rouge); color: var(--surface); }
.v4e__btn--encre { background: var(--encre); color: var(--surface); }
.v4e__btn--contour { border-color: var(--v4-filet-2); background: var(--surface); color: var(--encre); }
.v4e__av { flex: none; display: inline-grid; place-items: center; width: 2.15em; height: 2.15em; border: 1px solid var(--v4-filet-2); border-radius: 50%; background: var(--surface); font-size: 0.78em; font-weight: 600; color: var(--encre); }
.v4e__num { display: inline-grid; place-items: center; width: 1.65em; height: 1.65em; border-radius: 50%; background: var(--encre); font-size: 0.85em; color: var(--surface); }
.v4e__case { flex: none; position: relative; width: 1.1em; height: 1.1em; border: 1.5px solid var(--v4-filet-2); border-radius: 0.2em; background: var(--surface); }
.v4e__case.est-cochee { border-color: var(--encre); background: var(--encre); }
.v4e__case.est-cochee::after { content: ""; position: absolute; left: 0.25em; top: 0.18em; width: 0.42em; height: 0.24em; border-left: 1.5px solid var(--surface); border-bottom: 1.5px solid var(--surface); transform: rotate(-45deg); }
.v4e__hl { padding: 0.05em 0.25em; border-radius: 0.15em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.v4e__hl--rouge { background: var(--accent-pale); color: var(--v4-rouge); }

/* listes (exigences, pièces, tâches, offres) */
.v4e__liste { overflow: hidden; border: 1px solid var(--filet); border-radius: var(--v4-r); background: var(--surface); }
.v4e__liste > li { display: flex; align-items: center; gap: 0.7em; padding: 0.65em 0.9em; border-top: 1px solid var(--filet); }
.v4e__liste > li:first-child { border-top: 0; }
.v4e__choisie { background: color-mix(in srgb, var(--accent-pale) 45%, var(--surface)); box-shadow: inset 3px 0 0 var(--v4-rouge); }
.v4e__lib { flex: 1; min-width: 0; font-weight: 600; color: var(--encre); }
.v4e__lib small { display: block; margin-top: 0.15em; font-size: 0.88em; font-weight: 400; color: var(--texte-2); }
.v4e__cat { display: block; margin-bottom: 0.15em; font-size: 0.74em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texte-2); }
.v4e__date { flex: none; font-size: 0.88em; font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; }

/* fiche (définitions) */
.v4e__kv > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.2em 1em; padding: 0.5em 0; border-top: 1px solid var(--filet); }
.v4e__kv > div:first-child { padding-top: 0.1em; border-top: 0; }
.v4e__kv dt { color: var(--texte-2); }
.v4e__kv dd { display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; gap: 0.3em 0.6em; font-weight: 600; color: var(--encre); }
.v4e__kv dd .v4e__src { font-weight: 400; }

/* compteurs */
.v4e__chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--filet); border-radius: var(--v4-r); background: var(--surface); }
.v4e__chiffres--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v4e__chiffres > p { display: flex; flex-direction: column; gap: 0.3em; min-width: 0; padding: 0.7em 0.85em; border-left: 1px solid var(--filet); font-size: 0.85em; line-height: 1.3; color: var(--texte-2); }
.v4e__chiffres > p:first-child { border-left: 0; }
.v4e__chiffres b { font-size: 1.75em; font-weight: 600; line-height: 1.05; color: var(--encre); font-variant-numeric: tabular-nums; }
.v4e__chiffres > p.v4e--rouge { color: var(--texte-2); }
.v4e__chiffres .v4e--rouge b { color: var(--v4-rouge); }

/* 01. Notation : la répartition prix / valeur technique ; point de vigilance */
.v4e__repartition { display: flex; gap: 2px; overflow: hidden; border-radius: 0.3em; font-size: 0.84em; font-weight: 600; color: var(--surface); }
.v4e__repartition > span { flex: var(--p) 1 0; padding: 0.4em 0.7em; background: var(--encre); white-space: nowrap; }
.v4e__repartition > span:first-child { background: var(--texte-2); }
.v4e__alerte { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3em 0.75em; padding: 0.6em 0.85em; border-radius: var(--v4-r); background: color-mix(in srgb, var(--accent-pale) 55%, var(--surface)); color: var(--encre); }

/* 02. Go / no-go : les dix règles, la décision */
.v4e__barres { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0.25em; }
.v4e__barres span { height: 1.6em; border-radius: 0.15em; background: var(--encre); }
.v4e__barres .v4e--alerte { background: var(--v4-rouge); }
.v4e__barres .v4e--verif { background: repeating-linear-gradient(135deg, var(--papier-3) 0 0.25em, var(--surface) 0.25em 0.5em); box-shadow: inset 0 0 0 1px var(--filet); }
.v4e__legende { display: flex; flex-wrap: wrap; gap: 0.3em 1.1em; font-size: 0.82em; color: var(--texte-2); }
.v4e__legende span { display: inline-flex; align-items: center; gap: 0.4em; }
.v4e__legende span::before { content: ""; width: 0.6em; height: 0.6em; background: var(--encre); }
.v4e__legende .v4e--alerte { color: var(--texte-2); }
.v4e__legende .v4e--alerte::before { background: var(--v4-rouge); }
.v4e__legende .v4e--verif::before { background: var(--papier-3); }
.v4e__decision { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6em 1em; padding: 0.75em 0.9em; border: 1px solid var(--encre); border-radius: var(--v4-r); background: var(--surface); }

/* 03 et 09. La pièce ouverte au bon passage */
.v4e__piece { display: flex; flex-direction: column; gap: 0.6em; padding: 0.8em 0.9em; border: 1px solid var(--filet); border-radius: var(--v4-r); background: var(--surface); }
.v4e__piece-ref { font-size: 0.88em; color: var(--texte-2); }
.v4e__piece-ref b { font-weight: 600; color: var(--encre); }
.v4e__passage { padding: 0.55em 0.75em; border-left: 3px solid var(--v4-rouge); background: var(--accent-pale); line-height: 1.5; color: var(--encre); }
.v4e__passage > span { display: block; margin-bottom: 0.15em; font-size: 0.85em; font-weight: 600; color: var(--v4-rouge); }
.v4e sup { font-size: 0.68em; line-height: 0; }

/* 05. Plan : les points par partie, la partie sans source */
.v4e__points { display: flex; gap: 0.2em; }
.v4e__points > span { flex: var(--p) 1 0; display: grid; place-items: center; height: 2em; overflow: hidden; border-radius: 0.2em; background: var(--encre); font-size: 0.84em; font-weight: 600; color: var(--surface); white-space: nowrap; }
.v4e__points > span:nth-child(even) { background: var(--texte-2); }
.v4e__manque { display: flex; flex-direction: column; gap: 0.35em; padding: 0.75em 0.9em; border: 1px dashed var(--v4-filet-2); border-radius: var(--v4-r); background: var(--surface); color: var(--encre); }

/* 08. Remise : les fichiers du ZIP */
.v4e__fichiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45em 1em; font-size: 0.88em; color: var(--encre); }
.v4e__fichiers > li { display: flex; align-items: center; gap: 0.5em; min-width: 0; }
.v4e__fichiers > li::before { content: ""; flex: none; width: 0.7em; height: 0.9em; border: 1.3px solid currentColor; border-radius: 1px; }
.v4e__fichiers span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* 09. Assistant : question, réponse sourcée, champ de saisie */
.v4e__echange { display: flex; flex-direction: column; gap: 0.6em; }
.v4e__question { align-self: flex-end; max-width: 85%; padding: 0.55em 0.8em; border-radius: 0.7em 0.7em 0.15em 0.7em; background: var(--encre); color: var(--surface); }
.v4e__reponse { align-self: flex-start; max-width: 94%; display: flex; flex-direction: column; gap: 0.45em; padding: 0.7em 0.85em; border: 1px solid var(--filet); border-radius: 0.7em 0.7em 0.7em 0.15em; background: var(--surface); color: var(--encre); }
.v4e__champ { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 0.35em 0.35em 0.35em 0.85em; border: 1px solid var(--v4-filet-2); border-radius: var(--v4-r); background: var(--surface); color: var(--texte-3); }

.v4e__pied { padding: 0.6em 1.1em; border-top: 1px solid var(--filet); background: var(--surface); text-align: right; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2); }

/* exemple étroit (téléphone) : sans barre latérale, compteurs sur deux lignes, fichiers sur une colonne */
@container (max-width: 30rem) {
  .v4e__fenetre { grid-template-columns: minmax(0, 1fr); }
  .v4e__nav { display: none; }
  .v4e__corps { padding: 0.95em 0.95em 1.05em; }
  .v4e__chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4e__chiffres > p:nth-child(3) { border-left: 0; }
  .v4e__chiffres > p:nth-child(n+3) { border-top: 1px solid var(--filet); }
  .v4e__chiffres--3 { grid-template-columns: minmax(0, 1fr); }
  .v4e__chiffres--3 > p { border-left: 0; }
  .v4e__chiffres--3 > p + p { border-top: 1px solid var(--filet); }
  .v4e__fichiers { grid-template-columns: minmax(0, 1fr); }
  .v4e__liste > li { flex-wrap: wrap; }
  .v4e__liste .v4e__lib { flex-basis: 70%; }
}

/* ---- 22-demo.css ---- */
/* ==========================================================================
   Démonstration de l'application (accueil, 27 novembre 2026), à la place du film. Une fenêtre de l'application dessinée
   d'après la maquette v4 (charte « rouge et noir » de l'application : barre latérale noire, fond #FAFAF8, cartes
   blanches cernées d'un filet, un seul rouge #C8102E, angles de 6 px), posée sur un panneau clair. Cinq écrans d'un
   même dossier (analyse, go / no-go, plan, rédaction, relecture), chacun avec une action.
   - Visite guidée (site.js, [data-demo]) : rien ne se lance seul, tout avance au clic. Un écran d'accueil
     (.demoapp__intro, « Commencer la visite ») recouvre d'abord la fenêtre (.demoapp--accueil) ; ensuite (.demoapp--partie),
     l'élément à cliquer est cerclé de rouge, le reste de la fenêtre s'assombrit, une bulle noire donne la consigne, comme
     la visite guidée de l'application, et un curseur fantôme (.demoapp__indice) vient taper, en boucle, là où il faut cliquer.
   - Avant l'action : .avant ; après (écran .est-fait) : .apres. Entrées échelonnées : --i (écran), --j (après l'action).
   - Tout est en em : la taille de base de la fenêtre suit la largeur de la démonstration (unité cqw).
   - Sans script : le premier écran, fait, fixe. Mouvement réduit : aucune transition, pas de curseur fantôme.
   Couleurs de l'application : jetons --ap-* ci-dessous (les seules valeurs en dur de ce bloc).
   ========================================================================== */
.concept__tete { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 88px); align-items: end; }
.concept__suite { gap: 14px; padding-bottom: 0.35em; }
.concept__invite { max-width: 30rem; font-size: var(--t-petit); line-height: 1.55; color: var(--texte-2); }
@media (max-width: 900px) { .concept__tete { grid-template-columns: minmax(0, 1fr); align-items: start; } }

.demoapp {
  --ap-encre: #141414; --ap-texte-2: #5c5c58; --ap-texte-3: #8a8984; --ap-blanc: #ffffff;
  --ap-filet: #e3e2de; --ap-filet-2: #d6d5d0; --ap-fond: #fafaf8; --ap-carte: #ffffff; --ap-doux: #f1f0ec; --ap-doux-2: #f7f6f2;
  --ap-rouge: #c8102e; --ap-rouge-pale: #f8dce0; --ap-rouge-filet: #e9b4bc;
  --ap-noir: #111111; --ap-noir-2: #1d1d1d; --ap-noir-3: #262626; --ap-nav: #a3a3a3;
  --ap-jaune: #fcefc4; --ap-turquoise: #cfede7;
  --ap-r: 6px;
  container: demoapp / inline-size;
  position: relative; margin: clamp(40px, 5.5vw, 80px) 0 0;
  display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 24px);
  padding: clamp(14px, 2.6vw, 44px);
  background: var(--papier-2);
}

/* ---- en-tête : repère et choix du mode */
.demoapp__tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.demoapp__titre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-family: var(--f-mono); font-size: var(--t-mini); letter-spacing: var(--mono-interlettrage); text-transform: uppercase; color: var(--texte-2); }
.demoapp__direct { display: inline-flex; align-items: center; gap: 10px; color: var(--encre); }
.demoapp__direct::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.demoapp--anime.demoapp--accueil .demoapp__direct::before { animation: demo-direct 1.8s ease-in-out infinite; }
.demoapp__aide { display: inline-flex; align-items: center; gap: 9px; font-size: var(--t-petit); color: var(--texte-2); }
.demoapp__aide svg { flex: none; width: 11px; height: 14px; fill: var(--accent); }

/* ---- la fenêtre */
.demoapp__scene { position: relative; }
.demoapp__fenetre {
  position: relative; overflow: hidden; border-radius: 10px;
  background: var(--ap-fond); color: var(--ap-encre);
  box-shadow: 0 0 0 1px var(--ap-filet), 0 2px 5px color-mix(in srgb, var(--ap-noir) 6%, transparent), 0 32px 64px -28px color-mix(in srgb, var(--ap-noir) 40%, transparent);
  font-family: var(--f-sans); font-stretch: 100%; font-size: 12px; font-size: clamp(11px, 1.16cqw, 14px); line-height: 1.45; text-align: left;
  -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none;
}
.demoapp__fenetre :where(p, ul, ol) { margin: 0; padding: 0; list-style: none; }
.demoapp__fenetre i { font-style: normal; }
.demoapp__chrome { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: 2.75em; padding: 0 1em; border-bottom: 1px solid var(--ap-filet); background: var(--ap-doux); }
.demoapp__feux { display: inline-flex; gap: 0.45em; }
.demoapp__feux i { width: 0.8em; height: 0.8em; border-radius: 50%; background: var(--ap-filet-2); }
.demoapp__url { grid-column: 2; display: inline-flex; align-items: center; gap: 0.5em; min-width: 0; height: 1.95em; padding: 0 1.2em; border-radius: 1em; background: var(--ap-carte); box-shadow: inset 0 0 0 1px var(--ap-filet); font-size: 0.86em; color: var(--ap-texte-2); white-space: nowrap; }
.demoapp__url svg { flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.demoapp__chemin { color: var(--ap-texte-3); }

/* ---- l'application : navigation noire, en-tête du dossier, étapes et portes */
.ap { display: grid; grid-template-columns: 15em minmax(0, 1fr); }
.ap-nav { display: flex; flex-direction: column; gap: 0.45em; padding: 1.45em 0.8em 1.1em; background: var(--ap-noir); color: var(--ap-nav); }
.ap-logo { display: block; width: 7.4em; height: auto; margin: 0 0.85em 1.4em; }
.ap-navlbl { margin-top: 0.3em; padding: 0 0.85em; font-size: 0.86em; }
.ap-navitems { display: flex; flex-direction: column; gap: 0.15em; }
.ap-navitems li { display: flex; align-items: center; gap: 0.85em; height: 2.8em; padding: 0 0.85em; border-radius: var(--ap-r); }
.ap-navitems li.est-on { background: var(--ap-noir-3); color: var(--ap-blanc); }
.ap-navitems svg { flex: none; width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ap-navitems b { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin-left: auto; padding: 0 0.45em; border-radius: 0.8em; background: var(--ap-rouge); font-size: 0.8em; font-weight: 600; color: var(--ap-blanc); }
.ap-navdos { display: flex; flex-direction: column; gap: 0.15em; padding: 0.75em 0.85em; border-radius: var(--ap-r); background: var(--ap-noir-2); font-size: 0.9em; line-height: 1.3; }
.ap-navdos strong { font-weight: 600; color: var(--ap-blanc); }
.ap-moi { display: flex; align-items: center; gap: 0.7em; margin-top: auto; padding: 1em 0.85em 0; border-top: 1px solid var(--ap-noir-3); font-size: 0.88em; line-height: 1.3; }
.ap-moi strong { display: block; font-weight: 600; color: var(--ap-blanc); }
.ap .ap-moi i { background: var(--ap-noir-3); box-shadow: none; }
.ap-main { min-width: 0; display: flex; flex-direction: column; }
.ap-tete { padding: 1.3em 1.9em 0; border-bottom: 1px solid var(--ap-filet); background: var(--ap-carte); }
.ap-fil { display: flex; gap: 0.5em; font-size: 0.9em; color: var(--ap-texte-2); }
.ap-fil span { color: var(--ap-texte-3); }
.ap-dossier { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2em; margin-top: 0.4em; }
.ap-dossier-texte { min-width: 0; }
.ap-titre { overflow: hidden; font-size: 1.36em; font-weight: 600; line-height: 1.25; letter-spacing: -0.012em; white-space: nowrap; text-overflow: ellipsis; }
.ap-meta { margin-top: 0.25em; font-size: 0.9em; color: var(--ap-texte-2); }
.ap-meta b { font-weight: 600; color: var(--ap-rouge); }
.ap-avs { flex: none; display: inline-flex; padding-top: 0.2em; }
.ap-avs i + i { margin-left: -0.18em; }
.ap i { display: inline-grid; place-items: center; flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--ap-encre); box-shadow: 0 0 0 2px var(--ap-carte); font-size: 0.78em; font-weight: 600; letter-spacing: 0.02em; color: var(--ap-blanc); }
.ap i.p2 { background: var(--ap-texte-2); }
.ap i.p3 { background: var(--ap-doux); box-shadow: inset 0 0 0 1px var(--ap-filet-2), 0 0 0 2px var(--ap-carte); color: var(--ap-encre); }
.ap-etapes { display: flex; gap: 1.8em; margin-top: 1.1em; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ap-etapes::-webkit-scrollbar { display: none; }
.ap-etapes li { position: relative; flex: none; display: inline-flex; align-items: center; gap: 0.45em; height: 3.2em; font-size: 0.93em; color: var(--ap-texte-3); transition: color 0.3s var(--ease); }
.ap-etapes li.est-fait { color: var(--ap-encre); }
.ap-etapes li.est-fait::before { content: ""; width: 0.62em; height: 0.34em; margin: -0.3em 0.12em 0 0; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.ap-etapes li.est-on { font-weight: 600; color: var(--ap-encre); }
.ap-etapes li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ap-rouge); transform: scaleX(0); transform-origin: left center; transition: transform 0.4s var(--ease); }
.ap-etapes li.est-on::after { transform: none; }
.ap-etapes small { padding: 0.12em 0.6em; border-radius: 1em; background: var(--ap-doux); font-size: 0.82em; font-weight: 600; color: var(--ap-texte-2); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.ap-etapes li.est-on small { background: none; box-shadow: inset 0 0 0 1px var(--ap-rouge); color: var(--ap-rouge); }
.ap-etapes li.est-fait small { background: var(--ap-encre); box-shadow: none; color: var(--ap-blanc); }

/* ---- les écrans (empilés : la fenêtre garde la hauteur du plus grand) */
.ap-ecrans { flex: 1; display: grid; }
.ap-ecran { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 1em; padding: 1.45em 1.9em 1.7em; visibility: hidden; opacity: 0; }
.ap-ecran.est-actif { visibility: visible; opacity: 1; }
.ap-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; }
.ap-h-titre { font-size: 1.55em; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.ap-h-titre span { color: var(--ap-texte-3); }
.ap-info { font-size: 0.9em; color: var(--ap-texte-2); white-space: nowrap; }
.ap-auteur { display: inline-flex; align-items: center; gap: 0.55em; align-self: center; }
.ap-auteur i { width: 2em; height: 2em; font-size: 0.8em; }
.ap-rouge { color: var(--ap-rouge) !important; }
.ap-liste { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ap-filet); border-radius: var(--ap-r); background: var(--ap-carte); }
.ap-liste li { position: relative; display: flex; align-items: center; gap: 0.9em; min-height: 3.3em; padding: 0.55em 1em; border-top: 1px solid var(--ap-filet); transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.ap-liste li:first-child { border-top: 0; }
.ap-ref { flex: none; width: 1.8em; font-size: 0.88em; color: var(--ap-texte-2); font-variant-numeric: tabular-nums; }
.ap-lib { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1em; line-height: 1.3; }
.ap-lib small { font-size: 0.82em; color: var(--ap-texte-3); }
.ap-st { flex: none; display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.86em; font-weight: 600; white-space: nowrap; }
.ap-st::before { content: ""; flex: none; width: 0.68em; height: 0.68em; background: currentColor; }
.ap-st--partiel, .ap-st--non, .ap-st--alerte { color: var(--ap-rouge); }
.ap-st--partiel::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.ap-st--alerte::before { transform: rotate(45deg) scale(0.85); }
.ap-st--verif { color: var(--ap-texte-2); }
.ap-st--verif::before { border-radius: 50%; background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.ap-bascule { display: grid; min-width: 0; }
.ap-bascule > * { grid-area: 1 / 1; min-width: 0; }
.ap-bouton { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; height: 2.6em; padding: 0 1.2em; border-radius: var(--ap-r); font-size: 0.93em; font-weight: 600; white-space: nowrap; }
.ap-bouton--rouge { background: var(--ap-rouge); color: var(--ap-blanc); }
.ap-bouton--sombre { height: 2.3em; padding: 0 1em; background: var(--ap-encre); font-size: 0.86em; color: var(--ap-blanc); }
.ap-bouton--contour { background: var(--ap-carte); box-shadow: inset 0 0 0 1px var(--ap-filet-2); color: var(--ap-encre); }
.ap-choix { display: flex; align-items: center; gap: 0.6em; min-height: 3.7em; padding: 0.55em 0.6em 0.55em 1em; border: 1px solid var(--ap-filet); border-radius: var(--ap-r); background: var(--ap-carte); }
.ap-choix > span:first-child { margin-right: auto; font-size: 0.92em; color: var(--ap-texte-2); }
.ap-porte { display: flex; align-items: center; gap: 0.9em; min-height: 3.7em; padding: 0.55em 1em; border-radius: var(--ap-r); background: var(--ap-encre); font-size: 0.92em; line-height: 1.3; color: color-mix(in srgb, var(--ap-blanc) 70%, var(--ap-encre)); }
.ap-porte b { display: block; font-size: 1.08em; font-weight: 600; color: var(--ap-blanc); }
.ap-coche { position: relative; flex: none; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--ap-rouge); }
.ap-coche::after { content: ""; position: absolute; left: 0.68em; top: 0.64em; width: 0.72em; height: 0.38em; border-left: 2px solid var(--ap-blanc); border-bottom: 2px solid var(--ap-blanc); transform: rotate(-45deg); }
.ap-coche--petite { width: 1.4em; height: 1.4em; }
.ap-coche--petite::after { left: 0.43em; top: 0.42em; width: 0.5em; height: 0.26em; border-width: 1.5px; }
.ap-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--ap-filet); border-radius: var(--ap-r); background: var(--ap-filet); }
.ap-stats p { display: flex; flex-direction: column; gap: 0.1em; padding: 0.8em 1em; background: var(--ap-carte); font-size: 0.86em; line-height: 1.3; color: var(--ap-texte-2); }
.ap-stats b { font-size: 1.9em; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--ap-encre); font-variant-numeric: tabular-nums; }
.ap-lbl { font-size: 0.8em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ap-texte-2); }

/* 1. Analyse : exigences et pièce ouverte au bon passage */
.ap-chips { display: flex; flex-wrap: wrap; gap: 0.45em; }
.ap-chips span { display: inline-flex; align-items: center; gap: 0.45em; height: 2.3em; padding: 0 0.95em; border-radius: 1.15em; background: var(--ap-carte); box-shadow: inset 0 0 0 1px var(--ap-filet-2); font-size: 0.9em; }
.ap-chips b { font-weight: 600; color: var(--ap-texte-2); }
.ap-chips .est-on { background: var(--ap-encre); box-shadow: none; color: var(--ap-blanc); }
.ap-chips .est-on b { color: inherit; opacity: 0.7; }
.ap-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 1.1em; align-items: stretch; }
.ap-ecran.est-fait .ap-exig-cible { background: color-mix(in srgb, var(--ap-rouge-pale) 55%, var(--ap-carte)); box-shadow: inset 3px 0 0 var(--ap-rouge); }
.ap-vide { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8em; padding: 1.5em; border: 1px dashed var(--ap-filet-2); border-radius: var(--ap-r); font-size: 0.92em; text-align: center; color: var(--ap-texte-2); }
.ap-vide svg { width: 2.1em; height: 2.1em; fill: none; stroke: var(--ap-texte-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ap-vide p { max-width: 16em; }
.ap-piece { display: flex; flex-direction: column; gap: 0.8em; padding: 1em; border: 1px solid var(--ap-filet); border-radius: var(--ap-r); background: var(--ap-doux-2); }
.ap-piece-tete { display: flex; flex-direction: column; gap: 0.1em; font-size: 0.9em; color: var(--ap-texte-2); }
.ap-piece-tete strong { font-weight: 600; color: var(--ap-encre); }
.ap-page { display: flex; flex-direction: column; gap: 0.6em; padding: 1.1em 1.15em; background: var(--ap-carte); box-shadow: 0 0 0 1px var(--ap-filet), 0 8px 16px -12px color-mix(in srgb, var(--ap-noir) 30%, transparent); }
.ap-ligne { display: block; width: var(--l, 100%); height: 0.42em; border-radius: 0.21em; background: var(--ap-doux); }
.ap-passage { margin: 0.15em -0.35em; padding: 0.55em 0.75em; background: var(--ap-rouge-pale); box-shadow: inset 3px 0 0 var(--ap-rouge); font-size: 0.92em; line-height: 1.45; }
.ap-passage span { display: block; margin-bottom: 0.2em; font-size: 0.86em; font-weight: 600; color: var(--ap-rouge); }
.ap-statut { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 0.65em 0.8em; border: 1px solid var(--ap-rouge-filet); border-radius: var(--ap-r); background: var(--ap-carte); }
.ap-statut p { display: flex; flex-direction: column; font-size: 0.86em; color: var(--ap-texte-2); }
.ap-statut b { font-size: 1.16em; font-weight: 600; color: var(--ap-rouge); }

/* 2. Go / no-go : vos règles contre ce DCE */
.ap-val { flex: none; width: 34%; font-size: 0.92em; color: var(--ap-texte-2); font-variant-numeric: tabular-nums; }
.ap-regles .ap-st { width: 7.4em; }

/* 3. Plan : les points par partie, une personne par partie */
.ap-points { display: flex; gap: 3px; }
.ap-points span { flex: var(--p) 1 0; display: grid; place-items: center; height: 2.35em; overflow: hidden; border-radius: 3px; background: var(--ap-encre); font-size: 0.84em; font-weight: 600; color: var(--ap-blanc); white-space: nowrap; transform-origin: left center; }
.ap-points span:nth-child(2) { background: var(--ap-texte-2); }
.ap-points span:nth-child(3) { background: var(--ap-noir-3); }
.ap-points span:nth-child(4) { background: var(--ap-filet-2); color: var(--ap-encre); }
.ap-pts { flex: none; width: 4.4em; font-size: 0.9em; text-align: right; color: var(--ap-texte-2); font-variant-numeric: tabular-nums; }
.ap-parties i { width: 2.2em; height: 2.2em; font-size: 0.8em; }

/* 4. Rédaction : le mémoire en couleurs */
.ap-memo { display: grid; grid-template-columns: minmax(0, 1fr) 15.5em; gap: 1.1em; align-items: start; }
.ap-feuille { display: flex; flex-direction: column; gap: 0.8em; padding: 1.35em 1.6em 1.2em; border: 1px solid var(--ap-filet); border-radius: var(--ap-r); background: var(--ap-carte); }
.ap-bloc { font-weight: 600; }
.ap-redac { line-height: 1.7; }
.ap-hl { padding: 0.1em 0.22em; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ap-hl--jaune { background: var(--ap-jaune); }
.ap-hl--turquoise { background: var(--ap-turquoise); }
.ap-hl--rouge { background: var(--ap-rouge-pale); box-shadow: inset 2px 0 0 var(--ap-rouge); font-weight: 600; color: var(--ap-rouge); }
.ap-champ { position: relative; display: inline-grid; vertical-align: baseline; }
.ap-champ > * { grid-area: 1 / 1; justify-self: start; }
.ap-saisie { font-weight: 600; white-space: nowrap; }
.ap-sources { display: flex; flex-wrap: wrap; gap: 0.3em 0.9em; padding-top: 0.75em; border-top: 1px solid var(--ap-filet); font-size: 0.84em; color: var(--ap-texte-2); }
.ap-sources span { text-decoration: underline; text-decoration-color: var(--ap-filet-2); text-underline-offset: 0.25em; }
.ap-cote { display: flex; flex-direction: column; gap: 0.7em; padding: 1.1em; border: 1px solid var(--ap-filet); border-radius: var(--ap-r); background: var(--ap-carte); }
.ap-cle { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25em; font-size: 0.88em; color: var(--ap-texte-2); }
.ap-cle .ap-hl { font-weight: 600; color: var(--ap-encre); }
.ap-cle .ap-hl--rouge { color: var(--ap-rouge); }
.ap-etat-zone { margin-top: 0.3em; padding-top: 0.85em; border-top: 1px solid var(--ap-filet); }
.ap-etat { display: flex; align-items: center; gap: 0.6em; font-size: 0.92em; font-weight: 600; color: var(--ap-rouge); }
.ap-etat--ok { color: var(--ap-encre); }
.ap-puce { flex: none; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--ap-rouge); }

/* 5. Relecture : la note estimée, fourchette par partie */
.ap-fourchette { position: relative; flex: 0 0 26%; height: 0.5em; border-radius: 0.25em; background: var(--ap-doux); }
.ap-fourchette > span { position: absolute; top: 0; bottom: 0; left: calc(var(--de) * 100%); width: calc((var(--a) - var(--de)) * 100%); border-radius: 0.25em; background: var(--ap-encre); transform-origin: left center; }
.ap-notes .ap-val { width: 6em; text-align: right; color: var(--ap-encre); }

/* ---- l'écran d'accueil : « Commencer la visite » */
.demoapp__intro { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 24px; border-radius: 10px; background: color-mix(in srgb, var(--ap-noir) 62%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: var(--ap-blanc); text-align: center; cursor: pointer; }
.demoapp__intro[hidden] { display: none; }
.demoapp__intro.est-sorti { opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
.demoapp__intro-carte { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 32rem; }
.demoapp__intro-etiquette { display: block; line-height: 1.6; text-wrap: balance; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--ap-blanc) 78%, transparent); }
.demoapp__intro-etiquette::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 1px 0; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.demoapp__intro-titre { font-family: var(--f-titre); font-size: clamp(1.6rem, 0.9rem + 2.4cqw, 2.9rem); font-weight: var(--titre-graisse); font-stretch: var(--titre-etirement); line-height: 1.02; letter-spacing: var(--titre-interlettrage); text-wrap: balance; }
.demoapp__intro-texte { max-width: 26rem; font-size: var(--t-petit); line-height: 1.5; color: color-mix(in srgb, var(--ap-blanc) 82%, transparent); text-wrap: pretty; }
.demoapp__commencer { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 54px; margin-top: 10px; padding: 0 26px; background: var(--accent); font-size: 1rem; font-weight: 700; color: var(--sur-accent); transition: background-color 0.15s var(--ease), color 0.15s var(--ease); }
.demoapp__commencer::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.demoapp--anime .demoapp__commencer::after { animation: demo-appel-site 1.8s ease-out infinite; }
.demoapp__commencer:hover, .demoapp__commencer:focus-visible { background: var(--ap-blanc); color: var(--ap-encre); }
.demoapp__commencer:focus-visible { outline: 2px solid var(--ap-blanc); outline-offset: 3px; }

/* ---- le curseur fantôme (montre où cliquer) et l'anneau de la cible */
.demoapp__indice { position: absolute; left: 0; top: 0; z-index: 8; width: 22px; height: 28px; opacity: 0; pointer-events: none; }
.demoapp__indice svg { display: block; width: 100%; height: 100%; overflow: visible; fill: var(--ap-encre); stroke: var(--ap-blanc); stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 3px 4px color-mix(in srgb, var(--ap-noir) 40%, transparent)); }
.demoapp__indice::before { content: ""; position: absolute; left: -15px; top: -15px; width: 32px; height: 32px; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; }
.demoapp--anime .demoapp__indice.est-actif { animation: demo-indice 3.4s var(--ease) infinite; }
.demoapp--anime .demoapp__indice.est-actif::before { animation: demo-indice-onde 3.4s ease-out infinite; }
/* le visiteur a trouvé : le curseur fantôme s'efface pendant qu'il survole ce qu'il faut cliquer */
.demoapp__scene:has(.est-actif:not(.est-fait) [data-demo-cible]:hover, .demoapp__commencer:hover, .demoapp__bulle-bouton:hover) .demoapp__indice { visibility: hidden; }
.demoapp__anneau { position: absolute; left: 0; top: 0; z-index: 3; width: 0; height: 0; border-radius: 8px; opacity: 0; pointer-events: none; box-shadow: 0 0 0 2px var(--ap-rouge), 0 0 0 200vmax color-mix(in srgb, var(--ap-noir) 32%, transparent); transition: opacity 0.3s var(--ease); }
.demoapp__anneau.est-visible { opacity: 1; }
.demoapp__anneau::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.demoapp--anime .demoapp__anneau.est-visible::after { animation: demo-appel 1.6s ease-out infinite; }
.demoapp--partie .ap-ecran.est-actif:not(.est-fait) [data-demo-cible] { cursor: pointer; }

/* ---- la bulle de la visite (comme la visite guidée de l'application) */
.demoapp__bulle { position: absolute; left: 0; top: 0; z-index: 5; width: min(22.5rem, calc(100% - 24px)); display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; border-radius: 8px; background: var(--ap-encre); color: var(--ap-blanc); box-shadow: 0 16px 36px -10px color-mix(in srgb, var(--ap-noir) 50%, transparent); text-align: left; }
.demoapp__bulle[hidden] { display: none; }
.demoapp--anime .demoapp__bulle.est-pose { animation: demo-bulle 0.32s var(--ease) both; }
.demoapp__bec { position: absolute; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); }
.demoapp__bulle[data-cote="bas"] .demoapp__bec { top: -6px; left: var(--bec, 24px); }
.demoapp__bulle[data-cote="haut"] .demoapp__bec { bottom: -6px; left: var(--bec, 24px); }
.demoapp__bulle[data-cote="gauche"] .demoapp__bec { right: -6px; top: var(--bec, 24px); }
.demoapp__bulle[data-cote="droite"] .demoapp__bec { left: -6px; top: var(--bec, 24px); }
.demoapp__bulle-etape { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-sur-nuit); }
.demoapp__bulle-texte { font-size: 15px; font-weight: 500; line-height: 1.45; text-wrap: pretty; }
.demoapp__bulle-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 4px; }
.demoapp__bulle-bouton { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; background: var(--accent); font-size: 14px; font-weight: 700; color: var(--sur-accent); white-space: nowrap; transition: background-color 0.15s var(--ease), color 0.15s var(--ease); }
.demoapp__bulle-bouton::after { content: "→"; }
.demoapp__bulle-bouton:hover, .demoapp__bulle-bouton:focus-visible { background: var(--ap-blanc); color: var(--ap-encre); }
.demoapp__bulle-lien { font-size: 14px; font-weight: 600; color: var(--ap-blanc); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.3em; }
.demoapp__bulle-lien:hover { color: var(--accent-sur-nuit); }
.demoapp__bulle-bouton:focus-visible, .demoapp__bulle-lien:focus-visible { outline: 2px solid var(--ap-blanc); outline-offset: 3px; }
/* démonstration étroite : la bulle se pose sous la fenêtre */
.demoapp__bulle--ancree { position: relative; left: auto !important; top: auto !important; width: auto; margin-top: 12px; }
.demoapp__bulle--ancree .demoapp__bec { display: none; }

/* ---- chapitres et sous-titres */
.demoapp__pied { display: flex; align-items: flex-start; gap: clamp(12px, 2.2cqw, 32px); }
.demoapp__chapitres { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.4cqw, 20px); margin: 0; padding: 0; list-style: none; }
.demoapp__chapitre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; width: 100%; padding: 0 0 4px; text-align: left; color: var(--texte-2); transition: color 0.15s var(--ease); }
.demoapp__jauge { position: relative; flex: 0 0 100%; display: block; height: 3px; margin-bottom: 10px; overflow: hidden; background: var(--papier-3); transition: background-color 0.15s var(--ease); }
.demoapp__jauge > span { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.demoapp--anime .demoapp__jauge > span { transition: transform 0.45s var(--ease); }
.demoapp__chapitre.est-courant .demoapp__jauge > span { transform: scaleX(0.14); }
.demoapp__chapitre.est-fait .demoapp__jauge > span { transform: none; }
.demoapp__num { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; }
.demoapp__nom { font-size: var(--t-petit); font-weight: 600; }
.demoapp__chapitre:hover, .demoapp__chapitre.est-courant { color: var(--encre); }
.demoapp__chapitre:hover .demoapp__jauge { background: var(--filet); }
.demoapp__chapitre.est-courant .demoapp__num { color: var(--accent-texte); }
.demoapp__chapitre.est-fait .demoapp__num::before { content: "✓ "; color: var(--accent-texte); }
.demoapp__legendes { display: grid; }
.demoapp__legende { grid-area: 1 / 1; max-width: 44rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); font-weight: 600; line-height: 1.35; color: var(--encre); text-wrap: balance; visibility: hidden; opacity: 0; }
.demoapp__legende.est-actif { visibility: visible; opacity: 1; }
/* sans script : le premier écran, fait ; ni accueil, ni chapitres, ni curseur */
.demoapp:not(.demoapp--js) .avant { visibility: hidden; }
.demoapp:not(.demoapp--js) .demoapp__aide, .demoapp:not(.demoapp--js) .demoapp__pied, .demoapp:not(.demoapp--js) .demoapp__indice, .demoapp:not(.demoapp--js) .demoapp__anneau { display: none; }

/* ---- le mouvement (seulement sous .demoapp--anime, posé par le script hors mouvement réduit) */
.demoapp--js .ap-ecran:not(.est-fait) .apres, .demoapp--js .ap-ecran.est-fait .avant { visibility: hidden; opacity: 0; }
.demoapp--anime .ap-ecran { transition: opacity 0.22s ease-in, visibility 0s linear 0.22s; }
.demoapp--anime .ap-ecran.est-actif { transition: opacity 0.3s var(--ease) 0.1s, visibility 0s; }
.demoapp--anime .ap-ecran .e { opacity: 0; transform: translateY(0.7em); transition: opacity 0.2s ease, transform 0.2s ease; }
.demoapp--anime .ap-ecran.est-actif .e { opacity: 1; transform: none; transition: opacity 0.45s var(--ease) calc(0.15s + var(--i, 0) * 75ms), transform 0.6s var(--ease-lent) calc(0.15s + var(--i, 0) * 75ms); }
.demoapp--anime .ap-ecran .avant { transition: opacity 0.18s ease, visibility 0s linear 0.18s; }
.demoapp--anime .ap-ecran .apres, .demoapp--anime .ap-ecran .j { opacity: 0; transform: translateY(0.5em); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s; }
.demoapp--anime .ap-ecran.est-fait .apres { opacity: 1; transform: none; transition: opacity 0.4s var(--ease) 0.12s, transform 0.55s var(--ease-lent) 0.12s, visibility 0s; }
.demoapp--anime .ap-ecran.est-fait .j { opacity: 1; transform: none; transition: opacity 0.4s var(--ease) calc(0.2s + var(--j, 0) * 120ms), transform 0.55s var(--ease-lent) calc(0.2s + var(--j, 0) * 120ms); }
.demoapp--anime .ap-ecran.est-fait .ap-saisie { animation: demo-ecrit 0.75s steps(14, end) 0.15s both; }
.demoapp--anime .ap-points span { transform: scaleX(0); transition: transform 0.2s ease; }
.demoapp--anime .ap-ecran.est-actif .ap-points span { transform: none; transition: transform 0.6s var(--ease-lent) 0.35s; }
.demoapp--anime .ap-ecran.est-actif .ap-points span:nth-child(2) { transition-delay: 0.45s; }
.demoapp--anime .ap-ecran.est-actif .ap-points span:nth-child(3) { transition-delay: 0.55s; }
.demoapp--anime .ap-ecran.est-actif .ap-points span:nth-child(4) { transition-delay: 0.65s; }
.demoapp--anime .ap-fourchette > span { transform: scaleX(0); transition: transform 0.2s ease; }
.demoapp--anime .ap-ecran.est-actif .ap-fourchette > span { transform: none; transition: transform 0.6s var(--ease-lent) calc(0.45s + var(--i, 0) * 75ms); }
.demoapp--anime .demoapp__legende { transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
.demoapp--anime .demoapp__legende.est-actif { transition: opacity 0.35s var(--ease) 0.15s, visibility 0s; }
@keyframes demo-direct { 50% { opacity: 0.25; } }
@keyframes demo-indice { 0% { opacity: 0; transform: translate(46px, 38px); } 10% { opacity: 1; } 38% { transform: none; } 43% { transform: scale(0.8); } 49% { transform: none; } 72% { opacity: 1; transform: none; } 82%, 100% { opacity: 0; transform: none; } }
@keyframes demo-indice-onde { 0%, 41% { opacity: 0; transform: scale(0.3); } 43% { opacity: 0.95; transform: scale(0.3); } 66%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes demo-appel-site { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--accent) 0%, transparent); } }
@keyframes demo-appel { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ap-rouge) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 0.9em color-mix(in srgb, var(--ap-rouge) 0%, transparent); } }
@keyframes demo-bulle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes demo-ecrit { from { clip-path: inset(-25% 100% -25% 0); } to { clip-path: inset(-25% -2px -25% 0); } }

/* ---- largeurs : sans barre latérale, puis en une colonne (téléphone) */
@container demoapp (max-width: 980px) {
  .ap { grid-template-columns: minmax(0, 1fr); }
  .ap-nav { display: none; }
}
@container demoapp (max-width: 720px) {
  .demoapp__chemin, .ap-fil { display: none; }
  .ap-tete { padding: 1.05em 1.15em 0; }
  .ap-ecran { padding: 1.15em 1.15em 1.3em; }
  .ap-memo { grid-template-columns: minmax(0, 1fr); }
  .ap-cote { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 0.6em 0.9em; }
  .ap-cote .ap-lbl { display: none; }
  .ap-etat-zone { grid-column: 1 / -1; margin-top: 0; }
  .ap-regles .ap-val { width: 30%; }
}
@container demoapp (max-width: 560px) {
  .demoapp__fenetre { font-size: 11.5px; }
  .demoapp__chrome { grid-template-columns: auto minmax(0, 1fr); gap: 0.9em; }
  .demoapp__url { grid-column: auto; justify-self: start; }
  .ap-avs { display: none; }
  .ap-titre { white-space: normal; font-size: 1.2em; }
  .ap-h-titre { font-size: 1.35em; }
  .ap-h .ap-info:not(.ap-auteur) { display: none; }
  .ap-split { grid-template-columns: minmax(0, 1fr); }
  .ap-exig li:nth-child(1), .ap-exig li:nth-child(3), .ap-exig li:nth-child(5) { display: none; }
  .ap-chips span:nth-child(n+3) { display: none; }
  .ap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-regles li:nth-child(2), .ap-regles li:nth-child(3), .ap-regles .ap-val { display: none; }
  .ap-parties li:nth-child(4) { display: none; }
  .ap-points span { font-size: 0.76em; }
  .ap-cote { grid-template-columns: minmax(0, 1fr); }
  .ap-cote .ap-cle { display: none; }
  .ap-etat-zone { padding-top: 0; border-top: 0; }
  .ap-notes .ap-fourchette { display: none; }
  .ap-feuille { padding: 1.1em 1.15em; }
  .demoapp__nom { display: none; }
  .demoapp__aide { display: none; }
  .demoapp__intro-texte { display: none; }
  .demoapp__chapitres { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .demoapp *, .demoapp *::before, .demoapp *::after { transition: none !important; animation: none !important; }
}
