/* ============================================================
   EducArthur — site vitrine
   Charte : violet #6C4DD6 + jaune #FFC247, fonds clairs, encre #2B2350
   Typo : Fredoka (titres) · Nunito (texte)
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --violet:      #6C4DD6;
  --violet-700:  #5337bd;   /* hover / ombre bouton */
  --violet-300:  #b6a4ee;
  --violet-100:  #F6F3FF;
  --violet-050:  #fbfaff;

  --yellow:      #FFC247;
  --yellow-600:  #e8a52e;   /* ombre bouton jaune */
  --yellow-100:  #FFF9EC;

  --ink:         #2B2350;
  --ink-70:      #5a5378;
  --ink-50:      #8b85a3;

  --pink:        #ff7a9c;
  --orange:      #ff9248;
  --green:       #34c08a;
  --blue:        #5aa9ff;

  --white:       #ffffff;
  --line:        #ece8f7;

  --radius-lg:   34px;
  --radius-md:   24px;
  --radius-sm:   16px;

  --shadow-card: 0 18px 40px -22px rgba(43,35,80,.38);
  --shadow-soft: 0 10px 30px -18px rgba(43,35,80,.30);

  --maxw: 1140px;
  --font-title: "Fredoka", system-ui, sans-serif;
  --font-body:  "Nunito", system-ui, sans-serif;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--yellow-100);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

p { text-wrap: pretty; }

/* ---- Accessibilité ---- */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--violet);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  z-index: 1000;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; text-decoration: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Layout ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}
section { position: relative; }
.section-pad { padding-block: clamp(56px, 9vw, 104px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--violet-100);
  padding: 8px 16px;
  border-radius: 999px;
}

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 50px); margin-top: 18px; }
.section-head p {
  margin-top: 16px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-70);
}

/* ============================================================
   Boutons « chunky » (bord inférieur foncé, effet bouton)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  padding: 17px 28px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  will-change: transform;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(4px); }

.btn--primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 6px 0 0 var(--violet-700);
}
.btn--primary:hover { background: #7a5ce0; }
.btn--primary:active { box-shadow: 0 2px 0 0 var(--violet-700); }

.btn--accent {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 0 0 var(--yellow-600);
}
.btn--accent:hover { background: #ffce6a; }
.btn--accent:active { box-shadow: 0 2px 0 0 var(--yellow-600); }

.btn--ghost {
  background: var(--violet-100);
  color: var(--violet);
  box-shadow: inset 0 0 0 2px #e4ddfb;
}
.btn--ghost:hover { background: #efe9ff; }
.btn--ghost:active { transform: translateY(2px); }

.btn--lg { font-size: 19px; padding: 19px 34px; }
.btn .ic { width: 22px; height: 22px; display: block; }

/* ============================================================
   En-tête / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,249,236,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(43,35,80,.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 23px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .logo-badge {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--violet);
  color: #fff;
  border-radius: 13px;
  font-size: 22px;
  box-shadow: 0 4px 0 0 var(--violet-700);
}
.brand b { color: var(--violet); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-70);
}
.nav-links a:hover { color: var(--violet); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 12px 22px; font-size: 16px; }

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -8%, #efe9ff 0%, rgba(239,233,255,0) 60%),
    linear-gradient(180deg, var(--yellow-100) 0%, var(--violet-100) 100%);
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 76px) clamp(56px, 8vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  margin-top: 22px;
}
.hero h1 .hl { color: var(--violet); }
.hero-sub {
  margin-top: 22px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink-70);
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 24px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-70);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.dot-green { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

/* visuel mascotte */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hero-blob {
  position: absolute;
  inset: 6% 4%;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f3eeff 58%, rgba(243,238,255,0) 72%);
  border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
  box-shadow: var(--shadow-card);
}
.hero-mascot {
  position: relative;
  width: min(86%, 380px);
  filter: drop-shadow(0 26px 26px rgba(43,35,80,.20));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}

