/* ==========================================================================
   RMD Studio : style "nuit" (bleu nuit profond, halos orange, relief)
   Feuille commune à toutes les pages du site.

   COMMENT MODIFIER LES COULEURS
   Toutes les couleurs du site sont définies ICI, dans le bloc :root ci-dessous.
   Nulle part ailleurs dans ce fichier (ni dans les pages HTML) une couleur n'est écrite en dur :
   on ne trouve que des appels du type var(--orange) ou rgba(var(--rgb-blanc), .14).
   Pour changer une teinte, il suffit donc de modifier sa valeur dans :root.
   ========================================================================== */

/* Police Outfit hébergée sur le site (licence SIL OFL, texte dans fonts/OFL.txt).
   Fichier unique, graisses 400 à 900, caractères latins (français inclus).
   Aucune requête vers un service tiers pour les polices. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/outfit-latin-wght.woff") format("woff");
}

:root {
  /* ----- Fonds ----- */
  --bg: #0A1024;                            /* fond général de la page */
  --bg-2: #0F1936;
  --surface: #121D41;                       /* cartes sombres, aussi utilisé par la bannière cookies */
  --nuit-haut: #0B1330;                     /* haut du ciel, fond du menu mobile */

  /* ----- Textes ----- */
  --ink: #FFFFFF;
  --ink-soft: rgba(255, 255, 255, .80);
  --ink-mute: rgba(255, 255, 255, .64);
  --ink-nuit: #16223F;                      /* texte posé sur un fond clair (bouton blanc, pastille Valider) */

  /* ----- Orange de la marque ----- */
  --orange: #FF7238;
  --orange-brand: #E8541A;
  --orange-hi: #FF9A66;
  --orange-deep: #FF9A66;                   /* lien de la bannière cookies, lisible sur fond sombre */
  --orange-tint: rgba(255, 114, 56, .16);
  --grad-orange: linear-gradient(135deg, #FF8A55 0%, #F2602A 55%, #D94C15 100%);   /* boutons, pastilles */
  --grad-final: linear-gradient(135deg, #FF8A55 0%, #EE5C22 45%, #B93F10 100%);    /* grand bandeau orange du bas */
  --grad-texte: linear-gradient(95deg, #FFB48A 0%, #FF7238 48%, #FF9A66 100%);     /* mots mis en valeur dans les titres */

  /* ----- Papier clair (document du hero, bouton blanc) ----- */
  --papier: #FFFFFF;
  --papier-2: #F6F0E4;
  --papier-3: #F1EBDD;
  --papier-trait: #E7DFD0;
  --papier-trait-2: #D9CFBC;
  --papier-encre: #191510;
  --papier-encre-soft: #5B5347;
  --papier-orange: #F2B79A;
  --papier-puce-bg: #FBE4D6;
  --papier-puce-ink: #B93F10;
  --papier-ok: #1B7A3D;

  /* ----- Autres teintes ----- */
  --vert-tag-ink: #8CE8B1;
  --app-fond: #FAF7F1;                      /* fond de l'application de démonstration, visible avant son chargement */

  /* ----- Canaux rouge, vert, bleu : servent aux transparences, ex. rgba(var(--rgb-blanc), .12) ----- */
  --rgb-blanc: 255, 255, 255;
  --rgb-noir: 0, 0, 0;
  --rgb-nuit: 5, 9, 24;                     /* encarts creusés, très sombres */
  --halo: 232, 84, 26;                      /* orange des halos et des lueurs */
  --rgb-orange: 255, 114, 56;
  --rgb-orange-clair: 255, 154, 102;
  --rgb-orange-ombre: 242, 96, 42;
  --rgb-bleu-halo: 120, 148, 255;
  --rgb-vert: 85, 214, 139;
  --rgb-vert-tag: 72, 201, 126;
  --rgb-barre: 14, 22, 52;                  /* barre du haut */
  --rgb-barre-scroll: 10, 16, 38;           /* barre du haut après défilement */
  --rgb-chat-1: 34, 48, 94;
  --rgb-chat-2: 16, 26, 60;
  --rgb-badge-1: 60, 78, 140;
  --rgb-badge-2: 30, 44, 92;
  --rgb-final-clair: 255, 190, 150;
  --rgb-final-sombre: 120, 30, 5;
  --rgb-final-ombre: 90, 20, 0;
  --rgb-pastille-demo: 14, 22, 48;          /* pastille "Cliquez pour essayer" de la démonstration */
  --rgb-pastille-demo-hi: 24, 36, 74;
  --rgb-papier-encre: 25, 21, 16;           /* ombres posées sur le papier clair */

  /* ----- Traits, verre, ombres, formes ----- */
  --line: rgba(var(--rgb-blanc), .14);
  --line-strong: rgba(var(--rgb-blanc), .24);
  --glass: linear-gradient(160deg, rgba(var(--rgb-blanc), .11), rgba(var(--rgb-blanc), .04));
  --shadow-card: inset 0 1px 0 rgba(var(--rgb-blanc), .16), 0 30px 60px -30px rgba(var(--rgb-noir), .75);
  --r-card: 28px 6px 6px 6px;
  --r-card-b: 6px 6px 28px 6px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; padding: 0;
}
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--papier); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Ciel : halos fixes derrière toute la page ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: linear-gradient(180deg, var(--nuit-haut) 0%, var(--surface) 52%, var(--bg) 100%); }
.sky i { position: absolute; border-radius: 50%; }
.sky .h1 { left: -12%; top: -16%; width: 62vw; height: 62vw; max-width: 940px; max-height: 940px; background: radial-gradient(closest-side, rgba(var(--halo), .34), transparent 72%); }
.sky .h2 { right: -16%; top: 2%; width: 52vw; height: 52vw; max-width: 820px; max-height: 820px; background: radial-gradient(closest-side, rgba(var(--rgb-bleu-halo), .20), transparent 72%); }
.sky .h3 { left: 50%; top: 78%; width: min(1500px, 140vw); height: min(900px, 90vh); transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(var(--halo), .22), transparent 74%); }

