/* Foliocast · accueil animé (T-0978), d'après le prototype v13b validé par Simon. Chargé par index.html et en.html.
   Règle de lecture : le style par défaut est la page finie, en flux normal (sans JavaScript, ou avec « réduire les
   animations ») ; html.c8 (posé par accueil8.js quand le mouvement est permis) ajoute les départs cachés et les salles
   collantes, plus bas que le premier écran ; html.c8j (script lancé) ajoute les gestes (pile de cartes, onglets).
   L'en-tête, seul dans le premier écran, se construit en CSS seul. Animations : transform et opacity seulement. */

/* ---------- Réduire les animations : rien ne bouge sur l'accueil, ni animation ni transition ----------
   Les pièces des écrans de l'appli (.ecran-in) attendent cachées que leur animation les pose (la règle T-0708
   d'accueil6 les posait par une animation de 1 ms, coupée ici) : elles sont posées directement à leur état final,
   sinon l'écran « On lit ton site » reste vide. */
@media (prefers-reduced-motion: reduce) {
  html, html body *, html body *::before, html body *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
  html body .ecran-in .lire-grid figure, html body .ecran-in .pret div, html body .ecran-in .post { opacity: 1; transform: none }
  html body .ecran-in .lire-grid figure div::after, html body .ecran-in .g i.neuf { transform: none }
  html body .ecran-in .lire-bar b { width: 100% }
  html body .ecran-in .mini .vig::after { opacity: 1; transform: none }
  html body .ecran-in .st.v > .pill.att { opacity: 0 }
  html body .ecran-in .st.v > .pill.ok { opacity: 1 }
}

/* ---------- Socle du régime A : départ caché (section en attente, ou élément en attente sur téléphone) ---------- */
html.c8 [data-c8].c8-att .c8-i, html.c8 .c8-i.c8-w { opacity: 0 }
html.c8 [data-c8] .c8-i { will-change: auto }
/* Un mot de titre est un jeton : il tombe d'un bloc. */
[data-c8] h2 .m, .hero .h1-gros .hw { display: inline-block }
/* Un élément qui reçoit le focus clavier se montre aussitôt (T-0708). */
html.c8 [data-c8] .c8-i:focus-within, html.c8 [data-c8] .c8-i:focus { opacity: 1 }

/* ---------- En-tête : construit au chargement, en CSS seul (aucun script avant le premier rendu) ----------
   Surtitre, titre en jetons (mots qui tombent légèrement tournés, sans fondu : le titre reste peint dès la première
   image), texte, boutons, tampon, puis les projets distribués un par un dans le rail. */
@keyframes c8-haut { from { translate: 0 -60px; opacity: 0 } }
@keyframes c8-jeton { from { translate: 0 -.55em; rotate: var(--r, -9deg) } }
@keyframes c8-bas { from { translate: 0 40px; opacity: 0 } }
@keyframes c8-tampon { from { translate: 0 60px; rotate: -6deg; scale: .5; opacity: 0 } }
@keyframes c8-donne { from { translate: var(--dx, 60vw) -30px; rotate: var(--dr, 14deg); scale: .9; opacity: 0 } }
@media (prefers-reduced-motion: no-preference) {
  html .hero .h1-sur { animation: c8-haut .5s cubic-bezier(.2,.8,.2,1) both }
  html .hero .h1-gros .hw { animation: c8-jeton .85s cubic-bezier(.3,1.45,.5,1) both; animation-delay: calc(.25s + var(--i, 0) * .22s) }
  html .hero .h1-gros .hw:nth-child(2n) { --r: 11deg }
  html .hero .sous { animation: c8-bas .55s 1s cubic-bezier(.2,.8,.2,1) both }
  html .hero .ctas { animation: c8-bas .55s 1.15s cubic-bezier(.2,.8,.2,1) both }
  html .hero .note2 { animation: c8-bas .55s 1.25s cubic-bezier(.2,.8,.2,1) both }
  html .hero .pastille { animation: c8-tampon .8s 1.35s cubic-bezier(.3,1.45,.5,1) both }
  html .hero .aide-cimaise { animation: c8-bas .55s 1.5s cubic-bezier(.2,.8,.2,1) both }
  html .hero .rail > .oeuvre { animation: c8-donne .9s cubic-bezier(.3,1.45,.5,1) both; animation-delay: calc(1.55s + var(--k, 0) * .11s) }
  html .hero .rail > .oeuvre:nth-child(1) { --k: 0; --dx: 60vw; --dr: 14deg }
  html .hero .rail > .oeuvre:nth-child(2) { --k: 1; --dx: 100vw; --dr: 16deg }
  html .hero .rail > .oeuvre:nth-child(3) { --k: 2; --dx: 140vw; --dr: 18deg }
  html .hero .rail > .oeuvre:nth-child(4) { --k: 3; --dx: 180vw; --dr: 20deg }
  html .hero .rail > .oeuvre:nth-child(5) { --k: 4; --dx: 220vw; --dr: 22deg }
  html .hero .rail > .oeuvre:nth-child(n+6) { --k: 5; --dx: 260vw; --dr: 24deg }
}

/* ---------- Salles (régime B) : collantes et lues au défilement seulement sous html.c8 ---------- */
.salle8 { position: relative }
.salle8 .s8-colle { padding: clamp(40px, 8vh, 96px) max(var(--g), calc((100% - 1240px) / 2)) }
.s8-cap { font: 500 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--t2); margin: 0 0 12px; white-space: nowrap; min-height: 1.3em }
html.c8 .salle8 { height: var(--c8h, 300vh) }
html.c8 .salle8 > section { height: 100% }
html.c8 .salle8 .s8-colle { position: sticky; top: var(--s8top, 0px); min-height: 100vh; min-height: 100svh; box-sizing: border-box; overflow: hidden; display: grid; align-content: center; padding-block: clamp(14px, 3vh, 40px) }
/* écran plus bas que la scène : elle reste collée par le bas (--s8top négatif, posé par accueil8.js), rien n'est hors d'atteinte */

