/* The Harness · the-harness.fr
   Une maison-lanterne dans un bois bleu : fond sarcelle de nuit, lumières ambrées, verre de nuit
   pour les panneaux. Titres en Newsreader (hébergée ici), texte dans la police du système.
   Couleurs de sens, comme dans le jeu : menthe agir, ambre attention, rose refus, lavande pensée. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("/fonts/newsreader-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("/fonts/newsreader-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 400; font-display: swap; src: url("/fonts/newsreader-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 400; font-display: swap; src: url("/fonts/newsreader-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --nuit: #0b1e24;
  --nuit-2: #09161c;
  --encre: #141327;
  --creme: #f4efe6;
  --creme-2: #d3ccc1;
  --creme-3: #a49e95;
  --ambre: #ffc77a;
  --miel: #ffd59a;
  --menthe: #7ff7d0;
  --rose: #ff8ca0;
  --lavande: #c2adff;
  --filet: rgba(244, 239, 230, 0.12);
  --filet-fort: rgba(244, 239, 230, 0.22);
  --verre: linear-gradient(180deg, rgba(36, 33, 62, 0.78), rgba(20, 18, 38, 0.84));
  --ombre: 0 40px 90px -40px rgba(2, 4, 12, 0.95);
  --serif: "Newsreader", ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", "Noto Sans", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rayon: 16px;
  --colonne: 76rem;
  --doux: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--nuit); color: var(--creme);
  background-image: radial-gradient(1600px 900px at 50% -10%, rgba(95, 168, 160, 0.08), transparent 70%);
  font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, canvas { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--miel); text-decoration-color: rgba(255, 213, 154, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--miel); }
:focus-visible { outline: 2px solid var(--menthe); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(255, 199, 122, 0.35); color: var(--creme); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--ambre); }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.86em; padding: 0.06em 0.4em; border-radius: 6px; background: rgba(244, 239, 230, 0.08); border: 1px solid var(--filet); }
kbd {
  font: 500 0.78em var(--mono); color: var(--creme); padding: 0.1em 0.5em; border-radius: 6px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.12), rgba(244, 239, 230, 0.04));
  border: 1px solid var(--filet-fort); border-bottom-width: 2px;
}
[hidden] { display: none !important; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.cadre {
  width: 100%; max-width: calc(var(--colonne) + 4rem); margin-inline: auto;
  padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right));
}
@media (min-width: 760px) { .cadre { padding-left: max(2rem, env(safe-area-inset-left)); padding-right: max(2rem, env(safe-area-inset-right)); } }

.evitement { position: absolute; left: -999px; top: 0; }
.evitement:focus { left: 1rem; top: 1rem; z-index: 60; background: var(--encre); padding: 0.6rem 1rem; border-radius: 8px; }

.surtitre { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; font-variant-caps: all-small-caps; letter-spacing: 0.18em; color: var(--ambre); }
.surtitre-rose { color: var(--rose); }
.surtitre-menthe { color: var(--menthe); }
.chapo { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--creme-2); max-width: 40em; }
.note { color: var(--creme-3); font-size: 0.95rem; margin-top: 1.5rem; }
.note-centre { text-align: center; }

.point { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.point-rose { background: var(--rose); box-shadow: 0 0 12px var(--rose); }
.point-ambre { background: var(--ambre); box-shadow: 0 0 12px var(--ambre); }
.point-menthe { background: var(--menthe); box-shadow: 0 0 12px var(--menthe); }

/* ---------- Boutons ---------- */
.bouton {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  text-decoration: none; cursor: pointer; font: 600 1rem/1 var(--sans); color: var(--creme);
  padding: 1rem 1.5rem; border-radius: 999px; background: rgba(20, 18, 38, 0.55); border: 1px solid var(--filet-fort);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--doux), box-shadow 0.4s;
}
.bouton:hover { background: rgba(244, 239, 230, 0.1); border-color: rgba(244, 239, 230, 0.4); transform: translateY(-2px); }
.bouton:active { transform: translateY(0) scale(0.98); }
.bouton-plein { color: #0f221d; background: var(--menthe); border-color: var(--menthe); box-shadow: 0 10px 40px -12px rgba(127, 247, 208, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.bouton-plein:hover { background: #a6fbe0; border-color: #a6fbe0; box-shadow: 0 16px 50px -12px rgba(127, 247, 208, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.bouton.petit { padding: 0.7rem 1.15rem; font-size: 0.92rem; }
.bouton-grand { padding: 1.15rem 1.8rem; font-size: 1.05rem; }
.lecture { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; margin-left: 2px; }
.duree { font-weight: 400; color: var(--creme-3); }

/* ---------- Barre du haut ---------- */
.barre { position: fixed; inset: 0 0 auto 0; z-index: 30; padding-top: env(safe-area-inset-top); border-bottom: 1px solid transparent; transition: background 0.4s, border-color 0.4s; }
.barre.repliee, .barre.ouverte { background: rgba(9, 20, 26, 0.82); border-bottom-color: var(--filet); backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25); }
.barre-cadre { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.marque { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--creme); text-decoration: none; white-space: nowrap; }
.marque img { width: 22px; height: 22px; border-radius: 6px; }
.menu { display: flex; gap: 0.2rem; margin-left: auto; }
.menu a { color: var(--creme-2); text-decoration: none; font-size: 0.92rem; padding: 0.5rem 0.8rem; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.menu a:hover, .menu a[aria-current="true"] { color: var(--creme); background: rgba(244, 239, 230, 0.08); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--filet-fort); background: rgba(20, 18, 38, 0.5); cursor: pointer; position: relative; }
.burger-trait, .burger-trait::before, .burger-trait::after { position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--creme); border-radius: 2px; transition: transform 0.35s var(--doux), opacity 0.2s; content: ""; }
.burger-trait { top: 21px; }
.burger-trait::before { left: 0; top: -6px; }
.burger-trait::after { left: 0; top: 6px; }
.burger[aria-expanded="true"] .burger-trait { background: transparent; }
.burger[aria-expanded="true"] .burger-trait::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-trait::after { transform: translateY(-6px) rotate(-45deg); }
.menu-mobile { display: grid; gap: 0.25rem; padding: 0.5rem max(1.25rem, env(safe-area-inset-left)) 1.5rem; }
.menu-mobile a:not(.bouton) { color: var(--creme); text-decoration: none; font-family: var(--serif); font-size: 1.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--filet); }
.menu-mobile .bouton { margin-top: 1rem; }
@media (max-width: 980px) {
  .menu { display: none; }
  .burger { display: block; }
  .barre-telecharger { margin-left: auto; }
}
@media (max-width: 420px) { .barre-telecharger { display: none; } .burger { margin-left: auto; } }
@media (min-width: 981px) { .menu-mobile { display: none; } }
.progression { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progression span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--ambre), var(--menthe)); box-shadow: 0 0 10px rgba(255, 199, 122, 0.6); }