.wrap { position: relative; z-index: 1; width: min(1180px, 100% - clamp(40px, 8vw, 128px)); margin-inline: auto; }

/* ---------- En-tête ---------- */
header.site { position: sticky; top: 0; z-index: 40; padding: 14px 0 0; }
header.site .bar {
  position: relative; z-index: 1; width: min(1180px, 100% - clamp(24px, 5vw, 64px)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 12px 10px 20px;
  border-radius: 22px 6px 22px 6px; border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .14), 0 20px 40px -24px rgba(var(--rgb-noir), .8);
}
/* Le flou est porté par un calque, pas par la barre : sinon le menu mobile (position fixe) resterait enfermé dans la barre */
header.site .bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: rgba(var(--rgb-barre), .62); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  transition: background .25s;
}
header.site.is-scrolled .bar::before { background: rgba(var(--rgb-barre-scroll), .88); }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 30px; width: auto; display: block; }
nav.main { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); font-size: .95rem; font-weight: 600; }
nav.main a:not(.btn) { text-decoration: none; color: var(--ink-soft); padding: 8px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
nav.main a:not(.btn):hover { color: var(--ink); }
nav.main a.current { color: var(--ink); border-bottom-color: var(--orange); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 12px; z-index: 61; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 14px 5px 14px 5px; font: 700 .95rem/1 var(--font); text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn-primary {
  color: var(--ink); background: var(--grad-orange);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .45), inset 0 -3px 0 rgba(var(--rgb-noir), .18), 0 14px 28px -10px rgba(var(--rgb-orange-ombre), .75), 0 0 0 1px rgba(var(--rgb-blanc), .12);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .5), inset 0 -3px 0 rgba(var(--rgb-noir), .18), 0 22px 38px -10px rgba(var(--rgb-orange-ombre), .85), 0 0 0 1px rgba(var(--rgb-blanc), .16); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { color: var(--ink); background: rgba(var(--rgb-blanc), .07); border-color: var(--line-strong); box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .14); }
.btn-ghost:hover { background: rgba(var(--rgb-blanc), .13); border-color: rgba(var(--rgb-blanc), .4); transform: translateY(-2px); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1.05rem; border-radius: 16px 6px 16px 6px; }
.btn-white { color: var(--ink-nuit); background: linear-gradient(180deg, var(--papier), var(--papier-3)); box-shadow: inset 0 1px 0 var(--papier), 0 18px 34px -12px rgba(var(--rgb-noir), .55); }
.btn-white:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--papier), 0 24px 40px -12px rgba(var(--rgb-noir), .6); }

/* ---------- Libellés ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  font: 700 .78rem/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-hi);
  background: rgba(var(--rgb-blanc), .08); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .16), 0 10px 24px -12px rgba(var(--rgb-noir), .6);
}
.eyebrow .ic { font-size: 16px; }
.kicker { display: block; margin-bottom: 14px; font: 700 .78rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-hi); }
.hl { background: var(--grad-texte); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .04em; }
.nb { white-space: nowrap; }

/* ---------- Bloc 1 : en-tête de la page (titre et scène) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(32px, 4vw, 56px); padding-block: clamp(44px, 7vw, 96px) clamp(48px, 6vw, 84px); }
.hero h1 { margin-top: 24px; font: 800 clamp(40px, 5.4vw, 76px)/1.02 var(--font); letter-spacing: -.035em; text-shadow: 0 6px 40px rgba(var(--rgb-noir), .35); }
.hero .lead { margin-top: 24px; max-width: 54ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.6; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-mute); }

/* Scène du hero : un message vocal devient un devis */
.hero-visual { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.stage3d { position: relative; width: min(500px, 100%); padding: 30px 0 236px; perspective: 1800px; }
.scene3d { position: relative; transform: rotateX(var(--rx, 3deg)) rotateY(var(--ry, -9deg)); transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.scene3d.is-moving { transition: transform .12s linear; }
.chat {
  position: relative; border-radius: 28px 6px 6px 6px; padding: 18px 18px 52px; border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(var(--rgb-chat-1), .92), rgba(var(--rgb-chat-2), .92));
  box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .3), 0 50px 90px -30px rgba(var(--rgb-noir), .85), 0 0 90px -10px rgba(var(--halo), .45);
}
.chat__bar { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.chat__av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-orange); box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .5), inset 0 -3px 0 rgba(var(--rgb-noir), .2); font-size: 20px; }
.chat__bar b { display: block; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.chat__bar small { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-mute); }
.chat__bar small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--rgb-vert)); box-shadow: 0 0 0 3px rgba(var(--rgb-vert), .22); }
.msg { margin-top: 14px; max-width: 90%; padding: 12px 14px; border-radius: 18px 18px 6px 18px; font-size: .95rem; line-height: 1.45; }
.msg--out { margin-left: auto; background: var(--grad-orange); color: var(--ink); box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .4), 0 14px 24px -12px rgba(var(--rgb-orange-ombre), .8); }
.msg--in { border-radius: 18px 18px 18px 6px; background: rgba(var(--rgb-blanc), .12); border: 1px solid var(--line); color: var(--ink); }
.voice { display: flex; align-items: center; gap: 10px; }
.voice .ic { font-size: 20px; }
.wave { flex: 1; height: 26px; display: flex; align-items: center; gap: 3px; }
.wave u { flex: 1; min-width: 2px; max-width: 4px; height: var(--h); border-radius: 3px; background: rgba(var(--rgb-blanc), .92); text-decoration: none; }
.voice small { font-size: .78rem; opacity: .9; font-variant-numeric: tabular-nums; }
.msg--out p { margin-top: 8px; font-size: .88rem; font-style: italic; opacity: .95; }
.msg__act { display: flex; gap: 8px; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: rgba(var(--rgb-blanc), .12); border: 1px solid var(--line-strong); }
.pill--ok { background: var(--papier); color: var(--ink-nuit); border-color: var(--papier); }

