/* ==========================================================================
   GARDEO — site vitrine
   Charte reprise de l'application (src/styles.css) :
   bleu nuit #1E2A3A · bleu profond #3C4A5F · rouge brique #B03A2E
   Le rouge reste réservé à « il manque quelqu'un » et aux appels à l'action forts.
   ========================================================================== */

:root {
  --bg: #f4f7f9;
  --paper: #ffffff;
  --paper-2: #fbfbfc;
  --sunk: #eef1f4;
  --navy: #1e2a3a;
  --navy-2: #172131;
  --deep: #3c4a5f;
  --brick: #b03a2e;
  --brick-hover: #983025;
  --brick-soft: #fbf1ef;
  --brick-on-dark: #f08a7e;
  --text: #16202a;
  --muted: #5a6470;
  --on-dark: #e7ebf0;
  --on-dark-muted: #aeb9c9;
  --line: #e3e6ea;
  --line-strong: #d3d7dd;
  --line-dark: #2e3c50;
  --green: #1d7a46;
  --green-soft: #e9f5ee;
  --day: #d9a441;
  --night: #3c4a8f;

  --r-lg: 14px;
  --r: 10px;
  --r-sm: 6px;
  --lift: 0 1px 2px rgba(22, 32, 42, .05), 0 18px 40px -24px rgba(22, 32, 42, .35);
  --slab: 1px 1px 0 #c9d0d9, 2px 2px 0 #c3cad4, 3px 3px 0 #bdc5cf, 4px 4px 0 #b7bfca,
          5px 5px 0 #b1b9c5, 6px 6px 0 #abb4c0, 30px 40px 60px -20px rgba(22, 32, 42, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Inter, -apple-system,
          BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'Atkinson Hyperlegible Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 12px; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brick); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 16px; max-width: 60ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, border-color .18s;
}
.btn svg { width: 18px; height: 18px; flex: none; stroke: currentColor; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--brick); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -12px rgba(176, 58, 46, .7); }
.btn-primary:hover { background: var(--brick-hover); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper); border-color: var(--deep); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 249, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .92); }
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 38px; height: 38px; }
.brand span { font-weight: 600; font-size: 1.28rem; letter-spacing: .28em; margin-right: 16px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  white-space: nowrap; text-decoration: none; color: var(--deep); font-weight: 600; font-size: .95rem;
  padding: 10px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--navy); background: var(--sunk); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { white-space: nowrap; min-height: 42px; padding: 0 18px; font-size: .92rem; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--paper); cursor: pointer; align-items: center; justify-content: center; margin-left: auto;
}
.menu-toggle svg { width: 22px; height: 22px; stroke: var(--navy); }

@media (max-width: 1180px) {
  .nav, .header-actions .login { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { order: 3; }
  .header-row { gap: 12px; }
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    box-shadow: 0 20px 30px -20px rgba(22,32,42,.25);
  }
  .nav.is-open a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav.is-open .nav-login { display: block; }
}
.nav-login { display: none; }
@media (max-width: 400px) { .header-actions .btn-primary { padding: 0 14px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(36px, 5vw, 64px); overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero-copy { max-width: 820px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); margin-top: 18px; color: var(--navy); letter-spacing: -.035em; }
.hero h1 .serif { color: var(--brick); }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); margin-top: 22px; max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding: 0; list-style: none; color: var(--deep); font-size: .93rem; font-weight: 600; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; stroke: var(--green); }

/* Scène 3D */
.stage {
  position: relative; height: clamp(360px, 58vw, 720px); margin-top: clamp(24px, 4vw, 48px);
  perspective: 2200px; perspective-origin: 50% 10%;
  --rx: 0deg; --ry: 0deg; --unfold: 0;
}
.scene {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) + (1 - var(--unfold)) * 16deg)) rotateY(calc(var(--ry) - (1 - var(--unfold)) * 10deg));
  transition: transform .6s var(--ease);
}
.device {
  position: absolute; left: 50%; top: 0; width: min(1080px, 94%);
  transform: translateX(-50%) translateZ(0);
  transform-style: preserve-3d;
}
.browser {
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--slab);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d7dce2; }
.browser-bar .url {
  margin: 0 auto; font-family: var(--mono); font-size: .76rem; color: var(--muted);
  background: var(--sunk); padding: 3px 14px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px;
}
.browser-bar .url svg { width: 11px; height: 11px; stroke: var(--green); }
.browser img { width: 100%; height: auto; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }

