/* =========================================================
   Nebulae · Piste A « Terminal stellaire »
   Couche de thème chargée après site.css : nuit profonde, galaxie ASCII,
   titres très grands et serrés, étiquettes en monospace, un seul accent orange.
   ========================================================= */

/* Polices hébergées sur le site (SIL OFL, licences dans /fonts) */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; 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: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); font-weight: 100 800; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; 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; }

:root {
  --vide: #07080D;
  --vide-2: #0B0C13;
  --carte-a: #0F1119;
  --carte-a2: #151724;
  --grille: #1D1F2B;
  --lumiere: #E6E4EF;
  --muet: #9A98AE;

  --nuit: #07080D;
  --nuit-2: #0F1119;
  --nuit-3: #151724;
  --nuit-4: #262838;
  --creme: #E6E4EF;
  --creme-2: #0F1119;
  --creme-3: #1D1F2B;
  --ligne: #23253A;
  --gris: #8F8DA3;
  --gris-f: #9A98AE;
  --orange: #FF7A1A;
  --orange-h: #FF923F;
  --orange-texte: #FF7A1A;
  --violet: #9B8CFF;
  --violet-2: #9B8CFF;
  --violet-3: #9B8CFF;

  --f-titre: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-texte: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r-carte: 10px;
  --r-grande: 14px;
  --r-champ: 6px;
  --r-pilule: 6px;
  --ombre: 0 30px 60px -30px rgba(0, 0, 0, .8);
  --ombre-douce: 0 0 0 1px var(--ligne);
}

