/* =============================================================================
   khazaynlabs.com : accueil 0.1 (ALM-183), reprise fidèle de la maquette validée ALM-178
   (chat/departements/site-vitrine/alm-178/maquette/site.css). Retiré : formulaire, page
   Confidentialité, outils de maquette. Aucun JavaScript : le tracé des flèches est en CSS.
   Propriétés LOGIQUES uniquement : le RTL est natif, seuls les miroirs sont explicites.
   Règle : AUCUNE couleur littérale hors du bloc 1. Mode clair uniquement.
   ============================================================================= */

/* 0. POLICES auto-hébergées (CSP font-src 'self'), licence SIL OFL 1.1 : voir fonts/LICENCES.md.
   Sous-ensembles latin / arabe : une page française ne télécharge aucune police arabe. */
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/inter-latin-wght-Gz7AlRl.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url("../fonts/caveat-latin-wght-jM9h_2u.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/ibm-plex-sans-arabic-arabic-400-EKLclGX.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/ibm-plex-sans-arabic-arabic-500-og7NnSb.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap;
    src: url("../fonts/ibm-plex-sans-arabic-arabic-600-nBfu5TT.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("../fonts/ibm-plex-sans-arabic-arabic-700-F5hLAA-.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: "Aref Ruqaa"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("../fonts/aref-ruqaa-arabic-700-RQEB6IY.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* 1. JETONS ------------------------------------------------------------------ */
:root {
    /* 1.1 Copie de .vex-theme-teal (frontend/src/styles/_generated-themes.scss) */
    --c-primary-50: #f0fdfa;
    --c-primary-100: #ccfbf1;
    --c-primary-300: #5eead4;
    --c-primary-700: #0f766e;
    --c-primary-800: #115e59;
    --c-primary-900: #134e4a;

    --c-accent-50: #fffbeb;
    --c-accent-100: #fef3c7;
    --c-accent-200: #fde68a;
    --c-accent-300: #fcd34d;
    --c-accent-400: #fbbf24;
    --c-accent-700: #b45309;

    /* 1.2 Neutres et erreur : palette Tailwind (même source que VEX) */
    --c-white: #ffffff;
    --c-gray-50: #f9fafb;
    --c-gray-100: #f3f4f6;
    --c-gray-300: #d1d5db;
    --c-gray-500: #6b7280;
    --c-gray-600: #4b5563;
    --c-gray-700: #374151;
    --c-gray-800: #1f2937;
    --c-gray-900: #111827;
    --c-red-50: #fef2f2;
    --c-red-700: #b91c1c;

    /* 1.3 Rôles : ce sont EUX que les composants utilisent */
    --ink: var(--c-gray-800);          /* texte et traits : 14,7:1 sur blanc */
    --ink-2: var(--c-gray-600);        /* texte secondaire : 7,6:1 sur blanc, 7,2:1 sur accent-50 */
    --paper: var(--c-white);
    --paper-2: var(--c-accent-50);     /* fond « cahier » */
    --tint: var(--c-primary-50);       /* fond des solutions et du rendez-vous */
    --brand: var(--c-primary-700);     /* boutons, liens, cadres solution : 5,5:1 avec le blanc */
    --hand: var(--c-primary-800);      /* annotations manuscrites : 7,6:1 */
    --focus: var(--c-primary-700);
    --danger: var(--c-red-700);        /* erreurs : 6,5:1 sur blanc, 6,0:1 sur red-50 */
    --field-border: var(--c-gray-700); /* bord des champs : 10,3:1, bien au-delà des 3:1 exigés */

    /* 1.4 Typographie */
    --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
    --font-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --font-num: "Inter", system-ui, sans-serif;
    --fs-body: 1.0625rem;              /* 17 px */
    --lh-body: 1.6;
    --lh-title: 1.2;

    /* 1.5 Formes et espaces (échelle de 4 px) */
    --radius-hand: 255px 18px 225px 18px / 18px 225px 18px 255px;
    --radius: 14px;
    --sx: 4px;                          /* décalage horizontal des ombres « bande dessinée » */
    --gutter: 20px;
    --section-y: 52px;

    color-scheme: light;
}
html[dir="rtl"] { --sx: -4px; }

:root:lang(ar) {
    --font-ui: var(--font-ar);
    --font-hand: "Aref Ruqaa", "IBM Plex Sans Arabic", serif;
    --fs-body: 1.125rem;               /* 18 px : l'arabe demande ~1 px de plus */
    --lh-body: 1.8;
    --lh-title: 1.45;
}
@media (min-width: 900px) {
    :root { --gutter: 40px; --section-y: 88px; }
}

/* 2. BASE -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* L'ancre #rendez-vous ne colle pas le titre au bord haut de l'écran */
[id] { scroll-margin-block-start: 12px; }
body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink);
    background: var(--paper);
    overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: var(--lh-title); margin: 0 0 .5em; color: var(--c-gray-900); text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-weight: 700; letter-spacing: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-900); }
