/* La vitrine du capteur d'air, version Claude, d'après le modèle qu'il a montré (unifato.com/manufactt : « il faut
   beaucoup s'en inspirer ») : fond gris clair granuleux, fines colonnes verticales, grands titres noirs avec une
   touche orange, étiquettes à carré orange, boutons noirs à flèche orange, une section sombre pour la vue éclatée au
   trait, et les paliers en lignes « Features ». */

:root {
  --fond: #ececea;
  --blanc: #fbfbf9;
  --encre: #131313;
  --texte: #3f3f3c;
  --doux: #6b6b66;
  --filet: rgba(19, 19, 19, 0.1);
  --colonne: rgba(19, 19, 19, 0.055);
  --orange: #d4421a;
  --orange-fonce: #b23612;
  --nuit: #161618;
  --nuit-texte: #d6d6d2;
  --large: 1240px;
  --marge: 32px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--texte);
  background-color: var(--fond);
  /* un grain très fin, comme le papier du modèle */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' 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 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
/* les colonnes du modèle, sur toute la hauteur de la page. Pas en « fixed » : un calque fixe sous tout le contenu
   oblige Chrome à mettre chaque section dans son propre calque, et il laissait des pans blancs en défilant (vu
   le 18 novembre 2026) */
body { position: relative; }
body::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: min(var(--large), calc(100% - 2 * var(--marge)));
  margin: 0 auto;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--colonne) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  border-right: 1px solid var(--colonne);
  z-index: 0;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.dedans { position: relative; z-index: 1; width: min(var(--large), calc(100% - 2 * var(--marge))); margin: 0 auto; }

/* la barre du haut */
.barre { position: sticky; top: 0; z-index: 10; background: var(--blanc); border-bottom: 1px solid var(--filet); }
.barre .dedans { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.marque { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--encre); text-decoration: none;
  display: flex; align-items: center; gap: 10px; }
.marque-signe { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.marque-signe i { background: var(--encre); border-radius: 2px; }
.marque-signe i:nth-child(2) { background: var(--orange); }
.liens { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.liens a { text-decoration: none; color: var(--encre); }
.liens a:hover { color: var(--orange); }

/* les boutons : noir ou orange, avec leur petit carré à flèche */
.bouton { display: inline-flex; align-items: center; gap: 14px; padding: 7px 7px 7px 18px; border-radius: 6px;
  font-weight: 600; font-size: 15px; text-decoration: none; background: var(--encre); color: #fff;
  box-shadow: 3px 3px 0 var(--orange-fonce); transition: transform .15s ease, box-shadow .15s ease; }
.bouton:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--orange-fonce); }
.bouton .fleche { width: 32px; height: 32px; border-radius: 4px; background: var(--orange); display: grid;
  place-items: center; font-size: 17px; }
.bouton--orange { background: var(--orange); box-shadow: 3px 3px 0 var(--encre); }
.bouton--orange .fleche { background: var(--encre); }

/* l'étiquette blanche à carré orange */
.pastille { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--blanc); border: 1px solid var(--filet); font-size: 14px; font-weight: 500; color: var(--encre); }
.pastille::before { content: ""; width: 8px; height: 8px; background: var(--orange); border-radius: 1px; }
.meta { color: var(--orange); font-weight: 500; font-size: 15px; letter-spacing: 0.02em; }

h1, h2, h3 { color: var(--encre); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(42px, 5.9vw, 88px); line-height: 1; }
h1 .orange, h2 .orange { white-space: nowrap; }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; }
h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.orange { color: var(--orange); }