.doc {
  position: absolute; right: -22px; top: calc(100% - 40px); width: 66%; padding: 16px; border-radius: 20px 5px 20px 5px; color: var(--papier-encre);
  background: linear-gradient(170deg, var(--papier) 0%, var(--papier-2) 100%); transform: translateZ(70px);
  box-shadow: inset 0 1px 0 var(--papier), 0 40px 60px -22px rgba(var(--rgb-noir), .8), 0 0 0 1px rgba(var(--rgb-blanc), .5);
  animation: float 7s ease-in-out infinite;
}
.doc__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.doc__head .ic { font-size: 20px; color: var(--orange-brand); }
.doc__head b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.chip { margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .02em; color: var(--papier-puce-ink); background: var(--papier-puce-bg); white-space: nowrap; }
.doc__to { font-size: .78rem; font-weight: 600; color: var(--papier-encre-soft); margin-bottom: 10px; }
.doc__line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.doc__line i { flex: 1; height: 8px; border-radius: 4px; background: var(--papier-trait); }
.doc__line u { width: 34px; height: 8px; border-radius: 4px; background: var(--papier-orange); text-decoration: none; }
.doc__ok { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--papier-trait-2); display: grid; gap: 6px; }
.doc__ok li { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; }
.doc__ok .ic { font-size: 15px; color: var(--papier-ok); stroke-width: 2.4; }
.doc__link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 10px 4px 10px 4px; font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--grad-orange); box-shadow: 0 8px 18px -8px rgba(var(--rgb-orange-ombre), .7); }
.doc__link .ic { font-size: 15px; stroke-width: 2.4; }

.fbadge {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px 5px 16px 5px;
  font-weight: 700; font-size: .88rem; line-height: 1.25; color: var(--ink); border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(var(--rgb-badge-1), .85), rgba(var(--rgb-badge-2), .85)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .34), 0 24px 40px -16px rgba(var(--rgb-noir), .75);
  transform: translateZ(100px); animation: float 7s ease-in-out infinite;
}
.fbadge .ic-tile { width: 34px; height: 34px; border-radius: 11px; font-size: 18px; }
.fbadge--a { right: -20px; top: -26px; animation-delay: -2s; }
.fbadge--b { left: -14px; top: calc(100% + 40px); max-width: 200px; animation-delay: -4.4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero-visual figcaption { font-size: .82rem; color: var(--ink-mute); text-align: center; }

.ic-tile { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; flex: none; color: var(--ink); font-size: 22px; background: var(--grad-orange); box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .5), inset 0 -3px 0 rgba(var(--rgb-noir), .2), 0 10px 18px -8px rgba(var(--rgb-orange-ombre), .9); }

/* ---------- Sections (commun) ---------- */
.sec { position: relative; z-index: 1; padding-block: clamp(52px, 7.5vw, 104px); }
.sec-head { max-width: 700px; margin-bottom: clamp(30px, 4.6vw, 54px); }
.sec-head h2 { font: 800 clamp(1.75rem, 3.6vw, 2.9rem)/1.08 var(--font); letter-spacing: -.025em; }
.sec-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; max-width: 60ch; }

.card { position: relative; border-radius: var(--r-card); border: 1px solid var(--line); background: radial-gradient(120% 100% at 0% 0%, rgba(var(--halo), .11), transparent 58%), var(--glass); box-shadow: var(--shadow-card); }

