/* ============================================================
   NEURO DYNAMITE — STYLES GLOBAUX
   Bleu nuit profond + Sketch3D + Caveat + Montserrat
   ============================================================ */

/* ---------- TYPO LOCALE : Sketch3D ----------
   Chargement avec deux chemins relatifs pour robustesse.
   Le navigateur essaie le premier ; si KO, il tente le second. */
@font-face {
  font-family: 'Sketch3D';
  src: url('./fonts/Sketch3D-Regular.ttf') format('truetype'),
       url('fonts/Sketch3D-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- VARIABLES ---------- */
:root {
  --c-bleu: #2A9F98;
  --c-jaune: #FEBD01;
  --c-orange: #FF9E3D;
  --c-rose: #FF4993;

  --c-fond: #091B28;
  --c-fond-2: #0E2435;
  --c-fond-3: #051421;

  --c-texte: #F2EBD1;
  --c-texte-doux: #B8B0A0;

  --font-h1: 'Sketch3D', 'Bungee Shade', 'Permanent Marker', sans-serif;
  --font-titre: 'Montserrat', sans-serif;
  --font-bulle: 'Caveat', cursive;
  --font-corps: 'Montserrat', sans-serif;

  --max-width: 1200px;
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-corps);
  font-weight: 300;
  color: var(--c-texte);
  background: var(--c-fond);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Champ d'étoiles subtil en fond fixe */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(242,235,209,0.5), transparent),
    radial-gradient(1px 1px at 35% 78%, rgba(254,189,1,0.4), transparent),
    radial-gradient(1.5px 1.5px at 78% 22%, rgba(255,73,147,0.35), transparent),
    radial-gradient(1px 1px at 92% 65%, rgba(42,159,152,0.4), transparent),
    radial-gradient(1.2px 1.2px at 60% 8%, rgba(242,235,209,0.4), transparent),
    radial-gradient(1px 1px at 22% 90%, rgba(255,158,61,0.4), transparent),
    radial-gradient(1.3px 1.3px at 50% 50%, rgba(242,235,209,0.3), transparent),
    radial-gradient(1px 1px at 8% 60%, rgba(42,159,152,0.35), transparent);
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
main, section, footer, header { position: relative; z-index: 1; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- TYPOGRAPHIE ---------- */
h1 {
  font-family: var(--font-h1);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  color: var(--c-texte);
  letter-spacing: 0.01em;
  font-weight: normal;
}
h2 {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-texte);
}
h3 {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-texte);
}
h4 {
  font-family: var(--font-titre);
  font-weight: 300;
  font-size: 1rem;
  color: var(--c-texte);
}
p { color: var(--c-texte-doux); }
strong { color: var(--c-texte); font-weight: 700; }

/* Surligneur "mots importants" — V6 (révision) :
   Typo JAUNE sur le mot + trait de surlignage ROSE translucide par-dessous.
   L'effet "marqueur fluo rose sur mot jaune" donne un max de contraste sur
   fond bleu nuit. Si tu veux changer la couleur d'accent globale, c'est
   ICI que ça se joue. */
.surligne {
  color: #FEBD01;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.surligne::before {
  content: '';
  position: absolute;
  left: -0.15em;
  right: -0.15em;
  top: 50%;
  bottom: 5%;
  background: #FF4993;
  opacity: 0.7;
  z-index: -1;
  border-radius: 3px;
  transform: rotate(-1.2deg);
}

/* Variantes (alternatives ponctuelles si tu veux casser le combo jaune+rose) */
.surligne-rose {
  color: var(--c-rose);
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.surligne-rose::before {
  content: '';
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  top: 55%;
  bottom: 8%;
  background: rgba(254, 189, 1, 0.25);
  z-index: -1;
  border-radius: 2px;
  transform: rotate(-1deg);
}
.surligne-bleu {
  color: var(--c-bleu);
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.surligne-bleu::before {
  content: '';
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  top: 55%;
  bottom: 8%;
  background: rgba(254, 189, 1, 0.22);
  z-index: -1;
  border-radius: 2px;
  transform: rotate(-1deg);
}
.surligne-jaune {
  color: var(--c-jaune);
  font-weight: 700;
}
.surligne-orange {
  color: var(--c-orange);
  font-weight: 700;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9, 27, 40, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.6rem 0;
  transition: all 0.3s;
}
.header.scrolled {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(242,235,209,0.06);
}
.header.scrolled .logo img { height: 80px; }

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s;
}
.logo:hover { transform: rotate(-3deg); }
.logo img { height: 140px; width: auto; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}
.nav-menu a {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--c-texte);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--c-jaune); }
.nav-menu .has-submenu > a::after {
  content: ' ·';
  color: var(--c-jaune);
  font-weight: 700;
}