/* l'ouverture */
.ouverture { padding: clamp(36px, 5vw, 72px) 0 0; }
.ouverture-haut { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.ouverture h1 { line-height: 1; }
.ouverture-intro { display: block; font-size: clamp(26px, 3vw, 44px); letter-spacing: -.045em; }
.ouverture-marque { display: flex; align-items: center; gap: .16em; margin-top: .14em;
  margin-bottom: .1em; font-size: clamp(48px, 7.6vw, 108px); font-weight: 700; letter-spacing: -.055em; white-space: nowrap; }
.ouverture-marque svg { display: block; width: auto; height: .85em; }
.ouverture .cote h2 { font-size: 23px; line-height: 1.2; }
.ouverture .cote p { max-width: 54ch; margin: 8px 0 22px; font-size: 17px; }
.ouverture-bas { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-bottom: 22px;
  font-size: 14px; color: var(--encre); }
.ouverture-bas span:nth-child(2) { letter-spacing: 0.12em; font-size: 12px; color: var(--doux); }
.scene { position: relative; z-index: 1; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
  background: #ececea; }
.scene .case3d { width: min(1100px, 100%); margin: 0 auto; aspect-ratio: 1600 / 1100; }
.scene .case3d > img { width: 100%; height: 100%; object-fit: cover; }
/* les écrans du programme, l'un après l'autre sur l'écran de la boîte en 3D */
.screens3d { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 16px 32px; }
.screens3d[hidden] { display: none; }
.screens3d-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.screens3d button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--filet); background: var(--blanc); color: var(--encre); font: inherit; font-size: 14px;
  font-weight: 500; cursor: pointer; }
