/* ============================================================
   TOQUADEMY — Vitrine
   Palette: Anthracite / Crème / Orange Feu / Cuivre (= app)
   ============================================================ */
:root {
  --anthracite: #1C1C1E;
  --cream:      #F5F0E8;
  --fire:       #FF6B2B;
  --copper:     #C17F4A;

  --surface-0: #1C1C1E;
  --surface-1: #2C2C2E;
  --surface-2: #3A3A3C;

  --text-primary:   #F5F0E8;
  --text-secondary: #9E9E9E;
  --text-muted:     #636363;

  --maxw: 1120px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  background: var(--anthracite);
  color: var(--cream);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: "Noto Serif", Georgia, serif; line-height: 1.2; color: var(--cream); }

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

.accent { color: var(--fire); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--fire);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(255,107,43,.6);
}
.btn-primary:hover { background: #ff7d44; box-shadow: 0 12px 30px -8px rgba(255,107,43,.7); }
.btn-ghost { background: transparent; color: var(--copper); border-color: rgba(193,127,74,.45); }
.btn-soon { cursor: default; opacity: .85; font-weight: 600; }
.btn-sm { padding: 9px 16px; font-size: 0.8125rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ===== Store badges (App Store / Google Play) ===== */
.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff;
  border: 1px solid rgba(245,240,232,.22);
  border-radius: 12px;
  padding: 8px 16px;
  cursor: default; user-select: none;
  transition: border-color .2s ease, transform .15s ease;
}
.store-badge:hover { border-color: rgba(245,240,232,.4); transform: translateY(-2px); }
.store-badge svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
.store-badge .sb-t { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.store-badge .sb-t small { font-size: 0.62rem; font-weight: 500; letter-spacing: .02em; opacity: .82; }
.store-badge .sb-t strong { font-size: 0.98rem; font-weight: 700; letter-spacing: .01em; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28,28,30,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(245,240,232,.07);
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(28,28,30,.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 56px; height: 56px; border-radius: 13px; }
.brand-name { font-family: "Noto Serif", serif; font-weight: 700; font-size: 1.45rem; letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--cream); }

.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(--cream); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero { position: relative; padding: 26px 0 20px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -180px; left: 50%;
  width: 760px; height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,107,43,.22) 0%, rgba(255,107,43,.06) 38%, transparent 68%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 900px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin-bottom: 14px; }
/* « Une compétence à la fois. » sur une seule ligne en grand écran */
@media (min-width: 860px) {
  .hero-title .accent { white-space: nowrap; }
}
.hero-sub { font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--text-secondary); max-width: 760px; margin: 0 auto 22px; }
.hero-sub strong { color: var(--cream); font-weight: 700; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.stats {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.stats li { display: flex; flex-direction: column; align-items: center; }
.stats strong { font-family: "Noto Serif", serif; font-size: 2rem; color: var(--fire); line-height: 1; }
.stats span { font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }

/* ===== SECTIONS ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--surface-1); }
/* La 1re section (atouts) remonte sous le hero pour être visible dès l'accueil */
#valeur { padding-top: 6px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.section-lead { color: var(--text-secondary); margin-top: 14px; }

/* Titre du Programme sur une seule ligne en grand écran (retour à la ligne conservé sur mobile) */
#programme .section-head { max-width: 800px; }
@media (min-width: 860px) {
  #programme .section-head h2 { white-space: nowrap; }
}

/* ===== GRID + CARDS ===== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface-1);
  border: 1px solid rgba(245,240,232,.06);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.section-alt .card { background: var(--surface-0); }
.card:hover { transform: translateY(-4px); border-color: rgba(193,127,74,.4); box-shadow: 0 18px 40px -22px rgba(0,0,0,.8); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card-img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  background: var(--surface-2);
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }
.card-feature { border-top: 2px solid var(--copper); }

/* ===== MODULES (cartes-photo) ===== */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(245,240,232,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.module-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s ease;
}
.module-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,28,30,.94) 6%, rgba(28,28,30,.45) 42%, rgba(28,28,30,0) 72%);
}
.module-card-title {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  z-index: 2;
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.module-card:hover { transform: translateY(-4px); border-color: rgba(193,127,74,.5); box-shadow: 0 20px 44px -22px rgba(0,0,0,.85); }
.module-card:hover img { transform: scale(1.06); }

/* ===== À VENIR (roadmap teaser) ===== */
.grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }
.card-soon { position: relative; border-top: 2px solid var(--fire); }
.soon-badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.625rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fire); background: rgba(255,107,43,.14);
  padding: 5px 11px; border-radius: 999px;
}
.soon-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,107,43,.12); color: var(--fire);
  margin-bottom: 18px;
}
.soon-icon svg { width: 28px; height: 28px; }
.soon-tagline { color: var(--copper); font-weight: 700; font-size: 0.8rem; letter-spacing: .04em; margin-bottom: 8px; text-transform: uppercase; }