.submenu {
  position: absolute;
  /* On monte le submenu DIRECTEMENT sous le lien (0rem de gap) */
  /* et on ajoute padding-top pour créer une zone de "capture" invisible */
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--c-fond-2);
  border: 1px solid rgba(242,235,209,0.1);
  border-radius: 14px;
  /* padding-top crée la zone de transition invisible entre lien et menu */
  padding: 1rem 0 0.6rem;
  min-width: 240px;
  list-style: none;
  opacity: 0;
  /* pointer-events:none au lieu de visibility:hidden
     → le bridge au-dessus reste actif même quand invisible */
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.has-submenu { position: relative; }
/* Hover sur le li parent OU focus dans le submenu */
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.submenu a {
  display: block;
  padding: 0.55rem 1.4rem;
  font-size: 0.88rem;
  transition: all 0.15s;
}
.submenu a:hover {
  background: rgba(254,189,1,0.08);
  color: var(--c-jaune);
}
.submenu .coming-soon {
  font-family: var(--font-bulle);
  font-size: 0.85rem;
  color: var(--c-orange);
  margin-left: 0.5rem;
}

/* ---------- BOUTONS ----------
   Le bouton principal (orange) garde son texte sombre pour le contraste.
   On utilise notre fond bleu nuit profond comme texte (pas du noir pur). */
.cta-reserver {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--c-orange);
  color: var(--c-fond);
  padding: 0.75rem 1.4rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.cta-reserver:hover {
  background: var(--c-jaune);
  transform: translateY(-1px);
}

.btn-primary {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--c-orange);
  color: var(--c-fond);
  padding: 1.1rem 1.8rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--c-jaune);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(254,189,1,0.25);
}

.btn-ghost {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--c-texte);
  text-decoration: none;
  padding: 1.1rem 0.5rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-ghost::after {
  content: '→';
  transition: transform 0.2s;
}
.btn-ghost:hover { color: var(--c-jaune); }
.btn-ghost:hover::after { transform: translateX(4px); }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--c-texte);
  display: block;
}

/* ---------- ELEMENTS DE SECTION ---------- */
.section { padding: 7rem 0; }
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 5rem;
}

.eyebrow {
  font-family: var(--font-bulle);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--c-jaune);
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  line-height: 1;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 24px; height: 2px;
  background: var(--c-jaune);
  opacity: 0.6;
}

/* Variante grand format pour les eyebrow utilisés comme "titre de section"
   au-dessus d'un H2 (ex : "Le neuro cellulaire") */
