:root {
  --ink: #1e3a6d;
  --ink-soft: #3d5683;
  --paper: #fbfbf6;
  --line: #d3e3ef;
  --margin: #f1a9a6;
  --green: #ddf0df;   --green-tape: #8ccb9a;
  --blue: #e3eefa;    --blue-tape: #a9ccee;
  --yellow: #fcf2c4;  --yellow-tape: #f3d55b;
  --sky: #d5e8fa;     --sky-tape: #7fbdeb;
  --purple: #e6ddf6;  --purple-tape: #b49ae0;
  --salmon: #fcddd4;  --salmon-tape: #f19c8b;
  --orange: #fde3c9;  --orange-tape: #f4b37a;
  --teal: #d6eeeb;    --teal-tape: #7ccbc0;
  --brand: #51a87d;
  --hand: 'Kalam', 'Comic Sans MS', cursive;
  --body-latin: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: var(--body-latin);
  --flip: 1;          /* -1 en lecture de droite à gauche : sert à inverser les inclinaisons */
}
[dir="rtl"] { --flip: -1; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* notebook paper: pale lines, red margin */
  background-image:
    linear-gradient(to right, transparent 47px, var(--margin) 47px, var(--margin) 49px, transparent 49px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--line) 35px, var(--line) 36px);
  background-attachment: scroll;
}
@media (max-width: 640px) {
  body { background-image: linear-gradient(to right, transparent 15px, var(--margin) 15px, var(--margin) 16px, transparent 16px), repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--line) 35px, var(--line) 36px); }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--hand); font-weight: 700; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.hand { font-family: var(--hand); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 251, 246, 0.92); backdrop-filter: blur(6px); border-bottom: 1.5px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--hand); font-size: 30px; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo svg { width: 34px; height: 34px; }
nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 16px; }
nav a { text-decoration: none; opacity: 0.85; }
nav a:hover { opacity: 1; text-decoration: underline wavy var(--sky-tape); text-underline-offset: 6px; }
@media (max-width: 760px) { nav a:not(.btn) { display: none; } }

