/* Site vitrine IOT Express, version de novembre 2026 (Q-000003).
   Sobre : une seule couleur d'accent (le jaune de la marque), des traits fins, aucune ressource extérieure (ni police, ni image, ni script).
   Les mises en situation (.scene) : un « terrain » dessiné en SVG à gauche, l'écran de celui qui suit la machine à droite. */
:root {
  --nuit: #06161b; --nuit-2: #0a2028; --encre: #0f3a47; --encre-2: #14505f;
  --ligne: rgba(255, 255, 255, .12); --ligne-2: rgba(255, 255, 255, .22);
  --texte: #e9f0f1; --doux: #9db3b8;
  --jaune: #e0b400; --jaune-vif: #ffd21f; --alerte: #ff6b4a; --ambre: #ffb020; --ok: #4fd1a5;
  --papier: #f5f7f6; --noir: #0b2027; --gris: #5b6f75; --filet: #d9e1e0;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --large: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }   /* un lien vers une section s'arrête sous l'en-tête, pas dessous (Q-000008) */
body { margin: 0; background: var(--nuit); color: var(--texte); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--jaune-vif); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aller { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--jaune); color: var(--noir); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.aller:focus { top: 12px; }

.cadre { width: min(var(--large), 100% - 48px); margin-inline: auto; }
.sur { font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--jaune); display: flex; align-items: center; gap: 10px; }
.sur::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 600; letter-spacing: -.005em; }
.chapo { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--doux); max-width: 44em; text-wrap: pretty; }
.clair .chapo { color: var(--gris); }

/* ---------- boutons ---------- */
.bouton { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.bouton.plein { background: var(--jaune); color: var(--noir); }
.bouton.plein:hover { background: var(--jaune-vif); transform: translateY(-1px); }
.bouton.trait { border-color: var(--ligne-2); color: var(--texte); }
.bouton.trait:hover { border-color: var(--texte); }
.clair .bouton.trait { border-color: #b9c6c5; color: var(--noir); }
.clair .bouton.trait:hover { border-color: var(--noir); }
.lien { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--jaune); padding-bottom: 2px; }
.lien::after { content: "→"; transition: transform .2s; }
.lien:hover::after { transform: translateX(4px); }

/* ---------- en-tête ---------- */
.tete { position: fixed; inset: 0 0 auto 0; z-index: 30; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.tete.posee, .tete.ouverte { background: rgba(6, 22, 27, .98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--ligne); }
.tete .cadre { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: block; flex: none; color: #fff; }
.logo img { display: block; height: 46px; width: auto; }   /* le logo fourni, en image img/logo.png (Q-000014 ; avant : en SVG dans la page, Q-000010) */
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 13px; border-radius: 999px; font-size: 15px; text-decoration: none; color: var(--doux); transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--texte); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .07); }
.tete .bouton { padding: 11px 18px; font-size: 14px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--ligne-2); border-radius: 12px; background: none; color: var(--texte); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: auto; position: relative; transition: transform .2s, background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.tete.ouverte .burger span { background: transparent; }
.tete.ouverte .burger span::before { transform: translateY(6px) rotate(45deg); }
.tete.ouverte .burger span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 940px) {
  .burger { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 22px; background: rgba(6, 22, 27, .97); border-bottom: 1px solid var(--ligne); display: none; }
  .tete.ouverte .nav { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--ligne); font-size: 17px; color: var(--texte); }
  .nav a[aria-current="page"] { background: none; color: var(--jaune); }
  .tete .bouton { display: none; }
  .nav .bouton { display: inline-flex; margin-top: 18px; justify-content: center; border-bottom: 0; color: var(--noir); padding: 15px 22px; border-radius: 999px; }
}
@media (min-width: 941px) { .nav .bouton { display: none; } }

/* ---------- sections ---------- */
.bloc { padding: clamp(72px, 9vw, 132px) 0; position: relative; }
.clair { background: var(--papier); color: var(--noir); }
.teinte { background: linear-gradient(180deg, var(--nuit-2), var(--encre) 140%); }
.bloc-tete { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 52em; }
.filet { border: 0; border-top: 1px solid var(--ligne); margin: 0; }

