/* ==========================================================================
   OfficeMetrics · landing V8 (maquette locale) · socle commun
   Jetons, typographie, grille, en-tête (deux menus, tiroir du téléphone), rangées (et, V8, la ligne
   de gain), cadres, boutons, souris des scènes (V8), utilitaires de mouvement, grands titres,
   appel final, pied de page, mouvement réduit, téléphone.
   V8 : noir et blanc ; les jetons verts et jaunes (--green*, --yellow*) sont retirés : plus rien ne s'en servait.
   Les styles de chaque cadre vivent dans styles/<nom>.css (préfixe .cadre-<nom>).
   ========================================================================== */

:root {
  /* Couleurs : page blanche, gris chauds uniquement */
  --ink: #1a1a1a;
  --muted: #70706a;
  --faint: #a5a59f;
  --hint: #76766f;          /* invite de la barre (4,6:1 sur blanc) */
  --page: #ffffff;
  --surface: #ffffff;
  --raised: #fafaf8;        /* panneaux */
  --hover: #ecece8;
  --hairline: #e2e2dc;      /* filets de 0,5 px */
  --line: #d6d6d0;          /* traits de plan de 0,75 px */
  --frame-top: #ecece8;     /* cadres des parties : dégradé vers #f4f4f2 */
  --frame-bottom: #f4f4f2;
  --window: #fbfbfa;
  --stone: #5f5d57;         /* « Comment ça marche » (hero.css) */
  --btn: linear-gradient(#2e2e2e, #141414);
  --btn-hover: linear-gradient(#3a3a3a, #1e1e1e);

  /* Polices (Google Fonts) */
  --font-voice: "Source Serif 4", Georgia, serif;                       /* voix de l'IA, grands titres */
  --font-ui: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; /* interface */
  --font-data: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;  /* initiales des mois, adresse à copier */

  /* Échelle typographique */
  --fs-cta: 56px; --fs-h2: 44px;   /* l'appel final et le grand titre referment la page à la taille du H1 */
  --lh-display: 1.05; --ls-display: -0.02em;
  --fs-partie: 30px; --lh-partie: 36px;  /* titres des parties, police de la voix */
  --fs-body: 15px; --lh-body: 1.625;
  --fs-row: 16px; --lh-row: 1.6;       /* phrase des rangées, comme chez Klar */
  --fs-ui: 14px; --fs-tag: 13px; --fs-meta: 12px; --fs-data: 11px;

  /* Grille et rythme */
  --container: 1200px;
  --gutter: 24px;
  --frame-w: clamp(480px, 52vw, 640px); --frame-h: 512px;   /* cadre sur ordinateur (rapport 1,25) */
  --frame-h-tel: 420px;                 /* cadre sur téléphone (largeur = écran − 32 px) */
  --frame-inset: 40px;                  /* la fenêtre commence à 40 px du bord gauche et du haut */
  --frame-inset-top: 40px;              /* au-dessus : la bande de la légende */
  --window-w: 720px; --window-h: 560px; /* fenêtre par défaut : elle déborde à droite et en bas */
  --row-gap-x: clamp(48px, 5vw, 72px); --row-gap-y: 144px;   /* même écart texte-image des deux côtés */
  --bar-w: 720px; --bar-h: 64px;     /* la barre du haut, une seule rangée (hero.css) */
  --section-gap: 160px; --cta-top: 200px;

  /* Rayons */
  --r-frame: 16px; --r-sheet: 6px; --r-tile: 12px; --r-window: 16px; --r-bar: 20px; --r-pill: 9999px;

  /* Ombres, à peine visibles */
  --sh-bar: 0 2px 12px rgba(26, 26, 26, .05);
  --sh-window: inset 0 1px 0 rgba(255, 255, 255, .9), -14px 0 28px -16px rgba(26, 26, 26, .14), 0 18px 40px -24px rgba(26, 26, 26, .12);
  --sh-float: 0 10px 40px -12px rgba(26, 26, 26, .14);
  --sh-tile: inset 0 1.5px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(0, 0, 0, .05), 0 14px 30px -12px rgba(0, 0, 0, .14);

  /* Courbes */
  --om-out: cubic-bezier(.2, .6, .3, 1);
  --om-in: cubic-bezier(.5, 0, .75, 0);
  --om-inout: cubic-bezier(.45, 0, .25, 1);
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;                 /* aucun défilement horizontal */
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { flex: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 11px 14px; border-radius: var(--r-pill);   /* 45 px de haut : cible tactile de 44 px */
  background: var(--ink); color: #fff; font-size: var(--fs-ui); text-decoration: none;
  translate: 0 -200%;
}
.evitement:focus { translate: 0 0; }

.conteneur { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
/* Les comptes restent en Geist, chiffres de largeur égale */
.chiffre { font-family: var(--font-ui); font-weight: 400; font-variant-numeric: tabular-nums; }

/* Icônes au trait, une seule famille (sprite en haut de index.html) */
.ic {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --- Boutons ------------------------------------------------------------- */
.pilule {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border: 0; border-radius: var(--r-pill);
  font: 400 var(--fs-ui)/20px var(--font-ui);
  white-space: nowrap; text-decoration: none;
  transition: background 150ms var(--om-out), box-shadow 150ms var(--om-out);
}
.pilule-noire {
  background: var(--btn); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .18);
}
.pilule-noire:hover { background: var(--btn-hover); }
.pilule-grande { height: 40px; padding: 0 20px; }

.rond {
  display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 .5px var(--line);
  transition: background 150ms var(--om-out);
}
.rond:hover { background: #f4f4f1; }

/* --- En-tête ------------------------------------------------------------- *
   Ordinateur : le nom | « Produit ▾ » « Nos offres ▾ » au centre | « Se connecter », « Demander une démo ».
   Menus (base.js) : .ouvert sur .entete-groupe, au survol et au clic ; Échap, clic dehors et sortie de
   la zone les ferment ; un seul à la fois. Panneau blanc, filet 0,5 px, ombre douce, apparition 180 ms.
   Sous 900 px : sigle, « Demander une démo » et ≡, qui ouvre le tiroir (popover natif).                */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  height: 64px; padding: 0 8px 0 10px;
  background: var(--page);
  border-bottom: .5px solid transparent;
  transition: translate 280ms var(--om-out), border-color 200ms var(--om-out);
}
.entete.defile { border-bottom-color: #e6e6e0; }   /* posé par base.js dès que la page défile */
.entete.cache { translate: 0 -100%; }
.entete-logo {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 8px; color: var(--ink); text-decoration: none; border-radius: 10px;
}
.entete-logo svg { width: 24px; height: 24px; }
.entete-nom { font: 500 16px/20px var(--font-ui); letter-spacing: -0.01em; }
.entete-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.entete-lien, .entete-declencheur {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px;
  border: 0; border-radius: var(--r-pill); background: none; color: var(--ink); text-decoration: none;
  font: 400 var(--fs-ui)/20px var(--font-ui); white-space: nowrap;
  transition: background 150ms var(--om-out);
}
.entete-lien:hover, .entete-declencheur:hover, .entete-groupe.ouvert .entete-declencheur { background: #f4f4f1; }
.entete-nav { display: flex; gap: 2px; }

/* Les deux menus */
.entete-groupe { position: relative; }
.entete-declencheur { gap: 4px; padding: 0 10px 0 12px; }
.chevron { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: rotate 180ms var(--om-out); }
.entete-declencheur .chevron { color: var(--muted); }
.entete-groupe.ouvert .chevron { rotate: 180deg; }
.entete-panneau {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 1;
  padding: 6px; border-radius: 14px;
  background: var(--surface); color: var(--ink); text-align: left;
  box-shadow: 0 0 0 .5px var(--line), var(--sh-float);
  visibility: hidden; opacity: 0; translate: -50% -4px;
  transition: opacity 180ms var(--om-out), translate 180ms var(--om-out), visibility 0s linear 180ms;
}
.entete-groupe.ouvert .entete-panneau { visibility: visible; opacity: 1; translate: -50% 0; transition-delay: 0s; }
.entete-panneau::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }   /* pont de survol */
/* Une ligne du menu Produit (aussi dans le tiroir) : le verbe, puis sa promesse en gris */
.entete-panneau-produit a, .tiroir-liste a {
  display: grid; gap: 1px; padding: 9px 12px;
  border-radius: 9px; color: var(--ink); text-decoration: none;
  transition: background 150ms var(--om-out);
}
.entete-panneau-produit a:hover, .tiroir-liste a:hover { background: #f6f6f4; }
/* Ordinateur : une ligne par partie, « Trouver · Une sélection disponible immédiatement » (SPEC-V7) ; le tiroir garde deux lignes */
.entete-panneau-produit { width: 420px; }
.entete-panneau-produit a { display: flex; align-items: baseline; gap: 6px; }
.entete-panneau-produit .entete-item-nom { flex: none; }
.entete-panneau-produit .entete-item-nom::after { content: " ·"; color: var(--muted); }
.entete-panneau a:focus-visible, .tiroir a:focus-visible, .tiroir summary:focus-visible { outline-offset: -2px; }
.entete-item-nom { font: 500 var(--fs-ui)/20px var(--font-ui); }
.entete-item-desc { font: 400 var(--fs-tag)/18px var(--font-ui); color: var(--muted); }   /* 4,6:1 sur #f6f6f4 */
/* Nos offres : un seul volet depuis le 17/11/26 ; le filet sépare deux volets s'il en revient un */
.entete-panneau-offres { display: grid; grid-template-columns: 232px; }
.entete-volet { display: flex; flex-direction: column; align-items: flex-start; padding: 14px 16px 16px; }
.entete-panneau-offres .entete-volet + .entete-volet { box-shadow: inset .5px 0 0 var(--hairline); }
.entete-volet-titre { font: 500 var(--fs-ui)/20px var(--font-ui); }
.entete-volet-texte { margin: 4px 0 16px; font: 400 var(--fs-tag)/20px var(--font-ui); color: var(--muted); text-wrap: pretty; }
.entete-volet .pilule, .entete-volet-lien { margin-top: auto; }
.entete-volet-lien {
  display: inline-flex; align-items: center; height: 36px;
  color: var(--ink); text-decoration: none; font: 400 var(--fs-ui)/20px var(--font-ui); white-space: nowrap;
}
.entete-volet-lien .fleche { display: inline-block; margin-left: 6px; color: var(--muted); transition: translate 200ms var(--om-out), color 200ms var(--om-out); }
.entete-volet-lien:hover .fleche { translate: 3px 0; color: var(--ink); }

/* Le bouton ≡ et le tiroir du téléphone */
.entete-actions .entete-menu { display: none; }
.entete-menu .ic-fermer, .entete:has(.tiroir:popover-open) .entete-menu .ic-ouvrir { display: none; }
.entete:has(.tiroir:popover-open) .entete-menu .ic-fermer { display: block; }
.tiroir {
  position: fixed; inset: 64px 0 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0;
  padding: 4px var(--gutter) 32px; overflow-y: auto; overscroll-behavior: contain;
  border: 0; border-top: .5px solid #e6e6e0; background: var(--page); color: var(--ink);
  opacity: 1; translate: 0 0;
  transition: opacity 180ms var(--om-out), translate 180ms var(--om-out), display 180ms allow-discrete, overlay 180ms allow-discrete;
}
.tiroir:not(:popover-open) { opacity: 0; translate: 0 -6px; }
@starting-style { .tiroir:popover-open { opacity: 0; translate: 0 -6px; } }
.tiroir-groupe { border-bottom: .5px solid var(--hairline); }
.tiroir summary, .tiroir-lien {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 4px;
  font: 500 17px/24px var(--font-ui); color: var(--ink); text-decoration: none;
  list-style: none; cursor: pointer; border-radius: 8px;
}
.tiroir summary::-webkit-details-marker { display: none; }
.tiroir summary .chevron { width: 14px; height: 14px; color: var(--muted); }
.tiroir-groupe[open] > summary .chevron { rotate: 180deg; }
.tiroir-liste { padding: 0 0 12px; }
.tiroir-liste a { padding: 10px 4px; }
.tiroir-liste .entete-item-nom { font-size: 15px; line-height: 22px; }
.tiroir-volets { display: grid; gap: 8px; padding: 0 0 16px; }
.tiroir-volets .entete-volet { padding: 12px 16px 16px; border-radius: 12px; background: var(--raised); box-shadow: inset 0 0 0 .5px #efefea; }
.tiroir-volets .pilule { align-self: stretch; height: 44px; }
.tiroir-volets .entete-volet-lien { height: 44px; }
@media (max-width: 899px) {
  .entete { display: flex; justify-content: space-between; }
  .entete-nav, .entete-actions .entete-connexion { display: none; }
  .entete-actions .entete-menu { display: grid; }
  html:has(.tiroir:popover-open) { overflow: hidden; }   /* la page ne défile pas sous le tiroir */
}
@media (min-width: 900px) { .tiroir { display: none; } }   /* ordinateur : jamais de tiroir */

/* --- Personnage de l'appel final (le haut de page n'en a plus en V6) -----------------
   Le sigle avec deux yeux, immobile : hero.js lui fait faire un seul clin d'œil quand l'appel
   est à moitié à l'écran. Ni clignement en boucle ni « respiration » : la page reste calme. */
.perso-hoche { display: block; width: 44px; height: 44px; margin-bottom: 20px; color: var(--ink); }
.perso { display: block; width: 100%; height: 100%; overflow: visible; }
.perso .pupilles { translate: 0 6px; }   /* il regarde le titre, dessous */

/* Grands titres en serif : coupe optique fixée à 28 (la coupe « Display » auto est trop contrastée) */
.grand-titre, .appel-titre { font-variation-settings: "opsz" 28; font-weight: 420; }

/* --- Parties (gabarit, voir CONVENTIONS.md) --------------------------------
   <section class="rangee [visuel-droite]"> : le cadre, puis .rangee-texte avec
   le verbe seul, le titre en deux lignes, la phrase (V5 : ni numéro, ni bulle,
   ni pastilles, ni lien d'action).                                             */
.rangees { display: flex; flex-direction: column; gap: var(--row-gap-y); }
.rangee {
  display: grid;
  grid-template-columns: minmax(0, var(--frame-w)) minmax(320px, 1fr);
  column-gap: var(--row-gap-x);
  align-items: center;
  scroll-margin-top: max(24px, (100svh - var(--frame-h)) / 2); /* une ancre centre le cadre */
}
/* Alternance (V7) : visuel à droite pour Comparer et Pour les brokers ; à gauche pour Trouver et Négocier ; le texte reste aligné à gauche */
@media (min-width: 900px) {
  .rangee.visuel-droite { grid-template-columns: minmax(320px, 1fr) minmax(0, var(--frame-w)); }
  .rangee.visuel-droite > .cadre { grid-area: 1 / 2; }
  .rangee.visuel-droite > .rangee-texte { grid-area: 1 / 1; }
}

/* 1. Le verbe seul (« Trouver »), à l'encre : il répond au menu « Produit » */
.mot-cle {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 16px;
  font: 500 var(--fs-tag)/20px var(--font-ui); color: var(--ink);
}

/* 2. Le titre, dans la police de la voix (30 px, 24 px sur téléphone) */
.rangee-titre {
  font-family: var(--font-voice); font-size: var(--fs-partie); line-height: var(--lh-partie);
  font-weight: 420; font-variation-settings: "opsz" 28; letter-spacing: -0.015em;
  text-wrap: balance;
}
.rangee-titre .ligne { display: block; text-wrap: balance; }   /* les deux lignes sont écrites dans le HTML */
/* 3. La phrase */
.rangee-phrase { margin-top: 12px; font-size: var(--fs-row); line-height: var(--lh-row); color: var(--ink); text-wrap: pretty; }
/* 3 bis (V8, de l'atelier). La ligne de gain, juste après la phrase : Geist 500, gris foncé (9:1 sur blanc),
   petite icône au trait à gauche. Trouver et Négocier ; pas le bloc brokers. */
.rangee-gain {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font: 500 var(--fs-ui)/20px var(--font-ui); color: #46463f;
}
.rangee-gain .ic { width: 16px; height: 16px; }
/* 4. Bloc brokers seulement : le bouton noir et sa ligne dessous */
.rangee-actions { margin-top: 24px; }
.rangee-actions p { margin-top: 10px; font-size: var(--fs-tag); line-height: 20px; color: var(--muted); }

/* Le cadre : fond gris, coins arrondis ; la fenêtre de l'application déborde à droite et en bas */
.cadre {
  --muted: #64645e;             /* un gris plus sombre sur le fond du cadre : 5:1 au moins */
  position: relative;
  width: 100%; aspect-ratio: 640 / 512;
  overflow: hidden; isolation: isolate;
  border-radius: var(--r-frame);
  background: linear-gradient(var(--frame-top), var(--frame-bottom));
}
.cadre > [class*="cadre-"] { position: absolute; inset: 0; transition: opacity 260ms var(--om-inout); }   /* racine du cadre */
/* Fin de tour (base.js) : la racine s'efface, l'état de départ revient sans transition, puis elle réapparaît.
   Aucune transition propre à la racine dans le CSS d'une scène. */
.cadre.raz > [class*="cadre-"] { opacity: 0; }
.cadre.sans-transition *, .cadre.sans-transition *::before, .cadre.sans-transition *::after { transition: none !important; animation: none !important; }
/* Au chargement, Chrome lance parfois les transitions des cadres (état final → état de départ) : aucune
   transition dans un cadre tant que la page n'est pas chargée (.om-pret, posé par base.js). */
.js:not(.om-pret) .cadre *, .js:not(.om-pret) .cadre *::before, .js:not(.om-pret) .cadre *::after { transition: none !important; }
.cadre .fenetre {
  position: absolute; left: var(--frame-inset); top: var(--frame-inset-top);
  width: var(--window-w); height: var(--window-h);
  overflow: hidden;
  background: var(--window);
  border-radius: var(--r-window);
  box-shadow: var(--sh-window), 0 0 0 .5px rgba(26, 26, 26, .06);
  translate: var(--mx, 0) var(--my, 0);   /* recadrage sur téléphone, jamais de réduction */
}
/* Bouton pause de chaque scène (cadres data-tour, injecté par base.js) */
.pause-boucle {
  position: absolute; right: 12px; bottom: 12px; z-index: 10;
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  box-shadow: 0 0 0 .5px var(--line), var(--sh-float);
  opacity: 0; transition: opacity 150ms var(--om-out);
}
.pause-boucle::after { content: ""; position: absolute; inset: -6px; }   /* zone tactile de 44 px */
.pause-boucle .ic { width: 14px; height: 14px; stroke-width: 1.75; }
.cadre:hover .pause-boucle, .pause-boucle:focus-visible, .pause-boucle[aria-pressed="true"] { opacity: 1; }
.pause-boucle .ic-lecture, .pause-boucle[aria-pressed="true"] .ic-pause { display: none; }
.pause-boucle[aria-pressed="true"] .ic-lecture { display: block; }
/* Sans survol (téléphone, tablette) : les boutons pause restent visibles */
@media (hover: none) { .pause-boucle { opacity: 1; } }
/* Téléphone : en haut à droite, dans la bande grise vide au-dessus de la fenêtre (le ::after garde 44 px) */
@media (max-width: 639px) {
  .pause-boucle { top: 2px; right: 8px; bottom: auto; width: 32px; height: 32px; }   /* la fenêtre commence à 36 px */
  .pause-boucle::after { inset: -2px -6px -10px; }   /* 44 × 44 px, du haut du cadre (0) à 44 px : le cadre coupe ce qui dépasse */
  .pause-boucle .ic { width: 12px; height: 12px; }
  .pause-boucle:focus-visible { outline-offset: 0; }   /* à 2 px du haut : le contour de focus reste entier dans le cadre */
}

/* La souris des scènes (V8, OM.souris dans base.js) : flèche noire au filet blanc ; son bout est au point (0, 0)
   de .om-souris, que base.js déplace avec translate. Le petit rond du clic s'élargit sous la flèche.
   Sous le bouton pause (z-index 10). Cachée en mouvement réduit (plus bas). */
.om-souris {
  position: absolute; left: 0; top: 0; z-index: 9;
  width: 0; height: 0;
  pointer-events: none;
  opacity: 0; transition: opacity 160ms var(--om-out);
}
.om-souris.visible { opacity: 1; }
.om-souris svg {
  position: absolute; left: -2px; top: -1px;
  width: 19px; height: 24px; overflow: visible;
  transform-origin: 2px 1px;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .28));
}
.om-souris path { fill: #1a1a1a; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.om-souris-onde {
  position: absolute; left: -14px; top: -14px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid #1a1a1a;
  opacity: 0;
}

/* --- Utilitaires de mouvement des scènes ---------------------------------
   Règle : le style normal EST l'état final. L'état de départ ne s'applique
   que si le JS tourne (html.js) et tant que le cadre n'a pas reçu .joue.
   --d : délai de l'élément dans la scène.                                   */
.om-fondu { transition: opacity 300ms var(--om-out) var(--d, 0ms); }
.js .cadre:not(.joue) .om-fondu { opacity: 0; }
.om-monte { transition: opacity 300ms var(--om-out) var(--d, 0ms), translate 300ms var(--om-out) var(--d, 0ms); }
.js .cadre:not(.joue) .om-monte { opacity: 0; translate: 0 6px; }

/* --- Grands titres en serif (confiance, styles/confiance.css) ---------------------------------- */
.grand-titre {
  font-family: var(--font-voice); font-size: var(--fs-h2); line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}
.grand-titre .ligne { display: block; }

/* Pastille d'icône (avantages du bloc brokers ; confiance.css la reprend) */
.tuile-ic {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--surface); box-shadow: 0 0 0 .5px var(--hairline), 0 1px 2px rgba(26, 26, 26, .06);
}

/* --- Appel final --------------------------------------------------------- */
.appel { display: flex; flex-direction: column; align-items: center; padding: var(--cta-top) var(--gutter) 240px; text-align: center; }   /* seul à l'écran, comme chez Klar */
.appel-titre { font-family: var(--font-voice); font-size: var(--fs-cta); line-height: var(--lh-display); letter-spacing: var(--ls-display); text-wrap: balance; }
.appel-titre .ligne { display: block; }
.appel-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* --- Pied de page -------------------------------------------------------- */
.pied { padding-bottom: 32px; }
.pied-haut { display: grid; grid-template-columns: 96px repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.pied-logo { display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--ink); border-radius: 8px; }
.pied-logo svg { width: 28px; height: 28px; }
.pied-col h2 { margin-bottom: 14px; font: 500 var(--fs-ui)/20px var(--font-ui); }
.pied-col ul { display: grid; gap: 12px; }
.pied-col a { font-size: var(--fs-ui); line-height: 20px; color: var(--muted); text-decoration: none; transition: color 150ms var(--om-out); }
.pied-col a:hover { color: var(--ink); }
.pied-bas {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 96px; font-size: var(--fs-tag); line-height: 20px; color: var(--muted);
}
.pied-mentions { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* --- Écrans moyens : le texte passe sous le cadre ------------------------ */
@media (max-width: 899px) {
  /* Une colonne : le verbe, le titre, puis le visuel, puis la phrase (et le bouton du bloc brokers) */
  .rangee { display: flex; flex-direction: column; align-items: stretch; }
  .rangee-texte { display: contents; }
  .rangee > .cadre { order: 1; margin: 24px 0; }
  .rangee-texte > :not(.mot-cle, .rangee-titre) { order: 2; max-width: var(--frame-w); }
  .rangee-texte > .rangee-phrase { margin-top: 0; }
  .rangee-texte > .rangee-gain { margin-top: 12px; }   /* sous la phrase, après le visuel */
  .pied-haut { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pied-haut > .pied-logo { grid-column: 1 / -1; }
}

/* De 640 à 900 px : le cadre prend toute la largeur (hauteur plafonnée), la fenêtre déborde encore à droite */
@media (min-width: 640px) and (max-width: 899px) {
  .rangee > .cadre { width: 100%; aspect-ratio: auto; height: min(560px, 80vw); }
  .rangee > .cadre .fenetre { width: max(var(--window-w), 100%); }
}

/* --- Téléphone ----------------------------------------------------------- */
@media (max-width: 639px) {
  :root {
    --gutter: 16px;
    --fs-cta: 36px; --fs-h2: 32px;
    --fs-partie: 24px; --lh-partie: 30px;
    --frame-inset: 16px; --frame-inset-top: 36px;   /* 36 px en haut : la place de la légende */
    --row-gap-y: 96px; --section-gap: 112px; --cta-top: 144px;
  }
  .entete { height: 56px; padding: 0 8px 0 6px; }
  .entete-nom { font-size: 15px; }   /* téléphone : le sigle et le nom (ligne rouge du 05/11), « Demander une démo » et ≡ */
  .entete-logo { height: 44px; min-width: 44px; justify-content: center; }
  .entete-actions .pilule { height: 44px; padding: 0 14px; font-size: var(--fs-tag); }
  .entete-actions .entete-menu { width: 44px; height: 44px; }
  .tiroir { inset: 56px 0 0; }

  .cadre { aspect-ratio: auto; height: var(--frame-h-tel); }
  .rangee > .cadre { margin: 20px 0; }
  .rangee-actions .pilule { width: 100%; height: 44px; }

  .appel { padding-bottom: var(--cta-top); }
  .appel-titre .ligne { display: inline; }
  .appel-boutons { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .appel-boutons .pilule { height: 44px; }

  .pied-haut { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-logo { width: 44px; height: 44px; }
  .pied-col ul { gap: 0; }
  .pied-col a { display: inline-block; min-width: 44px; padding: 12px 0; }   /* cibles tactiles de 44 px */
  .pied-bas { margin-top: 64px; }
}
/* --- Mouvement réduit : états finaux, rien ne bouge, personnage compris ----
   base.js pose .joue sur tous les cadres dès le chargement et ne lance aucun tour. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .om-souris { display: none; }   /* image finale, sans souris */
}

/* Très petit téléphone (moins de 370 px) : le nom ne tient plus à côté de « Demander une démo » et ≡ : le sigle seul */
@media (max-width: 369px) {
  .entete-nom { display: none; }
}