.btn { display: inline-block; font-family: var(--hand); font-size: 20px; font-weight: 700; text-decoration: none; background: var(--brand); color: #fff; padding: 10px 24px; border-radius: 14px 18px 12px 20px; border: 2px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 2px 0 var(--ink); }
nav a.btn { opacity: 1; color: #fff; font-size: 17px; padding: 6px 18px; box-shadow: 2px 3px 0 var(--ink); }
nav a.btn:hover { text-decoration: none; }
.btn.ghost { background: var(--yellow); color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow { font-family: var(--hand); font-size: 22px; color: #2f6bd8; margin-bottom: 8px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); }
.hero h1 .mark { background: linear-gradient(transparent 62%, var(--yellow-tape) 62%, var(--yellow-tape) 92%, transparent 92%); padding-inline: 4px; }
.hero p.lead { font-size: 21px; margin: 22px 0 32px; max-width: 34em; color: var(--ink-soft); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.hero .small { margin-top: 20px; font-size: 15px; color: var(--ink-soft); }

.phones { position: relative; height: 640px; }
.phone { position: absolute; width: 270px; border-radius: 38px; background: #14213d; padding: 9px; box-shadow: 0 24px 40px -14px rgba(30, 58, 109, 0.45); }
.phone::before { content: ''; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 74px; height: 20px; border-radius: 12px; background: #14213d; z-index: 2; }
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; background: var(--paper); }
.phone.p1 { inset-inline-start: 8%; top: 40px; transform: rotate(calc(-5deg * var(--flip))); z-index: 2; }
.phone.p2 { inset-inline-end: 2%; top: 0; transform: rotate(calc(4deg * var(--flip))); width: 250px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) { .phone { width: 210px; } .phone.p2 { width: 195px; } .phones { height: 470px; } }

.scribble { position: absolute; pointer-events: none; }
[dir="rtl"] .scribble { transform: scaleX(-1); }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.sec-head { max-width: 44em; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 46px); }
.sec-head p { margin-top: 14px; color: var(--ink-soft); font-size: 20px; }
.underline { display: block; width: 150px; height: 14px; margin-top: 8px; }

/* paper cards held by tape */
.paper { position: relative; border: 2px solid rgba(30, 58, 109, 0.35); border-radius: 18px 22px 16px 24px; padding: 30px 26px 26px; box-shadow: 4px 6px 0 rgba(30, 58, 109, 0.1); }
.paper::before { content: ''; position: absolute; top: -13px; inset-inline-start: 50%; width: 76px; height: 24px; margin-inline-start: -38px; border-radius: 3px; background: var(--tape, var(--sky-tape)); opacity: 0.9; transform: rotate(calc(-2deg * var(--flip))); }
.paper.t2::before { transform: rotate(calc(2.5deg * var(--flip))); }
.paper h3 { font-size: 26px; margin-bottom: 8px; }
.paper p { font-size: 17px; }
.c-green { background: var(--green); --tape: var(--green-tape); }
.c-blue { background: var(--blue); --tape: var(--blue-tape); }
.c-yellow { background: var(--yellow); --tape: var(--yellow-tape); }
.c-sky { background: var(--sky); --tape: var(--sky-tape); }
.c-purple { background: var(--purple); --tape: var(--purple-tape); }
.c-salmon { background: var(--salmon); --tape: var(--salmon-tape); }
.c-orange { background: var(--orange); --tape: var(--orange-tape); }
.c-teal { background: var(--teal); --tape: var(--teal-tape); }
.tilt-l { transform: rotate(calc(-1.2deg * var(--flip))); }
.tilt-r { transform: rotate(calc(1.2deg * var(--flip))); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } .tilt-l, .tilt-r { transform: none; } }

/* problem / solution */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.versus ul { margin: 14px 0 0; padding: 0; list-style: none; }
.versus li { padding: 6px 0; padding-inline-start: 34px; position: relative; font-size: 18px; }
.versus li::before { position: absolute; inset-inline-start: 0; top: 5px; font-family: var(--hand); font-size: 24px; line-height: 1.2; }
.versus .bad li::before { content: '✗'; color: #d2503f; }
.versus .good li::before { content: '✓'; color: #2e8b57; }
@media (max-width: 900px) { .versus { grid-template-columns: 1fr; } }

/* feature rows */
.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; padding: 28px 0; }
.feature.flip { grid-template-columns: 1.2fr 0.8fr; }
.feature.flip .shot { order: 2; }
.shot { display: flex; justify-content: center; }
.shot .phone { position: relative; width: 280px; transform: rotate(calc(-2deg * var(--flip))); }
.feature.flip .shot .phone { transform: rotate(calc(2deg * var(--flip))); }
.feature h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.feature p.lead { color: var(--ink-soft); font-size: 20px; margin-bottom: 18px; }
.feature ul { list-style: none; margin: 0; padding: 0; }
.feature li { position: relative; padding: 5px 0; padding-inline-start: 32px; }
.feature li::before { content: '★'; position: absolute; inset-inline-start: 0; top: 4px; color: var(--yellow-tape); font-size: 20px; -webkit-text-stroke: 1px var(--ink); }
.pill { display: inline-block; font-family: var(--hand); font-size: 18px; padding: 2px 14px; border-radius: 999px; border: 1.5px solid var(--ink); margin-bottom: 12px; }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .shot { order: 0; }
}

/* more features grid */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.cards4 .paper h3 { font-size: 23px; }
.cards4 .paper p { font-size: 16px; }
.soon { font-family: var(--hand); font-size: 14px; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 10px; margin-inline-start: 6px; vertical-align: middle; }
@media (max-width: 1000px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards4 { grid-template-columns: 1fr; } }

/* direction block */
.direction .paper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 44px 40px; }
.direction ul { list-style: none; margin: 0; padding: 0; }
.direction li { padding: 7px 0; padding-inline-start: 32px; position: relative; font-size: 18px; }
.direction li::before { content: '✓'; position: absolute; inset-inline-start: 0; font-family: var(--hand); font-size: 24px; color: #2e8b57; line-height: 1.3; }
.direction h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 12px; }
@media (max-width: 800px) { .direction .paper { grid-template-columns: 1fr; padding: 34px 24px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: s; }
.steps .paper { padding-top: 44px; }
.steps .num { position: absolute; top: -22px; inset-inline-start: 22px; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); font-family: var(--hand); font-size: 28px; font-weight: 700; display: grid; place-items: center; z-index: 1; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* contact */
.contact .paper { text-align: center; padding: 56px 28px; max-width: 760px; margin: 0 auto; }
.contact h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 14px; }
.contact p { font-size: 20px; color: var(--ink-soft); margin-bottom: 28px; }
.contact .mail { display: block; margin-top: 18px; font-size: 17px; }

footer { padding: 36px 0 48px; font-size: 15px; color: var(--ink-soft); border-top: 1.5px solid var(--line); background: rgba(251, 251, 246, 0.95); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
/* Version sobre : se charge après style.css et en adoucit le style cahier d'écolier.
   Fond uni, cartes droites, ombres douces ; les lignes de cahier ne restent que dans l'en-tête. */

body {
  background-color: #fbfbf8;
  background-image: none;
  font-size: 17px;
  line-height: 1.7;
}
.site-header { background: rgba(255, 255, 255, 0.96); }

/* le cahier, seulement en haut de page */
.hero {
  padding: 72px 0 64px;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, transparent 47px, var(--margin) 47px, var(--margin) 49px, transparent 49px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--line) 35px, var(--line) 36px);
  border-bottom: 1px solid #e6ece9;
}
@media (max-width: 640px) {
  .hero { background-image: linear-gradient(to right, transparent 15px, var(--margin) 15px, var(--margin) 16px, transparent 16px), repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--line) 35px, var(--line) 36px); }
}
.hero h1 { font-size: clamp(38px, 5vw, 60px); }
.hero p.lead { color: var(--ink-soft); }
.phone.p1 { transform: rotate(calc(-2deg * var(--flip))); }
.phone.p2 { transform: rotate(calc(2deg * var(--flip))); }
.scribble { display: none; }