/* Petit tag "Bientôt" discret en ligne (dans un paragraphe) */
.inline-soon {
  display: inline-block;
  font-size: 0.6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--copper); background: rgba(193,127,74,.14);
  padding: 2px 8px; border-radius: 999px;
  vertical-align: middle; margin-right: 5px; position: relative; top: -1px;
}

/* ===== CTA FINAL ===== */
.cta-final { padding: 96px 0; position: relative; }
.cta-inner { text-align: center; max-width: 620px; }
.cta-logo { margin: 0 auto 24px; border-radius: 22px; box-shadow: 0 20px 50px -18px rgba(255,107,43,.5); }
.cta-final h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 14px; }
.cta-final p { color: var(--text-secondary); margin-bottom: 30px; }

/* ===== Liste d'attente (capture e-mail) ===== */
.waitlist-form { display: flex; gap: 10px; justify-content: center; flex-wrap: nowrap; max-width: 520px; margin: 0 auto; }
.waitlist-input {
  flex: 1 1 auto; min-width: 0;
  background: var(--surface-1);
  border: 1px solid rgba(245,240,232,.18);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--cream);
  font-family: inherit; font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.waitlist-input::placeholder { color: var(--text-muted); }
.waitlist-input:focus { outline: none; border-color: var(--fire); box-shadow: 0 0 0 3px rgba(255,107,43,.18); }
.waitlist-form .btn { flex: 0 0 auto; white-space: nowrap; }
.waitlist-note { margin-top: 14px; font-size: .82rem; color: var(--text-muted); }
.waitlist-note a { color: var(--copper); text-decoration: underline; }
.waitlist-note.success { color: #30A762; font-weight: 700; }
.waitlist-note.error { color: #E0533D; font-weight: 700; }
@media (max-width: 540px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
}

/* ===== FOOTER ===== */
.footer { background: var(--surface-1); border-top: 1px solid rgba(245,240,232,.07); padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: "Noto Serif", serif; font-weight: 700; font-size: 1.05rem; }
.footer-brand img { border-radius: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: color .2s; }
.footer-links a:hover { color: var(--fire); }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }
.footer-contact { color: var(--text-secondary); font-size: 0.9rem; }
.footer-contact a { color: var(--copper); font-weight: 600; text-decoration: none; }
.footer-contact a:hover { color: var(--fire); }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .modules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed;
    top: 72px; right: 0;
    width: min(78vw, 300px);
    height: calc(100dvh - 72px);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: var(--surface-1);
    border-left: 1px solid rgba(245,240,232,.08);
    padding: 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.btn) { padding: 12px 4px; width: 100%; font-size: 1rem; }
  .nav-links .btn { width: 100%; margin-top: 10px; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-2 { max-width: 420px; }
  .modules { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .hero { padding: 64px 0 64px; }
  .section { padding: 64px 0; }
}

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