/* Valry Learning — site commercial (zéro dépendance externe, RGPD-clean) */
:root {
  --primary: #1f5faa;
  --primary-dark: #164a86;
  --ink: #16222e;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #dfe6ee;
  --ok: #1e7d4f;
  --radius: 12px;
  --maxw: 68rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 46rem; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; color: var(--ink); }
.nav__brand:hover { text-decoration: none; }
.nav__logo { width: 30px; height: 30px; }
.nav__links { display: flex; align-items: center; gap: 1.25rem; }
.nav__links a { color: var(--ink); font-weight: 500; }
.nav__toggle { display: none; font-size: 1.4rem; background: none; border: 0; cursor: pointer; color: var(--ink); }

/* ---- Buttons ---- */
.btn { display: inline-block; border-radius: 999px; font-weight: 600; text-align: center; border: 2px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary); color: #fff; padding: .65rem 1.4rem; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { color: var(--primary); border-color: var(--primary); padding: .6rem 1.4rem; background: transparent; }
.btn--ghost:hover { background: var(--bg-alt); }
.btn--light { background: #fff; color: var(--primary); padding: .65rem 1.4rem; }
.btn--outline-light { color: #fff; border-color: #fff; padding: .6rem 1.4rem; }
.btn--sm { padding: .4rem 1rem; font-size: .92rem; }
.btn--lg { padding: .85rem 1.8rem; font-size: 1.05rem; }
.btn--block { display: block; width: 100%; }

/* ---- Hero ---- */
.hero { padding: 5rem 0 3.5rem; background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); text-align: center; }
.hero__kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--primary); margin: 0 0 .75rem; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 auto 1rem; max-width: 46rem; }
.hero__sub { font-size: 1.15rem; color: var(--muted); max-width: 44rem; margin: 0 auto 1.75rem; }
.hero__cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-bottom: .75rem; }
.hero__note { color: var(--muted); font-size: .92rem; margin: 0 0 1.75rem; }
.hero__proofs { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: center; padding: 0; margin: 0; color: var(--muted); font-weight: 500; font-size: .95rem; }
.hero__proofs li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: .4rem; }

/* ---- Sections ---- */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; margin: 0 0 .5rem; }
.section__sub { text-align: center; color: var(--muted); margin: 0 auto 2.25rem; max-width: 40rem; }
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card__icon { font-size: 1.6rem; margin-bottom: .5rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

.steps { counter-reset: step; }
.step { text-align: center; padding: 1rem; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: .75rem; }
.step h3 { margin: 0 0 .35rem; }
.step p { color: var(--muted); margin: 0; }
.step code { background: #e8eef7; border-radius: 6px; padding: .1rem .35rem; font-size: .9em; }

/* ---- Pricing ---- */
.pricing { align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; }
.price-card--featured { border: 2px solid var(--primary); box-shadow: 0 10px 30px rgba(31,95,170,.12); }
.price-card__badge { position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700; padding: .2rem .8rem; border-radius: 999px; margin: 0; }
.price-card h3 { margin: 0; font-size: 1.15rem; }
.price-card__price { font-size: 2.3rem; font-weight: 700; margin: .4rem 0 0; }
.price-card__price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-card__seats { color: var(--ok); font-weight: 600; margin: .15rem 0 1rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.price-card li { padding: .3rem 0; color: var(--muted); }
.price-card li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: .5rem; }
.pricing__note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1.75rem; }

/* ---- FAQ ---- */
details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1rem 1.25rem; margin-bottom: .8rem; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: .6rem 0 0; }

/* ---- CTA band ---- */
.cta-band { background: var(--primary); color: #fff; padding: 3.5rem 0; text-align: center; }
.cta-band h2 { margin: 0 0 .5rem; }
.cta-band p { margin: 0 0 1.5rem; opacity: .9; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 2.25rem 0 2.5rem; background: var(--bg-alt); }
.footer__inner { display: grid; gap: 1.25rem; grid-template-columns: 1fr auto; align-items: start; }
.footer__brand { margin: 0; font-size: 1.05rem; }
.footer__tagline { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.footer__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__links a { color: var(--ink); font-size: .95rem; }
.footer__legal { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; margin: 0; }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr; } }

/* ---- Legal pages ---- */
.legal h1 { font-size: 1.9rem; }
.legal section { margin-bottom: 2rem; }
.legal p, .legal li { color: #33414f; }
.legal .placeholder { background: #fdf3d7; border-radius: 4px; padding: 0 .3rem; }

/* ---- Mobile nav ---- */
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem 1.25rem; gap: .9rem; }
  .nav__links--open { display: flex; }
}