ul, ol { margin: 0; padding: 0; }

/* Numéros, e-mail, nom d'éditeur : toujours isolés et de gauche à droite */
.latin { font-family: var(--font-num); direction: ltr; unicode-bidi: isolate; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.muted { color: var(--ink-2); }
/* Passage arabe dans la page française (sélecteur de langue) */
:root:lang(fr) [lang="ar"] { font-family: var(--font-ar); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip {
    position: absolute; inset-inline-start: 8px; top: -200px; z-index: 50;
    background: var(--c-gray-900); color: var(--c-white); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 8px; color: var(--c-white); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper-2); }
.section--tint { background: var(--tint); }
.section + .section { border-block-start: 2.5px solid var(--ink); }
.section-head { max-width: 46rem; margin-block-end: 36px; }
.lead { font-size: 1.1em; color: var(--c-gray-700); max-width: 40rem; }

/* Surtitre : texte d'écran (pas manuscrit) car il porte une information utile au
   visiteur froid (« pour qui »). Même repère que l'en-tête des pages du PDF. */
.kicker {
    display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
    font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--brand);
}
.kicker::before {
    content: ""; flex: 0 0 28px; width: 28px; height: 4px; border-radius: 4px;
    background: var(--c-accent-400);
}

/* 3. EN-TÊTE (sans menu en 0.1 : aucun lien mort) ---------------------------- */
.site-header { background: var(--paper); border-block-end: 2.5px solid var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-block: 10px; }
.brand {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    margin-inline-end: auto; color: var(--ink); text-decoration: none;
}
.brand svg { flex: 0 0 40px; width: 40px; height: 40px; }
.brand-text { min-width: 0; }
.brand-name { display: block; font-weight: 800; font-size: 1.15rem; line-height: 1.15; color: var(--c-gray-900); }
.brand-by { display: block; font-size: .8rem; line-height: 1.25; color: var(--ink-2); font-weight: 500; }
.lang-switch {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 14px;
    border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
    color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.lang-switch:hover { background: var(--c-gray-100); color: var(--ink); }
.lang-switch svg { width: 18px; height: 18px; }
/* Sous 600 px, le bouton « Prendre rendez-vous » du héros est déjà dans le premier écran :
   un 2e bouton dans l'en-tête serait une décision en double. */
.site-header .header-cta { display: none; }
@media (min-width: 600px) { .site-header .header-cta { display: inline-flex; min-height: 44px; padding-block: 6px; } }
.f-p700 { fill: var(--c-primary-700); }
.f-a400 { fill: var(--c-accent-400); }
.f-white { fill: var(--c-white); }

/* 4. BOUTONS ET LIENS D'ACTION ----------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 10px 22px; max-width: 100%; min-width: 0;
    border: 2.5px solid var(--ink); border-radius: var(--radius);
    font: inherit; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none;
    cursor: pointer; box-shadow: var(--sx) 4px 0 var(--ink);
    transition: transform .08s ease, box-shadow .08s ease;
}
.btn > span { min-width: 0; }
.btn:hover { transform: translate(calc(var(--sx) / -4), -1px); box-shadow: calc(var(--sx) * 1.25) 5px 0 var(--ink); }
.btn:active { transform: translate(calc(var(--sx) / 2), 2px); box-shadow: calc(var(--sx) / 4) 1px 0 var(--ink); }
.btn[aria-disabled="true"] { cursor: progress; transform: none; box-shadow: calc(var(--sx) / 4) 1px 0 var(--ink); }
.btn-primary { background: var(--brand); color: var(--c-white); }
.btn-primary:hover { background: var(--c-primary-800); color: var(--c-white); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--c-gray-100); color: var(--ink); }
.ico { flex: 0 0 22px; width: 22px; height: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 26px; }
@media (max-width: 599px) { .cta-row .btn { flex: 1 1 100%; } }
.reassure { margin: 16px 0 0; color: var(--ink-2); }

/* Lien texte (fin des solutions, e-mail) : discret mais cible de 44 px */
.text-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%;
    font-weight: 700; color: var(--brand);
}
.text-link > span { min-width: 0; }
.text-link .ico { flex-basis: 20px; width: 20px; height: 20px; }