/* ---------- Bloc 2 : les quatre engagements ---------- */
.engagements { position: relative; z-index: 1; padding-bottom: clamp(24px, 4vw, 48px); }
.engage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.engage { padding: clamp(20px, 2.2vw, 26px); display: flex; flex-direction: column; gap: 12px; }
.engage:nth-child(2) { border-radius: 6px 28px 6px 6px; }
.engage:nth-child(4) { border-radius: 6px 6px 28px 6px; }
.engage .ic-tile { width: 42px; height: 42px; border-radius: 14px; font-size: 21px; }
.engage h3 { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.engage p { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }

/* ---------- Bloc 3 : le problème en trois lignes ---------- */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.pain { padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.pain:nth-child(2) { border-radius: 6px 28px 6px 6px; }
.pain:nth-child(3) { border-radius: 6px 6px 28px 6px; }
.pain h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.pain p { color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }
.pains-after { margin-top: clamp(26px, 3.6vw, 44px); padding: 6px 0 6px 22px; border-left: 3px solid var(--orange); max-width: 40ch; font: 700 clamp(1.25rem, 2.2vw, 1.6rem)/1.35 var(--font); letter-spacing: -.01em; color: var(--ink); }

/* ---------- Bloc 4 : comment ça fonctionne ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step { padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; }
.step:nth-child(2) { border-radius: 6px 28px 6px 6px; }
.step:nth-child(3) { border-radius: 6px 6px 28px 6px; }
.step-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 18px; font-weight: 900; font-size: 1.15rem; color: var(--ink); background: var(--grad-orange); box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .5), inset 0 -3px 0 rgba(var(--rgb-noir), .2), 0 10px 18px -8px rgba(var(--rgb-orange-ombre), .9); }
.step h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }
.step .sample { margin-top: auto; padding: 12px 14px; border-radius: 12px; font-size: .9rem; font-style: italic; color: var(--ink); line-height: 1.5; background: rgba(var(--rgb-nuit), .5); border: 1px solid var(--line); box-shadow: inset 0 2px 6px rgba(var(--rgb-noir), .35); }
.step p + .sample { margin-top: 16px; }

.callout { margin-top: clamp(20px, 3vw, 30px); display: flex; gap: 18px; align-items: flex-start; padding: clamp(20px, 3vw, 28px); border-radius: 6px 24px 6px 24px; border: 1px dashed rgba(var(--rgb-orange-clair), .55); background: var(--orange-tint); }
.callout p { font-size: 1rem; line-height: 1.65; max-width: 78ch; color: rgba(var(--rgb-blanc), .92); }
.callout strong { color: var(--orange-hi); }

/* ---------- Bloc 5 : les 5 agents ---------- */
.agents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
.agent { padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 16px; }
.agent:nth-child(3) { border-radius: 6px 28px 6px 6px; }
.agent:nth-child(4) { border-radius: 6px 6px 6px 28px; }
.agent-top { display: flex; align-items: center; gap: 14px; }
.agent-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.015em; }
.agent > p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.agent-example { margin-top: 2px; padding: 14px 16px; border-radius: 4px 14px 14px 4px; border-left: 3px solid var(--orange); background: rgba(var(--rgb-nuit), .45); box-shadow: inset 0 2px 6px rgba(var(--rgb-noir), .3); font-size: .92rem; line-height: 1.55; font-style: italic; color: rgba(var(--rgb-blanc), .9); }
.agent-outcome { margin-top: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: .92rem; font-weight: 700; line-height: 1.45; color: var(--ink); background: var(--orange-tint); border: 1px solid rgba(var(--rgb-orange), .3); }
.agent-outcome .ic { font-size: 18px; color: var(--orange-hi); margin-top: 1px; stroke-width: 2.4; }

.agent--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(22px, 3.4vw, 48px); padding: clamp(26px, 4vw, 48px); border-color: rgba(var(--rgb-orange), .6); border-radius: 34px 6px 6px 6px;
  background: linear-gradient(160deg, rgba(var(--rgb-blanc), .13), rgba(var(--rgb-blanc), .04)), radial-gradient(60% 80% at 100% 0%, rgba(var(--halo), .30), transparent 70%);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .22), 0 40px 80px -30px rgba(var(--rgb-noir), .8), 0 0 80px -20px rgba(var(--halo), .5); }
