/* ===================================================================
   Prépa Passerelle Santé — feuille de style unique
   Palette : bleu marine élégant + typographie serif chic
   =================================================================== */

:root {
  /* Palette « Bleu glacier » */
  --navy: #1e3a5f;
  --navy-deep: #142842;
  --navy-soft: #2d5a8a;
  --gold: #3b82f6;        /* accent bleu vif (sur-titres, icônes, liens) */
  --gold-soft: #93c5fd;   /* accent clair (sur fond foncé) */
  --btn: #1e3a5f;         /* bouton bleu foncé */
  --btn-hover: #142842;
  --ink: #182430;
  --muted: #54627a;
  --paper: #f5f8fc;
  --paper-2: #e8eff7;
  --alt: #d5e3f5;         /* fond des sections alternées, bien distinct du blanc */
  --cream: #f1ece2;       /* fond beige/crème (sections chaleureuses) */
  --white: #ffffff;
  --line: #dbe6f2;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(20, 40, 66, 0.30);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.2px;
  color: var(--navy);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1rem; color: var(--ink); }
a { color: var(--navy-soft); text-decoration: none; }
a:hover { color: var(--gold); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--btn);
  color: #ffffff;
  box-shadow: 0 12px 28px -14px rgba(20, 40, 66, 0.75);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--btn-hover); color: #ffffff; }
