:root {
  --nuit: #141a4a;
  --lune: #3b4fd8;
  --poussiere: #e8e7f3;
  --blanc: #ffffff;
  --encre: #1b1e2e;
  --gris: #5b5f78;
  --titre: "Outfit", system-ui, sans-serif;
  --texte: "Figtree", system-ui, sans-serif;
  --largeur: 68rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lune); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--lune);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3 {
  font-family: var(--titre);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; max-width: 62ch; }

.wrap { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }

/* En-tête */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  padding-block: 1.25rem;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marque {
  font-family: var(--titre); color: var(--blanc); text-decoration: none;
  line-height: 0.95; font-size: 1.15rem;
}
.marque b { display: block; font-weight: 400; letter-spacing: 0.06em; }
.marque i { display: block; font-style: normal; font-weight: 600; font-size: 1.35rem; }
.top.clair .marque { color: var(--nuit); }

.bouton {
  display: inline-block; font-family: var(--titre); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; padding: 0.95rem 1.6rem; border-radius: 999px;
  background: var(--blanc); color: var(--nuit);
  transition: transform 0.15s ease, background 0.15s ease;
}
.bouton:hover { transform: translateY(-1px); background: var(--poussiere); }
.bouton.plein { background: var(--lune); color: var(--blanc); }
.bouton.plein:hover { background: #2f41c0; }
.bouton.petit { padding: 0.6rem 1.1rem; font-size: 0.95rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 70% 10%, #24308a 0%, var(--nuit) 55%, #0c1033 100%);
  color: var(--blanc);
  padding: 8rem 0 5.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 500; max-width: 17ch; text-wrap: balance;
}
.hero .chapo { margin-top: 1.5rem; font-size: 1.25rem; color: #d6d8f3; max-width: 46ch; }
.hero .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.hero .preuve { color: #c3c6ec; font-size: 1rem; }
.hero .preuve strong { color: var(--blanc); }

.bulle {
  position: absolute; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.55), rgba(140,155,255,0.18) 45%, rgba(59,79,216,0.08) 70%);
  box-shadow: inset -12px -16px 40px rgba(12,16,51,0.45);
  animation: monte 1.8s cubic-bezier(.2,.7,.2,1) both;
}
.bulle.b1 { width: 34rem; height: 34rem; right: -9rem; top: -14rem; }
.bulle.b2 { width: 7rem; height: 7rem; right: 26%; top: 58%; animation-delay: .15s; }
.bulle.b3 { width: 3.2rem; height: 3.2rem; right: 12%; top: 40%; animation-delay: .3s; }
.bulle.b4 { width: 15rem; height: 15rem; left: -6rem; bottom: -8rem; animation-delay: .1s; opacity: .7; }
.orbite {
  position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -55%;
  height: 90%; border-radius: 50%; border-top: 1px solid rgba(200,205,255,0.35);
}
@keyframes monte {
  from { opacity: 0; transform: translateY(40px) scale(.92); }
  to { opacity: 1; transform: none; }
}

/* Sections */
section { padding-block: 5.5rem; }
.intro { display: grid; gap: 1rem; margin-bottom: 3rem; }
.intro p { color: var(--gris); }

/* Résultats */
.cas { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.cas article { display: grid; gap: 0.9rem; align-content: start; }
.cas img { border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.cas .qui { font-weight: 700; }
.cas .qui span { font-weight: 400; color: var(--gris); }
.trajet { font-family: var(--titre); font-size: 1.6rem; font-weight: 600; color: var(--nuit); }
.trajet s { text-decoration: none; color: var(--gris); font-weight: 400; }
.autres {
  margin-top: 3rem; display: grid; gap: 0; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--poussiere);
}
.autres div { padding: 1.4rem 1.25rem 1.4rem 0; border-bottom: 1px solid var(--poussiere); }
.autres .trajet { font-size: 1.3rem; }
.autres p { color: var(--gris); font-size: 1rem; }

/* Méthode */
.methode { background: var(--poussiere); }
.etapes { display: grid; gap: 2.5rem; grid-template-columns: repeat(3, 1fr); counter-reset: e; }
.etapes li { list-style: none; counter-increment: e; display: grid; gap: 0.7rem; }
.etapes li::before {
  content: counter(e); font-family: var(--titre); font-size: 1.1rem; font-weight: 600;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--nuit); color: var(--blanc);
}
.etapes ol { padding: 0; margin: 0; }
.etapes p { color: var(--gris); }

/* Mathieu */
.moi { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; align-items: center; }
.moi img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; }
.moi .texte { display: grid; gap: 1.1rem; }

/* Profils */
.profils { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.profils div { border: 1px solid var(--poussiere); border-radius: 18px; padding: 1.6rem; display: grid; gap: 0.6rem; align-content: start; }
.profils p { color: var(--gris); font-size: 1rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--poussiere); padding-block: 1.2rem; }
.faq summary { cursor: pointer; font-family: var(--titre); font-size: 1.2rem; font-weight: 600; color: var(--nuit); }
.faq details p { margin-top: 0.8rem; color: var(--gris); }
.faq .liste { max-width: 48rem; }

