/* ============================================================
   Pédagogie Numérique — styles.css
   Palette : blanc cassé #F7F5F2 · anthracite #2B2B2B · orange #F98012
   ============================================================ */

:root {
  --bg: #F7F5F2;
  --bg-alt: #EFEAE3;
  --ink: #2B2B2B;
  --ink-soft: #555;
  --muted: #8a8a8a;
  --accent: #F98012;
  --accent-soft: rgba(249, 128, 18, 0.12);
  --dark: #1E1B18;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(43, 43, 43, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.container {
  width: min(1100px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  background: rgba(247, 245, 242, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span {
  color: var(--accent);
  margin-left: 4px;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(249, 128, 18, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(249, 128, 18, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { font-size: 14px; padding: 9px 18px; }

/* ---------- Hero ---------- */
.hero { padding: 100px 0 80px; }
.hero-inner { text-align: center; max-width: 820px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 44px;
}

/* ---------- Cartes tutoriels ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid rgba(43, 43, 43, 0.07);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card h3 { font-size: 21px; font-weight: 700; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card-tag {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.card-tag-soon { background: #EDEAE6; color: var(--muted); }
.card-list {
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
}
.card-list li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.card-soon { font-size: 13.5px; color: var(--muted); }
.card-soon a { color: var(--accent); }
.card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Pour qui ---------- */
.feature { padding: 8px 6px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* ---------- À propos ---------- */
.about { max-width: 760px; }
.about p { margin-bottom: 16px; color: var(--ink-soft); font-size: 16px; }
.about strong { color: var(--ink); }
.about-signature { font-style: normal; }
.about-signature em { color: var(--accent); font-weight: 600; }

/* ---------- Contact ---------- */
.section-dark { background: var(--dark); color: #f3efe9; }
.contact { text-align: center; max-width: 640px; }
.contact h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 14px;
}
.contact p { color: #cfc8c0; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.footer { padding: 26px 0; border-top: 1px solid rgba(43, 43, 43, 0.08); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Burger (mobile) ---------- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 720px) {
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(43, 43, 43, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav.open { max-height: 260px; }
  .nav a {
    width: 100%;
    padding: 14px 20px;
    border-top: 1px solid rgba(43, 43, 43, 0.06);
  }
  .hero { padding: 64px 0 56px; }
}

/* ---------- Apparition au scroll (voir script.js) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}