/* ---------- Ouverture ---------- */
.ouverture { position: relative; isolation: isolate; min-height: min(100svh, 64rem); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: #03060a url("/video/boucle-affiche.jpg") center / cover no-repeat; }
.ouverture-video, .lucioles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.ouverture-video { object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.ouverture-video.prete { opacity: 1; }
.lucioles { z-index: -1; pointer-events: none; mix-blend-mode: screen; }
.ouverture-voile {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, var(--nuit) 0%, rgba(11, 30, 36, 0.6) 26%, rgba(5, 8, 14, 0.2) 58%, rgba(5, 8, 14, 0.55) 100%),
    radial-gradient(ellipse 70% 70% at 25% 70%, rgba(5, 8, 14, 0.6), transparent 70%);
}
.ouverture-grille { display: grid; gap: 3rem; align-items: end; padding-top: 8rem; }
@media (min-width: 1100px) { .ouverture-grille { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.ouverture-texte { display: grid; gap: 1.5rem; }
.ouverture h1 { font-size: clamp(3rem, 7.6vw, 6.6rem); line-height: 1; font-weight: 300; max-width: 10.5em; letter-spacing: -0.02em; }
@media (min-width: 1100px) { .ouverture h1 { font-size: clamp(3rem, 5.4vw, 5.6rem); } }
.ouverture .chapo { max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.5rem; }
.reperes { list-style: none; margin: 2.5rem auto 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.8rem; color: var(--creme-3); font-size: 0.92rem; padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.reperes li { display: inline-flex; align-items: center; gap: 0.6rem; }
.reperes li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 10px var(--ambre); }

/* Entrée de l'ouverture : chaque bloc monte à son tour. */
@keyframes monter { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.entree { animation: monter 1.2s var(--doux) both; }
.entree-1 { animation-delay: 0.1s; }
.entree-2 { animation-delay: 0.22s; }
.entree-3 { animation-delay: 0.38s; }
.entree-4 { animation-delay: 0.52s; }
.entree-5 { animation-delay: 0.75s; }
.entree-6 { animation-delay: 0.95s; }

/* La barre d'ordre, redessinée d'après le jeu. */
.ordre-demo { margin: 0; padding: 1.4rem; border-radius: 22px; background: var(--verre); border: 1px solid var(--filet); box-shadow: var(--ombre), inset 0 1px 0 rgba(244, 239, 230, 0.06); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; gap: 1rem; max-width: 34rem; width: 100%; justify-self: end; }
.ordre-tete { display: flex; align-items: center; gap: 1rem; }
.ordre-tete img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 199, 122, 0.55), 0 0 26px -6px rgba(255, 199, 122, 0.6); }
.ordre-nom { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.ordre-nom span { font-family: var(--sans); font-size: 0.85rem; color: var(--creme-3); margin-left: 0.4rem; }
.ordre-etat { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--creme-2); margin-top: 0.25rem; }
.ordre-champ { display: flex; align-items: center; gap: 0.8rem; min-height: 3.4rem; padding: 0.55rem 0.5rem 0.55rem 1.2rem; border-radius: 20px; background: rgba(244, 239, 230, 0.07); border: 1px solid var(--filet); }
.ordre-texte { flex: 1; font-size: 1rem; line-height: 1.45; color: var(--creme); min-width: 0; min-height: 1.45em; }
.ordre-texte::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--creme); animation: clignote 1s steps(1) infinite; }
.curseur { display: none; }
@keyframes clignote { 50% { opacity: 0; } }
.ordre-envoyer { flex: none; padding: 0.7rem 1rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--menthe); border: 1px solid rgba(127, 247, 208, 0.5); transition: background 0.25s, box-shadow 0.25s, transform 0.25s; }
.ordre-envoyer.appui { background: rgba(127, 247, 208, 0.22); box-shadow: 0 0 30px rgba(127, 247, 208, 0.5); transform: scale(0.95); }
.ordre-reponse { display: flex; align-items: center; gap: 0.8rem; color: var(--creme-2); font-size: 0.95rem; min-height: 2.6rem; transition: opacity 0.5s var(--doux), transform 0.5s var(--doux); }
.ordre-reponse.cachee { opacity: 0; transform: translateY(8px); }
.ordre-reponse img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 199, 122, 0.45); }
.ordre-reponse strong { color: var(--creme); font-weight: 600; }
@media (max-width: 1099px) { .ordre-demo { justify-self: start; } }