.agent--lead .col { display: flex; flex-direction: column; gap: 18px; }
.agent--lead .col:last-child { justify-content: center; }
.agent--lead .agent-outcome { margin-top: 0; }
.agent--lead .agent-name { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.agent--lead .col > p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; }
.tag-lead { align-self: flex-start; padding: 5px 12px; border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--grad-orange); box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .4); }
.agent--lead .agent-example { font-size: 1.02rem; padding: 18px 20px; }
.agent-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: var(--orange-hi); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(var(--rgb-orange-clair), .5); padding-bottom: 2px; }
.agent-link:hover { color: var(--ink); border-color: var(--ink); }
.more-agents { margin-top: 28px; font-size: 1rem; color: var(--ink-soft); }
.more-agents a { color: var(--orange-hi); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(var(--rgb-orange-clair), .5); }
.more-agents a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Bloc 6 : qui est derrière RMD Studio ---------- */
.about { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 6vw, 84px); align-items: center; }
.portrait { margin: 0; padding: 0; overflow: hidden; position: sticky; top: 110px; border-radius: 34px 6px 34px 6px; border-color: rgba(var(--rgb-orange-clair), .35);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .2), 0 40px 80px -30px rgba(var(--rgb-noir), .8), 0 0 80px -20px rgba(var(--halo), .5); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption { padding: 14px 20px 16px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); border-top: 1px solid var(--line); background: rgba(var(--rgb-nuit), .35); }
.about .sec-head { margin-bottom: clamp(18px, 2.4vw, 28px); }
.story-body { display: grid; gap: 20px; max-width: 62ch; }
.story-body p { font-size: 1.1rem; line-height: 1.75; color: var(--ink-soft); }
.story-body p.pull { padding: 6px 0 6px 22px; border-left: 3px solid var(--orange); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.story-body p.after { color: var(--ink); }

/* ---------- Bloc 7 : le tarif affiché ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.6vw, 28px); }
.offer { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(22px, 4vw, 56px); padding: clamp(26px, 3.4vw, 44px); border-color: rgba(var(--rgb-orange), .65); border-radius: 34px 6px 6px 6px;
  background: linear-gradient(160deg, rgba(var(--rgb-blanc), .14), rgba(var(--rgb-blanc), .04)), radial-gradient(80% 60% at 100% 0%, rgba(var(--halo), .32), transparent 70%);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .24), 0 40px 80px -30px rgba(var(--rgb-noir), .8), 0 0 70px -18px rgba(var(--halo), .6); }
.offer .tag { margin-bottom: 14px; }
.offer h3 { font-size: 1.2rem; font-weight: 800; }
.offer-price { margin: 10px 0 12px; font: 900 clamp(1.8rem, 3.4vw, 2.5rem)/1.1 var(--font); letter-spacing: -.025em; }
.offer-plus { display: inline-block; padding: 7px 14px; border-radius: 8px; font-size: .88rem; font-weight: 700; background: rgba(var(--rgb-nuit), .5); border: 1px solid var(--line); }
.offer-head { display: flex; flex-direction: column; align-items: flex-start; }
.offer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.offer li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; line-height: 1.5; color: rgba(var(--rgb-blanc), .9); }
.offer li .ic { font-size: 20px; color: var(--orange-hi); stroke-width: 2.4; margin-top: 1px; }
.offer-cta { margin-top: 26px; display: grid; gap: 12px; justify-items: start; }
.offer-ask { font-size: .9rem; color: var(--ink-mute); }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.tag-plus { color: var(--orange-hi); background: var(--orange-tint); border: 1px solid rgba(var(--rgb-orange), .3); }
.note { max-width: 78ch; padding: clamp(18px, 2.6vw, 26px); border-radius: 6px 20px 6px 20px; background: rgba(var(--rgb-blanc), .06); border: 1px solid var(--line); font-size: .98rem; line-height: 1.7; color: var(--ink-soft); }

/* ---------- Bloc 8 : questions fréquentes ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq-item { border-radius: 6px 22px 6px 22px; transition: border-color .2s; }
.faq-item:nth-child(odd) { border-radius: 22px 6px 22px 6px; }
.faq-item[open] { border-color: rgba(var(--rgb-orange), .5); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; cursor: pointer; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { font-size: 22px; color: var(--orange-hi); stroke-width: 2.4; transition: transform .25s; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item p { padding: 0 24px 22px; max-width: 70ch; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }

/* ---------- Bloc 9 : appel final ---------- */
.final { position: relative; z-index: 1; margin-block: clamp(20px, 4vw, 40px) clamp(36px, 5vw, 64px); padding: clamp(40px, 6.4vw, 84px) clamp(22px, 5vw, 64px); border-radius: 40px 8px 40px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; overflow: hidden;
  background: radial-gradient(60% 90% at 85% 0%, rgba(var(--rgb-final-clair), .42), transparent 65%), radial-gradient(70% 90% at 0% 100%, rgba(var(--rgb-final-sombre), .45), transparent 70%), var(--grad-final);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .5), 0 60px 100px -40px rgba(var(--halo), .75), 0 0 0 1px rgba(var(--rgb-blanc), .18); }
.final h2 { max-width: 20ch; font: 800 clamp(1.9rem, 4vw, 3rem)/1.08 var(--font); letter-spacing: -.025em; color: var(--ink); text-shadow: 0 4px 24px rgba(var(--rgb-final-ombre), .35); }
.final p { max-width: 56ch; font-size: 1.08rem; line-height: 1.6; color: rgba(var(--rgb-blanc), .94); }
.final .final-small { font-size: .92rem; color: rgba(var(--rgb-blanc), .85); }

/* ---------- Pied de page ---------- */
footer.site { position: relative; z-index: 1; padding-block: 34px 40px; border-top: 1px solid var(--line); }
footer.site .in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 22px 40px; font-size: .9rem; color: var(--ink-mute); }
footer.site .foot-id { flex: 1 1 320px; display: grid; gap: 12px; max-width: 460px; }
footer.site .foot-line { line-height: 1.6; }
footer.site nav { flex: 1 1 360px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; }
footer.site a { text-decoration: none; color: var(--ink-soft); }
footer.site nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
footer.site .logo img { height: 24px; }
footer.site .copy { flex: 1 1 100%; padding-top: 20px; border-top: 1px solid var(--line); }

/* Bannière cookies : même bannière, harmonisée avec le thème */
#cookie-banner { background: var(--surface) !important; border-color: var(--line-strong) !important; border-top-color: var(--orange) !important; box-shadow: 0 24px 60px rgba(var(--rgb-noir), .6) !important; }
#cookie-banner #cookie-refuse { color: var(--ink) !important; border-color: var(--line-strong) !important; }
#cookie-banner #cookie-accept { background: var(--grad-orange) !important; }