.screens3d button:hover { border-color: var(--encre); }
.screens3d button[aria-pressed="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }
.screens3d .point { width: 10px; height: 10px; border-radius: 50%; background: #a9a9a3; }
.screens3d .point.n0 { background: #2e9b57; } .screens3d .point.n1 { background: #ef9a1a; }
.screens3d .point.n2 { background: #d0342c; }
.screens3d-line { margin: 0; min-height: 1.5em; font-size: 15px; color: var(--texte); text-align: center; }

/* la boîte en 3D (case-3d.js) : sans WebGL, l'image qu'elle contient reste */
.case3d { position: relative; }
.case3d--ready { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.case3d--ready.case3d--drag { cursor: grabbing; }
.case3d--ready > img, .case3d--ready > .eclatee { display: none; }
.case3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.case3d--ready::after { content: "Drag to turn it"; position: absolute; left: 50%; bottom: 14px;
  transform: translateX(-50%); font-size: 13px; color: var(--doux); pointer-events: none; }
.case3d--exploded.case3d--ready::after { color: #8d8d88; }
.case3d:focus-visible { outline-offset: -3px; }

/* les vraies photos de l'atelier, juste après la boîte en 3D */
.atelier-photos { position: relative; z-index: 1; padding: 64px 0 8px; }
.atelier-photos .dedans { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; }
.atelier-photos figure { margin: 0; display: flex; flex-direction: column; }
.atelier-photos img { width: 100%; flex: 1; min-height: 0; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--filet); aspect-ratio: 1266 / 900; }
.atelier-photos figure:not(.atelier-grande) img { aspect-ratio: auto; height: 100%; }
.atelier-photos figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--texte); }
/* The workshop photos. Left: a thin line from the printer to the screen, a Wi-Fi badge, a glow that travels and
   lights the screen when it arrives. Right: the screen plays a job, sped up (timelapse.js). */
.photo-lien { position: relative; flex: 1; min-height: 0; display: flex; }
.photo-lien > img { flex: 1; }
.photo-lien .lien, .photo-lien .accelere { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  border-radius: 12px; }
.lien-a { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; opacity: .9; }
.lien-source { fill: var(--orange); stroke: #fff; stroke-width: 6; }
.lien-paquet { fill: #fff; stroke: var(--orange); stroke-width: 7; }
.lien-wifi { filter: drop-shadow(0 6px 10px rgba(20, 20, 20, .22)); }
.lien-wifi-fond { fill: #fff; }
.lien-wifi path { fill: none; stroke: var(--orange); stroke-width: 8; stroke-linecap: round; }
.lien-wifi-point { fill: var(--orange); }
.lien-ecran { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linejoin: round; opacity: .15;
  animation: lien-ecran 2.4s ease-out infinite; }
@keyframes lien-ecran { 0%, 55% { opacity: .15; } 64% { opacity: 1; } 100% { opacity: .15; } }
.lien-vue { opacity: 0; transition: opacity .3s ease; }
.lien-vue.on { opacity: 1; }
.accelere image { opacity: 0; transition: opacity .35s ease; }
.accelere image.on { opacity: 1; }
.accelere-etiquette { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--encre); opacity: 0; transition: opacity .35s ease;
  pointer-events: none; }
.joue .accelere-etiquette { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .lien-paquet { display: none; }
  .lien-ecran { animation: none; opacity: .8; }
}



/* aucune soudure : le fer à la poubelle, ce qui se branche */
.branche { position: relative; z-index: 1; padding: 112px 0 96px; border-bottom: 1px solid var(--filet); }
.branche-haut { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.branche h2 { margin-top: 18px; font-size: clamp(44px, 5.6vw, 84px); line-height: 0.98; letter-spacing: -0.045em; }
.branche-haut p { margin: 24px 0 0; font-size: 19px; line-height: 1.5; max-width: 34ch; }
.dessin.dessin--grand { aspect-ratio: 560 / 440; background: none; border: 0; border-radius: 0; }
.dessin--grand svg * { stroke-width: 2.2; }
.dessin--grand svg .fin { stroke-width: 1.4; }
.branchements { list-style: none; counter-reset: branche; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px; margin: 48px 0 0; padding: 0; }
.branchements li { counter-increment: branche; }
.branchements .dessin { aspect-ratio: 240 / 160; }
.branchements p { display: flex; gap: 12px; margin: 14px 0 0; font-size: 17px; line-height: 1.4; font-weight: 500;
  color: var(--encre); }
.branchements p::before { content: counter(branche); color: var(--orange); font-weight: 600; }
/* tout ce que mesure le capteur : un grand graphe, puis une carte par mesure avec sa courbe ; vert bon, orange
   moyen, rouge mauvais, aux seuils du programme du Pi */
.mesures { --bon: #2e9b57; --moyen: #ef9a1a; --mauvais: #d0342c;
  margin-top: 88px; padding-top: 40px; border-top: 1px solid var(--filet); }
.mesures-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: end; }
.mesures-chiffre { font-size: clamp(110px, 11vw, 168px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.78;
  color: var(--encre); }
.mesures-tete p { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.25; letter-spacing: -0.015em;
  color: var(--encre); max-width: 30ch; }
.pastille-niveau { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 3px 10px 3px 8px;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--doux); background: rgba(19, 19, 19, 0.06); }
.pastille-niveau::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #a9a9a3; }
.pastille-niveau.n0 { color: #1f6b3d; background: rgba(46, 155, 87, 0.14); }
.pastille-niveau.n0::before { background: var(--bon); }
.pastille-niveau.n1 { color: #8a5300; background: rgba(239, 154, 26, 0.18); }
.pastille-niveau.n1::before { background: var(--moyen); }
.pastille-niveau.n2 { color: #9b231c; background: rgba(208, 52, 44, 0.14); }
.pastille-niveau.n2::before { background: var(--mauvais); }
.t0 { color: #1f6b3d; } .t1 { color: #b06c00; } .t2 { color: var(--mauvais); }
.legende-niveaux { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  margin: 36px 0 0; padding: 0; }
.legende-texte { font-size: 15px; color: var(--texte); margin-left: 6px; }
.zone-n0 { fill: rgba(46, 155, 87, 0.11); } .zone-n1 { fill: rgba(239, 154, 26, 0.16); }
.zone-n2 { fill: rgba(208, 52, 44, 0.13); }
.trait-n0, .trait-n1, .trait-n2, .trait-neutre { fill: none; stroke-width: 2; stroke-linejoin: round;
  stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trait-n0 { stroke: var(--bon); } .trait-n1 { stroke: var(--moyen); } .trait-n2 { stroke: var(--mauvais); }
.trait-neutre { stroke: var(--encre); stroke-width: 1.6; }
.graphe { margin: 28px 0 0; background: var(--blanc); border: 1px solid var(--filet); border-radius: 10px;
  padding: 24px 84px 44px 64px; }
.graphe figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 18px -36px; }
.graphe-titre { font-size: 20px; font-weight: 600; color: var(--encre); letter-spacing: -0.01em; }
.graphe-unite { font-size: 14px; color: var(--doux); }
.graphe-temps { position: relative; height: 26px; margin-bottom: 8px; }
.graphe-temps span { position: absolute; top: 0; height: 22px; display: flex; align-items: center; padding: 0 8px;
  font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; border-radius: 4px; }
.temps-travail { background: var(--encre); color: #fff; }
.temps-purge { background: repeating-linear-gradient(135deg, rgba(19, 19, 19, 0.16) 0 5px, transparent 5px 10px);
  color: var(--encre); }
.graphe-zone { position: relative; height: clamp(200px, 26vw, 320px); }
.graphe-zone svg { display: block; width: 100%; height: 100%; overflow: visible; }
.graphe-zone .trait-n0, .graphe-zone .trait-n1, .graphe-zone .trait-n2 { stroke-width: 2.6; }
.graphe .alerte { stroke: var(--mauvais); stroke-width: 1.6; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.etiquette-alerte { position: absolute; top: 8px; transform: translateX(calc(-100% - 8px)); font-size: 13px;
  font-weight: 600; color: var(--mauvais); white-space: nowrap; }
.zone-nom { position: absolute; left: calc(100% + 10px); transform: translateY(-50%); font-size: 13px; font-weight: 600; }
.axe-y { position: absolute; left: -12px; transform: translate(-100%, -50%); font-size: 12px; color: var(--doux); }
.axe-x { position: absolute; top: calc(100% + 10px); transform: translateX(-50%); font-size: 12px; color: var(--doux);
  white-space: nowrap; }
.axe-x:first-of-type { transform: none; }
.axe-x:last-of-type { transform: translateX(-100%); }
.cartes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--filet); border-left: 1px solid var(--filet); }
.carte { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 18px 16px; min-width: 0;
  border-right: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.carte-nom { font-size: 14px; color: var(--texte); }
.carte-valeur { margin-top: 6px; font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.04em;
  line-height: 1; color: var(--encre); white-space: nowrap; }
.carte-valeur small { margin-left: 5px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--doux); }
.carte .pastille-niveau { margin-top: 10px; }
.carte svg { display: block; width: 100%; height: 56px; margin-top: 12px; }
.carte-pic { margin: 10px 0 0; font-size: 13px; color: var(--texte); }
.carte-note { margin: 6px 0 0; font-size: 13px; line-height: 1.35; color: var(--doux); }
.carte--suivie .carte-valeur { color: var(--texte); }
.mesures-note { margin: 16px 0 0; font-size: 13px; color: var(--doux); max-width: 80ch; }

/* les sections : un titre, puis le reste */
.section { position: relative; z-index: 1; padding: 112px 0; }
.section-tete { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: end;
  margin-bottom: 56px; }
.section-tete h2 { margin-top: 18px; }
.section-tete p { margin: 0; }

/* un travail, trois écrans */
.etapes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }
.etape-image { position: relative; }
.etape-image .exemple, .etape-image .reel { position: absolute; bottom: 10px; right: 10px; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; }
.etape-image .reel { background: var(--encre); color: #fff; }
.etape-image .exemple { background: var(--blanc); color: var(--texte); border: 1px solid var(--filet); }
.etape figure { margin: 0; }
.etape img { width: 100%; border-radius: 8px; border: 1px solid var(--filet); background: #fff; }
.etape .numero { margin-top: 18px; color: var(--orange); font-weight: 600; font-size: 15px; }
.etape h3 { margin-top: 6px; font-size: 24px; }
.etape p { margin: 8px 0 0; font-size: 15px; }

/* la vue éclatée au trait, sur la nuit */
.nuit { position: relative; z-index: 1; background: var(--nuit); color: var(--nuit-texte); padding: 112px 0 96px; }
.nuit h2 { color: #fff; }
.nuit .pastille { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.eclatee { position: relative; margin-top: 24px; }
.eclatee img { width: 100%; }
.eclatee svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.eclatee .anneau { fill: none; stroke: var(--orange); stroke-width: 3.2; }
.eclatee .trait { fill: none; stroke: #bdbdb8; stroke-width: 1.2; }
.eclatee .mot { position: absolute; font-size: clamp(12px, 1.25vw, 17px); color: #e8e8e4; line-height: 1.25;
  max-width: 17ch; }
.eclatee .mot--gauche { transform: translate(-100%, -50%); text-align: right; padding-right: 10px; }
.eclatee .mot--droite { transform: translate(0, -50%); padding-left: 10px; }
/* la vue éclatée en 3D : la page qui défile ouvre la boîte ; les noms viennent quand elle est grande ouverte */
.case3d--exploded { margin-top: 24px; aspect-ratio: 1600 / 1100; }
.avec-3d .case3d-track { height: 290vh; }
.avec-3d .case3d-track .case3d-sticky { position: sticky; top: 64px; height: calc(100vh - 64px);
  height: calc(100svh - 64px); display: flex; }
.avec-3d .case3d-track .case3d--exploded { aspect-ratio: auto; width: 100%; height: 100%; margin: 0; }
.case3d-callouts { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  opacity: 0; transition: opacity .5s ease; }
.case3d-callouts .leader { fill: none; stroke: var(--orange); stroke-width: 1.4; }
.case3d-callouts .ring { fill: rgba(212, 66, 26, 0.16); stroke: var(--orange); stroke-width: 2; }
.case3d-callouts .dot { fill: var(--orange); }
.case3d-callouts .num { display: none; fill: #fff; font-size: 12px; font-weight: 600; text-anchor: middle; }
.case3d:not(.case3d--wide) .case3d-callouts .num { display: block; }
.case3d:not(.case3d--wide) .case3d-callouts .dot { display: none; }
.case3d-name { position: absolute; transform: translate(0, -50%); padding-left: 12px; max-width: 18ch;
  text-wrap: balance;
  color: #fff; font-size: clamp(17px, 1.75vw, 26px); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em;
  opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.case3d-name--left { transform: translate(-100%, -50%); padding: 0 12px 0 0; text-align: right; }
.case3d:not(.case3d--wide) .case3d-name { display: none; }
.case3d--open .case3d-callouts, .case3d--open .case3d-name { opacity: 1; }
.case3d-legend { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: repere; display: grid; gap: 10px 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); color: #e8e8e4; font-size: 16px; }
.case3d-legend li { counter-increment: repere; display: flex; gap: 10px; align-items: baseline; }
.case3d-legend li::before { content: counter(repere); flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--orange); color: #fff; font-size: 12px; font-weight: 600; display: grid;
  place-items: center; transform: translateY(4px); }
@media (prefers-reduced-motion: reduce) { .case3d-callouts, .case3d-name { transition: none; } }
@media (max-width: 759px) {        /* a phone: a shorter stage, so the case fills the width */
  .avec-3d .case3d-track { height: 230vh; }
  .avec-3d .case3d-track .case3d-sticky { height: 112vw; top: max(72px, calc(50svh - 56vw)); }
}
.vues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.vues figure { margin: 0; }
.vues img { width: 100%; border-radius: 8px; background: #ececea; aspect-ratio: 16 / 11; object-fit: cover; }
.vues figcaption { margin-top: 8px; font-size: 14px; color: #a9a9a4; }

/* les paliers : d'abord l'échelle des montants, puis une ligne par palier (les lignes « Features » du modèle) */
.echelle { position: relative; list-style: none; margin: 8px 0 0; padding: 0; height: 128px; }
.echelle::before { content: ""; position: absolute; left: 0; right: 0; top: 51px; height: 2px; background: var(--encre); }
.echelon { position: absolute; top: 0; left: calc(var(--x) * 100%); transform: translateX(-100%); }
.echelon a { display: grid; justify-items: end; gap: 38px; text-decoration: none; color: var(--encre); text-align: right; }
.echelon-montant { font-size: 32px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; position: relative; }
.echelon-montant::after { content: ""; position: absolute; right: 0; top: calc(100% + 13px); width: 14px; height: 14px;
  border-radius: 50%; background: var(--fond); border: 2px solid var(--encre); transform: translateX(50%); }
.echelon-titre { font-size: 14px; line-height: 1.25; max-width: 13ch; color: var(--texte); }
.echelon a:hover .echelon-titre { color: var(--orange); }
.echelon--but .echelon-montant { color: var(--orange); }
.echelon--but .echelon-montant::after { background: var(--orange); border-color: var(--orange); }

.paliers { margin-top: 40px; border-top: 1px solid var(--filet); }
.palier { display: grid; grid-template-columns: 190px minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 36px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--filet); scroll-margin-top: 80px; }
.palier .montant { font-size: clamp(38px, 3.6vw, 56px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95;
  color: var(--encre); }
.palier .sorte { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--doux); }
.palier--but .montant { color: var(--orange); }
.palier--but .sorte { color: #fff; background: var(--orange); border-radius: 4px; padding: 3px 9px; font-weight: 600; }
.dessin { background: var(--blanc); border: 1px solid var(--filet); border-radius: 8px; aspect-ratio: 16 / 10;
  overflow: hidden; }
.dessin svg { display: block; width: 100%; height: 100%; }
.dessin svg * { fill: none; stroke: var(--encre); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; }
.dessin svg g { stroke: none; }
.dessin svg .o { stroke: var(--orange); }
.dessin svg .fin { stroke: #8a8a85; stroke-width: 1.2; }
.dessin svg .fond { fill: var(--blanc); }
.dessin svg .teinte { fill: rgba(212, 66, 26, 0.14); }
.dessin svg .vert { fill: rgba(46, 155, 87, 0.22); }
/* les réglages depuis le téléphone : les étapes, un téléphone où l'on fait défiler la vraie page, des captures */
.telephone-haut { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: center;
  margin-top: 8px; }
.telephone-etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; }
.telephone-etapes li { counter-increment: etape; display: grid; grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 14px; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.telephone-etapes li::before { content: counter(etape); grid-row: 1 / span 2; width: 34px; height: 34px;
  border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; font-weight: 600; }
.telephone-etapes li > div { grid-column: 2; }
.telephone-etapes h3 { font-size: 20px; }
.telephone-etapes p { margin: 6px 0 0; font-size: 16px; }
.aide-ecran { width: min(420px, 100%); margin-bottom: 16px; padding: 10px; border-radius: 10px;
  background: var(--encre); box-shadow: 4px 4px 0 var(--orange); }
.aide-ecran img { display: block; width: 100%; border-radius: 3px; }
.telephone-cadre { justify-self: center; width: 300px; }
.telephone-ecran { height: 600px; overflow-y: auto; border: 11px solid var(--encre); border-radius: 42px;
  background: #f3f3ee; scrollbar-width: none; box-shadow: 6px 6px 0 var(--orange); }
.telephone-ecran::-webkit-scrollbar { display: none; }
.telephone-ecran img { display: block; width: 100%; }
.telephone-aide { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--doux); }
.telephone-cartes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.telephone-cartes figure { margin: 0; }
.telephone-cartes .capture { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; border: 1px solid var(--filet);
  background: #f3f3ee; }
.telephone-cartes img { display: block; width: 100%; }
.telephone-cartes figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--texte); }
.telephone-note { margin: 24px 0 0; font-size: 13px; color: var(--doux); max-width: 80ch; }

/* qui la fabrique (sa demande : « si c'est bien, il faut le mettre ») */
.qui-grille { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.qui-texte { margin: 22px 0 0; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.3; font-weight: 500;
  letter-spacing: -0.02em; color: var(--encre); max-width: 30ch; }
.qui-chiffres { list-style: none; margin: 0; padding: 0; }
.qui-chiffres li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--filet); font-size: 16px; color: var(--texte); }
.qui-nombre { font-size: 64px; font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; color: var(--orange); }
.equipe { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  margin: 56px 0 0; padding: 32px 0 0; border-top: 1px solid var(--filet); }
.equipe li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 18px; align-items: center; }
.equipe .portrait { grid-row: 1 / span 2; width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  background: var(--blanc); border: 1px solid var(--filet); }
.equipe .portrait--initiale { display: grid; place-items: center; background: var(--encre); color: #fff; border: 0;
  font-size: 34px; font-weight: 600; }
.equipe h3 { font-size: 22px; align-self: end; }
.equipe p { margin: 0; font-size: 15px; line-height: 1.45; align-self: start; }
.equipe li:not(:has(p)) h3 { grid-row: 1 / span 2; align-self: center; }

/* la liste des pièces : un dessin à gauche de chaque pièce */
.pieces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px; }
.pieces li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--filet); }
.dessin.dessin--piece { aspect-ratio: 160 / 100; }
.pieces h3 { margin: 2px 0 0; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.pieces p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }
.dessin svg .plein { fill: var(--encre); }
.dessin svg .tirets { stroke-dasharray: 4 5; }
.palier h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
.palier-texte p { margin: 14px 0 0; font-size: 16px; line-height: 1.55; }
.palier-texte .nouveau { font-size: 18px; line-height: 1.45; color: var(--encre); font-weight: 500; }
.palier-texte .nouveau span { color: var(--orange); font-weight: 600; margin-right: 4px; }
.palier-texte .nouveau + p { color: var(--doux); font-size: 15px; }
.palier-texte .delai { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--encre); }
.livrables { list-style: none; margin: 4px 0 0; padding: 0; }
.livrables li { position: relative; padding: 0 0 12px 30px; margin-bottom: 12px; font-size: 16px; line-height: 1.4;
  color: var(--encre); border-bottom: 1px solid var(--filet); }
.livrables li:last-child { border-bottom: 0; }
.livrables li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 11px; height: 6px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }

.recompenses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 72px; }
.recompense { background: var(--blanc); border: 1px solid var(--filet); border-radius: 10px; padding: 30px; }
.recompense--premier { border-color: var(--orange); box-shadow: 4px 4px 0 var(--orange); }
.recompense .prix { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; color: var(--encre); line-height: 1; }
.recompense h3 { margin-top: 14px; font-size: 22px; }
.recompense .limite { font-size: 14px; color: var(--orange); font-weight: 500; }
.recompense ul { padding-left: 18px; margin: 16px 0 0; font-size: 15px; }
.recompense li { margin-bottom: 6px; }

/* les détails, tirés du texte : un titre à gauche, le reste à droite */
.details .bloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding: 56px 0;
  border-top: 1px solid var(--filet); }
.details .bloc > h2 { grid-column: 1; font-size: clamp(28px, 2.6vw, 38px); align-self: start;
  position: sticky; top: 100px; }
.details .bloc-corps { grid-column: 2; min-width: 0; }
.details .bloc-corps > p, .details .bloc-corps > ul, .details .bloc-corps > ol { margin: 0 0 16px; max-width: 70ch; }
.details .bloc-corps > :last-child { margin-bottom: 0; }
.details li { margin-bottom: 10px; }
.details strong { color: var(--encre); }
.details .figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 20px 16px; margin: 0 0 20px; }
.details .figures:has(> figure:only-child) { grid-template-columns: minmax(0, 620px); }
.details figure { margin: 0; }
.details figure img { width: 100%; border-radius: 6px; border: 1px solid var(--filet); background: #fff; }
.details figcaption { margin-top: 6px; font-size: 13px; color: var(--doux); line-height: 1.4; }
.tableau { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--filet); }
th { color: var(--encre); font-weight: 600; }

/* Le pied reprend le tracé du capteur et le signe à quatre carrés de la barre. */
.pied {
  --signal: #ff8255;
  --texte-pied: #bab7b2;
  --filet-pied: rgb(255 255 255 / 13%);
  position: relative;
  z-index: 1;
  color: var(--blanc);
  background: radial-gradient(ellipse at 100% 110%, #56291b 0, transparent 54%), #131313;
}
.pied .dedans { container-type: inline-size; }
.pied-haut { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 10%;
  padding: clamp(48px, 6vw, 88px) 0; }
.pied-rubrique { margin: 0 0 12px; color: var(--blanc); font: 600 22px/1.15 "Instrument Sans", sans-serif;
  letter-spacing: -.035em; }
.pied a { text-decoration: none; }
.pied a:focus-visible { outline-color: var(--signal); }
.pied-trace { display: block; width: min(100%, 385px); }
.pied-trace .pied-rubrique { display: flex; gap: 10px; align-items: center; }
.pied-trace .pied-rubrique span { color: var(--signal); font-size: .85em; }
.pied-trace:hover .pied-rubrique, .pied-navigation a:hover { color: var(--signal); }
.pied-legende, .pied-heures, .pied-echelle { display: flex; justify-content: space-between;
  color: var(--texte-pied); font: 12px/1.4 ui-monospace, monospace; }
.pied-signal { display: grid; grid-template-columns: 3ch 1fr; gap: 8px; margin: 9px 0 4px; font-size: 12px; }
.pied-echelle { flex-direction: column; text-align: right; }
.pied-signal svg { display: block; width: 100%; height: 60px; border-block: 1px solid var(--filet-pied);
  background-image: linear-gradient(to right, var(--filet-pied) 1px, transparent 1px),
    linear-gradient(to bottom, transparent 49%, var(--filet-pied) 50%, transparent 51%);
  background-size: calc(100% / 6) 100%, 100% 100%; }
.pied-signal path { fill: none; stroke: var(--signal); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pied-heures { padding-left: calc(3ch + 8px); }
.pied-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pied-navigation a { display: table; padding-block: 4px; color: var(--texte-pied); font-size: 16px; line-height: 1.5; }
.pied-signature { display: flex; align-items: center; gap: .26em; border-block: 1px solid var(--filet-pied);
  padding: .28em 0 .33em; font-size: 9.4cqw; font-weight: 700; line-height: .95; letter-spacing: -.065em; }
.pied-signature .marque-signe { flex: none; width: .72em; height: .72em; gap: .07em; }
.pied-signature .marque-signe i { background: var(--blanc); border-radius: .06em; }
.pied-signature .marque-signe i:nth-child(2) { background: var(--signal); }
.pied-nom { white-space: nowrap; }
.pied-bas { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0 32px; }
.pied-bas p { margin: 0; color: var(--texte-pied); font-size: 13px; line-height: 1.5; }
.pied-retour { display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-size: 14px; font-weight: 600; white-space: nowrap; }
.pied-retour span { display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--filet-pied); border-radius: 50%; font-size: 20px; }
.pied-retour:hover span { color: var(--encre); background: var(--signal); }
#workshop-recording, #bloc-build-log { scroll-margin-top: 88px; }

@media (max-width: 700px) {
  .pied-haut { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 32px; }
  .pied-trace { width: 100%; }
  .pied-navigation a { padding-block: 7px; }
  .pied-signature { font-size: 15.8cqw; gap: .22em; padding-block: .4em; }
  .pied-signature .marque-signe { align-self: flex-start; margin-top: .12em; }
  .pied-nom { display: block; }
  .pied-bas { display: grid; grid-template-columns: 1fr auto; gap: 14px 16px; align-items: start; }
  .pied-bas p:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .pied-retour { grid-row: 1; grid-column: 2; }
}

@media (max-width: 980px) {
  .liens { display: none; }
  .ouverture-haut, .section-tete { grid-template-columns: 1fr; gap: 20px; }
  .echelle { height: auto; display: grid; gap: 14px; padding-left: 30px; margin-top: 16px; }
  .echelle::before { left: 8px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .echelon { position: relative; left: auto; transform: none; }
  .echelon a { display: flex; gap: 14px; align-items: baseline; text-align: left; }
  .echelon-montant { min-width: 4.3em; font-size: 26px; }
  .echelon-montant::after { right: auto; left: -29px; top: 50%; transform: translateY(-50%); }
  .echelon-titre { max-width: none; font-size: 15px; }
  .palier { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; padding: 36px 0; }
  .palier-montant, .livrables { grid-column: 1 / -1; }
  .palier-montant { display: flex; align-items: baseline; gap: 16px; }
  .palier .sorte { margin-top: 0; }
  .etapes, .recompenses { grid-template-columns: 1fr; }
  .branche-haut { grid-template-columns: 1fr; gap: 24px; }
  .telephone-haut { grid-template-columns: 1fr; gap: 32px; }
  .qui-grille { grid-template-columns: 1fr; gap: 28px; }
  .atelier-photos .dedans { grid-template-columns: 1fr; }
  .atelier-photos figure:not(.atelier-grande) img { aspect-ratio: 952 / 1090; height: auto; }
  .equipe { grid-template-columns: 1fr; gap: 20px; }
  .telephone-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details .bloc { grid-template-columns: 1fr; gap: 16px; }
  .details .bloc > h2, .details .bloc-corps { grid-column: 1; position: static; }
}
@media (max-width: 640px) {
  :root { --marge: 16px; }
  body { font-size: 16px; }
  .barre .bouton { display: none; }
  .ouverture-marque { font-size: clamp(42px, 13.5vw, 80px); }
  .ouverture .cote h2 { font-size: 20px; }
  .ouverture-bas { margin-top: 32px; }
  .branche { padding: 72px 0 64px; }
  .branchements { grid-template-columns: 1fr; }
  .pieces { grid-template-columns: 1fr; }
  .telephone-ecran { height: 540px; }
  .pieces li { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carte { padding: 14px 12px; }
  .mesures-tete { grid-template-columns: 1fr; gap: 14px; }
  .graphe { padding: 18px 58px 40px 46px; }
  .graphe figcaption { margin-left: -32px; }
  .zone-nom { font-size: 11px; left: calc(100% + 6px); }
  .etiquette-alerte { font-size: 11px; }
  .ouverture-bas span:nth-child(3) { display: none; }
  .section, .nuit { padding: 72px 0; }
  .eclatee .mot { font-size: 11px; max-width: 12ch; }
  .palier { grid-template-columns: 1fr; }
  .palier .montant { font-size: 44px; }
}
