/* relaIA v2 : « le témoin voyage ». Charte inchangée (pétrole, témoin orange, encre, brume, papier ; Archivo élargie, Instrument Sans, JetBrains Mono).
   Scènes épinglées au défilement : chaque .scene est haute, son .scene-fixe reste à l'écran, le script donne --p (0 à 1) et data-etape. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --papier: #f2f5f4; --blanc: #ffffff; --encre: #111b1f; --encre-2: #18262b; --gris: #55666a; --gris-clair: #9fb2b0;
  --trait: #d3dcda; --petrol: #0f4c4a; --petrol-clair: #5fb3a9; --petrol-doux: #dcebe8; --brume: #c9d6d3; --temoin: #ff5a36;
  --titre: "Archivo", "Helvetica Neue", Arial, sans-serif; --texte: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1.0625rem/1.6 var(--texte); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--temoin); outline-offset: 3px; border-radius: 6px; }
.cadre { width: min(1180px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--titre); text-wrap: balance; }
p { margin: 0; }

/* en-tête */
.entete { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, color .3s, box-shadow .3s; color: var(--papier); }
.entete.clair { background: rgba(242,245,244,.86); color: var(--encre); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--trait); }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 42px; height: auto; }
.logo .a { stroke: var(--petrol-clair); } .logo .b { stroke: currentColor; } .logo .t { fill: var(--temoin); }
.entete.clair .logo .a { stroke: var(--petrol); }
.mot { font: 850 1.5rem/1 var(--titre); font-stretch: 118%; letter-spacing: -.035em; }
.mot span { color: var(--temoin); }
.nav { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; }
.nav .langue { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; opacity: .9; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--temoin); color: var(--encre); text-decoration: none; font: 600 1rem/1 var(--texte); padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); background: #ff7452; }
.btn.fin { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.nav .btn { padding: 10px 18px; opacity: 1; }
@media (max-width: 900px) { .nav a:not(.btn) { display: none; } }

/* scènes */
.scene { position: relative; }
.scene-fixe { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; }

/* 1. ouverture : le témoin */
.s-temoin { height: 280vh; background: var(--encre); color: var(--papier); }
.s-temoin .scene-fixe { align-content: center; }
.s-temoin .cadre { display: grid; gap: 28px; }
.s-temoin .surtitre { color: var(--petrol-clair); }
.grand-titre { font-weight: 850; font-stretch: 122%; letter-spacing: -.045em; line-height: .9; font-size: clamp(3.2rem, 10.5vw, 9.4rem); }
.grand-titre span { color: var(--temoin); }
.piste { width: 100%; height: auto; overflow: visible; }
.piste .couloir-a { stroke: var(--petrol); }
.piste .couloir-b { stroke: #e9efee; }
.piste .temoin { fill: var(--temoin); filter: drop-shadow(0 0 18px rgba(255,90,54,.55)); }
/* le dessin garde ses proportions (4:1) dans un cadre de même forme ; les noms des coureurs sont du vrai texte,
   posés sur le cadre, pour garder la même taille lisible sur tous les écrans */
.piste-cadre { position: relative; aspect-ratio: 4 / 1; width: min(100%, calc(var(--piste-h, 26vh) * 4)); margin-inline: auto; }
.piste-cadre .piste { display: block; height: 100%; }
.piste-lbl { position: absolute; font: 500 .8rem/1 var(--mono); letter-spacing: .06em; color: #c3d2cf; white-space: nowrap; }
.piste-lbl-a { left: 3.33%; top: calc(75% + 8px); }
.piste-lbl-b { right: 3.33%; bottom: calc(73.33% + 8px); }
.legendes { position: relative; min-height: 3.2em; font-size: clamp(1.15rem, 2.2vw, 1.6rem); max-width: 40ch; }
.legendes p { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; color: #d8e3e1; }
.legendes p.on { opacity: 1; transform: none; }
.legendes b { color: var(--papier); font-weight: 600; }
.indice-defil { display: flex; align-items: center; gap: 12px; color: var(--gris-clair); }
.indice-defil i { width: 1px; height: 38px; background: linear-gradient(var(--gris-clair), transparent); display: block; animation: defile 2s ease-in-out infinite; }
@keyframes defile { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* titres de section */
.tete-section { display: grid; gap: 14px; max-width: 62ch; }
.tete-section .mono { color: var(--petrol); }
.titre-2 { font-weight: 850; font-stretch: 118%; letter-spacing: -.03em; line-height: .98; font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
.chapo { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--gris); max-width: 48ch; }

/* appareils */
.ordi { width: min(760px, 100%); justify-self: center; }
.ordi .ecran { aspect-ratio: 16 / 10; background: #0b1214; border-radius: 18px 18px 6px 6px; padding: 2.2%; box-shadow: 0 40px 80px -40px rgba(17,27,31,.55), inset 0 0 0 1px #2a3a3e; }
.ordi .vue { position: relative; width: 100%; height: 100%; border-radius: 6px; overflow: hidden; background: var(--papier); container-type: inline-size; }
.ordi .socle { height: 14px; width: 114%; margin-left: -7%; background: #c3ccca; border-radius: 0 0 20px 20px; box-shadow: inset 0 3px 0 #dfe6e4, 0 18px 30px -18px rgba(17,27,31,.5); position: relative; }
.ordi .socle::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; margin-left: -8%; background: #aab5b3; border-radius: 0 0 8px 8px; }
.tel { width: min(300px, 70vw); aspect-ratio: 9 / 19.5; border-radius: 46px; background: #0b1214; padding: 12px; box-shadow: 0 40px 80px -40px rgba(17,27,31,.6), inset 0 0 0 1px #2a3a3e; position: relative; }
.tel::before { content: ""; position: absolute; top: 22px; left: 50%; width: 30%; height: 24px; margin-left: -15%; background: #0b1214; border-radius: 999px; z-index: 3; }
.tel .vue { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--papier); container-type: inline-size; }
.etat { position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(.99); transition: opacity .5s, transform .5s; }
.etat.on { opacity: 1; transform: none; }

/* 2. candidatures : l'ordinateur */
.s-dossier { height: 420vh; background: var(--papier); }
.s-dossier .cadre { display: grid; grid-template-columns: .9fr 1.3fr; gap: 56px; align-items: center; }
.etapes-texte { display: grid; gap: 28px; list-style: none; margin: 32px 0 0; padding: 0; }
.etapes-texte li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; opacity: .62; transition: opacity .4s; }
.etapes-texte li.on { opacity: 1; }
.etapes-texte .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 .85rem var(--mono); background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait); }
.etapes-texte li.on .n { background: var(--petrol); color: var(--papier); box-shadow: none; }
.etapes-texte li.vous.on .n { background: var(--temoin); color: var(--encre); }
.etapes-texte h3 { font-size: 1.15rem; font-weight: 750; font-stretch: 108%; }
.etapes-texte p { color: var(--gris); font-size: .98rem; }

/* contenu de l'écran (unités relatives à l'écran) */
.app { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; font-family: var(--texte); color: var(--encre); }
.app-barre { display: flex; align-items: center; justify-content: space-between; padding: 1.6cqw 2.4cqw; border-bottom: 1px solid var(--trait); background: var(--blanc); font-size: 1.5cqw; }
.app-barre b { font: 850 1.9cqw/1 var(--titre); font-stretch: 118%; letter-spacing: -.03em; }
.app-barre b span { color: var(--temoin); }
.app-barre .heure { font-family: var(--mono); color: var(--gris); }
.app-corps { padding: 2.4cqw; display: grid; gap: 1.4cqw; align-content: start; }
.app-titre { font: 750 2.4cqw/1.2 var(--titre); font-stretch: 108%; }
.app-sous { font-size: 1.45cqw; color: var(--gris); }
.annonce { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2cqw; background: var(--blanc); border: 1px solid var(--trait); border-radius: 1.2cqw; padding: 1.5cqw 1.8cqw; }
.annonce b { font-size: 1.7cqw; display: block; }
.annonce span { font-size: 1.35cqw; color: var(--gris); }
.note { font: 600 1.7cqw/1 var(--mono); padding: .9cqw 1.3cqw; border-radius: 99px; background: var(--petrol-doux); color: var(--petrol); }
.note.haute { background: var(--petrol); color: var(--papier); }
.note.basse { background: #eef1f0; color: var(--gris); }
.annonce.retenue { box-shadow: inset .5cqw 0 0 var(--petrol); }
.lettre { background: var(--blanc); border: 1px solid var(--trait); border-radius: 1cqw; padding: 2.6cqw 3.2cqw; display: grid; gap: 1.2cqw; font-size: 1.35cqw; line-height: 1.55; }
.lettre .objet { font-weight: 700; }
.lettre .ligne { height: 1.1cqw; border-radius: 1cqw; background: #e3e9e8; width: calc(var(--l, 100%) * var(--frappe, 1)); transition: width .25s linear; }
.cv { display: grid; grid-template-columns: 1fr 2.2fr; gap: 2cqw; background: var(--blanc); border: 1px solid var(--trait); border-radius: 1cqw; padding: 2.6cqw; }
.cv .gauche { background: var(--petrol); color: var(--papier); border-radius: .8cqw; padding: 2cqw; display: grid; gap: 1cqw; align-content: start; font-size: 1.25cqw; }
.cv .gauche b { font: 850 2.2cqw/1 var(--titre); font-stretch: 112%; }
.cv h4 { margin: 0 0 .6cqw; font: 600 1.15cqw var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--petrol); }
.cv .droite { display: grid; gap: 1.6cqw; font-size: 1.3cqw; }
.cv .poste b { display: block; font-size: 1.5cqw; }
.cv .poste span { color: var(--gris); }
.cv .surligne { background: rgba(255,90,54,.16); border-radius: .4cqw; padding: 0 .4cqw; }
.pret { display: grid; place-items: center; text-align: center; gap: 1.6cqw; height: 100%; }
.pret .coche { width: 9cqw; height: 9cqw; border-radius: 50%; background: var(--petrol); display: grid; place-items: center; }
.pret .coche svg { width: 4.6cqw; }
.dossier-drive { display: flex; gap: 1.6cqw; justify-content: center; }
.fichier { background: var(--blanc); border: 1px solid var(--trait); border-radius: 1cqw; padding: 1.4cqw 2cqw; display: flex; align-items: center; gap: 1cqw; font-size: 1.4cqw; }
.fichier i { width: 2.4cqw; height: 3cqw; border-radius: .4cqw; background: var(--temoin); display: block; }

/* 3. le téléphone */
.s-matin { height: 260vh; background: var(--petrol); color: var(--papier); }
.s-matin .cadre { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.s-matin .tete-section .mono { color: var(--petrol-clair); }
.s-matin .chapo { color: #cfe3df; }
.s-matin .tel { justify-self: center; transform: translateY(calc((1 - var(--p, 0)) * 60px)) rotate(calc((1 - var(--p, 0)) * -4deg)); }
.mail { position: absolute; inset: 0; padding: 18cqw 6cqw 6cqw; display: grid; gap: 4cqw; align-content: start; }
.mail-tete { display: grid; gap: 1.6cqw; }
.mail-tete .de { display: flex; align-items: center; gap: 3cqw; font-size: 4.2cqw; }
.mail-tete .de i { width: 9cqw; height: 9cqw; border-radius: 50%; background: var(--petrol); display: grid; place-items: center; }
.mail-tete .de i::after { content: ""; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--temoin); }
.mail-tete .de small { display: block; color: var(--gris); font-family: var(--mono); font-size: 3.2cqw; }
.mail h4, .mail .mail-titre { margin: 0; font: 750 6.4cqw/1.15 var(--titre); font-stretch: 108%; color: var(--encre); }
.carte-mail { background: var(--blanc); border: 1px solid var(--trait); border-radius: 5cqw; padding: 4.5cqw; display: grid; gap: 2.4cqw; color: var(--encre); }
.carte-mail b { font-size: 4.4cqw; }
.carte-mail span { font-size: 3.6cqw; color: var(--gris); }
.carte-mail .actions { display: flex; gap: 2.4cqw; }
.bouton-mail { font: 600 3.6cqw/1 var(--texte); padding: 3cqw 4cqw; border-radius: 99px; background: var(--petrol-doux); color: var(--petrol); transition: background .3s, color .3s; }
.bouton-mail.principal { background: var(--temoin); color: var(--encre); }
.bouton-mail.fait { background: var(--petrol); color: var(--papier); }
.notif { position: absolute; left: 4cqw; right: 4cqw; top: 13cqw; background: rgba(17,27,31,.92); color: var(--papier); border-radius: 5cqw; padding: 3.6cqw 4cqw; font-size: 3.6cqw; display: flex; gap: 3cqw; align-items: center; transform: translateY(-140%); transition: transform .5s; z-index: 2; }
.notif.on { transform: none; }
.notif i { width: 7cqw; height: 7cqw; border-radius: 1.8cqw; background: var(--petrol); flex: none; display: grid; place-items: center; }
.notif i::after { content: ""; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: var(--temoin); }

/* 4. Suisse romande : photos */
.s-lieu { padding-block: 120px; }
.mosaique { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 48px; height: min(70vh, 640px); }
.mosaique figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; }
.mosaique figure:first-child { grid-row: span 2; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.08 - var(--p, 0) * .08)); transition: transform .2s linear; }
.mosaique figcaption { position: absolute; left: 16px; bottom: 14px; background: rgba(17,27,31,.72); color: var(--papier); padding: 6px 12px; border-radius: 99px; font: 500 .74rem var(--mono); letter-spacing: .06em; }
.promesses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.promesse { border-top: 2px solid var(--encre); padding-top: 16px; display: grid; gap: 8px; }
.promesse h3 { font-size: 1.25rem; font-weight: 750; font-stretch: 108%; }
.promesse p { color: var(--gris); }

/* 5. sites */
.s-sites { height: 300vh; background: var(--encre); color: var(--papier); }
.s-sites .cadre { display: grid; gap: 40px; }
.s-sites .tete-section .mono { color: var(--petrol-clair); }
.s-sites .chapo { color: #c3d2d0; }
.vitrine { position: relative; display: grid; justify-items: center; perspective: 1600px; }
.vitrine .ordi { width: min(820px, 92%); transform: rotateX(calc((1 - var(--p, 0)) * 28deg)) translateY(calc((1 - var(--p, 0)) * 50px)); transform-origin: 50% 100%; }
.vitrine .ordi .vue img, .vitrine .tel .vue img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vitrine .tel { position: absolute; right: 2%; bottom: -6%; width: min(210px, 34vw); transform: translateX(calc((1 - var(--p, 0)) * 160px)); opacity: calc(var(--p, 0) * 1.6); }
.vitrine .tel::before { top: 14px; height: 16px; }
.liens-demo { display: flex; flex-wrap: wrap; gap: 12px; }

/* 6. offres */
.s-offres { padding-block: 120px; }
.offres { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.offre { background: var(--blanc); border-radius: 24px; padding: 36px; display: grid; gap: 16px; align-content: start; box-shadow: inset 0 0 0 1px var(--trait); position: relative; overflow: hidden; }
.offre .photo { margin: -36px -36px 8px; height: 220px; }
.offre .photo img { width: 100%; height: 100%; object-fit: cover; }
.offre h3 { font-size: 1.9rem; font-weight: 850; font-stretch: 116%; letter-spacing: -.02em; }
.offre ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--gris); }
.prix-depuis { display: flex; align-items: baseline; gap: 10px; }
.prix-depuis b { font: 850 2.6rem/1 var(--titre); font-stretch: 118%; letter-spacing: -.03em; }
.prix-depuis span { color: var(--gris); font-size: .95rem; }
.offre .btn { justify-self: start; }
.offre .etiquette { font: 600 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--petrol); }

/* 7. contact */
.s-contact { padding-block: 40px 120px; }
.bandeau-contact { background: var(--petrol); color: var(--papier); border-radius: 28px; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; position: relative; overflow: hidden; }
.bandeau-contact h2 { font-weight: 850; font-stretch: 120%; letter-spacing: -.035em; line-height: .95; font-size: clamp(2.4rem, 6vw, 5rem); }
.bandeau-contact h2 span { color: var(--temoin); }
.bandeau-contact p { color: #cfe3df; max-width: 40ch; }
.bandeau-contact .contact-mail { font: 500 1.2rem var(--mono); user-select: all; }
.bandeau-contact .droite { display: grid; gap: 16px; justify-items: start; }

footer { border-top: 1px solid var(--trait); }
footer .cadre { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-block: 28px 40px; color: var(--gris); font-size: .9rem; }
footer a { color: var(--gris); }

/* téléphone et petits écrans */
@media (max-width: 900px) {
  .s-dossier .cadre, .s-matin .cadre { grid-template-columns: 1fr; gap: 24px; }
  .s-dossier .etapes-texte { margin-top: 16px; gap: 0; }
  .s-dossier .etapes-texte li { display: none; }
  .s-dossier .etapes-texte li.on { display: grid; }
  .s-dossier .tete-section .chapo { display: none; }
  .s-matin .tel { width: min(240px, 60vw); }
  .s-matin .tete-section .chapo { font-size: 1rem; }
  .mosaique { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .mosaique figure { height: 240px; }
  .mosaique figure:first-child { grid-row: auto; }
  .promesses, .offres, .bandeau-contact { grid-template-columns: 1fr; }
  .vitrine .tel { right: 0; }
}

/* mouvement réduit : tout est visible, sans épinglage */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene { height: auto !important; }
  .scene-fixe { position: relative; height: auto; padding-block: 120px; }
  .etat, .legendes p, .notif { transition: none; }
  .indice-defil i { animation: none; }
}

/* ajustements à la hauteur de l'écran (petits portables, fenêtres réduites) */
.scene-fixe { padding-top: 64px; }
.s-temoin .cadre { gap: min(28px, 3vh); }
.grand-titre { font-size: clamp(2.4rem, min(10.5vw, 15vh), 9.4rem); }
.piste-cadre { --piste-h: 26vh; }
.titre-2 { font-size: clamp(1.9rem, min(5.2vw, 8vh), 4.2rem); }
.ordi { max-width: calc((100svh - 150px) * 1.5); }
.tel { max-width: calc((100svh - 130px) / 2.2); }
.vitrine .ordi { max-width: calc((100svh - 330px) * 1.55); }
@media (max-height: 640px) {
  .s-dossier .etapes-texte { gap: 10px; margin-top: 14px; }
  .s-dossier .etapes-texte p, .s-dossier .chapo, .s-sites .chapo { display: none; }
  .indice-defil { display: none; }
}

/* corrections de la revue du 15.10 */
.s-dossier .titre-2 { font-size: clamp(1.9rem, min(4vw, 7vh), 3.4rem); }
.app-barre { font-size: 1.7cqw; padding: 1.8cqw 2.6cqw; }
.app-barre b { font-size: 2.2cqw; }
.app-titre { font-size: 2.9cqw; }
.app-sous { font-size: 1.7cqw; }
.annonce b { font-size: 2cqw; } .annonce span { font-size: 1.6cqw; } .note { font-size: 1.9cqw; }
.objectif { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2cqw; font-size: 1.6cqw; color: var(--gris); margin-top: .6cqw; }
.objectif .barre { height: 1cqw; border-radius: 1cqw; background: #e3e9e8; overflow: hidden; }
.objectif .barre i { display: block; height: 100%; width: 66%; background: var(--petrol); border-radius: 1cqw; }
.mono-app { font-family: var(--mono); color: var(--encre); }
.lettre { font-size: 1.7cqw; padding: 3cqw 3.6cqw; gap: 1.4cqw; }
.texte-lettre { display: grid; gap: 1.2cqw; clip-path: inset(0 0 calc((1 - var(--frappe, 1)) * 100%) 0); }
.cv { padding: 3cqw; } .cv .gauche { font-size: 1.6cqw; padding: 2.4cqw; } .cv .gauche b { font-size: 2.8cqw; }
.cv h4 { font-size: 1.4cqw; } .cv .droite { font-size: 1.65cqw; } .cv .poste b { font-size: 1.9cqw; }
.pret .app-titre { font-size: 3.4cqw; } .fichier { font-size: 1.8cqw; }
.mail { padding-top: 32cqw; }
.suivi-mail { background: var(--petrol); color: var(--papier); border-radius: 5cqw; padding: 4.5cqw; display: grid; gap: 1cqw; font-size: 3.4cqw; }
.suivi-mail b { font: 750 5cqw/1.1 var(--titre); font-stretch: 108%; }
.suivi-mail span:first-child { font-family: var(--mono); font-size: 3cqw; color: var(--petrol-clair); text-transform: uppercase; letter-spacing: .08em; }
.s-sites .scene-fixe { padding-top: 84px; }
.s-sites .cadre { gap: 28px; }
.vitrine .ordi { max-width: calc((100svh - 400px) * 1.55); }
.vitrine .tel { bottom: -2%; }
.s-sites .cadre { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 48px; }
.s-sites .scene-fixe { padding-top: 64px; }
.vitrine .ordi { width: 100%; max-width: calc((100svh - 180px) * 1.5); }
.vitrine .tel { right: -4%; bottom: -10%; width: 32%; max-width: 200px; }
@media (max-width: 900px) { .s-sites .cadre { grid-template-columns: 1fr; gap: 20px; } .vitrine .tel { right: 0; width: 30%; } .vitrine .ordi { max-width: 100%; } }
.offre h3 { line-height: 1.05; }
.prix-depuis { flex-wrap: wrap; }
.prix-depuis b { white-space: nowrap; }
.btn { white-space: nowrap; }
@media (max-width: 600px) { .nav .langue { display: none; } .entete .cadre { padding-block: 12px; } .s-dossier .ordi { width: 108%; margin-left: -4%; } }
.tel .vue, .ordi .vue { color: var(--encre); }
@media (max-width: 900px) {
  .mosaique figure:not(:first-child) { display: none; }
  .mosaique figure:first-child { height: 280px; }
}

/* ===== Pages intérieures ===== */
.nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--temoin); padding-bottom: 4px; }
.lien-fleche { align-self: center; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.page-tete { background: var(--encre); color: var(--papier); padding: 150px 0 90px; position: relative; overflow: hidden; }
.page-tete.petrol { background: var(--petrol); }
.page-tete .cadre { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.page-tete .mono { color: var(--petrol-clair); }
.page-tete h1 { font-weight: 850; font-stretch: 120%; letter-spacing: -.04em; line-height: .92; font-size: clamp(2.6rem, 6.4vw, 5.6rem); margin: 14px 0 22px; }
.page-tete h1 span { color: var(--temoin); }
.page-tete .chapo { color: #cfe3df; margin-bottom: 30px; }
.page-tete .visuel img { border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.page-tete .temoin-deco { position: absolute; right: -60px; top: 90px; width: 360px; opacity: .14; pointer-events: none; }
.bloc { padding-block: 100px; }
.bloc.blanc { background: var(--blanc); }
.bloc + .bloc:not(.blanc) { padding-top: 0; }
.bloc .tete-section { margin-bottom: 48px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.carte { background: var(--blanc); border-radius: 20px; padding: 28px; box-shadow: inset 0 0 0 1px var(--trait); display: grid; gap: 10px; align-content: start; }
.bloc.blanc .carte { background: var(--papier); box-shadow: none; }
.carte h3 { font-size: 1.25rem; font-weight: 750; font-stretch: 108%; }
.carte p { color: var(--gris); }
.carte .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--petrol-doux); display: grid; place-items: center; }
.carte .ico i { width: 14px; height: 14px; border-radius: 50%; background: var(--temoin); display: block; }
.suite { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.suite li { counter-increment: s; border-top: 3px solid var(--petrol); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.suite li::before { content: counter(s); font: 850 2.2rem/1 var(--titre); font-stretch: 118%; color: var(--petrol); }
.suite li.vous { border-color: var(--temoin); } .suite li.vous::before { color: var(--temoin); }
.suite .qui { font: 500 .8rem var(--mono); letter-spacing: .06em; color: var(--gris); } /* noms des coureurs : « relaIA » garde sa casse */
.suite h3 { font-size: 1.15rem; font-weight: 750; font-stretch: 108%; }
.suite p { color: var(--gris); font-size: .97rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.duo img { border-radius: 22px; }
.liste-coches { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.liste-coches li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.liste-coches li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--petrol) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23f2f5f4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.encadre { background: var(--petrol-doux); border-left: 4px solid var(--temoin); border-radius: 10px; padding: 18px 22px; }
.encadre.sombre-txt { background: rgba(255,255,255,.06); color: #d8e3e1; }

/* formules */
.formules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.formules.deux { grid-template-columns: repeat(2, 1fr); }
.formule { background: var(--blanc); border-radius: 22px; padding: 30px; box-shadow: inset 0 0 0 1px var(--trait); display: grid; gap: 14px; align-content: start; position: relative; }
.formule.vedette { box-shadow: inset 0 0 0 2px var(--petrol); }
.formule .badge { position: absolute; top: -12px; left: 26px; background: var(--temoin); color: var(--encre); font: 600 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.formule h3 { font-size: 1.45rem; font-weight: 850; font-stretch: 112%; }
.formule .pour { color: var(--gris); font-size: .95rem; }
.formule .montant { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.formule .montant b { font: 850 3rem/1 var(--titre); font-stretch: 118%; letter-spacing: -.03em; }
.formule .montant s { color: var(--gris); font-size: 1.05rem; }
.formule .montant span { color: var(--gris); font-size: .9rem; }
.formule ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.formule .btn { justify-self: start; margin-top: 6px; }
.options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.options div { border-top: 2px solid var(--trait); padding-top: 12px; display: grid; gap: 6px; align-content: start; }
.options h3 { font-size: 1rem; font-weight: 700; }
.options p { color: var(--gris); font-size: .93rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--blanc); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--trait); padding: 4px 22px; }
.bloc.blanc .faq details { background: var(--papier); box-shadow: none; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--temoin); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--gris); }

/* commande */
.commande { display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: start; }
.etape-cmd { background: var(--blanc); border-radius: 22px; padding: 28px; box-shadow: inset 0 0 0 1px var(--trait); margin-bottom: 18px; display: grid; gap: 16px; }
.etape-cmd h2 { font-size: 1.35rem; font-weight: 850; font-stretch: 112%; display: flex; gap: 12px; align-items: center; }
.etape-cmd h2 i { font: 600 .85rem var(--mono); font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol); color: var(--papier); }
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.choix label { position: relative; display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--trait); cursor: pointer; background: var(--papier); transition: box-shadow .2s, background .2s; }
.choix label:hover { box-shadow: inset 0 0 0 1px var(--petrol); }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--petrol); background: var(--petrol-doux); }
.choix label:has(input:focus-visible) { outline: 2px solid var(--temoin); outline-offset: 2px; }
.choix b { font-size: 1rem; }
.choix span { color: var(--gris); font-size: .88rem; }
.choix .prix-choix { font: 600 .9rem var(--mono); color: var(--encre); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.champ { display: grid; gap: 6px; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-size: .9rem; font-weight: 600; }
.champ input, .champ textarea, .champ select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--trait); background: var(--papier); color: var(--encre); }
.champ textarea { min-height: 110px; resize: vertical; }
.case { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .92rem; color: var(--gris); }
.case input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--petrol); }
.recap { position: sticky; top: 90px; background: var(--encre); color: var(--papier); border-radius: 22px; padding: 28px; display: grid; gap: 16px; }
.recap h2 { font-size: 1.3rem; font-weight: 850; font-stretch: 112%; }
.recap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.recap li { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: #d8e3e1; }
.recap li b { color: var(--papier); font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.recap .total { border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; display: grid; gap: 6px; }
.recap .total div { display: flex; justify-content: space-between; align-items: baseline; }
.recap .total strong { font: 850 1.8rem/1 var(--titre); font-stretch: 118%; }
.recap .note-recap { font-size: .85rem; color: var(--gris-clair); }
.recap .btn { justify-content: center; }
.recap .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.cache { display: none !important; }

/* légal */
.legal { max-width: 74ch; display: grid; gap: 18px; }
.legal h2 { font-size: 1.3rem; font-weight: 750; font-stretch: 108%; margin-top: 12px; }
.legal p, .legal li { color: var(--encre); }
.legal .muted { color: var(--gris); font-size: .92rem; }
.projet { background: #fff4e5; border-left: 4px solid var(--temoin); padding: 14px 18px; border-radius: 8px; }

/* pied de page */
.pied { background: var(--encre); color: #c3d2d0; }
.pied .cadre { color: var(--gris-clair); display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding-block: 64px 32px; }
.pied .mot { color: var(--papier); font-size: 1.8rem; }
.pied-marque p { margin-top: 12px; max-width: 32ch; color: #b9cbc8; }
.pied-liens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pied-liens div { display: grid; gap: 10px; align-content: start; }
.pied-liens b { color: var(--papier); font-weight: 600; }
.pied-liens a { color: #c3d2d0; text-decoration: none; font-size: .95rem; }
.pied-liens a:hover { color: var(--papier); }
.pied-bas { border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px 28px !important; display: flex !important; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--gris-clair); }

@media (max-width: 900px) {
  .page-tete .cadre, .duo, .commande, .pied .cadre { grid-template-columns: 1fr; }
  .grille-3, .grille-4, .suite, .formules, .formules.deux, .options { grid-template-columns: 1fr; }
  .pied-liens { grid-template-columns: 1fr 1fr; }
  .pied-liens div { gap: 0; }
  .pied-liens b { padding-bottom: 6px; }
  .pied-liens a { display: flex; align-items: center; min-height: 44px; }
  .champs { grid-template-columns: 1fr; }
  .recap { position: static; }
  .page-tete { padding-top: 120px; }
}
.bloc + .bloc:not(.blanc) { padding-top: 100px; }
.bloc .titre-2 { font-size: clamp(1.9rem, min(4.2vw, 7vh), 3.4rem); max-width: 22ch; }
.choix.deux-col { grid-template-columns: repeat(2, 1fr); } @media (max-width: 600px) { .choix.deux-col { grid-template-columns: 1fr; } }
.menu-btn { display: none; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 999px; padding: 8px 16px; font: 600 .9rem var(--texte); cursor: pointer; margin-left: auto; }
@media (max-width: 900px) {
  .menu-btn { display: inline-block; min-height: 44px; padding-block: 0; }
  .entete .cadre { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 0 8px; }
  .nav.ouvert { display: flex; }
  .nav.ouvert a:not(.btn) { display: block; font-size: 1.1rem; }
  .entete:has(.nav.ouvert) { background: var(--encre); color: var(--papier); }
}
.nav .langue a { text-decoration: none; opacity: .8; }
.nav .langue a[aria-current] { opacity: 1; box-shadow: inset 0 -2px 0 var(--temoin); }
@media (max-width: 900px) { .nav.ouvert .langue { display: inline; } }


.entete.fonce { background: rgba(17,27,31,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }

/* accueil : message clair dans la scène du témoin, problèmes réglés, méthode */
.s-temoin .grand-titre.long { font-size: clamp(2.3rem, min(5.6vw, 9vh), 5.4rem); max-width: 15ch; line-height: .95; }
.s-temoin .accroche { color: #cfe3df; max-width: 46ch; }
.s-temoin .piste-cadre { --piste-h: 15vh; }
.s-problemes { padding-block: 120px 72px; }
.groupes { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "part entr" "ligne entr"; gap: 20px; align-items: start; }
.g-part { grid-area: part; } .g-entr { grid-area: entr; } .g-ligne { grid-area: ligne; }
.groupe { background: var(--blanc); border-radius: 22px; padding: 28px; box-shadow: inset 0 0 0 1px var(--trait); display: grid; gap: 16px; align-content: start; }
.groupe .mono { color: var(--petrol); }
.groupe ul { list-style: none; margin: 0; padding: 0; display: grid; }
.groupe li { display: grid; gap: 6px; padding-block: 14px; border-top: 1px solid var(--trait); }
.groupe li:first-child { border-top: 0; padding-top: 0; }
.groupe li span { font: 650 1.08rem/1.35 var(--titre); font-stretch: 104%; }
.groupe li a { font-weight: 600; font-size: .95rem; color: var(--petrol); text-underline-offset: 4px; }
.s-methode { padding-block: 24px 120px; }
@media (max-width: 900px) { .groupes { grid-template-columns: 1fr; grid-template-areas: "part" "entr" "ligne"; } .s-problemes { padding-block: 88px 48px; } }
.s-problemes .tete-section, .s-methode .tete-section { margin-bottom: 40px; }
.offres:has(> .offre:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .offres:has(> .offre:nth-child(3)) { grid-template-columns: 1fr; } }
.offre { display: flex; flex-direction: column; }
.offre > .btn { margin-top: auto; align-self: flex-start; }

/* ===== montée en gamme du 17.10 ===== */
/* haut de page : le message à gauche, la pile de tâches à droite, qui passe de « à faire » à « prêt » au défilement */
.heros { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.heros-texte { display: grid; gap: min(22px, 2.6vh); justify-items: start; }
.pile { display: grid; gap: 10px; padding: 20px; border-radius: 24px; background: var(--encre-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 40px 90px -40px rgba(0,0,0,.7); }
.pile-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 4px 6px; }
.pile-tete b { font: 700 1.05rem var(--titre); font-stretch: 108%; color: var(--papier); }
.compte, .statut { display: grid; }
.compte i, .statut i { grid-area: 1 / 1; font-style: normal; transition: opacity .35s; }
.compte { font: 600 .74rem var(--mono); letter-spacing: .04em; color: var(--gris-clair); text-align: right; transition: color .35s; }
.compte .s1, .compte .s2, .statut .s1, .statut .s2 { opacity: 0; }
.tache { position: relative; overflow: hidden; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #1e2f35; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: background .45s; transition-delay: calc(var(--i) * 110ms); }
.tache-case { position: relative; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 2px #4b5f63; transition: background .3s, box-shadow .3s; transition-delay: inherit; }
.tache-case::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--encre); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); transition-delay: inherit; }
.libelle { display: grid; gap: 4px; min-width: 0; }
.libelle b { grid-area: 1 / 1; font: 600 .97rem/1.3 var(--texte); color: #e3ecea; transition: opacity .35s; transition-delay: inherit; }
.libelle .apres { opacity: 0; color: var(--papier); }
.libelle .qui { grid-row: 2; font: 500 .74rem var(--mono); color: var(--gris-clair); }
.statut { padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.06); font: 600 .72rem var(--mono); letter-spacing: .03em; color: var(--gris-clair); white-space: nowrap; transition: background .3s, color .3s; transition-delay: inherit; }
.barre { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--petrol-clair); transform: scaleX(0); transform-origin: left; transition: transform 1s ease, background .3s; transition-delay: inherit; }
.pile-note { justify-self: end; padding: 2px 4px 0; font: 500 .7rem var(--mono); color: #71878a; }
.s-temoin[data-etape="1"] .compte .s0, .s-temoin[data-etape="1"] .statut .s0,
.s-temoin[data-etape="2"] .compte .s0, .s-temoin[data-etape="2"] .statut .s0 { opacity: 0; }
.s-temoin[data-etape="1"] .compte .s1, .s-temoin[data-etape="1"] .statut .s1 { opacity: 1; }
.s-temoin[data-etape="1"] .statut, .s-temoin[data-etape="1"] .compte { color: var(--petrol-clair); }
.s-temoin[data-etape="1"] .barre { transform: scaleX(1); }
.s-temoin[data-etape="2"] .compte .s2, .s-temoin[data-etape="2"] .statut .s2 { opacity: 1; }
.s-temoin[data-etape="2"] .compte { color: var(--temoin); }
.s-temoin[data-etape="2"] .statut { background: var(--temoin); color: var(--encre); }
.s-temoin[data-etape="2"] .tache-case { background: var(--temoin); box-shadow: none; }
.s-temoin[data-etape="2"] .tache-case::after { transform: rotate(45deg) scale(1); }
.s-temoin[data-etape="2"] .libelle .avant { opacity: 0; }
.s-temoin[data-etape="2"] .libelle .apres { opacity: 1; }
.s-temoin[data-etape="2"] .tache { background: #233a40; }
.s-temoin[data-etape="2"] .barre { transform: scaleX(1); background: var(--temoin); }
@media (prefers-reduced-motion: reduce) {
  .compte .s0, .statut .s0, .libelle .avant { opacity: 0; } .compte .s2, .statut .s2, .libelle .apres { opacity: 1; }
  .statut { background: var(--temoin); color: var(--encre); } .compte { color: var(--temoin); }
  .tache-case { background: var(--temoin); box-shadow: none; } .tache-case::after { transform: rotate(45deg) scale(1); }
}
@media (min-width: 1001px) and (max-height: 760px) { .tache:nth-of-type(n+5) { display: none; } }
@media (max-width: 1000px) {
  .heros { grid-template-columns: 1fr; gap: 22px; }
  .pile { padding: 12px; gap: 8px; border-radius: 18px; }
  .pile-tete, .pile-note { display: none; }
  .tache { padding: 11px 12px; gap: 12px; }
  .tache:nth-of-type(n+4) { display: none; }
  .libelle b { font-size: .9rem; }
}
@media (max-width: 1000px) and (max-height: 760px) { .pile { display: none; } }

/* univers : pictogramme devant le nom, une puce discrète devant chaque tâche */
.groupe-tete { display: flex; align-items: center; gap: 12px; }
.groupe-tete .picto { width: 40px; height: 40px; flex: none; color: var(--encre); }
.groupe li { position: relative; padding-left: 22px; }
.groupe li::before { content: ""; position: absolute; left: 0; top: calc(14px + .5em); width: 8px; height: 8px; border-radius: 50%; background: var(--petrol-clair); }
.groupe li:first-child::before { top: .5em; }

/* méthode : bande sombre, les quatre étapes posées sur la piste du témoin */
.s-methode { background: var(--encre); color: var(--papier); padding-block: 110px; }
.s-methode .tete-section .mono { color: var(--petrol-clair); }
.s-methode .titre-2 { color: var(--papier); }
.s-methode .suite { position: relative; padding-top: 34px; }
.s-methode .suite::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 6px; background: var(--petrol); }
.s-methode .suite li { position: relative; border-top: 0; padding-top: 0; }
.s-methode .suite li::before { color: var(--petrol-clair); }
.s-methode .suite li.vous::before { color: var(--temoin); }
.s-methode .suite li.vous::after { content: ""; position: absolute; left: 0; top: -41px; width: 20px; height: 20px; border-radius: 50%; background: var(--temoin); box-shadow: 0 0 18px rgba(255,90,54,.6); }
.s-methode .suite .qui { color: var(--gris-clair); }
.s-methode .suite h3 { color: var(--papier); }
.s-methode .suite p { color: #b9cbc8; }
@media (max-width: 900px) { .s-methode .suite::before { display: none; } .s-methode .suite li.vous::after { display: none; } .s-methode .suite li { border-top: 3px solid var(--petrol); padding-top: 18px; } .s-methode .suite li.vous { border-color: var(--temoin); } }
/* haut de page : respiration sous l'en-tête */
.s-temoin .scene-fixe { padding-top: 92px; }
.heros { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.s-temoin .grand-titre.long { font-size: clamp(2.2rem, min(5.2vw, 8.6vh), 4.9rem); }
@media (max-width: 1000px) {
  .s-temoin .scene-fixe { align-content: start; padding-top: 84px; }
  .s-temoin .surtitre { display: none; }
  .s-temoin .piste-cadre { --piste-h: 10vh; }
  .s-temoin .cadre { gap: 16px; }
  .s-temoin .indice-defil { display: none; }
}
@media (max-width: 1000px) { .heros { grid-template-columns: 1fr; } }

/* ===== téléphone (20.10.2026) : haut de page sans épinglage, tâches animées toutes seules, boutons pleine largeur ===== */
.legendes p { transition-delay: 0s; }
.legendes p.on { transition-delay: .28s; }
@media (max-width: 700px) {
  .s-temoin { height: auto; }
  .s-temoin .scene-fixe { position: relative; height: auto; min-height: 100svh; overflow: visible; align-content: start; padding: 96px 0 44px; }
  .s-temoin .cadre { gap: 26px; }
  .s-temoin .grand-titre.long { font-size: clamp(2.1rem, 9.5vw, 3rem); line-height: .96; max-width: none; }
  .s-temoin .accroche { font-size: 1.06rem; line-height: 1.5; }
  .heros { gap: 26px; }
  .heros-texte { gap: 18px; }
  .s-temoin .pile { display: grid; padding: 14px; gap: 8px; border-radius: 20px; }
  .s-temoin .pile-tete { display: flex; padding: 2px 4px 4px; }
  .s-temoin .pile-tete b { font-size: .98rem; }
  .s-temoin .tache { padding: 12px 13px; gap: 12px; }
  .s-temoin .tache:nth-of-type(n) { display: grid; }
  .s-temoin .libelle b { font-size: .9rem; }
  .s-temoin .statut { padding: 4px 9px; font-size: .68rem; }
  .s-temoin .piste-cadre, .s-temoin .indice-defil { display: none; }
  .s-temoin .legendes { min-height: 3.1em; font-size: 1.12rem; line-height: 1.4; margin-top: -8px; padding-left: 14px; border-left: 3px solid var(--temoin); }
  .s-temoin .legendes p { inset: 0 0 auto 16px; }
  .liens-demo { display: grid; grid-template-columns: 1fr; width: 100%; gap: 12px; }
  .liens-demo .btn { justify-content: center; padding-block: 16px; font-size: 1.02rem; }
  .liens-demo .lien-fleche { justify-self: center; margin-top: 4px; }
  .bandeau-contact .droite { justify-items: stretch; }
  .bandeau-contact .contact-mail { justify-self: start; }
  .s-matin, .s-sites { height: auto; }
  .s-matin .scene-fixe, .s-sites .scene-fixe { position: relative; height: auto; overflow: hidden; overflow-x: clip; overflow-y: visible; align-content: start; padding: 88px 0 72px; }
  .s-sites .cadre { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .legendes { min-height: 0; display: grid; gap: 6px; }
  .legendes p { position: static; opacity: 1; transform: none; }
}

/* ===== Accueil v3 : la signature sur les deux couloirs du logo ===== */
.r-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.r-heros { background: var(--papier); color: var(--encre); padding: clamp(112px, 15vh, 160px) 0 clamp(40px, 6vh, 72px); overflow: clip; position: relative; }
.r-heros .cadre { position: relative; }
.r-titre { margin: 0; display: grid; gap: clamp(10px, 1.6vw, 22px); font: 900 clamp(3.1rem, 10.2vw, 10.5rem)/.86 var(--titre); font-stretch: 122%; letter-spacing: -.045em; }
/* chaque ligne du titre est un couloir : une barre arrondie qui déborde de l'écran */
.r-couloir { position: relative; display: block; width: max-content; padding: .1em .3em .14em; border-radius: 999px; }
.r-a { background: var(--petrol); color: var(--papier); margin-left: -100vw; padding-left: calc(100vw + .3em); }
.r-b { background: var(--encre); color: var(--papier); margin-left: clamp(24px, 14vw, 260px); padding-right: 100vw; margin-right: -100vw; }
.r-mot { position: relative; display: inline-block; }
/* le point final est la place du témoin */
.r-point { display: inline-block; width: .19em; height: .19em; margin-left: .05em; border-radius: 50%; vertical-align: baseline; position: relative; top: -.05em; }
.r-temoin { position: absolute; left: 0; top: 0; width: var(--d, 40px); height: var(--d, 40px); border-radius: 50%; background: var(--temoin); box-shadow: 0 0 0 0 rgba(255,90,54,.0); transform: translate(var(--x, 0), var(--y, 0)); z-index: 2; will-change: transform; pointer-events: none; }
.r-temoin { opacity: 0; } .r-temoin.vu { opacity: 1; }
.r-temoin.pose { box-shadow: 0 0 34px 4px rgba(255,90,54,.45); transition: box-shadow .6s; }
.r-bas { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-top: clamp(32px, 6vh, 64px); }
.r-accroche { margin: 0; max-width: 46ch; font-size: clamp(1.08rem, 1.45vw, 1.35rem); line-height: 1.5; color: #2c3c41; }
.r-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.r-heros .btn.fin { color: var(--encre); }
/* entrée : les couloirs glissent en place, une fois */
.r-pret .r-a { animation: r-gauche .9s cubic-bezier(.2,.8,.2,1) both; }
.r-pret .r-b { animation: r-droite .9s .12s cubic-bezier(.2,.8,.2,1) both; }
.r-pret .r-bas { animation: r-monte .8s .9s ease both; }
@keyframes r-gauche { from { transform: translateX(-28%); } }
@keyframes r-droite { from { transform: translateX(28%); } }
@keyframes r-monte { from { opacity: 0; transform: translateY(14px); } }

/* les trois portes : les automatisations en grand, les sites et les candidatures à côté */
.r-portes { background: var(--papier); padding: clamp(24px, 4vh, 48px) 0 clamp(88px, 12vh, 140px); }
.r-portes .cadre { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto auto; gap: 20px; }
.r-porte { display: grid; gap: 18px; align-content: start; padding: 22px; border-radius: 28px; background: var(--blanc); color: var(--encre); text-decoration: none; box-shadow: inset 0 0 0 1px var(--trait); transition: box-shadow .25s, transform .25s; }
.r-porte:hover, .r-porte:focus-visible { box-shadow: inset 0 0 0 2px var(--encre); transform: translateY(-2px); }
.r-porte h2 { margin: 0; font: 800 clamp(1.5rem, 2.3vw, 2.2rem)/1.02 var(--titre); font-stretch: 116%; letter-spacing: -.03em; }
.r-porte p { margin: 0; color: #3b4b50; }
.r-texte { display: grid; gap: 10px; }
.r-prix { font: 650 1rem var(--texte); color: var(--petrol) !important; }
.r-entr { grid-row: 1 / span 2; align-content: space-between; gap: 26px; background: var(--encre); color: var(--papier); box-shadow: none; padding: 26px; }
.r-entr p { color: #c9d9d6; } .r-entr .r-prix { color: var(--petrol-clair) !important; }
.r-entr:hover, .r-entr:focus-visible { box-shadow: 0 0 0 2px var(--temoin); }
.r-ecran { margin: 0; border-radius: 10px; overflow: hidden; background: #1d2b30; box-shadow: 0 14px 30px -18px rgba(17,27,31,.5); }
.r-barre { display: flex; gap: 4px; padding: 6px 8px; background: #24363b; }
.r-barre i { width: 6px; height: 6px; border-radius: 50%; background: #4b6267; }
.r-ecran img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.r-sites, .r-cand { grid-template-columns: 132px minmax(0, 1fr); align-items: center; }
.r-feuille { margin: 0; height: 168px; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(17,27,31,.5), inset 0 0 0 1px var(--trait); transform: rotate(-3deg); background: #fff; }
.r-feuille img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.r-boite { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--petrol-doux); color: var(--encre); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.r-ligne { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 14px 16px; border-radius: 12px; background: var(--blanc); font-size: 1rem; line-height: 1.3; }
.r-ligne b { font-weight: 600; }
.r-ligne em { font-style: normal; color: var(--petrol); font-weight: 600; }
.r-aussi { grid-column: 1 / -1; margin: 8px 0 0; color: #3b4b50; }
.r-aussi a { color: var(--encre); font-weight: 600; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .r-portes .cadre { grid-template-columns: 1fr; }
  .r-entr { grid-row: auto; }
  .r-bas { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .r-heros { padding-top: 104px; }
  .r-titre { font-size: min(11vw, 4.4rem); letter-spacing: -.05em; gap: 8px; }
  .r-b { margin-left: 7vw; }
  .r-actions { display: grid; }
  .r-actions .btn { justify-content: center; padding-block: 16px; }
  .r-sites, .r-cand { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .r-entr { padding: 18px; }
  .r-feuille { height: 124px; }
  .r-boite { padding: 10px; gap: 8px; }
  .r-ligne { display: grid; font-size: .95rem; padding: 12px 13px; }
  .r-porte h2 { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .r-pret .r-a, .r-pret .r-b, .r-pret .r-bas { animation: none; }
}

/* scène « automatisations » : une commande suit le rail d'étape en étape ; le témoin s'arrête devant vous.
   Le script donne --p (0 à 1) et data-etape (0 à 5) ; sans script ou en mouvement réduit, tout est visible. */
.s-auto { height: 340vh; background: var(--petrol-doux); }
.s-auto .cadre { display: grid; gap: clamp(28px, 6vh, 60px); }
.wf-tete { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: end; }
.s-auto .tete-section { max-width: none; }
.s-auto .titre-2 { font-size: clamp(1.9rem, min(4.2vw, 7vh), 3.6rem); max-width: 19ch; }
.wf-cote { display: grid; gap: 18px; justify-items: start; }
.wf-cote .chapo { color: #2c4447; max-width: 46ch; text-wrap: pretty; }
.wf-zone { --a: min(calc(var(--p, 1) * 1.2), 1); position: relative; }
.wf-zone::before, .wf-rail { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; }
.wf-zone::before { background: rgba(15, 76, 74, .18); }
.wf-rail { background: var(--petrol); transform-origin: left center; transform: scaleX(var(--a)); }
.wf-temoin { position: absolute; top: 0; left: calc(var(--a) * (100% - 22px)); width: 22px; height: 22px; border-radius: 50%; background: var(--temoin); box-shadow: 0 0 0 6px rgba(255, 90, 54, .18); }
.wf { list-style: none; margin: 0; padding: 38px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.wf li { background: var(--blanc); border-radius: 18px; padding: 18px; display: grid; gap: 8px; align-content: start; box-shadow: inset 0 0 0 1px var(--trait); transition: opacity .35s ease-out, transform .35s ease-out; }
.wf li .mono { font-size: .75rem; color: var(--petrol); }
.wf li h3 { font-size: 1.15rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.1; }
.wf li p { font-size: .95rem; line-height: 1.4; color: #3b4b50; }
.wf li.wf-vous { background: var(--encre); color: var(--papier); box-shadow: none; }
.wf-vous .mono { color: var(--petrol-clair) !important; }
.wf li.wf-vous p { color: #c9d9d6; }
.wf-btn { justify-self: start; margin-top: 4px; display: inline-grid; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--temoin); color: var(--encre); font: 600 .9rem/1 var(--texte); transition: background .3s, color .3s, box-shadow .3s; }
.wf-btn .apres { display: none; }
.s-auto[data-etape] .wf li { opacity: .36; transform: translateY(8px); }
.s-auto[data-etape="0"] .wf li:nth-child(-n+1), .s-auto[data-etape="1"] .wf li:nth-child(-n+2), .s-auto[data-etape="2"] .wf li:nth-child(-n+3),
.s-auto[data-etape="3"] .wf li:nth-child(-n+4), .s-auto[data-etape="4"] .wf li, .s-auto[data-etape="5"] .wf li { opacity: 1; transform: none; }
.s-auto[data-etape="5"] .wf-btn { background: transparent; color: var(--petrol-clair); box-shadow: inset 0 0 0 1px var(--petrol-clair); }
.s-auto[data-etape="5"] .wf-btn .avant { display: none; }
.s-auto[data-etape="5"] .wf-btn .apres { display: inline; }
@media (max-width: 900px) {
  /* petit écran : la scène n'est pas épinglée, les étapes s'empilent et le rail descend */
  .s-auto { height: auto; }
  .s-auto .scene-fixe { position: static; height: auto; overflow: visible; padding-block: 88px 72px; }
  .wf-tete { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wf { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 40px; gap: 12px; }
  .wf-zone::before, .wf-rail { left: 9px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .wf-rail { transform-origin: center top; transform: scaleY(var(--a)); }
  .wf-temoin { left: 0; top: calc(var(--a) * (100% - 22px)); }
  .s-auto[data-etape] .wf li { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .wf li, .wf-btn { transition: none; } }
