/* Proposition « Espace » réaliste : une planète en 3D temps réel, la caméra descend en orbite au défilement. */
:root { --ink: #fff; --muted: rgba(255,255,255,.66); --line: rgba(255,255,255,.16); --glass: rgba(6,10,20,.55);
  --font: "Instrument Sans", "Segoe UI", system-ui, sans-serif; --display: "Unbounded", "Arial Black", system-ui, sans-serif; --klein: #002fa7; --klein-lit: #5f7dff; --max: 76rem; --ease-out: cubic-bezier(0.23, 1, 0.32, 1); color-scheme: dark; }
* { box-sizing: border-box; }
html { background: #000; }
body { margin: 0; background: #000; color: var(--ink); font: 400 1.05rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-weight: 500; letter-spacing: -0.035em; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
:focus-visible { outline: 2px solid #9fc4ff; outline-offset: 3px; border-radius: 4px; }
.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; background: radial-gradient(120% 90% at 75% 80%, #0b2a5c 0%, #020611 45%, #000 70%); }
.vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(0,0,0,.55)); }
main, .foot { position: relative; z-index: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.5rem; border-radius: 999px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: .95rem; }
.btn-big { min-height: 62px; padding: 0 2.2rem; font-size: 1.1rem; }
.btn-white { background: #fff; color: #000; }
.btn-ghost { border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); }
@media (hover: hover) and (pointer: fine) { .btn-white:hover { background: #dce8ff; } .btn-ghost:hover { background: rgba(255,255,255,.12); } }

.top { position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 700; font-size: 1.25rem; letter-spacing: .32em; text-decoration: none; }
nav { display: flex; align-items: center; gap: 1.6rem; }
nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; letter-spacing: .04em; }
.hud { position: fixed; left: 1.25rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); display: flex; gap: 1.4rem; font: 400 .72rem/1 var(--font); letter-spacing: .18em; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }

.ch { min-height: 120vh; display: flex; align-items: center; padding-block: 6rem; }
.eyebrow { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: #9fc4ff; margin-bottom: 1.2rem; }
.ch-hero { min-height: 100vh; align-items: flex-end; padding-bottom: max(10vh, 60px); }
.ch-hero h1 { font-size: clamp(2.8rem, 7.2vw, 6.4rem); font-weight: 400; text-shadow: 0 2px 40px rgba(0,0,0,.6); }
.lead { max-width: 40ch; margin-top: 1.4rem; color: rgba(255,255,255,.82); font-size: 1.15rem; font-weight: 300; text-shadow: 0 1px 20px rgba(0,0,0,.8); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.scroll { color: var(--muted); font-size: .85rem; letter-spacing: .08em; }

.panel { width: min(100%, 30rem); margin-left: auto; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 22px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ch h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.panel h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.list li { display: grid; gap: .15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.list b { font-weight: 500; font-size: 1.15rem; }
.list span { color: var(--muted); font-weight: 300; }

.ch-left h2 { text-shadow: 0 2px 30px rgba(0,0,0,.7); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); margin-top: 2.2rem; }
.card { display: grid; text-decoration: none; border-radius: 16px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 300ms var(--ease-out), border-color 200ms ease; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.card span { display: grid; padding: .9rem 1rem 1.1rem; color: var(--muted); font-size: .9rem; }
.card b { color: #fff; font-weight: 500; font-size: 1.05rem; }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.4); } }
.small { color: var(--muted); font-size: .85rem; margin-top: 1.2rem; }

.offer { padding-block: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .3rem; }
.offer:first-of-type { margin-top: 1rem; }
.offer > p:first-child { font-weight: 500; }
.price { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.price small { font-size: .95rem; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.sub { color: var(--muted); font-weight: 300; font-size: .95rem; }
.hi .price { color: #9fc4ff; }
.tag { margin-left: .4rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid #9fc4ff; color: #9fc4ff; border-radius: 999px; padding: .2rem .55rem; }
.link { display: inline-block; margin-top: 1rem; font-weight: 500; text-decoration: none; }

.ch-end { min-height: 140vh; align-items: flex-start; padding-top: 22vh; text-align: center; }
.ch-end .wrap { display: grid; justify-items: center; }
.ch-end h2 { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 400; text-shadow: 0 2px 40px rgba(0,0,0,.6); }
.ch-end .lead { margin-bottom: 2rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem 0 calc(3.5rem + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .85rem; }
.legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hide-s { display: none; }
  .ch { min-height: 110vh; }
  .panel { margin-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .card { grid-template-columns: 42% 1fr; align-items: center; }
  .card img { height: 100%; }
  .hud { gap: 1rem; font-size: .62rem; }
}
.top { background: linear-gradient(rgba(0,0,0,.82), rgba(0,0,0,.45) 70%, transparent); }

.pin-label { position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none; padding: .45rem .8rem; border-radius: 999px; background: rgba(255,255,255,.95); color: #05070d; font: 600 .85rem/1 var(--font); white-space: nowrap; opacity: 0; transform: translate(-50%, -150%); box-shadow: 0 8px 30px rgba(0,0,0,.5); will-change: transform, opacity; }
.pin-label::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.ch-end { min-height: 150vh; }

/* Charte DESN dans l'espace */
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: .98; }
.ch-hero h1, .ch-end h2 { font-weight: 800; }
em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.grad { background: linear-gradient(100deg, #fff 5%, #9db2ff 50%, var(--klein-lit)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.logo { font: 800 1.45rem/1 var(--display); letter-spacing: -0.05em; }
.logo span { color: var(--klein-lit); }
.btn-klein { background: var(--klein); color: #fff; box-shadow: 0 0 0 1px rgba(95,125,255,.5), 0 10px 40px -10px rgba(0,47,167,.9); }
@media (hover: hover) and (pointer: fine) { .btn-klein:hover { background: #0a3cc7; } }
.eyebrow { color: var(--klein-lit) !important; }
.tag { background: var(--klein) !important; border-color: var(--klein) !important; color: #fff !important; }
.offer.hi .price { color: #fff; }
.price { font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; }
.ch-hero h1 { font-size: clamp(2.3rem, 5.4vw, 5rem); }
.ch-end h2 { font-size: clamp(2.2rem, 5.4vw, 5rem); }
.ch h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }

/* Le texte marque une pause au centre de l'écran pendant que la planète tourne */
.ch { display: block; min-height: 0; height: 190vh; padding: 0; }
.ch > .wrap { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 88px 3.5rem; }
.ch-hero { height: 150vh; }
.ch-hero > .wrap { justify-content: flex-end; padding-bottom: max(9vh, 56px); }
.ch-end { height: 170vh; }
.ch-end > .wrap { justify-content: flex-start; align-items: center; padding-top: 18vh; }
.ch-right .panel { margin-left: auto; }
/* « Vous n'avez rien à faire » : les étapes s'allument une à une */
.list li { grid-template-columns: auto 1fr; column-gap: 1rem; opacity: .72; transition: opacity 300ms ease; }
.list li.on { opacity: 1; }
.list li i { grid-row: span 2; font: 800 1.5rem/1 var(--display); font-style: normal; letter-spacing: -0.04em; color: var(--klein-lit); padding-top: .15rem; min-width: 2.2ch; }
.list b { font: 800 1.25rem/1.1 var(--display); letter-spacing: -0.03em; }
.todo-bar { height: 3px; margin-top: 1.4rem; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.todo-bar i { display: block; height: 100%; background: var(--klein-lit); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .ch-right .panel, .panel { margin-left: 0; background: rgba(4,8,18,.62); }
  .ch-left > .wrap { justify-content: flex-end; }
  .ch-hero h1, .ch-end h2 { text-shadow: 0 2px 30px rgba(0,0,0,.9); }
}
@media (prefers-reduced-motion: reduce) { .ch, .ch-hero, .ch-end { height: auto; } .ch > .wrap { position: relative; height: auto; min-height: 100vh; } .list li { opacity: 1; } }

.ch-end > .wrap { padding-bottom: 0; }
.ch-end .foot { margin-top: auto; width: 100%; text-align: left; }

.ch-left .panel { margin-left: 0; }
@media (max-width: 860px) { .ch-offres > .wrap { justify-content: center; } }

/* Fin : un voile sombre derrière le texte pour qu'il reste lisible sur la Terre */
.ch-end > .wrap { background: radial-gradient(ellipse 75% 42% at 50% 30%, rgba(0,0,0,.72), rgba(0,0,0,.35) 55%, transparent 75%); width: 100%; max-width: none; }
.ch-end .lead { color: #fff; }
.ch-end .foot { padding-inline: max(1.25rem, (100% - var(--max)) / 2); }

/* Fluidité sur téléphone : pas de flou derrière les panneaux (très coûteux au défilement) */
@media (max-width: 860px), (hover: none) {
  .panel, .card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5,9,20,.84); }
  .top { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.gl { transform: translateZ(0); }

/* Faire tourner la Terre en haut de l'accueil */
.ch-hero.can-spin { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.ch-hero.spinning { cursor: grabbing; }
.ch-hero .btn { cursor: pointer; }
.spin-hint { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; letter-spacing: .08em; }
.spin-hint::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: radial-gradient(circle, #fff 2px, transparent 3px); animation: spinhint 2.4s var(--ease-out) infinite; }
@keyframes spinhint { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .spin-hint { display: none; } }
.nav-links { display: contents; }
@media (max-width: 860px) { .top { background: rgba(0,0,0,.85); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Au doigt, la Terre tourne de gauche à droite et la page défile ; à la souris, dans tous les sens */
.ch-hero { position: relative; }
.spin-zone { position: absolute; inset: 0; z-index: 0; touch-action: pan-y; }
.ch-hero > .wrap { position: relative; z-index: 1; }

/* Accueil sur téléphone : moins de texte en haut */
.lead-s { display: none; }
@media (max-width: 600px) {
  .ch-hero .eyebrow, .ch-hero .scroll { display: none; }
  .ch-hero .lead-l { display: none; }
  .ch-hero .lead-s { display: inline; }
  .ch-hero .cta { gap: 1.1rem; }
}

/* Taille stable : la barre d'adresse du téléphone ne fait plus redimensionner (et clignoter) la Terre */


/* Pied de page sous l'animation, sur fond noir */
.site-foot { position: relative; z-index: 25; background: #000; border-top: 1px solid rgba(255,255,255,.1); }
.site-foot .foot { padding: 1.6rem 0 calc(1.6rem + env(safe-area-inset-bottom, 0px)); }

/* Apparition en fondu de la Terre une fois chargée */
.gl { opacity: 0; transition: opacity 900ms ease; }
.gl-ready .gl { opacity: 1; }