.eyebrow-large {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.eyebrow-large::before, .eyebrow-large::after {
  width: 36px;
  height: 3px;
}

.section-intro {
  font-family: var(--font-titre);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--c-texte-doux);
  margin-top: 1.5rem;
  line-height: 1.7;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--c-fond-3);
  color: var(--c-texte);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(242,235,209,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand .logo img { height: 56px; }
.footer-brand p {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--c-texte-doux);
  max-width: 320px;
  line-height: 1.7;
}
/* V7 — Icônes sociaux dans le footer */
.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(242, 235, 209, 0.06);
  color: var(--c-texte-doux);
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--c-jaune);
  color: var(--c-fond);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: var(--font-bulle);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--c-jaune);
  font-weight: normal;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  color: var(--c-texte-doux);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s;
}
.footer-col a:hover {
  color: var(--c-texte);
  padding-left: 4px;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(242,235,209,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(242,235,209,0.45);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.2rem; }
  .nav { padding: 0 1.2rem; }
  .section { padding: 5rem 0; }
  .section-header { margin-bottom: 3.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer { padding: 4rem 0 2rem; }
}

/* ---------- PAGES "EN COURS D'EXPLORATION" (V6) ----------
   Template partagé par toutes les pages-onglets pas encore prêtes :
   outils, tester, labo, exercices, terrain, challenges, jeux, boutique.
   Hero centré + grosse fusée + texte d'attente + CTA retour. */
.page-attente {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.page-attente::before {
  /* Halo de couleur derrière la fusée — couleur paramétrable via --accent-page */
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--accent-page, var(--c-bleu)) 18%, transparent) 0%,
    transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.page-attente .container { position: relative; z-index: 1; text-align: center; }

.page-attente .fusee-xl {
  display: block;
  width: 220px;
  max-width: 50%;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 18px 40px rgba(42, 159, 152, 0.4));
  -webkit-filter: drop-shadow(0 18px 40px rgba(42, 159, 152, 0.4));
  animation: rocket-float-xl 5s ease-in-out infinite;
}
@keyframes rocket-float-xl {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-14px) rotate(3deg); }
}

/* V6 — Maverick co-illustration sur les pages d'attente (3 pages thématiquement pertinentes) */
.page-attente .duo-visuel {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto 2rem;
  max-width: 480px;
}
.page-attente .duo-visuel .fusee-xl {
  width: 160px;
  margin: 0;
}
.page-attente .duo-visuel .maverick {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(255, 158, 61, 0.3));
  -webkit-filter: drop-shadow(0 10px 20px rgba(255, 158, 61, 0.3));
  animation: maverick-bounce 3.2s ease-in-out infinite;
}
@keyframes maverick-bounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}
@media (max-width: 640px) {
  .page-attente .duo-visuel {
    gap: 0.8rem;
    max-width: 320px;
  }
  .page-attente .duo-visuel .fusee-xl { width: 110px; }
  .page-attente .duo-visuel .maverick { width: 95px; }
}

.page-attente .eyebrow {
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.page-attente h1 {
  max-width: 14ch;
  margin: 0 auto 1.5rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
}
.page-attente h1 .accent {
  display: block;
  color: var(--accent-page, var(--c-bleu));
  transform: rotate(-1deg);
}

.page-attente .intro {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--c-texte-doux);
}

.page-attente .teaser {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-family: var(--font-bulle);
  font-size: 1.3rem;
  color: var(--c-jaune);
  line-height: 1.4;
}

.page-attente .actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

/* Variantes de couleur par page — applique la classe sur <body> */
.theme-bleu       { --accent-page: var(--c-bleu); }
.theme-jaune      { --accent-page: var(--c-jaune); }
.theme-orange     { --accent-page: var(--c-orange); }
.theme-rose       { --accent-page: var(--c-rose); }

/* ---------- PAGES LÉGALES (V7) ----------
   Mentions légales + Politique de confidentialité.
   Page longue, sobre, lisible. Pas d'animation de fond. */