/* Apparition au défilement (le contenu reste visible sans JavaScript) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Tablette ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { margin-top: 12px; }
  .stage3d { width: min(480px, 100%); }
  .engage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engage:nth-child(n) { border-radius: var(--r-card); }
  .engage:nth-child(2) { border-radius: 6px 28px 6px 6px; }
  .engage:nth-child(3) { border-radius: 6px 6px 6px 28px; }
  .pains { grid-template-columns: 1fr; }
  .pain:nth-child(n) { border-radius: var(--r-card); }
  .steps { grid-template-columns: 1fr; }
  .agent--lead { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 440px; }
  .offer { grid-template-columns: 1fr; }
}

/* ---------- Menu : bouton "hamburger" dès que la barre devient trop étroite ---------- */
@media (max-width: 920px) {
  header.site { padding-top: 10px; }
  header.site .bar { padding: 8px 8px 8px 16px; }
  .nav-toggle { display: flex; }
  nav.main { position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 22px; padding: 104px 28px 28px; font-size: 1.25rem; background: linear-gradient(180deg, var(--nuit-haut), var(--bg)); }
  nav.main.open { display: flex; }
  nav.main a:not(.btn) { color: var(--ink); padding: 4px 0; }
  nav.main .btn { margin-top: 10px; height: 52px; font-size: 1rem; align-self: stretch; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 0 18px; height: auto; min-height: 56px; padding-block: 12px; }
  .stage3d { padding-bottom: 214px; }
  .scene3d { transform: none; }
  .doc { right: -6px; width: 70%; }
  .fbadge--a { right: -4px; top: -22px; }
  .fbadge--b { display: none; }
  .engage-grid { grid-template-columns: 1fr; }
  .engage:nth-child(n) { border-radius: var(--r-card); }
  .agents-grid { grid-template-columns: 1fr; }
  .agent:nth-child(n) { border-radius: var(--r-card); }
  .agent.agent--lead { border-radius: 30px 6px 6px 6px; }
  .faq-item summary { padding: 18px 18px; }
  .faq-item p { padding: 0 18px 20px; }
  .callout { flex-direction: column; gap: 12px; }
  .final { border-radius: 30px 6px 30px 6px; }
  .final .btn { width: 100%; }
  footer.site .in { flex-direction: column; align-items: flex-start; }
  footer.site nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .doc, .fbadge { animation: none; }
  .scene3d, .scene3d.is-moving { transition: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   PAGES INTÉRIEURES : agents, audit gratuit, pages légales, page 404
   Mêmes règles que plus haut : aucune couleur écrite en dur, uniquement des
   var(--...) définies dans le bloc :root tout en haut de ce fichier.
   ========================================================================== */

/* ---------- Titre de page ---------- */
.page-hero { position: relative; z-index: 1; padding-block: clamp(36px, 6vw, 84px) clamp(10px, 2vw, 22px); max-width: 860px; }
.page-hero h1 { margin-top: 22px; font: 800 clamp(2.1rem, 4.8vw, 3.7rem)/1.04 var(--font); letter-spacing: -.03em; text-shadow: 0 6px 40px rgba(var(--rgb-noir), .35); }
.page-hero .lead { margin-top: 20px; max-width: 60ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.6; color: var(--ink-soft); }
.page-hero .hero-actions { margin-top: 28px; }
.page-hero .hero-note { margin-top: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .92rem; font-weight: 700; color: var(--orange-hi); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.page-updated { margin-top: 14px; font-size: .92rem; color: var(--ink-mute); }

/* ---------- Démonstration de l'Agent Devis (fenêtre + commandes) ---------- */
.demo { position: relative; z-index: 1; overflow-x: clip; --s: .8; --halo-demo: var(--halo); padding-block: clamp(26px, 4vw, 56px) clamp(36px, 5vw, 72px); }
.demo-halo { position: absolute; left: 50%; top: 40%; width: min(1500px, 130%); height: 66%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--halo-demo), .55), rgba(var(--halo-demo), .18) 55%, transparent 78%); filter: blur(30px); transition: background .8s ease; }
.demo-scene { position: relative; z-index: 1; width: min(1240px, 100% - clamp(24px, 5vw, 64px)); margin-inline: auto; --rx: 3deg; --ry: -4deg; }
.demo-tilt { transform: perspective(2400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.demo-scene.is-moving .demo-tilt { transition: transform .12s linear; }
.win { position: relative; border-radius: 26px 8px 8px 8px; overflow: hidden; background: var(--papier-2);
  box-shadow: 0 0 0 1px rgba(var(--rgb-blanc), .2), inset 0 2px 0 rgba(var(--rgb-blanc), .35), 0 70px 120px -30px rgba(var(--rgb-noir), .75), 0 30px 60px -20px rgba(var(--rgb-noir), .55), 0 0 110px -6px rgba(var(--halo-demo), .55);
  transition: box-shadow .8s ease; }
.win__bar { position: relative; height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 18px 0 16px; background: linear-gradient(180deg, var(--papier), var(--papier-3)); border-bottom: 1px solid var(--papier-trait-2); }
.win__mark { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--ink); background: var(--grad-orange); box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .5), 0 3px 6px -2px rgba(var(--rgb-orange-ombre), .7); }
.win__url { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  background: var(--papier); border: 1px solid var(--papier-trait); color: var(--papier-encre-soft); font: 500 13px/16px var(--font); box-shadow: inset 0 1px 2px rgba(var(--rgb-papier-encre), .06); }
.win__demo { height: 24px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; font: 700 11px/14px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--papier-puce-ink); background: var(--papier-puce-bg); }
.win__view { position: relative; width: 100%; height: calc(900px * var(--s)); overflow: hidden; background: var(--app-fond); }
.win__app { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; background: var(--app-fond); }
.win.is-live .win__app { pointer-events: auto; }
.win.is-live .win__demo { display: none; }
.try { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 7%; width: 100%; background: linear-gradient(180deg, transparent 55%, rgba(var(--rgb-pastille-demo), .35) 100%); cursor: pointer; }
.win.is-live .try { display: none; }
.try__pill { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px 0 18px; border-radius: 999px; font: 700 15px/20px var(--font); color: var(--ink);
  background: rgba(var(--rgb-pastille-demo), .86); border: 1px solid rgba(var(--rgb-blanc), .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px -12px rgba(var(--rgb-noir), .7), inset 0 1px 0 rgba(var(--rgb-blanc), .22); transition: transform .2s, background .2s; }
.try:hover .try__pill { transform: translateY(-3px); background: rgba(var(--rgb-pastille-demo-hi), .92); }
.try__pill .ic { font-size: 18px; color: var(--orange-hi); animation: nudge 2.6s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: translate(0, 0); } 80% { transform: translate(3px, 3px); } 90% { transform: translate(0, 0); } }
.leave { position: absolute; right: 16px; top: 8px; z-index: 3; height: 30px; padding: 0 14px; border-radius: 999px; font: 600 12.5px/16px var(--font); color: var(--papier-encre-soft); background: var(--papier); border: 1px solid var(--papier-trait); box-shadow: 0 6px 14px -8px rgba(var(--rgb-papier-encre), .4); }
.leave:hover { color: var(--papier-encre); border-color: var(--papier-trait-2); }