/* pastilles flottantes autour de la mascotte */
.chip-float {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  animation: floaty 5.5s ease-in-out infinite;
}
.chip-float .pebble {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 18px;
}
.chip-1 { top: 8%; left: -2%; animation-delay: .4s; }
.chip-2 { bottom: 14%; right: -4%; animation-delay: 1.1s; }
.chip-3 { bottom: 2%; left: 8%; animation-delay: .8s; }
.peb-yellow { background: var(--yellow-100); }
.peb-violet { background: var(--violet-100); }
.peb-green  { background: #e6f7f0; }

/* étoiles décoratives */
.star {
  position: absolute;
  color: var(--yellow);
  filter: drop-shadow(0 4px 5px rgba(232,165,46,.4));
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%,100% { transform: scale(1) rotate(0); opacity: .9; }
  50%     { transform: scale(1.15) rotate(8deg); opacity: 1; }
}

/* ============================================================
   Promesse — 4 piliers
   ============================================================ */
.promise { background: var(--white); }
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pillar {
  background: var(--violet-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.pillar .pic {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.pillar h3 { font-size: 21px; margin-bottom: 7px; }
.pillar p { font-size: 15.5px; color: var(--ink-70); }

/* ============================================================
   Fonctionnalités — grandes cartes
   ============================================================ */
.features { background: var(--violet-100); }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feat {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feat .blob-corner {
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  top: -90px; right: -70px;
  opacity: .5;
  pointer-events: none;
}
.feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
  position: relative;
}
.feat h3 { font-size: clamp(24px, 3vw, 30px); position: relative; }
.feat > p {
  margin-top: 12px;
  color: var(--ink-70);
  font-size: 17px;
  position: relative;
}
.feat-foot { margin-top: auto; padding-top: 22px; position: relative; }

/* chips matières */
.subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
  position: relative;
}
.subject {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--violet-050);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 9px 15px;
  border-radius: 999px;
}
.subject .sdot { width: 10px; height: 10px; border-radius: 50%; }
.subject.soon { color: var(--ink-50); }
.subject.soon .tag-soon {
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  background: var(--yellow-100); color: var(--yellow-600);
  padding: 2px 7px; border-radius: 999px;
}
.badge-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14px; color: var(--green);
  background: #e6f7f0; padding: 8px 14px; border-radius: 999px;
  position: relative;
}

/* échelle « niveaux » (à son rythme) */
.levels {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: 22px;
  position: relative;
}
.lvl {
  flex: 1;
  border-radius: 12px 12px 7px 7px;
  background: var(--violet-100);
  color: var(--violet);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 10px 4px;
  border: 1px solid #e4ddfb;
}
.lvl.on { background: var(--violet); color: #fff; border-color: var(--violet); }
.lvl.next {
  background: var(--yellow); color: var(--ink); border-color: var(--yellow-600);
  box-shadow: 0 4px 0 0 var(--yellow-600);
}

/* mini « cartes récompense » */
.reward-rows { margin-top: 20px; display: grid; gap: 12px; position: relative; }
.reward-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--violet-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}
.reward-row .ri {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; font-size: 22px; flex: none;
}
.reward-row b { font-family: var(--font-title); font-weight: 600; font-size: 16px; }
.reward-row span { font-size: 14.5px; color: var(--ink-70); display: block; }

/* mini dashboard (espace parent) */
.mini-dash {
  margin-top: 20px;
  background: var(--violet-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
}
.mini-dash .md-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.mini-dash .md-head .lab { font-weight: 800; font-size: 14px; color: var(--ink-70); }
.status-pill {
  font-family: var(--font-title); font-weight: 600; font-size: 13px;
  color: var(--green); background: #e6f7f0;
  padding: 5px 12px; border-radius: 999px;
}
.bar-row { display: grid; gap: 11px; }
.bar-row .br { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px; }
.bar-row .br .nm { font-weight: 700; font-size: 14px; }
.bar-row .br .pc { font-weight: 800; font-size: 13px; color: var(--ink-50); }
.track { height: 12px; border-radius: 999px; background: #ece8f7; overflow: hidden; }
.track > i { display: block; height: 100%; border-radius: 999px; }

/* ============================================================
   Bandeau confiance
   ============================================================ */
.trust { background: var(--white); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.trust-card {
  background: var(--yellow-100);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid #f3e9cf;
}
.trust-card .tic {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 16px; display: grid; place-items: center;
  background: #fff; font-size: 26px;
  box-shadow: var(--shadow-soft);
}
.trust-card h3 { font-size: 18px; margin-bottom: 5px; }
.trust-card p { font-size: 14px; color: var(--ink-70); }

/* ============================================================
   CTA final
   ============================================================ */
.final {
  background:
    radial-gradient(700px 360px at 88% 110%, #7a5ce0 0%, rgba(122,92,224,0) 60%),
    linear-gradient(135deg, var(--violet) 0%, #8a6ce8 100%);
  color: #fff;
  overflow: hidden;
}
.final-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.final h2 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); }
.final p { margin-top: 16px; color: rgba(255,255,255,.86); font-size: 19px; max-width: 520px; }
.signup {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  max-width: 520px;
  flex-wrap: wrap;
}
.signup input {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  padding: 17px 22px;
  border: none;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
}
.signup input::placeholder { color: var(--ink-50); }
.final-note { margin-top: 16px; font-size: 14.5px; color: rgba(255,255,255,.78); }
.final-note a { color: #fff; text-decoration: underline; font-weight: 700; }

.final-card {
  position: relative;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(4px);
}
.final-card .fc-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
}
.final-card .fc-row + .fc-row { border-top: 1px solid rgba(255,255,255,.16); }
.final-card .fc-ic {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(255,255,255,.16);
}
.final-card .fc-row b { font-family: var(--font-title); font-weight: 600; font-size: 17px; display: block; }
.final-card .fc-row span { font-size: 14px; color: rgba(255,255,255,.8); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding-block: 52px 30px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { max-width: 340px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand b { color: var(--yellow); }
.footer-brand p { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.62); }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 {
  color: #fff; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: 15px; font-weight: 600; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; font-size: 13.5px; color: rgba(255,255,255,.5);
}

/* ============================================================
   Placeholder Envato
   ============================================================ */
.envato-slot {
  position: relative;
  border-radius: var(--radius-md);
  background-color: var(--violet-050);
  background-image:
    repeating-linear-gradient(45deg, rgba(108,77,214,.06) 0 12px, rgba(108,77,214,.0) 12px 24px);
  border: 2px dashed #cdbff3;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--violet);
  min-height: 220px;
  padding: 24px;
}
.envato-slot .tagm {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 320px;
}
.envato-slot .tagm strong { display: block; color: var(--violet); font-size: 14px; margin-bottom: 4px; }

.envato-img {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.envato-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { order: -1; min-height: 340px; }
  .feat-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .final-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 13px; border: none;
    background: var(--violet-100); color: var(--violet); cursor: pointer;
  }
  .nav-menu-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 4px; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; padding: 16px 22px 22px;
    box-shadow: var(--shadow-card); border-bottom: 1px solid var(--line);
  }
  .nav-menu-open .nav-links a { padding: 10px 0; font-size: 18px; }
}

@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .feat { padding: 26px 22px; }
  .btn { width: 100%; }
  .nav-cta .btn { width: auto; }
  .hero-cta .btn { width: 100%; }
  .signup .btn { width: 100%; }
  .bar-row .br { grid-template-columns: 78px 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

.beta-perk {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(255,194,71,.22), rgba(108,77,214,.10));
  border: 1px solid var(--yellow-600, #E0A93B);
  border-radius: var(--radius-md, 16px);
  padding: 14px 16px; margin: 4px 0 18px;
}
.beta-perk-ic { font-size: 1.5rem; line-height: 1.2; }
.beta-perk p { margin: 0; color: var(--ink, #2B2350); font-size: .98rem; line-height: 1.5; }

.hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.consent { display:flex; gap:8px; align-items:flex-start; margin-top:10px; font-size:.86rem; color:var(--ink-70,#5b5478); line-height:1.45; }
.consent input { margin-top:3px; flex:0 0 auto; }
.consent a { color:#fff; text-decoration:underline; }
.signup-msg { margin-top:10px; font-weight:700; font-size:.95rem; min-height:1.2em; }
.signup-msg.ok { color:#9CFFB0; }
.signup-msg.err { color:#FFD2CC; }