.page-legal {
  padding: 9rem 0 6rem;
}
.page-legal .container {
  max-width: 800px;
  margin: 0 auto;
}
.page-legal .eyebrow {
  margin-bottom: 1rem;
}
.page-legal h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
  line-height: 1;
}
.page-legal h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin: 2.5rem 0 1rem;
  color: var(--c-jaune);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.page-legal p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-texte-doux);
  margin-bottom: 1rem;
}
.page-legal strong {
  color: var(--c-texte);
}
.page-legal a {
  color: var(--c-jaune);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.page-legal a:hover {
  color: var(--c-rose);
}
.page-legal ul {
  margin: 0.5rem 0 1.5rem 1.5rem;
  color: var(--c-texte-doux);
  line-height: 1.8;
}
.page-legal ul li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.page-legal .legal-intro {
  font-size: 1.1rem;
  font-style: italic;
  padding: 1.5rem;
  background: rgba(254, 189, 1, 0.06);
  border-left: 3px solid var(--c-jaune);
  border-radius: 0 8px 8px 0;
  margin-bottom: 2rem;
}
.page-legal .legal-meta {
  margin-top: 3rem;
  font-size: 0.88rem;
  color: var(--c-texte-doux);
  opacity: 0.7;
  font-style: italic;
}
.page-legal .legal-actions {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(242, 235, 209, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-404 .container {
  text-align: center;
  padding: 9rem 2rem 6rem;
  max-width: 700px;
  margin: 0 auto;
}
.page-404 .code-erreur {
  font-family: var(--font-h1);
  font-size: clamp(8rem, 22vw, 16rem);
  line-height: 0.9;
  color: var(--c-rose);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.page-404 .maverick-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem auto 2rem;
}
.page-404 .maverick-404 {
  width: 100%;
  max-width: 340px;
  height: auto;
  /* Maverick qui balance doucement la queue */
  animation: maverick-idle 4.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 20px rgba(255, 158, 61, 0.25));
  -webkit-filter: drop-shadow(0 12px 20px rgba(255, 158, 61, 0.25));
}
@keyframes maverick-idle {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50%      { transform: rotate(1deg) translateY(-4px); }
}

/* V6 — Excuse "Désolé, Maverick a mangé la page" en Montserrat SemiBold (600).
   Petite phrase d'introduction entre le dessin et le H1 — vibe complice. */
.page-404 .maverick-excuse {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--c-texte);
  margin: 0 auto 2rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.page-404 h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.page-404 p {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.page-404 .actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

/* ---------- HELPERS BULLES (V6) ----------
   Centrage du texte selon le TYPE de bulle. À appliquer en plus de la classe
   spécifique du composant : <div class="bulle-citation bulle-carre">.
   Mesuré une bonne fois pour toutes : le centre de la zone blanche dépend
   de la forme de la bulle (carrée, cerveau, pensée). */
.bulle-carre   .texte { top: 39%; left: 45%; width: 60%; }
.bulle-cerveau .texte { top: 39%; left: 48%; width: 65%; }
.bulle-pensee  .texte { top: 33%; left: 47%; width: 72%; }

/* ---------- BADGE "EN COURS D'EXPLORATION" (avec fusée) ----------
   Remplace les anciens badges "Bientôt".
   S'utilise en HTML : <span class="badge-exploration">En cours d'exploration</span>
   Le picto fusée vient en pseudo-élément, donc une seule classe suffit côté HTML. */
.badge-exploration {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-bulle);
  font-size: 1.15rem;
  color: var(--c-jaune);
  line-height: 1;
  white-space: nowrap;
}
.badge-exploration::before {
  content: '';
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  background-image: url('images/fusee-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* Petite oscillation pour rappeler le décollage */
  animation: rocket-bob 3.4s ease-in-out infinite;
}
@keyframes rocket-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-3px) rotate(-4deg); }
}

/* Variante en grand format pour usage en pleine carte (rubriques pas prêtes,
   cartes Collab "En cours d'exploration", etc.) */
.fusee-grande {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 8px 20px rgba(42, 159, 152, 0.35));
  -webkit-filter: drop-shadow(0 8px 20px rgba(42, 159, 152, 0.35));
  animation: rocket-float 4.5s ease-in-out infinite;
}
@keyframes rocket-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

