:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --text: #1c2b2a;
  --muted: #55645f;
  --primary: #0f766e;
  --primary-ink: #ffffff;
  --accent: #ea580c;
  --accent-ink: #ffffff;
  --sun: #f59e0b;
  --sky: #0284c7;
  --soft: #e7f3ef;
  --warm: #fff3e0;
  --border: #dbe4df;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(15, 60, 55, .09);
  --hero-grad: linear-gradient(135deg, #e3f4ee 0%, #fdf1de 100%);
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a19;
    --surface: #162423;
    --text: #e8f1ee;
    --muted: #a3b5b0;
    --primary: #2dd4bf;
    --primary-ink: #06312d;
    --accent: #fb923c;
    --accent-ink: #2a1100;
    --sun: #fbbf24;
    --sky: #38bdf8;
    --soft: #15302d;
    --warm: #2b2217;
    --border: #274240;
    --shadow: 0 8px 28px rgba(0, 0, 0, .4);
    --hero-grad: linear-gradient(135deg, #12302c 0%, #2b2217 100%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: var(--surface); padding: 8px 12px; z-index: 100; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--primary); margin-bottom: .6em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-intro { max-width: 62ch; margin-bottom: 32px; }
.center.section-intro { margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text); font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1.3; transition: transform .15s, filter .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(234, 88, 12, .3); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { padding: 8px 16px; }
.btn-lg { padding: 15px 30px; font-size: 1.1rem; }

/* Sections */
section { padding: 80px 0; }
.alt { background: var(--soft); }
.warm { background: var(--warm); }

/* Hero */
.hero { padding: 72px 0 80px; background: var(--hero-grad); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; margin-bottom: 20px; box-shadow: var(--shadow); }
.hero .lead { color: var(--text); opacity: .82; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.hero-art { background: var(--surface); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-art .draw { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 4s ease-in-out infinite; }
.hero-art .draw:nth-of-type(2) { animation-delay: .5s; }
.hero-art .draw:nth-of-type(3) { animation-delay: 1s; }
.hero-art .draw:nth-of-type(4) { animation-delay: 1.5s; }
.hero-art .draw:nth-of-type(5) { animation-delay: 2s; }
.hero-art .draw:nth-of-type(6) { animation-delay: 2.5s; }
@keyframes draw { 0% { stroke-dashoffset: 60; } 35%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -60; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 1.8rem; color: var(--primary); }
.stat span { font-size: .85rem; color: var(--muted); }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .icon { font-size: 2rem; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.hover-lift { transition: transform .2s, box-shadow .2s; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15, 60, 55, .14); }
.example { margin-top: 12px; font-size: .92rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 10px; }

/* Facts */
.fact { text-align: center; }
.fact .num { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.fact p { margin: 0; font-size: .95rem; }
.fact small { display: block; color: var(--muted); margin-top: 6px; font-size: .78rem; }
.bridge { text-align: center; font-size: 1.3rem; font-weight: 700; margin-top: 36px; color: var(--primary); }

/* Mini-fresque */
.mf { max-width: 640px; margin: 0 auto; }
.mf-board { position: relative; padding: 8px 0; }
.mf-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 26px; }
.mf-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.mf-card { background: var(--surface); color: var(--text); border: 2px solid var(--border); border-radius: 14px; padding: 12px 6px; text-align: center; font: inherit; font-size: .82rem; line-height: 1.3; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, background .15s; min-height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.mf-card .e { font-size: 1.9rem; line-height: 1; }
.mf-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.mf-card[aria-pressed="true"] { border-color: var(--accent); background: var(--warm); transform: translateY(-3px) scale(1.04); }
.mf-card.linked { border-color: var(--primary); }
.mf-line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; }
.mf-head { fill: var(--primary); }
.mf-feedback { margin-top: 24px; min-height: 3.6em; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--primary); border-radius: 12px; }
.mf-feedback.warn { border-left-color: var(--accent); }
.mf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .92rem; color: var(--muted); flex-wrap: wrap; }
.mf-progress { height: 8px; background: var(--border); border-radius: 99px; flex: 1; min-width: 120px; overflow: hidden; }
.mf-progress i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .4s; }
.mf-reset { background: none; border: none; color: var(--primary); font: inherit; cursor: pointer; text-decoration: underline; }
.mf-win { display: none; text-align: center; margin-top: 20px; }
.mf-win.show { display: block; }

/* Steps (accueil) */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 20px 20px 20px 72px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 800; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }
.mini-step .time { display: inline-block; background: var(--soft); color: var(--primary); font-weight: 700; font-size: .8rem; padding: 2px 10px; border-radius: 99px; margin-bottom: 10px; }

