/* Accueil « Constellation » : le logo d'OptiLag (l'anneau ouvert et son point) dessiné par des milliers de petits triangles
   de couleur, sur un canvas fixe sous le texte (site/scene/constellation.js). Il se forme à droite du titre, se défait quand
   on descend et se reforme à la fin de la page. Chaque titre monte mot à mot ; le plan reste épinglé le temps de s'appliquer.
   Sans JavaScript (pas de classe .js), tout est simplement affiché dans l'ordre. */

.constellation { position: fixed; inset: 0 0 auto 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; display: block; pointer-events: none; }
main > section, .pied { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ apparitions */

.mm { display: inline-block; overflow: clip; overflow-clip-margin: 0.04em; padding-top: 0.14em; margin-top: -0.14em; padding-bottom: 0.1em; margin-bottom: -0.1em; vertical-align: top; }
.mi { display: inline-block; }
.js .a-voir .mi { transform: translate3d(0, 112%, 0); transition: transform 1s var(--sortie) calc(var(--i, 0) * 34ms); }
.js .a-voir.vu .mi { transform: none; }
.js .a-voir:not([data-titre]) { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 0.9s var(--ease), transform 1.1s var(--sortie); }
.js .a-voir.vu:not([data-titre]) { opacity: 1; transform: none; }
.tuiles .tuile:nth-child(2) { transition-delay: 0.08s !important; }
.tuiles .tuile:nth-child(3) { transition-delay: 0.16s !important; }
.tuiles .tuile:nth-child(4) { transition-delay: 0.24s !important; }
.offres .offre + .offre { transition-delay: 0.1s !important; }

/* ------------------------------------------------------------------ ouverture */

.ouverture { position: relative; min-height: 100vh; min-height: 100svh; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: calc(var(--entete) + 24px) var(--gutter) 116px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: 0 var(--gutter); }
.ouverture-texte { position: relative; z-index: 3; display: grid; gap: 30px; align-content: center; }
.ouverture .etiquette { margin: 0; }
.ouverture h1 { font-size: clamp(56px, 7.3vw, 104px); line-height: 0.95; letter-spacing: -0.045em; }
/* La phrase anglaise est plus longue : un cran plus petite, elle tient aussi en quatre lignes. */
html[lang="en"] .ouverture h1 { font-size: clamp(48px, 5.5vw, 80px); }
.ouverture-chapo { max-width: 470px; font-size: 19px; line-height: 1.5; color: var(--text); }
.ouverture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.ouverture-note { margin-top: -14px; font-size: 14px; line-height: 1.45; color: var(--text-3); }
.ouverture-anneau { position: relative; z-index: 3; align-self: stretch; min-height: 440px; }
.ouverture-preuves { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 36px; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; color: var(--brume); }
.ouverture-preuves li + li::before { content: "·"; margin-right: 26px; color: #4a4a4a; }

/* « Voir l'appli » : un bouton rond au cœur de l'anneau (le script le pose au centre exact du dessin). */
.voir-appli { position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); transform: translate(-50%, -50%); opacity: var(--forme, 1); display: grid; justify-items: center; gap: 12px; color: var(--text); font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.voir-appli-rond { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); transition: background-color 0.3s, transform 0.6s var(--sortie); }
.voir-appli-rond svg { width: 26px; height: 26px; margin-left: 3px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.voir-appli-texte { color: var(--brume); transition: color 0.2s; }
.voir-appli:hover .voir-appli-rond { background: rgba(255, 255, 255, 0.15); transform: scale(1.07); }
.voir-appli:hover .voir-appli-texte { color: var(--text); }

/* ------------------------------------------------------------------ le plan, épinglé */

.acte { position: relative; }
.acte-scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.plan-acte { height: 250vh; }
.plan-scene { display: flex; align-items: center; padding: var(--entete) 0 var(--gutter); }
.plan-grille { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 28px clamp(32px, 5vw, 88px); align-items: center; }
.plan-texte .etiquette { margin-bottom: 20px; }
.plan-titre-scene { font-size: clamp(38px, 4.3vw, 70px); }
.plan-titre-scene > span { display: block; }
.plan-texte .chapo { margin-top: 24px; max-width: 38ch; }
.plan { border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.plan-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.plan-titre { color: var(--text); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.plan-sous-titre { margin-top: 3px; font-size: 13.5px; color: var(--text-3); }
.plan-buts { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); font-size: 11.5px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; }
.plan-buts span { padding: 6px 11px; border-radius: 999px; color: var(--text-3); }
.plan-buts .actif { background: var(--surface-4); color: var(--text); }
.plan-liste { list-style: none; margin: 0; padding: 4px 0; }
.plan-ligne { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 112px; align-items: center; gap: 14px; padding: 11px 22px; font-size: 15px; line-height: 1.3; }
.plan-ligne + .plan-ligne { border-top: 1px solid var(--line); }
.plan-ligne::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 1.5px; background: var(--iris); transform-origin: 0 50%; transform: scaleX(var(--t, 0)); opacity: 0; transition: opacity 0.3s; }
.plan-ligne[data-etat="cours"]::after { opacity: 1; }
.plan-nom { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-lieu { font-size: 13px; color: var(--text-3); }
.plan-etat { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.025em; color: var(--text-3); text-transform: uppercase; white-space: nowrap; }
.plan-etat::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--surface-4); }
.plan-ligne[data-etat="cours"] .plan-etat { color: var(--text); }
.plan-ligne[data-etat="cours"] .plan-etat::before { width: 11px; height: 11px; background: none; border: 1.5px solid var(--iris-clair); border-right-color: transparent; animation: tourne 0.8s linear infinite; }
.plan-ligne[data-etat="fait"] .plan-etat { color: var(--text); }
.plan-ligne[data-etat="fait"] .plan-etat::before { background: var(--jade); }
.plan-ligne[data-etat="restaure"] .plan-etat { color: var(--text-2); }
.plan-pied { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.plan-resume { flex: 1; min-width: 180px; font-size: 14px; color: var(--text-2); }
.plan-legende { margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--text-3); max-width: 70ch; }

/* ------------------------------------------------------------------ chapitres */

.chapitre { padding: clamp(112px, 20vh, 220px) 0 0; }
.chapitre-tete { max-width: 980px; margin-bottom: clamp(40px, 8vh, 80px); }
.chapitre-tete .chapo { margin-top: 24px; }
.chapitre-tete .chapo a { color: inherit; }
.apercu .titre-1 .accent { display: block; }

/* Les panneaux : de vrais morceaux d'interface, en HTML, nets à toutes les tailles. */
.tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "b c e" "b d d"; gap: 16px; }
.tuile { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); transition: opacity 0.9s var(--ease), transform 1.1s var(--sortie); }
.tuile-b { grid-area: b; }
.tuile-c { grid-area: c; }
.tuile-d { grid-area: d; }
.tuile-e { grid-area: e; }
.tuile-texte { padding: 26px 26px 0; }
.tuile-texte h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; }
.tuile-texte p { margin-top: 8px; max-width: 46ch; font-size: 15.5px; line-height: 1.5; color: var(--text-3); }
.apercu-suite { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 32px; }
.apercu-suite p { font-size: 15.5px; color: var(--text-3); }