/* boutons : à plat */
.btn { border: none; border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(30, 58, 109, 0.55); font-size: 19px; padding: 12px 26px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(30, 58, 109, 0.6); }
nav a.btn { font-size: 16px; padding: 7px 18px; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid rgba(30, 58, 109, 0.35); box-shadow: none; }

/* bandeau de réassurance */
.trust { background: #fff; border-bottom: 1px solid #e6ece9; padding: 26px 0; }
.trust .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--green); display: grid; place-items: center; font-size: 20px; color: #2d6a46; font-weight: 800; }
.trust-item strong { display: block; font-size: 16px; color: var(--ink); line-height: 1.3; }
.trust-item span.t { display: block; margin-top: 2px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 800px) { .trust .wrap { grid-template-columns: 1fr; gap: 16px; } }

/* sections */
section { padding: 100px 0; }
#probleme, #demarrer { background: #fff; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.underline { display: none; }
.sec-head p { font-size: 19px; }

/* cartes : droites, un petit ruban, ombre douce */
.paper { border: 1px solid rgba(30, 58, 109, 0.14); border-radius: 16px; box-shadow: 0 1px 2px rgba(30, 58, 109, 0.06), 0 14px 28px -18px rgba(30, 58, 109, 0.35); padding: 32px 28px 28px; }
.paper::before { width: 54px; height: 16px; margin-inline-start: -27px; top: -9px; opacity: 0.8; transform: none; border-radius: 2px; }
.paper.t2::before { transform: none; }
.tilt-l, .tilt-r { transform: none; }
.paper h3 { font-size: 24px; }
.paper p, .versus li { font-size: 16.5px; }