/* ---------- entrée en matière ---------- */
.entree { padding: clamp(120px, 15vh, 170px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.entree::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 78% 30%, rgba(20, 80, 95, .55), transparent 70%); }
.entree::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent); }
.entree .cadre { position: relative; z-index: 1; }
.entree-texte { display: grid; gap: 22px; max-width: 54em; }
.entree-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.entree .scene { margin-top: clamp(40px, 6vw, 72px); }
.page-tete { padding: clamp(130px, 17vh, 180px) 0 clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.page-tete::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 80% at 85% 0%, rgba(20, 80, 95, .6), transparent 70%); }
.page-tete .cadre { position: relative; display: grid; gap: 20px; }
.page-tete h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); max-width: 20em; }

/* ---------- mises en situation ---------- */
.scene { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); border: 1px solid var(--ligne); border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .8); }
.terrain { position: relative; border-right: 1px solid var(--ligne); min-height: 100%; background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px; }
.terrain svg { display: block; width: 100%; height: 100%; }
.terrain-etiq { position: absolute; left: 18px; top: 16px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--doux); display: flex; gap: 10px; align-items: center; z-index: 2; }
.illus { position: absolute; right: 16px; bottom: 12px; font: 400 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(157, 179, 184, .7); }
.poste { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ecran { border: 1px solid var(--ligne-2); border-radius: 14px; background: rgba(4, 16, 20, .78); padding: 14px 16px 16px; display: grid; gap: 14px; }
.ecran-barre { display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--doux); }
.ecran-barre b { color: var(--texte); font-weight: 600; margin-left: auto; }
.direct { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); }
.direct::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: clignote 1.6s ease-in-out infinite; }
.courbe { display: block; width: 100%; height: 76px; border-radius: 8px; background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 100% 19px; }
.courbe polyline { fill: none; stroke: var(--jaune); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.courbe .c2 { stroke: rgba(233, 240, 241, .45); stroke-width: 1.1; }
.mesures { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.mesures div { border-top: 1px solid var(--ligne); padding-top: 9px; min-width: 0; }
.mesures dt { font-size: 12px; color: var(--doux); line-height: 1.3; }
.mesures dd { font: 500 13px/1.3 var(--mono); color: var(--doux); white-space: nowrap; }
.mesures dd b { font: 600 20px/1.2 var(--mono); color: var(--texte); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ecran-pied { font: 400 11px/1.5 var(--mono); color: var(--doux); letter-spacing: .04em; }
.personne { display: flex; align-items: flex-end; gap: 14px; margin-top: auto; padding-right: 6px; }
.personne svg { flex: none; width: 92px; height: 78px; display: block; }
.personne p { font-size: 13px; line-height: 1.4; color: var(--doux); padding-bottom: 14px; }
.personne p b { display: block; color: var(--texte); font-weight: 600; }
@media (max-width: 860px) {
  .scene { grid-template-columns: 1fr; }
  .terrain { border-right: 0; border-bottom: 1px solid var(--ligne); }
  .terrain-etiq { position: static; padding: 14px 16px 0; }   /* au-dessus du dessin, pas par-dessus */
  .poste { padding-bottom: 0; }
}

/* le dessin au trait des terrains */
.t { fill: none; stroke: var(--texte); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.t-fin { fill: none; stroke: rgba(233, 240, 241, .32); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.t-pointille { fill: none; stroke: rgba(233, 240, 241, .32); stroke-width: 1; stroke-dasharray: 3 6; stroke-linecap: round; }
.t-plein { fill: var(--nuit-2); stroke: var(--texte); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.t-jaune { fill: var(--jaune); stroke: none; }
.t-trait-jaune { fill: none; stroke: var(--jaune); stroke-width: 1.5; stroke-linecap: round; }
.t-texte { font: 500 10px/1 var(--mono); letter-spacing: .12em; fill: var(--doux); text-transform: uppercase; }
.t-texte.fort { fill: var(--texte); }
/* Q-000008 : un texte de dessin n'est jamais coupé par un trait : il porte un liseré de la couleur du fond, qui efface le trait derrière lui */
.t-texte, .m text { paint-order: stroke fill; stroke: #08191e; stroke-width: 6px; stroke-linejoin: round; }
.t-sol-defile { fill: none; stroke: rgba(233, 240, 241, .5); stroke-width: 1.5; stroke-dasharray: 2 26; stroke-linecap: round; animation: defile 1.4s linear infinite; }
.t-rayons { transform-box: fill-box; transform-origin: center; animation: tourne 3.2s linear infinite; }
.t-onde { fill: none; stroke: var(--jaune); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: onde 2.4s ease-out infinite; opacity: 0; }
.t-onde.o2 { animation-delay: .8s; } .t-onde.o3 { animation-delay: 1.6s; }
.t-arc { fill: none; stroke: var(--jaune); stroke-width: 1.4; stroke-linecap: round; animation: clignote 1.8s ease-in-out infinite; }
.t-arc.a2 { animation-delay: .3s; } .t-arc.a3 { animation-delay: .6s; }
.t-grain { fill: var(--jaune-vif); }
.t-secousse { animation: secousse 1.1s ease-in-out infinite; }
.manege { transform-origin: 230px 196px; animation: tourne 12s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes defile { to { stroke-dashoffset: -28; } }
@keyframes onde { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
@keyframes clignote { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes secousse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }

/* ---------- l'histoire en trois chapitres ---------- */
.sommaire { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; }
.sommaire a { display: grid; gap: 8px; padding: 22px 24px 24px; text-decoration: none; border-right: 1px solid var(--ligne); transition: background .2s; }
.sommaire li:last-child a { border-right: 0; }
.sommaire a:hover { background: rgba(255, 255, 255, .04); }
.sommaire small { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--jaune); }
.sommaire b { font-size: 1.15rem; font-weight: 600; }
.sommaire span { color: var(--doux); font-size: 15px; line-height: 1.45; }
@media (max-width: 760px) { .sommaire { grid-template-columns: 1fr; } .sommaire a { border-right: 0; border-bottom: 1px solid var(--ligne); } .sommaire li:last-child a { border-bottom: 0; } }
.chapitre { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--ligne); }
.chapitre-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); margin-bottom: clamp(32px, 4vw, 52px); align-items: start; }
.chapitre-titre { display: grid; gap: 18px; }
.numero { font: 500 13px/1 var(--mono); letter-spacing: .16em; color: var(--jaune); text-transform: uppercase; }
.chapitre-texte { display: grid; gap: 22px; }
.points { display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; color: var(--texte); font-size: 16px; line-height: 1.5; }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 1px; background: var(--jaune); }
.points li b { font-weight: 600; }
.clair .points li { color: var(--noir); }
.cas { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; font-size: 15px; color: var(--doux); }
.cas small { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--jaune); white-space: nowrap; }
.cas b { color: var(--texte); font-weight: 600; }
@media (max-width: 860px) { .chapitre-tete { grid-template-columns: 1fr; } .cas { grid-template-columns: 1fr; } }
.onglets { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--ligne); border-radius: 999px; margin-bottom: 16px; }
.onglets button { font: 500 14px/1 var(--sans); padding: 9px 16px; border-radius: 999px; border: 0; background: none; color: var(--doux); cursor: pointer; transition: background .2s, color .2s; }
.onglets button[aria-selected="true"] { background: var(--texte); color: var(--noir); }
.vue-terrain[hidden] { display: none; }

/* supervision de flotte (chapitre 02) : l'état vient de data-phase, changé par js/site.js */
.m circle { fill: var(--texte); transition: fill .5s; }
.m text { font: 500 9px/1 var(--mono); letter-spacing: .08em; fill: var(--doux); }
.m-halo { fill: none; stroke: var(--alerte); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.bulle { opacity: 0; transition: opacity .5s; }
.bulle rect { fill: rgba(4, 16, 20, .92); stroke: var(--alerte); stroke-width: 1; }
.bulle path { fill: none; stroke: var(--alerte); stroke-width: 1; }
.bulle text { font: 500 10px/1 var(--mono); letter-spacing: .06em; fill: var(--texte); }
.bulle .b2 { fill: var(--alerte); }
.balayage { animation: balaie 5.5s linear infinite; }
@keyframes balaie { from { transform: translateX(-90px); } to { transform: translateX(650px); } }
[data-phase="1"] .m-suivi circle { fill: var(--ambre); }
[data-phase="2"] .m-suivi circle, [data-phase="3"] .m-suivi circle, [data-phase="4"] .m-suivi circle, [data-phase="5"] .m-suivi circle { fill: var(--alerte); }
[data-phase="2"] .m-halo, [data-phase="3"] .m-halo, [data-phase="4"] .m-halo, [data-phase="5"] .m-halo { animation: onde 1.8s ease-out infinite; }
[data-phase="2"] .bulle, [data-phase="3"] .bulle, [data-phase="4"] .bulle, [data-phase="5"] .bulle { opacity: 1; }
.flotte { display: grid; }
.flotte li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--ligne); font: 500 12px/1.2 var(--mono); color: var(--doux); transition: color .4s; }
.flotte li:first-child { border-top: 0; padding-top: 0; }
.flotte li b { color: var(--texte); font-weight: 600; }
.flotte li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pastille { font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; border: 1px solid currentColor; color: var(--ok); }
.suivi .pastille::after { content: "OK"; }
.suivi .pastille { transition: color .4s; }
[data-phase="1"] .suivi .pastille { color: var(--ambre); }
[data-phase="1"] .suivi .pastille::after { content: "Dérive"; }
[data-phase="2"] .suivi .pastille, [data-phase="3"] .suivi .pastille, [data-phase="4"] .suivi .pastille, [data-phase="5"] .suivi .pastille { color: var(--alerte); }
[data-phase="2"] .suivi .pastille::after, [data-phase="3"] .suivi .pastille::after, [data-phase="4"] .suivi .pastille::after, [data-phase="5"] .suivi .pastille::after { content: "Alerte"; }
.etapes { display: grid; gap: 7px; border-top: 1px solid var(--ligne); padding-top: 12px; }
.etapes li { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.3; color: rgba(157, 179, 184, .45); transition: color .5s; }
.etapes li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor; transition: background .5s, border-color .5s; }
[data-phase="2"] .etapes li:nth-child(-n+1), [data-phase="3"] .etapes li:nth-child(-n+2), [data-phase="4"] .etapes li:nth-child(-n+3), [data-phase="5"] .etapes li:nth-child(-n+4) { color: var(--texte); }
[data-phase="2"] .etapes li:nth-child(-n+1)::before, [data-phase="3"] .etapes li:nth-child(-n+2)::before, [data-phase="4"] .etapes li:nth-child(-n+3)::before, [data-phase="5"] .etapes li:nth-child(-n+4)::before { background: var(--ok); border-color: var(--ok); }