/* Timeline (page atelier) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--border); display: grid; gap: 28px; }
.timeline > li { position: relative; }
.timeline > li::before { content: ""; position: absolute; left: -38px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--primary); }
.timeline > li.break::before { background: var(--sun); box-shadow: 0 0 0 2px var(--sun); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.tl-time { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.tl-dur { font-size: .85rem; color: var(--muted); background: var(--soft); padding: 2px 10px; border-radius: 99px; }
.tl-head h3 { margin: 0; font-size: 1.35rem; }
.tl-body { padding: 20px 22px; }
.tl-body dl { margin: 0; display: grid; gap: 10px; }
.tl-body dt { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.tl-body dd { margin: 0 0 4px; }
.tl-break .tl-body { background: var(--warm); }
.photo-ph { aspect-ratio: 4 / 3; border-radius: var(--radius); background: repeating-linear-gradient(45deg, var(--soft), var(--soft) 12px, var(--warm) 12px, var(--warm) 24px); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .9rem; padding: 12px; border: 2px dashed var(--border); }
.photo-ph b { display: block; font-size: 1.8rem; }
ul.ticks, ul.crosses { list-style: none; padding: 0; margin: 0; }
ul.ticks li, ul.crosses li { padding-left: 30px; position: relative; margin-bottom: 8px; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
ul.crosses li::before { content: "✗"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Sessions */
.session { display: flex; flex-direction: column; gap: 6px; position: relative; }
.session .ribbon { position: absolute; top: 14px; right: 14px; background: var(--sun); color: #3b2300; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; letter-spacing: .05em; }
.session .date { font-size: 1.25rem; font-weight: 800; text-transform: capitalize; padding-right: 70px; }
.session .meta { color: var(--muted); font-size: .95rem; }
.session .left { font-size: .88rem; font-weight: 600; }
.session .left.few { color: var(--accent); }
.session .bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.session .bar i { display: block; height: 100%; background: var(--primary); }
.session .btn { margin-top: 10px; text-align: center; }
.notice { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 18px; }

/* Formateur */
.trainer { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.trainer img { width: 220px; height: 220px; border-radius: 50%; box-shadow: var(--shadow); background: var(--surface); }
.trainer blockquote { font-size: 1.15rem; border-left: 4px solid var(--accent); padding-left: 16px; margin: 16px 0; }
.trainer-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; }
.trainer-stats b { display: block; font-size: 1.6rem; color: var(--primary); }
.trainer-stats span { font-size: .85rem; color: var(--muted); }

/* Équipe */
.demo-banner { background: #fef08a; color: #422006; text-align: center; padding: 8px 16px; font-size: .88rem; font-weight: 600; }
.member { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.member img { width: 140px; height: 140px; border-radius: 50%; box-shadow: var(--shadow); border: 4px solid var(--surface); margin-bottom: 8px; background: var(--surface); object-fit: cover; }
.member h3 { margin: 0; }
.member .role { color: var(--primary); font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.member .tags { margin-top: auto; padding-top: 8px; }
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; padding: 28px; }
.profile img { width: 220px; height: 220px; border-radius: 50%; box-shadow: var(--shadow); object-fit: cover; background: var(--surface); }
.profile h2 { margin-bottom: .1em; font-size: 1.7rem; }
.profile .role { color: var(--primary); font-weight: 700; margin-bottom: 12px; }
.profile blockquote { border-left: 4px solid var(--accent); padding-left: 16px; margin: 16px 0; font-style: italic; }
.profile h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin: 18px 0 6px; }
.profile ul { margin: 0; padding-left: 20px; }
.profile-list { display: grid; gap: 24px; }

/* Témoignages */
.quote { display: flex; flex-direction: column; gap: 16px; }
.quote p { font-style: italic; margin: 0; }
.quote footer { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--primary); flex: none; }
.avatar.b { background: var(--accent); }
.avatar.c { background: var(--sky); }
.stars { color: var(--sun); letter-spacing: 2px; }

blockquote { margin: 0; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: .8em 0 0; color: var(--muted); }

.cta-band { text-align: center; background: linear-gradient(135deg, var(--primary), #0b5a54); color: var(--primary-ink); border-radius: 28px; padding: 56px 24px; position: relative; overflow: hidden; }
.cta-band h2 { color: inherit; }
.cta-band p { max-width: 55ch; margin-inline: auto; }
.cta-band .btn-primary { margin-top: 8px; }
.cta-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.cta-pills span { background: rgba(255, 255, 255, .18); border-radius: 99px; padding: 4px 14px; font-size: .9rem; font-weight: 600; }

.todo { background: #fef08a; color: #422006; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.tag { display: inline-block; background: var(--soft); color: var(--primary); border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 600; margin: 0 6px 6px 0; }

/* Sticky CTA mobile */
.sticky-cta { position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translate(-50%, 140%); transition: transform .3s; display: none; white-space: nowrap; }
.sticky-cta.show, .sticky-cta.show:hover { transform: translate(-50%, 0); }

/* Révélation au scroll (uniquement si JS actif) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 90px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer a { color: var(--muted); }

/* Page header (pages internes) */
.page-head { padding: 56px 0 24px; }
.page-hero { background: var(--hero-grad); padding: 64px 0; }

/* Provider mock */
.mock-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #1e293b; }
.mock-card { background: #fff; color: #0f172a; border-radius: 16px; width: min(420px, 100%); padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.mock-banner { background: #fef08a; color: #422006; font-size: .8rem; padding: 6px 10px; border-radius: 6px; margin-bottom: 18px; font-weight: 600; }
.mock-card label { display: block; font-weight: 600; margin: 14px 0 4px; font-size: .9rem; }
.mock-card input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.mock-card .btn { width: 100%; margin-top: 20px; background: #2563eb; color: #fff; }
.mock-card a { color: #2563eb; }

@media (max-width: 800px) {
  section { padding: 52px 0; }
  .hero { padding: 48px 0 56px; }
  .hero-grid, .grid-3, .grid-2, .grid-4, .footer-grid, .trainer { grid-template-columns: 1fr; }
  .grid-4.facts { grid-template-columns: repeat(2, 1fr); }
  .trainer { text-align: center; justify-items: center; }
  .profile { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px; }
  .profile ul { text-align: left; }
  .profile blockquote { text-align: left; }
  .trainer blockquote { text-align: left; }
  .trainer-stats { justify-content: center; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 12px; }
  .nav.open { display: flex; }
  .nav .btn { text-align: center; }
  .sticky-cta { display: inline-block; }
  .snap { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 12px; margin-inline: -20px; padding-inline: 20px; }
  .snap > * { flex: 0 0 86%; scroll-snap-align: center; }
  .mf-grid { gap: 40px 14px; }
  .mf-card { font-size: .74rem; min-height: 100px; }
}
@media (max-width: 1000px) and (min-width: 801px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art .draw { animation: none; stroke-dashoffset: 0; }
  .btn, .hover-lift, .mf-card, .sticky-cta { transition: none; }
}
