/* FasoEduc — site vitrine. CSS écrit à la main : zéro build, zéro CDN,
   zéro webfont → premier rendu quasi instantané, y compris sur mobile 3G. */

:root {
  --paper: #f4faf6;
  --card: #ffffff;
  --ink: #14261c;
  --muted: #476354;
  --line: #d7e6dd;
  --green: #009639;
  --green-dark: #00742c;
  --gold: #f2b705;
  --red: #ce1126;
  --maxw: 64rem;
  --radius: 6px;
  --pad: clamp(1rem, 4vw, 2rem);
  --shadow: 0 1px 2px rgba(20, 38, 28, .06), 0 12px 28px -16px rgba(20, 38, 28, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0;
}
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.55rem, 4.4vw, 2.2rem); }
h3 { font-size: 1.12rem; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; }

/* ---- layout primitives ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(2.4rem, 8vw, 4.4rem); }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .55rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 1rem; }

/* ---- flag stripe ---- */
.flag { height: 4px; background: linear-gradient(90deg, var(--red) 0 33.33%, var(--gold) 33.33% 66.66%, var(--green) 66.66%); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 250, 246, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav { display: none; gap: .15rem; align-items: center; }
.nav a { padding: .55rem .7rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--radius); color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.cta { color: var(--green); font-weight: 700; }
.menu-btn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.mobile-nav { display: block; border-top: 1px solid var(--line); padding: .25rem var(--pad) .9rem; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: flex; min-height: 48px; align-items: center; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 1rem; }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a.cta { color: var(--green); font-weight: 700; }
@media (min-width: 820px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 48px; padding-inline: 1.25rem; border-radius: var(--radius); font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-on-dark { border-color: #3c5a4c; color: #fff; }
.btn-on-dark:hover { border-color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---- cards / grids ---- */
.grid { display: grid; gap: 1rem; }
@media (min-width: 560px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.15rem, 4vw, 1.7rem); }
.card h3 { margin-bottom: .35rem; }
.card p { font-size: .95rem; }
.tick { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.tick li { display: flex; gap: .55rem; font-size: .95rem; line-height: 1.5; }
.tick li::before { content: "✓"; color: var(--green); font-weight: 700; flex: none; }
.tick.plain li::before { content: "—"; color: var(--muted); }

/* ---- hero ---- */
.hero { display: grid; gap: 2rem; align-items: center; padding-top: clamp(1.6rem, 6vw, 2.8rem); padding-bottom: clamp(2rem, 7vw, 3.4rem); }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.proof { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem; box-shadow: var(--shadow); max-width: 22rem; }
.proof .name { font-family: Georgia, serif; font-size: 1.35rem; margin: .3rem 0 .6rem; }
.proof .row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.proof .row:last-child { border-bottom: 0; font-weight: 700; }

/* ---- price cards ---- */
p.price { font-family: Georgia, "Times New Roman", serif; font-size: 2.5rem; line-height: 1.05; margin: .5rem 0 .15rem; font-weight: 600; }
p.price small { font-size: .8rem; color: var(--muted); font-family: inherit; margin-left: .4rem; font-weight: 400; }
.offer-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.offer-dark .muted, .offer-dark p.price small { color: #b9d4c6; }
.offer-dark .tick li::before { color: var(--gold); }

/* ---- contact band ---- */
.contact { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 2.5rem); }
.contact h2 { color: #fff; }
.contact .muted { color: #b9d4c6; }
.phones { display: grid; gap: .35rem; margin-top: 1rem; }
.phones a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: #fff; }
.phones a:hover { color: var(--gold); }

/* ---- breadcrumb ---- */
.crumb { font-size: .9rem; color: var(--muted); padding-block: .8rem; border-bottom: 1px solid var(--line); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }

/* ---- faq ---- */
.faq { max-width: 44rem; }
.faq dt { font-weight: 700; margin-top: 1.4rem; }
.faq dd { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; }
.faq a { color: var(--green); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; gap: 2rem; padding-block: 2.8rem; }
@media (min-width: 700px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer img { height: 38px; width: auto; }
.site-footer h4 { font-family: inherit; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--green); }
.site-footer .legal { border-top: 1px solid var(--line); text-align: center; font-size: .8rem; color: var(--muted); padding-block: 1rem; }

/* ---- a11y ---- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: .6rem; z-index: 100; background: var(--card); padding: .5rem .8rem; border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
