/* 1gétude — feuille de styles (aucune dépendance externe / CDN)
   Direction : « almanach éditorial » — papier ivoire chaud, encre vert forêt,
   accent terracotta/ocre. Titres en serif système, corps en sans humaniste.
   Aucun gradient omniprésent, aucun glassmorphism, palette chaude restreinte. */

:root {
  /* Surfaces papier chaud */
  --paper: #f4ecda;         /* fond principal, ivoire chaud */
  --paper-2: #ede3ce;       /* bande alternée, papier plus dense */
  --surface: #fbf6ea;       /* fiche / carte, feuille fraîche */
  --surface-2: #f6efe0;     /* surface secondaire discrète */

  /* Encre vert forêt */
  --ink: #17352a;           /* titres, encre profonde */
  --ink-body: #24382e;      /* texte courant */
  --muted: #566a5d;         /* texte secondaire (AA sur papier) */
  --forest: #1f4433;        /* aplats vert (boutons secondaires) */
  --forest-soft: #2e5a45;

  /* Accents chauds restreints */
  --accent: #a6431e;        /* terracotta — liens, CTA, accents (AA texte) */
  --accent-warm: #c25a2e;   /* terracotta clair — décor non-textuel, survol */
  --ochre: #b77a1e;         /* ocre/safran — étoiles, ponctuation discrète */
  --sage: #8aa890;          /* vert doux secondaire — décor très parcimonieux */

  /* Traits & ombres chaudes */
  --line: rgba(31, 54, 42, 0.14);      /* hairline vert sur papier */
  --line-2: rgba(31, 54, 42, 0.22);
  --shadow: 0 18px 42px -26px rgba(58, 42, 22, 0.42);
  --shadow-soft: 0 10px 26px -18px rgba(58, 42, 22, 0.30);

  --radius: 16px;
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-body);
  background-color: var(--paper);
  /* Lavis chaud unique, très discret — pas de nuage arc-en-ciel */
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(194, 90, 46, 0.06), transparent 60%),
    radial-gradient(900px 560px at -8% 4%, rgba(31, 68, 51, 0.05), transparent 58%);
  background-attachment: fixed;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.16;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--forest); color: var(--surface); padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(120%) blur(8px);
  background: rgba(244, 236, 218, 0.86);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.01em; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--forest); color: var(--surface); font-weight: 700; font-size: 1.12rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.brand-name { color: var(--ink); }