body { background: var(--vide); color: var(--lumiere); font-size: 16.5px; }
::selection { background: var(--orange); color: var(--vide); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-stretch: normal; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
h1 { font-size: clamp(46px, 7.4vw, 108px); letter-spacing: -.055em; line-height: .95; }
h2 { font-size: clamp(34px, 5vw, 68px); line-height: .98; }
h3 { letter-spacing: -.03em; line-height: 1.1; }
.surtitre { font-size: 11px; letter-spacing: .12em; color: var(--muet); gap: 8px; }
.surtitre::before { width: 7px; height: 7px; border-radius: 0; box-shadow: none; background: var(--orange); }
.surtitre.violet::before { background: var(--violet); }
.sombre .surtitre, .hero .surtitre, .surtitre.violet, .sombre .surtitre.violet { color: var(--muet); }
.chapeau { color: var(--muet); }
.legende { color: var(--gris); }
p { color: inherit; }

/* ---------- Sections : tout en nuit, séparées par des filets ---------- */
.clair, .clair-2, .sombre { background: var(--vide); color: var(--lumiere); }
.clair-2 { background: var(--vide-2); }
.section { border-top: 1px solid var(--grille); }
.entete-section p, .sombre .entete-section p { color: var(--muet); }
.clair a:not(.btn), .clair-2 a:not(.btn) { color: var(--lumiere); }

/* ---------- Boutons ---------- */
.btn { font-family: var(--f-texte); font-weight: 500; font-size: 14.5px; padding: 12px 18px; letter-spacing: 0; }
.btn:hover { transform: none; }
.btn-orange { background: var(--orange); color: var(--vide); }
.btn-orange:hover { background: var(--orange-h); }
.btn-ghost, .btn-ligne { background: transparent; border: 0; border-bottom: 1px solid var(--orange); border-radius: 0; padding: 12px 2px; color: var(--lumiere); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; backdrop-filter: none; }
.btn-ghost:hover, .btn-ligne:hover { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-creme { background: var(--lumiere); color: var(--vide); }
.btn-violet { background: var(--violet); color: var(--vide); }
.btn-nuit { background: var(--carte-a2); color: var(--lumiere); border: 1px solid var(--ligne); }
.lien-fleche { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; border-color: var(--orange); }
.lien-fleche:hover, .sombre .lien-fleche:hover { color: var(--orange); }

/* ---------- En-tête ---------- */
.entete::before { background: rgba(7, 8, 13, .86); border-bottom: 1px solid var(--grille); }
.nav-lien { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muet); border-radius: 4px; }
.nav-lien:hover, .nav-lien[aria-expanded="true"], .nav-lien.actif { color: var(--lumiere); background: rgba(230, 228, 239, .06); }
.point-orbit, .point-gravity { border-radius: 0; box-shadow: none; }
.nav-lien .point { border-radius: 0; width: 6px; height: 6px; }
.sous-menu { background: rgba(11, 12, 19, .98); border-color: var(--ligne); border-radius: 10px; }
.sous-menu .ico { border-radius: 4px; }
.burger { border-radius: 4px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.panneau-mobile { background: var(--vide); }
.panneau-mobile li a { font-weight: 500; letter-spacing: -.03em; font-size: 24px; }

/* ---------- Héros : galaxie ASCII ---------- */
.hero { background: var(--vide); }
.hero::after { background: linear-gradient(180deg, rgba(7, 8, 13, .7) 0%, rgba(7, 8, 13, .2) 40%, rgba(7, 8, 13, .95) 100%); }
.hero.accueil { min-height: min(100vh, 980px); align-items: center; }
.hero.accueil::after { background: linear-gradient(90deg, rgba(7, 8, 13, .96) 0%, rgba(7, 8, 13, .72) 38%, rgba(7, 8, 13, .05) 68%), linear-gradient(180deg, rgba(7, 8, 13, .6) 0%, transparent 22%, transparent 78%, var(--vide) 100%); }
.galaxie { position: absolute; inset: 0; z-index: -2; margin: 0; overflow: hidden; white-space: pre; font: 11px/11px var(--f-mono); color: #3E4260; user-select: none; pointer-events: none; }
.galaxie i { font-style: normal; color: var(--orange); }
.galaxie u { text-decoration: none; color: var(--violet); }
.hero h1 { max-width: 13ch; text-shadow: none; margin-bottom: 26px; }
.hero.accueil h1::after { content: ""; display: inline-block; width: .42em; height: .78em; margin-left: .06em; vertical-align: -.04em; background: var(--orange); animation: curseur 1.05s steps(1) infinite; }
@keyframes curseur { 50% { opacity: 0; } }
.hero .chapeau { color: var(--muet); max-width: 560px; font-size: clamp(17px, 1.4vw, 19px); }
.pastille { border: 0; background: none; backdrop-filter: none; padding: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muet); margin-bottom: 26px; }
.pastille .point { border-radius: 0; box-shadow: none; width: 7px; height: 7px; }
.hero-preuves { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muet); gap: 10px 28px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--grille); max-width: 640px; }
.hero-preuves span::before { content: "▪"; }
.credit-photo { display: none; }
.hero.gravity .galaxie i { color: var(--violet); }
.hero.gravity .galaxie u { color: #6B5FD0; }
.hero.court { min-height: 460px; padding-bottom: 64px; }
.hero.court::after, .hero.voile-fort::after { background: linear-gradient(90deg, rgba(7, 8, 13, .96) 0%, rgba(7, 8, 13, .75) 45%, rgba(7, 8, 13, .15) 75%), linear-gradient(180deg, rgba(7, 8, 13, .5) 0%, transparent 25%, transparent 75%, var(--vide) 100%); }
.hero.court h1 { font-size: clamp(40px, 5.6vw, 80px); max-width: 16ch; }
.hero-coord { position: absolute; right: 24px; bottom: 22px; font: 11px/1.7 var(--f-mono); color: #7A788F; text-align: right; text-transform: uppercase; letter-spacing: .08em; z-index: 1; }
.hero-coord b { color: var(--orange); font-weight: 400; }
@media (max-width: 760px) { .hero-coord { display: none; } .galaxie { opacity: .55; } }

/* ---------- Chiffres ---------- */
.chiffres { gap: 0; border: 1px solid var(--ligne); border-radius: var(--r-carte); overflow: hidden; }
.chiffre, .sombre .chiffre { background: var(--vide); border: 0; border-radius: 0; border-right: 1px solid var(--ligne); padding: 30px 28px; }
.chiffre:last-child { border-right: 0; }
.chiffre .valeur { font-stretch: normal; font-weight: 500; letter-spacing: -.06em; font-size: clamp(54px, 6.4vw, 92px); color: var(--lumiere); }
.chiffre .valeur::after { content: "."; color: var(--orange); }
.chiffre p { color: var(--muet); font-size: 16px; }
.chiffre .source { font-size: 11px; color: #6E6C84; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 640px) { .chiffre { border-right: 0; border-bottom: 1px solid var(--ligne); } .chiffre:last-child { border-bottom: 0; } }

/* ---------- Film ---------- */
.cadre-film { border-radius: var(--r-grande); border: 1px solid var(--ligne); box-shadow: 0 0 0 6px var(--vide-2), 0 0 0 7px var(--grille); }

/* ---------- Orbites (ex-cercles) ---------- */
.cercles-zone::before, .cercles-zone::after { opacity: .28; filter: blur(90px); }
.cercle { mix-blend-mode: normal; }
.cercle.orbit { background: radial-gradient(circle at 35% 35%, rgba(255, 122, 26, .16), rgba(255, 122, 26, .03) 70%); border: 1px solid rgba(255, 122, 26, .7); box-shadow: none; }
.cercle.nebulae { background: rgba(7, 8, 13, .55); border: 1px dashed rgba(230, 228, 239, .45); box-shadow: none; backdrop-filter: blur(4px); }
.cercle.gravity { background: radial-gradient(circle at 65% 35%, rgba(155, 140, 255, .18), rgba(155, 140, 255, .03) 70%); border: 1px solid rgba(155, 140, 255, .75); box-shadow: none; }
.cercle .nom { font-stretch: normal; font-weight: 500; letter-spacing: -.05em; font-size: clamp(30px, 3vw, 42px); }
.cercle .verbe { font-size: 11px; letter-spacing: .14em; }
.cercle.orbit .verbe { color: var(--orange); }
.cercle.gravity .verbe { color: var(--violet); }
.cercle p { color: var(--muet); }
.cercles-zone .slogan { font-stretch: normal; font-weight: 500; letter-spacing: -.05em; font-size: clamp(36px, 5.4vw, 76px); }

/* ---------- Parcours ---------- */
.parcours-section .fond-image { opacity: .07; filter: grayscale(1); }
.parcours-section::after { background: linear-gradient(180deg, var(--vide) 0%, rgba(7, 8, 13, .7) 30%, rgba(7, 8, 13, .7) 70%, var(--vide) 100%); }
.parcours { gap: 0; border: 1px solid var(--ligne); border-radius: var(--r-carte); overflow: hidden; }
.parcours::before { display: none; }
.parcours li { background: rgba(11, 12, 19, .82); border: 0; border-right: 1px solid var(--ligne); border-radius: 0; padding: 70px 24px 28px; backdrop-filter: blur(6px); }
.parcours li:last-child { background: var(--orange); border-right: 0; }
.parcours li::before { border-radius: 0; width: auto; height: auto; padding: 0; background: none; border: 0; top: 24px; left: 24px; font-size: 11px; letter-spacing: .12em; content: "▪ ÉTAPE 0" counter(etape); }
.parcours li:last-child::before { background: none; color: var(--vide); }
.parcours strong { font-weight: 500; letter-spacing: -.04em; font-size: 26px; }
.parcours span { color: var(--muet); }
@media (max-width: 900px) { .parcours li { border-bottom: 1px solid var(--ligne); } }

/* ---------- Présentoir des offres ---------- */
.onglet { background: var(--vide); border-color: var(--ligne); border-radius: var(--r-carte); }
.onglet .num { border-radius: 4px; background: var(--carte-a2); font-size: 12px; }
.onglet strong { font-weight: 500; letter-spacing: -.04em; font-size: 26px; }
.onglet span.desc { color: var(--muet); }
.onglet[aria-selected="true"] { border-color: var(--orange); box-shadow: inset 3px 0 0 var(--orange); background: var(--carte-a); }
.onglet.gravity[aria-selected="true"] { border-color: var(--violet); box-shadow: inset 3px 0 0 var(--violet); }
.onglet.pack[aria-selected="true"] { border-color: var(--lumiere); box-shadow: inset 3px 0 0 var(--lumiere); }
.onglet[aria-selected="true"].pack .num { background: var(--lumiere); color: var(--vide); }
.panneau-offre { background: var(--carte-a); border: 1px solid var(--ligne); box-shadow: none; }
.panneau-offre::before { opacity: .45; }
.panneau-offre h3 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.045em; }
.prix-ligne b { font-weight: 500; letter-spacing: -.04em; }
ul.coches li::before { border-radius: 0; width: 7px; height: 7px; top: 9px; left: 4px; background: var(--orange); }
.gravity ul.coches li::before, ul.coches.violet li::before { background: var(--violet); }
ul.coches li { padding-left: 24px; }

/* ---------- Tableaux de bord : cadres façon console ---------- */
.tdb { background: var(--vide); border-color: var(--ligne); border-radius: var(--r-carte); }
.tdb-entete { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.tdb-entete .badge { border-radius: 3px; }
.kpi, .graphe { background: var(--carte-a); border: 1px solid var(--grille); border-radius: 6px; }
.kpi b { font-weight: 500; letter-spacing: -.04em; }
.barres div { border-radius: 2px; }
.lignes-h div i, .lignes-h div i::after { border-radius: 0; }

/* ---------- Cartes génériques et blocs blancs → nuit ---------- */
.carte, .citation, .flux li, .jalon-carte, .tableau-defile, .carte-form, .apercu-rapport, .carte-ress, .tarif, .en-bref, .sommaire, .bloc-auteur, .associe, .etapes-num li, .liste-liens a, .filtre, .duel .sans { background: var(--carte-a); border-color: var(--ligne); }
.chaine span, .duel .avec .chaine span { background: var(--vide); border-color: var(--ligne); border-radius: 4px; font-weight: 500; }
.chaine span.barre { color: #7C7A92; }
.duel .sans { border: 1px dashed #3A3C52; }
.duel > div { border-radius: var(--r-grande); }
.duel .avec { background: var(--carte-a2); border: 1px solid var(--ligne); }
.duel .etiquette { border-radius: 3px; }
.flux li:last-child { background: var(--violet); border-color: var(--violet); color: var(--vide); }
.flux li:last-child p { color: #231C4D; }
.flux strong { font-weight: 500; letter-spacing: -.03em; }
.flux li:not(:last-child)::after { border-top-color: var(--violet); }
.flux-boucle { color: var(--violet); }
.sommaire .btn-orange, .prose .btn-orange, .cta-article .btn-orange { color: var(--vide); }
.sommaire a.btn:hover { color: var(--vide); }
.page-texte p, .page-texte li { color: var(--muet); }
.page-texte a { color: var(--orange); }
.carte p, .carte-ress p, .associe p, .flux p, .jalon p { color: var(--muet); }
.champ input, .champ textarea, .champ select, .recherche-ress input { background-color: var(--vide); border-color: var(--ligne); color: var(--lumiere); }
.champ input:focus, .champ textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, .2); }
.case { color: var(--muet); }
.filtre[aria-pressed="true"] { background: var(--lumiere); color: var(--vide); border-color: var(--lumiere); }
.tag { background: var(--carte-a2); color: var(--lumiere); border-radius: 3px; }
.comparatif th, .comparatif td { border-color: var(--grille); }
.comparatif thead th { background: var(--carte-a2); color: var(--lumiere); font-weight: 500; }
.comparatif thead th:last-child { background: var(--orange); color: var(--vide); }

/* ---------- Bloc pré-audit ---------- */
.preaudit-bloc .delai { font-weight: 500; letter-spacing: -.03em; }
.apercu-rapport { border-radius: var(--r-grande); box-shadow: none; }
.apercu-rapport .badge-exemple { background: var(--orange); color: var(--vide); border-radius: 3px; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.anneau { background: conic-gradient(var(--orange) calc(var(--s) * 1%), var(--grille) 0); }
.anneau b { background: var(--carte-a); font-weight: 500; }
.apercu-rapport .lignes-r div { background: var(--vide); border: 1px solid var(--grille); border-radius: 4px; }
.apercu-rapport .oui { color: #7EE787; } .apercu-rapport .non { color: #FF8A7A; }

/* ---------- Logos ---------- */
.logos-rangee img { filter: grayscale(1) brightness(0) invert(1); opacity: .55; }
.logos-rangee img:hover { opacity: 1; }

/* ---------- FAQ ---------- */
.faq, .faq details { border-color: var(--ligne); }
.faq summary { font-weight: 500; letter-spacing: -.02em; font-size: clamp(18px, 1.6vw, 22px); }
.faq summary::after { border-radius: 3px; border-color: var(--ligne); }
.faq .reponse { color: var(--muet); }

/* ---------- CTA final ---------- */
.cta-final .fond-image img { opacity: .22; filter: grayscale(1); }
.cta-final::after { background: radial-gradient(ellipse at center, rgba(7, 8, 13, .4), var(--vide) 72%); }
.cta-final h2 { font-size: clamp(42px, 6.4vw, 96px); max-width: 14ch; }
.cta-final p { color: var(--muet); }

/* ---------- Rappel, bandeau, pied ---------- */
.rappel { background: var(--carte-a); border-color: var(--ligne); border-radius: var(--r-carte); }
.rappel strong { font-weight: 500; letter-spacing: -.03em; }
.bandeau-apercu { background: var(--orange); color: var(--vide); }
.pied { background: #050609; border-top: 1px solid var(--grille); }
.pied-lettre h2 { font-weight: 500; letter-spacing: -.04em; font-size: 30px; }
.form-lettre input[type=email], .form-lettre input[type=text] { border-radius: var(--r-champ); background: var(--vide); border-color: var(--ligne); }
.pied-bas { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }

/* ---------- Vidéos : version ASCII qui se dissout à l'écran ---------- */
.cadre-film { position: relative; }
.film-ascii { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.cadre-film::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(7, 8, 13, .22) 0 1px, transparent 1px 3px); opacity: .5; transition: opacity 1.2s ease; }
.cadre-film:has(.film-ascii[style*="hidden"])::after { opacity: 0; }
.film-son { position: absolute; z-index: 4; top: 14px; right: 14px; font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--lumiere); background: rgba(7, 8, 13, .72); border: 1px solid var(--grille); border-radius: 4px; padding: 8px 12px; cursor: pointer; backdrop-filter: blur(6px); }
.film-son::before { content: "▪ "; color: var(--orange); }
.film-son:hover { border-color: var(--orange); }
.film-son[hidden] { display: none; }

/* ---------- Apparition au défilement, plus ample ---------- */
.apparait { transform: translateY(34px); filter: blur(6px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s ease; }
.apparait.vu { filter: none; }
@media (prefers-reduced-motion: reduce) { .apparait { filter: none; transform: none; } }

/* ---------- Bandeau clients : une rangée sous le héros ---------- */
.bandeau-logos { padding: 14px 0; border-top: 1px solid var(--grille); background: var(--vide); }
.bandeau-logos .logos-zone { gap: 0; }
.bandeau-logos .logos-rangee ul { gap: 52px; align-items: center; }
.bandeau-logos .logos-rangee img { width: 96px; height: 26px; }
@media (max-width: 620px) { .bandeau-logos { padding: 12px 0; } .bandeau-logos .logos-rangee ul { gap: 36px; } .bandeau-logos .logos-rangee img { width: 84px; height: 24px; } }
