/* ==========================================================================
   Libre de Grandir — feuille de style
   Palette tirée du logo : bleu marine (nom), vert (signature), touches
   orange / corail / bleu ciel / jaune (les quatre enfants et le soleil).
   Mise en page : colonne de lecture centrée (max 1120px), sections aérées,
   formes douces qui rappellent l'ovale et le chemin du logo.
   ========================================================================== */

:root {
  /* Couleurs */
  --ink: #1f2a3c;          /* texte courant */
  --ink-soft: #4b5668;     /* texte secondaire */
  --navy: #2b4570;         /* bleu du nom "Libre de Grandir" */
  --navy-deep: #1e3253;
  --green: #5f9a33;        /* vert de la signature */
  --green-soft: #8bc34a;
  --leaf: #e4efd3;         /* vert très clair, surfaces */
  --leaf-line: #c9ddb0;
  --sky: #4a7fc1;
  --sun: #f2cf5b;
  --orange: #f0a24a;
  --coral: #d9583b;
  --path: #f6ecd6;         /* beige du chemin */
  --bg: #fbfcf8;           /* fond de page : blanc légèrement végétal */
  --surface: #ffffff;
  --line: #e2e7df;
  --focus: #2b4570;

  /* Typographie */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Échelle */
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2rem;
  --step-4: 2.75rem;
  --step-5: 3.5rem;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(31, 42, 60, 0.08);
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 62ch;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--green); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, var(--step-5)); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, var(--step-4)); font-weight: 600; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
p + p { margin-top: 1em; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: var(--step-2); }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }

/* --- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: #4f8529; border-color: #4f8529; color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 1rem 1.8rem; font-size: var(--step-1); }

/* --- En-tête -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 600; color: var(--navy-deep); font-size: 1.15rem; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink); font-size: var(--step--1); }
.nav a:hover { color: var(--green); }
.nav .btn { padding: 0.6rem 1.1rem; font-size: var(--step--1); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.9rem var(--gutter); border-top: 1px solid var(--line); }
  .nav .btn { margin: 0.75rem var(--gutter) 1rem; justify-content: center; }
}

/* --- Sections ------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--leaf); }
.section-head { max-width: var(--measure); margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 0.75rem; }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 70%;
  aspect-ratio: 1.5;
  border-radius: 50%;
  background: var(--leaf);
  z-index: 0;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-logo { padding: clamp(0.5rem, 3vw, 2rem); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-logo { order: -1; max-width: 420px; margin-inline: auto; }
}

/* Bandeau de réassurance */
.reassurance {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.reassurance .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2rem;
  padding-block: 1.25rem;
}
.reassurance div { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-soft); }
.reassurance strong { display: block; color: var(--ink); }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 0.45em; }

/* --- Cartes des domaines -------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.card .mark {
  width: 44px; height: 44px;
  border-radius: 14px 14px 14px 4px;
  display: grid; place-items: center;
  margin-bottom: 0.4rem;
}
.card .mark svg { width: 24px; height: 24px; }
.card p { color: var(--ink-soft); font-size: var(--step--1); }

/* --- Pour qui ------------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border-top: 6px solid var(--navy);
  min-width: 0;
}
.panel.alt { border-top-color: var(--orange); }
.panel h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.panel ul { padding-left: 1.1em; margin: 1rem 0 0; color: var(--ink-soft); }
.panel li + li { margin-top: 0.4em; }

/* --- Approche ------------------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.principles h3 { margin-bottom: 0.4rem; }
.principles p { color: var(--ink-soft); }
.principle-bar { width: 48px; height: 5px; border-radius: 3px; margin-bottom: 1rem; }

/* --- Étapes --------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.step {
  counter-increment: step;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--line);
  min-width: 0;
}
.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: var(--step--1); }

/* --- Tarifs --------------------------------------------------------------- */
.price-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 520px;
  min-width: 0;
}
.price { font-family: var(--font-display); font-size: var(--step-4); color: var(--navy-deep); font-weight: 600; line-height: 1; margin: 0.5rem 0; }
.price small { font-family: var(--font-body); font-size: var(--step-0); color: var(--ink-soft); font-weight: 400; }
.price-card ul { padding-left: 1.1em; color: var(--ink-soft); margin: 1rem 0 1.5rem; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.8rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 1rem; max-width: var(--measure); }

/* --- Appel à l'action final ---------------------------------------------- */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 48ch; margin-top: 0.5rem; }
.cta-band .btn-primary { background: var(--sun); border-color: var(--sun); color: var(--navy-deep); }
.cta-band .btn-primary:hover { background: #ecc344; border-color: #ecc344; }

/* --- Pied de page --------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 2.5rem 2rem; font-size: var(--step--1); color: var(--ink-soft); }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.site-footer h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0.35rem; }
.site-footer a { text-decoration: none; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: 0.82rem; }

/* --- Pages intérieures ---------------------------------------------------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, var(--step-4)); margin-bottom: 0.75rem; }

/* Réservation */
.booking-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } }
.booking-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 640px;
  overflow: hidden;
  position: relative;
}
.booking-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center; padding: 2rem;
  background: var(--surface);
}
.booking-fallback p { color: var(--ink-soft); max-width: 42ch; }
.aside-card { background: var(--leaf); border-radius: var(--radius); padding: 1.6rem; min-width: 0; }
.aside-card h3 { margin-bottom: 0.5rem; }
.aside-card ul { padding-left: 1.1em; margin: 0.5rem 0 0; color: var(--ink-soft); font-size: var(--step--1); }
.aside-card li + li { margin-top: 0.35em; }
.aside-card + .aside-card { margin-top: 1rem; }

/* Formulaire */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.form label { font-weight: 700; display: block; margin-bottom: 0.35rem; }
.form input, .form textarea, .form select {
  width: 100%;
  font: inherit;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--leaf-line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid rgba(95,154,51,0.35); border-color: var(--green); }
.form .hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }
.form .consent { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); }
.form .consent input { width: auto; margin-top: 0.3rem; }
.form-note { background: var(--path); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: var(--step--1); color: var(--ink-soft); max-width: 640px; }

/* Encadré "à compléter" visible uniquement pendant la mise en place */
.a-completer {
  background: #fff6e0;
  border: 1px dashed var(--orange);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
