/* ══════════════════════════════════════════════════
   ParcSync — Landing page
   Le logiciel en arrière-plan (scènes pilotées par le scroll),
   le texte explicatif au premier plan (cartes en verre clair).
   Palette : slate-50 / slate-900 / blue-600, grille de points.
   ══════════════════════════════════════════════════ */

/* Police hébergée sur le site (aucune requête vers Google) — Plus Jakarta Sans, licence SIL OFL 1.1 */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --fond:         #f8fafc;   /* slate-50  */
  --encre:        #0f172a;   /* slate-900 */
  --corps:        #334155;   /* slate-700 : texte courant sur verre */
  --doux:         #475569;   /* slate-600 */
  --accent:       #2563eb;   /* blue-600  */
  --accent-fonce: #1d4ed8;   /* blue-700  */
  --cyan:         #0891b2;
  --vert-texte:   #15803d;

  --verre-fond:   rgba(255,255,255,.74);
  --verre-bord:   rgba(226,232,240,.85);
  --verre-flou:   16px;

  --police: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --largeur: 1160px;
  --gouttiere: 24px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Mise en page (bureau) : texte à gauche, logiciel à droite, jamais superposés */
  --carte-l: clamp(450px, 28vw, 560px);   /* la carte s'élargit sur grand écran (537 px à 1920 px) */
  --hero-l: 540px;
  --ecart: 32px;
  --bord-g: calc(max(0px, (100vw - 1160px) / 2) + 24px);

  --scroll: 0;
  --mx: 50%;
  --my: 50%;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body {
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur--etroit { max-width: 780px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lien-evitement {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .15s var(--ease);
}
.lien-evitement:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ══════════════════ FOND TEXTURÉ ══════════════════ */
.fond { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fond__halo { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.fond__halo--1 { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(closest-side, rgba(37,99,235,.35), transparent); }
.fond__halo--2 { width: 560px; height: 560px; right: -140px; bottom: -180px; background: radial-gradient(closest-side, rgba(8,145,178,.28), transparent); }

/* Grille de points « technique » */
.fond__points {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, #cbd5e1 1.15px, transparent 1.4px);
  background-size: 26px 26px;
}
/* Même grille, plus vive, révélée autour du curseur */
.fond__points--vif {
  background-image: radial-gradient(circle, rgba(37,99,235,.75) 1.5px, transparent 1.8px);
  -webkit-mask-image: radial-gradient(circle 190px at var(--mx) var(--my), #000, transparent);
          mask-image: radial-gradient(circle 190px at var(--mx) var(--my), #000, transparent);
  opacity: 0; transition: opacity .4s;
}
body.pointeur .fond__points--vif { opacity: 1; }

/* Grain */
.fond__grain {
  position: absolute; inset: 0; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ══════════════════ VERRE (glassmorphism clair) ══════════════════ */
.verre {
  position: relative;
  background: var(--verre-fond);
  border: 1px solid var(--verre-bord);
  -webkit-backdrop-filter: blur(var(--verre-flou)) saturate(1.5);
          backdrop-filter: blur(var(--verre-flou)) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 24px 48px -28px rgba(15,23,42,.35);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .verre { background: rgba(255,255,255,.95); }
}
/* Reflet qui suit le curseur */
.verre::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--cx, 50%) var(--cy, 0%), rgba(37,99,235,.10), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.verre:hover::before { opacity: 1; }

/* ══════════════════ SCÈNE PRODUIT (arrière-plan) ══════════════════ */
.stage {
  /* Le logiciel occupe la zone libre à droite de la carte de texte (la carte reste toujours à gauche) */
  --w: min(960px, max(360px, calc(100vw - 24px - var(--bord-g) - var(--carte-l) - var(--ecart))));
  --x: calc((var(--bord-g) + var(--carte-l) + var(--ecart) - 24px) / 2);
  --y: 0vh; --s: .95; --ry: -8deg; --o: 1; --par: 0px;
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  display: grid; place-items: center;
  perspective: 1800px;
  /* --o est piloté par le scroll (app.js) : le logiciel s'efface progressivement avant la FAQ */
  opacity: var(--o);
  transition: opacity .2s linear;
}
body[data-chap="hero"]    .stage {
  --w: min(960px, max(360px, calc(100vw - 24px - var(--bord-g) - var(--hero-l) - var(--ecart))));
  --x: calc((var(--bord-g) + var(--hero-l) + var(--ecart) - 24px) / 2);
  --y: 2vh; --ry: -9deg;
}
body[data-chap="scan"]    .stage { --ry: -6deg; }
body[data-chap="ports"]   .stage { --ry: -8deg; }
body[data-chap="alert"]   .stage { --ry: -6deg; }
body[data-chap="local"]   .stage { --ry: -8deg; }
body[data-chap="install"] .stage { --ry: -9deg; }

.stage__pose {
  width: var(--w);
  transform: translate3d(var(--x), var(--y), 0) rotateY(var(--ry)) scale(var(--s));
  transition: transform 1.1s var(--ease);
  will-change: transform;
}
.stage__float { display: grid; grid-template-columns: minmax(0, 1fr); transform: translate3d(0, var(--par), 0); }

/* Légende : dit quelle vue du logiciel est affichée. Réservée au mobile (sur ordinateur elle ferait
   doublon avec l'étiquette de la carte : « 01 Découverte »). */
.legende {
  grid-row: 2; justify-self: center; margin-top: 18px;
  display: none; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; background: var(--verre-fond); border: 1px solid var(--verre-bord);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  max-width: 100%; text-align: center; line-height: 1.3;
  font-size: 12.5px; font-weight: 600; color: var(--doux);
}
.legende i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.legende span { transition: opacity .25s; }
.legende.is-change span { opacity: 0; }

/* Cadre de la scène : transparent sur ordinateur ; sur mobile il devient une fenêtre qui montre
   la scène en gros plan et la fait défiler de gauche à droite pendant le scroll (voir plus bas). */
.stage__vue { display: grid; grid-template-columns: minmax(0, 1fr); }

/* Fondu enchaîné piloté par le scroll : --op (0 à 1) est calculé par app.js pour chaque scène,
   la scène qui part s'efface pendant que la suivante apparaît, sans coupure brutale. */
.scene {
  grid-area: 1 / 1;
  container-type: inline-size;
  opacity: var(--op, 0);
  transform: translateY(calc((1 - var(--op, 0)) * 22px)) scale(calc(.96 + .04 * var(--op, 0)));
  transition: opacity .18s linear, transform .18s linear;
}
.scene:not(.is-active) * { animation-play-state: paused !important; }

/* Fenêtre « logiciel » (thème sombre du dashboard) */
.win {
  font-size: 14px;
  background: #0f1620; color: #e6edf5;
  border: 1px solid #26344a; border-radius: 1.1em; overflow: hidden;
  box-shadow: 0 3.2em 6em -2.4em rgba(15,23,42,.6), 0 .8em 2em -.8em rgba(15,23,42,.4);
}
@supports (font-size: 1cqw) { .win { font-size: 1.9cqw; } }

.win__barre { display: flex; align-items: center; gap: .55em; padding: .8em 1.1em; background: #0c121b; border-bottom: 1px solid #26344a; }
.feu { width: .7em; height: .7em; border-radius: 50%; }
.feu:nth-child(1) { background: #e74c3c; }
.feu:nth-child(2) { background: #f39c12; }
.feu:nth-child(3) { background: #2ecc71; }
.win__titre { margin-left: .6em; font-size: .82em; font-weight: 600; color: #8da2bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__live { margin-left: auto; display: inline-flex; align-items: center; gap: .45em; font-size: .72em; font-weight: 700; color: #2ecc71; white-space: nowrap; }
.win__live b { width: .6em; height: .6em; border-radius: 50%; background: currentColor; animation: pouls 2s infinite; }
.win__live--alerte { color: #f39c12; }
.win__pied { display: flex; flex-wrap: wrap; gap: .4em 1.6em; padding: .8em 1.2em; border-top: 1px solid #26344a; font-size: .78em; color: #8da2bd; background: #0c121b; }
.win__pied b { color: #e6edf5; }
.win__pied b.ok { color: #2ecc71; }

@keyframes pouls {
  0%   { box-shadow: 0 0 0 0 rgba(46,204,113,.55); }
  70%  { box-shadow: 0 0 0 .6em rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* ── Scène carte / local (SVG) ── */
.win__corps--carte, .win__corps--local { padding: .3em .5em; }
.topo { width: 100%; height: auto; }
.topo__liens path { fill: none; stroke: #26344a; stroke-width: 2; }
.topo__flux path { fill: none; stroke: #3b82f6; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 17; animation: flux 1.5s linear infinite; }
@keyframes flux { to { stroke-dashoffset: -20; } }
.nd rect { fill: #1a2433; stroke: #2f4566; stroke-width: 1.5; }
.nd--infra rect { stroke: #3b82f6; }
.nd--cloud rect { stroke-dasharray: 4 4; }
.nd text { font: 700 11px var(--mono); fill: #9fb3cc; text-anchor: middle; }
.lbl { font: 600 12px var(--police); fill: #cbd5e1; text-anchor: middle; }
.lbl--p { font-weight: 500; font-size: 11px; fill: #8da2bd; }
.pt-ok { fill: #2ecc71; animation: clignote 2.4s ease-in-out infinite; }
@keyframes clignote { 50% { opacity: .35; } }

.perim { fill: rgba(37,99,235,.07); stroke: #3b82f6; stroke-width: 2; stroke-dasharray: 8 8; animation: defile-tirets 8s linear infinite; }
@keyframes defile-tirets { to { stroke-dashoffset: -64; } }
.perim__lbl { font: 700 11px var(--police); letter-spacing: .14em; fill: #7cb4ff; }
.srv rect { fill: #13294d; stroke: #3b82f6; stroke-width: 2; }
.srv__nom { font: 800 17px var(--police); fill: #fff; text-anchor: middle; }
.srv__sous { font: 500 11px var(--police); fill: #8da2bd; text-anchor: middle; }
.coupe { fill: none; stroke: #e74c3c; stroke-width: 2; stroke-dasharray: 4 6; opacity: .75; }
.croix circle { fill: #2a1517; stroke: #e74c3c; stroke-width: 2; }
.croix path { stroke: #e74c3c; stroke-width: 2.4; stroke-linecap: round; }
.nuage { fill: #1a2433; stroke: #3a4a63; stroke-width: 2; stroke-dasharray: 5 5; }
.lbl--nuage { fill: #8da2bd; font-weight: 500; font-size: 11px; }
.scene.is-active .croix { animation: apparait .5s .9s both; }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }

/* ── Scène scan ── */
.win__corps--scan { display: grid; grid-template-columns: .9fr 1.4fr; gap: 1.2em; padding: 1.2em; align-items: start; }
.radar {
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 1px solid #26344a;
  background:
    linear-gradient(#26344a, #26344a) center / 1px 100% no-repeat,
    linear-gradient(#26344a, #26344a) center / 100% 1px no-repeat,
    radial-gradient(circle, transparent 0 24%, rgba(59,130,246,.38) 24.5% 25.5%, transparent 26% 49%, rgba(59,130,246,.3) 49.5% 50.5%, transparent 51% 74%, rgba(59,130,246,.24) 74.5% 75.5%, transparent 76%),
    #0c121b;
}
.radar__balai { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(56,189,248,0) 0deg, rgba(56,189,248,.5) 68deg, rgba(56,189,248,0) 69deg); animation: tourne 3.2s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.blip { position: absolute; left: var(--x); top: var(--y); width: .7em; height: .7em; margin: -.35em 0 0 -.35em; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 1em #2ecc71; transform: scale(0); }
.scene.is-active .blip { animation: blip-in .5s var(--d) both; }
@keyframes blip-in { from { transform: scale(0); } to { transform: scale(1); } }
.barre { height: .45em; margin-top: 1em; border-radius: 99px; background: #1a2433; overflow: hidden; }
.barre span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #3b82f6, #2ecc71); }
.scene.is-active .barre span { animation: remplir 4.2s .2s var(--ease) both; }
@keyframes remplir { from { width: 0; } to { width: 100%; } }
.scan__etat { margin-top: .6em; font: 500 .75em var(--mono); color: #8da2bd; }
.scan__liste { display: grid; gap: .5em; }
.scan__liste li { display: grid; grid-template-columns: 2.6em 7.4em 1fr auto; align-items: center; gap: .7em; padding: .6em .8em; background: #1a2433; border: 1px solid #26344a; border-radius: .7em; font-size: .82em; }
.scan__liste em { font: 700 .85em var(--mono); text-align: center; padding: .25em 0; border-radius: .4em; background: rgba(59,130,246,.16); color: #7cb4ff; font-style: normal; }
.scan__liste code { font: .9em var(--mono); color: #9fb3cc; }
.scan__liste span { color: #e6edf5; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan__liste b { font-size: .82em; font-weight: 600; color: #2ecc71; }
.scene.is-active .scan__liste li { animation: ligne-in .5s calc(.5s + var(--i) * .5s) var(--ease) both; }
@keyframes ligne-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ── Scène ports ── */
.win__corps--ports { padding: 1.2em; }
.faceplate { counter-reset: p; display: grid; grid-template-columns: repeat(14, 1fr); gap: .45em; padding: .9em; background: #0c121b; border: 1px solid #26344a; border-radius: .8em; }
.pt { counter-increment: p; position: relative; display: block; aspect-ratio: 1 / 1.15; background: #1a2433; border: 1px solid #2f4566; border-radius: .35em; transition: box-shadow .3s, outline-color .3s; }
.pt::before { content: ""; position: absolute; top: .32em; left: 50%; width: .55em; height: .24em; margin-left: -.275em; border-radius: 1em; background: #2ecc71; box-shadow: 0 0 .5em rgba(46,204,113,.7); }
.pt::after { content: counter(p); position: absolute; bottom: .22em; left: 0; right: 0; text-align: center; font: 600 .56em var(--mono); color: #5f7391; }
.pt.busy::before { background: #f39c12; box-shadow: 0 0 .5em rgba(243,156,18,.8); animation: clignote 1.1s ease-in-out infinite; }
.pt.down::before { background: #e74c3c; box-shadow: 0 0 .5em rgba(231,76,60,.7); }
.pt.off { background: #131b28; }
.pt.off::before { background: #3a4a63; box-shadow: none; }
.pt.sel { outline: 2px solid #38bdf8; outline-offset: 2px; box-shadow: 0 0 1.2em rgba(56,189,248,.55); }
.ports__legende { display: flex; flex-wrap: wrap; gap: .4em 1.4em; margin-top: .9em; font-size: .75em; color: #8da2bd; }
.ports__legende span { display: inline-flex; align-items: center; gap: .5em; }
.ports__legende .pt { width: 1em; aspect-ratio: auto; height: 1.1em; }
.ports__legende .pt::after { content: none; }
.detail { margin-top: 1em; padding: 1em 1.1em; background: #1a2433; border: 1px solid #26344a; border-radius: .9em; }
.detail__tete { display: flex; justify-content: space-between; gap: 1em; font-size: .95em; }
.detail__tete span { color: #7cb4ff; font-weight: 600; }
.detail__chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; margin: .8em 0; }
.detail__chiffres small { display: block; font-size: .7em; color: #8da2bd; }
.detail__chiffres b { font-size: 1.1em; font-weight: 700; }
.trafic { display: flex; align-items: flex-end; gap: .22em; height: 3.2em; }
.trafic b { flex: 1; height: 100%; border-radius: .2em .2em 0 0; background: linear-gradient(#38bdf8, #2563eb); transform-origin: bottom; animation: onde 1.8s ease-in-out infinite alternate var(--d); }
@keyframes onde { from { transform: scaleY(.18); } to { transform: scaleY(1); } }

/* ── Scène alerte ── */
.win__corps--alerte { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.2em; padding: 1.2em; }
.eq { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin-bottom: .6em; padding: .75em .9em; background: #1a2433; border: 1px solid #26344a; border-radius: .8em; }
.eq strong { display: block; font-size: .9em; }
.eq small { font-size: .72em; color: #8da2bd; }
.etat { font-size: .72em; font-weight: 700; padding: .3em .8em; border-radius: 99px; white-space: nowrap; }
.etat--ok { background: rgba(46,204,113,.14); color: #2ecc71; }
.etat--ko { display: inline-grid; background: rgba(46,204,113,.14); color: #2ecc71; }
.etat--ko u, .etat--ko s { grid-area: 1 / 1; text-decoration: none; text-align: center; }
.etat--ko s { opacity: 0; }
.scene.is-active .eq--chute { animation: chute .6s 1.7s both; }
.scene.is-active .etat--ko { animation: vire-ko .3s 1.8s both; }
.scene.is-active .etat--ko u { animation: sort .3s 1.8s both; }
.scene.is-active .etat--ko s { animation: apparait .3s 1.8s both; }
@keyframes chute {
  0% { border-color: #26344a; } 15% { transform: translateX(-5px); } 35% { transform: translateX(5px); }
  55% { transform: translateX(-3px); } 75% { transform: translateX(3px); }
  100% { transform: none; border-color: #e74c3c; background: #2a1c24; }
}
@keyframes vire-ko { to { background: rgba(231,76,60,.2); color: #ff8a7a; } }
@keyframes sort { to { opacity: 0; } }
.ping { margin-top: 1em; padding: .8em .9em; background: #0c121b; border: 1px solid #26344a; border-radius: .8em; }
.ping small { font-size: .7em; color: #8da2bd; }
.ping svg { width: 100%; height: auto; margin-top: .4em; }
.ping path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; }
.ping__ok { stroke: #2ecc71; }
.ping__ko { stroke: #e74c3c; }
.scene.is-active .ping__ok { animation: trace 1.5s .2s ease-out both; }
.scene.is-active .ping__ko { animation: trace .6s 1.65s ease-out both; }
@keyframes trace { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
.al__titre { display: block; margin-bottom: .6em; font-size: .72em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8da2bd; }
.journal { display: grid; gap: .5em; }
.journal li { display: grid; grid-template-columns: .8em 1fr; gap: .7em; align-items: center; padding: .65em .8em; background: #1a2433; border: 1px solid #26344a; border-radius: .7em; }
.journal i { width: .6em; height: .6em; border-radius: 50%; background: #3a4a63; }
.journal b { display: block; font-size: .8em; }
.journal span { font: .68em var(--mono); color: #8da2bd; }
.journal__ko { border-color: rgba(231,76,60,.6) !important; }
.journal__ko i { background: #e74c3c !important; }
.scene.is-active .journal li { animation: ligne-in .5s .3s var(--ease) both; }
.scene.is-active .journal .journal__ko { animation-delay: 1.9s; }
.notif { display: flex; align-items: center; gap: .8em; margin-top: .8em; padding: .7em .9em; background: rgba(37,99,235,.16); border: 1px solid rgba(59,130,246,.45); border-radius: .8em; }
.notif__ico { width: 1.9em; height: 1.9em; border-radius: .5em; background: #2563eb; position: relative; flex: none; }
.notif__ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: .8em; height: .55em; margin: -.28em 0 0 -.4em; border: 2px solid #fff; border-radius: .15em; }
.notif b { display: block; font-size: .8em; }
.notif span { font-size: .72em; color: #9fb3cc; }
.scene.is-active .notif { animation: ligne-in .5s 2.5s var(--ease) both; }
.notif { opacity: 0; }
.scene.is-active .notif { opacity: 1; }

/* ══════════════════ NAVBAR / PROGRESSION ══════════════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,250,252,.72);
  -webkit-backdrop-filter: blur(var(--verre-flou)) saturate(1.4); backdrop-filter: blur(var(--verre-flou)) saturate(1.4);
  border-bottom: 1px solid var(--verre-bord);
}
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.nav__progression { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.nav__progression span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform-origin: left; transform: scaleX(var(--scroll)); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--encre); }
.logo__marque { height: 32px; width: 32px; transition: transform .5s var(--ease); }
.logo:hover .logo__marque { transform: rotate(60deg); }
.nav__liens { display: flex; gap: 4px; margin-inline: auto; }
.nav__liens a { padding: 10px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--doux); transition: color .15s, background-color .15s; }
.nav__liens a:hover { color: var(--encre); background: rgba(15,23,42,.05); }

/* Lien du menu correspondant à la section affichée */
.nav__liens a.is-actif { color: var(--accent-fonce); background: rgba(37,99,235,.08); }

/* Éléments réservés au menu burger (vignettes, sous-titres, voile, bouton) : cachés sur ordinateur */
.nav__vignette, .nav__texte small, .nav__panneau-cta, .nav__voile { display: none; }
.nav__texte strong { font-weight: inherit; }
.mv-balai { transform-origin: 36px 26px; }
.topo--mobile { display: none; }
.lbl--g { font-size: 10.5px; text-anchor: middle; }
.topo--mobile .lbl--g[x="198"], .topo--mobile .lbl--g[x="118"], .topo--mobile .lbl--g[x="278"] { text-anchor: start; }

/* Bouton burger (tablette et mobile) */
.burger { display: none; position: relative; flex: none; width: 44px; height: 44px; border: 1px solid var(--verre-bord); border-radius: 12px; background: var(--verre-fond); cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--encre); transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.nav.is-ouvert .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-ouvert .burger span:nth-child(2) { opacity: 0; }
.nav.is-ouvert .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ══════════════════ BOUTONS ══════════════════ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 0; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap;
  translate: var(--tx, 0) var(--ty, 0);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, translate .25s var(--ease);
}
.btn--principal { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(37,99,235,.8), inset 0 1px 0 rgba(255,255,255,.28); }
.btn--principal:hover { background: var(--accent-fonce); transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(37,99,235,.85), inset 0 1px 0 rgba(255,255,255,.28); }
.btn--principal:active { transform: translateY(0) scale(.97); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn--grand { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn.is-ok { background: var(--vert-texte); }

/* Bouton du haut : libellé court sur mobile ; masqué quand le formulaire final est à l'écran (doublon) */
.cta-court { display: none; }
.d-court { display: none; }
.nav__cta { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, translate .25s var(--ease), opacity .3s linear; }
body.cta-vu .nav__cta { opacity: 0; pointer-events: none; }

/* Menu ouvert : la page ne défile plus derrière (la scrollbar reste réservée pour éviter tout saut) */
html { scrollbar-gutter: stable; }
html.menu-ouvert { overflow: hidden; }

/* Liens courts sous les formulaires : zone tactile agrandie sans bouger la mise en page */
.form-note a { display: inline-block; padding: 12px 6px; margin: -12px -6px; }

/* ══════════════════ HERO : ENTRÉE LENTE ══════════════════
   1. le titre, 2. le texte, 3. le bouton de demande, 4. puis la maquette apparaît et se construit
   (cadre, liens, équipements un par un). Sur ordinateur la mise en page finale est inchangée. */
@keyframes monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-vue { from { opacity: 0; transform: translateX(7%) translateY(22px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes noeud-in { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }

.js .hero__texte .pastille { animation: monte .8s .5s var(--ease) both; }
.js .hero__accroche { animation: monte .9s .75s var(--ease) both; }
.js .hero__texte .form-demo { animation: monte .9s 1.1s var(--ease) both; }
.js .hero__texte .form-note { animation: fondu .9s 1.5s ease both; }
.js .hero__texte .preuves { animation: fondu .9s 1.7s ease both; }
.js .stage__vue { animation: intro-vue 1.9s 2.4s var(--ease) both; }
.js .legende { animation: fondu 1s 3.8s ease both; }
.js .scene[data-scene="carte"] .topo__liens { animation: fondu 1.2s 3s ease both; }
.js .scene[data-scene="carte"] .topo__flux { animation: fondu 1.4s 4.2s ease both; }
.js .scene[data-scene="carte"] .lbl { animation: fondu .8s 4s ease both; }
.js .scene[data-scene="carte"] .win__pied { animation: fondu 1s 4.4s ease both; }
.js .scene[data-scene="carte"] .nd rect,
.js .scene[data-scene="carte"] .nd text {
  transform-box: fill-box; transform-origin: center;
  animation: noeud-in .7s calc(3.1s + var(--n, 0) * .16s) var(--ease) both;
}
.topo > g.nd:nth-of-type(3)  { --n: 0; }
.topo > g.nd:nth-of-type(4)  { --n: 1; }
.topo > g.nd:nth-of-type(5)  { --n: 2; }
.topo > g.nd:nth-of-type(6)  { --n: 3; }
.topo > g.nd:nth-of-type(7)  { --n: 4; }
.topo > g.nd:nth-of-type(8)  { --n: 5; }
.topo > g.nd:nth-of-type(9)  { --n: 6; }
.topo > g.nd:nth-of-type(10) { --n: 7; }
.topo > g.nd:nth-of-type(11) { --n: 8; }
.topo > g.nd:nth-of-type(12) { --n: 9; }

/* ── Scène installation (mise en route) ── */
.win__corps--install { padding: 1.2em; }
.inst { display: grid; gap: .8em; }
.inst li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: .9em; align-items: start; padding: .85em .95em; background: #1a2433; border: 1px solid #26344a; border-radius: .8em; }
.inst strong { display: block; font-size: .95em; }
.inst small { display: block; margin: .15em 0 .55em; font-size: .75em; color: #8da2bd; }
.inst em { align-self: center; padding: .3em .8em; border-radius: 99px; background: rgba(46,204,113,.14); font-size: .72em; font-style: normal; font-weight: 700; color: #2ecc71; white-space: nowrap; }
.inst__ico { position: relative; width: 2em; height: 2em; margin-top: .1em; border-radius: 50%; border: 2px solid #3b82f6; }
.inst__ico::after { content: ""; position: absolute; left: 50%; top: 46%; width: .5em; height: .9em; border: solid #fff; border-width: 0 .18em .18em 0; transform: translate(-50%, -50%) rotate(45deg) scale(0); }
.inst__ports { display: grid; grid-template-columns: repeat(12, 1fr); gap: .3em; }
.inst__ports i { aspect-ratio: 1; border-radius: .2em; background: #2ecc71; }
.inst__ports i:nth-child(4), .inst__ports i:nth-child(9) { background: #e74c3c; opacity: .5; }
.inst .barre { margin-top: 0; }
.scene.is-active .inst li { animation: ligne-in .5s calc(.2s + var(--i) * .9s) var(--ease) both; }
.scene.is-active .inst li:nth-child(-n+2) .barre span { animation: remplir 1.4s calc(.4s + var(--i) * .9s) var(--ease) both; }
.scene.is-active .inst__ico { animation: ico-ok .3s calc(1.5s + var(--i) * .9s) both; }
.scene.is-active .inst__ico::after { animation: coche-in .3s calc(1.55s + var(--i) * .9s) both; }
.scene.is-active .inst__ports { animation: fondu .6s 2.9s ease both; }
@keyframes ico-ok { to { background: #2ecc71; border-color: #2ecc71; } }
@keyframes coche-in { to { transform: translate(-50%, -50%) rotate(45deg) scale(1); } }

/* ══════════════════ CHAPITRES (premier plan) ══════════════════ */
main { position: relative; z-index: 2; }
.chap { position: relative; min-height: 92vh; display: flex; align-items: center; }
/* Landing : hauteur d'une section = hauteur de sa carte + de l'air (et non un pourcentage de l'écran) */
.page-landing .chap { min-height: 0; padding-block: clamp(88px, 12vh, 140px); }
.page-landing .chap--hero { min-height: 100svh; padding-block: 40px 90px; }

/* Hero */
.chap--hero { min-height: 100svh; padding-block: 40px 90px; }
.chap--hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(248,250,252,.94) 0%, rgba(248,250,252,.78) 30%, rgba(248,250,252,0) 56%);
}
.hero__texte { position: relative; max-width: var(--hero-l); }
.pastille {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 6px 14px 6px 12px;
  background: var(--verre-fond); border: 1px solid var(--verre-bord); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--accent-fonce);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pastille__point { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: pouls 2.2s infinite; }
.hero__titre { margin-bottom: 22px; font-size: clamp(42px, 6vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; color: var(--encre); text-wrap: balance; }
.mot--accent { background: linear-gradient(100deg, var(--accent), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .mot { display: inline-block; opacity: 0; transform: translateY(.45em); animation: mot-in .9s calc(.1s + var(--i) * .1s) var(--ease) forwards; }
@keyframes mot-in { to { opacity: 1; transform: none; } }
.hero__accroche { max-width: 500px; margin-bottom: 30px; font-size: clamp(16px, 1.5vw, 18px); color: var(--corps); }

.form-demo { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.form-demo--centre { justify-content: center; margin-inline: auto; max-width: 560px; }
.champ {
  flex: 1 1 240px; min-height: 52px; padding: 12px 16px;
  background: rgba(255,255,255,.9); border: 1.5px solid #cbd5e1; border-radius: 12px;
  font-size: 16px; color: var(--encre);
  transition: border-color .15s, box-shadow .15s;
}
.champ::placeholder { color: #64748b; }
.champ:hover { border-color: #94a3b8; }
.champ:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.18); }
.cache-bot { display: none; }
.form-note { max-width: 520px; margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--doux); }
.form-note strong { color: var(--encre); font-weight: 600; }
.form-note a { color: var(--accent-fonce); text-decoration: underline; text-underline-offset: 2px; }
.statut { min-height: 24px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--doux); }
.statut--ok { color: var(--vert-texte); }
.statut--erreur { color: #b45309; }
.cta .statut { text-align: center; }

.preuves { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--corps); }
.preuves li { display: inline-flex; align-items: center; gap: 6px; }
.preuves .ico { width: 18px; height: 18px; color: var(--vert-texte); stroke-width: 2.6; }

/* Cartes de texte */
.carte { max-width: var(--carte-l); padding: 34px 34px 30px; border-radius: 24px; overflow: hidden; }
.carte__tech { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(15,23,42,.08); font-size: 13px; line-height: 1.5; color: var(--doux); }
.carte__tech strong { color: var(--accent-fonce); font-weight: 700; }
.carte__num { display: flex; align-items: center; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-fonce); }
.carte__num span { margin-right: 10px; padding: 2px 9px; border-radius: 7px; background: var(--accent); color: #fff; font-family: var(--mono); letter-spacing: 0; }
.carte h2 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 33px); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; color: var(--encre); text-wrap: balance; }
.carte__texte { color: var(--corps); font-size: 16px; }
.coches { display: grid; gap: 10px; margin-top: 18px; font-size: 15px; font-weight: 500; color: var(--corps); }
.coches li { display: flex; gap: 10px; align-items: flex-start; }
.coches .ico { width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: rgba(37,99,235,.12); color: var(--accent-fonce); stroke-width: 3; }
.etapes { display: grid; gap: 14px; margin: 20px 0 26px; }
.etapes li { display: flex; gap: 14px; align-items: flex-start; }
.etapes b { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; box-shadow: 0 0 0 5px rgba(37,99,235,.14); }
.etapes strong { display: block; line-height: 1.3; }
.etapes span { font-size: 14.5px; color: var(--corps); }

/* Apparition au scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.reveal--vu { opacity: 1; transform: none; }

/* ══════════════════ FIN : FAQ + CTA ══════════════════ */
.fin { position: relative; padding-block: 90px; }
.fin--faq { padding-top: 130px; }
.surtitre { text-align: center; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-fonce); }
.section-titre { margin-bottom: 36px; text-align: center; font-size: clamp(28px, 3.8vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: var(--encre); text-wrap: balance; }
.faq { display: grid; gap: 12px; }
.faq details { padding: 0 22px; border-radius: 14px; overflow: hidden; transition: box-shadow .2s, background-color .2s; }
.faq details[open] { background: rgba(255,255,255,.88); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding-block: 16px; cursor: pointer; list-style: none; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; line-height: 1; color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { box-sizing: border-box; overflow: hidden; padding-bottom: 20px; font-size: 15px; color: var(--corps); }

/* Bandeau de réassurance entre la mise en route et la FAQ */
.fin--assurance { padding-block: 80px 0; }
.assurance { max-width: 820px; margin-inline: auto; padding: 30px 32px; border-radius: 22px; text-align: center; overflow: hidden; }
.assurance h2 { margin-bottom: 8px; font-size: clamp(20px, 2.4vw, 24px); font-weight: 800; letter-spacing: -.02em; }
.assurance p { color: var(--corps); font-size: 15px; }
.marques { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin-top: 18px; }
.marques li { padding: 5px 12px; border-radius: 999px; background: rgba(15,23,42,.05); font-size: 13.5px; font-weight: 700; color: var(--corps); }
.marques li:first-child { background: none; padding-inline: 0; font-weight: 500; color: var(--doux); }

.cta { max-width: 840px; margin-inline: auto; padding: 64px 32px; border-radius: 28px; text-align: center; overflow: hidden; }
.cta h2 { margin-bottom: 12px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.cta > p:not(.statut):not(.cta__note) { margin-bottom: 28px; color: var(--corps); }
.cta .form-note { margin-inline: auto; text-align: center; }
.cta__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--doux); }
.cta__note .ico { width: 16px; height: 16px; }

/* ══════════════════ FOOTER ══════════════════ */
.pied { position: relative; z-index: 2; padding-block: 44px; border-top: 1px solid var(--verre-bord); background: rgba(248,250,252,.85); color: var(--doux); font-size: 14px; }
.pied__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.pied__baseline { margin-top: 8px; }
.pied__auteur strong { color: var(--encre); font-weight: 600; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pied__liens a { padding: 6px 0; transition: color .15s; }
.pied__liens a:hover { color: var(--accent); }
.pied__legal a { text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
.pied__legal a:hover { color: var(--accent); }
.pied__legal { flex-basis: 100%; padding-top: 24px; border-top: 1px solid var(--verre-bord); font-size: 13px; }

/* Ordinateur : la dernière section (Mise en route) laisse plus d'espace après elle, pour que sa maquette
   reste affichée pendant la lecture et ne soit pas chevauchée par la section suivante */
@media (min-width: 1101px) {
  .page-landing #demarrage { padding-bottom: calc(clamp(88px, 12vh, 140px) + 22vh); }
}

/* ══════════════════ RESPONSIVE ══════════════════ */
/* Tablette et mobile : logiciel en haut de l'écran, carte de texte en dessous (jamais superposés) */
@media (max-width: 1100px) {
  :root {
    /* Hero : petite fenêtre du logiciel sous la barre de navigation (le texte vient dessous) */
    --vp-w: min(560px, 92vw);
    --vp-h: min(calc(var(--vp-w) * .74), 30svh);
    --zone: calc(76px + var(--vp-h) + 58px);
  }

  /* ─── Scène en PLEIN ÉCRAN, sans fond ───
     --full (0 → 1, piloté par le scroll) : la fenêtre du hero (petit cadre en haut) s'agrandit jusqu'à
     couvrir tout l'écran quand on entre dans les chapitres. Dans chaque scène, une « caméra » (app.js)
     se déplace selon une trajectoire propre : --tx, --ty (position, sans agrandissement). */
  .stage { display: block; padding: 0; --full: 0; }
  .stage__pose { position: absolute; inset: 0; width: auto; height: auto; transform: none !important; transition: none; }
  .stage__float { position: absolute; inset: 0; display: block; transform: none; }
  .stage__vue {
    display: block; position: absolute; overflow: hidden; background: #0c121b;
    top: calc((1 - var(--full)) * 76px);
    left: calc((1 - var(--full)) * (50vw - var(--vp-w) / 2));
    /* plein écran = 100 % du conteneur fixe (la vraie zone visible), et non 100svh : sur mobile, svh
       est plus court que l'écran quand la barre du navigateur est repliée, ce qui laissait une bande blanche */
    width: calc(var(--vp-w) * (1 - var(--full)) + 100% * var(--full));
    height: calc(var(--vp-h) * (1 - var(--full)) + 100% * var(--full));
    border-radius: calc(14px * (1 - var(--full)));
    box-shadow: 0 0 0 calc(1px * (1 - var(--full))) #26344a, 0 26px 44px -22px rgba(15,23,42,calc(.65 * (1 - var(--full))));
  }
  /* La maquette est dessinée à sa vraie taille lisible (--sw, en px, plus large que l'écran) et la caméra
     ne fait que la DÉPLACER : jamais d'agrandissement (scale), donc le texte reste net. */
  .scene {
    position: absolute; top: 0; left: 0; width: max(100%, var(--sw, 720px));
    transform: translate(var(--tx, 0px), var(--ty, 0px));
    transition: opacity .18s linear;
  }
  /* Hero : la carte a sa version mobile (compacte) ; on masque la grande et le pied de fenêtre */
  .scene[data-scene="carte"]   { --sw: 0px; }
  .scene[data-scene="carte"] .topo:not(.topo--mobile) { display: none; }
  .scene[data-scene="carte"] .topo--mobile { display: block; }
  .scene[data-scene="carte"] .win__pied { display: none; }
  .scene[data-scene="scan"]    { --sw: 720px; }
  .scene[data-scene="ports"]   { --sw: 780px; }
  .scene[data-scene="alerte"]  { --sw: 720px; }
  .scene[data-scene="local"]   { --sw: 720px; }
  .scene[data-scene="install"] { --sw: 660px; }
  .scene .win { border: 0; border-radius: 0; box-shadow: none; }
  .legende {
    display: inline-flex;
    position: absolute; left: 50%; margin: 0; transform: translateX(-50%); z-index: 2;
    width: max-content; max-width: 92vw;
    top: calc((1 - var(--full)) * (76px + var(--vp-h) + 14px) + var(--full) * 84px);
  }

  /* ─── Chapitres : la scène reste affichée en plein écran, la carte de texte reste ÉPINGLÉE EN BAS
     pendant toute la durée du chapitre (le scroll fait avancer la caméra dans la maquette) ─── */
  .chap { min-height: 100svh; align-items: flex-end; padding-block: var(--zone) 16px; }
  .chap--hero { align-items: flex-start; padding-block: var(--zone) 40px; }
  .chap--hero::before { display: none; }
  .page-landing .chap { display: block; min-height: 130svh; padding: 0 0 6svh; }
  /* 100dvh : suit la zone réellement visible (barre du navigateur affichée ou repliée) */
  .page-landing .chap > .conteneur { position: sticky; top: calc(100svh - var(--ch, 340px) - 14px); top: calc(100dvh - var(--ch, 340px) - 14px); }
  .page-landing .chap--hero { display: flex; align-items: flex-start; min-height: 100svh; padding-block: var(--zone) 40px; }
  .page-landing .chap--hero > .conteneur { position: static; }

  /* Hero : le texte et le bouton arrivent d'abord, en haut et en gros plan ; puis la maquette apparaît
     à leur place pendant que ce bloc descend en dessous */
  @keyframes hero-descend {
    from { transform: translateY(calc(-1 * (var(--zone) - 96px))) scale(1.06); }
    to   { transform: none; }
  }
  .js .page-landing .hero__texte { transform-origin: 50% 0; animation: hero-descend 1.5s 2.4s var(--ease) both; }
  /* Le texte du hero est lui aussi une carte en verre : lisible quand il passe devant l'aperçu */
  .hero__texte {
    max-width: none; padding: 22px 20px 18px; border-radius: 24px;
    background: var(--verre-fond); border: 1px solid var(--verre-bord);
    -webkit-backdrop-filter: blur(var(--verre-flou)) saturate(1.5); backdrop-filter: blur(var(--verre-flou)) saturate(1.5);
    box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 24px 48px -28px rgba(15,23,42,.35);
  }
  .hero__titre { font-size: clamp(38px, 11vw, 56px); }
  /* Carte épinglée devant une scène sombre : fond plus opaque pour garder un texte bien lisible */
  .carte { max-width: none; padding: 26px 22px 24px; border-radius: 22px; background: rgba(255,255,255,.93); }

  /* ─── Menu burger : tuiles encadrées avec vignette, mêmes entrées que sur ordinateur ─── */
  .burger { display: block; }
  .nav__inner { gap: 12px; }
  .nav__cta { margin-left: auto; padding-inline: 14px; font-size: 14px; }

  .nav__voile {
    display: block; position: fixed; inset: 0; z-index: 45;
    background: rgba(15,23,42,.4);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s linear, visibility 0s linear .3s;
  }
  body.menu-ouvert .nav__voile { opacity: 1; visibility: visible; transition-delay: 0s; }

  .nav__liens {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    display: grid; gap: 10px; padding: 14px 14px 16px;
    max-height: calc(100svh - 76px); overflow-y: auto; overscroll-behavior: contain;
    background: rgba(248,250,252,.97);
    -webkit-backdrop-filter: blur(var(--verre-flou)); backdrop-filter: blur(var(--verre-flou));
    border-bottom: 1px solid var(--verre-bord);
    box-shadow: 0 30px 50px -24px rgba(15,23,42,.45);
    /* repliée : le panneau se « roule » vers le haut ; ouverte : il se déroule */
    visibility: hidden; pointer-events: none; opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .4s var(--ease), opacity .2s linear, visibility 0s linear .4s;
  }
  .nav.is-ouvert .nav__liens {
    visibility: visible; pointer-events: auto; opacity: 1;
    clip-path: inset(0 0 -60px 0);
    transition-delay: 0s;
  }

  .nav__liens a {
    position: relative; display: grid; grid-template-columns: 72px 1fr 20px; align-items: center; gap: 14px;
    min-height: 72px; padding: 10px 14px 10px 10px; border-radius: 16px;
    background: rgba(255,255,255,.85); border: 1.5px solid var(--bord-tuile, #dbe4ef);
    box-shadow: 0 6px 16px -12px rgba(15,23,42,.35);
    color: var(--encre); font-size: 16px;
    /* entrée en cascade : chaque tuile arrive l'une après l'autre */
    opacity: 0; transform: translateY(14px) scale(.97);
    transition: opacity .18s linear, transform .22s var(--ease), border-color .2s, background-color .2s;
  }
  .nav.is-ouvert .nav__liens a { opacity: 1; transform: none; transition-delay: calc(70ms + var(--i, 0) * 55ms), calc(70ms + var(--i, 0) * 55ms), 0s, 0s; }
  .nav__liens a:nth-child(1) { --i: 0; }
  .nav__liens a:nth-child(2) { --i: 1; }
  .nav__liens a:nth-child(3) { --i: 2; }
  .nav__liens a:nth-child(4) { --i: 3; }
  .nav__liens a:nth-child(5) { --i: 4; }
  .nav__liens a:nth-child(6) { --i: 5; }
  .nav__liens a::after {
    content: ""; width: 9px; height: 9px; justify-self: end;
    border-right: 2px solid #94a3b8; border-top: 2px solid #94a3b8; transform: rotate(45deg);
    transition: transform .2s var(--ease), border-color .2s;
  }
  .nav__liens a:active { transform: scale(.98); }
  .nav__liens a.is-actif { border-color: var(--accent); background: rgba(37,99,235,.07); }
  .nav__liens a.is-actif::after { border-color: var(--accent); }
  .nav__liens a.is-choisi { border-color: var(--accent); background: rgba(37,99,235,.14); transform: scale(.98); }
  .nav__liens a.is-choisi::after { transform: translateX(4px) rotate(45deg); border-color: var(--accent); }

  .nav__vignette {
    display: block; width: 72px; height: 52px; border-radius: 10px; overflow: hidden;
    box-shadow: 0 6px 14px -8px rgba(15,23,42,.6), 0 0 0 1px rgba(15,23,42,.08);
  }
  .nav__vignette svg { width: 100%; height: 100%; display: block; }
  .nav__texte { display: grid; gap: 2px; min-width: 0; }
  .nav__texte strong { font-size: 16px; font-weight: 700; line-height: 1.25; }
  .nav__texte small { display: block; font-size: 13px; line-height: 1.35; color: var(--doux); }

  /* Les vignettes s'animent quand le menu est ouvert */
  .nav.is-ouvert .mv-balai { animation: tourne 2.6s linear infinite; }
  .nav.is-ouvert .mv-clig { animation: clignote 1.4s ease-in-out infinite; }
  .nav.is-ouvert .mv-flux { animation: flux 1.2s linear infinite; }

  /* Bouton de demande dans le panneau */
  .nav__liens a.nav__panneau-cta {
    grid-template-columns: 1fr; justify-items: center; min-height: 52px; margin-top: 4px; padding: 12px 18px;
    border: 0; background: var(--accent); color: #fff; font-weight: 700; text-align: center;
    box-shadow: 0 10px 22px -10px rgba(37,99,235,.8), inset 0 1px 0 rgba(255,255,255,.28);
  }
  .nav__liens a.nav__panneau-cta::after { display: none; }

  /* Zones tactiles confortables dans le pied de page */
  .pied__liens a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
  .pied__legal a { display: inline-block; padding-block: 12px; }
}

/* Écrans tactiles : pas d'effet de survol qui reste « collé » après un appui */
@media (hover: none) {
  .btn--principal:hover, .btn--verre:hover { transform: none; }
  .btn:hover::after { transform: translateX(-120%); }
  .btn:hover .ico { transform: none; }
  .verre:hover::before { opacity: 0; }
  .bloc:hover { transform: none; }
}

@media (max-width: 420px) {
  .logo { gap: 8px; font-size: 18px; }
  .logo__marque { width: 28px; height: 28px; }
}

@media (max-width: 560px) {
  /* Cartes plus compactes pour tenir dans la zone libre sous le logiciel */
  .carte { padding: 20px 18px 18px; border-radius: 20px; }
  .carte__num { margin-bottom: 8px; }
  .carte h2 { margin-bottom: 8px; font-size: 24px; }
  .carte__texte { font-size: 15px; line-height: 1.5; }
  .coches { gap: 8px; margin-top: 12px; font-size: 14px; }
  .etapes { gap: 10px; margin: 14px 0 16px; }
  /* Mise en route : une ligne par étape (titre + courte description) */
  .etapes strong, .etapes span { display: inline; }
  .etapes strong::after { content: " · "; color: #94a3b8; font-weight: 400; }
  .etapes span { font-size: 14px; }
  .d-long { display: none !important; }
  .d-court { display: inline; }
  .carte__tech { display: none; }
  .coche--sec { display: none; }
  /* Bouton du haut : un seul mot, sur une seule ligne */
  .cta-long { display: none; }
  .cta-court { display: inline; }
  .nav__cta { padding: 8px 16px; font-size: 14px; white-space: nowrap; }
}

/* Petits écrans en hauteur (iPhone SE, 568 à 667 px) : aperçu plus petit, une seule puce conservée */
@media (max-width: 560px) and (max-height: 700px) {
  :root { --vp-h: min(calc(var(--vp-w) * .74), 27svh); }
  .coches li:not(.coche--garde) { display: none; }
  .carte__texte { font-size: 14.5px; }
  .etapes { gap: 6px; margin: 10px 0 12px; }
  .etapes b { width: 24px; height: 24px; font-size: 13px; box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
  .legende { font-size: 11.5px; padding: 4px 12px; }
}

/* Très petits écrans (568 px de haut) : pas la place pour les descriptions des étapes */
@media (max-width: 560px) and (max-height: 600px) {
  .etapes span { display: none; }
  .etapes strong::after { content: none; }
}

@media (max-width: 720px) {
  .fin { padding-block: 64px; }
  .cta { padding: 48px 20px; border-radius: 22px; }
  .form-demo .btn { width: 100%; }
}

/* ══════════════════ MOUVEMENT RÉDUIT ══════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .mot { opacity: 1; transform: none; }
  .scan__liste li, .journal li, .blip, .notif { opacity: 1; transform: none; }
  .blip { transform: scale(1); }
  .etat--ko u { opacity: 0; } .etat--ko s { opacity: 1; }
  .etat--ko { background: rgba(231,76,60,.2); color: #ff8a7a; }
  .scene { transform: none; }
}