/* ---------- Salle 03 : Tarifs (le calcul, puis les formules) ---------- */
html.c8 .s8-tarifs { --c8h: 420vh }
.t8-h { font: extra-condensed 800 clamp(40px, min(5.6vw, 9vh), 84px)/.92 var(--f-titre); text-transform: uppercase; margin: 0 0 clamp(12px, 2.6vh, 30px) }
.t8-scene { display: grid; gap: clamp(48px, 8vh, 96px) }
html.c8 .t8-scene { gap: 0 }
html.c8 .t8-scene > * { grid-area: 1 / 1; min-width: 0 }
.t8-tickets { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start }
.t8-ticket { position: relative }
.t8-fente { display: block; height: 14px; border-radius: 7px; background: var(--t1); transform-origin: left }
.t8-sortie { overflow: hidden; margin: -7px 20px 0 }
.t8-papier { background: var(--s1); color: var(--t1); border-radius: 0 0 14px 14px; padding: 22px; box-shadow: 0 14px 30px rgba(18,18,17,.1) }
.t8-fc .t8-papier { background: #121211; color: #F6F4EF }
.t8-papier .t8-k { font: 400 12px/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; opacity: .75; margin: 0 }
.t8-amt { font: extra-condensed 800 clamp(56px, 6.6vw, 96px)/1 var(--f-titre); margin: 8px 0 0; font-variant-numeric: tabular-nums; white-space: nowrap }
.t8-papier small { font-size: 14px; opacity: .8 }
.t8-papier ul { list-style: none; margin: 10px 0 0; padding: 0 }
.t8-papier li { display: flex; justify-content: space-between; font: 400 13px/1.3 var(--f-mono); padding: 8px 0; border-bottom: 1px dashed rgba(246,244,239,.25) }
.t8-papier li::after { content: ""; width: 11px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(2px) rotate(-45deg) }
.t8-tampon { position: absolute; right: -6px; top: -14px; background: var(--acc); color: #121211; font: 500 13px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; border-radius: 99px; padding: 9px 14px; white-space: nowrap }
.t8-tampon-r { display: block; rotate: -8deg }
.t8-barre { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 clamp(14px, 2.4vh, 24px) }
.t8-bascule { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--s1); border-radius: 99px; padding: 4px; transform-origin: left }
.t8-bascule button { position: relative; z-index: 1; border: 0; background: none; font: 600 14px var(--f-texte); color: var(--t1); padding: 9px 18px; border-radius: 99px; cursor: pointer; transition: color .3s }
.t8-bascule button[aria-pressed="true"] { color: var(--bg) }
.t8-bascule em { font: 400 10px var(--f-mono); font-style: normal; opacity: .75; margin-left: 4px }
.t8-bouton { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: var(--t1); transform: translateX(100%); transition: transform .35s cubic-bezier(.3,1.4,.5,1) }
.t8-bascule.m .t8-bouton { transform: none }
html:not(.c8j) .t8-bascule, html:not(.c8j) .t8-paliers { display: none }
.t8-onglets { display: none; gap: 6px }
.t8-onglets button { border: 0; border-radius: 99px; padding: 8px 14px; font: 600 13px var(--f-texte); background: rgba(18,18,17,.07); color: var(--t1); cursor: pointer }
.t8-onglets button[aria-selected="true"] { background: var(--t1); color: var(--bg) }
.t8-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); align-items: center }
.t8-carte { perspective: 1400px; min-width: 0 }
.t8-in { position: relative; transform-style: preserve-3d }
.t8-face, .t8-dos { border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden }
.t8-face { position: relative; background: var(--s1); color: var(--t1); padding: clamp(14px, 2.6vh, 22px) 22px clamp(12px, 2.2vh, 18px); display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 10px); box-shadow: 0 14px 34px rgba(18,18,17,.1) }
.t8-dos { position: absolute; inset: 0; background: #121211 repeating-linear-gradient(45deg, rgba(246,244,239,.06) 0 2px, transparent 2px 14px); display: grid; place-items: center; transform: rotateY(180deg) }
.t8-dos svg { width: 92px; height: auto }
.t8-hi .t8-face { background: #121211; color: #F6F4EF; padding-block: clamp(18px, 3.4vh, 30px) clamp(16px, 3vh, 26px) }
.t8-face h3 { font: extra-condensed 800 40px/.9 var(--f-titre); text-transform: uppercase; margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px }
.t8-off { font: 400 10px/1.2 var(--f-mono); text-transform: none; border: 1px solid currentColor; border-radius: 99px; padding: 4px 8px; opacity: .85 }
.t8-d { font-size: 14px; line-height: 1.35; opacity: .85; margin: 0; min-height: 2.7em }
.t8-prix p { margin: 0 }
.t8-prix .t8-k, .t8-u, .t8-pub { font: 400 11px/1.4 var(--f-mono); letter-spacing: .03em; opacity: .75 }
.t8-prix .t8-k { text-transform: uppercase }
.t8-big { font: extra-condensed 800 clamp(44px, 7vh, 62px)/1 var(--f-titre); font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 2px }
.t8-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; line-height: 1.35 }
.t8-l li { display: grid; grid-template-columns: 18px 1fr; gap: 6px }
.t8-l li::before { content: ""; width: 11px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-top: 4px }
.t8-hi .t8-l a { color: inherit }
.t8-paliers { display: flex; gap: 4px; background: rgba(18,18,17,.07); border-radius: 99px; padding: 3px; width: max-content }
.t8-paliers button { border: 0; background: none; border-radius: 99px; padding: 5px 12px; font: 600 13px var(--f-texte); color: var(--t1); cursor: pointer }
.t8-paliers button[aria-checked="true"] { background: var(--t1); color: var(--bg) }
.t8-act { margin-top: auto; padding-top: 6px }
.t8-go { position: relative; overflow: hidden; display: flex; justify-content: center; width: 100%; box-sizing: border-box; border: 2px solid currentColor; background: transparent; color: inherit; border-radius: 99px; padding: 12px; font: 600 15px var(--f-texte); text-decoration: none }
.t8-go span:last-child { position: relative }
.t8-go-fond { position: absolute; inset: 0; background: var(--acc); transform-origin: left; transform: scaleX(0) }
/* Studio : bouton orange plein, sans bord noir. */
.t8-hi .t8-go { border: 0; padding: 14px; color: #121211; background: var(--acc) }
html.c8 .t8-hi:not(.t8-lit) .t8-go { background: transparent; box-shadow: inset 0 0 0 2px var(--acc) }
.t8-hi .t8-go-fond { transform: none }
.t8-hi .t8-go span:last-child { transition: color .2s }
html.c8 .t8-hi:not(.t8-lit) .t8-go, html.c8 .t8-hi:not(.t8-lit) .t8-go span:last-child { color: #F6F4EF }
.t8-pied { margin-top: clamp(12px, 2.2vh, 24px); display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 4px; align-items: center; font-size: 13px; color: var(--t2) }
.t8-pied > p:not(.pc-lien) { grid-column: 1 }
.t8-pied .pc-lien { grid-column: 2; grid-row: 1 / span 3 }
.t8-pied p, .t8-pied .pc-offre { margin: 0 }
.t8-pied .pc-offre { font-size: inherit; line-height: 1.45; color: var(--t2) }
.t8-pied .pc-lien { margin: 0 }
.t8-pied .pc-lien span { font-size: 12px }
/* T-0927 (un seul aplat orange par écran) : le bouton orange de l’écran des prix est celui de Studio ; « Voir les tarifs » passe en encre (filet). */
.t8-pied .pc-lien .btn-acc { background: transparent; color: var(--t1); box-shadow: inset 0 0 0 1px var(--t1) }
.t8-pied .pc-lien .btn-acc:hover { background: var(--s2) }
.t8-libre b { font: extra-condensed 800 22px var(--f-titre); text-transform: uppercase; color: var(--t1); margin-right: 6px }
.t8-pied .pc-lien { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: 12px }
/* Téléphone : tickets l'un sous l'autre ; cartes en pile (avec le script), onglets et glissement du doigt. */
@media (max-width: 759px) {
  .t8-tickets { grid-template-columns: 1fr; gap: 26px }
  .t8-amt { font-size: 56px }
  .t8-papier { padding: 14px }
  .t8-papier li { font-size: 11px; padding: 5px 0 }
  .t8-cartes { grid-template-columns: 1fr }
  html.c8j .t8-onglets { display: flex }
  html.c8j .t8-cartes { padding-inline: 20px }
  html.c8j .t8-carte { grid-area: 1 / 1; perspective: 2600px; transition: translate .5s cubic-bezier(.3,1.4,.5,1), rotate .5s cubic-bezier(.3,1.4,.5,1), scale .5s cubic-bezier(.3,1.4,.5,1) }
  html.c8j .t8-carte[data-rang="0"] { z-index: 3 }
  html.c8j .t8-carte[data-rang="1"] { z-index: 2; translate: 26px 10px; rotate: 5deg; scale: .93 }
  html.c8j .t8-carte[data-rang="2"] { z-index: 1; translate: -26px 10px; rotate: -5deg; scale: .93 }
  html.c8j .t8-carte:not([data-rang="0"]) .t8-face { pointer-events: none }
  .t8-face { padding: 18px }
  .t8-big { font-size: 54px }
  .t8-h { font-size: 40px }
  .t8-pied { font-size: 11px; grid-template-columns: 1fr }
  .t8-bascule em { display: none }
  html.c8 .salle8 .s8-colle { align-content: start; padding-top: max(14px, calc((100svh - 800px) / 2)) }
  .t8-pied .pc-lien { grid-column: 1; grid-row: auto; align-items: flex-start; text-align: left }
}

/* ---------- Couvertures rendues par le moteur (grille de la scène, métiers) ---------- */
.cov.cov8 { padding: 0; overflow: hidden; background: #121211 }
.cov.cov8::before, .cov.cov8::after { content: none; display: none }
.cov.cov8 .covimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
.cell > .cov.cov8 { position: absolute; inset: 0 }

/* ---------- Écran charte : affiches du moteur v6 et charte elle-même, un écran de haut ---------- */
@font-face { font-family: 'C8 Anton'; src: url(/assets/fonts/anton-latin-400-normal.woff2) format('woff2'); font-display: swap }
@font-face { font-family: 'C8 Cormorant'; src: url(/assets/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap }
@font-face { font-family: 'C8 Grotesk'; src: url(/assets/fonts/space-grotesk-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap }
@font-face { font-family: 'C8 Inter'; src: url(/assets/fonts/inter-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap }
.accrochage.ac8 { height: auto; min-height: 100vh; min-height: 100svh; position: relative; overflow: hidden; display: grid; place-items: center; padding: 72px var(--g) }
.ac8-txt { position: relative; z-index: 3; display: grid; justify-items: center; gap: 22px; text-align: center }
.ac8 .chartes { position: static; transform: none; left: auto; bottom: auto }
.ac8 p.leg { position: static; margin: 0 }
.ac8-mur { position: absolute; inset: 0; pointer-events: none }
.aff8 { position: absolute; aspect-ratio: 9 / 16; z-index: 1 }
.aff8-f { width: 100%; height: 100%; rotate: var(--r, 0deg) }
.aff8-c { position: relative; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; box-shadow: 0 14px 30px rgba(18,18,17,.14) }
.aff8 img, .aff8-n { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
.aff8-n { overflow: hidden }
.ch8 { position: absolute; z-index: 2; background: #fff; color: #121211; border-radius: 10px; padding: 12px 14px; box-shadow: 0 12px 28px rgba(18,18,17,.1) }
.ch8-k { display: block; font: 400 10px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #5d5a53; margin-bottom: 8px }
.ac8 .ch8-v { display: none }
.ac8[data-charte="encre"] .ch8-v[data-ch="encre"], .ac8[data-charte="brume"] .ch8-v[data-ch="brume"], .ac8[data-charte="kobalt"] .ch8-v[data-ch="kobalt"] { display: block }
.ch8-sw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px }
.ch8-sw i { display: block; aspect-ratio: 1; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(18,18,17,.12) }
.ch8-sw em { display: block; font: 500 11px var(--f-texte); font-style: normal; margin-top: 6px }
.ch8-sw small { display: block; font: 400 9px var(--f-mono); color: #5d5a53 }
.ch8-aa { display: block; font-size: clamp(36px, 4.2vw, 80px); line-height: 1 }
.ch8-fn, .ch8-fx { display: block; font: 400 12px/1.35 var(--f-texte); color: #3a3833; margin-top: 4px }
.ch8-t-encre { font-family: 'C8 Anton', Impact, sans-serif; font-weight: 400 }
.ch8-t-brume { font-family: 'C8 Cormorant', Georgia, serif; font-weight: 600 }
.ch8-t-kobalt { font-family: 'C8 Grotesk', sans-serif; font-weight: 700 }
.ch8-x-encre { font-family: var(--f-texte) }
.ch8-x-brume, .ch8-x-kobalt { font-family: 'C8 Inter', sans-serif }
.ch8-logo .ch8-v { aspect-ratio: 4 / 3 }
.ch8-lg { height: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; font-size: clamp(16px, 1.8vw, 34px); white-space: nowrap; font-weight: inherit }
.ch8-lg.ch8-t-encre, .ch8-lg.ch8-t-kobalt { text-transform: uppercase }
.ch8-lg i { width: .55em; height: .55em; border-radius: 50%; display: inline-block; flex: none }
.ch8-mp { aspect-ratio: 4 / 3; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 6px }
.ch8-mp b { font-size: clamp(16px, 1.5vw, 28px); line-height: 1; text-transform: uppercase }
.ch8-mp-brume { align-items: center; justify-content: center; text-align: center }
.ch8-mp-brume b { text-transform: lowercase }
.ch8-mp-kobalt { justify-content: flex-end }
.ch8-mp i { display: block; height: 6px; border-radius: 3px; opacity: .85; width: 45% }
.ch8-mp i + i { width: 28% }
/* places (ordinateur) : quatre affiches de chaque côté, les cartes dans les vides autour du titre */
.aff8:nth-child(1) { left: 2%; top: 4%; width: 9vw; --r: -3deg }
.aff8:nth-child(2) { left: 12.5%; top: 11%; width: 7.5vw; --r: 2deg }
.aff8:nth-child(3) { left: 3%; top: 50%; width: 8.5vw; --r: 2deg }
.aff8:nth-child(4) { left: 14.5%; top: 57%; width: 7vw; --r: -2deg }
.aff8:nth-child(5) { left: 89%; top: 5%; width: 9vw; --r: 3deg }
.aff8:nth-child(6) { left: 79.5%; top: 11%; width: 7.5vw; --r: -2deg }
.aff8:nth-child(7) { left: 88.5%; top: 51%; width: 8.5vw; --r: -2deg }
.aff8:nth-child(8) { left: 78.5%; top: 57%; width: 7vw; --r: 2deg }
.ch8-pal { left: 26%; top: 7%; width: 14vw }
.ch8-logo { left: 60.5%; top: 6%; width: 12vw }
.ch8-pol { left: 24%; top: 66%; width: 11vw }
.ch8-mise { left: 65%; top: 66%; width: 11vw }
/* le titre et ses boutons au-dessus des pièces */
.ac8 h2 { position: relative; z-index: 3 }
/* flottement lent et suivi de la souris (profondeur différente par pièce) ; rien sous « réduire les animations » */
@keyframes c8-flot { from { translate: 0 -5px } to { translate: 0 7px } }
html.c8 .aff8-f, html.c8 .ch8 { animation: c8-flot var(--fd, 6s) ease-in-out var(--fl, 0s) infinite alternate; transform: translate(calc(var(--mx, 0) * var(--d, 1) * 1px), calc(var(--my, 0) * var(--d, 1) * 1px)); transition: transform .5s cubic-bezier(.2,.8,.2,1) }
html.c8-pause .aff8-f, html.c8-pause .ch8 { animation-play-state: paused }
.aff8:nth-child(3n) .aff8-f, .ch8:nth-child(3n) { --fd: 7.2s; --fl: -2.1s; --d: .6 }
.aff8:nth-child(3n+1) .aff8-f, .ch8:nth-child(3n+1) { --fd: 5.4s; --fl: -.8s; --d: 1.1 }
.aff8:nth-child(3n+2) .aff8-f, .ch8:nth-child(3n+2) { --fd: 6.3s; --fl: -3.4s; --d: .85 }
@media (max-width: 859px) {
  .aff8:nth-child(n+5) { display: none }
  .aff8:nth-child(1) { left: 2%; top: 3%; width: 22vw }
  .aff8:nth-child(2) { left: 76%; top: 3%; width: 22vw; --r: 3deg }
  .aff8:nth-child(3) { left: 3%; top: 64%; width: 21vw }
  .aff8:nth-child(4) { left: 76%; top: 64%; width: 21vw }
  .ch8 { padding: 8px 10px }
  .ch8-pal { left: 27%; top: 4%; width: 46vw }
  .ch8-pol { left: 26%; top: 64%; width: 22vw }
  .ch8-logo { left: 50%; top: 64%; width: 24vw; z-index: 3 }
  .ch8-mise, .ch8-sw small { display: none }
  .ch8-lg { font-size: 12px; gap: 4px }
  .ch8-aa { font-size: 30px }
  /* la phrase sous les boutons passe sur deux lignes (en) : les pièces du bas se calent au bas de la salle, pas à 64 % */
  .aff8:nth-child(3), .aff8:nth-child(4), .ch8-pol, .ch8-logo { top: auto; bottom: 4% }
}

/* ---------- Preuves : une icône par chiffre ---------- */
.faits .ico8 { display: block; width: 44px; height: 44px; margin-bottom: 8px; fill: none; stroke: var(--t1); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
.faits .ico8 .acc { stroke: var(--acc) }

/* ---------- Questions : cinq en vue, les autres derrière « Plus de questions » ---------- */
.faq-plus > summary { font-weight: 600 }
.faq-plus-in { padding: 0 0 0 4px }

/* ---------- Comparatif en miroir (6 étapes pour toi contre 1) ---------- */
.duel8 { width: min(1160px, 100%); margin-top: 26px; font-family: var(--f-texte) }
.d8-tete { display: grid; grid-template-columns: 1fr 230px 1fr; align-items: stretch; margin-bottom: 10px }
.d8-c { border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px }
.d8-cg { background: #ECE8E0; color: #5d5a53 }
.d8-cd { background: #F3DCC6; color: #121211; box-shadow: 0 18px 40px rgba(200,96,31,.18) }
.d8-k { font: 400 11px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; min-height: clamp(18px, 1.4vw, 24px); display: flex; align-items: center }
.d8-c b { font: extra-condensed 800 clamp(26px, 2.4vw, 40px)/1 var(--f-titre); text-transform: uppercase }
.d8-c b span { display: inline-block; font-variant-numeric: tabular-nums }
.d8-nr { color: #E04A1C }
.d8-c small { font: 400 13px/1.35 var(--f-texte); opacity: .85 }
.d8-logo img { height: clamp(18px, 1.4vw, 24px); width: auto; display: block }
.d8-logo .fonce { display: none }
.d8-vs { align-self: center; justify-self: center; width: 72px; height: 72px; border-radius: 50%; background: var(--acc); color: #121211; display: grid; place-items: center; font: extra-condensed 800 26px var(--f-titre); box-shadow: 0 10px 24px rgba(255,91,46,.35) }
.d8-l { display: grid; grid-template-columns: 1fr 230px 1fr; align-items: center; border-top: 1px solid rgba(18,18,17,.12) }
.d8-g, .d8-d { position: relative; display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.3; padding: 8px 16px; border-radius: 10px }
.d8-g::before, .d8-d::before { content: ""; position: absolute; inset: 0; border-radius: 10px; opacity: 0; transition: opacity .45s cubic-bezier(.2,.8,.2,1) }
.d8-g::before { background: #ECE8E0 }
.d8-d::before { background: #F3DCC6 }
.d8-g > *, .d8-d > * { position: relative }
.d8-g { justify-content: flex-end; text-align: right; color: #3a3833 }
.d8-d { color: #9a958b }
.d8-passe .d8-g::before, .d8-passe .d8-d::before, .d8-der .d8-d::before { opacity: 1 }
.d8-passe .d8-d, .d8-der .d8-d { color: #121211; font-weight: 600 }
.d8-toi { font: 500 12px/1.2 var(--f-mono); border: 1.5px solid currentColor; border-radius: 99px; padding: 3px 9px; white-space: nowrap }
.d8-g .d8-toi { color: #5d5a53; border-color: #b8b2a6 }
.d8-der .d8-d .d8-toi { color: #E04A1C }
.d8-m { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font: 600 13px/1.25 var(--f-texte); color: var(--t1); padding: 6px 8px }
.d8-m svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
.d8-sigle { height: 20px; width: auto; color: #121211; flex: none }
html.c8 .duel8:not(.d8-in) .d8-vs { opacity: 0; scale: .3 }
.compare .comp-lien { margin-top: 14px }
@media (min-width: 1100px) {
  .compare[data-c8] { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); column-gap: 48px; align-items: start; max-width: 1400px; padding-block: clamp(28px, 6vh, 64px) clamp(24px, 4vh, 48px) }
  .compare[data-c8] #compTitre { grid-column: 1; grid-row: 1 / span 3; font-size: clamp(40px, 3.6vw, 64px) }
  .compare[data-c8] .duel8 { grid-column: 2; margin-top: 0 }
  .compare[data-c8] .comp-lien { grid-column: 2 }
}
@media (max-width: 760px) {
  .d8-tete { grid-template-columns: 1fr 46px 1fr }
  .d8-vs { width: 40px; height: 40px; font-size: 15px }
  .d8-c { padding: 10px }
  .d8-c b { font-size: 20px }
  .d8-c small { font-size: 10px }
  .d8-l { grid-template-columns: 1fr 1fr; grid-template-areas: "m m" "g d" }
  .d8-m { grid-area: m; flex-direction: row; padding: 4px 0 }
  .d8-g { grid-area: g; font-size: 12px; padding: 6px 8px }
  .d8-d { grid-area: d; font-size: 12px; padding: 6px 8px }
}

/* ---------- Inscription : texte à gauche, formulaire à droite (le vrai formulaire #signup) ---------- */
.ins8 .s8-cap { color: inherit; opacity: .7 }
@media (min-width: 861px) {
  .inscription.ins8 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 72px); align-items: start; text-align: left; padding: clamp(40px, 9vh, 110px) max(var(--g), calc((100% - 1240px) / 2)) }
  .ins8 > * { grid-column: 1 }
  .ins8 > form, .ins8 > .code-acces, .ins8 > .retour { grid-column: 2 }
  .ins8 > form { grid-row: 1 / span 6; max-width: none }
  .ins8 h2 { margin: 0 0 18px; max-width: 12ch; font-size: clamp(44px, 5.6vw, 96px) }
  .ins8 p { margin: 0 0 18px; max-width: 46ch }
  .ins8 .code-acces { margin: 14px 0 0 }
  .ins8 .form label.case { justify-content: flex-start }
  .ins8 .turnstile { justify-content: flex-start }
}

/* ---------- Salle 01 : un vrai Reel (rendus sur la table, téléphone, piste de montage, puis la vidéo) ---------- */
html.c8 .s8-reel { --c8h: 380vh }
.r8.salle { padding: 0 }
.s8-reel .s8-colle { padding: 0 }
.r8 .direct { padding: clamp(28px, 7vh, 90px) clamp(16px, 4vw, 48px) }
.r8 .direct > div:first-child > p:not(.s8-cap) { margin-bottom: clamp(14px, 2.6vh, 28px) }
.r8 .etapesReel { gap: 6px; max-width: 520px }
.r8 .etapesReel li { background: var(--s1); border: 0; border-radius: 99px; padding: 4px 6px 4px 4px; gap: 12px; color: var(--t1); font-size: 15px }
.r8 .etapesReel li b { width: 30px; height: 30px; border-radius: 50%; background: var(--t1); color: var(--bg); display: grid; place-items: center; flex: none }
.r8 .etapesReel li small { background: var(--bg); border-radius: 99px; padding: 6px 10px }
.r8-tel { position: relative }
.r8-ecrans { display: none }
.r8-tirages { display: none }
.r8-tampon { position: absolute; right: -28px; bottom: 7%; z-index: 6 }
.r8-tampon > span { display: block; background: var(--acc); color: #121211; font: 500 13px/1 var(--f-mono); text-transform: uppercase; border-radius: 99px; padding: 10px 14px; white-space: nowrap; rotate: -6deg }
.r8-piste { display: grid; gap: 14px; min-width: 150px; align-self: center }
.r8-ligne { display: grid; gap: 6px }
.r8-lab { font: 400 10px/1.2 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--t2); min-height: 1.2em }
.r8-barre { height: 26px; border-radius: 6px; background: rgba(18,18,17,.08); position: relative; overflow: hidden; display: flex; gap: 3px }
.r8-clips img { flex: 1; min-width: 0; width: 0; height: 100%; object-fit: cover; transform-origin: bottom; display: block }
.r8-rempli { position: absolute; inset: 0; background: var(--t1); transform-origin: left }
.r8-vague { align-items: center; gap: 2px; padding: 0 4px }
.r8-vague i { flex: 1; height: calc(var(--h) * 1px); background: var(--t1); border-radius: 2px }
.r8-duree { font: extra-condensed 800 40px/1 var(--f-titre); font-variant-numeric: tabular-nums }
@media (min-width: 761px) {
  .r8 .direct { grid-template-columns: minmax(0, 1fr) auto minmax(150px, .42fr) }
}
/* lu au défilement : le téléphone tient dans la hauteur de l'écran, les rendus attendent sur la table */
html.c8 .r8 .direct { align-items: center; height: 100%; box-sizing: border-box; max-width: 1400px; padding-block: clamp(20px, 5vh, 64px) }
html.c8 .r8 .direct h2 { font-size: clamp(44px, min(6vw, 10vh), 104px); margin-bottom: clamp(12px, 2.4vh, 24px) }
html.c8 .r8 .tel { width: auto; height: min(76vh, 660px); height: min(76svh, 660px) }
html.c8 .r8-ecrans { display: block; position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: inherit; pointer-events: none; background: #000 }
html.c8 .r8-ecrans img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0 }
.r8-titre { position: absolute; left: 9%; right: 9%; bottom: 30%; z-index: 2; color: #fff; font: extra-condensed 800 clamp(22px, 2.4vw, 34px)/.9 var(--f-titre); text-transform: uppercase; white-space: pre-line; text-shadow: 0 2px 12px rgba(0,0,0,.4) }
html.c8 .r8-tirages { display: block; position: absolute; left: clamp(16px, 4vw, 48px); bottom: 7%; width: 34vw; height: 15vw; z-index: 7; pointer-events: none }
.r8-tirage { position: absolute; bottom: 0; width: clamp(84px, 10vw, 160px); aspect-ratio: 4 / 5; border: 5px solid #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 24px rgba(18,18,17,.18); background: #fff }
.r8-tirage img { width: 100%; height: 100%; object-fit: cover; display: block }
.r8-tirage:nth-child(1) { left: 0; bottom: 18px }
.r8-tirage:nth-child(2) { left: 24% }
.r8-tirage:nth-child(3) { left: 48%; bottom: 26px }
.r8-tirage:nth-child(4) { left: 70% }
@media (max-width: 760px) {
  html.c8 .r8 .direct { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cap cap" "h h" "tel piste" "e e"; column-gap: 16px; row-gap: 10px; align-content: start; justify-items: stretch; padding: 14px 16px }
  html.c8 .r8 .direct > div:first-child { display: contents }
  html.c8 .r8 .s8-cap { grid-area: cap; margin: 0; white-space: normal; min-height: 2.6em }
  html.c8 .r8 .direct h2 { grid-area: h; font-size: 40px; margin: 0 }
  html.c8 .r8 .direct > div:first-child > p:not(.s8-cap) { display: none }
  html.c8 .r8 .etapesReel { grid-area: e; max-width: none; gap: 4px }
  html.c8 .r8 .etapesReel li { font-size: 12px; padding-block: 2px; gap: 8px }
  html.c8 .r8 .etapesReel li b { width: 22px; height: 22px; font-size: 10px }
  html.c8 .r8 .etapesReel li small { font-size: 10px; padding: 3px 7px }
  html.c8 .r8-tel { grid-area: tel }
  html.c8 .r8 .tel { height: min(46svh, 400px); border-radius: 30px; padding: 6px }
  html.c8 .r8-piste { grid-area: piste; min-width: 0 }
  html.c8 .r8-tirages { left: 16px; right: 16px; width: auto; bottom: 3%; height: 120px }
  .r8-tirage { width: 84px }
  .r8-tampon { right: -12px }
  .r8-tampon > span { font-size: 11px; padding: 7px 10px }
  .r8-duree { font-size: 30px }
  .r8-barre { height: 20px }
}

/* ---------- Salle 02 : une page de portfolio, cinq publications ---------- */
html.c8 .s8-page { --c8h: 300vh }
.p8.pf { max-width: none; padding: 0 }
.s8-page .s8-colle { padding: clamp(28px, 6vh, 80px) max(var(--g), calc((100% - 1240px) / 2)) }
.p8-tete h2 { margin: 0 0 8px }
.p8-tete .pf-lead { margin: 0 0 clamp(12px, 2.4vh, 24px) }
.p8-carte { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, .55fr) auto minmax(170px, .5fr); gap: clamp(14px, 2vw, 30px); align-items: center; background: var(--s1); border-radius: 24px; padding: clamp(14px, 2.4vh, 26px) clamp(14px, 2vw, 30px) }
.p8-carte > * { order: 0 }
.p8-page { margin: 0; background: var(--bg); border-radius: 14px; overflow: hidden; align-self: stretch; min-width: 0 }
.p8-page .pf-lab, .p8-tel .pf-lab { display: none }
.p8-nav { height: 30px; background: #e9e5dc; display: flex; align-items: center; gap: 6px; padding: 0 12px; transform-origin: left }
.p8-nav i { width: 9px; height: 9px; border-radius: 50%; background: #c9c3b6; flex: none }
.p8-url { font: 400 10px/1 var(--f-mono); color: #5d5a53; margin-left: 8px; white-space: nowrap; overflow: hidden }
.p8-page .pf-pc { padding: 12px 16px 16px }
.p8-page h3 { font: 600 clamp(15px, 1.4vw, 20px)/1.2 var(--f-texte); margin: 0 0 4px }
.p8-page .pf-pc > p { font-size: 13px; color: var(--t2); margin: 0 0 10px }
.p8-pg { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 8px }
.p8-pg > img, .p8-paysage { border-radius: 6px; overflow: hidden }
.p8-pg > img { width: 100%; height: 100%; object-fit: cover; display: block }
.p8-pg > img:first-child { grid-row: 1 / span 2; aspect-ratio: 4 / 5 }
.p8-paysage { display: flex; aspect-ratio: 1080 / 450 }
.p8-paysage img { width: 33.334%; height: 100%; object-fit: cover; display: block }
.p8-pg > img:last-child { aspect-ratio: 4 / 5; max-height: 100% }
.p8-vise { outline: 3px solid var(--acc); outline-offset: 2px }
.p8-lien { position: relative; align-self: center; display: grid; justify-items: center; gap: 8px; min-width: 0 }
.p8-lien-in { position: relative; width: 100%; aspect-ratio: 270 / 120; overflow: hidden }
.p8-lien svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible }
.p8-lien path { fill: none; stroke: var(--acc); stroke-width: 3; stroke-dasharray: 8 8; vector-effect: non-scaling-stroke }
.p8-pt { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--t1); offset-path: path("M5 100 C 90 0, 180 0, 265 90"); offset-rotate: 0deg; offset-distance: 0%; opacity: 0 }
html.c8 .p8-pt { animation: c8-lien 2.4s linear infinite; opacity: 1 }
html.c8 .p8-pt:nth-child(3) { animation-delay: -.8s } html.c8 .p8-pt:nth-child(4) { animation-delay: -1.6s }
html.c8-pause .p8-pt { animation-play-state: paused }
@keyframes c8-lien { to { offset-distance: 100% } }
.p8-lien-t { font: 400 10px/1.4 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--t2); text-align: center; max-width: 24ch }
.p8-lien-t::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-right: 6px; vertical-align: 0 }
.p8-tel { width: clamp(220px, 19vw, 272px); aspect-ratio: 272 / 520; max-height: 62vh; max-height: 62svh; background: #0c0c0b; border-radius: 44px; padding: 11px; position: relative; box-shadow: inset 0 0 0 1.5px #55534e, inset 0 0 0 3px #1b1a18, 0 34px 70px rgba(18,18,17,.28), 0 6px 14px rgba(18,18,17,.18); box-sizing: border-box }
.p8-tel::before { content: ""; position: absolute; left: 50%; top: 16px; width: 30%; height: 22px; margin-left: -15%; background: #000; border-radius: 20px; z-index: 3 }
.p8-tel::after { content: ""; position: absolute; right: -4px; top: 24%; width: 4px; height: 12%; border-radius: 0 3px 3px 0; background: #34332f }
.p8-ecran { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #121211; color: #eee; padding: 44px 8px 10px; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px }
.p8-sb { position: absolute; top: 16px; left: 24px; right: 24px; display: flex; justify-content: space-between; font: 600 12px var(--f-texte); color: #f1efe9 }
.p8-sb i { width: 22px; height: 10px; border: 1.5px solid #f1efe9; border-radius: 3px }
.p8-ecran .pf-compte { display: flex; gap: 8px; align-items: center; font-size: 12px }
.p8-ecran .pf-compte i { width: 26px; height: 26px; border-radius: 50%; background: #2a2a2a; flex: none }
.p8-ecran .pf-compte small { display: block; opacity: .6; font-size: 10px }
.p8-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; overflow: hidden; flex: 1; min-height: 0; align-content: start }
.p8-c { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #2a2926; display: block }
.p8-c img { width: 100%; height: 100%; object-fit: cover; display: block }
.p8-c .pf-reel { display: block; position: absolute; inset: 0 }
.p8-c .pf-reel img, .p8-c .pf-reel video { width: 100%; height: 100%; object-fit: cover }
.p8-c .pf-reel svg { position: absolute; right: 6px; top: 6px; width: 16px; height: 16px; fill: #fff }
.p8-ico { position: absolute; right: 5px; top: 5px; width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2 }
.p8-legende { font-size: 11px; line-height: 1.35; color: #ddd; margin: 0; min-height: 3.9em; overflow: hidden }
.p8-fait { font-size: 14px; align-self: center; display: grid; gap: 12px }
.p8-fait h3 { font: 500 11px/1.2 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--t2); margin: 0 0 6px }
.p8-fait ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px }
.p8-fait li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; line-height: 1.3 }
.p8-fait li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--t1); background: var(--t1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23F6F4EF' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat }
html.c8 .p8-fait .pf-fo li:not(.p8-ok)::before { background-color: transparent; background-image: none }
.p8-fait .pf-chiffres { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; border: 0 }
.p8-fait .pf-chiffres li { display: block; font-size: 12px; color: var(--t2) }
.p8-fait .pf-chiffres li::before { content: none }
.p8-fait .pf-chiffres b { display: block; font: extra-condensed 800 clamp(34px, 3.4vw, 54px)/1 var(--f-titre); color: var(--t1); font-variant-numeric: tabular-nums }
.p8-fait .pf-chiffres .pf-long { display: none }
.p8-fait .pf-chiffres .pf-court { display: inline }
.p8 .pf-note { margin: clamp(8px, 1.6vh, 16px) 0 0; font-size: 12px; color: var(--t2) }
html.c8 .p8 .pf-legende { display: none }
@media (max-width: 1099px) { .p8-fait .pf-detail { display: none } .p8-fait .pf-court { display: grid } }
@media (min-width: 1100px) { .p8-fait .pf-court { display: none } }
@media (max-width: 760px) {
  .p8-carte { grid-template-columns: 1fr; padding: 12px }
  /* le lien reste visible entre la page et la grille : un petit arc, sans sa légende */
  .p8-lien { justify-self: center; width: 72px; margin-block: -6px }
  .p8-lien-t { display: none }
  .p8-pt { width: 6px; height: 6px; margin: -3px 0 0 -3px; offset-path: path("M1.3 26.7 C 24 0, 48 0, 70.7 24") }
  .p8-tel { justify-self: center; width: min(240px, 64vw) }
  html.c8 .p8-fait, html.c8 .p8 .pf-lead .pf-long { display: none }
  html.c8 .s8-page .s8-colle { padding: 14px 12px }
  html.c8 .p8-tete h2 { font-size: 34px }
  html.c8 .p8-page .pf-pc > p { display: none }
  html.c8 .p8-pg { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; align-items: end }
  html.c8 .p8-pg > img:first-child { grid-row: auto }
  html.c8 .p8-paysage { grid-column: span 2; order: 3 }
  html.c8 .p8-page .pf-pc { padding: 8px 10px 10px }
  html.c8 .p8-page h3 { font-size: 13px; margin-bottom: 6px }
  html.c8 .p8-tel { max-height: 48svh }
}
.p8-vol { position: absolute; left: 0; top: 0; z-index: 40; transform-origin: 0 0; overflow: hidden; border-radius: 4px; opacity: 0; pointer-events: none; box-shadow: 0 10px 24px rgba(18,18,17,.22) }
.p8-vol img { width: 100%; height: 100%; object-fit: cover; display: block }
.p8-vol svg, .p8-vol .sr-only { display: none }
html.c8 .p8-c { will-change: transform }
/* inscription : les textes atténués le sont par leur couleur (pas par l'opacité, réservée aux constructions) */
.ins8 .s8-cap, .ins8 > p, .ins8 .lab, .ins8 .form label.case, .ins8 .code-acces { opacity: 1 }
.ins8 .s8-cap { color: color-mix(in srgb, currentColor 70%, transparent) }
.ins8 > p, .ins8 .code-acces { color: color-mix(in srgb, currentColor 80%, transparent) }
.ins8 .lab { color: color-mix(in srgb, currentColor 85%, transparent) }
.ins8 .form label.case { color: color-mix(in srgb, currentColor 75%, transparent) }

/* ---------- Une section construite tient dans un écran (1280x720 et plus), sans réduction ni défilement interne ---------- */
@media (min-width: 861px) {
  .reseaux[data-c8] { padding-block: clamp(20px, 5vh, 64px) }
  .reseaux[data-c8] h2 { font-size: clamp(40px, min(6.6vw, 9vh), 110px); margin-bottom: clamp(12px, 2.4vh, 22px) }
  .reseaux[data-c8] .intro { margin-bottom: clamp(14px, 2.6vh, 26px) }
  .reseaux[data-c8] .vitrine { height: min(660px, calc(100svh - 2 * clamp(20px, 5vh, 64px))) }
  .reseaux[data-c8] .cadre-res { max-width: calc((100svh - 260px) * .8) }
  .taches[data-c8] { padding-block: clamp(24px, 6vh, 80px) clamp(16px, 4vh, 56px) }
  .taches[data-c8] h2 { margin-bottom: clamp(14px, 3vh, 40px) }
  .taches[data-c8] .tache { padding-block: clamp(8px, 1.6vh, 18px) }
}

/* ---------- Scènes des salles : hauteurs serrées pour les écrans bas (650 à 720 px) et les tablettes ---------- */
@media (min-width: 761px) {
  html.c8 .p8-tete h2 { font-size: clamp(30px, min(4.6vw, 7.4vh), 72px) }
  html.c8 .p8-tete .pf-lead { font-size: 15px; margin-bottom: clamp(8px, 1.6vh, 18px) }
  html.c8 .p8-tel { max-height: min(62svh, calc(100svh - 250px)) }
  html.c8 .r8 .direct h2 { font-size: clamp(40px, min(5.4vw, 8.4vh), 104px) }
  html.c8 .r8 .etapesReel li { padding-block: 2px }
  html.c8 .r8 .tel { height: min(76svh, 660px, calc(100svh - 60px)) }
}
@media (min-width: 761px) and (max-width: 1099px) {
  html.c8 .r8 .direct > div:first-child > p:not(.s8-cap) { display: none }
}
@media (min-width: 761px) and (max-height: 760px) {
  html.c8 .r8 .direct > div:first-child > p:not(.s8-cap) { font-size: 15px; margin-bottom: 10px }
}
@media (max-width: 760px) {
  html.c8 .t8-barre { flex-wrap: nowrap; gap: 6px; margin-bottom: 10px }
  html.c8 .t8-bascule button { padding: 7px 10px; font-size: 12px }
  html.c8 .t8-onglets button { padding: 7px 9px; font-size: 12px }
  html.c8 .t8-d { display: none }
  html.c8 .t8-l { font-size: 12px; gap: 4px }
  html.c8 .t8-face { padding: 14px; gap: 6px }
  html.c8 .t8-big { font-size: 44px }
  html.c8 .t8-h { font-size: 34px; margin-bottom: 10px }
  html.c8 .t8-pied { font-size: 10px; margin-top: 10px }
  html.c8 .t8-libre b { font-size: 16px }
  html.c8 .t8-pied .pc-lien .btn { padding: 8px 14px; font-size: 13px }
  html.c8 .t8-pied .pc-lien span { display: none }
  html.c8 .p8-tel { max-height: min(48svh, calc(100svh - 330px)) }
  html.c8 .r8 .tel { height: min(46svh, 400px, calc(100svh - 330px)) }
}

/* ---------- Thème sombre : fonds et traits pris dans les couleurs du thème ---------- */
.d8-g { color: var(--t2) }
.d8-passe .d8-g { color: #3a3833 }
.d8-l { border-top-color: var(--line) }
.r8-barre, .t8-onglets button, .t8-paliers { background: color-mix(in srgb, var(--t1) 9%, transparent) }