.shot .phone, .feature.flip .shot .phone { transform: none; }
.feature { padding: 36px 0; }
.feature li::before { content: '✓'; color: #2e8b57; font-family: var(--hand); font-size: 20px; -webkit-text-stroke: 0; top: 3px; }
.pill { border: none; padding: 3px 14px; font-size: 17px; }

.direction .paper { background: #fff; border: 1px solid #dbe5ee; }
.direction .paper::before { background: var(--sky-tape); }
.steps .num { border-width: 1.5px; }
.contact .paper { background: var(--yellow); }

footer { background: #fff; }
/* Version unie : se charge après style.css et sobre.css ; plus aucune ligne de cahier ni marge rouge. */

body { background-color: #fbfbf8; background-image: none; }

.hero {
  background-color: #fbfbf8;
  background-image:
    radial-gradient(60% 70% at 85% 30%, rgba(213, 232, 250, 0.7), transparent 70%),
    radial-gradient(45% 60% at 5% 90%, rgba(221, 240, 223, 0.7), transparent 70%);
}
@media (max-width: 640px) { .hero { background-image: radial-gradient(80% 50% at 80% 70%, rgba(213, 232, 250, 0.7), transparent 70%); } }
[dir="rtl"] .hero {
  background-image:
    radial-gradient(60% 70% at 15% 30%, rgba(213, 232, 250, 0.7), transparent 70%),
    radial-gradient(45% 60% at 95% 90%, rgba(221, 240, 223, 0.7), transparent 70%);
}
@media (max-width: 640px) { [dir="rtl"] .hero { background-image: radial-gradient(80% 50% at 20% 70%, rgba(213, 232, 250, 0.7), transparent 70%); } }

/* ---------- sélecteur de langue ---------- */
nav { margin-inline-start: auto; }
.lang-switch { position: relative; margin-inline-start: 18px; }
.lang-toggle { display: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(30, 58, 109, 0.25); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.lang-toggle svg { width: 22px; height: 22px; }
.lang-list { display: flex; gap: 2px; }
.lang-list button { font: inherit; font-family: var(--body-latin); font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 999px; padding: 5px 11px; cursor: pointer; opacity: 0.8; }
.lang-list button:lang(ar) { font-family: 'Cairo', var(--body-latin); font-size: 15px; }
.lang-list button:hover { opacity: 1; background: rgba(30, 58, 109, 0.06); }
.lang-list button[aria-pressed="true"] { opacity: 1; background: var(--sky); border-color: rgba(30, 58, 109, 0.25); }
.lang-toggle:focus-visible, .lang-list button:focus-visible { outline: 2px solid var(--sky-tape); outline-offset: 2px; }
.i18n-off .lang-switch { display: none; }
/* écran étroit : les quatre boutons se replient dans un petit menu derrière l'icône */
@media (max-width: 1100px) {
  .lang-toggle { display: grid; }
  .lang-list { display: none; position: absolute; top: calc(100% + 10px); inset-inline-end: 0; flex-direction: column; min-width: 150px; padding: 6px; background: #fff; border: 1px solid #dbe5ee; border-radius: 14px; box-shadow: 0 14px 28px -14px rgba(30, 58, 109, 0.4); }
  .lang-switch.open .lang-list { display: flex; }
  .lang-list button { font-size: 16px; text-align: start; padding: 8px 14px; border-radius: 10px; }
  .lang-list button:lang(ar) { font-size: 17px; }
}

/* ---------- arabe et darija : lecture de droite à gauche, polices arabes ---------- */
/* Kalam (titres) n'a pas de glyphes arabes : Baloo Bhaijaan 2 prend le relais, Cairo pour le texte */
:root:lang(ar) {
  --hand: 'Baloo Bhaijaan 2', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --body: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}
:lang(ar) body { line-height: 1.85; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.4; }
:lang(ar) .hero h1 { font-weight: 700; }
:lang(ar) .btn, :lang(ar) .pill, :lang(ar) .soon, :lang(ar) .eyebrow { line-height: 1.5; }


/* ---------- questionnaire « Quelle formule ? » (quiz.js) ---------- */
.formule { background: #fbfbf8; }
.quiz-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #dbe5ee; }
.quiz-card::before { background: var(--sky-tape); }
.quiz-count { font-family: var(--hand); font-size: 18px; color: #2f6bd8; margin: 0 0 6px; }
.quiz-bar { height: 6px; border-radius: 999px; background: #e6eef6; overflow: hidden; margin-bottom: 22px; }
.quiz-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .25s; }
.quiz-step fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz-step legend { padding: 0; font-family: var(--hand); font-weight: 700; font-size: clamp(26px, 3vw, 32px); line-height: 1.2; color: var(--ink); margin-bottom: 6px; }
.quiz-step legend:focus, .quiz-result h3:focus { outline: none; }
.quiz-hint { margin: 0 0 16px; font-size: 16px; color: var(--ink-soft); }
.quiz-options { display: grid; gap: 10px; margin-top: 14px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1.5px solid rgba(30, 58, 109, 0.22); border-radius: 12px; background: #fff; cursor: pointer; font-size: 17px; line-height: 1.35; transition: border-color .12s, background .12s; }
.opt:hover { border-color: var(--sky-tape); background: #f6fafe; }
.opt input { flex: none; width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--green); }
.opt:has(input:focus-visible) { outline: 3px solid var(--sky-tape); outline-offset: 2px; }
.quiz-number { margin-top: 14px; }
.quiz-number label { display: block; font-size: 16px; color: var(--ink-soft); margin-bottom: 6px; }
.quiz-number input, .lead-field input { width: 100%; max-width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid rgba(30, 58, 109, 0.3); border-radius: 12px; }
.quiz-number input { max-width: 260px; font-size: 24px; }
.quiz-number input:focus-visible, .lead-field input:focus-visible { outline: 3px solid var(--sky-tape); outline-offset: 1px; border-color: var(--brand); }
.quiz-error { min-height: 1.5em; margin: 12px 0 0; color: #b23a2a; font-size: 16px; font-weight: 700; }
.quiz-nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
button.btn { font-family: var(--hand); cursor: pointer; }

.quiz-result h3 { font-size: clamp(32px, 4vw, 42px); margin: 0 0 4px; }
.quiz-price { margin: 0; font-size: 20px; color: var(--ink-soft); }
.quiz-price strong { font-family: var(--hand); font-size: clamp(34px, 5vw, 48px); color: var(--ink); line-height: 1.2; }
.quiz-detail { margin: 6px 0 0; font-size: 16.5px; color: var(--ink-soft); }
.quiz-trial { display: inline-block; margin: 14px 0 0; padding: 6px 14px; background: var(--green); border-radius: 999px; font-size: 16px; font-weight: 700; color: #2d6a46; }
.quiz-today { margin: 18px 0 0; font-size: 17px; }
.quiz-benefits { list-style: none; margin: 12px 0 0; padding: 0; }
.quiz-benefits li { position: relative; padding: 5px 0; padding-inline-start: 30px; font-size: 16.5px; }
.quiz-benefits li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 3px; font-family: var(--hand); font-size: 20px; color: #2e8b57; }
.quiz-lead { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e3ebf2; }
.quiz-lead h4 { margin: 0 0 4px; font-family: var(--hand); font-size: 26px; color: var(--ink); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 4px; }
.lead-field span { display: block; font-size: 15px; color: var(--ink-soft); margin-bottom: 4px; }
.quiz-restart { margin-top: 18px; padding: 0; border: 0; background: none; font: inherit; font-size: 15.5px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.quiz-restart:hover { color: var(--ink); }
@media (max-width: 640px) {
  .lead-grid { grid-template-columns: 1fr; }
  .quiz-nav .btn { width: 100%; text-align: center; }
}


/* ---------- fonctionnalités par public (onglets Direction · Parents · Enseignants) ---------- */
.roles { background: #fff; }
.role-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.role-tabs button { font-family: var(--hand); font-size: 22px; font-weight: 700; line-height: 1; padding: 11px 26px; color: var(--ink); background: #fff; border: 1.5px solid rgba(30, 58, 109, 0.3); border-radius: 999px; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.role-tabs button:hover { border-color: var(--sky-tape); background: #f6fafe; }
.role-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.role-tabs button:focus-visible { outline: 3px solid var(--sky-tape); outline-offset: 2px; }

.role-panel { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.roles.js .role-panel { display: none; }
.roles.js .role-panel.is-open { display: grid; }
.roles:not(.js) .role-panel + .role-panel { margin-top: 80px; }
.role-text h3 { font-size: clamp(30px, 3.6vw, 42px); margin: 10px 0 14px; }
.role-text .lead { color: var(--ink-soft); font-size: 20px; margin-bottom: 18px; }
.role-text ul { list-style: none; margin: 0; padding: 0; }
.role-text li { position: relative; padding: 5px 0; padding-inline-start: 32px; }
.role-text li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 3px; color: #2e8b57; font-family: var(--hand); font-size: 20px; }

/* trois téléphones côte à côte, celui du milieu un peu plus haut */
.phones3 { display: flex; justify-content: center; align-items: flex-end; gap: 14px; padding: 10px 0 20px; }
.phones3 .phone { position: relative; flex: 0 1 200px; width: auto; min-width: 0; border-radius: 28px; padding: 6px; box-shadow: 0 22px 40px -22px rgba(20, 33, 61, 0.65); transform: none; inset: auto; }
.phones3 .phone::before { width: 46px; height: 11px; top: 11px; }
.phones3 .phone img { border-radius: 23px; }
.phones3 .phone.mid { flex-basis: 224px; margin-bottom: 26px; z-index: 2; }

/* captures du tableau de bord dans un cadre de navigateur */
.browsers { position: relative; padding-bottom: 12%; }
.browser { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #cfd9e4; box-shadow: 0 26px 50px -26px rgba(30, 58, 109, 0.55); }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef2f6; border-bottom: 1px solid #d9e1ea; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #cdd6e0; }
.browser .url { margin-inline-start: 12px; padding: 2px 12px; border-radius: 6px; background: #fff; font-size: 12px; line-height: 1.5; color: #62718a; direction: ltr; }
.browser img { display: block; width: 100%; height: auto; }
.browser.b2 { position: absolute; inset-inline-end: -3%; bottom: 0; width: 58%; box-shadow: 0 30px 56px -24px rgba(30, 58, 109, 0.7); }

.also { margin-top: 64px; padding-top: 28px; border-top: 1px solid #e3ebf2; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.also-title { margin: 0; font-family: var(--hand); font-size: 24px; font-weight: 700; color: var(--ink); }
.also-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.also-list li { padding: 5px 14px; border-radius: 999px; background: #f2f7fb; border: 1px solid #dde7ef; font-size: 15.5px; color: var(--ink-soft); }
.also-list .soon { margin-inline-start: 8px; }

@media (max-width: 900px) {
  .role-panel { grid-template-columns: 1fr; gap: 34px; }
  .roles.js .role-panel.is-open { display: grid; }
  .role-shots { order: 2; }
  .role-tabs button { font-size: 20px; padding: 10px 20px; }
}
@media (max-width: 560px) {
  .phones3 { gap: 8px; }
  .phones3 .phone { flex-basis: 30%; border-radius: 20px; padding: 4px; }
  .phones3 .phone::before { display: none; }
  .phones3 .phone img { border-radius: 16px; }
  .phones3 .phone.mid { flex-basis: 34%; margin-bottom: 18px; }
  .browser.b2 { inset-inline-end: -2%; width: 62%; }
}


/* ---------- page « Diagnostic » (diagnostic.html, diagnostic.js) ---------- */
.diag-intro { padding: 64px 0 20px; }
.diag-intro h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 17em; }
.diag-intro .lead { margin: 18px 0 0; max-width: 40em; font-size: 20px; color: var(--ink-soft); }
.diag-body { padding: 36px 0 90px; }
.diag-card { max-width: 860px; margin: 0 auto; }
.diag-note { max-width: 860px; margin: 18px auto 0; font-size: 14.5px; color: var(--ink-soft); text-align: center; }
.diag-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #dbe5ee; }
.diag-cta > div { flex: 1 1 440px; }
.diag-cta .btn { flex: none; }
.diag-cta h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 6px; }
.diag-cta p { margin: 0; color: var(--ink-soft); font-size: 18px; max-width: 32em; }

.pain-groups { margin-top: 10px; }
.pain-group { margin-top: 20px; }
.pain-theme { margin: 0 0 8px; font-family: var(--hand); font-size: 22px; font-weight: 700; color: var(--ink); }
.pain-counter { min-height: 1.6em; margin: 14px 0 0; font-size: 15.5px; font-weight: 700; color: #2d6a46; }
.opt.is-off { opacity: .5; cursor: not-allowed; }
.quiz-size { margin-top: 12px; }
.quiz-size .quiz-options { margin-top: 20px; }

.diag-result h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; margin: 0 0 18px; }
.diag-result h2:focus, .diag-result h3:focus { outline: none; }
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pain-list li { padding: 14px 18px; background: #f6fafe; border: 1px solid #dbe7f2; border-radius: 12px; }
.pain-q { display: block; font-weight: 700; font-size: 16.5px; color: var(--ink); }
.pain-a { display: block; margin-top: 4px; font-size: 16px; color: #2d6a46; }
.diag-facts { display: grid; gap: 12px; margin-top: 24px; }
.fact { padding: 16px 20px; background: var(--yellow); border-radius: 12px; }
.fact strong { display: block; font-family: var(--hand); font-size: 24px; line-height: 1.25; color: var(--ink); }
.fact span { display: block; margin-top: 2px; font-size: 16px; color: var(--ink-soft); }
.diag-offer { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e3ebf2; }
.diag-offer h3 { font-size: clamp(30px, 3.6vw, 40px); margin: 0 0 2px; }
.diag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.diag-actions .quiz-restart { margin-top: 0; }
@media (max-width: 640px) {
  .diag-intro { padding: 40px 0 8px; }
  .diag-cta { flex-direction: column; align-items: flex-start; }
  .diag-actions .btn { width: 100%; text-align: center; }
}

/* préambule du diagnostic */
.diag-start h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; margin: 0 0 14px; }
.diag-start h2:focus { outline: none; }
.diag-start-lead { margin: 0 0 20px; font-size: 18px; color: var(--ink-soft); max-width: 40em; }
.diag-start-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.diag-start-list li { padding: 14px 18px; background: #f6fafe; border: 1px solid #dbe7f2; border-radius: 12px; font-size: 16.5px; }
.diag-start-list strong { color: var(--ink); }

/* diagnostic : boutons centrés */
.diag-card .quiz-nav, .diag-card .diag-actions { justify-content: center; }
.diag-card .quiz-lead form > .btn, .diag-card .quiz-lead > .btn { display: block; margin-inline: auto; }

/* sélecteur de langue masqué tant que le site n'existe qu'en français */
.lang-switch[hidden] { display: none !important; }