/* Sur les fonds foncés (hero, bandeau CTA), le bouton passe en bleu clair à texte bleu foncé */
.hero .btn-primary, .cta-band .btn-primary { background: #9ec8f5; color: var(--navy-deep); box-shadow: 0 12px 28px -14px rgba(158, 200, 245, 0.8); }
.hero .btn-primary:hover, .cta-band .btn-primary:hover { background: #bcd9fb; color: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); transform: translateY(-2px); }
/* Bouton contour (menu) */
.btn-outline { background: transparent; border: 1.6px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.nav-links a.btn-outline { color: var(--navy); }
.nav-links a.btn-outline:hover { color: #fff; }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { max-width: 1220px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-cta { white-space: nowrap; }
.nav-links a { color: var(--ink); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active { border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.nav-cta { padding: 9px 18px; font-size: 0.86rem; }
/* Le bouton du menu garde son texte blanc (priorité sur la couleur des liens de nav) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #ffffff; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 70% -10%, var(--navy-soft), var(--navy-deep));
  color: var(--white);
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 15% 110%, rgba(201,162,75,0.16), transparent);
  pointer-events: none;
}
.hero h1 { color: var(--white); max-width: 20ch; text-wrap: balance; -webkit-text-stroke: 0.6px currentColor; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.hero p.lead { font-size: 1.18rem; max-width: 52ch; color: rgba(255,255,255,0.86); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; background: var(--paper); }
.section.alt { background: var(--alt); }
.section.cream { background: var(--cream); }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head .eyebrow {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.76rem;
  font-weight: 700; color: var(--gold); margin-bottom: 12px;
}
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Grilles / cartes ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 1px 0 rgba(10,30,92,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy); color: var(--gold-soft);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Stats (cartes blanches sur bande foncée) ---------- */
.stats-band { background: var(--alt); padding: 76px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px 20px 30px; text-align: center; box-shadow: var(--shadow); }
.stat-card .tick { width: 36px; height: 4px; border-radius: 3px; background: var(--gold-soft); margin: 0 auto 20px; }
.stat-card .num { font-family: "Instrument Serif", serif; font-size: 3rem; color: var(--navy); line-height: 1; -webkit-text-stroke: 0.5px var(--navy); }
.stat-card .num small { font-size: 1.3rem; color: var(--muted); }
.stat-card .lbl { text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700; color: var(--navy); font-size: 0.86rem; margin-top: 14px; }
.stat-card .sub { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Offres / tarifs ---------- */
.offer {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column;
}
.offer.featured { border-color: var(--gold); box-shadow: var(--shadow); position: relative; }
.offer.featured::before {
  content: "Le plus choisi"; position: absolute; top: -13px; left: 30px;
  background: var(--gold); color: var(--navy-deep); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 100px;
}
.offer h3 { color: var(--navy); }
.offer .price { font-family: "Instrument Serif", serif; font-size: 2.4rem; color: var(--navy); margin: 6px 0 4px; }
.offer .price small { font-size: 0.9rem; color: var(--muted); font-family: "Inter", sans-serif; }
.offer ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.offer li { padding: 8px 0 8px 28px; position: relative; color: var(--ink); font-size: 0.96rem; border-bottom: 1px solid var(--paper-2); }
.offer li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.offer .btn { margin-top: auto; text-align: center; }

/* ---------- Témoignages ---------- */
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
}
.quote p { font-style: italic; color: var(--ink); font-size: 1.02rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .av {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-soft);
  display: grid; place-items: center; font-family: "Instrument Serif", serif; font-size: 1.1rem;
}
.quote .who b { color: var(--navy); font-size: 0.95rem; display: block; }
.quote .who span { color: var(--muted); font-size: 0.85rem; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- Fondateur ---------- */
.founder { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 46px; align-items: center; }
.founder-photo { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-ph { display: grid; place-items: center; aspect-ratio: 5/6; gap: 12px; text-align: center; color: var(--muted); padding: 24px; }
.founder-ph .circle { width: 92px; height: 92px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); display: grid; place-items: center; font-size: 2.5rem; }
.founder-ph small { font-size: 0.82rem; letter-spacing: 0.5px; }
.founder .eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.76rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.founder h2 { margin-bottom: 16px; font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: -0.3px; line-height: 1.25; font-size: clamp(0.88rem, 1.5vw, 1.12rem); white-space: nowrap; }
.founder p { color: var(--ink); font-size: 1rem; }
.founder .name { margin-top: 22px; color: var(--navy-soft); font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; font-size: 0.95rem; }

/* ---------- Vidéo (Notre vision) ---------- */
.video-wrap { position: relative; width: 100%; max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--navy-deep); box-shadow: var(--shadow); border: 1px solid var(--line); }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; color: #cbd9ee; background: radial-gradient(600px 300px at 50% 40%, #1c3a63, var(--navy-deep)); }
.video-ph .play { width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,0.16); display: grid; place-items: center; transition: transform 0.2s ease, background 0.2s ease; }
.video-ph .play::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; margin-left: 6px; }
.video-wrap:hover .video-ph .play { transform: scale(1.06); background: rgba(255,255,255,0.24); }
.video-ph small { font-size: 0.9rem; letter-spacing: 0.4px; color: #a9c2e6; }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-soft));
  color: var(--white); border-radius: 20px; padding: 56px 44px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 54ch; margin: 0 auto 26px; }

/* ---------- Bibliothèque (exemples de dossiers) ---------- */
.library-band { background: var(--navy-deep); border-radius: 20px; padding: 48px 44px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.3fr auto; gap: 44px; align-items: center; }
.library-band .eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.76rem; font-weight: 700; color: var(--gold-soft); margin-bottom: 12px; }
.library-band h2 { color: #fff; margin-bottom: 14px; }
.library-band p { color: rgba(255,255,255,0.85); margin: 0; }
.library-band .lib-cta { text-align: center; }
.library-band .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 12px 28px -14px rgba(0,0,0,0.6); }
.library-band .btn-primary:hover { background: var(--paper); color: var(--navy-deep); }
.library-band .cap { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-top: 14px; }
@media (max-width: 760px) { .library-band { grid-template-columns: 1fr; text-align: center; padding: 40px 26px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px;
}
.contact-card .ico {
  width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--navy);
  color: var(--gold-soft); display: grid; place-items: center; font-size: 1.2rem;
}
.contact-card b { color: var(--navy); display: block; }
.contact-card a, .contact-card span { color: var(--muted); font-size: 0.96rem; }
a.contact-card { text-decoration: none; cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
a.contact-card:hover { border-color: var(--navy-soft); transform: translateY(-2px); box-shadow: var(--shadow); }

form.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 0.98rem; color: var(--ink); background: var(--paper);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(20,48,122,0.12); background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hidden { display: none; }

/* ---------- Inscription multi-étapes ---------- */
.stepper { display: flex; align-items: flex-start; justify-content: center; max-width: 660px; margin: 0 auto 46px; }
.stepper .st { display: flex; flex-direction: column; align-items: center; gap: 9px; position: relative; flex: 1; }
.stepper .st .dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--white); border: 2px solid var(--line); color: var(--muted); z-index: 1; transition: 0.2s; }
.stepper .st .cap { font-size: 0.8rem; color: var(--muted); font-weight: 600; text-align: center; }
.stepper .st::before { content: ""; position: absolute; top: 21px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper .st:first-child::before { display: none; }
.stepper .st.active .dot, .stepper .st.done .dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.stepper .st.active .cap, .stepper .st.done .cap { color: var(--navy); }
.stepper .st.done::before, .stepper .st.active::before { background: var(--navy); }
.form-step { display: none; }
.form-step.active { display: block; }
.form-step h3 { margin-bottom: 20px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.field select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 0.98rem; color: var(--ink); background: var(--paper); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice { border: 1.5px solid var(--line); border-radius: 12px; padding: 18px 18px; cursor: pointer; transition: 0.2s; background: var(--white); display: block; }
.choice:hover { border-color: var(--navy-soft); }
.choice.sel { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,95,0.12); }
.choice b { color: var(--navy); }
.choice .price-min { color: var(--muted); font-size: 0.9rem; }
.inscription-form { max-width: 680px; margin: 0 auto; }

/* ---------- Page merci ---------- */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.thanks .badge {
  width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: var(--gold-soft);
  display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 24px;
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.8); padding: 56px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.6px; margin: 0 0 16px; }
.site-footer a { color: rgba(255,255,255,0.75); display: block; margin-bottom: 9px; font-size: 0.95rem; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .brand { color: var(--white); margin-bottom: 12px; }
.site-footer .brand .dot { background: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}

/* ---------- Animations au scroll ---------- */
/* Le masquage n'a lieu que si JavaScript est actif (classe .js sur <html>).
   Sans JS, tout le contenu reste visible : dégradation gracieuse. */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-3, .grid-2, .stats, .footer-grid, .contact-grid, .row2, .founder { grid-template-columns: 1fr; }
  .founder { gap: 32px; }
  .founder-ph { aspect-ratio: 4/3; }
  .founder h2 { white-space: normal; font-size: 1.2rem; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav-toggle { display: block; }
  .cta-band { padding: 40px 24px; }
}
