/* ─────────────────────────────────────────────
   Niceteaching — Design System
───────────────────────────────────────────── */

:root {
  --purple:       #892577;
  --purple-dark:  #642372;
  --purple-mid:   #A157AF;
  --purple-light: #F8E6F0;
  --pink:         #C4007A;
  --pink-light:   #FCE4F0;
  --bg:           #F7F4F7;
  --surface:      #FFFFFF;
  --dark:         #1F0E22;
  --dark-mid:     #2E1733;
  --text:         #221229;
  --text-mid:     #5E5267;
  --text-light:   #9F92A6;
  --green:        #10B981;
  --green-light:  #ECFDF5;
  --red:          #EF4444;
  --red-light:    #FEF2F2;

  --shadow-xs: 0 1px 4px rgba(137,37,119,.07);
  --shadow-sm: 0 2px 14px rgba(137,37,119,.10);
  --shadow-md: 0 8px 32px rgba(137,37,119,.16);
  --shadow-lg: 0 20px 60px rgba(137,37,119,.22);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Barre de progression au scroll ── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  z-index: 2000;
  transition: width .1s linear;
  pointer-events: none;
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 20px rgba(137,37,119,.30);
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(137,37,119,.40);
}
.btn-ghost {
  background: transparent;
  color: var(--purple);
  border-color: rgba(137,37,119,.25);
}
.btn-ghost:hover {
  background: var(--purple-light);
  border-color: var(--purple);
  transform: translateY(-2px);
}
.btn-light {
  background: #fff;
  color: var(--purple);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* ── Header / Navigation ── */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(247,244,247,.90);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(137,37,119,.08);
  transition: box-shadow .25s ease;
}
header.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(15,10,30,.08);
}
nav.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  color: var(--purple);
}
.nav-brand img { height: 130px; width: auto; margin-left: -59px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: 17px;
  color: var(--text-mid);
  transition: color .2s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transition: transform .2s ease;
  border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--purple); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--purple);
  border-radius: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(15,10,30,.10);
    transition: max-height .3s ease, padding .3s ease;
  }
  .nav-links.open { max-height: 320px; padding: 16px 24px; }
  .nav-links li { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(137,37,119,.08); }
  .nav-toggle { display: inline-flex; }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 160px 24px 110px;
  overflow: hidden;
  background: var(--bg);
}
.hero-decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-blob-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(137,37,119,.14), transparent 70%);
  top: -220px; left: -160px;
}
.hero-blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(196,0,122,.10), transparent 70%);
  top: -120px; right: -160px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-light);
  color: var(--purple);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
  border: 1px solid rgba(137,37,119,.12);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 22px;
  color: var(--text);
}
.hero h1 em { font-style: italic; color: var(--purple); }
.hero p.lead {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}
.hero-note { font-size: 13px; color: var(--text-light); }

/* Mock app */
.hero-visual { position: relative; }
.mock-app {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(137,37,119,.07);
  overflow: hidden;
}
.mock-topbar {
  background: var(--bg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(137,37,119,.07);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.mock-dot.red    { background: #FF5F57; }
.mock-dot.yellow { background: #FFBE2E; }
.mock-dot.green  { background: #28C841; }
.mock-tabs { display: flex; gap: 4px; }
.mock-tabs span {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 8px;
  color: var(--text-mid);
}
.mock-tabs span.active {
  background: var(--purple);
  color: #fff;
}
.mock-body { padding: 18px 20px; }
.mock-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 14px;
}
.mock-event {
  display: flex;
  gap: 12px;
  margin-bottom: 11px;
  align-items: flex-start;
}
.mock-event-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  padding-top: 11px;
  min-width: 36px;
}
.mock-event-content {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid;
}
.mock-event.purple .mock-event-content {
  background: var(--purple-light);
  border-color: var(--purple);
}
.mock-event.pink .mock-event-content {
  background: var(--pink-light);
  border-color: var(--pink);
}
.mock-event-content strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  font-family: 'DM Sans', sans-serif;
}
.mock-event-content span {
  display: block;
  font-size: 11.5px;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.mock-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.badge.green { background: var(--green-light); color: var(--green); }
.badge.red   { background: var(--red-light);   color: var(--red);   }

.mock-stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 14px 16px;
  background: var(--bg);
  border-top: 1px solid rgba(137,37,119,.07);
}
.mock-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mock-stat strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--purple);
  font-family: 'DM Serif Display', serif;
}
.mock-stat small { font-size: 10.5px; color: var(--text-light); font-weight: 500; }

.hero-floating-badge {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(16,185,129,.15);
  animation: float 3.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 140px 20px 90px; text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }
  .hero-floating-badge { left: 50%; transform: translateX(-50%); animation: none; bottom: -22px; }
  .hero-visual { margin-top: 16px; }
}

/* ── Sections génériques ── */
section { padding: 100px 24px; }
.cta-section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  display: inline-block;
  color: var(--purple);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: var(--purple-light);
  padding: 6px 16px;
  border-radius: 999px;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
}
.section-head p { color: var(--text-mid); font-size: 17px; line-height: 1.7; }
.bg-tinted { background: rgba(137,37,119,.025); }

/* ── Feature cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid rgba(137,37,119,.09);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-xs);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(137,37,119,.14);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--purple-light);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background .25s ease, color .25s ease;
}
.feature-card:hover .feature-icon { background: var(--purple); color: #fff; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--text-mid); font-size: 15px; line-height: 1.65; }

/* ── Étapes ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 42px;
  right: calc(25% - 42px);
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  opacity: .22;
}
.step {
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(137,37,119,.28);
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p  { color: var(--text-mid); font-size: 14.5px; line-height: 1.65; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 500px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── Avantages ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.benefit-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(137,37,119,.09);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.benefit-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(137,37,119,.16);
}
.benefit-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--purple-light);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: background .25s ease, color .25s ease;
}
.benefit-item:hover .benefit-icon { background: var(--purple); color: #fff; }
.benefit-icon svg { width: 22px; height: 22px; }
.benefit-body h3 { font-size: 18px; margin-bottom: 10px; }
.benefit-body p { color: var(--text-mid); font-size: 15px; line-height: 1.72; }

@media (max-width: 720px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 45%, var(--pink) 100%);
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: -260px; right: -120px;
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-banner h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,.82);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,.48);
}

/* ── Footer ── */
footer.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.60);
  padding: 64px 24px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-col-brand { flex: 1.4; min-width: 240px; }
.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col p { font-size: 14px; max-width: 300px; line-height: 1.7; }
.footer-col h4 {
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: 'DM Sans', sans-serif;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,.60);
  transition: color .2s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* ── Bouton retour en haut ── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  z-index: 999;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover { background: var(--purple-dark); }
.scroll-top svg { width: 20px; height: 20px; }

/* ── Animations d'apparition ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