/* ---------- Chiffres ---------- */
.chiffres { border-block: 1px solid var(--filet); background: rgba(9, 22, 28, 0.6); }
.chiffres-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.chiffres p { display: grid; gap: 0.3rem; padding: 1.8rem 1.2rem; border-left: 1px solid var(--filet); }
.chiffres p:first-child { border-left: 0; }
.chiffres strong { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--ambre); font-variant-numeric: lining-nums; }
.chiffres span { color: var(--creme-2); font-size: 0.95rem; }
@media (max-width: 640px) { .chiffres p { border-left: 0; border-top: 1px solid var(--filet); } .chiffres p:first-child { border-top: 0; } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }
.section-sombre { background: linear-gradient(180deg, var(--nuit-2), #081218); border-block: 1px solid rgba(244, 239, 230, 0.05); }
.entete { display: grid; gap: 1.2rem; margin-bottom: clamp(2.75rem, 6vw, 4.5rem); max-width: 52rem; }
.entete-centre { text-align: center; margin-inline: auto; justify-items: center; }
.entete h2, .colonne-texte h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.06; font-weight: 300; }

/* ---------- Le harnais ---------- */
.couches { display: grid; gap: 0; margin-bottom: clamp(4rem, 8vw, 6rem); align-items: stretch; }
@media (min-width: 980px) { .couches { grid-template-columns: 1fr 3.5rem 1.35fr 3.5rem 1fr; } }
.couche { padding: 1.8rem; border-radius: var(--rayon); border: 1px solid var(--filet); background: rgba(20, 18, 38, 0.45); display: grid; gap: 0.8rem; align-content: start; }
.couche h3 { font-size: 1.6rem; line-height: 1.2; }
.couche p { color: var(--creme-2); }
.couche-nom { font-family: var(--serif); font-variant-caps: all-small-caps; letter-spacing: 0.16em; color: var(--creme-3); font-size: 1rem; }
.couche-harnais { background: var(--verre); border-color: rgba(255, 199, 122, 0.4); box-shadow: 0 0 0 1px rgba(255, 199, 122, 0.08), 0 30px 80px -30px rgba(255, 199, 122, 0.4); }
.couche-harnais .couche-nom { color: var(--ambre); }
.pastilles { list-style: none; padding: 0; margin: 0.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pastilles li { font-size: 0.88rem; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid rgba(255, 199, 122, 0.4); background: rgba(12, 12, 26, 0.5); color: var(--creme); }
/* Les liens entre couches : une lueur qui court de gauche à droite (de haut en bas sur téléphone). */
.flux { position: relative; min-height: 2.5rem; }
.flux::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: rgba(255, 199, 122, 0.3); }
.flux span { position: absolute; top: calc(50% - 2px); left: 0; width: 18px; height: 4px; border-radius: 4px; background: var(--ambre); box-shadow: 0 0 14px var(--ambre); animation: courir 2.4s var(--doux) infinite; }
@keyframes courir { from { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { left: calc(100% - 18px); opacity: 0; } }
@media (max-width: 979px) {
  .flux::before { inset: 0 auto 0 50%; width: 1px; height: auto; }
  .flux span { left: calc(50% - 2px); top: 0; width: 4px; height: 18px; animation-name: descendre; }
  @keyframes descendre { from { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { top: calc(100% - 18px); opacity: 0; } }
}

/* Ce que fait l'IA, ce que vous voyez. */
.voir { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 980px) { .voir { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr); gap: 3rem; } }
.voir-legende { font-family: var(--serif); font-variant-caps: all-small-caps; letter-spacing: 0.16em; color: var(--creme-3); font-size: 1rem; margin-bottom: 0.8rem; }
.voir-liste { display: grid; align-content: start; }
.voir-liste button {
  position: relative; text-align: left; cursor: pointer; padding: 1.05rem 0 1.15rem; font: 400 clamp(1.25rem, 2vw, 1.55rem)/1.25 var(--serif);
  color: var(--creme-3); background: none; border: 0; border-bottom: 1px solid var(--filet); transition: color 0.3s;
}
.voir-liste button:hover { color: var(--creme-2); }
.voir-liste button[aria-selected="true"] { color: var(--creme); }
.voir-barre { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--ambre); box-shadow: 0 0 10px var(--ambre); }
.voir-liste button[aria-selected="true"] .voir-barre { transform: scaleX(var(--avance, 1)); }
.voir-vues { position: relative; }
.vue { margin: 0; display: grid; gap: 1rem; animation: fondu 0.7s var(--doux); }
.vue[hidden] { display: none; }
@keyframes fondu { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
.vue img:not(figcaption img) { border-radius: calc(var(--rayon) + 4px); border: 1px solid var(--filet); box-shadow: var(--ombre); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.vue figcaption { display: flex; align-items: center; gap: 1rem; color: var(--creme-2); }
.vue figcaption img { width: 48px; height: 48px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 199, 122, 0.5); }

/* ---------- La surcouche ---------- */
.deux-colonnes { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
@media (min-width: 980px) { .deux-colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.colonne-texte { display: grid; gap: 1.3rem; }
.liste-points { margin: 0.8rem 0 0; display: grid; border-top: 1px solid var(--filet); }
.liste-points div { padding: 1.05rem 0; border-bottom: 1px solid var(--filet); display: grid; gap: 0.3rem; }
.liste-points dt { font-family: var(--serif); font-size: 1.3rem; color: var(--creme); display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.liste-points dt kbd { font-size: 0.62em; }
.liste-points dd { margin: 0; color: var(--creme-2); font-size: 0.98rem; }
.colonne-images { position: relative; min-height: 22rem; perspective: 2400px; transform-style: preserve-3d; }
.ecran { border-radius: 14px; border: 1px solid var(--filet-fort); box-shadow: var(--ombre); transition: transform 0.9s var(--doux); }
.ecran-arriere { width: 82%; margin-left: 18%; transform: rotateY(calc(-14deg + var(--ry, 0deg))) rotateX(calc(3deg + var(--rx, 0deg))); opacity: 0.82; }
.ecran-avant { position: absolute; left: 0; bottom: -2.5rem; width: 78%; transform: rotateY(calc(-8deg + var(--ry, 0deg) * 1.6)) rotateX(calc(2deg + var(--rx, 0deg) * 1.6)) translateZ(40px); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 199, 122, 0.15); }
@media (max-width: 979px) { .colonne-images { margin-bottom: 2.5rem; } }

/* ---------- Pourquoi un jeu ---------- */
.trois { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.carte { position: relative; display: grid; gap: 0.9rem; align-content: start; padding: 0.75rem 0.75rem 1.6rem; border-radius: calc(var(--rayon) + 6px); border: 1px solid var(--filet); background: rgba(16, 18, 34, 0.55); overflow: hidden; }
.carte img { border-radius: var(--rayon); aspect-ratio: 16 / 10; object-fit: cover; }
.carte > p { padding-inline: 0.85rem; color: var(--creme-2); }
.carte .carte-numero { font-family: var(--serif); font-size: 1.55rem; color: var(--creme); margin-top: 0.5rem; }
.lueur { --x: 50%; --y: 0%; }
.lueur::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--x) var(--y), rgba(255, 199, 122, 0.13), transparent 60%); }
.lueur:hover::before { opacity: 1; }
.monde { display: grid; gap: 0.8rem; align-content: start; }
.monde img { border-radius: var(--rayon); border: 1px solid var(--filet); aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--ombre); transition: transform 0.9s var(--doux); }
.monde:hover img { transform: scale(1.02); }
.monde h3 { font-size: 1.55rem; margin-top: 0.4rem; }
.monde p { color: var(--creme-3); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

.maisonnee { margin-top: clamp(4rem, 8vw, 6rem); display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 980px) { .maisonnee { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.maisonnee-texte { display: grid; gap: 1rem; }
.maisonnee-texte h3 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 300; }
.maisonnee-texte p { color: var(--creme-2); }
.portraits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.85rem; }
@media (max-width: 560px) { .portraits { grid-template-columns: repeat(5, 1fr); gap: 0.6rem; } }
.portraits li { position: relative; aspect-ratio: 1; }
.portraits img { width: 100%; height: 100%; border-radius: 50%; background: #141428; box-shadow: 0 0 0 2px rgba(255, 199, 122, 0.4), 0 10px 26px -10px rgba(0, 0, 0, 0.9); transition: transform 0.45s var(--doux), box-shadow 0.45s; }
.portraits li:first-child img { box-shadow: 0 0 0 2px var(--ambre), 0 0 30px -4px rgba(255, 199, 122, 0.75); }
.portraits li:hover img { transform: translateY(-5px) scale(1.08); box-shadow: 0 0 0 2px var(--ambre), 0 18px 32px -12px rgba(0, 0, 0, 0.95); }
.portraits li::after {
  content: attr(data-nom); position: absolute; left: 50%; bottom: calc(100% + 0.6rem); translate: -50% 6px; z-index: 2; white-space: nowrap;
  font-size: 0.8rem; padding: 0.35rem 0.7rem; border-radius: 999px; color: var(--creme); background: rgba(20, 18, 38, 0.95); border: 1px solid var(--filet-fort);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, translate 0.35s var(--doux);
}
.portraits li:hover::after { opacity: 1; translate: -50% 0; }

/* ---------- En entreprise ---------- */
.sceau { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(4rem, 8vw, 6rem); }
@media (min-width: 980px) { .sceau { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.sceau-demo { display: grid; gap: 1rem; }
.dialogue { position: relative; padding: 1.6rem 1.6rem 1.4rem; border-radius: 18px; background: var(--verre); border: 1px solid var(--filet); box-shadow: var(--ombre), 0 0 90px -40px rgba(255, 140, 160, 0.4); overflow: hidden; display: grid; gap: 0.9rem; transition: border-color 0.5s, box-shadow 0.5s; }
.dialogue::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--rose), transparent); }
.dialogue-tete { display: flex; align-items: center; gap: 1rem; }
.cachet { width: 46px; height: 46px; flex: none; border-radius: 48% 52% 46% 54% / 53% 47% 55% 45%; background: radial-gradient(circle at 36% 30%, #f06b80, #c2334d 40%, #7d172d); box-shadow: inset 0 -4px 8px rgba(60, 6, 20, 0.6), 0 6px 14px -6px rgba(40, 4, 14, 0.9); position: relative; }
.cachet::after { content: ""; position: absolute; inset: 12px; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: rgba(255, 210, 218, 0.8); }
.dialogue-type { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose); }
.dialogue-titre { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin-top: 0.2rem; }
.dialogue-quoi { color: var(--creme); }
.dialogue-risque { color: var(--creme-3); font-size: 0.92rem; }
.dialogue-boutons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; margin-top: 0.4rem; }
.choix { font: 600 0.9rem/1 var(--sans); padding: 0.75rem 1rem; border-radius: 999px; cursor: pointer; color: var(--creme); background: rgba(244, 239, 230, 0.06); border: 1px solid var(--filet-fort); display: inline-flex; align-items: center; gap: 0.5rem; transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.choix:hover { transform: translateY(-1px); }
.choix kbd { font-size: 0.72rem; }
.choix-accorder { color: #ffd3da; background: rgba(194, 51, 77, 0.35); border-color: rgba(255, 140, 160, 0.55); }
.choix-accorder:hover { background: rgba(194, 51, 77, 0.55); }
.choix-refuser { background: rgba(244, 239, 230, 0.16); border-color: rgba(244, 239, 230, 0.45); box-shadow: 0 0 0 3px rgba(244, 239, 230, 0.08); }
.choix-refuser:hover { background: rgba(244, 239, 230, 0.24); }
.sceau-issue { min-height: 3.2rem; color: var(--creme-3); padding-left: 0.4rem; display: flex; align-items: center; gap: 0.7rem; }
.sceau-issue::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--creme-3); transition: background 0.3s, box-shadow 0.3s; }
[data-issue="accorder"] .sceau-issue, [data-issue="toujours"] .sceau-issue { color: var(--creme); }
[data-issue="accorder"] .sceau-issue::before, [data-issue="toujours"] .sceau-issue::before { background: var(--menthe); box-shadow: 0 0 12px var(--menthe); }
[data-issue="refuser"] .sceau-issue { color: var(--creme); }
[data-issue="refuser"] .sceau-issue::before { background: var(--rose); box-shadow: 0 0 12px var(--rose); }
[data-issue="accorder"] .dialogue, [data-issue="toujours"] .dialogue { border-color: rgba(127, 247, 208, 0.45); box-shadow: var(--ombre), 0 0 90px -40px rgba(127, 247, 208, 0.5); }
[data-issue] .cachet { animation: tampon 0.6s var(--doux); }
@keyframes tampon { 0% { transform: scale(1.7) rotate(-14deg); opacity: 0.4; } 60% { transform: scale(0.92); opacity: 1; } 100% { transform: none; } }
.sceau-texte { display: grid; gap: 1rem; }
.sceau-texte h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 300; }
.sceau-texte > p { color: var(--creme-2); }
.niveaux { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.9rem; color: var(--creme-2); }
.niveaux li { display: flex; gap: 0.85rem; align-items: baseline; }
.niveaux .point { transform: translateY(-1px); }
.niveaux strong { color: var(--creme); font-weight: 600; }

/* Le réglage de l'autonomie. */
.autonomie { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: calc(var(--rayon) + 6px); border: 1px solid var(--filet); background: rgba(14, 26, 32, 0.75); margin-bottom: clamp(4rem, 8vw, 6rem); display: grid; gap: 1.4rem; }
.autonomie-tete { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.autonomie-tete h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 300; }
.segments { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: rgba(244, 239, 230, 0.06); border: 1px solid var(--filet); }
.segments button { font: 600 0.9rem/1 var(--sans); color: var(--creme-2); background: transparent; border: 0; border-radius: 999px; padding: 0.7rem 1.05rem; cursor: pointer; transition: background 0.3s, color 0.3s; }
.segments button:hover { color: var(--creme); }
.segments button[aria-checked="true"] { color: #0f221d; background: var(--menthe); box-shadow: 0 6px 20px -8px rgba(127, 247, 208, 0.8); }
.autonomie-resume { color: var(--creme-2); min-height: 1.6em; }
.actions-liste { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--filet); }
.actions-liste li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--filet); color: var(--creme); }
.actions-liste b, .etat { font: 600 0.8rem/1 var(--sans); padding: 0.45rem 0.75rem; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.etat-passe, b[data-valeur="passe"] { color: var(--menthe); background: rgba(127, 247, 208, 0.1); border-color: rgba(127, 247, 208, 0.4); }
.etat-demande, b[data-valeur="demande"] { color: var(--ambre); background: rgba(255, 199, 122, 0.1); border-color: rgba(255, 199, 122, 0.4); }
.etat-attend, b[data-valeur="attend"] { color: var(--lavande); background: rgba(194, 173, 255, 0.1); border-color: rgba(194, 173, 255, 0.4); }
.etat-refuse, b[data-valeur="refuse"] { color: var(--rose); background: rgba(255, 140, 160, 0.1); border-color: rgba(255, 140, 160, 0.4); }
.legende-etats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sans-js .autonomie { display: none; }

.piliers { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); border-radius: calc(var(--rayon) + 4px); overflow: hidden; border: 1px solid var(--filet); background: var(--filet); }
.pilier { position: relative; padding: 2rem 1.9rem 2.1rem; background: #0b181e; display: grid; gap: 0.8rem; align-content: start; }
.pilier h3 { font-size: 1.55rem; }
.pilier h3::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 1.1rem; background: var(--ambre); box-shadow: 0 0 12px var(--ambre); }
.pilier p { color: var(--creme-2); font-size: 0.98rem; }

