/* Focalis — site vitrine
   Palette « Iris Hub » de la charte (CHARTE_GRAPHIQUE.md), police Inter (celle du logo).
   Animations courtes, sorties douces ; tout s'arrête avec prefers-reduced-motion. */

:root {
  --ink: #1A1A2E;
  --ink-2: #34364C;
  --slate: #5D6075;
  --muted: #8C8C9A;
  --bg: #FFFFFF;
  --bg-soft: #F6F7FB;
  --app-bg: #F4F4F6;
  --surface-2: #ECEEF8;
  --mist: #D0D5EE;
  --lavender: #8A96D4;
  --blue: #4B5EC6;
  --navy: #2B3990;
  --night: #0B0F2E;
  --border: #E4E7F2;
  --border-2: #C9CEE8;
  --green: #22c55e;
  --green-ink: #15803d;
  --warn-ink: #b45309;
  --danger: #ef4444;

  --shadow-sm: 0 1px 2px rgba(26, 26, 46, .05), 0 2px 8px rgba(43, 57, 144, .06);
  --shadow-md: 0 6px 18px rgba(43, 57, 144, .10), 0 2px 6px rgba(26, 26, 46, .04);
  --shadow-lg: 0 30px 70px -24px rgba(43, 57, 144, .32), 0 12px 28px -12px rgba(26, 26, 46, .14);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(75, 94, 198, .2); }

svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid rgba(75, 94, 198, .45); outline-offset: 2px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

section { scroll-margin-top: 76px; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .25s var(--ease);
}
.btn .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 20px -8px rgba(43, 57, 144, .6);
}
.btn-primary:hover {
  background: var(--blue); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 28px -10px rgba(75, 94, 198, .7);
}
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--navy); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg) scale(1.06); }
.brand-name { font-size: 20px; font-weight: 750; letter-spacing: -.035em; }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-links a:hover, .nav-links a[aria-current] { background: var(--surface-2); color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .7);
  font-size: 12.5px; font-weight: 650; letter-spacing: .02em;
}
.lang-switch > * { padding: 5px 9px; border-radius: 999px; line-height: 1; text-decoration: none; }
.lang-switch a { color: var(--slate); transition: color .2s, background-color .2s; }
.lang-switch a:hover { color: var(--navy); background: var(--surface-2); }
.lang-switch [aria-current] { background: var(--navy); color: #fff; }
.nav-toggle {
  display: none; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .ico { width: 20px; height: 20px; }

.nav-mobile {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 16px 20px; background: #fff;
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: 12px 8px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-mobile .btn { margin-top: 8px; justify-content: center; color: #fff; }

/* ---------- Apparition au défilement ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- En-têtes de section ---------- */

.section { padding: 128px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.032em; font-weight: 760; line-height: 1.05; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; color: var(--blue); font-size: 14px; font-weight: 650; letter-spacing: .01em;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lede { margin: 20px auto 0; max-width: 620px; color: var(--slate); font-size: 19px; line-height: 1.55; }

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; padding: 156px 0 24px; overflow-x: clip; }

.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(138, 150, 212, .30), transparent 70%),
    radial-gradient(30% 35% at 88% 26%, rgba(75, 94, 198, .12), transparent 70%),
    radial-gradient(32% 32% at 8% 40%, rgba(208, 213, 238, .55), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43, 57, 144, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 57, 144, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 65% 50% at 50% 28%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 50% at 50% 28%, #000 25%, transparent 75%);
}
.hero-rings { position: absolute; left: 50%; top: 330px; }
.hero-rings i {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  border: 1px solid rgba(75, 94, 198, .13);
  transform: translate(-50%, -50%);
  animation: ring-in 1.8s var(--ease) both, breathe 9s ease-in-out 1.8s infinite alternate;
}
.hero-rings i:nth-child(1) { width: 620px; height: 620px; animation-delay: .1s, 1.9s; }
.hero-rings i:nth-child(2) { width: 900px; height: 900px; animation-delay: .25s, 2.4s; border-color: rgba(75, 94, 198, .09); }
.hero-rings i:nth-child(3) { width: 1180px; height: 1180px; animation-delay: .4s, 2.9s; border-color: rgba(75, 94, 198, .06); }
@keyframes ring-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.82); } }
@keyframes breathe { to { transform: translate(-50%, -50%) scale(1.035); } }

.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding: 6px 16px 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink-2); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(75, 94, 198, .45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(75, 94, 198, 0); }
}