/* 5. MANUSCRIT : annotations et bulles ---------------------------------------- */
.note {
    display: flex; align-items: flex-start; gap: 6px; max-width: 100%; margin: 0;
    font-family: var(--font-hand); font-weight: 700; font-size: 1.4rem; line-height: 1.3;
    color: var(--hand);
}
:lang(ar) .note { font-size: 1.45rem; line-height: 1.6; }
.note > span:last-child { min-width: 0; transform: rotate(-1.5deg); }
.note .note-arrow { flex: 0 0 40px; width: 40px; }

/* Bulles : texte HTML (lisible par un lecteur d'écran), jamais dans un dessin.
   Forme reprise du PDF validé (.bubble / .bubble.think) : grand arrondi, ombre décalée. */
.bubble {
    position: relative; display: block; max-width: 100%; min-width: 0; margin: 0;
    padding: 8px 16px; background: var(--paper); color: var(--ink);
    border: 2.5px solid var(--ink); border-radius: 24px;
    box-shadow: var(--sx) 4px 0 var(--ink);
    font-family: var(--font-hand); font-weight: 700; font-size: 1.25rem; line-height: 1.25;
}
:lang(ar) .bubble { font-size: 1.3rem; line-height: 1.6; padding: 6px 16px; }
.bubble .num { font-family: "Caveat", var(--font-hand); direction: ltr; unicode-bidi: isolate; }
.bubble sup { line-height: 0; }

/* Pensée : deux petits ronds qui partent vers le personnage, placé en DÉBUT de ligne.
   Il faut 38 px libres côté début de ligne (voir .with-thought). */
.bubble--thought { border-radius: 30px; padding-inline: 18px; }
.bubble--thought::before, .bubble--thought::after {
    content: ""; position: absolute; background: var(--paper);
    border: 2.5px solid var(--ink); border-radius: 50%;
}
.bubble--thought::before { width: 16px; height: 16px; inset-inline-start: -22px; bottom: 8px; }
.bubble--thought::after { width: 10px; height: 10px; inset-inline-start: -36px; bottom: 0; border-width: 2px; }

/* Parole : pointe vers le personnage, placé en FIN de ligne. 20 px libres requis. */
.bubble--speech::before, .bubble--speech::after { content: ""; position: absolute; width: 0; height: 0; }
.bubble--speech::before {
    top: calc(50% - 11px); inset-inline-end: -19px;
    border-block: 11px solid transparent; border-inline-start: 19px solid var(--ink);
}
.bubble--speech::after {
    top: calc(50% - 6.5px); inset-inline-end: -12px;
    border-block: 6.5px solid transparent; border-inline-start: 12px solid var(--paper);
}

/* Rappel du défi dans les solutions : même pensée, en pointillés, sans ombre (c'est un souvenir) */
.bubble--recall {
    border-style: dashed; border-color: var(--c-gray-500); box-shadow: none;
    color: var(--ink-2); font-size: 1.1rem;
}
:lang(ar) .bubble--recall { font-size: 1.15rem; }
.bubble--recall::before, .bubble--recall::after { border-color: var(--c-gray-500); }

/* 6. PERSONNAGES (Open Peeps, <img> décoratifs) --------------------------------
   Orientations reprises du PDF validé, à l'identique :
   personnage AVANT sa pensée -> miroir en arabe ; équipe APRÈS sa parole -> miroir en français. */
.peep { display: block; width: 100%; height: auto; }
html[dir="rtl"] .peep--mirror-rtl { transform: scaleX(-1); }
html[dir="ltr"] .peep--mirror-ltr { transform: scaleX(-1); }