.brand-accent { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-family: var(--font); font-weight: 500; font-size: .95rem; transition: color .2s ease; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta {
  color: var(--surface); background: var(--accent);
  border: 1px solid var(--accent);
  padding: 9px 17px; border-radius: 999px; font-weight: 600;
  transition: background .2s ease, transform .18s ease;
}
.nav .nav-cta:hover { background: #8f3917; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

.nav-mobile { display: none; flex-direction: column; padding: 8px 24px 18px; gap: 4px; border-bottom: 1px solid var(--line); background: var(--paper); }
.nav-mobile a { padding: 12px 8px; color: var(--muted); border-radius: 10px; }
.nav-mobile a:hover { color: var(--ink); background: rgba(31, 54, 42, 0.05); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: .98rem; padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn-primary { background: var(--accent); color: var(--surface); box-shadow: var(--shadow-soft); }
.btn-primary:hover { transform: translateY(-2px); background: #8f3917; box-shadow: 0 16px 34px -16px rgba(140, 55, 22, .6); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--forest); background: rgba(31, 68, 51, 0.06); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 116px) 0 clamp(48px, 7vw, 92px); overflow: hidden; }
/* Lavis chaud unique et discret (remplace l'aurore arc-en-ciel) */
.hero-aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background: radial-gradient(620px 400px at 78% 6%, rgba(194, 90, 46, 0.10), transparent 62%);
  z-index: 0;
}
/* Motif « papier réglé » horizontal, très léger — évoque le cahier, pas la grille tech */
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: repeating-linear-gradient(180deg, rgba(31, 54, 42, 0.05) 0, rgba(31, 54, 42, 0.05) 1px, transparent 1px, transparent 34px);
  mask-image: radial-gradient(78% 62% at 50% 22%, #000 42%, transparent 100%);
  -webkit-mask-image: radial-gradient(78% 62% at 50% 22%, #000 42%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-warm); box-shadow: 0 0 0 4px rgba(194, 90, 46, .14); }
.eyebrow-dark { color: var(--accent); }

.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; margin-bottom: .35em; }
/* Mot mis en avant : terracotta plein + soulignage discret dessiné (pas de gradient) */
.grad { color: var(--accent); box-shadow: inset 0 -0.14em 0 rgba(194, 90, 46, 0.18); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 42ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; color: var(--muted); font-size: .92rem; }

/* Fiche cohorte (ex « glass card ») — feuille crème nette, sans flou */
.hero-card { display: flex; justify-content: center; }
.glass-card {
  width: 100%; max-width: 380px; padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow);
  position: relative;
}
/* petit onglet terracotta en tête de fiche */
.glass-card::before {
  content: ""; position: absolute; left: 26px; top: 0; width: 46px; height: 4px;
  background: var(--accent); border-radius: 0 0 4px 4px;
}
.gc-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gc-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; }
.gc-live { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--accent); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-warm); box-shadow: 0 0 0 0 rgba(194, 90, 46, .5); animation: pulse 2.4s infinite; }
.gc-title { font-size: 1.3rem; margin-bottom: 14px; }
.gc-bar { height: 8px; border-radius: 999px; background: rgba(31, 54, 42, 0.10); overflow: hidden; }
.gc-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--forest); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.gc-meta { font-size: .85rem; color: var(--muted); margin: 10px 0 18px; }
.gc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.gc-stats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; }
.gc-stats strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.gc-stats span { font-size: .74rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.stats-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; margin: 0; text-align: center; }
.stats-grid strong { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; color: var(--forest); }
.stats-grid span { color: var(--muted); font-size: .92rem; }

/* ---------- Sections ---------- */
section { position: relative; }
.programs, .method, .reviews { padding: clamp(64px, 9vw, 108px) 0; }
.method { background: var(--paper-2); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 54px); text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section-head .eyebrow { justify-content: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
/* barre d'accent haute, révélée au survol (remplace le contour gradient) */
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card:hover::before { transform: scaleX(1); opacity: 1; }
.card-ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px;
  background: rgba(31, 68, 51, 0.08); border: 1px solid var(--line);
  color: var(--forest); font-size: 1.3rem; font-weight: 700; margin-bottom: 18px;
}
.card h3 { font-size: 1.24rem; }
.card p { color: var(--muted); font-size: .96rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 18px; }
.chips li { font-size: .76rem; color: var(--forest); background: rgba(31, 68, 51, 0.07); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.card-link { color: var(--accent); font-weight: 600; font-size: .95rem; }
.card-link:hover { text-decoration: underline; }

/* ---------- Method / steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n { display: inline-block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Reviews ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin: 0; }
.stars { color: var(--ochre); letter-spacing: 2px; margin-bottom: 12px; }
.quote blockquote { margin: 0 0 18px; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--surface); font-weight: 700; font-size: .82rem; }

/* ---------- CTA ---------- */
.cta { padding: clamp(64px, 9vw, 116px) 0; text-align: center; overflow: hidden; }
.cta-aurora { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(620px 320px at 50% 0%, rgba(194, 90, 46, 0.09), transparent 62%);
}
.cta-inner { position: relative; z-index: 1; max-width: 700px; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.cta p { color: var(--muted); font-size: 1.08rem; max-width: 54ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 28px 0 18px; }
.cta-fine { font-size: .92rem; }
.cta-fine a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 30px; background: var(--paper-2); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: start; }
.footer-brand { max-width: 420px; }
.footer-brand p { color: var(--muted); font-size: .94rem; margin-top: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-bottom p { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(194, 90, 46, .5); } 70% { box-shadow: 0 0 0 9px rgba(194, 90, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(194, 90, 46, 0); } }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { order: -1; }
  .glass-card { max-width: 420px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .lead { max-width: none; }
  .btn { width: 100%; }
  .hero-actions, .cta-actions { flex-direction: column; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .pulse { animation: none; }
}