.phone {
  position: absolute; width: clamp(130px, 20vw, 250px); aspect-ratio: 390 / 820;
  border-radius: clamp(22px, 3.4vw, 38px); padding: clamp(5px, .7vw, 9px);
  background: linear-gradient(145deg, #2c3a4f, #121a26);
  box-shadow: 0 0 0 1px #0d131c, 18px 30px 50px -18px rgba(22, 32, 42, .6);
  transform-style: preserve-3d;
}
.phone::before { /* tranche du téléphone */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  transform: translateZ(-10px); background: #0d131c;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: clamp(17px, 2.8vw, 30px); position: relative; }
.phone .notch { position: absolute; top: clamp(9px, 1.2vw, 16px); left: 50%; width: 30%; height: clamp(10px, 1.4vw, 20px); transform: translateX(-50%); background: #0d131c; border-radius: 99px; z-index: 2; }
.stage .phone { right: max(2%, calc(50% - 600px)); top: 18%; transform: translateZ(160px) rotateY(-8deg); }

.chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; box-shadow: 0 24px 40px -22px rgba(22, 32, 42, .5);
  font-size: .9rem; line-height: 1.3; white-space: nowrap;
}
.chip b { display: block; color: var(--text); }
.chip small { color: var(--muted); font-size: .8rem; }
.chip .dot { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.chip .dot svg { width: 18px; height: 18px; }
.chip-gap { left: max(1%, calc(50% - 620px)); top: 30%; transform: translateZ(220px); }
.chip-gap .dot { background: var(--brick-soft); border: 1.5px dashed var(--brick); }
.chip-gap .dot svg { stroke: var(--brick); }
.chip-gap b { color: var(--brick); }
.chip-pub { left: max(6%, calc(50% - 520px)); top: 64%; transform: translateZ(120px); }
.chip-pub .dot { background: var(--green-soft); }
.chip-pub .dot svg { stroke: var(--green); }
@media (max-width: 720px) {
  .chip { padding: 8px 10px; font-size: .78rem; }
  .chip small { display: none; }
  .chip .dot { width: 26px; height: 26px; }
  .chip-gap { top: 6%; left: 2%; }
  .chip-pub { top: auto; bottom: 14%; left: 2%; }
  .stage .phone { top: 26%; right: 1%; }
}
@keyframes floatA { 50% { translate: 0 -10px; } }
@keyframes floatB { 50% { translate: 0 8px; } }

/* ---------- Bandeau de confiance ---------- */
.trust { border-block: 1px solid var(--line); background: var(--paper); position: relative; z-index: 2; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 24px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item svg { width: 26px; height: 26px; stroke: var(--navy); flex: none; margin-top: 2px; }
.trust-item b { display: block; color: var(--navy); }
.trust-item span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 520px) { .trust-row { grid-template-columns: 1fr; } .trust-item:nth-child(2) { border-top: 1px solid var(--line); } }

/* ---------- Avant / après ---------- */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contrast-card { border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); }
.contrast-card h3 { font-size: 1.3rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.contrast-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contrast-card li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.contrast-card li svg { width: 20px; height: 20px; margin-top: 3px; }
.before { background: var(--paper); border: 1px solid var(--line); }
.before h3 { color: var(--deep); }
.before li { color: var(--muted); }
.before li svg { stroke: #8a929c; }
.after { background: var(--navy); color: var(--on-dark); box-shadow: var(--lift); }
.after h3 { color: #fff; }
.after li svg { stroke: #7fd3a3; }
@media (max-width: 820px) { .contrast { grid-template-columns: 1fr; } }

/* ---------- Déroulé ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 2px solid var(--navy); }
.step { padding: 28px 24px 8px 0; position: relative; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--mono); font-size: .85rem; color: var(--brick); font-weight: 700; }
.step h3 { font-size: 1.22rem; margin: 10px 0 10px; color: var(--navy); }
.step p { color: var(--muted); font-size: .98rem; }
.step .who { display: inline-block; margin-top: 14px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--deep); background: var(--sunk); padding: 4px 10px; border-radius: 99px; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 8px; background: var(--paper); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Visite guidée (écrans) ---------- */
.tour { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.tour .eyebrow { color: var(--on-dark-muted); }
.tour .section-head h2 { color: #fff; }
.tour .section-head p { color: var(--on-dark-muted); }
.tour-layout { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.tabs { display: grid; gap: 4px; }
.tab {
  display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: center; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 12px 14px;
  color: var(--on-dark-muted); font: inherit; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.tab svg { width: 20px; height: 20px; stroke: currentColor; grid-row: span 2; justify-self: center; }
.tab b { font-size: 1rem; color: inherit; }
.tab small { display: none; font-size: .88rem; line-height: 1.45; color: var(--on-dark-muted); }
.tab:hover { color: #fff; background: rgba(255,255,255,.05); }
.tab[aria-selected="true"] { color: #fff; background: rgba(255,255,255,.07); border-color: var(--line-dark); box-shadow: inset 3px 0 0 var(--brick-on-dark); }
.tab[aria-selected="true"] small { display: block; }
.tour-stage { perspective: 2000px; }
.tour-frame {
  transform: rotateY(-9deg) rotateX(5deg); transform-origin: left center;
  transition: transform .8s var(--ease);
}
.tour-stage:hover .tour-frame, .tour-frame.is-flat { transform: rotateY(0) rotateX(0); }
.tour-frame .browser { box-shadow: 1px 1px 0 #0f1622, 2px 2px 0 #0f1622, 3px 3px 0 #0f1622, 4px 4px 0 #0f1622, 5px 5px 0 #0f1622, 40px 50px 80px -30px rgba(0,0,0,.7); border-color: #33425a; }
.tour-frame img { transition: opacity .25s; }
.tour-frame img.is-swapping { opacity: 0; }
.tour-caption { margin-top: 18px; font-size: .9rem; color: var(--on-dark-muted); }
@media (max-width: 960px) {
  .tour-layout { grid-template-columns: 1fr; }
  .tabs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin; }
  .tab { flex: none; grid-template-columns: 24px auto; min-height: 44px; padding: 8px 14px; }
  .tab svg { grid-row: auto; }
  .tab[aria-selected="true"] small { display: none; }
  .tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--brick-on-dark); }
  .tour-frame { transform: rotateX(4deg); }
}
.tour-desc { display: none; margin-top: 16px; color: var(--on-dark); }
@media (max-width: 960px) { .tour-desc { display: block; } }

/* ---------- Fonctions (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: 0 1px 2px rgba(22,32,42,.04);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.card .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--sunk); margin-bottom: 18px; }
.card .ic svg { width: 22px; height: 22px; stroke: var(--navy); }
.card h3 { font-size: 1.18rem; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.card-media { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.card-media .txt { padding: 28px 28px 0; }
.card-media .shot { margin: 22px 0 0 28px; border-radius: 10px 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0; overflow: hidden; align-self: end; }
.card-media .shot img { width: 100%; height: auto; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .span-2, .span-3 { grid-column: span 1; } .span-4 { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .span-2, .span-3, .span-4 { grid-column: span 1; } }

/* ---------- Mobile ---------- */
.mobile-sec { background: var(--paper); border-block: 1px solid var(--line); overflow: hidden; }
.mobile-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.checklist svg { width: 22px; height: 22px; stroke: var(--green); margin-top: 2px; }
.checklist b { color: var(--navy); }
.checklist span { color: var(--muted); display: block; font-size: .96rem; }
.note-soon { margin-top: 26px; display: inline-flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--deep); background: var(--sunk); border-radius: 10px; padding: 10px 14px; }
.note-soon svg { width: 18px; height: 18px; stroke: var(--deep); flex: none; }
.fan { position: relative; height: clamp(440px, 52vw, 620px); perspective: 1600px; }
.fan-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.fan .phone { top: 50%; left: 50%; width: clamp(170px, 19vw, 240px); }
.fan .p1 { transform: translate(-135%, -50%) translateZ(-60px) rotateY(28deg) rotateZ(-4deg); }
.fan .p2 { transform: translate(-50%, -52%) translateZ(80px); z-index: 2; }
.fan .p3 { transform: translate(35%, -50%) translateZ(-60px) rotateY(-28deg) rotateZ(4deg); }
.fan.is-in .p1 { animation: fanIn1 1s var(--ease) both; }
.fan.is-in .p3 { animation: fanIn3 1s var(--ease) both; }
@keyframes fanIn1 { from { transform: translate(-50%, -50%) translateZ(-60px) rotateY(0) rotateZ(0); opacity: 0; } }
@keyframes fanIn3 { from { transform: translate(-50%, -50%) translateZ(-60px) rotateY(0) rotateZ(0); opacity: 0; } }
@media (max-width: 900px) {
  .mobile-layout { grid-template-columns: 1fr; }
  .fan { order: -1; height: 460px; }
}
@media (max-width: 480px) {
  .fan { height: 400px; }
  .fan .phone { width: 150px; }
  .fan .p1 { transform: translate(-118%, -50%) translateZ(-60px) rotateY(28deg) rotateZ(-4deg); }
  .fan .p3 { transform: translate(18%, -50%) translateZ(-60px) rotateY(-28deg) rotateZ(4deg); }
}

/* ---------- Rôles ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.role header { padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--paper-2); box-shadow: inset 0 3px 0 var(--navy); }
.role:nth-child(2) header { box-shadow: inset 0 3px 0 var(--deep); }
.role:nth-child(3) header { box-shadow: inset 0 3px 0 var(--brick); }
.role header small { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.role header h3 { font-size: 1.25rem; color: var(--navy); margin-top: 4px; }
.role ul { list-style: none; margin: 0; padding: 20px 24px 24px; display: grid; gap: 10px; }
.role li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--text); font-size: .97rem; }
.role li svg { width: 16px; height: 16px; stroke: var(--deep); margin-top: 5px; }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }

/* ---------- Sécurité ---------- */
.security { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.sec-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.sec-list div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sec-list b { color: var(--navy); display: block; }
.sec-list span { color: var(--muted); font-size: .95rem; }
.sec-list .tag { align-self: start; font-family: var(--mono); font-size: .76rem; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.shield {
  position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; perspective: 1200px;
}
.shield-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg); }
.layer {
  position: absolute; inset: 14%; border-radius: 22px; border: 1px solid var(--line-strong);
  background: var(--paper); box-shadow: 0 30px 40px -30px rgba(22,32,42,.45);
  display: flex; align-items: flex-end; padding: 14px 18px; font-weight: 700; font-size: .85rem; color: var(--deep);
  transition: transform .8s var(--ease);
}
.layer.l1 { transform: translateZ(0); background: var(--sunk); }
.layer.l2 { transform: translateZ(50px); }
.layer.l3 { transform: translateZ(100px); }
.layer.l4 { transform: translateZ(150px); background: var(--navy); color: #fff; border-color: var(--navy); align-items: center; justify-content: center; }
.layer.l4 img { width: 42%; transform: rotateZ(38deg); }
.shield:hover .l2 { transform: translateZ(70px); }
.shield:hover .l3 { transform: translateZ(140px); }
.shield:hover .l4 { transform: translateZ(210px); }
@media (max-width: 900px) { .security { grid-template-columns: 1fr; } .shield { max-width: 340px; } }

/* ---------- Mise en place ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line-strong); }
.timeline li { position: relative; padding: 36px 16px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--navy); }
.timeline li:last-child::before { background: var(--brick); border-color: var(--brick); }
.timeline .when { font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--brick); }
.timeline b { display: block; color: var(--navy); margin-top: 4px; line-height: 1.3; }
.timeline span { display: block; color: var(--muted); font-size: .9rem; margin-top: 6px; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 22px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { padding: 0 0 0 36px; }
  .timeline li::before { top: 2px; }
}
.included { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.included .card { padding: 24px; }
@media (max-width: 900px) { .included { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 1.1rem; color: var(--navy); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--deep); border-bottom: 2px solid var(--deep); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 70ch; }

/* ---------- Démo ---------- */
.demo { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.demo-layout { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.demo h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); margin-top: 14px; }
.demo h2 .serif { color: var(--brick-on-dark); }
.demo .eyebrow { color: var(--on-dark-muted); }
.demo-lead { color: var(--on-dark-muted); font-size: 1.1rem; margin-top: 18px; }
.demo-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.demo-points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.demo-points .num { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; color: #fff; }
.demo-points b { color: #fff; display: block; }
.demo-points span { color: var(--on-dark-muted); font-size: .95rem; }
.contact-direct { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: grid; gap: 8px; font-size: .96rem; }
.contact-direct a { color: #fff; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; min-height: 32px; }
.contact-direct a:hover { text-decoration: underline; }
.contact-direct svg { width: 18px; height: 18px; stroke: var(--on-dark-muted); }

.form-card {
  background: var(--paper); color: var(--text); border-radius: 18px; padding: clamp(24px, 3.4vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}
.form-card:focus-within, .form-card:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.form-card h3 { font-size: 1.4rem; color: var(--navy); }
.form-card > p { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .9rem; color: var(--navy); padding: 0; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--paper-2);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 14px; min-height: 48px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aab2bd; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(30,42,58,.15); }
.field .err { display: none; color: var(--brick); font-size: .85rem; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--brick); background: var(--brick-soft); }
.field.invalid .err { display: block; }
.field .help { color: var(--muted); font-size: .85rem; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; font-weight: 600; color: var(--deep); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 99px; cursor: pointer; background: var(--paper-2); transition: all .15s; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--brick); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .88rem; color: var(--muted); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); min-height: 0; }
.consent a { color: var(--navy); }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-foot .btn { min-height: 52px; padding: 0 28px; }
.form-foot small { color: var(--muted); font-size: .85rem; }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.btn .spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn[aria-busy="true"] .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.form-status.ok { background: var(--green-soft); color: var(--green); }
.form-status.ko { background: var(--brick-soft); color: var(--brick); }
.form-done { text-align: center; padding: 30px 10px; }
.form-done .big { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; margin: 0 auto 18px; }
.form-done .big svg { width: 32px; height: 32px; stroke: var(--green); }
.form-done h3 { font-size: 1.5rem; }
.form-done p { color: var(--muted); margin-top: 10px; }
@media (max-width: 960px) { .demo-layout { grid-template-columns: 1fr; } .form-card { transform: none; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-2); color: var(--on-dark-muted); padding-block: 56px 32px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--on-dark-muted); display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.foot-about { margin-top: 14px; max-width: 34ch; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .86rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Barre d'action mobile */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none;
  transform: translateY(140%); transition: transform .3s var(--ease);
}
.mobile-cta .btn { width: 100%; min-height: 52px; box-shadow: 0 16px 30px -12px rgba(22,32,42,.55); }
.mobile-cta.is-visible { transform: none; }
@media (max-width: 720px) { .mobile-cta { display: block; } }

/* ---------- Apparitions au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .scene { transform: rotateX(8deg) rotateY(-5deg); }
}

/* ---------- Page légale ---------- */
.legal { max-width: 780px; padding-block: 56px 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--navy); }
.legal h2 { font-size: 1.25rem; color: var(--navy); margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }

/* Les éléments en 3D ne doivent jamais élargir la page */
main > section { overflow-x: clip; }

/* En-tête compact : logo à gauche, menu à droite */
@media (max-width: 1180px) {
  .header-actions { margin-left: auto; }
  .menu-toggle { order: 4; margin-left: 0; }
}
@media (max-width: 560px) {
  .header-actions { display: none; }
  .menu-toggle { margin-left: auto; }
  .nav.is-open .nav-demo { display: flex; margin-top: 12px; border-bottom: 0; color: #fff; justify-content: center; border-radius: 999px; }
}
.nav-demo { display: none; }
@media (max-width: 720px) {
  .chip-gap { left: 8%; }
  .chip-pub { left: 6%; }
}

/* ==========================================================================
   Version commerciale
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section-head h2, .h2-big { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--navy); margin: 0; }
.h2-big { margin-bottom: 28px; }
.section-head-center { margin-inline: auto; text-align: center; }

/* Gains */
.gains-band { background: var(--paper); border-block: 1px solid var(--line); position: relative; z-index: 2; }
.gains { display: grid; grid-template-columns: repeat(4, 1fr); }
.gain { padding: 34px 26px; border-left: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.gain:first-child { border-left: 0; padding-left: 0; }
.gain-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; margin-bottom: 10px; }
.gain-ic svg { width: 22px; height: 22px; stroke: #fff; }
.gain b { font-size: 1.15rem; color: var(--navy); }
.gain span:last-child { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) {
  .gains { grid-template-columns: 1fr 1fr; }
  .gain { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .gain:nth-child(-n+2) { border-top: 0; }
  .gain:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .gains { grid-template-columns: 1fr; }
  .gain:nth-child(even) { padding-left: 0; border-left: 0; }
  .gain:nth-child(2) { border-top: 1px solid var(--line); }
}

/* Avant / après */
.compare { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--lift); }
.compare-head, .compare-row { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; }
.compare-head span { padding: 16px 22px; font-weight: 700; font-size: .95rem; }
.compare-head .c-before { color: var(--muted); background: var(--sunk); }
.compare-head .c-after { color: #fff; background: var(--navy); }
.compare-row { border-top: 1px solid var(--line); }
.compare-row > * { padding: 18px 22px; }
.compare-row b { color: var(--navy); }
.compare-row .c-before { color: var(--muted); background: var(--paper-2); text-decoration: line-through; text-decoration-color: rgba(90,100,112,.35); }
.compare-row .c-after { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--text); background: #f7faf8; }
.compare-row .c-after svg { width: 18px; height: 18px; stroke: var(--green); flex: none; margin-top: 4px; }
@media (max-width: 760px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > * { padding: 6px 18px; }
  .compare-row b { padding-top: 16px; }
  .compare-row .c-before::before { content: "Sans GARDEO : "; font-weight: 700; text-decoration: none; display: inline; }
  .compare-row .c-after { padding-bottom: 16px; }
}

/* Calculateur */
.calc-sec { background: var(--paper); border-block: 1px solid var(--line); }
.calc-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.calc-layout h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--navy); }
.calc-lead { color: var(--muted); font-size: 1.08rem; margin: 14px 0 26px; max-width: 52ch; }
.calc-tasks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.task { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.task label { display: grid; gap: 2px; cursor: default; }
.task label b { color: var(--navy); }
.task label small { color: var(--green); font-weight: 600; font-size: .86rem; }
.task-alt { background: var(--paper-2); margin-top: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); flex: none; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font: inherit; font-size: 1.3rem; color: var(--navy); cursor: pointer; border-radius: 10px; }
.stepper button:hover { background: var(--sunk); }
.stepper input { width: 46px; height: 44px; border: 0; text-align: right; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--text); background: transparent; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper span { width: 18px; color: var(--muted); font-weight: 600; }
.calc-result {
  position: sticky; top: 96px; background: var(--navy); color: var(--on-dark); border-radius: 18px; padding: 32px;
  box-shadow: 0 30px 60px -30px rgba(22,32,42,.6);
  transform: perspective(1400px) rotateY(-6deg); transform-origin: right center; transition: transform .6s var(--ease);
}
.calc-result:hover { transform: none; }
.r-label { color: var(--on-dark-muted); font-weight: 600; }
.r-big { font-size: clamp(3.6rem, 7vw, 5.2rem); font-weight: 800; color: #fff; line-height: 1; margin-top: 6px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.r-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); margin-top: 18px; overflow: hidden; }
.r-bar i { display: block; height: 100%; width: 75%; background: #7fd3a3; border-radius: inherit; transition: width .4s var(--ease); }
.r-sub { color: var(--on-dark-muted); font-size: .92rem; margin-top: 8px; }
.r-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.r-grid > div { background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 12px; padding: 14px; }
.r-num { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.r-txt { color: var(--on-dark-muted); font-size: .88rem; line-height: 1.35; display: block; }
.r-txt small { font-size: .78rem; }
.r-cta { width: 100%; margin-top: 24px; }
.r-note { color: var(--on-dark-muted); font-size: .8rem; margin-top: 14px; line-height: 1.45; }
@media (max-width: 960px) { .calc-layout { grid-template-columns: 1fr; } .calc-result { position: static; transform: none; } }
@media (max-width: 420px) { .task { flex-wrap: wrap; } .r-grid { grid-template-columns: 1fr; } }

/* Profils */
.personas { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 16px; align-items: stretch; perspective: 1600px; }
.persona { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.persona:hover { transform: translateY(-4px) rotateX(3deg); box-shadow: var(--lift); }
.persona-main { background: var(--navy); color: var(--on-dark); border-color: var(--navy); box-shadow: var(--lift); }
.p-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--sunk); margin-bottom: 18px; }
.p-ic svg { width: 22px; height: 22px; stroke: var(--navy); }
.persona-main .p-ic { background: rgba(255,255,255,.1); }
.persona-main .p-ic svg { stroke: #fff; }
.persona small { font-weight: 700; color: var(--muted); font-size: .9rem; }
.persona-main small { color: var(--on-dark-muted); }
.persona h3 { font-size: 1.35rem; color: var(--navy); margin: 4px 0 18px; }
.persona-main h3 { color: #fff; }
.persona ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.persona li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.persona li svg { width: 18px; height: 18px; stroke: var(--green); margin-top: 4px; }
.persona-main li svg { stroke: #7fd3a3; }
@media (max-width: 900px) { .personas { grid-template-columns: 1fr; } }

/* Confiance */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.trust-grid div { display: grid; gap: 4px; }
.trust-grid svg { width: 26px; height: 26px; stroke: var(--navy); margin-bottom: 6px; }
.trust-grid b { color: var(--navy); font-size: 1.05rem; }
.trust-grid span { color: var(--muted); font-size: .95rem; }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }

/* Démarrer */
.start-sec { background: var(--paper); border-block: 1px solid var(--line); }
.start { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.start li { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.s-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brick); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.start h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
.start p { color: var(--muted); }
.start-cta { text-align: center; margin-top: 36px; }
@media (max-width: 820px) { .start { grid-template-columns: 1fr; } }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-layout .section-head a { color: var(--navy); font-weight: 700; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 0; } }

/* Démo */
.demo h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.demo-points .num svg { width: 18px; height: 18px; stroke: #7fd3a3; }
.contact-direct > span { color: var(--on-dark-muted); }
.field.invalid .seg span { border-color: var(--brick); }
.site-footer a.brand { display: inline-flex; padding: 0; }
.consent span { font-weight: 400; }
a[href^="tel:"] { white-space: nowrap; }

/* ---------- Productivité : graphique avant / après ---------- */
:root { --c-before: #c8603f; --c-after: #2a66b8; }
.prod-sec { background: var(--paper); border-block: 1px solid var(--line); }
.prod-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.prod-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--navy); }
.prod-lead { color: var(--muted); font-size: 1.1rem; margin: 16px 0 26px; max-width: 44ch; }
.prod-total { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-block: 1px solid var(--line); margin-bottom: 26px; }
.prod-total > div { padding: 18px 0; }
.prod-total > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.pt-num { display: block; font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pt-txt { display: block; color: var(--muted); font-size: .92rem; line-height: 1.4; margin-top: 4px; }
.prod-uses { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.prod-uses li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; color: var(--muted); }
.prod-uses li b { color: var(--text); }
.prod-uses svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--sunk); stroke: var(--navy); }

.gain-chart {
  position: relative; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 2px 4px rgba(22,32,42,.04), 30px 40px 70px -40px rgba(22,32,42,.45);
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg); transform-origin: left center;
  transition: transform .7s var(--ease);
}
.gain-chart:hover, .gain-chart:focus-within { transform: none; }
.gain-chart figcaption b { display: block; color: var(--navy); font-size: 1.12rem; }
.gain-chart figcaption span { color: var(--muted); font-size: .9rem; }
.gc-legend { display: flex; gap: 20px; margin: 16px 0 6px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.gc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.gc-legend i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
i.gc-before { background: var(--c-before); }
i.gc-after { background: var(--c-after); }
.gc-rows { display: grid; }
.gc-row { display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gc-label { font-size: .92rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.gc-bars { display: grid; gap: 2px; }
.gc-track { position: relative; display: flex; align-items: center; gap: 8px; min-height: 18px; padding-block: 3px; border-radius: 4px; cursor: default; outline-offset: 2px; }
.gc-track:hover, .gc-track:focus-visible { background: var(--sunk); }
.gc-bar {
  display: block; height: 12px; width: var(--w); min-width: 4px; border-radius: 0 4px 4px 0;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .9s var(--ease) var(--d, 0ms);
}
.is-drawn .gc-bar { transform: scaleX(1); }
.gc-track b { font-size: .84rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; transition: opacity .4s var(--d, 0ms); }
.is-drawn .gc-track b { opacity: 1; }
.gc-track:nth-child(2) b { color: var(--text); }
.gc-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; font-weight: 700; color: var(--navy); }
.gc-sum-vals { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.gc-sum-vals s { color: var(--muted); font-weight: 600; text-decoration-thickness: 2px; }
.gc-sum-vals svg { width: 18px; height: 18px; stroke: var(--muted); }
.gc-sum-vals strong { color: var(--navy); font-size: 1.6rem; }
.gc-tip {
  position: absolute; z-index: 5; pointer-events: none; max-width: 280px;
  background: var(--navy); color: #fff; font-size: .84rem; font-weight: 600; line-height: 1.35;
  padding: 8px 12px; border-radius: 8px; box-shadow: 0 10px 24px -12px rgba(22,32,42,.6);
}
.gc-note { color: var(--muted); font-size: .82rem; margin-top: 12px; }
@media (max-width: 960px) {
  .prod-layout { grid-template-columns: 1fr; gap: 40px; }
  .gain-chart { transform: none; }
}
@media (max-width: 520px) {
  .gc-row { grid-template-columns: 1fr; gap: 6px; }
  .prod-total > div + div { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .gc-bar { transform: none; } .gc-track b { opacity: 1; } }

/* ---------- Hero empilé sur la largeur : titre, explication, boutons, visuel ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) 0; }
.hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0; }
.hero-grid > h1 {
  position: relative; z-index: 4; margin: 0; max-width: none; color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.12;
}
.hero-copy { max-width: 760px; display: grid; justify-items: center; }
.hero-lead { margin: 20px auto 0; max-width: 58ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.hero-cta { justify-content: center; margin-top: 28px; }
.hero-facts { justify-content: center; margin-top: 22px; }
.stage { width: 100%; height: clamp(340px, 50vw, 660px); margin-top: clamp(28px, 4vw, 52px); }
.device { width: min(980px, 84%); }
.stage .phone { right: max(4%, calc(50% - 540px)); top: 20%; }
.chip-gap { left: max(3%, calc(50% - 560px)); top: 26%; }
.chip-pub { left: max(6%, calc(50% - 500px)); top: 64%; }
@media (min-width: 1021px) { .hero-grid > h1 { white-space: nowrap; } }
@media (max-width: 720px) {
  .hero-grid { text-align: left; justify-items: stretch; }
  .hero-copy { justify-items: start; }
  .hero-cta, .hero-facts { justify-content: flex-start; }
  .hero-facts { flex-direction: column; gap: 8px; }
  .device { width: 92%; }
  .chip-gap { left: 4%; top: 4%; }
  .stage .phone { right: 3%; top: 26%; }
}
@media (max-width: 720px) { .chip-pub { display: none; } }
.hero-copy { max-width: 920px; }
@media (max-width: 720px) {
  .stage { margin-top: 40px; }
  .chip-gap { left: 9%; top: 0; }
}
@media (min-width: 721px) and (max-width: 1100px) { .chip-gap { left: 7%; } .chip-pub { left: 9%; } }
@media (max-width: 720px) { .chip-gap { top: 8%; } .stage { margin-top: 48px; } }

/* Ordre : titre, visuel 3D, puis explication et boutons */
.hero { padding-bottom: clamp(48px, 6vw, 80px); }
.hero-grid > .stage { margin-top: clamp(20px, 3vw, 36px); }
.hero-copy { margin-top: clamp(8px, 2vw, 24px); position: relative; z-index: 4; }
.hero-lead { margin-top: 0; }
@media (max-width: 720px) { .hero-grid > .stage { margin-top: 36px; } .hero-copy { margin-top: 16px; } }
.hero-copy { margin-top: clamp(56px, 6vw, 88px); }
.stage .phone { top: 14%; }
@media (max-width: 720px) {
  .hero-copy { margin-top: 64px; }
  .stage .phone { top: 18%; }
}
@media (min-width: 1021px) { .hero-grid > h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); } }