.demo-controls { position: relative; z-index: 1; width: min(1240px, 100% - clamp(24px, 5vw, 64px)); margin: clamp(30px, 4.4vw, 56px) auto 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 22px 40px; }
.ctl { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ctl__lab { font: 700 12px/16px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); text-align: center; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sw { position: relative; width: 56px; height: 56px; border-radius: 18px 6px 18px 6px; overflow: hidden; padding: 0; display: grid; place-items: center; background: rgba(var(--rgb-blanc), .08); border: 2px solid rgba(var(--rgb-blanc), .2);
  box-shadow: inset 0 1px 0 rgba(var(--rgb-blanc), .25), 0 14px 24px -12px rgba(var(--rgb-noir), .7); transition: transform .2s, border-color .2s, box-shadow .2s; }
.sw img { width: 100%; height: 100%; display: block; }
.sw__rmd { width: 100%; height: 100%; display: grid; place-items: center; font: 800 14px/16px var(--font); letter-spacing: -.01em; color: var(--ink); background: var(--grad-orange); }
.sw:hover { transform: translateY(-4px) scale(1.05); }
.sw[aria-pressed="true"] { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 0 0 4px rgba(var(--rgb-blanc), .22), 0 18px 30px -10px rgba(var(--halo-demo), .9); }
.seg { display: inline-flex; padding: 4px; border-radius: 16px 6px 16px 6px; background: rgba(var(--rgb-blanc), .08); border: 1px solid var(--line); box-shadow: inset 0 2px 4px rgba(var(--rgb-noir), .25); }
.seg button { height: 40px; padding: 0 18px; border-radius: 12px 4px 12px 4px; font: 600 14px/20px var(--font); color: var(--ink-soft); transition: background .2s, color .2s, box-shadow .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink-nuit); background: linear-gradient(180deg, var(--papier), var(--papier-3)); box-shadow: 0 6px 14px -6px rgba(var(--rgb-noir), .6), inset 0 1px 0 var(--papier); }
.demo-note { position: relative; z-index: 1; margin: 26px auto 0; padding-inline: 16px; text-align: center; font-size: .9rem; color: var(--ink-mute); }
.demo-note b { color: var(--ink); font-weight: 600; }

