/* DeadLoop — orbit.css : le vocabulaire commun des pages en orbite.
   Tokens de la home, nav, stations, plaques de verre, formulaires, pied de page. */
:root { --bg: #050510; --accent: #00c8ff; --accent-rgb: 0,200,255; --text: #d8d8e8; --muted: #8a8aaa; --faint: #6a6a88; --border: rgba(255,255,255,0.08); --amber: #e8a04a; }

/* voile de passage entre les pages (orbit.js) : noir à l'arrivée, noir au départ */
#orbit-veil { position: fixed; inset: 0; z-index: 9999; background: var(--bg); pointer-events: none; opacity: 1; transition: opacity .7s ease; }
#orbit-veil.gone { opacity: 0; }
#orbit-veil.gone.on, #orbit-veil.on { opacity: 1; transition: opacity .5s ease-in; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { #orbit-veil { transition: none; } }

/* sans three.js ni WebGL (ou sans JavaScript) : une page normale, tout visible */
html.no-orbit #ui-root { position: static; transform: none !important; }
html.no-orbit #scroll-spacer, html.no-orbit #three-canvas { display: none; }
html.no-orbit .station .station-inner > * { opacity: 1 !important; transform: none !important; }
html.no-orbit .station { min-height: 0; padding-top: 110px; padding-bottom: 40px; }
html.no-orbit body.powered .power i, html.no-orbit .power i { background: var(--amber); }
.orbit-still { display: block; width: auto; max-width: min(100%, 560px); max-height: 70vh; height: auto; margin-top: 26px; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
html[data-world="mars"] { --accent: #ff7a40; --accent-rgb: 255,122,64; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
#space-bg { position: fixed; inset: -10%; z-index: 0; background: radial-gradient(ellipse at 78% 62%, rgba(var(--accent-rgb),0.10), transparent 45%), radial-gradient(ellipse at 15% 20%, rgba(110,63,255,0.08), transparent 50%), #050510; animation: nebula 40s ease-in-out infinite alternate; }
html[data-world="mars"] #space-bg { background: radial-gradient(ellipse at 78% 62%, rgba(255,90,40,0.12), transparent 45%), radial-gradient(ellipse at 15% 20%, rgba(120,40,20,0.10), transparent 50%), #060408; }
@keyframes nebula { from { transform: translate(0, 0) scale(1); } to { transform: translate(-3%, 2%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { #space-bg { animation: none; } }
#three-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 1; }
/* Le texte glisse avec le MÊME lissage que la caméra : le document ne scrolle qu'un espaceur,
   orbit.js translate #ui-root chaque image. */
#ui-root { position: fixed; top: 0; left: 0; right: 0; z-index: 2; will-change: transform; }
.ui { pointer-events: none; }
.ui a, .ui button, .ui input, .ui label, .ui details, .ui summary, .ui textarea, .ui select { pointer-events: auto; }

/* nav : la même que la home */
.brand-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; background: linear-gradient(rgba(5,5,16,0.85), rgba(5,5,16,0)); }
.brand-nav img { height: 40px; display: block; }
.brand-nav-links { display: flex; gap: 26px; align-items: center; }
.brand-nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.brand-nav-links a:hover, .brand-nav-links a[aria-current] { color: #fff; }

/* le vocabulaire typographique de la home : étiquettes espacées, Space Grotesk */
.label { font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #fff; }
.label small { display: block; font-family: 'Inter', sans-serif; font-size: 0.65rem; letter-spacing: 0.5px; text-transform: none; color: var(--muted); font-weight: 400; margin-top: 4px; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.5px; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.05rem; letter-spacing: 0; color: #fff; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
p { color: var(--muted); line-height: 1.7; max-width: 44ch; font-weight: 300; }
a { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.5px; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s, opacity .15s; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-fill { background: #fff; color: #050510; }
.btn-ghost { border-color: rgba(255,255,255,0.22); color: #fff; background: rgba(5,5,16,0.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-accent { background: var(--accent); color: #050510; }

/* hero : texte à gauche, l'objet vit dans le canvas à droite */
.station { min-height: 100vh; display: grid; align-items: center; padding: 0 clamp(20px, 6vw, 96px); }
.station-inner { max-width: 520px; }
.hero .station-inner { max-width: 560px; }
.hero .label { margin-bottom: 18px; }
.hero h1 { margin-bottom: 18px; }
.hero p { margin-bottom: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.note { font-size: 0.72rem; color: var(--faint); letter-spacing: 0.3px; }
.power { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font-family: 'Space Grotesk', sans-serif; font-size: 0.68rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.power i { width: 8px; height: 8px; border-radius: 50%; background: #3a3a52; box-shadow: 0 0 0 0 rgba(232,160,74,0); transition: background .3s, box-shadow .6s; }
body.powered .power i { background: var(--amber); box-shadow: 0 0 14px 2px rgba(232,160,74,0.6); }
body.powered .power span::after { content: 'Systems nominal'; }
.power span::after { content: 'Powering up'; }
.telemetry { display: block; margin-top: 10px; font-family: 'Space Grotesk', sans-serif; font-size: 0.62rem; letter-spacing: 2px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* stations : le texte d'un côté, la capture flotte dans le canvas de l'autre */
.station.right .station-inner { margin-left: auto; text-align: left; }
.station.center .station-inner { margin: 0 auto; text-align: center; max-width: 640px; }
.station.center p { margin-left: auto; margin-right: auto; }
.station .station-inner > * { transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.station:not(.active) .station-inner > * { opacity: 0; transform: translateY(18px); }
.station .station-inner > *:nth-child(2) { transition-delay: .08s; } .station .station-inner > *:nth-child(3) { transition-delay: .16s; } .station .station-inner > *:nth-child(4) { transition-delay: .24s; } .station .station-inner > *:nth-child(5) { transition-delay: .32s; } .station .station-inner > *:nth-child(6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .station:not(.active) .station-inner > * { opacity: 1; transform: none; } }
.station .label { margin-bottom: 14px; }
.station h2 { margin-bottom: 14px; }
.station ul { list-style: none; margin-top: 14px; display: grid; gap: 6px; color: var(--muted); font-size: 0.9rem; font-weight: 300; }
.station-inner li { position: relative; padding-left: 26px; }
.station-inner li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 16px; height: 1px; background: var(--accent); opacity: .7; }
.wide { width: 100%; }

/* plaques : verre sombre sur l'espace */
.glass { background: rgba(8, 8, 24, 0.62); border: 1px solid var(--border); border-radius: 12px; backdrop-filter: blur(10px); }
.specs { display: grid; grid-template-columns: repeat(6, 1fr); max-width: 1100px; margin: 0 auto; }
.specs.four { grid-template-columns: repeat(4, 1fr); max-width: 860px; }
.spec { padding: 26px 18px 22px; border-right: 1px solid var(--border); }
.spec:last-child { border-right: 0; }
.spec b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1; }
.spec span { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.5px; }
.pricing { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.price-main { padding: 40px; border-right: 1px solid var(--border); }
.price-main b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 4.4rem; font-weight: 700; color: #fff; line-height: 1; }
.price-main p { margin: 10px 0 24px; }
.offer { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif; }
.offer[hidden] { display: none; }
.offer s { color: var(--muted); font-size: 1.3rem; }
.offer span { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(232,160,74,0.4); border-radius: 999px; padding: 4px 10px; }
.price-side { padding: 40px; }
.price-side ul { list-style: none; display: grid; gap: 9px; color: var(--muted); font-size: 0.9rem; font-weight: 300; }
.price-side li::before { content: '\2713'; color: var(--accent); margin-right: 10px; }
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 500; color: #fff; line-height: 1.25; }
.quote .who { margin-top: 16px; font-size: 0.8rem; color: var(--muted); }
.quote .who a { color: var(--accent); }

/* cartes (les autres mondes), puces, questions */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
.card { display: block; text-decoration: none; color: inherit; overflow: hidden; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(var(--accent-rgb),0.5); transform: translateY(-2px); }
.card img { width: 100%; height: 190px; object-fit: cover; display: block; border-bottom: 1px solid var(--border); background: #000; }
.card-body { padding: 20px 22px 22px; }
.card-body .label { margin-bottom: 8px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 0.85rem; max-width: none; margin-bottom: 12px; }
.card-body .cta { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-family: 'Space Grotesk', sans-serif; font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; background: rgba(8,8,24,0.5); }
.chip b { color: var(--accent); font-weight: 600; margin-right: 6px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--border); padding: 16px 20px; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: #fff; font-size: 0.95rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: '\2013'; }
.faq p { margin-top: 10px; font-size: 0.88rem; max-width: none; }

/* formulaires : une seule ligne de verre */
.form-row { display: flex; gap: 8px; margin-bottom: 12px; max-width: 520px; }
.form-row input[type="email"], .form-row input[type="text"] { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.16); background: rgba(8,8,24,0.7); color: #fff; font-family: inherit; font-size: 0.9rem; outline: none; transition: border-color .15s; }
.form-row input:focus { border-color: var(--accent); }
.form-row input::placeholder { color: var(--faint); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.74rem; color: var(--muted); max-width: 520px; line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.form-error { color: #ff6b6b; font-size: 0.8rem; margin-top: 8px; min-height: 1.2em; }
.dl-links { display: none; }
.dl-links.visible { display: block; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.dl-ready { display: inline-flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: #fff; margin-bottom: 4px; }
.dl-ready i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #050510; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 0.8rem; }

/* newsletter au-dessus du pied de page (orbit.js) */
.nl-strip { position: relative; pointer-events: auto; max-width: 960px; margin: 0 auto 56px; padding: 26px 28px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 8px 28px; align-items: center; }
.nl-text { display: grid; gap: 6px; }
.nl-text b { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; color: #fff; }
.nl-text span { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.nl-form { margin: 0; max-width: none; }
.nl-msg { grid-column: 2; font-size: 0.8rem; min-height: 1.2em; }
.nl-msg.ok { color: #3ddc97; } .nl-msg.err { color: #ff6b6b; }
.nl-strip > a { grid-column: 2; font-size: 0.72rem; color: var(--faint); }
@media (max-width: 767px) { .nl-strip { grid-template-columns: 1fr; margin: 0 16px 40px; } .nl-msg, .nl-strip > a { grid-column: 1; } }
footer { pointer-events: auto; padding: 40px clamp(20px, 6vw, 96px); font-size: 0.75rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; border-top: 1px solid var(--border); background: rgba(5,5,16,0.7); }
footer a { color: var(--muted); text-decoration: none; margin-left: 22px; }
footer a:hover { color: #fff; }

@media (max-width: 767px) {
  .station { padding-top: 56vh; align-items: start; }
  .hero.station { padding-top: 12vh; }
  .station.right .station-inner { margin-left: 0; }
  .station.center { padding-top: 10vh; }
  .specs, .specs.four { grid-template-columns: repeat(3, 1fr); }
  .spec { border-bottom: 1px solid var(--border); }
  .spec:nth-child(3n) { border-right: 0; }
  .pricing { grid-template-columns: 1fr; }
  .price-main { border-right: 0; border-bottom: 1px solid var(--border); }
  .cards { grid-template-columns: 1fr; }
  .brand-nav { padding: 12px 16px; }
  .brand-nav img { height: 32px; }
  .brand-nav-links { gap: 12px; }
  .brand-nav-links a { font-size: 12.5px; }
  .brand-nav-links a.btn { padding: 7px 11px !important; font-size: 12px; white-space: nowrap; }
  /* on est déjà sur ce monde : sa place revient au bouton d'action */
  .brand-nav-links a[aria-current] { display: none; }
  .form-row { flex-direction: column; }
  p { font-weight: 400; }
  /* la planète passe sous le texte en bas d'écran : une ombre garde les lignes lisibles */
  .station-inner { text-shadow: 0 1px 3px rgba(5,5,16,0.95), 0 0 18px rgba(5,5,16,0.9); }
  .station-inner .btn, .station-inner .glass { text-shadow: none; }
}
/* très petits écrans : on garde le bouton d'action, les mondes passent par l'accueil */
@media (max-width: 380px) { .brand-nav-links a:not(.keep) { display: none; } }