/* exploitation (chapitre 03) : --p (0 à 1) est l'avancement du travail, donné par js/site.js */
.rangs-faits { fill: none; stroke: var(--ok); stroke-width: 9; stroke-linecap: butt; stroke-linejoin: round; opacity: .55; stroke-dasharray: 3305; stroke-dashoffset: calc(3305 * (1 - var(--p, .68))); }
.rangs { fill: none; stroke: rgba(233, 240, 241, .16); stroke-width: 9; stroke-linejoin: round; }
.parcelle { fill: rgba(79, 209, 165, .04); stroke: rgba(233, 240, 241, .4); stroke-width: 1.2; stroke-dasharray: 5 5; }
.avance { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.avance i { display: block; height: 100%; background: var(--ok); transform-origin: left; transform: scaleX(var(--p, .68)); }
.avance-ligne { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--doux); }
.avance-ligne b { font: 600 20px/1 var(--mono); color: var(--texte); font-variant-numeric: tabular-nums; }
.semaine { display: flex; align-items: flex-end; gap: 6px; height: 54px; border-top: 1px solid var(--ligne); padding-top: 12px; }
.semaine i { flex: 1; background: rgba(233, 240, 241, .22); border-radius: 3px 3px 0 0; height: calc(var(--h) * 1%); }
.semaine i.jour { background: var(--jaune); }
.semaine-legende { display: flex; justify-content: space-between; gap: 10px; font: 400 10px/1 var(--mono); color: var(--doux); letter-spacing: .08em; white-space: nowrap; margin-top: 8px; }