/* ---------- Ce que contient l'espace (trois repères sous la démonstration) ---------- */
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.glance-item { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.glance-item:nth-child(2) { border-radius: 6px 28px 6px 6px; }
.glance-item:nth-child(3) { border-radius: 6px 6px 28px 6px; }
.glance-item h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.glance-item p { color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }

/* ---------- Détail des agents (une ligne par agent) ---------- */
.agent-rows { display: grid; gap: clamp(14px, 2vw, 22px); }
.agent-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(18px, 3vw, 44px); padding: clamp(22px, 3vw, 38px); }
.agent-row:nth-child(even) { border-radius: 6px 28px 6px 6px; }
.agent-row:nth-child(odd):not(.agent--lead) { border-radius: var(--r-card); }
.agent-row .col { display: flex; flex-direction: column; gap: 16px; }
.agent-row .col > p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; }
.agent-row .agent-top { margin-bottom: 2px; }
.agent-row .tag { align-self: flex-start; }
.agent-row .agent-outcome { margin-top: auto; }
.agent-row.agent--lead { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.agent-row.agent--lead .col { gap: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; line-height: 1.5; color: rgba(var(--rgb-blanc), .9); }
.checks .ic { font-size: 20px; color: var(--orange-hi); stroke-width: 2.4; margin-top: 1px; }

/* ---------- Audit gratuit ---------- */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.topic { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.topic:nth-child(3n+2) { border-radius: 6px 28px 6px 6px; }
.topic:nth-child(3n) { border-radius: 6px 6px 28px 6px; }
.topic h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.topic p { color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }
.verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 18px); margin-top: clamp(18px, 2.6vw, 28px); }
.verdict { padding: 18px 20px; border-radius: 6px 20px 6px 20px; border: 1px solid var(--line); background: rgba(var(--rgb-blanc), .06); display: grid; gap: 8px; align-content: start; }
.verdict b { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; }
.verdict b::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; background: rgb(var(--rgb-vert)); box-shadow: 0 0 0 4px rgba(var(--rgb-vert), .22); }
.verdict--ajuster b::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(var(--rgb-orange), .25); }
.verdict--non b::before { background: var(--ink-mute); box-shadow: 0 0 0 4px rgba(var(--rgb-blanc), .14); }
.verdict p { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.pieces { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.pieces li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; line-height: 1.5; color: rgba(var(--rgb-blanc), .9); }
.pieces .ic { font-size: 18px; color: var(--orange-hi); stroke-width: 2.4; margin-top: 2px; }

/* ---------- Pages légales ---------- */
.legal-wrap { position: relative; z-index: 1; width: min(900px, 100% - clamp(40px, 8vw, 128px)); margin-inline: auto; padding-bottom: clamp(48px, 7vw, 96px); }
.legal-wrap .page-hero { padding-inline: 0; max-width: none; padding-bottom: clamp(18px, 3vw, 32px); }
.legal { padding: clamp(22px, 3.6vw, 46px); }
.legal h2 { margin: 38px 0 14px; padding-left: 14px; border-left: 4px solid var(--orange); font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.legal > h2:first-child, .legal .legal-section:first-child > h2 { margin-top: 0; }
.legal-section { margin-bottom: 4px; }
.legal p { margin-bottom: 10px; font-size: 1rem; line-height: 1.75; color: var(--ink-soft); }
.legal ul { list-style: none; margin: 0 0 10px; padding: 0; }
.legal li { position: relative; padding-left: 22px; margin-bottom: 6px; font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.legal li::before { content: "→"; position: absolute; left: 0; font-weight: 700; color: var(--orange-hi); }
.legal strong { color: var(--ink); }
.legal a { color: var(--orange-hi); font-weight: 600; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.legal .legal-part { margin-top: 0; padding-left: 0; border-left: 0; font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.info-box { padding: 20px 24px; border-radius: 6px 20px 6px 20px; background: rgba(var(--rgb-nuit), .45); border: 1px solid var(--line); box-shadow: inset 0 2px 6px rgba(var(--rgb-noir), .3); }
.info-box p { margin: 6px 0; }
hr.legal-divider { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.gdpr-rights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.gdpr-right-item { padding: 16px 18px; border-radius: 6px 16px 6px 16px; border: 1px solid var(--line); background: rgba(var(--rgb-blanc), .05); font-size: .92rem; line-height: 1.55; color: var(--ink-soft); }
.gdpr-right-item strong { display: block; margin-bottom: 4px; color: var(--orange-hi); }

/* ---------- Page introuvable ---------- */
.notfound { position: relative; z-index: 1; min-height: 58vh; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; padding-block: clamp(48px, 9vw, 120px); }
.notfound__code { font: 900 clamp(5rem, 16vw, 11rem)/1 var(--font); letter-spacing: -.05em; }
.notfound h1 { font: 800 clamp(1.7rem, 3.6vw, 2.6rem)/1.1 var(--font); letter-spacing: -.025em; max-width: 22ch; }
.notfound p { max-width: 52ch; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; }
.notfound .hero-actions { justify-content: center; margin-top: 8px; }

/* ---------- Tablette ---------- */
@media (max-width: 980px) {
  .glance, .topics { grid-template-columns: 1fr; }
  .glance-item:nth-child(n), .topic:nth-child(n) { border-radius: var(--r-card); }
  .agent-row, .agent-row.agent--lead { grid-template-columns: 1fr; }
  .verdicts { grid-template-columns: 1fr; }
}

/* ---------- Téléphone : l'application s'affiche dans un téléphone ---------- */
@media (max-width: 760px) {
  .page-hero .hero-actions .btn { flex: 1 1 100%; }
  .demo-scene { width: min(100% - 32px, 420px); --rx: 0deg; --ry: 0deg; }
  .demo-tilt { transform: none; }
  .win { border-radius: 38px; border: 8px solid var(--bg); background: var(--bg); box-shadow: 0 0 0 1px rgba(var(--rgb-blanc), .24), 0 50px 80px -24px rgba(var(--rgb-noir), .8), 0 0 80px -10px rgba(var(--halo-demo), .45); }
  .win__bar { display: none; }
  .win__view { height: calc(780px * var(--s)); border-radius: 28px; }
  .win__app { width: 390px; height: 780px; }
  .leave { top: 14px; right: 14px; }
  .try { padding-bottom: 4%; }
  .demo-controls { gap: 26px; }
  .sw { width: 52px; height: 52px; }
  .agent-row:nth-child(n) { border-radius: var(--r-card); }
  .agent-row.agent--lead { border-radius: 30px 6px 6px 6px; }
  .pieces { grid-template-columns: 1fr; }
  .legal li { padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .try__pill .ic { animation: none; }
  .demo-tilt, .demo-scene.is-moving .demo-tilt { transition: none; }
}
