/* ── RESET & VARS ─────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --blue:    #1565C0;
  --blue-l:  #2196F3;
  --blue-d:  #0D47A1;
  --orange:  #F47920;
  --orange-l:#FFB300;
  --orange-d:#C45E00;
  --bg:      #0a1628;
  --bg2:     #0f2040;
  --white:   #ffffff;
  --text:    #e8f0ff;
  --text2:   #9ab0d0;
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.1);
  --radius:  16px;
  --shadow:  0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── BACKGROUND STARS ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 35%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 50%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 40%, rgba(255,255,255,0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── PIXEL FLOATERS ───────────────────────────── */
.pixels-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.pixel {
  position: absolute;
  border-radius: 3px;
  opacity: 0;
  animation: floatPixel linear infinite;
}
@keyframes floatPixel {
  0%   { opacity:0; transform: translateY(0) rotate(0deg); }
  10%  { opacity:0.6; }
  90%  { opacity:0.3; }
  100% { opacity:0; transform: translateY(-120vh) rotate(180deg); }
}

/* ── LAYOUT ────────────────────────────────────── */
.page { position: relative; z-index: 1; }

/* ── NAV ───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: #31486ad9;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}
.nav-logo img {
  height: 40px;
  width: auto;
}

.hero-tagline {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text2);
  margin-bottom: 100px;
  letter-spacing: 0.3px;
}

.nav-links { display: flex; gap: 8px; }
.nav-btn {
  padding: 8px 20px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.25s;
  text-decoration: none;
}
.nav-btn-home {
  background: transparent;
  color: var(--text2);
  border: 1px solid transparent;
}
.nav-btn-home:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.nav-btn-apprenant  { background: var(--blue); color: white; }
.nav-btn-apprenant:hover { background: var(--blue-l); transform: translateY(-1px); }
.nav-btn-accompagnant { background: var(--orange); color: white; }
.nav-btn-accompagnant:hover { background: var(--orange-l); transform: translateY(-1px); }
.nav-btn.active-nav { box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }

/* ── HERO ──────────────────────────────────────── */
#home {
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 32px;
  gap: 0;
}
.hero-logo {
  width: 200px;
  height: auto;
  margin-bottom: 16px;
  animation: floatLogo 8s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(247, 148, 29, 0.4));
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0) translateX(0)}
  25%      { transform: translateY(-10px) translateX(5px); }
  50%      { transform: translateY(-15px) translateX(0); }
  75%      { transform: translateY(-10px) translateX(-5px); }
}
.hero-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}
.hero-title .t-blue   { color: var(--blue-l); }
.hero-title .t-blue-d { color: var(--blue-d); font-size: large;}
.hero-title .t-orange { color: var(--orange); }
.hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text2);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.hero-ctas {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 24px 18px 80px;
  border-radius: 20px;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  min-width: 220px;
  position: relative;
}
.cta-card-icon {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 52px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cta-card:hover .cta-card-icon {
  transform: translateY(-60%) translateX(-10px) scale(1.5) rotate(-8deg);
}
.cta-card-label { font-family: 'Baloo 2', sans-serif; font-size: 20px; font-weight: 800; color: white; }
.cta-card-desc  { font-size: 13px; opacity: 0.85; color: white; text-align: left; }
.cta-apprenant {
  background: var(--blue);
}
.cta-apprenant:hover {
  background: var(--blue-l);
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 0 10px var(--blue);
}
.cta-accompagnant {
  background: var(--orange);
}
.cta-accompagnant:hover {
  background: var(--orange-l);
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 0 10px var(--orange);
}
/* hero-scroll supprimé */

/* ── SECTIONS ──────────────────────────────────── */
section {
  min-height: 100vh;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.badge-blue   { background: rgba(58,155,232,0.2); color: var(--blue-l); border: 1px solid rgba(58,155,232,0.3); }
.badge-orange { background: rgba(247,148,29,0.2); color: var(--orange-l); border: 1px solid rgba(247,148,29,0.3); }
.section-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text2);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── PROGRESSION (APPRENANT) ───────────────────── */
.progression {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.progression::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  background: linear-gradient(to bottom, var(--blue), var(--orange));
  border-radius: 2px;
}
.prog-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
  animation: fadeSlideIn 0.6s ease both;
}
.prog-step:nth-child(1) { animation-delay: 0.1s; }
.prog-step:nth-child(2) { animation-delay: 0.2s; }
.prog-step:nth-child(3) { animation-delay: 0.3s; }
.prog-step:nth-child(4) { animation-delay: 0.4s; }
.prog-step:nth-child(5) { animation-delay: 0.5s; }
.prog-step:nth-child(6) { animation-delay: 0.6s; }
.prog-step:nth-child(7) { animation-delay: 0.7s; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.prog-dot {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
}
.prog-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  flex: 1;
  transition: all 0.25s;
}
.prog-content:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(6px);
}
.prog-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}
.prog-name {
  font-family: 'Baloo 2', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.prog-desc {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.prog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 12px;
  transition: all 0.2s;
}
.prog-link:hover { gap: 10px; }

/* ── OUTILS GRID (ACCOMPAGNANT) ────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: var(--radius);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-card:hover::before { opacity: 1; }
.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tool-icon { font-size: 36px; }
.tool-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}
.badge-free    { background: rgba(34,197,94,0.2);  color: #4ade80;         border: 1px solid rgba(34,197,94,0.3); }
.badge-login   { background: rgba(58,155,232,0.2); color: var(--blue-l);   border: 1px solid rgba(58,155,232,0.3); }
.badge-premium { background: rgba(247,148,29,0.2); color: var(--orange-l); border: 1px solid rgba(247,148,29,0.3); }
.tool-name {
  font-family: 'Baloo 2', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.tool-desc {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.tool-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--text2);
  margin-right: 4px;
  margin-bottom: 4px;
}
.tool-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s;
  color: var(--orange);
  font-size: 20px;
}
.tool-card:hover .tool-arrow { opacity: 1; transform: translateX(0); }

/* Couleurs accent par carte */
.tc-blue::before   { background: linear-gradient(135deg, rgba(26,111,196,0.15),  transparent); }
.tc-orange::before { background: linear-gradient(135deg, rgba(247,148,29,0.15),  transparent); }
.tc-green::before  { background: linear-gradient(135deg, rgba(34,197,94,0.1),    transparent); }
.tc-purple::before { background: linear-gradient(135deg, rgba(139,92,246,0.15),  transparent); }
.tc-teal::before   { background: linear-gradient(135deg, rgba(20,184,166,0.15),  transparent); }

/* ── LEGEND ─────────────────────────────────────── */
.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text2);
}

/* ── FOOTER ─────────────────────────────────────── */
footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text2);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}
footer a { color: var(--blue-l); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── DIVIDER ─────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 0;
}