/* Petits badges en pastille pour le menu (les sous-rubriques pas prêtes) */
.submenu .badge-fusee {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.45rem;
  vertical-align: -0.15em;
  background-image: url('images/fusee-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- CITATION MANIFESTE (V5 : Montserrat Bold + uppercase) ----------
   Remplace l'ancien style Caveat. Le mot "mon moteur" prend la couleur orange.
   On déclare une variante .manifeste qui surcharge l'ancien style sans casser
   les autres citations. */
.citation-manifeste {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-texte);
  display: block;
  text-align: center;
}
.citation-manifeste .accent {
  color: var(--c-orange);
  /* Pas d'italique cette fois : on garde la même graisse pour l'unité visuelle */
  font-style: normal;
}

/* ---------- PAGE COLLAB : Cartes partenaires ----------
   Grille 3 colonnes responsive avec mini-cartes en sketch BD. */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.collab-card {
  background: var(--c-fond-2);
  border: 1px solid rgba(242, 235, 209, 0.08);
  border-radius: 22px;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  overflow: hidden;
}
.collab-card::after {
  /* Touche déco discrète : bande de couleur en haut, varie selon la carte */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--accent-color, var(--c-bleu));
}
.collab-card:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 189, 1, 0.25);
}
.collab-card.is-exploration {
  /* Style un peu plus rêveur pour les cartes "à venir" */
  border-style: dashed;
  border-color: rgba(42, 159, 152, 0.35);
}

.collab-card .collab-titre {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--c-texte);
  margin-bottom: 0.6rem;
}
.collab-card .collab-titre .x {
  /* Le × entre les 2 disciplines : on lui donne la couleur d'accent */
  color: var(--accent-color, var(--c-bleu));
  font-weight: 400;
  padding: 0 0.15em;
}
.collab-card .collab-partenaire {
  font-family: var(--font-bulle);
  font-size: 1.2rem;
  color: var(--c-jaune);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}
.collab-card .collab-objectif {
  font-family: var(--font-corps);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--c-texte-doux);
  font-style: italic;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.4rem;
}
.collab-card .collab-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}
.collab-card .collab-meta span {
  font-family: var(--font-titre);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  background: rgba(42, 159, 152, 0.12);
  color: var(--c-bleu);
}

/* Variantes de couleur des cartes Collab — appliquer la classe sur la carte */
.collab-card.accent-bleu    { --accent-color: var(--c-bleu); }
.collab-card.accent-jaune   { --accent-color: var(--c-jaune); }
.collab-card.accent-orange  { --accent-color: var(--c-orange); }
.collab-card.accent-rose    { --accent-color: var(--c-rose); }

/* Hero spécifique de la page collab */
.collab-hero {
  padding: 9rem 0 5rem;
  text-align: center;
}
.collab-hero h1 {
  margin: 0.5rem auto 1.5rem;
}
.collab-hero .intro {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--c-texte-doux);
  line-height: 1.7;
}

/* Section "ma philosophie" sur la page collab */
.collab-philo {
  background: var(--c-fond-2);
  border-radius: 22px;
  padding: 3rem 2rem;
  margin-top: 5rem;
  text-align: center;
}
.collab-philo h2 {
  margin-bottom: 1rem;
}
.collab-philo p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- RESPONSIVE pour la grille Collab ---------- */
@media (max-width: 1024px) {
  .collab-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .collab-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .collab-card { padding: 1.8rem 1.4rem; }
  .citation-manifeste { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* ---------- REVEAL AU SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- DIANE NEURO CELLULAIRE ---------- */
.diane-neuro-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.diane-neuro-img {
  height: clamp(240px, 30vw, 340px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.15));
  animation: diane-float 7s ease-in-out infinite;
  transition: opacity 0.2s;
}

/* ---------- SECTION TÉMOIGNAGES ---------- */
.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.temoignage-card {
  background: var(--c-fond-2);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(42, 159, 152, 0.15);
  transition: transform 0.3s, border-color 0.3s;
}
.temoignage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 73, 147, 0.3);
}
.video-placeholder {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 340px;
  background: linear-gradient(135deg, var(--c-fond-3) 0%, var(--c-fond-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,73,147,0.08) 0%, transparent 60%);
}
.video-coming {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--c-texte-doux);
  position: relative;
  z-index: 1;
}
.video-coming svg {
  color: var(--c-rose);
  opacity: 0.6;
}
.video-coming p {
  font-family: var(--font-bulle);
  font-size: 0.95rem;
  color: var(--c-texte-doux);
  text-align: center;
  margin: 0;
}
/* Intégration vidéo réelle (YouTube/Vimeo) */
.video-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  aspect-ratio: 9/16;
}
.temoignage-meta {
  padding: 1rem 1.2rem;
}
.temoignage-nom {
  font-family: var(--font-bulle);
  font-size: 0.9rem;
  color: var(--c-texte-doux);
}
.temoignages-note {
  text-align: center;
  margin-top: 2.5rem;
  font-family: var(--font-bulle);
  font-size: 1rem;
  color: var(--c-texte-doux);
}
@media (max-width: 640px) {
  .temoignages-grid { grid-template-columns: 1fr; }
  .video-placeholder { aspect-ratio: 9/16; max-height: 300px; }
}