/* Guides */
.guides { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.guides a {
  display: grid; gap: 0.5rem; text-decoration: none; color: var(--encre);
  padding: 1.6rem; border-radius: 18px; background: var(--poussiere);
}
.guides a:hover h3 { color: var(--lune); }
.guides p { font-size: 1rem; color: var(--gris); }

/* Appel final */
.final { background: var(--nuit); color: var(--blanc); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.final h2 { max-width: 20ch; margin-inline: auto; }
.final p { margin: 1.2rem auto 2rem; color: #c3c6ec; }

footer { padding-block: 2.5rem; font-size: 0.95rem; color: var(--gris); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Pages guides */
.article-tete { background: var(--nuit); color: var(--blanc); padding: 8rem 0 3.5rem; }
.article-tete h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 500; max-width: 22ch; }
.article-tete p { margin-top: 1rem; color: #c3c6ec; }
.article { padding-block: 3.5rem 5rem; }
.article .corps { max-width: 44rem; display: grid; gap: 1.2rem; }
.article h2 { font-size: 1.75rem; margin-top: 1.6rem; }
.article ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.encart { background: var(--poussiere); border-radius: 18px; padding: 1.6rem; display: grid; gap: 1rem; justify-items: start; }

@media (max-width: 860px) {
  .cas, .etapes, .profils, .guides { grid-template-columns: 1fr; }
  .autres { grid-template-columns: 1fr 1fr; }
  .moi { grid-template-columns: 1fr; }
  .moi img { max-width: 22rem; }
  .hero { padding-top: 7.5rem; }
  .top .bouton { display: none; }
}
@media (max-width: 520px) {
  .autres { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *:not(.intro-ciné):not(.intro-logo) { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Même colonne pour le titre et le texte des guides */
.article-tete .wrap, .article .wrap { width: min(100% - 2.5rem, 44rem); }
.top .wrap { width: min(100% - 2.5rem, var(--largeur)); }

/* Cinématique d'entrée : les bulles montent, le logo se pose, puis une bulle s'ouvre sur le site */
.en-intro body { overflow: hidden; }
.intro-ciné {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 60% 20%, #24308a 0%, var(--nuit) 55%, #0c1033 100%);
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.85s cubic-bezier(.7,0,.2,1), opacity 0.85s ease;
  cursor: pointer;
}
.intro-ciné.ouvre { clip-path: circle(0% at 50% 50%); opacity: 0.6; }
.intro-ciné .ib {
  position: absolute; bottom: -20vh; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.6), rgba(140,155,255,0.2) 45%, rgba(59,79,216,0.06) 70%);
  box-shadow: inset -10px -14px 30px rgba(12,16,51,0.45);
  animation: bulle-monte 2.4s cubic-bezier(.25,.6,.3,1) both;
}
.ib.i1 { width: 9rem; height: 9rem; left: 12%; animation-delay: 0s; }
.ib.i2 { width: 4rem; height: 4rem; left: 30%; animation-delay: .25s; }
.ib.i3 { width: 14rem; height: 14rem; right: 8%; animation-delay: .1s; }
.ib.i4 { width: 2.5rem; height: 2.5rem; right: 32%; animation-delay: .45s; }
.ib.i5 { width: 6rem; height: 6rem; left: 55%; animation-delay: .35s; }
@keyframes bulle-monte {
  from { transform: translateY(0) scale(.7); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateY(-115vh) scale(1); opacity: .9; }
}
.intro-logo {
  font-family: var(--titre); color: var(--blanc); text-align: center; line-height: .95; margin: 0;
  animation: logo-pose 1.1s .55s cubic-bezier(.2,.8,.2,1) both;
}
.intro-logo b { display: block; font-weight: 400; font-size: clamp(2.2rem, 7vw, 4.2rem); letter-spacing: .08em; }
.intro-logo i { display: block; font-style: normal; font-weight: 600; font-size: clamp(3rem, 10vw, 6rem); }
@keyframes logo-pose {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); letter-spacing: .3em; }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.intro-trait {
  position: absolute; left: -10%; right: -10%; top: 62%; height: 70vh; border-radius: 50%;
  border-top: 1px solid rgba(200,205,255,.45);
  animation: trait 1.4s .9s ease both;
}
@keyframes trait { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* Version douce pour « Réduire les animations » : fondu seulement, sans mouvement */
.intro-ciné.doux .ib, .intro-ciné.doux .intro-trait { display: none; }
.intro-ciné.doux .intro-logo { animation: fondu 0.8s 0.2s ease both; }
.intro-ciné.doux { transition: opacity 0.7s ease; clip-path: none; }
.intro-ciné.doux.ouvre { opacity: 0; clip-path: none; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