/* ---------- la chaîne ---------- */
.chaine { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; counter-reset: maillon; }
.chaine li { position: relative; padding: 0 14px 0 0; display: grid; gap: 10px; align-content: start; }
.chaine li::before { content: ""; position: absolute; left: 44px; right: 0; top: 22px; height: 1px; background: var(--ligne-2); }
.chaine li::after { content: ""; position: absolute; left: 44px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--jaune-vif); opacity: 0; animation: maillon 6s linear infinite; animation-delay: calc(var(--i) * 1s); }
.chaine li:last-child::before, .chaine li:last-child::after { display: none; }
@keyframes maillon { 0% { left: 44px; opacity: 0; } 2% { opacity: 1; } 15% { opacity: 1; } 16.6% { left: 100%; opacity: 0; } 100% { left: 100%; opacity: 0; } }
.chaine .ic { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ligne-2); display: grid; place-items: center; background: var(--nuit-2); position: relative; z-index: 1; }
.chaine .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--jaune); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.chaine b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.chaine span { font-size: 13.5px; line-height: 1.45; color: var(--doux); }
@media (max-width: 900px) {
  .chaine { grid-template-columns: 1fr; gap: 0; }
  .chaine li { grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0 0 26px; }
  .chaine li .ic { grid-row: span 2; }
  .chaine li::before { left: 22px; right: auto; top: 44px; bottom: 0; width: 1px; height: auto; }
  .chaine li::after { left: 19px; top: 44px; animation-name: maillon-v; }
  @keyframes maillon-v { 0% { top: 44px; opacity: 0; } 2% { opacity: 1; } 15% { opacity: 1; } 16.6% { top: 100%; opacity: 0; } 100% { top: 100%; opacity: 0; } }
}

