/* termwall, le site. Sombre par défaut : c'est un outil de terminal. */

:root {
  --fond: #04060d;
  --fond-2: #070b18;
  --encre: #f5f5f7;
  --encre-2: rgba(235, 235, 245, 0.74);
  --encre-3: rgba(235, 235, 245, 0.58);
  --bleu: #5e9eff;
  --bleu-clair: #8cb8ff;
  --bleu-profond: #2d6fe0;
  --vert: #30d158;
  --orange: #ff9f0a;
  --rouge: #ff6961;
  --violet: #8e7cff;
  --gris: #8e8e93;

  --verre: rgba(28, 32, 46, 0.48);
  --verre-fort: rgba(16, 19, 30, 0.72);
  --arete: rgba(255, 255, 255, 0.09);
  --arete-haute: rgba(255, 255, 255, 0.18);
  --flou: blur(28px) saturate(170%);

  --police: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, monospace;

  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  --largeur: 1120px;
  --gouttiere: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 1.0625rem/1.55 var(--police);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
b { font-weight: 600; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--bleu-clair); outline-offset: 3px; border-radius: 8px; }
.vi { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--encre); color: #000; font-weight: 600; text-decoration: none; }
.evitement:focus { top: 12px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6ba6ff, var(--bleu-profond));
  color: #fff; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 30px -8px rgba(45, 111, 224, 0.75);
  transition: transform 120ms ease-out, box-shadow 200ms ease-out, filter 200ms ease-out;
}
.bouton:hover { filter: brightness(1.08); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 14px 40px -8px rgba(45, 111, 224, 0.95); }
.bouton:active { transform: scale(0.97); transition-duration: 60ms; }
.bouton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bouton-mini { min-height: 32px; padding: 0 14px; font-size: 0.8125rem; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset; }
.bouton-large { min-height: 54px; padding: 0 34px; }
.bouton-verre {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--arete-haute);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
  font-size: 0.9375rem;
}
.bouton-verre:hover { background: rgba(255, 255, 255, 0.13); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset; }
.lien-fleche { color: var(--bleu-clair); text-decoration: none; font-size: 1.0625rem; font-weight: 500; }
.lien-fleche::after { content: " ›"; }
.lien-fleche:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Barre de navigation en verre ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(8, 10, 18, 0.42);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease;
}
.nav.defile { background: rgba(8, 10, 18, 0.68); border-bottom-color: var(--arete); }
.nav-dedans { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); height: 52px; display: flex; align-items: center; gap: 24px; }
.nav-marque { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }
.nav-liens { margin-left: auto; display: flex; gap: 26px; }
.nav-liens a { color: var(--encre-2); text-decoration: none; font-size: 0.8125rem; transition: color 160ms; }
.nav-liens a:hover { color: var(--encre); }
.nav .bouton-mini { margin-left: 4px; }
.nav-compte { flex: none; color: var(--encre-2); text-decoration: none; font-size: 0.8125rem; white-space: nowrap; transition: color 160ms; }
.nav-compte:hover { color: var(--encre); }