/* ---------- PERSONNAGE DIANE ---------- */
@keyframes diane-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-14px) rotate(1deg); }
}
.diane-page {
  max-height: 300px;
  width: auto;
  pointer-events: none;
  animation: diane-float 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
  position: absolute;
  right: 4%;
  bottom: 0;
  z-index: 2;
  transition: opacity 0.2s;
}
/* Mobile : Diane en bas centrée, plus petite, section a du padding-bottom */
@media (max-width: 900px) {
  .diane-page {
    position: static;
    display: block;
    max-height: 200px;
    margin: 2rem auto 0;
    right: auto;
    bottom: auto;
  }
  .page-attente {
    padding-bottom: 2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/* position:relative déjà défini dans .page-attente principal */

/* ---------- DIANE INLINE (entre teaser et boutons) ---------- */
.diane-page-wrap {
  margin: 1.5rem auto;
  text-align: center;
}
.diane-page-inline {
  max-height: 220px;
  width: auto;
  display: inline-block;
  pointer-events: none;
  animation: diane-float 5s ease-in-out infinite;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.15));
  transition: opacity 0.2s;
}
@media (min-width: 901px) {
  /* Sur grand écran : Diane en absolu dans .page-attente (son parent direct) */
  /* .page-attente a position:relative → Diane se positionne par rapport à lui */
  .diane-page-wrap {
    position: absolute;
    right: 3%;
    bottom: 0;
    margin: 0;
    z-index: 2;
  }
  .diane-page-inline {
    max-height: 320px;
    width: auto;
  }
}

/* =====================================================
   MOBILE — REFONTE COMPLÈTE (iPhone & Android)
   Breakpoints : 480px (petit), 640px (moyen), 1024px (tablette)
   ===================================================== */

/* --- Logo héro (page principale uniquement) --- */
.hero-logo-large {
  width: clamp(160px, 22vw, 260px);
  height: auto;
  margin-bottom: 1.6rem;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(42,159,152,0.25));
}
@media (max-width: 1024px) {
  .hero-logo-large { width: 180px; margin: 0 auto 1.2rem; }
}
@media (max-width: 640px) {
  .hero-logo-large { width: 140px; margin: 0 auto 1rem; }
}

/* ======= HEADER MOBILE ======= */
@media (max-width: 1024px) {
  /* Menu ouvert : panneau plein écran */
  .nav-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--c-fond);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    overflow-y: auto;
    z-index: 99;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-menu.open {
    display: flex;
    transform: translateX(0);
  }
  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-menu > li > a {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 0;
    color: var(--c-texte);
  }
  /* Sous-menus mobile : réinitialiser TOUT le CSS desktop */
  .nav-menu .submenu {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 0 0.8rem 1rem !important;
    display: none;
    transition: none !important;
  }
  .nav-menu .has-submenu.open-sub > .submenu {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .nav-menu .submenu li a {
    font-size: 1.05rem;
    padding: 0.6rem 0;
    color: var(--c-texte);
    display: block;
  }
  .nav-menu .submenu li a:hover { color: var(--c-jaune); }
  .nav-menu .has-submenu > a::after { content: ' ↓'; font-size: 0.8em; }
  .nav-menu .has-submenu.open-sub > a::after { content: ' ↑'; }
}

