/* Parle Darija — design sobre et professionnel : fond clair, bleu Majorelle en accent, vraies pages des leçons en vitrine. */
:root {
  --ink: #111a33;
  --ink-soft: #3a4260;
  --muted: #646b85;
  --paper: #ffffff;
  --sand: #f7f6f2;
  --tint: #eef0f9;
  --line: #e3e5ee;
  --blue: #2d3fd3;
  --blue-dark: #1d2a8f;
  --saffron: #f4b321;
  --green: #1e8a68;
  --green-soft: #e6f4ee;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 26, 51, .06), 0 12px 32px rgba(17, 26, 51, .08);
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Noto Naskh Arabic', 'Amiri', serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.ar { font-family: var(--font-ar); direction: rtl; unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 96px; }
.section-sand { background: var(--sand); }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.head { max-width: 680px; margin-bottom: 48px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 14px; }
.head p { color: var(--muted); font-size: 18px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s ease, transform .15s ease, border-color .15s ease; white-space: nowrap; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: #ffc43d; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Bandeau d’annonce */
.announce { background: var(--ink); color: #fff; font-size: 14px; text-align: center; padding: 10px 16px; }
.announce a { color: var(--saffron); font-weight: 700; }

/* Navigation */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--blue); }

/* Hero */
.hero { padding-block: 72px 88px; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { min-width: 0; }
.badge-line { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.badge-line b { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-soft); list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li::before { content: "✓"; color: var(--green); font-weight: 800; }

.hero-visual { position: relative; min-height: 460px; }
.sheet { position: absolute; width: 62%; border-radius: 10px; box-shadow: 0 30px 60px rgba(17, 26, 51, .22); border: 1px solid var(--line); background: #fff; }
.sheet-1 { left: 2%; top: 4%; transform: rotate(-5deg); }
.sheet-2 { right: 2%; top: 0; transform: rotate(4deg); }
.chip-float { position: absolute; left: 6%; bottom: -2%; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; max-width: 260px; border: 1px solid var(--line); }
.chip-float b { font-family: var(--font-display); font-size: 17px; }
.chip-float .ar { font-size: 17px; color: var(--muted); }
.chip-float i { font-style: normal; font-size: 13px; color: var(--muted); }

/* Faits */
.facts { border-block: 1px solid var(--line); background: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid div { padding: 26px 22px; display: flex; flex-direction: column; gap: 2px; }
.facts-grid div + div { border-left: 1px solid var(--line); }
.facts-grid b { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.facts-grid span { color: var(--muted); font-size: 15px; }

/* Aperçu */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.gallery img { border-radius: 8px; border: 1px solid var(--line); }
.gallery figcaption { font-size: 14px; color: var(--muted); padding: 12px 4px 2px; }
.gallery figcaption b { display: block; color: var(--ink); font-size: 15px; }

/* Programme */
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.level { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.level-head { padding: 26px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.level-head small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.level-head h3 { font-size: 28px; margin: 4px 0 6px; }
.level-head p { color: var(--muted); font-size: 15px; }
.status { flex: none; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.status-ok { background: var(--green-soft); color: var(--green); }
.status-soon { background: #fff4d6; color: #8a6200; }
.steps { list-style: none; padding: 8px 28px 18px; }
.steps li { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps li:last-child { border-bottom: none; }
.steps .n { font-family: var(--font-display); font-weight: 800; color: var(--blue); min-width: 28px; font-variant-numeric: tabular-nums; }
.steps b { display: block; font-size: 16px; }
.steps span.o { color: var(--muted); font-size: 14px; }
.steps .soon-tag { font-size: 11px; font-weight: 700; color: #8a6200; background: #fff4d6; border-radius: 6px; padding: 1px 7px; margin-left: 6px; }

/* Méthode */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.method div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.method h3 { font-size: 19px; margin-bottom: 8px; }
.method p { color: var(--muted); font-size: 15px; }
.method .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; margin-bottom: 14px; }

/* Pour qui */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.audience div { border-top: 3px solid var(--blue); padding-top: 18px; }
.audience h3 { font-size: 19px; margin-bottom: 6px; }
.audience p { color: var(--muted); font-size: 15px; }

/* Inscription */
.optin { background: var(--blue); color: #fff; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.optin-cover { transform: rotate(-4deg); border-radius: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); max-width: 300px; margin: 0 auto; }
.optin h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.optin .sub { color: rgba(255, 255, 255, .85); margin-bottom: 18px; }
.optin ul { list-style: none; display: grid; gap: 8px; margin-bottom: 24px; }
.optin li { display: flex; gap: 10px; align-items: flex-start; }
.optin li::before { content: "✓"; color: var(--saffron); font-weight: 800; }
.optin li b { color: var(--saffron); }
.form { background: #fff; color: var(--ink); border-radius: 16px; padding: 22px; display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.form label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 4px; }
.form input[type="text"], .form input[type="email"] { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.form input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(45, 63, 211, .15); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--blue); }
.consent a { color: var(--blue); }
.form-msg { font-size: 14px; font-weight: 600; min-height: 1.2em; }
.form-msg.err { color: #c4452e; }
.hp { position: absolute; left: -9999px; }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.plan .status { position: absolute; top: 22px; right: 22px; }
.plan h3 { font-size: 22px; padding-right: 90px; }
.plan .meta { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price b { font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1; }
.price span { font-size: 22px; font-weight: 700; }
.price s { color: var(--muted); font-size: 18px; margin-right: 6px; }
.price-note { font-size: 13px; color: var(--green); font-weight: 600; min-height: 1.4em; }
.plan ul { list-style: none; display: grid; gap: 9px; margin: 18px 0 24px; flex: 1; align-content: start; }
.plan li { padding-left: 24px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.pay-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; color: var(--muted); font-size: 14px; }
.pay-row span { display: inline-flex; gap: 8px; align-items: center; }
.pay-row span::before { content: "✓"; color: var(--green); font-weight: 800; }

/* Garantie */
.guarantee { display: flex; gap: 24px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 26px 30px; max-width: 860px; margin: 40px auto 0; }
.seal { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--blue); color: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.seal b { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.seal span { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.guarantee h3 { font-size: 20px; margin-bottom: 4px; }
.guarantee p { color: var(--muted); }

/* Auteur */
.author { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 900px; margin: 0 auto; }
.avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; font-family: var(--font-ar); font-size: 44px; color: var(--blue); }
.author h3 { font-size: 24px; margin-bottom: 8px; }
.author p { color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--blue); font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding-bottom: 22px; color: var(--muted); }

/* CTA final + footer */
.final { text-align: center; }
.final h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.final p { color: var(--muted); margin-bottom: 26px; font-size: 18px; }
.final .ar { display: block; font-size: 30px; color: var(--blue); margin-bottom: 8px; }
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding-block: 48px 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: rgba(255, 255, 255, .6); }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer a { display: block; text-decoration: none; margin-bottom: 8px; }
.footer a:hover { color: var(--saffron); }
.footer .mail { user-select: all; color: #fff; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; font-size: 13px; }

/* Pages simples (merci, légal) */
.simple { min-height: 70vh; padding-block: 72px; background: var(--sand); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; max-width: 760px; margin: 0 auto; box-shadow: var(--shadow); }
.card h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.card .lead { color: var(--ink-soft); margin-bottom: 26px; font-size: 18px; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 2px dashed var(--blue); border-radius: 14px; padding: 18px 22px; margin: 22px 0; background: var(--tint); }
.code-box code { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: .08em; color: var(--blue); user-select: all; }
.next-steps { display: grid; gap: 12px; margin-top: 26px; counter-reset: s; }
.next-steps div { display: flex; gap: 14px; align-items: flex-start; }
.next-steps div::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 8px; }
.legal ul { padding-left: 20px; }
.todo { background: #fff4d6; color: #8a6200; padding: 0 6px; border-radius: 4px; font-weight: 600; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .levels, .optin { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; max-width: 520px; margin: 0 auto; width: 100%; }
  .gallery, .method, .audience { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid div:nth-child(3) { border-left: none; }
  .facts-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .optin { padding: 32px; }
  .section { padding-block: 72px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-block: 48px 64px; }
  .hero-visual { min-height: 300px; }
  .chip-float { display: none; }
  .gallery, .method, .audience, .footer-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .optin { padding: 24px; border-radius: 18px; }
  .author { grid-template-columns: 1fr; text-align: center; }
  .avatar { margin: 0 auto; }
  .guarantee { flex-direction: column; text-align: center; }
  .card { padding: 26px; }
  .brand-sub { display: none; }
  .announce { font-size: 13px; }
}
.form .consent { display: flex; font-weight: 400; margin-bottom: 0; }
.hero { overflow: hidden; }
.facts-grid div { min-width: 0; }
@media (max-width: 560px) {
  .facts-grid div { padding: 18px 14px; }
  .facts-grid b { font-size: 21px; }
  .facts-grid span { font-size: 13px; }
}
.preorder { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 14px; color: #8a6200; background: #fff4d6; border-radius: 10px; padding: 10px 16px; }
.plan h3 { padding-right: 118px; }
.form .row.row-single { grid-template-columns: 1fr; }
/* Badges au-dessus du titre : les 3 cartes restent alignées */
.plan .status { position: static; align-self: flex-start; margin-bottom: 14px; }
.plan h3 { padding-right: 0; }
.dl-list { display: grid; gap: 10px; margin-top: 24px; }
.dl { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: #fff; }
.dl-n { font-family: var(--font-display); font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.dl-soon { background: var(--sand); }
.dl .soon-tag { font-size: 12px; font-weight: 700; color: #8a6200; background: #fff4d6; border-radius: 6px; padding: 3px 8px; }
@media (max-width: 560px) { .dl { grid-template-columns: 32px 1fr; } .dl .btn, .dl .soon-tag { grid-column: 2; justify-self: start; } }

/* 4 offres + 3 niveaux */
.pricing { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan { padding: 26px 20px; }
@media (max-width: 1100px) { .pricing { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; } }
@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; max-width: 520px; } }
.levels > .level:nth-child(3) { grid-column: 1 / -1; }