/* ---------- Halos flous ---------- */
.halos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.section > .halos, .manifeste > .halos { inset: 0 calc(50% - 50vw); }
.halo { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.halo-bleu { width: 820px; height: 620px; left: 50%; top: 32%; margin-left: -560px; background: radial-gradient(closest-side, #2d6fe0, transparent); animation: derive-a 34s ease-in-out infinite alternate; }
.halo-violet { width: 640px; height: 560px; left: 50%; top: 18%; margin-left: 40px; background: radial-gradient(closest-side, #6a4dff, transparent); opacity: 0.45; animation: derive-b 40s ease-in-out infinite alternate; }
.halo-vert { width: 520px; height: 420px; left: 50%; top: 62%; margin-left: 120px; background: radial-gradient(closest-side, #1fae4a, transparent); opacity: 0.32; animation: derive-a 46s ease-in-out infinite alternate-reverse; }
@keyframes derive-a { to { transform: translate3d(90px, -40px, 0) scale(1.12); } }
@keyframes derive-b { to { transform: translate3d(-110px, 50px, 0) scale(0.9); } }

/* ---------- Héros ---------- */
.heros {
  position: relative; isolation: isolate;
  padding: clamp(76px, 9vh, 104px) var(--gouttiere) 40px;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, #0d1730 0%, transparent 60%),
    linear-gradient(180deg, #050812 0%, var(--fond) 100%);
}
.heros-texte { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.heros-icone { margin: 0 auto 14px; width: clamp(52px, 4vw, 56px); height: auto; filter: drop-shadow(0 18px 40px rgba(45, 111, 224, 0.55)); }
.heros-nom { font-size: clamp(4rem, 10vw, 6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.92; }
.heros-accroche { margin-top: 14px; font-size: clamp(1.75rem, 4vw, 2.875rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.032em; text-wrap: balance; }
.heros-accroche br { display: block; }
.heros-sous { margin: 16px auto 0; max-width: 36rem; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--encre-2); line-height: 1.5; text-wrap: pretty; }
.heros-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 30px; }
.heros-note { margin-top: 16px; font-size: 0.875rem; color: var(--encre-3); }

/* La scène qui porte la fenêtre : inclinée au départ, elle se redresse au défilement. */
/* --k : l'échelle de la fenêtre dessinée (1180 px de large), posée par le script. */
.scene { position: relative; z-index: 1; margin: 32px auto 0; max-width: 1180px; height: calc(740px * var(--k, 1)); --t: 1; }
.scene-plateau {
  position: absolute; top: 0; left: 50%;
  width: 1180px; height: 740px;
  transform-origin: top left;
  transform: translateX(calc(-590px * var(--k, 1))) scale(var(--k, 1));
  perspective: 2200px; perspective-origin: 50% 0%;
}
.tw {
  position: absolute; inset: 0;
  transform-origin: 50% 0%;
  transform: rotateX(calc(var(--t) * 28deg)) scale(calc(1 - var(--t) * 0.08));
  will-change: transform;
}
.legende-fictive { position: relative; z-index: 1; margin-top: 44px; font-size: 0.75rem; color: var(--encre-3); }

/* ---------- La fenêtre de l'app, dessinée ---------- */
.tw {
  display: grid; grid-template-columns: 252px 1fr;
  border-radius: 14px; overflow: hidden;
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.9),
    0 40px 120px -20px rgba(0, 0, 0, 0.85),
    0 30px 80px -30px rgba(45, 111, 224, 0.55);
  text-align: left;
  font-family: var(--police);
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0;
}
.tw-barre {
  position: relative;
  padding: 14px 12px 12px;
  background: linear-gradient(180deg, rgba(36, 38, 48, 0.92), rgba(22, 23, 30, 0.96));
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 12.5px;
}
.feux { display: flex; gap: 8px; }
.feux i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2); }
.feux i:nth-child(2) { background: #febc2e; }
.feux i:nth-child(3) { background: #28c840; }
.tw-titre-fenetre { height: 14px; }
.tw-marque { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; }
.tw-marque b { letter-spacing: -0.02em; }
.tw-compte-total { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 11px; text-align: center; color: rgba(235, 235, 245, 0.7); }
.tw-compte { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.07); }
.tw-compte svg { margin-left: auto; width: 12px; height: 12px; fill: none; stroke: rgba(235, 235, 245, 0.6); stroke-width: 1.6; }
.tw-avatar { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; background: linear-gradient(180deg, #6ba6ff, #2d6fe0); }
.tw-cafe { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; }
.tw-cafe svg { width: 18px; height: 18px; fill: none; stroke: #ffb340; stroke-width: 1.6; stroke-linecap: round; flex: none; }
.tw-cafe span { display: flex; flex-direction: column; line-height: 1.25; }
.tw-cafe small { color: rgba(235, 235, 245, 0.55); font-size: 11px; }
.tw-inter { margin-left: auto; width: 30px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); position: relative; flex: none; }
.tw-inter.on { background: var(--vert); }
.tw-inter i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.tw-inter.on i { left: 14px; }
.tw-espaces { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.tw-esp { display: flex; align-items: center; gap: 7px; margin: 9px 0 3px; padding-left: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(235, 235, 245, 0.55); }
.tw-esp::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.tw-term { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; font-size: 13px; color: rgba(235, 235, 245, 0.88); }
.tw-term small { margin-left: auto; font-size: 11px; color: rgba(235, 235, 245, 0.45); font-variant-numeric: tabular-nums; }
.tw-term.actif { background: rgba(255, 255, 255, 0.11); color: #fff; }
.tw-forfait { margin-top: auto; padding: 10px 8px 2px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; gap: 4px; }
.tw-forfait p { display: flex; justify-content: space-between; font-size: 11.5px; color: rgba(235, 235, 245, 0.75); }
.tw-forfait p:not(:first-child) { margin-top: 6px; }
.tw-forfait small { font-size: 10.5px; color: rgba(235, 235, 245, 0.45); }
.jauge { display: block; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.jauge i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bleu-profond), var(--bleu)); }

.tw-zone { display: flex; flex-direction: column; background: #0e0e11; min-width: 0; }
.tw-entete { display: flex; align-items: center; gap: 10px; padding: 10px 14px; height: 52px; background: rgba(20, 20, 23, 0.9); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.tw-entete b { font-size: 14px; }
.tw-entete small { display: block; font-size: 11px; color: rgba(235, 235, 245, 0.5); font-family: var(--mono); }
.tw-segments { margin-left: auto; display: flex; padding: 2px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); }
.tw-segments i { font-style: normal; width: 28px; height: 22px; display: grid; place-items: center; font-size: 11.5px; color: rgba(235, 235, 245, 0.6); border-radius: 6px; }
.tw-segments i.on { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.tw-grille { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 8px; min-height: 0; }
.tw-case { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: 12px; overflow: hidden; background: #191d27; border: 1px solid rgba(255, 255, 255, 0.05); }
.tw-case.actif { border-color: rgba(94, 158, 255, 0.55); box-shadow: 0 0 0 1px rgba(94, 158, 255, 0.25); }
.tw-case.attend { border-color: rgba(255, 159, 10, 0.5); }
.tw-case-titre { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.035); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.tw-case-titre em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 11px; color: rgba(235, 235, 245, 0.5); }
.tw-case pre { margin: 0; padding: 10px 12px; font: 11.5px/1.5 var(--mono); color: rgba(235, 235, 245, 0.86); white-space: pre; overflow: hidden; }
.tw-case .u { color: #fff; font-weight: 600; }
.tw-case .b { color: var(--bleu); }
.tw-case .g { color: rgba(235, 235, 245, 0.45); }
.tw-case .o { color: #ff9f6b; }
.tw-case .v { color: var(--vert); }
.tw-question { margin: 0 12px; padding: 10px 12px; display: flex; flex-direction: column; border: 1px solid rgba(255, 159, 10, 0.6); border-radius: 8px; font: 11.5px/1.5 var(--mono); color: rgba(235, 235, 245, 0.86); white-space: pre; }
.tw-question b { color: #fff; margin-bottom: 2px; }
.tw-question .v { color: var(--vert); margin-top: 6px; }
.curseur { display: inline-block; width: 7px; height: 13px; vertical-align: -2px; background: var(--vert); border-radius: 1px; animation: clignote 1.1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.tw-permission { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.tw-permission span, .visuel-permission span {
  padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.12);
}
.tw-permission .ok, .visuel-permission .ok { background: var(--vert); border-color: transparent; color: #04140a; }

/* Pastilles d'état */
.pt { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--gris); }
.pt.travaille { background: var(--bleu); box-shadow: 0 0 0 0 rgba(94, 158, 255, 0.6); animation: respire 2.4s ease-in-out infinite; }
.pt.attend { background: var(--orange); box-shadow: 0 0 10px rgba(255, 159, 10, 0.7); }
.pt.repos { background: var(--gris); }
.pt.endormi { background: transparent; box-shadow: inset 0 0 0 1.5px #e5e5ea; }
.pt.mort { background: var(--rouge); }
@keyframes respire { 0%, 100% { box-shadow: 0 0 0 0 rgba(94, 158, 255, 0.55); } 50% { box-shadow: 0 0 0 5px rgba(94, 158, 255, 0); } }

/* La notification macOS : elle arrive de la droite, comme sur le Mac. */
.notif {
  display: flex; align-items: center; gap: 12px;
  width: 360px; padding: 12px 14px;
  border-radius: 18px;
  background: rgba(46, 48, 58, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.7);
  text-align: left; color: #fff;
}
.notif div { min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.notif div span { color: rgba(235, 235, 245, 0.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif small { align-self: flex-start; margin-left: auto; font-size: 11px; color: rgba(235, 235, 245, 0.55); white-space: nowrap; }
.notif img { flex: none; }
#notif { position: absolute; top: -36px; right: -70px; z-index: 2; opacity: 0; transform: translateX(40px); transition: opacity 600ms var(--sortie), transform 700ms var(--sortie); }
#notif.vue { opacity: 1; transform: none; }

/* ---------- Le manifeste des pastilles ---------- */
.manifeste { position: relative; isolation: isolate; max-width: 980px; margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--gouttiere) clamp(72px, 10vw, 120px); text-align: center; }
.manifeste-texte { font-size: clamp(2rem, 5.2vw, 4rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.038em; color: var(--encre-3); text-wrap: balance; }
.manifeste-texte span { color: var(--encre); }
.pastilles { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pastilles li {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--verre); border: 1px solid var(--arete);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
  font-size: 0.9375rem; color: var(--encre-2);
}
.pastilles li b { color: var(--encre); }
.pastilles .pt { width: 11px; height: 11px; }

/* ---------- Sections ---------- */
.section { position: relative; isolation: isolate; max-width: var(--largeur); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gouttiere) 0; }
.titre-section { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; text-align: center; text-wrap: balance; }
.sous-titre { margin: 20px auto 0; max-width: 36rem; text-align: center; font-size: clamp(1.125rem, 1.8vw, 1.375rem); color: var(--encre-2); line-height: 1.45; text-wrap: balance; }

/* ---------- Bento ---------- */
.bento { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.carte {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(40, 46, 66, 0.5), rgba(18, 21, 32, 0.55));
  border: 1px solid var(--arete);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
}
.carte::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 80%; border-radius: 50%; filter: blur(60px); opacity: 0.35; background: var(--lueur, #2d6fe0); z-index: -1; pointer-events: none; }
.carte h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.carte p { margin-top: 10px; color: var(--encre-2); font-size: 1rem; line-height: 1.5; max-width: 34rem; text-wrap: pretty; }
.c-grille { grid-column: span 4; grid-row: span 2; --lueur: #2d6fe0; }
.c-espaces { grid-column: span 2; grid-row: span 2; --lueur: #8e5cff; }
.c-comptes { grid-column: span 3; --lueur: #3d7bff; }
.c-notif { grid-column: span 3; --lueur: #ff9f0a; }
.c-groupe { grid-column: span 4; --lueur: #5e9eff; }
.c-forfait { grid-column: span 2; --lueur: #2d6fe0; }
.c-permission { grid-column: span 2; --lueur: #30d158; }
.c-reprise { grid-column: span 4; --lueur: #e5e5ea; }
.c-reprise::before { opacity: 0.12; }

/* Visuels des cartes */
.visuel-grille { display: flex; flex-direction: column; gap: 16px; }
.mini-segments { align-self: flex-start; display: flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--arete); }
.mini-segments i { font-style: normal; width: 44px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-size: 0.9375rem; color: var(--encre-3); }
.mini-segments i.on { background: rgba(255, 255, 255, 0.16); color: #fff; }
.mini-grille { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(180px, 22vw, 240px); }
.mc { min-width: 0; overflow: hidden; border-radius: 12px; background: #191d27; border: 1px solid rgba(255, 255, 255, 0.06); }
.mc.b { border-color: rgba(94, 158, 255, 0.5); }
.mc.o { border-color: rgba(255, 159, 10, 0.5); }
.mc p { display: flex; align-items: center; gap: 7px; margin: 0; padding: 7px 10px; font-size: 0.75rem; font-weight: 600; color: var(--encre); background: rgba(255, 255, 255, 0.035); border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc .pt { width: 7px; height: 7px; }
.mc code { display: block; padding: 8px 10px; font: 0.6875rem/1.55 var(--mono); color: rgba(235, 235, 245, 0.8); white-space: pre; overflow: hidden; }
.mc em { font-style: normal; color: var(--bleu); }
.mc em.v { color: var(--vert); }

.visuel-espaces { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.visuel-espaces li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--arete); }
.visuel-espaces li::before { content: ""; grid-row: span 2; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.visuel-espaces b { font-size: 0.9375rem; }
.visuel-espaces small { grid-column: 2; font: 0.75rem var(--mono); color: var(--encre-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visuel-espaces span { grid-column: 3; grid-row: 1 / span 2; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 0.75rem; text-align: center; color: var(--encre-2); }

.visuel-comptes { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.seg { display: flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--arete); }
.seg i { font-style: normal; padding: 9px 20px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--encre-3); }
.seg i.on { background: linear-gradient(180deg, #6ba6ff, var(--bleu-profond)); color: #fff; box-shadow: 0 6px 18px -6px rgba(45, 111, 224, 0.9); }
.seg-note { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--encre-2); }
.seg-note svg { width: 18px; height: 18px; fill: none; stroke: var(--vert); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.visuel-notif { display: flex; }
.notif-statique { width: 100%; max-width: 380px; }

.visuel-groupe { display: flex; flex-direction: column; gap: 12px; }
.groupe-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.groupe-puces span { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 0.8125rem; background: rgba(94, 158, 255, 0.14); border: 1px solid rgba(94, 158, 255, 0.35); }
.groupe-puces span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.groupe-barre { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 16px; background: rgba(10, 12, 20, 0.6); border: 1px solid var(--arete-haute); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8); }
.groupe-barre span { flex: 1; min-width: 0; font-size: 0.9375rem; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.groupe-barre b { flex: none; padding: 9px 16px; border-radius: 11px; font-size: 0.875rem; background: linear-gradient(180deg, #6ba6ff, var(--bleu-profond)); }

.visuel-forfait { display: flex; flex-direction: column; gap: 8px; }
.visuel-forfait p { display: flex; justify-content: space-between; margin: 0; font-size: 0.875rem; color: var(--encre-2); }
.visuel-forfait p b { color: var(--encre); font-variant-numeric: tabular-nums; }
.visuel-forfait p:not(:first-child) { margin-top: 10px; }
.visuel-forfait .jauge { height: 8px; }

.visuel-permission { display: flex; gap: 10px; }
.visuel-permission span { padding: 11px 22px; font-size: 0.9375rem; border-radius: 12px; }

.visuel-reprise { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dormeurs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; flex: 1; min-width: 240px; max-width: 420px; }
.dormeurs li { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); font-size: 0.875rem; color: var(--encre-2); white-space: nowrap; }
.bouton-faux { padding: 11px 20px; border-radius: 999px; font-size: 0.9375rem; font-weight: 600; background: rgba(255, 255, 255, 0.92); color: #0b0b0d; }

/* Et aussi */
.titre-et-aussi { margin-top: clamp(72px, 9vw, 110px); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; }
.et-aussi { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.et-aussi li { display: flex; flex-direction: column; gap: 6px; }
.et-aussi svg { width: 30px; height: 30px; margin-bottom: 8px; fill: none; stroke: var(--bleu-clair); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.et-aussi b { font-size: 1.125rem; letter-spacing: -0.015em; }
.et-aussi span { color: var(--encre-2); font-size: 0.9375rem; line-height: 1.5; }

/* Halos du milieu de page : ils donnent au verre quelque chose à flouter. */
.halo-manifeste { width: 700px; height: 420px; left: 50%; top: 45%; margin-left: -350px; opacity: 0.3; animation: none; }
.halo-f1 { width: 900px; height: 700px; left: 50%; top: 8%; margin-left: -700px; opacity: 0.42; }
.halo-f2 { width: 760px; height: 640px; left: 50%; top: 30%; margin-left: 60px; opacity: 0.38; }
.halo-f3 { width: 620px; height: 480px; left: 50%; top: 58%; margin-left: -420px; opacity: 0.22; }
.halo-i1 { width: 860px; height: 520px; left: 50%; top: 2%; margin-left: -430px; opacity: 0.4; }
.halo-i2 { width: 700px; height: 600px; left: 50%; top: 45%; margin-left: -100px; opacity: 0.3; }

/* ---------- Confidentialité ---------- */
.halo-prive { width: 760px; height: 560px; left: 50%; top: 40%; margin-left: -380px; opacity: 0.28; }
.prive-panneau {
  position: relative;
  padding: clamp(40px, 6vw, 80px) clamp(22px, 5vw, 72px);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(30, 44, 40, 0.42), rgba(12, 16, 24, 0.6));
  border: 1px solid var(--arete);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
  text-align: center;
}
.prive-cadenas { width: 64px; height: 64px; margin: 0 auto 28px; fill: none; stroke: var(--vert); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 8px 24px rgba(48, 209, 88, 0.5)); }
.prive-intro { margin: 22px auto 0; max-width: 38rem; color: var(--encre-2); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; }
.prive-points { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: left; }
.prive-points div { padding-top: 22px; border-top: 1px solid var(--arete-haute); }
.prive-points h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.prive-points p { margin-top: 8px; color: var(--encre-2); font-size: 0.9375rem; line-height: 1.55; }

/* ---------- Demander un accès ---------- */
.halo-a1 { width: 820px; height: 560px; left: 50%; top: 20%; margin-left: -610px; opacity: 0.42; }
.halo-a2 { width: 680px; height: 560px; left: 50%; top: 42%; margin-left: 20px; opacity: 0.36; }
.acces-panneau {
  position: relative;
  margin: clamp(40px, 5vw, 60px) auto 0; max-width: 600px;
  padding: clamp(28px, 4.5vw, 48px);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(48, 60, 96, 0.5), rgba(16, 19, 30, 0.62));
  border: 1px solid var(--arete-haute);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 50px 100px -40px rgba(45, 111, 224, 0.6);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
}
.acces-form { display: grid; gap: 22px; }
.acces-form[hidden] { display: none; }
.champ { display: grid; gap: 8px; }
.champ label { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.facultatif { margin-left: 6px; font-weight: 400; color: var(--encre-3); }
.champ input, .champ textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  border-radius: 14px;
  background: rgba(6, 8, 16, 0.5);
  border: 1px solid var(--arete-haute);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.4) inset;
  color: var(--encre); font: 400 1.0625rem/1.4 var(--police); letter-spacing: -0.01em;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.champ textarea { resize: vertical; min-height: 96px; }
.champ input:hover, .champ textarea:hover { border-color: rgba(255, 255, 255, 0.28); }
.champ input:focus, .champ textarea:focus { outline: none; background: rgba(6, 8, 16, 0.66); border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(94, 158, 255, 0.22); }
.champ [aria-invalid="true"], .champ [aria-invalid="true"]:focus { border-color: var(--rouge); box-shadow: 0 0 0 4px rgba(255, 105, 97, 0.16); }
.champ-erreur, .acces-panne { color: var(--rouge); font-size: 0.875rem; line-height: 1.45; }
.champ-erreur:empty, .acces-panne:empty { display: none; }
.acces-panne { padding: 12px 16px; border-radius: 14px; background: rgba(255, 105, 97, 0.1); border: 1px solid rgba(255, 105, 97, 0.3); color: var(--encre); }
/* Hors de l'écran plutôt que caché : certains robots sautent les champs en display:none. */
.piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.acces-envoyer { width: 100%; margin-top: 4px; border: 0; cursor: pointer; font-family: var(--police); }
.acces-envoyer[aria-busy="true"] { cursor: progress; filter: saturate(0.6) brightness(0.9); }
.acces-note { font-size: 0.875rem; color: var(--encre-3); line-height: 1.5; text-align: center; text-wrap: pretty; }
.acces-merci { text-align: center; padding: clamp(8px, 2vw, 20px) 0; animation: materialise 700ms var(--sortie) both; }
.acces-merci svg { width: 64px; height: 64px; margin: 0 auto 22px; fill: none; stroke: var(--vert); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 8px 24px rgba(48, 209, 88, 0.5)); }
.acces-merci h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
.acces-merci h3:focus { outline: none; }
.acces-merci p { margin: 12px auto 22px; max-width: 26rem; color: var(--encre-2); line-height: 1.5; }
@keyframes materialise { from { opacity: 0; transform: scale(0.97); filter: blur(8px); } }
.surtitre { text-align: center; font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 600; color: var(--bleu-clair); letter-spacing: -0.015em; margin-bottom: 10px; }
.faq details p a { color: var(--bleu-clair); text-underline-offset: 3px; }

/* ---------- Installation ---------- */
.commande {
  position: relative;
  margin: clamp(40px, 5vw, 60px) auto 0; max-width: 760px;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 12px 12px 26px;
  border-radius: 22px;
  background: rgba(10, 12, 20, 0.66);
  border: 1px solid var(--arete-haute);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 70px -24px rgba(45, 111, 224, 0.55);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
}
.commande code { flex: 1; min-width: 0; font: 500 clamp(0.875rem, 1.5vw, 1.0625rem)/1.5 var(--mono); color: var(--encre); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.copier {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 13px;
  background: linear-gradient(180deg, #6ba6ff, var(--bleu-profond));
  color: #fff; font: 600 0.9375rem var(--police); cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;
  transition: transform 120ms ease-out, background 200ms ease;
}
.copier:active { transform: scale(0.96); }
.copier svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copier .i-ok { display: none; }
.copier.fait { background: linear-gradient(180deg, #4ade7b, #22a447); }
.copier.fait .i-ok { display: block; }
.copier.fait .i-copier { display: none; }

.etapes { list-style: none; margin: clamp(40px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.etape { padding: 28px; border-radius: 24px; background: var(--verre); border: 1px solid var(--arete); backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou); }
.etape-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 18px; font-weight: 700; font-size: 1.0625rem; background: rgba(94, 158, 255, 0.16); color: var(--bleu-clair); border: 1px solid rgba(94, 158, 255, 0.35); }
.etape h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.025em; }
.etape p { margin-top: 8px; color: var(--encre-2); font-size: 1rem; line-height: 1.55; }
.etape b { color: var(--encre); }
kbd { display: inline-block; min-width: 1.7em; padding: 1px 7px; border-radius: 6px; font: 600 0.875em var(--police); text-align: center; color: var(--encre); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); border-bottom-width: 2px; }

.dmg { margin-top: 16px; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--arete); }
.dmg-tete { display: flex; align-items: center; gap: 28px; }
.dmg-tete h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.025em; }
.dmg-tete p { margin-top: 8px; color: var(--encre-2); font-size: 1rem; line-height: 1.55; max-width: 40rem; }
.dmg-tete .bouton { flex: none; margin-left: auto; }
.dmg-alerte { margin-top: 28px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 159, 10, 0.09); border: 1px solid rgba(255, 159, 10, 0.28); color: var(--encre-2); line-height: 1.55; }
.dmg-alerte b { color: var(--encre); }
.dmg-etapes { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: geste; display: grid; gap: 14px; }
.dmg-etapes li { counter-increment: geste; position: relative; padding-left: 44px; color: var(--encre-2); line-height: 1.55; }
.dmg-etapes li::before { content: counter(geste); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.875rem; background: rgba(255, 255, 255, 0.09); color: var(--encre); }
.dmg-etapes b, .dmg-fin b { color: var(--encre); }
.dmg-fin { margin-top: 20px; color: var(--encre-2); line-height: 1.55; }

.requis { margin-top: clamp(56px, 7vw, 88px); }
.requis h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; }
.requis ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.requis li { display: flex; flex-direction: column; gap: 6px; }
.requis svg { width: 30px; height: 30px; margin-bottom: 8px; fill: none; stroke: var(--bleu-clair); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.requis b { font-size: 1.0625rem; }
.requis span { color: var(--encre-2); font-size: 0.9375rem; line-height: 1.5; }

/* ---------- Tarif ---------- */
.halo-tarif { width: 700px; height: 600px; left: 50%; top: 30%; margin-left: -350px; opacity: 0.4; }
.prix {
  margin: clamp(40px, 5vw, 64px) auto 0; max-width: 560px;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 52px);
  border-radius: 36px; text-align: center;
  background: linear-gradient(180deg, rgba(48, 60, 96, 0.5), rgba(16, 19, 30, 0.62));
  border: 1px solid var(--arete-haute);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 50px 100px -40px rgba(45, 111, 224, 0.6);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
}
.prix-montant { font-size: clamp(4rem, 10vw, 6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.prix-duree { margin-top: 8px; font-size: 1.25rem; color: var(--encre-2); }
.prix-liste { list-style: none; margin: 34px 0 36px; padding: 0; display: grid; gap: 14px; text-align: left; }
.prix-liste li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.prix-liste svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--vert); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.prix-note { margin-top: 22px; font-size: 0.875rem; color: var(--encre-3); line-height: 1.5; }

/* Payant allumé : jusqu'à trois formules côte à côte, même verre que la carte « Gratuit ». */
.tarif .ancre { position: absolute; top: 0; }
.formules { margin: clamp(40px, 5vw, 64px) auto 0; max-width: 1100px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.formules .prix { margin: 0; flex: 1 1 260px; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.formule-nom { font-size: 1.0625rem; font-weight: 600; color: var(--bleu-clair); letter-spacing: 0; }
.formule-montant { margin-top: 14px; font-size: clamp(3rem, 6vw, 4.25rem); overflow-wrap: anywhere; }
.formule-montant:empty { display: none; }
.formule-sous { margin-top: 6px; font-size: 0.9375rem; color: var(--encre-3); }
/* Le bouton descend au pied de la carte : les trois boutons restent alignés même si une carte a une ligne de plus. */
.formules .formule > p:last-of-type { margin-bottom: 30px; }
.formules .bouton { margin-top: auto; }
.payant[hidden], .formules .formule[hidden], .faq p[hidden] { display: none; }
.formules-liste { max-width: 560px; margin: 40px auto 0; }
.formules-note { text-align: center; }
.cle-recue { margin-top: 14px; text-align: center; font-size: 0.9375rem; color: var(--encre-3); }
.cle-recue a { color: var(--bleu-clair); text-decoration: none; }
.cle-recue a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { margin: clamp(40px, 5vw, 56px) auto 0; max-width: 820px; border-top: 1px solid var(--arete-haute); }
.faq details { border-bottom: 1px solid var(--arete-haute); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--encre-2); border-bottom: 2px solid var(--encre-2); transform: translateY(-3px) rotate(45deg); transition: transform 300ms var(--sortie); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq summary:hover { color: var(--bleu-clair); }
.faq details p { padding: 0 4px 26px; color: var(--encre-2); line-height: 1.6; max-width: 46rem; }

/* ---------- Dernier appel ---------- */
.final { position: relative; isolation: isolate; padding: clamp(120px, 16vw, 200px) var(--gouttiere) clamp(110px, 14vw, 180px); text-align: center; overflow: hidden; }
.halo-final { width: 900px; height: 560px; left: 50%; top: 20%; margin-left: -450px; opacity: 0.5; }
.halo-final-2 { width: 500px; height: 380px; top: 50%; margin-left: -60px; opacity: 0.28; }
.final-icone { margin: 0 auto 30px; width: clamp(90px, 12vw, 120px); height: auto; filter: drop-shadow(0 24px 50px rgba(45, 111, 224, 0.6)); }
.final-titre { font-size: clamp(2.75rem, 7.5vw, 5.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--arete); background: #03050a; }
.pied-dedans { max-width: var(--largeur); margin: 0 auto; padding: 36px var(--gouttiere) 48px; display: grid; gap: 16px; }
.pied-marque { display: flex; align-items: center; gap: 9px; font-size: 1rem; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied-liens a { color: var(--encre-2); text-decoration: none; font-size: 0.8125rem; }
.pied-liens a:hover { color: var(--encre); text-decoration: underline; }
.pied-mention { font-size: 0.75rem; color: var(--encre-3); line-height: 1.6; max-width: 52rem; }

/* ---------- Apparitions au défilement ----------
   Visible par défaut ; masqué seulement si le script tourne. */
.js .reveal { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(10px); transition: opacity 900ms var(--sortie), transform 1000ms var(--sortie), filter 900ms var(--sortie); transition-delay: var(--d, 0ms); }
.js .reveal.vu { opacity: 1; transform: none; filter: none; }

/* ---------- Écrans moyens et téléphones ---------- */
@media (max-width: 980px) {
  .nav-liens { display: none; }
  .nav-compte { margin-left: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c-grille, .c-groupe, .c-reprise { grid-column: span 2; grid-row: auto; }
  .c-espaces, .c-comptes, .c-notif, .c-forfait, .c-permission { grid-column: span 1; grid-row: auto; }
  .et-aussi { grid-template-columns: repeat(2, 1fr); }
  .prive-points { grid-template-columns: 1fr; gap: 24px; }
  .etapes { grid-template-columns: 1fr; }
  .requis ul { grid-template-columns: repeat(2, 1fr); }
  .dmg-tete { flex-direction: column; align-items: flex-start; }
  .dmg-tete .bouton { margin-left: 0; }
  #notif { right: 20px; }
}
@media (max-width: 640px) {
  .nav-dedans { gap: 16px; }
  .nav .bouton-mini { margin-left: 0; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .bento > .carte { grid-column: auto; }
  .carte { padding: 24px; border-radius: 24px; }
  .et-aussi, .requis ul { grid-template-columns: 1fr; gap: 28px; }
  .commande { flex-direction: column; align-items: stretch; padding: 18px; }
  .copier { justify-content: center; }
  .heros-actions { flex-direction: column; gap: 18px; }
  .mini-grille { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); height: 300px; }
  .visuel-reprise { flex-direction: column; align-items: stretch; }
  .dormeurs { min-width: 0; max-width: none; flex: none; }
  .bouton-faux { align-self: flex-start; }
  .dmg-tete .bouton { width: 100%; white-space: normal; text-align: center; padding: 12px 20px; }
  .groupe-barre span { white-space: normal; }
  #notif { display: none; }
  .scene.rognee { overflow: hidden; border-radius: 14px; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
  .scene.rognee .scene-plateau { left: 0; transform: scale(var(--k, 1)); }
  .scene.rognee .tw { transform: none; }
}

/* ---------- Préférences du système ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .halo, .pt.travaille, .curseur { animation: none; }
  .tw { transform: none !important; }
  .js .reveal { transform: none; filter: none; transition: opacity 300ms ease; }
  .acces-merci { animation: none; }
  #notif { transform: none; transition: opacity 300ms ease; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav.defile { background: #0a0d16; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .carte, .pastilles li, .etape, .prive-panneau, .prix, .acces-panneau, .commande, .notif, .bouton-verre { background: #121624; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --encre-2: rgba(255, 255, 255, 0.9); --encre-3: rgba(255, 255, 255, 0.78); --arete: rgba(255, 255, 255, 0.35); --arete-haute: rgba(255, 255, 255, 0.5); }
}