.bandeau { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.bandeau figure { margin: 0; display: grid; gap: 0.8rem; }
.bandeau img { border-radius: var(--rayon); border: 1px solid var(--filet); box-shadow: var(--ombre); }
.bandeau figcaption { color: var(--creme-3); font-size: 0.95rem; }

/* ---------- Le film ---------- */
.affiche { position: relative; display: block; border-radius: calc(var(--rayon) + 8px); overflow: hidden; border: 1px solid var(--filet-fort); box-shadow: var(--ombre), 0 0 140px -50px rgba(255, 199, 122, 0.4); color: var(--creme); text-decoration: none; isolation: isolate; }
.affiche img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--doux), filter 0.6s; }
.affiche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 8, 14, 0.75) 0%, rgba(5, 8, 14, 0) 38%), radial-gradient(ellipse at center, rgba(5, 8, 14, 0), rgba(5, 8, 14, 0.35)); z-index: 0; }
.affiche:hover img { transform: scale(1.025); filter: brightness(1.08); }
.affiche-lecture { position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 1; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #0f221d; background: var(--menthe); box-shadow: 0 0 0 10px rgba(127, 247, 208, 0.18), 0 20px 60px -10px rgba(127, 247, 208, 0.7); transition: transform 0.5s var(--doux), box-shadow 0.5s; }
.affiche-lecture .lecture { border-left-width: 22px; border-top-width: 14px; border-bottom-width: 14px; margin-left: 6px; }
.affiche:hover .affiche-lecture { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(127, 247, 208, 0.16), 0 24px 70px -10px rgba(127, 247, 208, 0.85); }
.affiche-texte { position: absolute; left: calc(clamp(1rem, 3vw, 2rem) + 84px + 1.2rem); bottom: calc(clamp(1rem, 3vw, 2rem) + 12px); z-index: 1; font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; display: grid; }
.affiche-texte span { font-family: var(--sans); font-size: 0.9rem; color: var(--creme-2); }
@media (max-width: 640px) { .affiche-lecture { width: 56px; height: 56px; } .affiche-lecture .lecture { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; } .affiche-texte { left: calc(1rem + 56px + 0.9rem); bottom: 1.3rem; font-size: 1.1rem; } }
.film-dialogue { width: min(94vw, 1600px); max-height: 92vh; padding: 0; border: 0; background: transparent; color: var(--creme); overflow: visible; }
.film-dialogue::backdrop { background: rgba(3, 6, 10, 0.9); backdrop-filter: blur(8px); }
.film-dialogue video { width: 100%; border-radius: 14px; border: 1px solid var(--filet); box-shadow: var(--ombre); background: #000; aspect-ratio: 16 / 9; }
.film-fermer { position: absolute; right: 0; top: -3.2rem; font: 600 0.92rem/1 var(--sans); color: var(--creme); background: rgba(20, 18, 38, 0.7); border: 1px solid var(--filet-fort); border-radius: 999px; padding: 0.65rem 1rem; cursor: pointer; display: inline-flex; gap: 0.5rem; align-items: center; }

/* ---------- Questions ---------- */
.questions { display: grid; gap: 1rem; }
@media (min-width: 980px) { .questions { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; } .questions .entete { position: sticky; top: 7rem; } }
.faq { border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.35rem 0; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--creme); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--ambre); border-bottom: 1.5px solid var(--ambre); transform: rotate(45deg) translateY(-4px); transition: transform 0.4s var(--doux); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { color: var(--creme-2); padding: 0 0 1.5rem; max-width: 42em; }
.faq summary:hover { color: var(--miel); }

/* ---------- Télécharger ---------- */
.section-telecharger { background: radial-gradient(ellipse 60% 70% at 50% 30%, rgba(127, 247, 208, 0.09), transparent 70%); }
.systemes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); max-width: 56rem; margin-inline: auto; }
.systeme { position: relative; padding: 2.2rem 2rem; border-radius: calc(var(--rayon) + 4px); border: 1px solid var(--filet); background: var(--verre); box-shadow: var(--ombre); display: grid; gap: 1rem; justify-items: start; transition: border-color 0.4s, box-shadow 0.4s; }
.systeme h3 { font-size: 2.2rem; font-weight: 300; }
.systeme .bouton { width: 100%; }
.systeme-detail { color: var(--creme-2); font-variant-numeric: tabular-nums; }
.systeme-note { color: var(--creme-3); font-size: 0.9rem; }
.systeme-badge { display: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--menthe); }
.systeme.recommande { border-color: rgba(127, 247, 208, 0.45); box-shadow: var(--ombre), 0 0 80px -30px rgba(127, 247, 208, 0.45); order: -1; }
.systeme.recommande .systeme-badge { display: block; }
.systeme:not(.recommande) .bouton-plein { color: var(--creme); background: rgba(20, 18, 38, 0.55); border-color: var(--filet-fort); box-shadow: none; }
.sans-js .systeme .bouton-plein, .systemes:not(.choisis) .systeme .bouton-plein { color: #0f221d; background: var(--menthe); border-color: var(--menthe); }
/* Rien de publié encore : le bouton l'annonce, sans lien. */
.systeme .bouton[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--filet); padding-block: 3.5rem calc(3rem + env(safe-area-inset-bottom)); color: var(--creme-3); font-size: 0.95rem; }
.pied-cadre { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .pied-cadre { grid-template-columns: 1fr auto; align-items: start; } .pied-note { grid-column: 1 / -1; } }
.pied .marque { font-size: 1rem; margin-bottom: 0.4rem; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.pied-liens a { color: var(--creme-2); text-decoration: none; }
.pied-liens a:hover { color: var(--creme); }
.pied-note { font-size: 0.85rem; padding-top: 1.4rem; border-top: 1px solid var(--filet); }

/* ---------- Apparitions ---------- */
.avec-js .apparait { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--doux), transform 1.2s var(--doux); }
.avec-js .apparait.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .avec-js .apparait { opacity: 1; transform: none; }
  .ouverture-video, .lucioles { display: none; }
}