/* ---------- grilles de cartes ---------- */
.grille { display: grid; gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; }
.grille.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grille.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grille.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grille > * { background: var(--nuit); padding: 26px 26px 28px; display: grid; gap: 10px; align-content: start; }
.teinte .grille > * { background: var(--nuit-2); }
.clair .grille { background: var(--filet); border-color: var(--filet); }
.clair .grille > * { background: #fff; }
.grille p, .grille li { font-size: 15.5px; line-height: 1.55; color: var(--doux); }
.clair .grille p, .clair .grille li { color: var(--gris); }
.grille small { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--jaune); text-transform: uppercase; }
.clair .grille small, .clair .sur, .clair .numero { color: #8a6f00; }
@media (max-width: 980px) { .grille.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grille.g3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grille.g4, .grille.g2 { grid-template-columns: 1fr; } }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.duo > * { display: grid; gap: 18px; align-content: start; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 16px; max-width: 46em; }
.prose p { color: var(--gris); }
.sombre-prose p { color: var(--doux); }

/* chiffres */
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); }
.chiffres li { display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--noir); padding-top: 20px; }
.chiffres b { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -.03em; font-weight: 600; }
.chiffres p { color: var(--gris); font-size: 15.5px; }
.chiffres a { font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
@media (max-width: 760px) { .chiffres { grid-template-columns: 1fr; } }

/* témoignages */
.voix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.voix figure { background: #fff; border: 1px solid var(--filet); border-radius: 18px; padding: 28px; display: grid; gap: 20px; align-content: space-between; }
.voix blockquote { font-size: 16.5px; line-height: 1.6; color: var(--noir); }
.voix blockquote p + p { margin-top: 10px; }
.voix figcaption { font-size: 14px; color: var(--gris); border-top: 1px solid var(--filet); padding-top: 16px; }
.voix figcaption b { display: block; color: var(--noir); font-size: 15px; }
.voix figcaption i { font: 600 11px/1.6 var(--mono); letter-spacing: .14em; font-style: normal; color: #8a6f00; text-transform: uppercase; }
@media (max-width: 860px) { .voix { grid-template-columns: 1fr; } }
.noms { display: flex; flex-wrap: wrap; gap: 10px; }
.noms li { border: 1px solid var(--filet); background: #fff; border-radius: 12px; padding: 14px 18px; display: grid; gap: 2px; min-width: 150px; }
.noms b { font-size: 16px; letter-spacing: .02em; }
.noms span { font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }

/* méthode */
.poc { border: 1px solid var(--jaune); border-radius: 18px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; background: rgba(224, 180, 0, .06); }
.clair .poc { background: #fffbe8; border-color: #d6ac00; }
.poc p { max-width: 48em; }
.fleche-bas { width: 1px; height: 44px; background: currentColor; opacity: .35; margin: 0 auto; }

/* tableau des atouts */
.atouts { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.atouts th { text-align: left; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gris); padding: 0 18px 14px 0; }
.atouts td { vertical-align: top; padding: 16px 18px 16px 0; border-top: 1px solid var(--filet); width: 50%; }
.atouts td:first-child { color: var(--gris); }
.atouts td:last-child b { display: block; }
@media (max-width: 640px) { .atouts, .atouts tbody, .atouts tr, .atouts td { display: block; width: 100%; } .atouts thead { display: none; } .atouts td:first-child { padding-bottom: 4px; } .atouts td:first-child::before { content: "Ailleurs : "; font-weight: 600; } .atouts td:last-child { border-top: 0; padding-top: 0; } }

/* fiche technique */
.fiche { display: grid; gap: 0; border-top: 1px solid var(--filet); }
.fiche div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--filet); font-size: 15px; }
.fiche dt { font: 500 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
@media (max-width: 560px) { .fiche div { grid-template-columns: 1fr; gap: 2px; } }
.produit { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--filet); scroll-margin-top: 80px; }
.produit:first-of-type { border-top: 0; padding-top: 0; }

/* ---------- appel final et pied ---------- */
.appel { background: var(--encre); padding: clamp(64px, 8vw, 110px) 0; position: relative; overflow: hidden; }
.appel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; pointer-events: none; }
.appel .cadre { position: relative; display: grid; gap: 22px; justify-items: start; }
.appel h2 { max-width: 18em; }
.appel p { color: #c5d6d9; max-width: 40em; }
.pied { padding: 56px 0 40px; border-top: 1px solid var(--ligne); font-size: 15px; color: var(--doux); }
.pied .cadre { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.pied .logo { display: inline-block; }
.pied .logo img { height: 64px; margin-bottom: 18px; }
.pied h3 { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--texte); margin-bottom: 14px; }
.pied li { margin-bottom: 8px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--texte); }
.pied address { font-style: normal; display: grid; gap: 4px; }
.pied-bas { grid-column: 1 / -1; border-top: 1px solid var(--ligne); padding-top: 22px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .pied .cadre { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- apparition au défilement ---------- */
.js .apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .apparait.vu { opacity: 1; transform: none; }

/* ---------- sobriété : pas de mouvement pour qui le demande ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .apparait { opacity: 1; transform: none; }
  .t-onde { opacity: .5; transform: scale(2); }
  .chaine li::after { display: none; }
}
@media print { .tete, .burger, .appel { display: none; } body { background: #fff; color: #000; } }

/* une scène hors de l'écran ne s'anime pas (--jeu vient de js/site.js) */
.scene *, .scene *::before, .scene *::after { animation-play-state: var(--jeu, running); }

/* ---------- références : les cartes et les histoires des clients (Q-000004) ---------- */
.cartes-ref { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cartes-ref li > * { display: grid; height: 100%; align-content: start; border: 1px solid var(--filet); border-radius: 16px; overflow: hidden; background: #fff; color: var(--noir); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cartes-ref img { display: block; width: 100%; height: 96px; object-fit: cover; }
.carte-ref-texte { display: grid; gap: 2px; padding: 16px 18px 4px; }
.carte-ref-texte b { font-size: 17px; letter-spacing: .02em; }
.carte-ref-texte small { font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.cartes-ref i { font-style: normal; font-weight: 600; font-size: 14px; padding: 8px 18px 16px; display: inline-flex; gap: 8px; align-items: center; }
.cartes-ref i::after { content: "→"; color: #8a6f00; transition: transform .2s; }
.cartes-ref li > div { padding-bottom: 14px; }
.cartes-ref a:hover { transform: translateY(-2px); border-color: #b9c6c5; box-shadow: 0 18px 30px -22px rgba(11, 32, 39, .5); }
.cartes-ref a:hover i::after { transform: translateX(4px); }
.bloc:not(.clair) .cartes-ref li > * { border-color: var(--ligne); }
@media (max-width: 900px) { .cartes-ref { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cartes-ref { grid-template-columns: 1fr; } }
.ref-tete { background-size: cover; background-position: center; }
.ref-tete::before { display: none; }
.histoire { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.histoire-cote { display: grid; gap: 22px; position: sticky; top: 96px; }
.logo-client { background: #fff; border: 1px solid var(--filet); border-radius: 16px; padding: 22px; display: grid; place-items: center; min-height: 130px; }
.logo-client img { display: block; max-width: 100%; max-height: 96px; width: auto; height: auto; object-fit: contain; }
.histoire-cote .fiche div { grid-template-columns: 1fr; gap: 2px; }
.histoire-corps { display: grid; gap: clamp(28px, 4vw, 44px); min-width: 0; }
.histoire-corps h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.histoire-corps .prose p, .histoire-corps .points li { font-size: 16.5px; }
.photo { border: 1px solid var(--filet); border-radius: 16px; overflow: hidden; background: #fff; }
.photo img { display: block; width: 100%; height: auto; }
.photo figcaption { padding: 14px 18px 16px; font-size: 14.5px; line-height: 1.5; color: var(--gris); border-top: 1px solid var(--filet); }
.voix.seule { grid-template-columns: minmax(0, 46em); }
.cas a { color: var(--texte); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--jaune); white-space: nowrap; }
@media (max-width: 860px) { .histoire { grid-template-columns: 1fr; } .histoire-cote { position: static; } }

/* le logo du client à côté de son témoignage (Q-000007) */
.voix figcaption { display: flex; align-items: center; gap: 18px; }
.voix-logo { flex: none; width: 116px; height: 60px; display: grid; place-items: center; }
.voix-logo img { display: block; max-width: 116px; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.voix-qui { display: block; min-width: 0; }
a.voix-logo { transition: opacity .2s; }
a.voix-logo:hover { opacity: .75; }
/* une référence sans photo (Q-000013) : un bandeau neutre à la place */
.carte-ref-vide { display: block; height: 96px; background: var(--encre) radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px) 0 0 / 18px 18px; }

/* le bus CAN de la machine et le serveur (Q-000005) */
.can-h { fill: none; stroke: var(--jaune); stroke-width: 1.5; stroke-linejoin: round; }
.can-l { fill: none; stroke: rgba(233, 240, 241, .9); stroke-width: 1.5; stroke-linejoin: round; }
.capteur { fill: var(--nuit-2); stroke: var(--jaune); stroke-width: 1.4; }
.led { fill: var(--ok); animation: clignote 1.8s ease-in-out infinite; }
.led.l1 { animation-delay: .5s; } .led.l2 { animation-delay: 1s; }

/* ---------- blog, mentions légales, fil d'Ariane, questions fréquentes (Q-000003, suite) ---------- */
h1 .sur { margin-bottom: 22px; }
.fil { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--doux); }
.fil a { color: var(--doux); text-decoration: none; }
.fil a:hover { color: var(--texte); }
.fil span[aria-current] { color: var(--texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28em; }
.cartes-blog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cartes-blog a { display: grid; gap: 12px; height: 100%; align-content: start; padding: 24px 24px 22px; border: 1px solid var(--filet); border-radius: 16px; background: #fff; color: var(--noir); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cartes-blog a:hover { transform: translateY(-2px); border-color: #b9c6c5; box-shadow: 0 18px 30px -22px rgba(11, 32, 39, .5); }
.cartes-blog small { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8a6f00; }
.cartes-blog b { font-size: 17.5px; line-height: 1.3; font-weight: 600; }
.cartes-blog span { font-size: 15px; line-height: 1.55; color: var(--gris); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cartes-blog i { font-style: normal; font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; }
.cartes-blog i::after { content: "→"; color: #8a6f00; transition: transform .2s; }
.cartes-blog a:hover i::after { transform: translateX(4px); }
@media (max-width: 980px) { .cartes-blog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cartes-blog { grid-template-columns: 1fr; } }
.article { max-width: 46em; margin-inline: auto; gap: 18px; }
.article h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 22px; }
.article h3 { margin-top: 10px; }
.article p { font-size: 17px; line-height: 1.7; color: #3b4d52; }
.article.legal p { font-size: 16px; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--filet); max-width: 52em; }
.faq > div { padding: 20px 0; border-bottom: 1px solid var(--filet); display: grid; gap: 8px; }
.faq h3 { margin: 0; }
.faq p { color: var(--gris); font-size: 16px; line-height: 1.65; }
.maillons ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--filet); border: 1px solid var(--filet); border-radius: 16px; overflow: hidden; }
.maillons li { background: #fff; padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.maillons li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.maillons small { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: #8a6f00; }
.maillons h3 { margin: 0; font-size: 1rem; }
.maillons p { font-size: 14.5px; line-height: 1.5; }
.maillons figcaption { font-size: 14px; color: var(--gris); margin-top: 12px; }
@media (max-width: 560px) { .maillons ol { grid-template-columns: 1fr; } }
.schema svg { display: block; width: 100%; height: auto; padding: 18px 14px 6px; }
.s-titre { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--gris); }
.s-axe { stroke: var(--filet); stroke-width: 1.5; }
.s-pt { fill: var(--noir); }
.s-int { fill: rgba(224, 180, 0, .3); stroke: #b08d00; stroke-width: 1.2; }
.reseaux { display: flex; gap: 16px; margin-top: 14px; }