/* ======= HERO INDEX MOBILE ======= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .hero-content { order: 2; }
  .hero-visual { order: 1; min-height: 260px; }
  .hero-ctas { justify-content: center; }
  .hero-logo-large { margin: 0 auto 1rem; }
}
@media (max-width: 640px) {
  .hero { padding: 7rem 0 4rem; }
  h1 { font-size: clamp(2rem, 9vw, 3.5rem) !important; }
  h2 { font-size: clamp(1.6rem, 7vw, 2.4rem) !important; }
  .hero-baseline { font-size: 1rem; }
  .hero-visual { min-height: 200px; }
  /* Diane prof dans le hero : taille adaptée */
  .hero-visual img[alt="Diane professeure"] {
    width: 130px !important;
    bottom: -10px !important;
    right: 0 !important;
  }
}

/* ======= SECTIONS GENERALES MOBILE ======= */
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .btn-primary, .btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .actions { flex-direction: column; gap: 0.8rem; align-items: stretch; }
}

/* ======= PROBLÈMES GRID MOBILE ======= */
@media (max-width: 640px) {
  .problemes-grid { grid-template-columns: 1fr !important; gap: 1rem; }
  .probleme-item { padding: 1.4rem 1.2rem; }
}

/* ======= SECTION NEURO MOBILE ======= */
@media (max-width: 640px) {
  .neuro-grid { grid-template-columns: 1fr !important; }
  .neuro-visual { display: none; } /* Optionnel : masquer visuel si trop lourd */
}

/* ======= SECTION UNIVERS MOBILE ======= */
@media (max-width: 640px) {
  .univers-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
  .univers-card { padding: 1.4rem 1rem; }
  .univers-card h3 { font-size: 1rem; }
}

/* ======= PRESTATIONS MOBILE ======= */
@media (max-width: 640px) {
  .prestations-grid { grid-template-columns: 1fr !important; }
  .prestation-card { padding: 1.8rem 1.4rem; }
}

/* ======= TÉMOIGNAGES MOBILE ======= */
@media (max-width: 640px) {
  .temoignages-grid { grid-template-columns: 1fr !important; }
}

/* ======= SYSTÈME SOLAIRE OUTILS MOBILE ======= */
@media (max-width: 767px) {
  .solar-mobile-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .solar-mobile-item img { width: 70px; height: 70px; }
  .solar-mobile-item span { font-size: 0.82rem; }
}

/* ======= DRAWER LATERAL MOBILE ======= */
@media (max-width: 640px) {
  .planet-drawer {
    width: 100vw !important;
    right: 0 !important;
    top: auto !important;
    bottom: -90vh;
    height: 85vh;
    border-left: none;
    border-top: 1px solid rgba(42,159,152,0.2);
    border-radius: 24px 24px 0 0;
    transition: bottom 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .planet-drawer.open {
    bottom: 0 !important;
  }
}

/* ======= FOOTER MOBILE ======= */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ======= PAGE ATTENTE MOBILE ======= */
@media (max-width: 640px) {
  .page-attente { padding: 7rem 0 4rem; }
  .fusee-xl { width: 140px !important; }
  .page-attente h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .page-attente .intro { font-size: 0.95rem; }
}

/* ======= A-PROPOS MOBILE ======= */
@media (max-width: 640px) {
  .apropos-grid { grid-template-columns: 1fr !important; }
  .portrait-wrap { order: -1; margin: 0 auto; }
  .portrait-bd { max-width: 260px !important; }
}

/* ======= BURGER ANIMATION ======= */
.burger { z-index: 101; position: relative; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.burger span { transition: transform 0.3s, opacity 0.3s; }

/* ======= TOUCH — zones de tap plus grandes ======= */
@media (max-width: 1024px) {
  .nav-menu li a { min-height: 44px; display: flex; align-items: center; }
  .btn-primary, .btn-ghost, .cta-reserver { min-height: 48px; }
  .planet-item, .solar-mobile-item { min-height: 44px; }
}

/* ---------- SCROLL OFFSET (compense le header fixe) ---------- */
section[id], div[id] {
  scroll-margin-top: 175px;
}
