/* ============================================================
   Solid'Avenir — Cours d'arabe · Design system 2026
   Palette émeraude + or, glassmorphism, animations douces.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=Amiri:wght@400;700&display=swap');

:root {
  /* Couleurs */
  --emerald-950: #06251b;
  --emerald-900: #073d2c;
  --emerald-800: #0a5239;
  --emerald-700: #0d6a49;
  --emerald-600: #11875d;
  --emerald-500: #18a36f;
  --emerald-300: #6fd3a8;
  --emerald-100: #def5ea;
  --emerald-50:  #f0faf5;

  --gold-700: #a9760a;
  --gold-600: #c8901a;
  --gold-500: #e0ac3a;
  --gold-300: #f0d488;
  --gold-100: #faf0d4;

  --cream: #f7f6f1;
  --ink: #142019;
  --muted: #5c6b63;
  --line: #e6e3d9;
  --white: #ffffff;
  --danger: #c0322b;

  /* Dégradés */
  --grad-emerald: linear-gradient(135deg, var(--emerald-700), var(--emerald-500));
  --grad-gold: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  --grad-hero: linear-gradient(160deg, #06251b 0%, #0a5239 55%, #0d6a49 100%);
  --grad-text: linear-gradient(120deg, #fff 0%, var(--gold-300) 60%, var(--gold-500) 100%);

  /* Ombres */
  --shadow-xs: 0 1px 2px rgba(6, 37, 27, .06);
  --shadow-sm: 0 2px 8px rgba(6, 37, 27, .07);
  --shadow-md: 0 12px 32px rgba(6, 37, 27, .10);
  --shadow-lg: 0 24px 60px rgba(6, 37, 27, .18);
  --shadow-gold: 0 14px 40px rgba(224, 172, 58, .30);

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --maxw: 1140px;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-ar: "Amiri", serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .18s var(--ease);
  --t: .32s var(--ease);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--emerald-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--emerald-800); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; color: var(--emerald-950); letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.ar { font-family: var(--font-ar); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 60px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700;
  color: var(--gold-700); background: var(--gold-100);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
  border: 1px solid #f0e3bd;
}

/* ---------- Animations de révélation au scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal="scale"] { transform: scale(.94); }
[data-reveal][data-reveal="scale"].is-visible { transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; cursor: pointer;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t);
  text-align: center; white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn:hover::after { left: 140%; }
.btn-primary { background: var(--grad-emerald); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-md); }
.btn-gold { background: var(--grad-gold); color: #2c2103; box-shadow: var(--shadow-xs); }
.btn-gold:hover { color: #2c2103; box-shadow: var(--shadow-gold); }
.btn-ghost { background: rgba(255,255,255,.6); color: var(--emerald-800); border-color: var(--line); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; border-color: var(--emerald-500); color: var(--emerald-800); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn[disabled]::after { display: none; }

/* Focus clavier visible (accessibilité WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--emerald-600); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .cta-band :focus-visible, .footer :focus-visible,
.auth-wrap :focus-visible, .result-wrap :focus-visible,
.nav--transparent:not(.is-scrolled) :focus-visible { outline-color: var(--gold-300); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 74px; }
.nav--solid, .nav.is-scrolled {
  background: rgba(247, 246, 241, .82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); box-shadow: 0 4px 24px rgba(6,37,27,.05);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; color: var(--emerald-950); }
.brand .brand-mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-emerald); color: var(--gold-300); font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; box-shadow: var(--shadow-sm);
}
.brand .brand-name { font-size: 1.16rem; letter-spacing: -.02em; display: block; line-height: 1.1; }
.brand small { display: block; font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); }
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo { height: 38px; } }
.brand-mark-img { height: 44px; width: auto; display: block; }
@media (max-width: 640px) { .brand-mark-img { height: 36px; } }
.footer-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.footer-logo img { height: 58px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a.link { padding: 9px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav-links a.link:hover { background: var(--emerald-100); color: var(--emerald-800); }
.nav-auth { display: flex; align-items: center; gap: 9px; margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--emerald-950); line-height: 1; }

/* Variante transparente au-dessus du hero sombre (page d'accueil) */
.nav--transparent:not(.is-scrolled) .brand,
.nav--transparent:not(.is-scrolled) .brand .brand-name { color: #fff; }
.nav--transparent:not(.is-scrolled) .nav-links a.link { color: #e7f4ee; }
.nav--transparent:not(.is-scrolled) .nav-links a.link:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav--transparent:not(.is-scrolled) .nav-toggle { color: #fff; }
.nav--transparent:not(.is-scrolled) small { color: #aecdbf; }

/* Décalage du contenu sous la nav fixe (pages sans hero) */
.has-fixed-nav { padding-top: 74px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); color: #eafff5; padding-top: 74px; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: float 14s var(--ease) infinite; }
.hero-bg .blob.b1 { width: 520px; height: 520px; background: #1aa973; top: -160px; right: -120px; }
.hero-bg .blob.b2 { width: 420px; height: 420px; background: #caa12e; bottom: -180px; left: -100px; opacity: .28; animation-delay: -5s; }
.hero-bg .grid-dots {
  position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 30px 30px; mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero-bg .arabesque {
  position: absolute; top: 50%; right: -120px; width: 560px; height: 560px;
  transform: translateY(-50%); opacity: .10; animation: spin 70s linear infinite;
}
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-26px, 30px); } }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding: 92px 0 104px; }
.hero h1 { color: #fff; }
.hero h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: #cfeede; max-width: 560px; }
.hero p.hero-p { font-size: 1rem; color: #bfe3d3; max-width: 560px; margin-top: 12px; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--gold-300); }
.hero-stats .stat span { color: #b6dccb; font-size: .9rem; }

.hero-card {
  position: relative; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(10px); box-shadow: var(--shadow-lg);
}
.hero-card .ribbon {
  position: absolute; top: 22px; right: -8px; background: var(--grad-gold); color: #2c2103;
  font-family: var(--font-display); font-weight: 700; font-size: .76rem; padding: 7px 16px;
  border-radius: 8px 0 0 8px; box-shadow: var(--shadow-sm);
}
.hero-card .ar-big { font-family: var(--font-ar); font-size: 3.4rem; color: var(--gold-300); text-align: center; margin-bottom: 6px; }
.hero-card .ar-sub { text-align: center; color: #bfe0d1; margin-bottom: 18px; font-size: .92rem; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; color: #eafff5; border-top: 1px solid rgba(255,255,255,.12); }
.hero-card li:first-child { border-top: 0; }
.hero-card li .check { color: var(--gold-300); font-weight: 800; }

.wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave svg { width: 100%; height: 70px; display: block; }

/* ---------- Marquee partenaires / valeurs ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust .row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 40px; padding: 26px 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.trust .row span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-xs); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--emerald-300); }
.feature .ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--emerald-100); color: var(--emerald-700); font-size: 1.6rem; margin-bottom: 18px;
  transition: transform var(--t);
}
.feature:hover .ico { transform: scale(1.08) rotate(-4deg); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Formules / pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); gap: 22px; align-items: stretch; justify-content: center; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan.popular { border-color: var(--gold-500); box-shadow: var(--shadow-md); }
.plan.popular::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: var(--grad-gold); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-gold); color: #2c2103; font-family: var(--font-display); font-weight: 700;
  font-size: .74rem; padding: 6px 16px; border-radius: 999px; letter-spacing: .03em; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.plan .plan-ar { font-family: var(--font-ar); font-size: 1.7rem; color: var(--gold-600); }
.plan h3 { margin: 8px 0 2px; }
.plan .level { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.plan .price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 4px; }
.plan .price .amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--emerald-950); }
.plan .price .period { color: var(--muted); font-weight: 600; }
.plan .tagline { color: var(--muted); font-size: .95rem; min-height: 44px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: .95rem; }
.plan ul li .check {
  flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--emerald-100);
  color: var(--emerald-600); display: grid; place-items: center; font-size: .72rem; font-weight: 800; margin-top: 2px;
}
.plan .seats { min-height: 18px; margin-bottom: 10px; text-align: center; font-size: .85rem; font-weight: 700; font-family: var(--font-display); }
.plan .seats-low { color: var(--gold-700); }
.plan .seats-full { color: var(--danger); }
.plan.is-full { opacity: .9; }
.plan.is-full .price .amount { color: var(--muted); }
.plan .btn { margin-top: auto; }

/* ---------- Méthode (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-xs); transition: transform var(--t), box-shadow var(--t); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step .num {
  width: 44px; height: 44px; border-radius: 14px; background: var(--grad-emerald); color: var(--gold-300);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; margin-bottom: 14px; font-size: 1.1rem;
}
.step h3 { font-size: 1.06rem; }
.step p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- Témoignages ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-xs); transition: transform var(--t), box-shadow var(--t); }
.testi:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testi .stars { color: var(--gold-500); margin-bottom: 12px; letter-spacing: 2px; }
.testi p { color: var(--ink); font-size: 1rem; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-emerald); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.testi .who strong { display: block; font-size: .95rem; }
.testi .who span { color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 2px 20px; margin-bottom: 12px; box-shadow: var(--shadow-xs); transition: box-shadow var(--t), border-color var(--t);
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--emerald-300); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--emerald-950); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-600); transition: transform var(--t); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--grad-hero); color: #fff;
  border-radius: var(--radius-lg); padding: 60px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,172,58,.4), transparent 70%); top: -120px; right: -80px;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #cfeede; max-width: 580px; margin: 0 auto 24px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--emerald-950); color: #bfe0d1; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer a { color: #bfe0d1; display: block; padding: 5px 0; }
.footer a:hover { color: var(--gold-300); }
.footer .brand .brand-name, .footer .brand small { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .86rem; color: #8fb6a4; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Auth / forms ---------- */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 110px 20px 50px;
  position: relative; overflow: hidden;
  background: var(--grad-hero);
}
.auth-wrap .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4; }
.auth-wrap .blob.b1 { width: 460px; height: 460px; background: #1aa973; top: -160px; left: -120px; }
.auth-wrap .blob.b2 { width: 380px; height: 380px; background: #caa12e; bottom: -160px; right: -120px; opacity: .25; }
.auth-card {
  position: relative; width: 100%; max-width: 460px; background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(8px);
}
.auth-card .ar { font-family: var(--font-ar); font-size: 2.2rem; color: var(--gold-600); text-align: center; }
.auth-card h1 { font-size: 1.7rem; text-align: center; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 26px; }
.field { margin-bottom: 17px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--emerald-950); }
.field .input-wrap { position: relative; }
.field input {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: #fdfdfb; transition: border var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 4px rgba(24,163,111,.14); background: #fff; }
.field .toggle-pw { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 1.1rem; color: var(--muted); padding: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-help { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.pw-meter { height: 6px; border-radius: 999px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width var(--t), background var(--t); }
.pw-meter span.s1 { width: 25%; background: #e0584f; }
.pw-meter span.s2 { width: 50%; background: var(--gold-500); }
.pw-meter span.s3 { width: 75%; background: var(--emerald-500); }
.pw-meter span.s4 { width: 100%; background: var(--emerald-600); }
.form-foot { text-align: center; margin-top: 20px; color: var(--muted); font-size: .94rem; }
.form-row-between { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 14px; font-size: .88rem; }
.alert { border-radius: 12px; padding: 13px 15px; font-size: .92rem; margin-bottom: 18px; display: none; }
.alert.show { display: block; }
.alert.error { background: #fdeceb; color: var(--danger); border: 1px solid #f5c9c6; }
.alert.info { background: var(--emerald-100); color: var(--emerald-800); border: 1px solid #c5e6d7; }
.alert.success { background: var(--emerald-100); color: var(--emerald-700); border: 1px solid #b6e3cf; }
.selected-course {
  background: var(--gold-100); border: 1px solid #ecd99a; border-radius: 12px;
  padding: 11px 15px; font-size: .9rem; margin-bottom: 18px; color: #6b5310; display: none;
}
.selected-course.show { display: block; }

/* ---------- Espace élève ---------- */
.dash { padding: 50px 0 70px; min-height: calc(100vh - 74px); background: linear-gradient(180deg, var(--emerald-50), var(--cream)); }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.dash-head h1 { margin-bottom: 4px; }
.dash-head p { color: var(--muted); margin: 0; }
.verify-banner {
  display: none; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--gold-100); border: 1px solid #ecd99a; color: #6b5310;
  border-radius: var(--radius); padding: 14px 20px; margin-bottom: 22px; font-size: .94rem;
}
.verify-banner.show { display: flex; }
.verify-banner .btn { padding: 8px 16px; font-size: .86rem; }
.enroll-list { display: grid; gap: 16px; }
.enroll {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-xs); transition: transform var(--t), box-shadow var(--t);
}
.enroll:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.enroll h3 { margin: 0 0 4px; }
.enroll .meta { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.enroll--paid { border-color: var(--emerald-300); background: linear-gradient(180deg, #fff, var(--emerald-50)); }
.enroll-note { margin-top: 8px; font-size: .9rem; color: var(--emerald-700); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; font-size: .8rem; font-weight: 700; font-family: var(--font-display); }
.tag.paid { background: var(--emerald-100); color: var(--emerald-700); }
.tag.pending { background: #fdf3d6; color: #8a6d12; }
.empty-state { text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 56px 24px; }
.empty-state .ar { font-family: var(--font-ar); font-size: 2.6rem; color: var(--gold-500); }

/* ---------- Pages résultat ---------- */
.result-wrap { min-height: 100vh; display: grid; place-items: center; padding: 110px 20px 50px; text-align: center; background: var(--grad-hero); position: relative; overflow: hidden; }
.result-wrap .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4; }
.result-wrap .blob.b1 { width: 460px; height: 460px; background: #1aa973; top: -160px; left: -120px; }
.result-card { position: relative; max-width: 540px; background: rgba(255,255,255,.98); border-radius: var(--radius-lg); padding: 50px; box-shadow: var(--shadow-lg); }
.result-card .icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; font-size: 2.4rem; animation: pop .5s var(--ease); }
.result-card .icon.ok { background: var(--emerald-100); color: var(--emerald-600); }
.result-card .icon.warn { background: #fdf3d6; color: var(--gold-600); }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.result-card .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Tableaux de bord (élève / prof / admin) ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.stat-ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--emerald-100); font-size: 1.4rem;
}
.stat-card strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--emerald-950); line-height: 1.1; }
.stat-card small { color: var(--muted); font-size: .8rem; }

/* Classes */
.student-group { margin-bottom: 14px; }
.student-group-title { font-family: var(--font-display); font-weight: 700; font-size: .78rem; color: var(--emerald-700); text-transform: uppercase; letter-spacing: .05em; margin: 6px 4px 8px; }
.class-chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--emerald-50); border: 1px solid var(--emerald-100); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.class-chip strong { color: var(--emerald-900); }
.class-chip span { color: var(--muted); font-size: .85rem; }
.class-banner { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.class-pill { background: var(--white); border: 1px solid var(--emerald-300); border-radius: 999px; padding: 8px 16px; font-size: .9rem; box-shadow: var(--shadow-xs); }
.class-pill strong { color: var(--emerald-800); }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; flex: 1; min-width: 200px; }

/* Onglets de classe (prof) */
.ctab-btn { font-family: var(--font-display); font-weight: 600; font-size: .95rem; cursor: pointer; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--muted); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.ctab-btn:hover { border-color: var(--emerald-500); color: var(--emerald-800); }
.ctab-btn.is-active { background: var(--grad-emerald); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.ctab-panel { display: none; }
.ctab-panel.is-active { display: block; animation: fadein .25s var(--ease); }

/* Annonces */
.announce-item { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--emerald-500); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.announce-text { white-space: pre-wrap; word-break: break-word; }
.announce-meta { color: var(--muted); font-size: .78rem; margin-top: 6px; display: flex; align-items: center; gap: 8px; }

/* Devoirs */
.assign-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow-xs); }
.assign-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.assign-desc { color: var(--muted); margin: 8px 0 0; white-space: pre-wrap; }
.subs-zone { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.subs-count { font-weight: 700; font-size: .82rem; color: var(--emerald-700); margin-bottom: 8px; }
.sub-item { background: var(--emerald-50); border: 1px solid var(--emerald-100); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.sub-head { display: flex; align-items: center; gap: 8px; }
.sub-text { white-space: pre-wrap; margin: 6px 0; }
.sub-link { color: var(--emerald-700); font-weight: 600; font-size: .88rem; }
.grade-inline { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.grade-inline input { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; width: 80px; }

/* Devoirs côté élève */
.submit-form { display: grid; gap: 8px; margin-top: 10px; }
.submit-form textarea, .submit-form input { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fdfdfb; width: 100%; }
.submit-form button { justify-self: start; }
.cr-section { margin-top: 14px; }
.cr-section h4 { margin: 0 0 10px; color: var(--emerald-900); }
.cr-empty { color: var(--muted); font-size: .9rem; }
.sub-status { margin: 8px 0; }
.file-label { display: block; font-size: .85rem; color: var(--emerald-800); font-weight: 600; }
.file-input { display: block; margin-top: 6px; font-size: .85rem; }
.sub-thumb { max-width: 220px; max-height: 220px; border-radius: 8px; margin-top: 8px; border: 1px solid var(--line); display: block; }

/* Titre de la carte héro (remplace l'ancien texte arabe) */
.hero-card-title { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 6px; }

/* ── Modale de pré-inscription ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(12, 30, 24, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: modalFade .2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; background: #fff; border-radius: 18px;
  width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  padding: 30px 26px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: modalPop .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes modalPop { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 1.4rem; margin-bottom: 4px; }
.modal-close {
  position: absolute; top: 12px; right: 14px; border: none; background: transparent;
  font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 6px;
}
.modal-close:hover { color: var(--ink, #14342a); }
.preinsc-sub { color: var(--emerald-800, #1c6b52); font-weight: 700; margin-bottom: 14px; }
.preinsc-note { margin-top: 14px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
#preinsc-success { text-align: center; padding: 10px 4px; }
.preinsc-check {
  width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #0e8a52); color: #fff;
  font-size: 2rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(14, 138, 82, .4);
}
#preinsc-success p { color: var(--muted); margin: 8px 0 20px; line-height: 1.6; }

/* Admin — pré-inscriptions */
.chk-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); cursor: pointer; }
.row-done { opacity: .55; }

/* Cartes de cours — deux tarifs (enfant / adulte) */
.price-two { display: flex; gap: 10px; margin: 16px 0 20px; }
.price-tier { flex: 1; text-align: center; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.5); }
.plan.popular .price-tier { border-color: var(--gold-300, #e6c260); }
.pt-amount { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--emerald-800, #1c6b52); line-height: 1.1; }
.pt-label { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }

/* Qui sommes-nous */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: center; }
.about-text p { color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.about-text .btn { margin-top: 10px; }
.about-card {
  background: linear-gradient(160deg, #ffffff, #f3f7f4);
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px;
  box-shadow: 0 20px 50px rgba(20, 60, 45, .08);
}
.about-card h3 { margin-bottom: 18px; font-size: 1.2rem; }
.about-info { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; }
.about-info li { display: flex; gap: 14px; align-items: flex-start; }
.about-ico { font-size: 1.4rem; line-height: 1.2; flex: none; }
.about-info li strong { display: block; color: var(--ink, #14342a); }
.about-info li small { color: var(--muted); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 28px; } }

.dash-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab-btn {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--muted); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tab-btn:hover { border-color: var(--emerald-500); color: var(--emerald-800); }
.tab-btn.is-active { background: var(--grad-emerald); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadein .25s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-xs); margin-bottom: 18px;
}
.panel h3 { margin-bottom: 12px; }
.panel-help { color: var(--muted); font-size: .86rem; margin: 10px 0 0; }
.panel select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: #fdfdfb;
}
.panel select:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 4px rgba(24,163,111,.14); }

.prof-layout { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.student-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.student-head h2 { margin: 0; }
.student-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.btn-sup { padding: 7px 14px; font-size: .82rem; }
.sup-detail td { background: var(--emerald-50); }

/* ---------- Facture (affichage + impression PDF) ---------- */
.invoice-overlay {
  position: fixed; inset: 0; z-index: 500; display: none;
  background: rgba(6, 37, 27, .55); backdrop-filter: blur(3px);
  overflow-y: auto; padding: 30px 16px;
}
.invoice-overlay.show { display: block; }
.invoice-sheet { max-width: 780px; margin: 0 auto; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.invoice-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--cream); }
.invoice { padding: 42px 46px; color: #1a1a1a; font-size: .95rem; }
.invoice-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.invoice-seller { display: flex; gap: 14px; }
.invoice-logo { height: 58px; width: auto; }
.invoice-seller strong { font-size: 1.05rem; color: var(--emerald-900); }
.invoice-seller span { color: #555; font-size: .85rem; }
.invoice-meta { text-align: right; }
.invoice-meta h2 { color: var(--emerald-700); letter-spacing: .12em; margin: 0 0 8px; font-family: var(--font-display); }
.invoice-billto { margin: 28px 0 20px; padding: 14px 16px; background: var(--emerald-50); border-radius: 10px; }
.invoice-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.invoice-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.invoice-table th { text-align: left; background: var(--emerald-900); color: #fff; padding: 10px 12px; font-size: .82rem; }
.invoice-table th.ar, .invoice-table td.ar { text-align: right; }
.invoice-table td { padding: 12px; border-bottom: 1px solid var(--line); }
.invoice-table tfoot td { border-top: 2px solid var(--emerald-700); border-bottom: 0; font-size: 1.05rem; padding-top: 14px; }
.invoice-paid { margin: 18px 0; display: inline-block; background: var(--emerald-100); color: var(--emerald-700); font-weight: 700; padding: 8px 16px; border-radius: 999px; }
.invoice-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: #666; font-size: .8rem; line-height: 1.6; }

@media print {
  body * { visibility: hidden !important; }
  #invoice-printable, #invoice-printable * { visibility: visible !important; }
  .invoice-overlay { position: absolute; inset: 0; background: #fff; padding: 0; overflow: visible; }
  .invoice-sheet { box-shadow: none; max-width: none; border-radius: 0; margin: 0; }
  .no-print { display: none !important; }
  .invoice { padding: 12mm; }
}

/* Messagerie */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.chat-side { display: grid; gap: 8px; }
.thread-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer; font: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.thread-item:hover { border-color: var(--emerald-500); transform: translateY(-1px); }
.thread-item.is-active { border-color: var(--emerald-600); box-shadow: 0 0 0 3px rgba(24,163,111,.14); }
.thread-av {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-emerald); color: #fff; font-family: var(--font-display); font-weight: 700;
}
.thread-info { min-width: 0; display: grid; }
.thread-info strong { font-size: .95rem; }
.thread-info small { color: var(--muted); font-size: .8rem; }
.thread-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800;
  vertical-align: middle; line-height: 1;
}

.chat-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; color: var(--emerald-950); background: var(--emerald-50); }
.chat-messages { height: 380px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fbfaf6; }
.msg { display: flex; }
.msg--me { justify-content: flex-end; }
.msg-bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.msg--me .msg-bubble { background: var(--emerald-100); border-color: #c5e6d7; border-radius: 16px 16px 4px 16px; }
.msg-from { font-size: .78rem; font-weight: 700; color: var(--emerald-700); margin-bottom: 2px; }
.msg-text { white-space: pre-wrap; word-break: break-word; }
.msg-time { font-size: .72rem; color: var(--muted); text-align: right; margin-top: 4px; }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat-form input {
  flex: 1; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; background: #fdfdfb;
}
.chat-form input:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 4px rgba(24,163,111,.14); }
.chat-empty { color: var(--muted); text-align: center; padding: 30px 16px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Tables (bulletins, profs, stats) */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-family: var(--font-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover { background: var(--emerald-50); }
.btn-del { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 1rem; padding: 4px 8px; border-radius: 6px; }
.btn-del:hover { background: #fdeceb; }

.grades-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-xs); margin-bottom: 18px; }
.grades-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.grades-head h3 { margin: 0; }

.grade-form { display: grid; grid-template-columns: 1fr 90px 90px 1fr auto; gap: 12px; align-items: end; }
.grade-form .field { margin-bottom: 0; }
.fill-bar { width: 120px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.fill-bar span { display: block; height: 100%; background: var(--grad-emerald); border-radius: 999px; }

@media (max-width: 940px) {
  .prof-layout, .chat-layout { grid-template-columns: 1fr; }
  .grade-form { grid-template-columns: 1fr 1fr; }
  .grade-form .btn { grid-column: 1 / -1; }
  .chat-messages { height: 300px; }
}

/* ---------- Bouton de test flottant ---------- */
.test-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 300;
  box-shadow: var(--shadow-lg); font-size: .92rem; padding: 14px 22px;
}
@media (max-width: 640px) { .test-float { bottom: 14px; right: 14px; left: 14px; } }

/* ---------- Loader ---------- */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.page-loading { text-align: center; color: var(--muted); padding: 50px; }

/* ---------- Découverte (illustration) ---------- */
.discover { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.discover-media { position: relative; }
.discover-media img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(6, 37, 27, .14)); }
.discover-text .eyebrow { margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 18px 0 26px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; color: var(--ink); }
.check-list li .check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--emerald-100); color: var(--emerald-600); display: grid; place-items: center; font-size: .76rem; font-weight: 800; margin-top: 2px; }

/* ---------- Alphabet ---------- */
.alphabet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.letter {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 10px; text-align: center; box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
}
.letter:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-500); background: linear-gradient(180deg, #fff, var(--gold-100)); }
.letter .glyph { display: block; font-size: 2.6rem; color: var(--emerald-700); line-height: 1; margin-bottom: 8px; }
.letter:hover .glyph { color: var(--gold-600); }
.letter .name { font-size: .82rem; color: var(--muted); font-weight: 600; }

@media (max-width: 940px) {
  .discover { grid-template-columns: 1fr; gap: 32px; }
  .discover-media { max-width: 440px; margin: 0 auto; }
  .alphabet { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .alphabet { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 60px 0 80px; }
  .features, .testi-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: rgba(247,246,241,.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 14px 22px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav--transparent:not(.is-scrolled) .nav-links a.link { color: var(--ink); }
  .nav-auth { margin-left: 0; margin-top: 6px; }
  .nav-toggle { display: block; margin-left: auto; }
  .pricing-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .auth-card, .result-card { padding: 30px 22px; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