/* Personnage + bulle côte à côte. La colonne du personnage a une taille fixe, la bulle prend le reste. */
.with-thought {
    display: grid; grid-template-columns: minmax(0, var(--peep, 96px)) minmax(0, 1fr);
    align-items: center; gap: 0 12px; min-width: 0;
}
.with-thought .bubble { margin-inline-start: 26px; }
.with-speech {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--peep, 120px));
    align-items: center; gap: 0 24px; min-width: 0;
}
.who { position: relative; min-width: 0; }

/* Pastille numérotée (défi n -> solution n) */
.num-badge {
    position: absolute; top: 0; inset-inline-start: 0; z-index: 1;
    width: 34px; height: 34px; display: grid; place-items: center;
    font-family: "Caveat", var(--font-hand); font-weight: 700; font-size: 1.5rem; line-height: 1;
    color: var(--c-gray-900); background: var(--c-accent-300);
    border: 2.5px solid var(--ink); border-radius: 50% 46% 52% 44%;
}

/* 7. FLÈCHES DESSINÉES (reprises de maquettes/assets/illustrations.js) -------- */
.arrow { display: block; }
.arrow svg { width: 100%; height: auto; overflow: visible; }
.il-arrow { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.il-arrow--brand { stroke: var(--brand); }
/* Les flèches horizontales se retournent en arabe : toujours du défi vers la solution. */
html[dir="rtl"] .flip-rtl svg { transform: scaleX(-1); }
/* Tracé au défilement, en CSS pur (la maquette le faisait en JS) : chaque flèche se dessine
   en entrant à l'écran. Navigateur sans animation-timeline ou mouvement réduit : flèche déjà tracée. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .draw { view-timeline: --draw block; }
        .draw .draw-line {
            stroke-dasharray: 1; stroke-dashoffset: 1;
            animation: draw-line linear both; animation-timeline: --draw; animation-range: entry 20% cover 45%;
        }
        .draw .draw-head { animation: draw-head linear both; animation-timeline: --draw; animation-range: cover 42% cover 48%; }
    }
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes draw-head { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Pictos des solutions (dessins maison du 25/09) */
.il-ink { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.il-thin { stroke-width: 2; }
.il-accent-ink { stroke: var(--c-accent-700); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.il-ink.f-white { fill: var(--c-white); }
.il-ink.f-p100 { fill: var(--c-primary-100); }
.il-ink.f-a200 { fill: var(--c-accent-200); }
.il-ink.f-a400 { fill: var(--c-accent-400); }

/* 8. SECTION 1 : HÉROS (page de cahier) ---------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    background-color: var(--paper-2);
    background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--c-primary-100) 31px 32px);
    border-block-end: 2.5px solid var(--ink);
}
.hero::before { /* marge du cahier d'écolier */
    content: ""; position: absolute; inset-block: 0; inset-inline-start: 10px; width: 2px;
    background: var(--c-accent-400); opacity: .8;
}
.hero .wrap { position: relative; display: grid; gap: 36px; padding-block: 28px 40px; }
.hero-text { min-width: 0; }
@media (min-width: 900px) {
    .hero::before { inset-inline-start: 24px; }
    .hero .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 48px; padding-block: 64px 60px; }
}
/* Scène : la directrice (début de ligne) et ses trois pensées empilées */
.scene { margin: 0; min-width: 0; }
.scene-body {
    display: grid; grid-template-columns: minmax(0, 118px) minmax(0, 1fr);
    align-items: end; gap: 0 12px;
}
.scene-bubbles { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding-block-end: 28px; }
.scene-bubbles .bubble { margin-inline-start: 26px; }
.scene-bubbles .bubble:nth-child(2) { margin-inline-start: 40px; }
@media (min-width: 900px) {
    .scene-body { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 16px; }
    .scene-bubbles { gap: 22px; padding-block-end: 48px; }
}
.scene .note { margin-block-start: 22px; }

/* 9. SECTION 2 : TROIS DÉFIS + TEST ---------------------------------------------- */
.worries { list-style: none; display: grid; gap: 40px; }
@media (min-width: 900px) { .worries { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.worry { min-width: 0; }
.worry .with-thought { --peep: 96px; }
.worry-why { margin: 16px 0 0; }
@media (min-width: 900px) { .worry .with-thought { --peep: 104px; } }

/* Le test : une liste, pas des cases. Des cases dessinées inviteraient à toucher l'écran
   (fausse affordance) alors que rien ne réagit. */
.quiz {
    margin-block-start: 56px; margin-inline: auto; max-width: 46rem;
    background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px 24px 16px 26px;
    box-shadow: var(--sx) 5px 0 var(--ink); padding: 24px 20px 20px;
}
@media (min-width: 900px) { .quiz { padding: 32px 36px 26px; } }
.quiz ul { list-style: none; display: grid; gap: 14px; }
.quiz li { position: relative; min-height: 30px; padding-inline-start: 44px; }
.quiz li::before {
    content: "?"; position: absolute; inset-inline-start: 0; top: 0;
    width: 30px; height: 30px; display: grid; place-items: center;
    font-family: "Caveat", var(--font-hand); font-weight: 700; font-size: 1.35rem; line-height: 1;
    color: var(--c-primary-900); background: var(--c-primary-100);
    border: 2px solid var(--ink); border-radius: 50% 46% 52% 44%;
}
:lang(ar) .quiz li::before { content: "؟"; font-family: var(--font-ar); font-size: 1.1rem; }
.quiz .note { margin-block-start: 22px; }

/* 10. SECTION 4 : DÉFI -> FLÈCHE -> SOLUTION ------------------------------------ */
.pairs { list-style: none; display: grid; gap: 60px; }
.pair { display: grid; gap: 4px; min-width: 0; }
.pair-before { --peep: 64px; }
.pair-arrow { display: flex; justify-content: center; min-width: 0; }
.pair-arrow .arrow-down { width: 56px; }
.pair-arrow .arrow-side { display: none; }
@media (min-width: 900px) {
    .pairs { gap: 72px; }
    .pair { grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 6fr); align-items: center; gap: 12px; }
    .pair-before { --peep: 96px; }
    .pair-arrow .arrow-down { display: none; }
    .pair-arrow .arrow-side { display: block; width: 100%; max-width: 150px; }
}
.pair-before .num-badge { width: 28px; height: 28px; font-size: 1.25rem; top: -6px; }

.solution {
    position: relative; min-width: 0;
    background: var(--tint); border: 3px solid var(--brand); border-radius: var(--radius-hand);
    padding: 36px 20px 20px;
}
@media (min-width: 900px) { .solution { padding: 38px 28px 24px; } }
.solution h3 { display: flex; align-items: center; gap: 12px; margin-block-end: .4em; }
.solution h3 svg { flex: 0 0 44px; width: 44px; }
.solution h3 span { min-width: 0; }
.solution-text { margin: 0; }
.stamp {
    position: absolute; top: -18px; inset-inline-start: 14px; max-width: calc(100% - 28px); margin: 0;
    padding: 2px 12px; background: var(--c-accent-400); color: var(--c-gray-900);
    border: 2px solid var(--ink); border-radius: 6px;
    font-family: var(--font-hand); font-weight: 700; font-size: 1.15rem; line-height: 1.35;
    transform: rotate(-2.5deg);
}
:lang(ar) .stamp { font-size: 1.2rem; line-height: 1.6; top: -21px; }
/* Le même personnage, apaisé : la bulle « après » */
.after {
    --peep: 76px;
    margin-block-start: 18px; padding-block-start: 16px;
    border-block-start: 2px dashed var(--c-primary-300);
}
@media (min-width: 900px) { .after { --peep: 88px; } }

.closing { margin-block-start: 64px; text-align: center; margin-inline: auto; }
.closing p { margin-block-end: 6px; }

/* 11. SECTION 5 : VOUS GARDEZ LA MAIN ----------------------------------------- */
.control { display: grid; gap: 32px; }
.control > * { min-width: 0; }
@media (min-width: 900px) { .control { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 56px; } }
.control .with-speech { --peep: 120px; max-width: 460px; }
@media (min-width: 900px) { .control .with-speech { --peep: 150px; } }
.proofs { list-style: none; display: grid; gap: 20px; margin-block-start: 44px; }
@media (min-width: 900px) { .proofs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.proof {
    min-width: 0; background: var(--paper);
    border: 2.5px solid var(--ink); border-block-start: 7px solid var(--brand);
    border-radius: 14px 20px 14px 22px; padding: 18px 18px 20px;
}
.proof h3 { font-size: 1.1rem; margin-block-end: .35em; }
.proof p { margin: 0; color: var(--c-gray-700); }

/* 12. SECTION 6 : COMMENT ON COMMENCE ------------------------------------------- */
.start { display: grid; gap: 32px; }
.start > * { min-width: 0; }
@media (min-width: 900px) { .start { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; gap: 56px; } }
.start .with-thought { --peep: 110px; max-width: 420px; }
@media (min-width: 900px) { .start .with-thought { --peep: 130px; } }
.steps { list-style: none; display: grid; gap: 22px; counter-reset: step; }
.steps li { position: relative; min-width: 0; min-height: 50px; padding-inline-start: 64px; counter-increment: step; }
.steps li::before {
    content: counter(step); position: absolute; inset-inline-start: 0; top: -4px;
    width: 50px; height: 50px; display: grid; place-items: center;
    font-family: "Caveat", var(--font-hand); font-weight: 700; font-size: 2rem; line-height: 1;
    color: var(--c-gray-900); background: var(--c-accent-300);
    border: 2.5px solid var(--ink); border-radius: 50% 46% 52% 44%;
}
.steps strong { display: block; font-size: 1.1rem; line-height: var(--lh-title); color: var(--c-gray-900); margin-block-end: 4px; }
.steps strong a { color: var(--brand); }
.steps span { color: var(--c-gray-700); }
/* L'étape 3 répond à la pensée de la directrice : même cadre que les solutions */
.steps .step--answer {
    background: var(--tint); border: 3px solid var(--brand); border-radius: var(--radius-hand);
    padding: 18px; padding-inline-start: 78px;
}
.steps .step--answer::before { inset-inline-start: 14px; top: 14px; }

/* 13. SECTION 7 : RENDEZ-VOUS PAR E-MAIL -------------------------------------------
   Une seule carte (l'e-mail pré-rempli), posée sur le fond teal pâle.
   390 px : titre, sous-titre, carte, ligne parents, puis équipe et promesses.
   ≥ 900 px : carte 7/11 en début de ligne, colonne d'aide 4/11 en fin de ligne. */
.rdv-head { max-width: 46rem; margin-block-end: 28px; }
.rdv-head .lead { margin-block-end: 0; }
.rdv-grid { display: grid; gap: 40px; }
.rdv-grid > * { min-width: 0; }
@media (min-width: 900px) { .rdv-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; } }

.panel {
    min-width: 0; background: var(--paper);
    border: 2.5px solid var(--ink); border-radius: 20px 28px 18px 26px;
    box-shadow: var(--sx) 6px 0 var(--ink); padding: 22px 16px 24px;
}
@media (min-width: 600px) { .panel { padding: 30px 28px; } }
@media (min-width: 900px) { .panel { padding: 36px 36px 32px; } }
.rdv-others { margin: 18px 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }

/* Colonne d'aide : équipe, promesses, e-mail */
.rdv-side { display: grid; gap: 28px; min-width: 0; }
.rdv-side .with-speech { --peep: 104px; }
.rdv-side h3 { font-size: 1.05rem; margin-block-end: 2px; }
.rdv-mail p { margin: 0; }

.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 34px; }
.checks li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .25em; width: 24px; height: 24px;
    background: var(--brand);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13 C5 14 7 16 9 20 C12 12 16 7 22 3' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13 C5 14 7 16 9 20 C12 12 16 7 22 3' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 14. PIED DE PAGE --------------------------------------------------------------- */
.site-footer { background: var(--c-gray-50); border-block-start: 2.5px solid var(--ink); padding-block: 32px; font-size: .95rem; }
.footer-grid { display: grid; gap: 20px; }
.footer-grid > * { min-width: 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.signature { font-weight: 800; color: var(--c-gray-900); font-size: 1.05rem; margin-block-end: 4px; }
.footer-links { list-style: none; display: grid; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; color: var(--ink); }
.footer-links a > span { min-width: 0; }
.footer-links .ico { flex-basis: 18px; width: 18px; height: 18px; }
.footer-grid p { margin: 0 0 6px; }

/* Rendez-vous par e-mail (pas de formulaire en 0.1) */
.mail-card { display: grid; gap: 14px; }
.mail-card p { margin: 0; }
.mail-title { margin: 0; }
.mail-note { color: var(--ink-2); }
.mail-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mail-copy .latin { font-weight: 700; min-width: 0; }
/* Sans JS, pas de bouton « Copier » : un seul toucher sélectionne toute l'adresse. */
.copyable { user-select: all; -webkit-user-select: all; cursor: text; }