.hero-title {
  max-width: 13.5ch;
  font-size: clamp(46px, 8.2vw, 96px);
  line-height: 1;
  letter-spacing: -.042em;
  font-weight: 780;
}
.hl {
  position: relative; display: inline-block;
  padding-bottom: .1em; margin-bottom: -.1em;
  background: linear-gradient(95deg, var(--navy) 0%, var(--blue) 55%, var(--lavender) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hl-line {
  position: absolute; left: 1%; bottom: -.15em; width: 98%; height: .22em; overflow: visible;
}
.hl-line path {
  fill: none; stroke: var(--lavender); stroke-width: 6; stroke-linecap: round; opacity: .75;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.2s var(--ease) 1s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-lede { max-width: 640px; margin: 28px 0 0; color: var(--slate); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-proof {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin: 28px 0 0; padding: 0; list-style: none; color: var(--slate); font-size: 14.5px; font-weight: 500;
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .ico { width: 16px; height: 16px; color: var(--blue); stroke-width: 2.5; }

.hero-stage { margin-top: 72px; padding-bottom: 32px; perspective: 1800px; }
.hero-visual {
  --tilt: 1;
  position: relative;
  transform-origin: 50% 0;
  transform: rotateX(calc(var(--tilt) * 16deg)) scale(calc(1 - var(--tilt) * .05));
  will-change: transform;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 12% 6% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(75, 94, 198, .35), transparent);
  filter: blur(40px);
}

/* ---------- Maquette : tableau de bord professeur ---------- */

.app {
  position: relative; overflow: hidden;
  border-radius: 16px; background: #fff; color: var(--ink);
  font-size: 13px; line-height: 1.4; text-align: left;
  box-shadow: 0 0 0 1px rgba(43, 57, 144, .08), 0 50px 100px -40px rgba(43, 57, 144, .5), 0 20px 40px -24px rgba(26, 26, 46, .3);
  -webkit-user-select: none; user-select: none;
}
.app::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: rgba(26, 26, 46, .16); opacity: 0; transition: opacity .3s;
}
.app.is-modal::after { opacity: 1; }

.app-bar {
  position: relative; height: 38px; display: flex; align-items: center; padding: 0 14px;
  background: #F7F8FC; border-bottom: 1px solid var(--border);
}
.app-dots { display: flex; gap: 7px; }
.app-dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.app-dots i:nth-child(2) { background: #FEBC2E; }
.app-dots i:nth-child(3) { background: #28C840; }
.app-title { position: absolute; left: 50%; transform: translateX(-50%); color: var(--slate); font-size: 12.5px; font-weight: 600; }

.app-body { display: grid; grid-template-columns: 214px minmax(0, 1fr); }

.app-side { display: flex; flex-direction: column; gap: 16px; padding: 16px 14px; background: #FBFBFD; border-right: 1px solid var(--border); }
.side-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.side-brand svg { width: 22px; height: 22px; }
.side-session {
  display: flex; flex-direction: column; gap: 5px; padding: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm);
}
.side-label { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.side-session strong { font-size: 13.5px; }
.side-code {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2);
}
.code { font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: .08em; color: var(--navy); }
.qr { width: 34px; height: 34px; }
.qr path { fill: var(--ink); }
.side-live { display: flex; align-items: center; gap: 7px; color: var(--slate); font-size: 12px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav span { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; color: var(--slate); font-weight: 500; }
.side-nav svg { width: 15px; height: 15px; }
.side-nav .is-on { background: var(--surface-2); color: var(--navy); font-weight: 600; }

.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.dot-live { animation: live 2s ease-in-out infinite; }
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.app-main { min-width: 0; padding: 14px 16px 16px; background: var(--app-bg); }
.app-tools { display: flex; gap: 6px; margin-bottom: 14px; overflow: hidden; }
.tool {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 32px; padding: 0 11px; border-radius: 7px;
  background: #fff; border: 1px solid var(--border); color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s, transform .15s;
}
.tool svg { width: 15px; height: 15px; }
.tool.is-on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 3px rgba(75, 94, 198, .2); }
.tool.is-press { transform: scale(.94); }

.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.st {
  padding: 6px; border-radius: 8px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(43, 57, 144, .05);
  transition: box-shadow .4s, border-color .4s;
}
.app:not(.is-focus):not(.is-attn) .st-flag { border-color: rgba(245, 158, 11, .55); box-shadow: 0 0 0 3px rgba(245, 158, 11, .14); }
.st-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 5px; background: #EEF0F7; }
.st-meta { display: flex; align-items: center; gap: 6px; padding: 7px 3px 1px; font-size: 12px; }
.st-name { font-weight: 600; }
.st-app { display: grid; margin-left: auto; color: var(--muted); font-size: 11px; }
.st-app em {
  grid-area: 1 / 1; font-style: normal; text-align: right;
  transition: opacity .3s, transform .4s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.st-app em.warn { color: var(--warn-ink); font-weight: 600; }
.st-app em:last-child { opacity: 0; transform: translateY(5px); color: var(--navy); font-weight: 600; }
.app.is-focus .st-app em:first-child { opacity: 0; transform: translateY(-5px); }
.app.is-focus .st-app em:last-child { opacity: 1; transform: none; }

/* Écrans miniatures (réutilisés dans les panneaux) */
.scr { position: absolute; inset: 0; overflow: hidden; }

.scr-doc, .scr-focus, .win-doc { background: #fff; display: flex; flex-direction: column; gap: 5px; padding: 12% 14%; }
.scr-doc b, .scr-focus b, .win-doc b { display: block; width: 55%; height: 6px; margin-bottom: 3px; border-radius: 2px; background: var(--ink); opacity: .82; }
.scr-doc i, .scr-focus i, .win-doc i { display: block; height: 3px; border-radius: 2px; background: #DADDEA; }
.scr-doc i.s, .scr-focus i.s, .win-doc i.s { width: 62%; }

.scr-focus {
  z-index: 1; padding-top: calc(12% + 6px);
  opacity: 0; transform: scale(1.05);
  transition: opacity .45s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.scr-focus::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--blue); }
.scr-focus .lock {
  position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 5px; background: var(--navy); color: #fff;
}
.scr-focus .lock svg { width: 11px; height: 11px; stroke-width: 2.4; }
.app.is-focus .scr-focus { opacity: 1; transform: none; }

.scr-attn {
  z-index: 2; display: grid; place-items: center; padding: 8px; text-align: center;
  background: #05060C; opacity: 0;
  transition: opacity .45s ease;
  transition-delay: calc(var(--i, 0) * 60ms);
}
.scr-attn span { max-width: 92%; color: #fff; font-size: 8.5px; font-weight: 600; line-height: 1.3; opacity: .92; }
.app.is-attn .scr-attn { opacity: 1; }

.scr-video { display: grid; place-items: center; background: #0E1018; }
.scr-video .play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--danger); color: #fff; }
.scr-video .play svg { width: 11px; height: 11px; margin-left: 2px; }
.scr-video u { position: absolute; left: 8%; right: 8%; bottom: 10%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.scr-video u::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 42%; border-radius: 2px; background: var(--danger); animation: progress 14s linear infinite; }
@keyframes progress { from { width: 18%; } to { width: 86%; } }

.scr-code { display: flex; flex-direction: column; gap: 5px; padding: 11% 10%; background: #1B1E2E; }
.scr-code i { display: block; width: var(--w); height: 3px; margin-left: var(--x, 0); border-radius: 2px; background: #8A96D4; }
.scr-code i:nth-child(2) { background: #34d399; }
.scr-code i:nth-child(3) { background: #f9a8d4; }
.scr-code i:nth-child(4) { background: #fbbf24; }
.scr-code i:nth-child(5) { background: #7dd3fc; }

.scr-web { display: flex; flex-direction: column; background: #fff; }
.scr-web s { display: block; height: 12%; background: #EEF0F6; border-bottom: 1px solid #E3E6F0; }
.scr-web b { display: block; height: 30%; margin: 8% 10% 6%; border-radius: 4px; background: linear-gradient(120deg, #D0D5EE, #8A96D4); }
.scr-web.alt b { background: linear-gradient(120deg, #FDE68A, #FCA5A5); }
.scr-web span { display: flex; gap: 6%; margin: 0 10%; }
.scr-web span i { flex: 1; height: 14px; border-radius: 3px; background: #EEF0F6; }

.scr-slides { display: flex; flex-direction: column; gap: 6px; padding: 13%; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.scr-slides b { display: block; width: 60%; height: 7px; border-radius: 2px; background: #fff; }
.scr-slides i { display: block; width: 40%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .6); }
.scr-slides span { display: block; width: 32%; aspect-ratio: 1; margin-top: auto; align-self: flex-end; border-radius: 50%; background: rgba(255, 255, 255, .16); }

.scr-sheet {
  background-color: #fff;
  background-image: linear-gradient(#E3E6F0 1px, transparent 1px), linear-gradient(90deg, #E3E6F0 1px, transparent 1px);
  background-size: 20% 16.66%;
}
.scr-sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 16.66%; background: rgba(34, 197, 94, .14); }
.scr-sheet::after { content: ""; position: absolute; left: 40%; top: 50%; width: 20%; height: 16.66%; border: 1.5px solid #16a34a; }

/* Fenêtre modale « Mode Focus » */
.demo-modal-wrap { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; }
.demo-modal {
  width: 300px; padding: 16px; border-radius: 14px; background: #fff;
  box-shadow: 0 30px 60px -20px rgba(26, 26, 46, .4), 0 0 0 1px rgba(43, 57, 144, .08);
  opacity: 0; transform: translateY(8px) scale(.96);
  transition: opacity .25s var(--ease), transform .4s var(--ease);
}
.app.is-modal .demo-modal { opacity: 1; transform: none; }
.dm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dm-head strong { display: block; font-size: 14px; }
.dm-head span { color: var(--slate); font-size: 12px; }
.dm-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--surface-2); color: var(--navy); }
.dm-ico svg { width: 17px; height: 17px; }
.dm-label { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dm-field {
  display: flex; align-items: center; height: 36px; margin-top: 6px; padding: 0 10px;
  border: 1px solid var(--blue); border-radius: 7px; box-shadow: 0 0 0 3px rgba(75, 94, 198, .15); font-weight: 500;
}
.caret { width: 1.5px; height: 16px; margin-left: 1px; background: var(--navy); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dm-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dm-btn {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 7px;
  background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 600;
  transition: transform .15s, background-color .2s;
}
.dm-btn.dm-ghost { background: transparent; color: var(--slate); border: 1px solid var(--border); }
.dm-btn.is-press { transform: scale(.94); background: var(--blue); }

.demo-toast {
  position: absolute; right: 16px; bottom: 16px; z-index: 4; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-radius: 10px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--green);
  box-shadow: var(--shadow-md); font-size: 12.5px; font-weight: 600;
  opacity: 0; transform: translateX(14px);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.demo-toast.is-on { opacity: 1; transform: none; }
.demo-toast.is-dark { border-left-color: var(--ink); }
.demo-toast.is-dark .dot { background: var(--ink); }

.demo-cursor {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  opacity: 0; transition: transform .9s var(--ease-io), opacity .4s;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .28));
}
.demo-cursor.is-on { opacity: 1; }
.demo-cursor svg { width: 22px; height: 22px; fill: var(--ink); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; transform-origin: 20% 12%; transition: transform .12s; }
.demo-cursor.is-click svg { transform: scale(.8); }

/* ---------- Bandeau d'applications ---------- */

.strip { padding: 64px 0 16px; }
.strip-label { margin: 0 0 22px; padding: 0 16px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 500; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 56px; margin: 0; padding: 0 28px; list-style: none; }
.marquee li { color: #9EA2BA; font-size: 21px; font-weight: 650; letter-spacing: -.025em; white-space: nowrap; transition: color .3s; }
.marquee li:hover { color: var(--navy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Constat ---------- */

.statement { padding: 120px 0 72px; }
.statement-text {
  max-width: 980px; margin: 0 auto; text-align: center;
  font-size: clamp(30px, 4.5vw, 56px); line-height: 1.16; letter-spacing: -.032em; font-weight: 720; text-wrap: balance;
}
.statement-text .accent { color: var(--navy); }
.statement-text .w { color: #D5D8E6; transition: color .4s ease; }
.statement-text .w.is-on { color: var(--ink); }
.statement-text .accent .w.is-on { color: var(--navy); }

/* ---------- Onglets de fonctions ---------- */

.tabs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.tabs-list { display: flex; flex-direction: column; gap: 8px; }
.tab {
  position: relative; display: flex; gap: 16px; overflow: hidden;
  padding: 20px 22px 22px; border-radius: 18px; border: 1px solid transparent;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color .3s, border-color .3s, box-shadow .4s var(--ease);
}
.tab:hover { background: var(--bg-soft); }
.tab[aria-selected="true"] { background: #fff; border-color: var(--border); box-shadow: var(--shadow-md); }
.tab-ico {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface-2); color: var(--navy);
  transition: background-color .3s, color .3s;
}
.tab-ico svg { width: 20px; height: 20px; }
.tab[aria-selected="true"] .tab-ico { background: var(--navy); color: #fff; }
.tab-body { display: block; padding-top: 2px; }
.tab-title { display: block; color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.tab-text {
  display: block; max-height: 0; overflow: hidden; opacity: 0;
  color: var(--slate); font-size: 15.5px; line-height: 1.55;
  transition: max-height .5s var(--ease), opacity .35s, margin-top .4s var(--ease);
}
.tab[aria-selected="true"] .tab-text { max-height: 140px; margin-top: 6px; opacity: 1; }
.tab-progress { position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; overflow: hidden; border-radius: 2px; }
.tab[aria-selected="true"] .tab-progress { background: var(--surface-2); }
.tab-progress i { display: block; height: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; }

.tabs-stage {
  position: relative; display: grid; overflow: hidden; min-height: 470px; padding: 40px;
  border-radius: 28px; background: linear-gradient(160deg, #EFF1FB, #E4E8F8 60%, #DADFF4);
}
.tabs-stage::before {
  content: ""; position: absolute; inset: -30% 30% 40% -20%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .8), transparent);
}
.panel {
  position: relative; grid-area: 1 / 1; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98);
  transition: opacity .45s var(--ease), transform .7s var(--ease), visibility 0s linear .45s;
}
.panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }

.mock {
  width: 100%; max-width: 560px; padding: 18px;
  border-radius: 16px; background: #fff; border: 1px solid rgba(43, 57, 144, .08); box-shadow: var(--shadow-lg);
}
.mock-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; }
.mock-title { font-weight: 650; }
.live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--slate); font-size: 12px; }
.switch { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--border-2); }
.switch.is-on { background: var(--navy); }
.switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch.is-on i { left: 16px; }

.pv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pv { padding: 5px; border-radius: 8px; background: #fff; border: 1px solid var(--border); transition: border-color .3s, box-shadow .3s; }
.pv .scr { position: relative; inset: auto; aspect-ratio: 16 / 10; border-radius: 5px; }
.pv > span { display: block; padding: 5px 2px 0; font-size: 11.5px; font-weight: 600; }
.pv.is-picked { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75, 94, 198, .16); }
.panel.is-active .pv { animation: pop .6s var(--ease) both; }
.pv:nth-child(2) { animation-delay: .06s !important; }
.pv:nth-child(3) { animation-delay: .12s !important; }
.pv:nth-child(4) { animation-delay: .18s !important; }
.pv:nth-child(5) { animation-delay: .24s !important; }
.pv:nth-child(6) { animation-delay: .3s !important; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }

.mock-focus, .mock-attn, .mock-share { padding: 0; background: transparent; border: 0; box-shadow: none; }
.mock-focus { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.win { position: relative; width: 100%; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid rgba(43, 57, 144, .08); box-shadow: var(--shadow-lg); }
.win-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: #F7F8FC; border-bottom: 1px solid var(--border); color: var(--slate); font-size: 12px; font-weight: 600; }
.win-doc { gap: 9px; padding: 30px 40px 52px; }
.win-doc b { height: 12px; width: 45%; margin-bottom: 8px; }
.win-doc i { height: 6px; }
.focus-badge {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 12.5px; font-weight: 600; box-shadow: 0 10px 20px -8px rgba(43, 57, 144, .7);
}
.focus-badge svg { width: 13px; height: 13px; }
.panel.is-active .focus-badge { animation: pop .6s var(--ease) .35s both; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.keys-label { width: 100%; margin-bottom: 2px; text-align: center; color: var(--slate); font-size: 13px; font-weight: 500; }
.key {
  padding: 6px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 0 var(--border);
  color: var(--muted); font-size: 12.5px; font-weight: 600;
  text-decoration: line-through; text-decoration-color: rgba(239, 68, 68, .75); text-decoration-thickness: 1.5px;
}
.panel.is-active .key { animation: pop .5s var(--ease) both; }
.key:nth-of-type(2) { animation-delay: .5s !important; }
.key:nth-of-type(3) { animation-delay: .58s !important; }
.key:nth-of-type(4) { animation-delay: .66s !important; }
.key:nth-of-type(5) { animation-delay: .74s !important; }

.mock-attn { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.attn-screen {
  display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 24px;
  border-radius: 16px; border: 8px solid #1F2033; background: #05060C; box-shadow: var(--shadow-lg); text-align: center;
}
.attn-screen p { margin: 0; color: #fff; font-size: clamp(16px, 2.2vw, 24px); font-weight: 650; letter-spacing: -.02em; }
.panel.is-active .attn-screen { animation: lights-out 1s var(--ease) both; }
.panel.is-active .attn-screen p { animation: fade-up .8s var(--ease) .5s both; }
@keyframes lights-out { from { background: #E7EAF7; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.attn-row { display: flex; gap: 8px; }
.attn-row i { width: 44px; height: 28px; border-radius: 5px; background: #E2E6F5; border: 1px solid var(--border-2); }
.panel.is-active .attn-row i { animation: dark .5s var(--ease) both; animation-delay: calc(.4s + var(--i) * 90ms); }
@keyframes dark { to { background: #05060C; border-color: #05060C; } }

.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.chip svg { width: 14px; height: 14px; }
.chip-dark { background: var(--ink); border-color: var(--ink); color: #fff; }

.mock-share { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: center; }
.share-source { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.scr-slides.big { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 10; gap: 12px; padding: 12%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.scr-slides.big b { height: 14px; }
.scr-slides.big i { height: 6px; }
.share-log { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.share-log li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 12px; background: #fff; border: 1px solid rgba(43, 57, 144, .06); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 550;
}
.panel.is-active .share-log li { animation: slide-in .55s var(--ease) both; animation-delay: calc(.15s + var(--i) * .12s); }
@keyframes slide-in { from { opacity: 0; transform: translateX(14px); } }
.ok { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(34, 197, 94, .15); color: var(--green-ink); }
.ok svg { width: 13px; height: 13px; stroke-width: 3; }

/* ---------- Bento ---------- */

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--border);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.tile-ico, .plan-ico {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: 12px; background: var(--surface-2); color: var(--navy);
}
.tile-ico svg, .plan-ico svg { width: 20px; height: 20px; }
.tile h3 { margin-bottom: 6px; font-size: 17px; }
.tile p { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.55; }

.b-ghost, .b-solid {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600;
}
.b-ghost { border: 1px solid var(--border); color: var(--slate); }
.b-solid { background: var(--navy); color: #fff; }


/* ---------- Modes ---------- */

.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mode {
  display: flex; flex-direction: column; padding: 22px 24px 28px;
  border-radius: 24px; background: #fff; border: 1px solid var(--border);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.mode:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mode-art {
  position: relative; display: grid; place-content: center; height: 176px; margin-bottom: 22px; overflow: hidden;
  border-radius: 16px; background: linear-gradient(160deg, #F1F3FB, #E3E7F8);
}
.art-room { grid-template-columns: repeat(4, 46px); gap: 18px 16px; }
.art-room span, .art-cart span { position: relative; height: 30px; border-radius: 5px; background: #fff; border: 1px solid var(--border-2); }
.art-room span::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 6px; transform: translateX(-50%); border-radius: 0 0 3px 3px; background: var(--border-2); }
.mode.is-in .art-room span { animation: screen-on .5s var(--ease) both; animation-delay: calc(.4s + var(--i) * 80ms); }
@keyframes screen-on { to { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75, 94, 198, .14), inset 0 6px 0 var(--blue); } }

.art-cart { grid-template-columns: repeat(3, 54px); gap: 22px 14px; }
.art-cart span { height: 34px; border-radius: 5px 5px 2px 2px; }
.art-cart span::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -7px; height: 6px; border-radius: 0 0 4px 4px; background: var(--border-2); }
.mode.is-in .art-cart span { animation: lift .6s var(--ease) both; animation-delay: calc(.4s + var(--i) * 90ms); }
@keyframes lift { from { opacity: 0; transform: translateY(16px); } }

.art-byod .code {
  position: relative; z-index: 1; padding: 14px 22px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-md); font-size: 28px; letter-spacing: .14em;
}
.art-byod::before, .art-byod::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; border-radius: 50%;
  border: 1px solid rgba(75, 94, 198, .35); transform: translate(-50%, -50%) scale(.6); opacity: 0;
}
.mode.is-in .art-byod::before { animation: radar 3.2s var(--ease) .4s infinite; }
.mode.is-in .art-byod::after { animation: radar 3.2s var(--ease) 2s infinite; }
@keyframes radar { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); } }

.tag { align-self: flex-start; margin-bottom: 12px; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--navy); font-size: 12.5px; font-weight: 600; }
.tag-accent { background: var(--navy); color: #fff; }
.mode h3 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.025em; }
.mode > p { margin: 0 0 20px; color: var(--slate); font-size: 15.5px; line-height: 1.55; }

.checks { display: flex; flex-direction: column; gap: 9px; margin: auto 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.checks li { display: flex; align-items: flex-start; gap: 9px; }
.checks svg { width: 17px; height: 17px; margin-top: 3px; color: var(--blue); stroke-width: 2.5; }

/* ---------- Démarrer une séance ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; padding: 28px 26px; border-radius: 24px; background: #fff; border: 1px solid var(--border); }
.step-num { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 18px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; }
.step h3 { margin-bottom: 6px; font-size: 19px; }
.step > p { margin: 0 0 22px; color: var(--slate); font-size: 15px; line-height: 1.55; }
.step-card {
  display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 164px; margin-top: auto; padding: 18px;
  border-radius: 16px; background: linear-gradient(160deg, #F1F3FB, #E6E9F7); font-size: 13px;
}
.sc-teacher { display: grid; grid-template-columns: 1fr auto; align-items: center; align-content: center; gap: 10px 14px; }
.sc-label { grid-column: 1; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sc-code { grid-column: 1; display: flex; align-items: center; gap: 4px; }
.sc-code i {
  display: grid; place-items: center; width: 22px; height: 30px; border-radius: 6px;
  background: #fff; border: 1px solid var(--border-2); color: var(--navy);
  font-family: var(--mono); font-size: 15px; font-style: normal; font-weight: 700;
  transition: border-color .3s, transform .3s var(--ease);
}
.sc-code i.is-filled { border-color: var(--blue); animation: tick .35s var(--ease); }
@keyframes tick { from { transform: translateY(-4px); opacity: .3; } }
.sc-code b { width: 5px; }
.sc-teacher .qr { grid-column: 2; grid-row: 1 / span 2; width: 66px; height: 66px; padding: 5px; border-radius: 8px; background: #fff; }
.sc-join strong, .sc-invite strong { font-size: 14px; }
.sc-field { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 7px; background: #fff; border: 1px solid var(--border); }
.sc-field em { color: var(--muted); font-size: 12px; font-style: normal; }
.sc-field span { min-height: 1.4em; font-weight: 600; }
.sc-field [data-join-typed] { font-family: var(--mono); color: var(--navy); }
.sc-btn {
  align-self: flex-end; padding: 6px 14px; border-radius: 7px; background: var(--navy); color: #fff;
  font-size: 12.5px; font-weight: 600; transition: transform .15s, background-color .2s;
}
.sc-btn.is-press { transform: scale(.93); background: var(--blue); }
.sc-active {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: 4px; padding: 6px 12px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.sc-active.is-on { opacity: 1; transform: none; }

/* ---------- Confiance (bande sombre) ---------- */

.trust { position: relative; isolation: isolate; overflow: hidden; padding: 128px 0; background: var(--night); color: #E8EAF6; }
.trust-glow {
  position: absolute; inset: -30% -10% auto; z-index: -1; height: 90%;
  background: radial-gradient(45% 55% at 50% 0%, rgba(75, 94, 198, .5), transparent 70%);
}
.section-head-dark h2 { color: #fff; }
.section-head-dark .eyebrow { color: var(--lavender); }
.section-head-dark .lede { color: #A9AFD6; }

.trust-group { margin: 0 0 16px; color: var(--lavender); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.trust-item {
  padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .3s, border-color .3s;
}
.trust-item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(138, 150, 212, .35); }
.trust-item svg { width: 24px; height: 24px; margin-bottom: 16px; color: var(--lavender); }
.trust-item h3 { margin-bottom: 6px; color: #fff; font-size: 17px; }
.trust-item p { margin: 0; color: #A9AFD6; font-size: 14.5px; line-height: 1.55; }

/* Panneau BYOD */
.byod {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
  margin-top: 14px; padding: 48px;
  border-radius: 24px; border: 1px solid rgba(138, 150, 212, .25);
  background: linear-gradient(135deg, rgba(75, 94, 198, .22), rgba(255, 255, 255, .03) 70%);
}
.byod-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px;
  background: rgba(138, 150, 212, .16); border: 1px solid rgba(138, 150, 212, .3); color: #D0D5EE; font-size: 13px; font-weight: 600;
}
.byod-tag svg { width: 15px; height: 15px; }
.byod h3 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; line-height: 1.15; }
.byod-checks { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; color: #E4E7F8; font-size: 16px; font-weight: 500; }
.byod-checks li { display: flex; align-items: flex-start; gap: 10px; }
.byod-checks svg { width: 18px; height: 18px; margin-top: 3px; color: var(--lavender); stroke-width: 2.5; }
.byod-note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: #A9AFD6; font-size: 14.5px; line-height: 1.55; }
.tray { width: 100%; max-width: 380px; margin: 0 auto; }
.tray-bar {
  display: flex; align-items: center; justify-content: flex-end; height: 34px; padding: 0 12px;
  border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1);
}
.tray-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.tray-ico svg { width: 17px; height: 17px; }
.tray-menu {
  display: flex; flex-direction: column; margin-top: 6px; padding: 6px;
  border-radius: 12px; background: rgba(246, 247, 252, .97); color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); font-size: 14px;
}
.tray-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; transition: background-color .15s, color .15s; }
.tray-row:not(.muted):not(.tray-status):hover { background: var(--blue); color: #fff; }
.tray-row.muted { color: var(--muted); font-size: 13px; }
.tray-status { font-weight: 600; }
.tray-strong { font-weight: 600; }
.tray-menu hr { margin: 5px 8px; border: 0; border-top: 1px solid var(--border); }
.tray-caption { margin: 14px 0 0; text-align: center; color: #A9AFD6; font-size: 13.5px; }

/* Un seul zéro, et ce qu'il recouvre */
.zero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center;
  margin-top: 64px; padding-top: 48px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.zero-big { display: flex; align-items: center; gap: 24px; max-width: 460px; }
.zero-big strong {
  padding: 0 .06em; font-size: clamp(96px, 11vw, 148px); font-weight: 780; letter-spacing: 0; line-height: 1;
  background: linear-gradient(180deg, #fff 20%, var(--lavender));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.zero-big span { color: #E4E7F8; font-size: 18px; font-weight: 550; line-height: 1.45; }
.zero-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 0; padding: 0 0 0 48px;
  list-style: none; border-left: 1px solid rgba(255, 255, 255, .1); color: #C9CEF0; font-size: 15px; line-height: 1.45;
}
.zero-list li { display: flex; align-items: flex-start; gap: 10px; }
.zero-ico { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(138, 150, 212, .18); color: var(--lavender); }
.zero-ico svg { width: 12px; height: 12px; stroke-width: 3; }

/* ---------- Offres ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan {
  display: flex; flex-direction: column; padding: 30px; border-radius: 24px; background: #fff; border: 1px solid var(--border);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-featured { background: linear-gradient(180deg, #fff, #F3F5FD); border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-md); }
.plan-featured:hover { box-shadow: 0 0 0 1px var(--blue), var(--shadow-lg); }
.plan h3 { font-size: 22px; letter-spacing: -.025em; }
.plan-for { margin: 4px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); color: var(--slate); font-size: 15px; }
@media (min-width: 901px) { .plans .plan-for { min-height: calc(3.2em + 20px); } }
.plan-foot { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--slate); font-size: 14px; }
.plan .checks:last-child { margin-bottom: 0; }
.plan .checks { margin: 0 0 28px; }
.plan .btn { justify-content: center; margin-top: auto; }
.plans-note { max-width: 700px; margin: 24px auto 0; text-align: center; color: var(--slate); font-size: 14.5px; line-height: 1.55; }
.plans-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.estimate-cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center;
  margin-top: 20px; padding: 36px 40px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #4B5EC6 0%, #2B3990 50%, #141B4D 100%);
}
.estimate-cta::after {
  content: ""; position: absolute; right: -120px; top: 50%; z-index: -1; width: 360px; height: 360px;
  border-radius: 50%; border: 1.5px solid rgba(208, 213, 238, .14); transform: translateY(-50%);
  box-shadow: 0 0 0 46px rgba(208, 213, 238, .04), 0 0 0 92px rgba(208, 213, 238, .03);
}
.estimate-copy h3 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.03em; }
.estimate-copy p { max-width: 480px; margin: 8px 0 0; color: #C9CEF0; font-size: 16px; line-height: 1.55; }
.estimate-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-1px); }

/* ---------- FAQ ---------- */

.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.section-head-left { position: sticky; top: 120px; margin: 0; text-align: left; }
.section-head-left .lede { margin-left: 0; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: 18px; background: #fff; border: 1px solid var(--border); transition: box-shadow .35s var(--ease), border-color .3s; }
.faq-item.is-open { border-color: var(--border-2); box-shadow: var(--shadow-md); }
.faq-item h3 { font-size: inherit; letter-spacing: normal; }
.faq-item button {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 22px 24px;
  border: 0; border-radius: 18px; background: none; color: var(--ink); cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; text-align: left;
}
.faq-item button svg { width: 20px; height: 20px; color: var(--navy); transition: transform .4s var(--ease); }
.faq-item.is-open button svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { margin: 0; padding: 0 24px 22px; color: var(--slate); font-size: 15.5px; line-height: 1.65; }

/* ---------- Appel final et formulaire ---------- */

.cta { padding: 128px 0; }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: center; padding: 64px;
  border-radius: 32px; color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, #4B5EC6 0%, #2B3990 45%, #141B4D 100%);
}
.cta-iris { position: absolute; right: -180px; top: -220px; z-index: -1; width: 640px; height: 640px; }
.cta-iris i, .cta-iris b { position: absolute; border-radius: 50%; }
.cta-iris i { border: 1.5px solid rgba(208, 213, 238, .16); animation: breathe-soft 8s ease-in-out infinite alternate; }
.cta-iris i:nth-child(1) { inset: 0; }
.cta-iris i:nth-child(2) { inset: 12%; animation-delay: -2s; }
.cta-iris i:nth-child(3) { inset: 24%; animation-delay: -4s; }
.cta-iris b { inset: 34%; background: radial-gradient(circle, rgba(208, 213, 238, .22), rgba(138, 150, 212, .1) 45%, transparent 70%); }
@keyframes breathe-soft { to { transform: scale(1.04); } }

.cta-copy h2 { color: #fff; font-size: clamp(34px, 4.6vw, 54px); font-weight: 760; letter-spacing: -.035em; line-height: 1.04; }
.cta-copy p { max-width: 460px; margin: 18px 0 26px; color: #C9CEF0; font-size: 18px; }
.cta-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; color: #E4E7F8; font-size: 15.5px; font-weight: 500; }
.cta-list li { display: flex; align-items: center; gap: 10px; }
.cta-list svg { width: 18px; height: 18px; color: var(--lavender); stroke-width: 2.5; }

.form {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { padding: 0; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.field input, .field select {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-2);
  background: #fff; color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D6075' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(75, 94, 198, .15); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-2);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.chip-check span:hover { border-color: var(--blue); }
.chip-check input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-check input:focus-visible + span { outline: 3px solid rgba(75, 94, 198, .45); outline-offset: 2px; }
.form .btn { margin-top: 6px; }
.form-note { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }
.form-attach { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--navy); font-size: 13.5px; font-weight: 500; }
.form-note.is-ok { color: var(--green-ink); font-weight: 600; }
.form-note.is-error { color: #b91c1c; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* ---------- Pied de page ---------- */

.footer { padding: 64px 0 28px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand p { margin: 12px 0 0; color: var(--slate); font-size: 15px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols h4 { margin-bottom: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.footer-cols a { color: var(--ink-2); font-size: 15px; text-decoration: none; transition: color .2s; }
.footer-cols a:hover { color: var(--navy); }
.footer-bottom { display: flex; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* ---------- Page devis ---------- */

.devis-hero { position: relative; isolation: isolate; padding: 152px 0 40px; text-align: center; }
.devis-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 70% at 50% 0%, rgba(138, 150, 212, .28), transparent 70%);
}
.devis-hero h1 { max-width: 20ch; margin: 0 auto; font-size: clamp(36px, 5.4vw, 64px); font-weight: 770; letter-spacing: -.035em; line-height: 1.04; }

.devis { padding: 32px 0 120px; }
.devis-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }

.calc { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.calc-step { min-width: 0; margin: 0; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--border); }
.calc-step legend {
  float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 6px;
  font-size: 20px; font-weight: 700; letter-spacing: -.02em;
}
.calc-step legend small { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.calc-step .num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; }
.calc-hint { clear: both; margin: 0 0 18px; color: var(--slate); font-size: 15px; }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  position: relative; display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px 16px 14px 46px;
  border-radius: 14px; border: 1px solid var(--border-2);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.choice-body::before {
  content: ""; position: absolute; left: 17px; top: 17px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--border-2); background: #fff; transition: border .2s var(--ease);
}
.choice:hover .choice-body { border-color: var(--blue); }
.choice input:checked + .choice-body { border-color: var(--blue); background: #F5F6FD; box-shadow: 0 0 0 3px rgba(75, 94, 198, .14); }
.choice input:checked + .choice-body::before { border: 5px solid var(--navy); }
.choice input:focus-visible + .choice-body { outline: 3px solid rgba(75, 94, 198, .45); outline-offset: 2px; }
.choice strong { font-size: 15px; font-weight: 600; line-height: 1.35; }
.choice small { color: var(--slate); font-size: 13.5px; line-height: 1.45; }
.choice em { margin-top: 4px; color: var(--navy); font-size: 14px; font-style: normal; font-weight: 650; }

.calc-field { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); cursor: text; }
.calc-field strong { display: block; font-size: 16px; font-weight: 600; }
.calc-field small { color: var(--slate); font-size: 14px; }
.calc-field input {
  flex: none; width: 110px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border-2);
  color: var(--ink); font: inherit; font-size: 16px; font-weight: 650; text-align: center;
}

.rows > .row + .row { border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.row-text strong { display: block; font-size: 16px; font-weight: 600; }
.row-text span { color: var(--slate); font-size: 14px; }

.stepper { display: inline-flex; flex: none; align-items: center; overflow: hidden; border-radius: 12px; border: 1px solid var(--border-2); }
.stepper button {
  width: 40px; height: 42px; border: 0; background: #fff; color: var(--navy);
  font: inherit; font-size: 20px; line-height: 1; cursor: pointer; transition: background-color .15s;
}
.stepper button:hover { background: var(--surface-2); }
.stepper button:active { background: var(--mist); }
.stepper input, .calc-field input { -moz-appearance: textfield; appearance: textfield; }
.stepper input {
  width: 64px; height: 42px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  color: var(--ink); font: inherit; font-size: 16px; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button,
.calc-field input::-webkit-outer-spin-button, .calc-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus, .calc-field input:focus { outline: none; background: #F5F6FD; }
.calc-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(75, 94, 198, .15); }

.calc-later {
  display: flex; align-items: flex-start; gap: 16px; padding: 24px 28px;
  border-radius: 24px; border: 1px dashed var(--border-2); background: #FBFBFE;
}
.calc-later-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); color: var(--navy); }
.calc-later-ico svg { width: 20px; height: 20px; }
.calc-later h2 { font-size: 18px; letter-spacing: -.02em; }
.calc-later p { margin: 6px 0 0; color: var(--slate); font-size: 15px; line-height: 1.55; }
.calc-detail { padding: 28px; border-radius: 24px; background: var(--bg-soft); border: 1px solid var(--border); }
.calc-detail h2 { font-size: 20px; letter-spacing: -.02em; }
.detail-date { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.detail { width: 100%; margin-top: 8px; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.detail th { padding: 20px 0 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.detail td { padding: 9px 0; border-top: 1px solid var(--border); }
.detail td.calc { padding-right: 16px; color: var(--slate); text-align: right; white-space: nowrap; }
.detail td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail .subtotal td { font-weight: 650; }
.detail .total td { padding-top: 14px; border-top: 2px solid var(--ink); font-size: 16px; font-weight: 750; }
.detail .next td { color: var(--slate); }

.summary { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.summary-card {
  padding: 28px; border-radius: 24px; color: #fff; box-shadow: var(--shadow-lg);
  background: radial-gradient(120% 120% at 0% 0%, #4B5EC6 0%, #2B3990 45%, #141B4D 100%);
}
.summary-title { margin: 0 0 18px; color: #C9CEF0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.summary-card dl { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.summary-card dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary-card dt { color: #C9CEF0; font-size: 15px; }
.summary-card dt small { display: block; color: #A9AFD6; font-size: 12.5px; }
.summary-card dd { margin: 0; font-size: 16px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-card dd small { color: #A9AFD6; font-size: 12.5px; font-weight: 500; }
.summary-total { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); }
.summary-label { display: block; color: #C9CEF0; font-size: 14px; }
.summary-total strong { display: block; font-size: 44px; font-weight: 780; letter-spacing: -.035em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-total small { display: block; margin-top: 6px; color: #C9CEF0; font-size: 14px; line-height: 1.45; }
.summary-per {
  display: flex; flex-direction: column; gap: 4px; margin: 16px 0 0; padding: 12px 14px; list-style: none;
  border-radius: 14px; background: rgba(255, 255, 255, .08); color: #E4E7F8; font-size: 13.5px;
}
.summary-per li { display: flex; justify-content: space-between; gap: 12px; }
.summary-per li span:last-child { font-weight: 650; white-space: nowrap; }
.summary-quote { margin: 14px 0 0; color: #E4E7F8; font-size: 13.5px; line-height: 1.5; }
.summary-note { margin: 18px 0; color: #C9CEF0; font-size: 13px; line-height: 1.5; }
.summary-tools { display: flex; justify-content: center; gap: 22px; margin-top: 14px; }
.link-btn {
  padding: 0; border: 0; background: none; color: #C9CEF0; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(201, 206, 240, .4); text-underline-offset: 3px;
  transition: color .2s;
}
.link-btn:hover { color: #fff; }
.offer { padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--border); }
.offer strong { font-size: 15px; }
.offer p { margin: 6px 0 0; color: var(--slate); font-size: 14px; line-height: 1.55; }

.summary-bar { display: none; }

@media (max-width: 1080px) {
  .devis-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .summary-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px;
    border-radius: 16px; background: var(--night); color: #fff; box-shadow: 0 20px 40px -12px rgba(11, 15, 46, .5);
    transition: transform .45s var(--ease), opacity .3s;
  }
  .summary-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .summary-bar small { display: block; color: #A9AFD6; font-size: 12px; }
  .summary-bar strong { font-size: 18px; font-variant-numeric: tabular-nums; }
  .estimate-cta { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .devis-hero { padding: 120px 0 24px; }
  .calc-step, .calc-detail, .calc-later { padding: 22px 18px; border-radius: 20px; }
  .calc-later { flex-direction: column; gap: 12px; }
  .choices { grid-template-columns: 1fr; }
  .row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .calc-field { align-items: flex-start; flex-direction: column; gap: 10px; }
  .detail { font-size: 13.5px; }
  .detail td.calc { width: 0; padding: 0; font-size: 0; }
  .summary-total strong { font-size: 38px; }
  .estimate-cta { padding: 28px 22px; }
  .estimate-actions .btn { width: 100%; justify-content: center; }
}

/* Impression : le détail et le récapitulatif, rien d'autre */
@media print {
  @page { margin: 16mm; }
  .nav, .footer, .skip, .summary-bar, .summary-tools, .summary-card .btn, .offer, .devis-explain,
  .calc-step, .devis-hero .eyebrow, .devis-hero .lede { display: none !important; }
  body { background: #fff; font-size: 12px; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .devis-hero { padding: 0 0 8px; text-align: left; }
  .devis-hero::before { display: none; }
  .devis-hero h1 { max-width: none; margin: 0; font-size: 22px; }
  .devis { padding: 0; }
  .devis-layout { display: block; }
  .calc-detail { padding: 0; border: 0; background: none; }
  .summary { position: static; margin-top: 18px; }
  .summary-card { padding: 16px; background: #fff; color: var(--ink); border: 1px solid var(--border-2); box-shadow: none; }
  .summary-title, .summary-card dt, .summary-card dt small, .summary-card dd small, .summary-label,
  .summary-total small, .summary-quote, .summary-note, .summary-per { color: var(--ink); }
  .summary-per { background: var(--bg-soft); }
  .summary-total strong { font-size: 26px; }
}

/* ---------- Pages légales ---------- */

.legal-hero { position: relative; isolation: isolate; padding: 150px 0 48px; }
.legal-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 30% 0%, rgba(138, 150, 212, .24), transparent 70%);
}
.legal-hero .container, .legal-layout { max-width: 1080px; }
.legal-hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 770; letter-spacing: -.035em; line-height: 1.04; }
.legal-updated { margin: 14px 0 0; color: var(--muted); font-size: 15px; }

.legal { padding: 16px 0 120px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 100px; font-size: 14px; }
.legal-toc p { margin: 0 0 10px; padding-left: 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.legal-toc ol { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.legal-toc a {
  display: block; padding: 7px 12px; border-radius: 8px; color: var(--slate); line-height: 1.35; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.legal-toc a:hover { background: var(--bg-soft); color: var(--navy); }
.legal-toc a.is-active { background: var(--surface-2); color: var(--navy); font-weight: 600; }

.prose { max-width: 760px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose h2 { margin: 56px 0 14px; color: var(--ink); font-size: 24px; letter-spacing: -.02em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--lavender); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--navy); text-decoration-color: rgba(43, 57, 144, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }

.legal-card { margin: 0 0 14px; padding: 4px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.legal-card > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 12px 0; }
.legal-card > div + div { border-top: 1px solid var(--border); }
.legal-card dt { color: var(--muted); font-size: 14.5px; }
.legal-card dd { margin: 0; color: var(--ink); }

.legal-table { width: 100%; margin: 4px 0 18px; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); font-size: 15px; line-height: 1.5; }
.legal-table th { padding: 12px 16px; background: var(--bg-soft); color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.legal-table td { padding: 14px 16px; border-top: 1px solid var(--border); vertical-align: top; }
.legal-table td:first-child { color: var(--ink); font-weight: 500; }

mark.todo {
  padding: 1px 7px; border-radius: 6px; background: #FEF3C7; color: #92400E; font-size: .92em; font-weight: 500;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-legal a:hover, .footer-legal a[aria-current] { color: var(--navy); }
.form-legal { margin: 0; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.form-legal a { color: var(--slate); text-underline-offset: 2px; }
.form-note:empty { display: none; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-toc { display: none; }
}

@media (max-width: 640px) {
  .legal-hero { padding: 118px 0 32px; }
  .prose { font-size: 16px; }
  .prose h2 { margin-top: 44px; font-size: 21px; }
  .legal-card { padding: 4px 16px; }
  .legal-card > div { grid-template-columns: 1fr; gap: 2px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table thead { display: none; }
  .legal-table tr + tr { border-top: 1px solid var(--border); }
  .legal-table td { padding: 10px 16px 0; border-top: 0; }
  .legal-table td:last-child { padding-bottom: 14px; }
  .legal-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
}

/* ---------- Adaptatif ---------- */

@media (max-width: 1080px) {
  .tabs { grid-template-columns: 1fr; gap: 28px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .byod { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .zero { grid-template-columns: 1fr; gap: 32px; }
  .zero-list { padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .cta-card { grid-template-columns: 1fr; gap: 40px; padding: 48px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .section-head-left { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .modes, .steps, .plans { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .hero-visual { transform: rotateX(calc(var(--tilt) * 10deg)) scale(calc(1 - var(--tilt) * .03)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section, .trust, .cta { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }
  .lede { font-size: 17px; }
  .hero { padding-top: 124px; }
  .hero-stage { margin-top: 52px; }
  .nav-cta .btn { display: none; }
  .tool-wide { display: none; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st:nth-child(n + 5) { display: none; }
  .demo-modal { width: 260px; }
  .statement { padding: 84px 0; }
  .tabs-stage { min-height: 380px; padding: 20px; border-radius: 22px; }
  .tab { padding: 16px; }
  .mock-share { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .byod { padding: 28px 20px; }
  .zero-list { grid-template-columns: 1fr; }
  .zero-big { gap: 18px; }
  .zero-big span { font-size: 16px; }
  .cta-card { padding: 32px 20px; border-radius: 24px; }
  .form { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-cols { gap: 40px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-visual { transform: none; }
  .marquee-track { animation: none; }
}