/* Ce que les panneaux partagent. */
.p-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border: 0; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: 11.5px; font-weight: 600; letter-spacing: 0.025em; line-height: 1; text-transform: uppercase; white-space: nowrap; transition: background-color 0.2s, color 0.2s, opacity 0.2s; }
.p-btn:hover { background: #fff; color: #000; }
.p-btn:disabled { opacity: 0.55; cursor: default; background: var(--surface-3); color: var(--text); }
.p-btn[data-fait] { background: var(--good-soft); color: var(--jade); }
.p-lien { padding: 4px 0; border: 0; background: none; color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; transition: color 0.2s; }
.p-lien:hover { color: var(--text); }
.p-inter { position: relative; flex: none; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 999px; background: var(--surface-4); transition: background-color 0.25s; }
.p-inter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8b8b91; transition: transform 0.35s var(--sortie), background-color 0.25s; }
.p-inter[aria-checked="true"] { background: var(--iris); }
.p-inter[aria-checked="true"]::after { transform: translate3d(16px, 0, 0); background: #fff; }
.p-ligne { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.25; color: var(--text); }
.p-ligne small, .pm-liste small { display: block; margin-top: 4px; font-size: 13px; color: var(--text-3); }
.p-onglets, .p-pilules { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.p-onglets button, .p-pilules button { padding: 6px 11px; border: 0; border-radius: 999px; background: none; color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.025em; line-height: 1.1; text-transform: uppercase; white-space: nowrap; transition: color 0.2s, background-color 0.2s; }
.p-onglets button:hover, .p-pilules button:hover { color: var(--text); }
.p-onglets [aria-selected="true"], .p-pilules [aria-pressed="true"] { background: var(--surface-4); color: var(--text); }
.p-jauge { height: 3px; border-radius: 3px; background: var(--surface-4); overflow: hidden; }
.p-jauge span { display: block; height: 100%; background: var(--iris); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform 0.2s linear; }
.tuile kbd { display: inline-block; min-width: 20px; margin: 0 1px; padding: 3px 6px; border-radius: 6px; background: var(--surface-3); font: inherit; font-size: 11px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--text); }
.tuile strong { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Le panneau en jeu, au-dessus d'un monde de blocs. */
.pj { position: relative; flex: 1; min-height: 540px; margin-top: 22px; overflow: hidden; background: #05050a; }
.pj-monde { position: absolute; inset: 0; width: 100%; height: 100%; }
.pj-hud { position: absolute; top: 14px; right: 14px; display: flex; gap: 14px; padding: 9px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.74); color: var(--text-2); font-size: 12.5px; line-height: 1.2; white-space: nowrap; transition: opacity 0.3s, transform 0.4s var(--sortie); }
.pj-hud strong { color: var(--text); font-size: 14px; }
.pj-hud span:last-child { color: var(--jade); }
.pj-hud.coupe { opacity: 0; transform: translate3d(0, -8px, 0); }
.pj-fenetre { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 14px 18px 12px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(12, 12, 14, 0.95); transition: opacity 0.3s var(--ease), transform 0.5s var(--sortie), visibility 0.3s; }
.pj-fenetre.ferme { opacity: 0; visibility: hidden; transform: translate3d(0, 18px, 0) scale(0.985); }
.pj-fenetre .p-onglets { margin: 0 0 12px; }
.pj-page { min-height: 248px; }
.pj-page[hidden] { display: none; }
.pj-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0 0 4px; }
.pj-stats > div { padding: 8px 0 10px; }
.pj-stats dt { font-size: 12.5px; color: var(--text-3); }
.pj-stats dd { margin: 3px 0 0; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pj-stats strong { color: var(--text); font-size: clamp(28px, 2.6vw, 40px); font-weight: 300; letter-spacing: -0.035em; line-height: 1; }
.pj-note { margin-top: 10px; font-size: 13.5px; line-height: 1.4; color: var(--text-3); }
.pj-essai { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pj-essai .p-jauge { width: 100%; }
.pj-essai .pj-note { margin: 0; min-height: 2.8em; }
.pj-essai-ms { margin: 14px 0 0; color: var(--text-2); font-size: 15px; }
.pj-essai-ms strong { color: var(--text); font-size: 76px; font-weight: 300; letter-spacing: -0.05em; line-height: 0.9; }
.pj-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.pj-ouvrir { position: absolute; left: 14px; bottom: 14px; background: rgba(0, 0, 0, 0.74); }
.pj-ouvrir[hidden] { display: none; }
.pj-ouvrir:hover kbd { background: #e4e4e4; color: #000; }

/* Le mode partie : l'état du PC, ligne par ligne. */
.pp { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 20px 26px 22px; }
.pp-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 60px; }
.pp-titre { color: var(--text); font-size: 24px; font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; }
.pp-sous { margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pp-liste { list-style: none; margin: auto 0 0; padding: 0; }
.pp-liste li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.25; color: var(--text-2); }
.pp-val { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13.5px; white-space: nowrap; transition: color 0.3s; }
.pp-val::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--surface-4); transition: background-color 0.3s; }
.pp-liste li.actif .pp-val { color: var(--text); }
.pp-liste li.actif .pp-val::before { background: var(--jade); }

/* Les mods : ce qu'Hypixel autorise, et un interdit qui résiste. */
.pm { flex: 1; display: flex; flex-direction: column; padding: 18px 26px 22px; }
.pm-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.pm-compte { font-size: 13.5px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-liste { list-style: none; margin: 0; padding: 0; }
.pm-liste li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.2; color: var(--text); cursor: pointer; }
.pm-liste small { color: var(--jade); }
.pm-refuse { color: var(--text-3) !important; }
.pm-refuse small { color: var(--bad); }
.pm-refuse .p-inter { background: none; box-shadow: inset 0 0 0 1px var(--surface-4); }
.pm-refuse.secoue .p-inter::after { animation: resiste 0.5s var(--ease); }
@keyframes resiste { 35% { transform: translate3d(12px, 0, 0); } 100% { transform: none; } }
.pm-note { margin-top: auto; padding-top: 12px; min-height: 3.8em; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }

/* Le ping : le direct à gauche, le partage à droite. */
.pg { flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-top: 22px; border-top: 1px solid var(--line); }
.pg-direct { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px 26px 22px; }
.pg-tete { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.pg-valeur { display: flex; align-items: baseline; gap: 8px; color: var(--text-2); font-size: 18px; line-height: 1; }
.pg-valeur strong { color: var(--text); font-size: clamp(60px, 6vw, 100px); font-weight: 300; letter-spacing: -0.05em; line-height: 0.86; }
.pg-etat { margin-left: 6px; padding: 5px 10px; border-radius: 999px; background: var(--good-soft); color: var(--jade); font-size: 11.5px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; }
.pg-etat.pic { background: rgba(255, 79, 174, 0.14); color: var(--rose); }
.pg-courbe { display: block; width: 100%; height: 86px; overflow: visible; }
.pg-courbe polyline { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pg-action { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.pg-action p { font-size: 13.5px; line-height: 1.38; color: var(--text-3); }
.pg-part { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px 26px 22px; border-left: 1px solid var(--line); }
.pg-titre { color: var(--text); font-size: 16px; font-weight: 500; }
.pg-barre { display: flex; gap: 3px; height: 8px; }
.pg-toi, .pg-loin { min-width: 6px; border-radius: 3px; transition: flex-grow 0.7s var(--sortie); }
.pg-toi { flex: var(--toi, 5) 1 0; background: var(--jade); }
.pg-loin { flex: var(--loin, 92) 1 0; background: var(--surface-4); }
.pg-details { display: grid; gap: 0; margin: 0; }
.pg-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.pg-details > div:first-child { border-top: 0; }
.pg-details dt { font-size: 14.5px; line-height: 1.35; color: var(--text-2); }
.pg-details dd { flex: none; margin: 0; font-size: 13px; color: var(--text-2); }
.pg-details strong { color: var(--text); font-size: 30px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.pg-note { margin-top: auto; font-size: 13.5px; line-height: 1.4; color: var(--text-3); }

/* Les jeux : le mur des noms défile tout seul, d'un bord à l'autre de l'écran, un triangle de couleur entre deux noms. */
.mur { margin: 0 calc(50% - 50vw); overflow: clip; }
.js .mur-piste { display: flex; width: max-content; animation: mur-defile 90s linear infinite; }
.js .jeux-liste { flex-wrap: nowrap; padding-right: 26px; }
.js .jeux-liste li { white-space: nowrap; }
@keyframes mur-defile { to { transform: translate3d(-50%, 0, 0); } }
.jeux-liste { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 4px 26px; }
.jeux-liste li { display: inline-flex; align-items: center; gap: 26px; color: var(--text); font-size: clamp(30px, 3.4vw, 56px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.14; }
.jeux-liste li::after { content: ""; flex: none; width: 0.3em; height: 0.3em; background: var(--c, var(--iris)); -webkit-mask: var(--triangle) center / contain no-repeat; mask: var(--triangle) center / contain no-repeat; }
.jeux-liste li:nth-child(5n + 2) { --c: var(--safran); }
.jeux-liste li:nth-child(5n + 3) { --c: var(--jade); }
.jeux-liste li:nth-child(5n + 4) { --c: var(--rose); }
.jeux-liste li:nth-child(5n + 5) { --c: var(--azur); }
.jeux-liste li:nth-child(3n) { color: #5d5d63; }
.jeux-compte { margin-top: 40px; font-size: 17px; line-height: 1.5; max-width: 60ch; color: var(--text-3); }
.jeux-compte strong { color: var(--text); }

/* Sécurité : quatre garanties, chacune marquée d'un triangle. */
.garanties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px var(--gutter); max-width: 1040px; margin: 0; }
.garanties dt { display: flex; align-items: center; gap: 14px; color: var(--text); font-size: 23px; font-weight: 400; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 12px; }
.garanties dt::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--c, var(--iris)); -webkit-mask: var(--triangle) center / contain no-repeat; mask: var(--triangle) center / contain no-repeat; }
.garanties dd { margin: 0; padding-left: 30px; font-size: 16.5px; line-height: 1.55; color: var(--text-3); max-width: 46ch; }

/* ------------------------------------------------------------------ tarifs */

.tarifs-section .chapitre-tete { max-width: 900px; }
.essai-tarifs { margin: 0 0 16px; }
.offres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.offre { display: flex; flex-direction: column; padding: 36px; border-radius: 28px; background: var(--surface); transition: opacity 0.9s var(--ease), transform 1.1s var(--sortie); }
.offre-pro { background: var(--surface-2); }
.offre h3 { font-size: 26px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.offre-desc { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--text-3); min-height: 3em; }
.prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 30px 0 8px; }
.prix strong { color: var(--text); font-size: clamp(64px, 6.4vw, 112px); font-weight: 300; letter-spacing: -0.055em; line-height: 0.9; }
.prix span { color: var(--text-3); font-size: 13.5px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; }
.prix-note { margin-bottom: 26px; font-size: 14.5px; color: var(--text-3); }
.offre .liste-check { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 16px; color: var(--text-2); }
.tarifs-note { margin-top: 28px; color: var(--text-3); font-size: 14.5px; line-height: 1.55; max-width: 80ch; }

/* ------------------------------------------------------------------ questions */

.faq-grille { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 32px var(--gutter); align-items: start; }
.faq-tete { position: sticky; top: calc(var(--entete) + 32px); }
.faq-tete .chapo { margin-top: 18px; color: var(--text-3); }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.5s var(--sortie), content-visibility 0.5s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; color: var(--text); font-size: clamp(18px, 1.3vw, 21px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.3; cursor: pointer; transition: padding-left 0.4s var(--sortie); }
.faq summary:hover { padding-left: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--text-3); transition: transform 0.35s var(--ease), color 0.15s; }
.faq summary:hover .i { color: var(--text); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details > div { padding: 0 48px 24px 0; font-size: 16.5px; line-height: 1.6; color: var(--text-3); }

/* ------------------------------------------------------------------ fin : l'anneau se reforme à droite */

.fin { position: relative; min-height: 100vh; min-height: 100svh; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: var(--entete) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: 0 var(--gutter); }
.fin-texte { grid-column: 1; grid-row: 1; max-width: none; margin: 0; padding: 0; }
.fin-anneau { grid-column: 2; grid-row: 1; align-self: stretch; min-height: 440px; }
.fin .titre-1 { font-size: clamp(44px, 5.4vw, 96px); }
.fin .chapo { margin-top: 24px; }
.fin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 36px; }

/* ------------------------------------------------------------------ écrans moyens */

@media (max-width: 1080px) {
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "b c" "b e" "d d"; }
}

/* ------------------------------------------------------------------ écran en hauteur, tablette, téléphone */

@media (max-width: 960px), (max-aspect-ratio: 1/1) {
  .ouverture { grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: calc(var(--entete) + 4px); padding-bottom: 48px; }
  .ouverture-anneau { order: -1; min-height: 0; height: min(84vw, 44vh); }
  .ouverture-texte { gap: 24px; }
  .ouverture h1 { font-size: clamp(46px, 10.5vw, 84px); }
  html[lang="en"] .ouverture h1 { font-size: clamp(40px, 9.4vw, 68px); }
  .ouverture-preuves { position: static; grid-column: 1; margin-top: 40px; }

  .plan-acte { height: 230vh; }
  .plan-scene { align-items: flex-start; padding: calc(var(--entete) + 12px) 0 var(--gutter); }
  .plan-grille { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .plan-texte .chapo { margin-top: 14px; font-size: 16px; }
  .plan-texte .etiquette { margin-bottom: 12px; }
  .plan-titre-scene { font-size: clamp(30px, 7vw, 48px); }

  .garanties { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faq-grille { grid-template-columns: minmax(0, 1fr); }
  .faq-tete { position: static; }

  .fin { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 0; }
  .fin-anneau { grid-column: 1; grid-row: 1; min-height: 0; height: min(76vw, 40vh); }
  .fin-texte { grid-row: 2; }
}

@media (max-width: 640px) {
  .ouverture-actions .btn { width: 100%; }
  /* Sur téléphone, les quatre garanties en liste, chacune derrière son triangle. */
  .ouverture-preuves { flex-direction: column; gap: 8px; font-size: 14px; }
  .ouverture-preuves li { position: relative; padding-left: 22px; }
  .ouverture-preuves li + li::before { content: none; }
  .ouverture-preuves li::after { content: ""; position: absolute; left: 0; top: 0.4em; width: 11px; height: 11px; background: var(--c, var(--iris)); -webkit-mask: var(--triangle) center / contain no-repeat; mask: var(--triangle) center / contain no-repeat; }
  .ouverture-preuves li:nth-child(2) { --c: var(--safran); }
  .ouverture-preuves li:nth-child(3) { --c: var(--jade); }
  .ouverture-preuves li:nth-child(4) { --c: var(--rose); }
  .plan-tete { flex-wrap: wrap; padding: 12px 16px; }
  .plan-ligne { grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; padding: 9px 16px; font-size: 13.5px; }
  .plan-ligne::after { left: 16px; right: 16px; }
  .plan-lieu { display: none; }
  .plan-nom { white-space: normal; }
  .plan-pied { padding: 12px 16px; }
  .tuiles { grid-template-columns: minmax(0, 1fr); grid-template-areas: "b" "c" "e" "d"; }
  .tuile-texte { padding: 22px 22px 0; }
  .pj { min-height: 500px; }
  .pp, .pm { padding-left: 22px; padding-right: 22px; }
  .pg { grid-template-columns: minmax(0, 1fr); }
  .pg-direct, .pg-part { padding-left: 22px; padding-right: 22px; }
  .pg-part { border-left: 0; border-top: 1px solid var(--line); }
  .pp-tete { flex-direction: column; min-height: 0; }
  .offres { grid-template-columns: minmax(0, 1fr); }
  .offre { padding: 28px 24px; }
  .offre-pro { order: -1; }
  .faq details > div { padding: 0 0 20px; }
  .fin-actions .btn { width: 100%; }
}

/* Écran bas : l'ouverture et le plan se resserrent. */
@media (max-height: 760px) and (min-aspect-ratio: 1/1) {
  .ouverture-texte { gap: 22px; }
  .ouverture h1 { font-size: clamp(48px, 6.2vw, 88px); }
  .plan-texte .chapo { display: none; }
  .plan-ligne { padding-top: 8px; padding-bottom: 8px; }
}

/* Sans JavaScript : le plan redevient une section ordinaire, sans dessin. */
html:not(.js) .acte { height: auto; }
html:not(.js) .acte-scene { position: relative; height: auto; overflow: visible; }
html:not(.js) .constellation { display: none; }
html:not(.js) [data-plan-annuler] { display: none; }

/* « Voir l'appli » : la vraie interface, en démo, par-dessus la page. */
html.demo-ouverte { overflow: hidden; }
.demo { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(10px, 1.3vw, 20px); border: 0; background: #000; color: var(--text); opacity: 0; transform: translate3d(0, 22px, 0) scale(0.985); transition: opacity 0.35s var(--ease), transform 0.6s var(--sortie), display 0.35s allow-discrete, overlay 0.35s allow-discrete; }
.demo[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; opacity: 1; transform: none; }
@starting-style { .demo[open] { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.985); } }
.demo::backdrop { background: transparent; }
.demo-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14.5px; line-height: 1.35; color: var(--text-3); }
.demo-tete strong { margin-right: 10px; color: var(--text); font-size: 12.5px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; }
.demo-cadre { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); background: #0b0b0e; }
.demo-cadre::before { content: attr(data-chargement); position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--text-3); }
.demo-cadre iframe { position: absolute; top: 0; left: 0; display: block; border: 0; transform-origin: 0 0; }
.demo-tourner { display: none; }
@media (max-width: 640px) and (max-aspect-ratio: 1/1) {
  .demo[open] { grid-template-rows: auto minmax(0, 1fr) auto; }
  .demo-tete p strong { display: block; margin: 0 0 2px; }
  .demo-tourner { display: block; padding: 10px 2px 4px; font-size: 14.5px; text-align: left; color: var(--text-3); }
}
