/* =========================================================
   STYLE.CSS — version remise au propre (même rendu)
   - Triée par sections
   - Dédoublonnage des règles (body, nav, header-inner, logo-block, main)
   - Indentation + commentaires propres
   ========================================================= */


/* ------------------------- RESET ------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* -------------------- BASE / TYPO / LINKS -------------------- */
html,
body {
  height: 100%;
}

/* Scrollbar masquée mais scroll OK */
html,
body {
  overflow-y: auto;
  scrollbar-width: none;     /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge legacy */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;             /* Chrome / Safari */
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------------------- LAYOUT GLOBAL ---------------------- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Rythme vertical global (évite que le contenu colle au footer) */
main {
  padding-top: clamp(3rem, 6vh, 5rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
}

/* Ajustement spécifique */
#acheter {
  margin-bottom: 4rem;
}


/* ------------------ BACKGROUND / ORBS ------------------ */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.65;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, #4ade80, transparent 60%);
}

.orb-2 {
  width: 380px;
  height: 380px;
  top: 120px;
  right: -80px;
  background: radial-gradient(circle at 70% 30%, #22d3ee, transparent 60%);
}

.orb-3 {
  width: 280px;
  height: 280px;
  bottom: -40px;
  left: 40%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 80%, #a855f7, transparent 60%);
}


/* ---------------------- ANIMATIONS ORBS ---------------------- */
@keyframes floaty {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(0, -18px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(18px, 10px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.orb-1 { animation: floaty 9s ease-in-out infinite; }
.orb-2 { animation: drift 11s ease-in-out infinite; }
.orb-3 { animation: floaty 10s ease-in-out infinite; }


/* ------------------------- HEADER ------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;

  padding: 0.9rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: #67e8f9;
  font-weight: 600;
  font-family: orbitron, sans-serif;
}

/* Nav: cachée en mobile, ouverte via burger */
nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

nav a:hover {
  color: #ffffff;
  transition: color 0.15s ease;
}

.btn-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.7);
  background: rgba(34, 211, 238, 0.2);
  color: #e0f2fe;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.5);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-header:hover {
  background: rgba(34, 211, 238, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.7);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch img {
  height: 26px;              /* taille idéale pour un header */
  width: auto;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-switch img:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.char-avatar{
  width: 100px;
  height: 100px;
  border-radius: 999px;      /* rond */
  object-fit: cover;         /* recadrage propre */
  object-position: 50% 15%;  /* centre + un peu vers le haut (visage) */
  border: 1px solid rgba(34,211,238,0.35);
  flex: 0 0 auto;
  background: rgba(0,0,0,0.2);
}

/* ------------------- NOUVELLES / FICHE PRESENTATION ------------------- */
.novella-card{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;

  border-radius: 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 0% 0%, rgba(15,23,42,0.85), rgba(2,6,23,0.95) 60%);
  padding: 1.25rem;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.9);
}

.novella-cover{
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 30px rgba(0,0,0,0.35);
}

.novella-body{
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.novella-kicker{
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #9ca3af;
  font-weight: 700;
}

.novella-title{
  font-size: 1.35rem;
  font-weight: 800;
  color: #f9fafb;
  line-height: 1.2;
}

.novella-subtitle{
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.6;
  opacity: 0.95;
}

.novella-synopsis-label{
  margin-top: 0.3rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(103,232,249,0.85);
  font-weight: 700;
}

.novella-synopsis{
  font-size: 0.95rem;
  color: #e5e7eb;
  line-height: 1.75;
  max-width: 70ch;
}

.novella-cta{
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.novella-note{
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 640px){
  .novella-card{
    grid-template-columns: 1fr;
  }
  .novella-cover{
    max-width: 240px;
    justify-self: center;
  }
}

/* ------------------- GATE MODAL (POPUP DEBLOCAGE) ------------------- */
.gate-backdrop{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  padding: 1.25rem;
}

.gate-modal{
  position: relative;
  max-width: 520px;
  margin: 10vh auto 0 auto;

  border-radius: 1.3rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(circle at 0% 0%, rgba(15,23,42,0.92), rgba(2,6,23,0.98) 65%);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  overflow: hidden;
}

.gate-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(2,6,23,0.55);
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.gate-close:hover{ transform: translateY(-1px); opacity: .95; }

.gate-head{
  padding: 1.1rem 1.1rem 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.gate-kicker{
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #9ca3af;
  font-weight: 700;
}

.gate-title{
  margin-top: 0.35rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: #f9fafb;
}

.gate-subtitle{
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.6;
  opacity: .95;
}

.gate-body{
  padding: 1.1rem;
}

.gate-label{
  display: block;
  font-size: 0.82rem;
  color: #e5e7eb;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.gate-input{
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(2,6,23,0.65);
  color: #f9fafb;
  outline: none;
}
.gate-input:focus{
  border-color: rgba(103,232,249,0.55);
  box-shadow: 0 0 0 4px rgba(103,232,249,0.12);
}

.gate-consent{
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}
.gate-consent input{
  margin-top: 0.2rem;
  transform: scale(1.05);
}

.gate-actions{
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.gate-btn{
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.gate-btn.primary{
  background: linear-gradient(135deg, #e5e7eb, #f9fafb);
  color: #0f172a;
}

.gate-btn.ghost{
  background: rgba(2,6,23,0.55);
  color: #e5e7eb;
}

.gate-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  opacity: .96;
}

.gate-footnote{
  margin-top: 0.85rem;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* ------------------- READER (pagination nouvelle) ------------------- */
.reader-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
}

.reader-meta{
  font-size: 0.8rem;
  color: #cbd5e1;
  opacity: 0.9;
  font-weight: 700;
}

.reader-btn{
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(2,6,23,0.55);
  color: #e5e7eb;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.reader-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  opacity: .96;
}

.reader-btn:disabled{
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.reader-page{
  min-height: 45vh; /* donne une sensation "page" */
}

.reader-bottombar{
  margin-top: 1rem;
}

.reader-progress{
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.reader-progress-bar{
  height: 100%;
  width: 0%;
  background: rgba(103,232,249,0.65);
  transition: width .2s ease;
}
/* Bouton toggle thème (dans la topbar) */
.reader-theme-toggle{
  margin-left: 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(2,6,23,0.55);
  color: #e5e7eb;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.reader-theme-toggle:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  opacity: .96;
}

/* ------------------- MODE JOUR (uniquement lecteur) ------------------- */
/* on cible #bonusBlock.reader.is-day */
/* MODE JOUR UNIQUEMENT SUR LE CONTENU (PAGE) */
.reader-page.is-day{
  background: #fbfbf7;
  color: #0f172a;

  border-radius: 1rem;
  padding: 1.25rem 1.25rem;

  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

/* texte & éléments internes */
.reader-page.is-day p,
.reader-page.is-day li,
.reader-page.is-day div,
.reader-page.is-day span{
  color: #0f172a;
}

.reader-page.is-day a{
  color: #0ea5e9;
}

/* si tu utilises des titres dans le texte */
.reader-page.is-day h1,
.reader-page.is-day h2,
.reader-page.is-day h3{
  color: #0b1220;
}

/* optionnel : citations / italique plus “livre” */
.reader-page.is-day em{
  color: rgba(15,23,42,0.85);
}

.reader.is-day .card-extract-label{
  color: #0f172a;
}

.reader.is-day .reader-meta{
  color: #0f172a;
  opacity: .85;
}

.reader.is-day .reader-btn,
.reader.is-day .reader-theme-toggle{
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.85);
  color: #0f172a;
}

.reader.is-day .reader-progress{
  background: rgba(15,23,42,0.10);
}

.reader.is-day .reader-progress-bar{
  background: rgba(14,165,233,0.75);
}

/* Le texte de la page */
.reader.is-day .reader-page{
  color: #0f172a;
}

/* Si ton contenu HTML contient des <a> */
.reader.is-day .reader-page a{
  color: #0ea5e9;
}


/* -------------------- MOBILE NAV TOGGLE -------------------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.35);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  background: rgba(229, 231, 235, 0.9);
  border-radius: 999px;
  margin: 0 auto;
}

/* Menu ouvert */
header.nav-open nav {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: calc(100% + 10px);
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  z-index: 20;
}


/* ------------------------- HERO ------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3.5rem 1.5rem 3rem;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-left,
.hero-right {
  flex: 1;
}

.hero-kicker {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #67e8f9;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.2;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title span {
  color: #67e8f9;
}

.hero-text {
  font-size: 0.95rem;
  color: #d1d5db;
  max-width: 32rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  background: #22d3ee;
  color: #020617;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.6);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  background: #06b6d4;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.8);
}

.hero-note {
  font-size: 0.7rem;
  color: #9ca3af;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.2rem;
}


/* ---------------------- CARDS ---------------------- */
.card-soft {
  border-radius: 1rem;
  border: 1px solid rgba(248, 250, 252, 0.06);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  padding: 0.9rem;

  /* FIX: on autorise la card à prendre toute la largeur disponible */
  width: 100%;
  max-width: none;

  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease, background 180ms ease;
  will-change: transform;
}

.card-soft:hover {
  transform: translateY(-3px);
}

.card-soft-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.card-soft-text {
  font-size: 0.9rem;
  color: #f9fafb;
}


/* ---------------------- BOOK ---------------------- */
.book-wrapper {
  max-width: 360px;
  margin: 0 auto;
  position: relative;
}

.book-glow {
  position: absolute;
  inset: -6px;
  border-radius: 1.8rem;
  background: linear-gradient(135deg, #22d3ee, #a855f7, #020617);
  opacity: 0.75;
  filter: blur(18px);
  z-index: -1;
}

.book-card {
  border-radius: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), #020617);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.9);
  padding: 1.4rem;
}

.book-inner {
  border-radius: 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.18rem;
  background: linear-gradient(135deg, #020617, #020617);
}

.book-surface {
  border-radius: 1.15rem;
  padding: 1.2rem;
  background: radial-gradient(circle at 10% 0%, #0f172a, #020617 55%);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.book-meta-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(103, 232, 249, 0.8);
  font-weight: 600;
}

.book-title {
  font-size: 1.25rem;
  margin-top: 0.4rem;
  color: #f9fafb;
  font-weight: 600;
}

.book-hook {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #e5e7eb;
  line-height: 1.6;
}

.book-data {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.book-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.book-footer {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.book-price-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9ca3af;
  margin-bottom: 0.15rem;
}

.book-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f9fafb;
}

.btn-outline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.7);
  background: rgba(8, 47, 73, 0.4);
  color: #e0f2fe;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
}

.btn-outline:hover {
  background: rgba(34, 211, 238, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.7);
}

.book-note {
  margin-top: 0.65rem;
  font-size: 0.7rem;
  color: #9ca3af;
  text-align: center;
}


/* ---------------------- SECTIONS ---------------------- */
section {
  padding: 3rem 0;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0.75rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.section-subtext {
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.7;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}


/* ------------------- BENEFITS LIST ------------------- */
.benefits {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.benefit-dot {
  margin-top: 0.4rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22d3ee;
}

/* ---------------- CONTACT PAGE ---------------- */
.contact-cols {
  grid-template-columns: 1fr !important;
}

/* ---------------- VALIDATION PAGE ---------------- */
.validation-cols {
  grid-template-columns: 1fr !important;
}


/* ------------------- EXTRACT BLOCK ------------------- */
.card-extract {
  border-radius: 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0% 0%, #020617, #020617 60%, #020617);
  padding: 1.4rem;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.9);
}

.card-extract-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #9ca3af;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-extract-text {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.8rem;
}

.card-extract-inner {
  border-radius: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.5);
  background: radial-gradient(circle at 0 0, #020617, #020617 60%);
  padding: 0.9rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}


/* ------------------- ORDER BLOCK ------------------- */
.card-order {
  border-radius: 1.3rem;
  border: 1px solid rgba(34, 211, 238, 0.7);
  background: radial-gradient(circle at 0% 0%, #020617, #020617 60%, #020617);
  padding: 1.4rem;
  box-shadow: 0 25px 40px rgba(8, 47, 73, 0.9);
}

.order-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #67e8f9;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.order-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.order-text {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.order-grid {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-row small {
  color: #9ca3af;
  font-size: 0.75rem;
}

.order-link {
  display: block;
  text-align: center;
  margin-top: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #22d3ee;
  color: #020617;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.7);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.order-link:hover {
  background: #06b6d4;
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.9);
}

.order-note {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: #9ca3af;
  text-align: center;
}

/* ------------------- TIMELINE FULL WIDTH ------------------- */
.timeline-full{
  width: 100%;
  max-width: none;
  padding: 0; /* section gère déjà le padding vertical */
}

.timeline-inner{
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 1.5rem; /* même padding latéral que .section */
}

.timeline-card{
  width: 100%;
  max-width: none; /* IMPORTANT: on casse le max-width */
}

.timeline-list{
  display: grid;
  gap: 0.9rem;
}

.timeline-item{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: stretch;

  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(2,6,23,0.55);
}

.timeline-cover{
  width: 120px;
  height: 170px;
  object-fit: cover;
  border-radius: 0.8rem;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 30px rgba(0,0,0,0.35);
}

.timeline-content{
  display: flex;
  flex-direction: column;
}

.timeline-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.timeline-title{
  font-weight: 900;
  color: #f9fafb;
  font-size: 1.05rem;
}

.timeline-tome{
  font-size: 0.8rem;
  color: #9ca3af;
}

.timeline-badge{
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #e5e7eb;
  background: rgba(2,6,23,0.6);
}

.timeline-desc{
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: #d1d5db;
  line-height: 1.7;
}

/* Mobile */
@media (max-width: 640px){
  .timeline-item{
    grid-template-columns: 1fr;
  }

  .timeline-cover{
    width: 100%;
    height: auto;
    max-width: 220px;
    justify-self: center;
  }

  .timeline-head{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .timeline-status-btn{
    width: 100%;
    text-align: center;
    padding: 0.5rem 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }
}

/* ------------------- TIMELINE STATUS BUTTON ------------------- */
.timeline-status-btn{
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.7);
  background: rgba(8, 47, 73, 0.4);
  color: #e0f2fe;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
}

/* cliquable */
.timeline-status-btn.is-link:hover{
   background: rgba(34, 211, 238, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.7);
}

/* désactivé */
.timeline-status-btn.is-disabled{
  opacity: 0.55;
  cursor: not-allowed;
}

.panel-seen {
  margin-top: 1rem;
}

.panel-seen-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 700;
}

.panel-seen-list {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.seen-pill {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,0.25);
  background: rgba(2,6,23,0.6);
  color: #e5e7eb;
  white-space: wrap;
}

/* ------------------------- FOOTER ------------------------- */
footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(3, 7, 18, 0.95);
  margin-top: auto;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #6b7280;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a:hover {
  color: #e5e7eb;
  transition: color 0.15s ease;
}


/* ---------------------- RESPONSIVE ---------------------- */
@media (min-width: 640px) {
  .hero-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
  }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  nav { display: flex; }

  /* Quand le menu est ouvert en mobile, on neutralise en desktop */
  header.nav-open nav {
    position: static;
    padding: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
  }

  .two-cols {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  }

  .hero-title {
    font-size: 3rem;
  }
}


/* -------------------- ACCESSIBILITÉ -------------------- */
@media (prefers-reduced-motion: reduce) {
  .orb-1,
  .orb-2,
  .orb-3 {
    animation: none !important;
  }

  .reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .card-soft {
    transition: none !important;
  }

  main,
  main.is-leaving {
    animation: none !important;
  }
}


/* ------------------ PAGE TRANSITIONS ------------------ */
main {
  animation: contentFadeIn 1200ms ease both;
}

main.is-leaving {
  animation: contentFadeOut 300ms ease both;
}

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes contentFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}


/* ---------------------- PAGE: UNIVERS ---------------------- */
/* Styles spécifiques à univers.php (ex-<style> + inline styles) */

.univers-section .section-title{
  font-size: 1.9rem;
}

.univers-map{
    border-radius: 1.1rem;
	margin-top: 1.15rem;
}

.univers-section .section-subtext{
  margin-top: 0.75rem;
  max-width: 980px;
}

.univers-section .map-placeholder{
  padding: 0;
}

.univers-section .map-placeholder img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.1rem;
  display: block;
}

.univers-section .bloc-meta{
  min-width: 0;
}


.univers-section .map-card{
    position:relative;
    border-radius:1.25rem;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(2,6,23,0.45);
    overflow:hidden;
    padding:1.25rem;
  }
  .univers-section .map-placeholder{
    margin-top:0.9rem;
    width:100%;
    aspect-ratio: 16 / 9;
    border-radius:1.1rem;
    border:1px dashed rgba(255,255,255,0.18);
    background: radial-gradient(circle at 30% 20%, rgba(34,211,238,0.18), transparent 55%),
                radial-gradient(circle at 70% 65%, rgba(167,139,250,0.14), transparent 60%),
                rgba(2,6,23,0.55);
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:1.2rem;
    color:#9ca3af;
    line-height:1.7;
  }

  .univers-section .bloc-grid{ margin-top:1.2rem; display:grid; grid-template-columns: 0.9fr 1.3fr; gap:1rem; align-items:start; }
  @media (max-width: 980px){ .univers-section .bloc-grid{ grid-template-columns:1fr; } }

  .univers-section .bloc-list{ display:grid; gap:0.75rem; }
  .univers-section .bloc-item{
    cursor:pointer;
    border-radius:1.1rem;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(2,6,23,0.55);
    padding:0.85rem;
    display:flex;
    gap:0.85rem;
    align-items:center;
  }
  .univers-section .bloc-item:hover{ border-color: rgba(34,211,238,0.35); box-shadow:0 0 26px rgba(34,211,238,0.16); }
  .univers-section .bloc-item.active{ border-color: rgba(34,211,238,0.55); box-shadow:0 0 28px rgba(34,211,238,0.22); }
  .univers-section .bloc-item.is-disabled {
  opacity: 0.35;
  filter: grayscale(100%);
  pointer-events: none;
  cursor: not-allowed;
}

  .univers-section .bloc-thumb{
    width:52px; height:52px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,0.10);
    object-fit:cover;
    object-position: 50% 20%;
    background:rgba(0,0,0,0.2);
    flex:0 0 auto;
  }
  .univers-section .bloc-name{ font-weight:900; color:#f9fafb; }
  .univers-section .bloc-tag{ margin-top:0.15rem; color:#9ca3af; font-size:0.85rem; line-height:1.45; }

  .univers-section .bloc-panel{
    position:sticky;
    top:1.25rem;
    border-radius:1.25rem;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(2,6,23,0.45);
    overflow:hidden;
  }
  @media (max-width: 980px){ .univers-section .bloc-panel{ position:relative; top:auto; } }

  .univers-section .panel-media{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position: 50% 20%;
    display:block;
    background:rgba(0,0,0,0.2);
    border-bottom:1px solid rgba(255,255,255,0.08);
  }
  .univers-section .panel-body{ padding:1.15rem; }
  .univers-section .panel-title{ font-weight:900; color:#f9fafb; font-size:1.15rem; }
  .univers-section .panel-sub{ margin-top:0.35rem; color:#9ca3af; font-size:0.9rem; line-height:1.7; }
  .univers-section .panel-desc{ margin-top:0.75rem; color:#e5e7eb; line-height:1.9; }
  .univers-section .panel-kv{ margin-top:0.85rem; display:grid; gap:0.4rem; color:#d1d5db; font-size:0.9rem; line-height:1.7; }
  .univers-section .kv{ display:flex; gap:0.6rem; }
  .univers-section .kv span{ color:#9ca3af; min-width:92px; }

  .univers-section .facts{ margin-top:0.85rem; display:grid; gap:0.45rem; }
  .univers-section .fact{ display:flex; gap:0.55rem; align-items:flex-start; color:#d1d5db; line-height:1.7; font-size:0.92rem; }
  .univers-section .dot{ width:8px; height:8px; border-radius:999px; background:rgba(34,211,238,0.65); box-shadow:0 0 14px rgba(34,211,238,0.25); margin-top:0.45rem; flex:0 0 auto; }
