/* ==========================================================================
   Future School · Future Visions — feuille de styles
   - Bilingue : arabe (RTL, défaut) / français (LTR). La langue est portée par
     <html lang dir> ; les textes existent en .lang-only-ar / .lang-only-fr.
   - Propriétés logiques (inline-start/end) partout : une seule feuille pour
     les deux sens de lecture.
   - Contrastes vérifiés WCAG 2.2 AA (ratios en commentaire).
   ========================================================================== */

:root{
  /* Marque */
  --navy:#16315c;          /* blanc sur navy 12.9:1 */
  --navy-2:#1f4480;
  --navy-900:#0f2444;
  --navy-soft:#eef3fb;
  --amber:#f5a623;         /* décoratif / fonds uniquement — navy sur ambre 6.36:1 */
  --amber-hover:#ffb847;
  --amber-ink:#8a5300;     /* texte ambre sur blanc 6.33:1 */
  --amber-tint:#fff4e0;
  --cyan:#0891b2;          /* icônes / bordures (3.68:1) */
  --cyan-ink:#0b6e8a;      /* texte 5.81:1 */
  --cyan-tint:#e6f6fa;
  --green:#2e7d4f;         /* 5.05:1 */
  --green-ink:#256a42;     /* 6.52:1 */
  --green-tint:#eaf6ef;

  /* Neutres */
  --ink:#14213a;
  --muted:#4f5a6e;         /* 6.95:1 sur blanc */
  --line:#e3e7ef;          /* séparateurs décoratifs */
  --line-strong:#6b7589;   /* bordures de champs 4.63:1 */
  --bg:#ffffff;
  --bg-soft:#f6f8fc;
  --error:#b42318;         /* 6.57:1 */
  --error-tint:#fef3f2;
  --focus:var(--navy);

  /* Forme */
  --radius-lg:22px;
  --radius:16px;
  --radius-sm:12px;
  --pill:999px;
  --shadow-sm:0 2px 10px -4px rgba(22,49,92,.18);
  --shadow:0 12px 34px -14px rgba(22,49,92,.28);
  --shadow-lg:0 22px 50px -18px rgba(22,49,92,.38);
  --maxw:1160px;
  --gutter:24px;
  --header-h:72px;

  /* Typo */
  --font-ar:'Tajawal',system-ui,-apple-system,'Segoe UI',Tahoma,sans-serif;
  --font-lat:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
}
@media (max-width:640px){ :root{ --gutter:16px; --header-h:62px; } }

/* Accents par programme */
[data-accent="summer"]{ --acc:var(--amber); --acc-ink:var(--amber-ink); --acc-tint:var(--amber-tint); }
[data-accent="digital"]{ --acc:var(--cyan);  --acc-ink:var(--cyan-ink);  --acc-tint:var(--cyan-tint); }
[data-accent="camp"]{ --acc:var(--green); --acc-ink:var(--green-ink); --acc-tint:var(--green-tint); }

/* ---------- Base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-padding-top:calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion:no-preference){ html{ scroll-behavior:smooth; } }
body{
  margin:0; font-family:var(--font-ar); font-size:17px; line-height:1.75;
  color:var(--ink); background:var(--bg);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
html[lang="fr"] body{ font-family:var(--font-lat); font-size:16px; line-height:1.6; }
h1,h2,h3,h4,p,ul,ol,dl,dd,figure,fieldset{ margin:0; }
ul,ol{ padding:0; list-style:none; }
img,svg{ display:block; max-width:100%; }
img{ height:auto; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; }
bdi{ unicode-bidi:isolate; }
.latin{ font-family:var(--font-lat); }
[hidden]{ display:none !important; }

/* Langues : seule la version active est affichée (et lue par les lecteurs d'écran) */
html:not([lang="fr"]) .lang-only-fr,
html[lang="fr"] .lang-only-ar{ display:none !important; }

.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0;
}

/* Focus visible, cohérent partout */
:focus{ outline:none; }
:focus-visible{ outline:3px solid var(--focus); outline-offset:3px; border-radius:6px; }
.on-dark{ --focus:var(--amber); }

/* Icônes (sprite <symbol>) */
.i{ width:1.25em; height:1.25em; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.i-fill{ fill:currentColor; stroke:none; }
html[dir="rtl"] .i-dir{ transform:scaleX(-1); }

/* Lien d'évitement */
.skip-link{
  position:absolute; inset-inline-start:12px; top:-60px; z-index:200;
  background:var(--navy); color:#fff; padding:12px 18px; border-radius:var(--radius-sm); font-weight:700;
  transition:top .15s ease;
}
.skip-link:focus{ top:12px; }
#main:focus{ outline:none; }

/* ---------- Boutons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:50px; padding:12px 24px; border-radius:var(--pill); border:2px solid transparent;
  font-weight:700; font-size:16px; line-height:1.25; text-align:center;
  transition:transform .15s var(--ease), box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active{ transform:scale(.98); }
.btn-primary{ background:var(--amber); color:var(--navy); box-shadow:0 10px 24px -12px rgba(245,166,35,.9); }
.btn-primary:hover{ background:var(--amber-hover); box-shadow:0 14px 30px -12px rgba(245,166,35,1); }
.btn-secondary{ background:#fff; color:var(--navy); border-color:var(--navy); }
.btn-secondary:hover{ background:var(--navy); color:#fff; }
.btn-quiet{ background:var(--navy-soft); color:var(--navy); }
.btn-quiet:hover{ background:#e0e9f7; }
.btn-wa{ background:#0e7a3c; color:#fff; }            /* 5.43:1 */
.btn-wa:hover{ background:#0b6331; }
.btn-block{ width:100%; }
.btn .i{ width:20px; height:20px; }
.btn[aria-disabled="true"]{ cursor:progress; opacity:.85; }

.text-link{
  display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--navy);
  text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; text-decoration-color:rgba(22,49,92,.3);
  min-height:44px;
}
.text-link:hover{ text-decoration-color:currentColor; }

/* ---------- En-tête ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.9); -webkit-backdrop-filter:saturate(180%) blur(14px); backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; gap:18px; height:var(--header-h); }
.brand{ display:inline-flex; align-items:center; gap:10px; color:var(--navy); min-height:44px; flex-shrink:0; }
.brand-mark{ width:38px; height:38px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-family:var(--font-lat); font-weight:800; font-size:19px; letter-spacing:-.2px; }
.brand-by{ font-size:12.5px; font-weight:600; color:var(--muted); margin-top:2px; }
.nav-links{ display:flex; align-items:center; gap:4px; margin-inline-start:auto; }
.nav-links a{
  display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border-radius:var(--pill);
  font-size:15.5px; font-weight:600; color:var(--muted); transition:color .2s, background-color .2s;
}
.nav-links a:hover{ color:var(--navy); background:var(--navy-soft); }
.nav-links a[aria-current="true"]{ color:var(--navy); box-shadow:inset 0 -3px 0 var(--amber); border-radius:0; }
.nav-right{ display:flex; align-items:center; gap:10px; }
.lang-toggle{ display:flex; padding:3px; border:1px solid var(--line); border-radius:var(--pill); background:#fff; }
.lang-toggle button{
  min-width:44px; min-height:38px; padding:0 12px; border:0; border-radius:var(--pill); background:transparent;
  font-family:var(--font-lat); font-weight:800; font-size:14px; color:var(--muted); transition:background-color .2s, color .2s;
}
.lang-toggle button[lang="ar"]{ font-family:var(--font-ar); font-size:17px; }
.lang-toggle button[aria-pressed="true"]{ background:var(--navy); color:#fff; }
.nav-cta{ min-height:44px; padding:10px 20px; font-size:15px; }
.burger{
  display:none; width:44px; height:44px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--navy);
  align-items:center; justify-content:center;
}
.burger .i{ width:24px; height:24px; }
.burger .i-close{ display:none; }
.burger[aria-expanded="true"] .i-open{ display:none; }
.burger[aria-expanded="true"] .i-close{ display:block; }

/* ---------- Sections génériques ---------- */
.section{ padding:88px 0; }
.section-soft{ background:var(--bg-soft); }
.sec-head{ max-width:720px; margin:0 auto 44px; text-align:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; margin-bottom:12px;
  font-size:14px; font-weight:800; color:var(--amber-ink); letter-spacing:.08em; text-transform:uppercase;
}
html[lang="ar"] .eyebrow{ letter-spacing:0; text-transform:none; font-size:16px; }
.sec-title{ font-size:clamp(26px,3.4vw,38px); line-height:1.25; font-weight:800; color:var(--navy); text-wrap:balance; }
.sec-sub{ margin-top:14px; font-size:17.5px; color:var(--muted); text-wrap:pretty; }
html[lang="fr"] .sec-sub{ font-size:17px; }

/* Apparition au défilement : seulement si JS est actif (html.js) */
.js .reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s var(--ease); }
.js .reveal.in{ opacity:1; transform:none; }

/* ---------- Hero + 3 programmes ---------- */
.hero{ position:relative; }
.hero-bg{
  position:relative; overflow:hidden; color:#fff; padding:60px 0 150px;
  background:
    radial-gradient(circle at 88% 12%, rgba(245,166,35,.22), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(8,145,178,.20), transparent 40%),
    var(--navy);
}
html[dir="ltr"] .hero-bg{
  background:
    radial-gradient(circle at 12% 12%, rgba(245,166,35,.22), transparent 42%),
    radial-gradient(circle at 92% 92%, rgba(8,145,178,.20), transparent 40%),
    var(--navy);
}
.hero-bg::after{ /* motif discret de points */
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.08;
  background-image:radial-gradient(#fff 1px, transparent 1.2px); background-size:22px 22px;
  mask-image:linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image:linear-gradient(to bottom, #000, transparent 85%);
}
.hero-intro{ position:relative; z-index:1; text-align:center; max-width:820px; }
.hero-kicker{
  display:inline-flex; align-items:center; gap:10px; margin-bottom:20px; padding:6px 16px 6px 6px;
  border:1px solid rgba(255,255,255,.2); border-radius:var(--pill); background:rgba(255,255,255,.07);
  font-size:14.5px; font-weight:600; color:rgba(255,255,255,.92);
}
html[dir="rtl"] .hero-kicker{ padding:6px 6px 6px 16px; }
.hero-kicker .dot{ width:28px; height:28px; border-radius:50%; background:var(--amber); color:var(--navy); display:grid; place-items:center; }
.hero-kicker .dot .i{ width:16px; height:16px; }
.hero h1{ font-size:clamp(30px,4.6vw,50px); line-height:1.18; font-weight:800; letter-spacing:-.4px; text-wrap:balance; }
html[lang="ar"] .hero h1{ letter-spacing:0; line-height:1.35; }
.hero h1 .hl{ color:var(--amber); }
.hero-lead{ margin:18px auto 0; max-width:660px; font-size:clamp(16.5px,2vw,19px); color:rgba(255,255,255,.82); text-wrap:pretty; }

.prog-grid{ position:relative; z-index:2; display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:-112px; }
.prog-card{
  position:relative; display:flex; flex-direction:column; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow);
  transition:transform .25s var(--ease), box-shadow .25s ease;
}
.prog-card::before{ content:""; position:absolute; inset:0 0 auto 0; height:5px; background:var(--acc); z-index:2; }
.prog-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.prog-card:focus-within{ outline:3px solid var(--navy); outline-offset:4px; }
.prog-card__media{ position:relative; aspect-ratio:16/10; background:var(--acc-tint); overflow:hidden; }
.prog-card__media img,.prog-card__media svg{ width:100%; height:100%; object-fit:cover; }
.prog-card__media img{ transition:transform .5s var(--ease); }
.prog-card:hover .prog-card__media img{ transform:scale(1.04); }
.prog-card__badge{
  position:absolute; top:14px; inset-inline-start:14px; z-index:1;
  padding:5px 12px; border-radius:var(--pill); background:var(--navy); color:#fff; font-size:13px; font-weight:700; line-height:1.3;
}
.prog-card__body{ display:flex; flex-direction:column; gap:12px; flex:1; padding:20px 22px 22px; }
.prog-card__title{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; font-size:23px; line-height:1.2; font-weight:800; color:var(--navy); }
.prog-card__title a{ font-family:var(--font-lat); }
.prog-card__title a::after{ content:""; position:absolute; inset:0; z-index:3; } /* carte entièrement cliquable */
.prog-card__title a:focus-visible{ outline:none; }
.gloss{ font-family:var(--font-ar); font-size:16px; font-weight:700; color:var(--muted); }
.prog-card__desc{ color:var(--muted); font-size:16px; line-height:1.6; }
.facts{ display:flex; flex-wrap:wrap; gap:8px; }
.fact{
  display:inline-flex; align-items:center; gap:7px; padding:6px 12px; border-radius:var(--pill);
  background:var(--acc-tint); color:var(--acc-ink); font-size:14px; font-weight:700; line-height:1.35;
}
.fact .i{ width:17px; height:17px; }
.prog-card__more{
  display:inline-flex; align-items:center; gap:8px; margin-top:auto; padding-top:4px;
  font-weight:800; font-size:15.5px; color:var(--navy);
}
.prog-card__more .i{ width:18px; height:18px; transition:transform .2s var(--ease); }
.prog-card:hover .prog-card__more .i{ transform:translateX(4px); }
html[dir="rtl"] .prog-card:hover .prog-card__more .i{ transform:scaleX(-1) translateX(4px); }

/* Bande de confiance */
.trust{ padding:34px 0 8px; }
.trust-list{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px 34px; }
.trust-list li{ display:inline-flex; align-items:center; gap:10px; font-weight:700; color:var(--navy); font-size:15.5px; }
.trust-list .ic{ width:36px; height:36px; border-radius:11px; background:var(--navy-soft); display:grid; place-items:center; color:var(--navy); }
.trust-list .ic .i{ width:19px; height:19px; }

/* ---------- Détail des programmes (onglets) ---------- */
.details{ padding-top:72px; }
.tabs-bar{ display:flex; justify-content:center; margin-bottom:30px; scroll-margin-top:calc(var(--header-h) + 16px); }
.tabs{
  display:inline-grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:4px; padding:5px;
  border-radius:var(--pill); background:var(--navy-soft); border:1px solid var(--line); max-width:100%;
}
html:not(.js) .tabs-bar{ display:none; }
.tab{
  display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:50px; padding:8px 22px;
  border:0; border-radius:var(--pill); background:transparent; color:var(--navy);
  font-family:var(--font-lat); font-weight:700; font-size:15.5px; white-space:nowrap;
  transition:background-color .2s, color .2s, box-shadow .2s;
}
.tab:hover{ background:rgba(255,255,255,.7); }
.tab .dot{ width:10px; height:10px; border-radius:50%; background:var(--acc); box-shadow:0 0 0 3px #fff; }
.tab[aria-selected="true"]{ background:var(--navy); color:#fff; box-shadow:var(--shadow-sm); }
.tab[aria-selected="true"] .dot{ box-shadow:0 0 0 3px rgba(255,255,255,.35); }

.panels{ display:grid; gap:28px; }
.panel{
  display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr); gap:40px; align-items:start;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:36px; box-shadow:var(--shadow-sm);
  border-top:5px solid var(--acc);
  scroll-margin-top:calc(var(--header-h) + 16px);
}
.panel__eyebrow{ display:inline-flex; align-items:center; gap:8px; font-weight:800; font-size:14.5px; color:var(--acc-ink); margin-bottom:8px; }
.panel__eyebrow .i{ width:18px; height:18px; }
.panel__title{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; font-size:clamp(26px,3vw,34px); line-height:1.15; font-weight:800; color:var(--navy); }
.panel__title .latin{ font-weight:800; }
.panel__title .gloss{ font-size:18px; }
.panel__title:focus-visible{ outline-offset:6px; }
.panel__lead{ margin-top:12px; font-size:17.5px; color:var(--muted); }
html[lang="fr"] .panel__lead{ font-size:17px; }

.factgrid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:24px; }
.factgrid > div{ display:flex; gap:12px; align-items:flex-start; padding:14px; border-radius:var(--radius); background:var(--bg-soft); border:1px solid var(--line); }
.factgrid .ic{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; flex-shrink:0; background:var(--acc-tint); color:var(--acc-ink); }
.factgrid .ic .i{ width:20px; height:20px; }
.factgrid dt{ font-size:13.5px; font-weight:800; color:var(--acc-ink); text-transform:uppercase; letter-spacing:.06em; }
html[lang="ar"] .factgrid dt{ text-transform:none; letter-spacing:0; font-size:15px; }
.factgrid dd{ margin-top:2px; font-weight:700; color:var(--ink); line-height:1.45; }

.panel__cols{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px; margin-top:28px; }
.panel h4{ display:flex; align-items:center; gap:10px; font-size:18px; font-weight:800; color:var(--navy); margin-bottom:12px; }
.panel h4 .i{ width:20px; height:20px; color:var(--acc-ink); }
.checklist{ display:flex; flex-direction:column; gap:10px; }
.checklist li{ display:flex; gap:10px; align-items:flex-start; line-height:1.5; }
.checklist .i{ width:20px; height:20px; margin-top:2px; color:var(--acc-ink); }

.panel__note{
  display:flex; gap:12px; align-items:flex-start; margin-top:26px; padding:16px 18px; border-radius:var(--radius);
  background:var(--green-tint); color:var(--green-ink); font-weight:600; line-height:1.6; border:1px solid #cfe8da;
}
.panel__note.is-info{ background:var(--navy-soft); color:var(--navy); border-color:#dbe5f5; }
.panel__note .i{ width:22px; height:22px; margin-top:2px; }
.panel__cta{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 22px; margin-top:28px; padding-top:24px; border-top:1px dashed var(--line); }
.panel__media{ position:sticky; top:calc(var(--header-h) + 24px); }
.panel__media figure{ border-radius:var(--radius); overflow:hidden; background:var(--acc-tint); }
.panel__media img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
.panel__media figcaption{ padding:10px 14px; font-size:14px; color:var(--muted); background:var(--bg-soft); }
.panel__others{ margin-top:18px; padding:16px; border-radius:var(--radius); border:1px solid var(--line); }
.panel__others p{ font-size:14.5px; font-weight:800; color:var(--muted); margin-bottom:8px; }
.panel__others ul{ display:flex; flex-direction:column; gap:4px; }
.panel__others a{ display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; padding:6px 10px; border-radius:10px; font-family:var(--font-lat); font-weight:700; color:var(--navy); }
.panel__others a:hover{ background:var(--navy-soft); }
.panel__others a .dot{ width:10px; height:10px; border-radius:50%; background:var(--acc); }
.panel__others a span:first-child{ display:inline-flex; align-items:center; gap:10px; }

/* ---------- Compétences ---------- */
.skills-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.skill{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px 22px; text-align:center;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.skill:hover{ border-color:var(--amber); box-shadow:var(--shadow-sm); }
.skill .ic{ width:58px; height:58px; margin:0 auto 16px; border-radius:16px; background:var(--navy-soft); color:var(--navy); display:grid; place-items:center; transition:background-color .2s; }
.skill:hover .ic{ background:var(--amber); }  /* icône navy sur ambre 6.36:1 */
.skill .ic .i{ width:28px; height:28px; }
.skill h3{ font-size:18.5px; font-weight:800; color:var(--navy); margin-bottom:6px; }
.skill p{ font-size:15.5px; color:var(--muted); line-height:1.65; }
.skills-foot{ margin-top:26px; text-align:center; color:var(--muted); font-weight:600; }

/* ---------- Pourquoi ---------- */
.why{ background:var(--navy); color:#fff; position:relative; overflow:hidden; }
.why::before{ content:""; position:absolute; width:560px; height:560px; border-radius:50%; background:radial-gradient(circle, rgba(245,166,35,.18), rgba(245,166,35,0) 65%); top:-240px; inset-inline-end:-200px; pointer-events:none; }
.why .sec-title{ color:#fff; }
.why .eyebrow{ color:var(--amber); }
.why .sec-sub{ color:rgba(255,255,255,.78); }
.stats{ position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:28px; }
.stat{ text-align:center; padding:22px 16px; border-radius:var(--radius); background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); }
.stat .n{ display:block; font-family:var(--font-lat); font-size:clamp(30px,4vw,42px); font-weight:800; color:var(--amber); line-height:1.1; }
.stat .l{ display:block; margin-top:6px; color:rgba(255,255,255,.85); font-weight:600; }
.values{ position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.value{ padding:28px 24px; border-radius:var(--radius); background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); }
.value .ic{ width:52px; height:52px; border-radius:14px; background:rgba(245,166,35,.16); color:var(--amber); display:grid; place-items:center; margin-bottom:16px; }
.value .ic .i{ width:26px; height:26px; }
.value h3{ font-size:19px; font-weight:800; margin-bottom:8px; }
.value p{ color:rgba(255,255,255,.78); line-height:1.65; }
.photo-strip{ position:relative; display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:34px; }
.photo-strip img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--radius-sm); background:rgba(255,255,255,.08); }
.photo-note{ position:relative; margin-top:12px; text-align:center; font-size:14.5px; color:rgba(255,255,255,.75); }

/* ---------- FAQ ---------- */
.faq-list{ max-width:800px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.faq-item{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); transition:border-color .2s, box-shadow .2s; }
.faq-item[open]{ border-color:var(--amber); box-shadow:var(--shadow-sm); }
.faq-item summary{
  display:flex; align-items:center; gap:14px; min-height:60px; padding:16px 20px; cursor:pointer; list-style:none;
  font-size:17px; font-weight:800; color:var(--navy); border-radius:var(--radius);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-q{ flex:1; }
.faq-ic{ flex-shrink:0; width:28px; height:28px; border-radius:50%; background:var(--navy-soft); position:relative; transition:background-color .2s; }
.faq-ic::before,.faq-ic::after{ content:""; position:absolute; top:50%; left:50%; width:12px; height:2px; background:var(--navy); border-radius:2px; transform:translate(-50%,-50%); transition:transform .25s ease; }
.faq-ic::after{ transform:translate(-50%,-50%) rotate(90deg); }
.faq-item[open] .faq-ic{ background:var(--amber); }
.faq-item[open] .faq-ic::after{ transform:translate(-50%,-50%) rotate(0); }
.faq-a{ padding:0 20px 20px; color:var(--muted); line-height:1.7; }
.faq-a p + p{ margin-top:10px; }
.mini-table{ width:100%; margin-top:12px; border-collapse:collapse; font-size:15px; }
.mini-table th,.mini-table td{ padding:10px 12px; border:1px solid var(--line); text-align:start; vertical-align:top; }
.mini-table thead th{ background:var(--bg-soft); color:var(--navy); font-weight:800; }
.mini-table tbody th{ color:var(--navy); font-family:var(--font-lat); white-space:nowrap; }

/* ---------- Formulaire ---------- */
.interest{ background:linear-gradient(to bottom, var(--bg-soft), #fff 70%); }
.interest-grid{ display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,.85fr); gap:32px; align-items:start; }
.form-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:34px; box-shadow:var(--shadow); }
.form-title{ font-size:clamp(24px,3vw,32px); line-height:1.25; font-weight:800; color:var(--navy); text-wrap:balance; }
.form-title:focus-visible{ outline-offset:6px; }
.form-sub{ margin-top:8px; color:var(--muted); font-weight:600; }
.form-notes{ display:flex; flex-direction:column; gap:4px; margin-top:14px; padding:12px 14px; border-radius:var(--radius-sm); background:var(--bg-soft); font-size:14.5px; color:var(--muted); }
.form-notes p{ display:flex; gap:8px; align-items:flex-start; }
.form-notes .i{ width:18px; height:18px; margin-top:3px; color:var(--navy); }
.lead-form{ display:flex; flex-direction:column; gap:24px; margin-top:26px; }
.field{ display:flex; flex-direction:column; gap:8px; min-width:0; border:0; padding:0; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.label,.field legend{ font-weight:800; color:var(--ink); font-size:16px; line-height:1.4; padding:0; }
html[lang="ar"] .label,html[lang="ar"] .field legend{ font-size:17px; }
.field legend{ margin-bottom:8px; }
.req{ color:var(--error); margin-inline-start:3px; }
.opt{ color:var(--muted); font-weight:600; }
.hint{ font-size:14.5px; color:var(--muted); line-height:1.5; margin-top:-2px; }
.field legend + .hint{ margin-top:-6px; margin-bottom:4px; }
.input{
  width:100%; min-height:52px; padding:12px 16px; border:1.5px solid var(--line-strong); border-radius:var(--radius-sm);
  background:#fff; font-size:17px; line-height:1.4; transition:border-color .15s, box-shadow .15s, background-color .15s;
}
html[lang="fr"] .input{ font-size:16px; }
.input::placeholder{ color:#8a93a3; }
.input:hover{ border-color:var(--navy-2); }
.input:focus{ border-color:var(--navy); box-shadow:0 0 0 4px rgba(22,49,92,.14); }
.input:focus-visible{ outline:none; }
html[dir="rtl"] .input[dir="ltr"]{ text-align:right; }
.field.has-error .input{ border-color:var(--error); border-width:2px; background:var(--error-tint); }
.field-error{ display:flex; gap:8px; align-items:flex-start; color:var(--error); font-weight:700; font-size:15px; line-height:1.45; }
.field-error .i{ width:18px; height:18px; margin-top:2px; }
.suggest{ font-size:15px; color:var(--ink); }
.suggest button{ border:0; background:none; padding:0 2px; font-weight:800; color:var(--navy); text-decoration:underline; text-underline-offset:3px; min-height:32px; }

/* Choix « cartes » / segments / puces : l'input natif reste focusable, visuellement masqué */
.choice{ position:relative; display:block; }
.choice > input{ position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; z-index:1; }
.choice__ui{
  display:flex; align-items:center; gap:12px; height:100%; border:1.5px solid var(--line-strong); border-radius:var(--radius-sm);
  background:#fff; transition:border-color .15s, background-color .15s, box-shadow .15s;
}
.choice:hover .choice__ui{ border-color:var(--navy); }
.choice > input:focus-visible + .choice__ui{ outline:3px solid var(--focus); outline-offset:3px; }
.choice > input:checked + .choice__ui{ border-color:var(--navy); border-width:2.5px; background:var(--navy-soft); }
.field.has-error .choice__ui{ border-color:var(--error); }

.choice-cards{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.choice-card .choice__ui{ position:relative; flex-direction:column; align-items:flex-start; gap:6px; padding:14px 16px 14px; min-height:96px; }
.choice-card .choice__ic{ width:36px; height:36px; border-radius:10px; display:grid; place-items:center; background:var(--acc-tint); color:var(--acc-ink); }
.choice-card .choice__ic .i{ width:20px; height:20px; }
.choice-card .choice__txt{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.choice-card .choice__name{ font-family:var(--font-lat); font-weight:800; color:var(--navy); line-height:1.25; }
.choice-card .choice__meta{ font-size:13.5px; color:var(--muted); line-height:1.4; }
.choice__check{
  position:absolute; top:10px; inset-inline-end:10px; width:24px; height:24px; border-radius:50%;
  border:1.5px solid var(--line-strong); background:#fff; display:grid; place-items:center; color:transparent;
}
.choice__check .i{ width:15px; height:15px; stroke-width:3; }
.choice > input:checked + .choice__ui .choice__check{ background:var(--navy); border-color:var(--navy); color:#fff; }
.choice-card.flash .choice__ui{ animation:flash 1.2s ease; }
@keyframes flash{ 0%{ box-shadow:0 0 0 0 rgba(245,166,35,.9); } 100%{ box-shadow:0 0 0 12px rgba(245,166,35,0); } }

.segmented{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-width:460px; }
.segmented .choice__ui{ justify-content:center; min-height:50px; padding:10px 14px; font-weight:700; text-align:center; }
.segmented .choice__ui::before{
  content:""; width:18px; height:18px; border-radius:50%; border:2px solid var(--line-strong); flex-shrink:0; background:#fff;
}
.segmented .choice > input:checked + .choice__ui::before{ border-color:var(--navy); background:radial-gradient(var(--navy) 45%, #fff 50%); }

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chips .choice__ui{ justify-content:center; min-width:52px; min-height:46px; padding:8px 14px; border-radius:var(--pill); font-family:var(--font-lat); font-weight:700; }
.chips .choice > input:checked + .choice__ui{ background:var(--navy); color:#fff; }

.reveal-panel{ padding:16px; border-radius:var(--radius-sm); background:var(--bg-soft); border-inline-start:4px solid var(--amber); }

.consent .choice__ui{ align-items:flex-start; padding:14px 16px; font-weight:600; line-height:1.55; }
.consent .box{
  width:24px; height:24px; flex-shrink:0; margin-top:1px; border-radius:7px; border:2px solid var(--line-strong); background:#fff;
  display:grid; place-items:center; color:transparent;
}
.consent .box .i{ width:15px; height:15px; stroke-width:3; }
.consent .choice > input:checked + .choice__ui{ background:#fff; border-width:1.5px; }
.consent .choice > input:checked + .choice__ui .box{ background:var(--navy); border-color:var(--navy); color:#fff; }

.hp-field{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

.form-actions{ display:flex; flex-direction:column; gap:12px; }
.btn-submit{ min-height:56px; font-size:17px; }
.btn-busy{ display:inline-flex; align-items:center; gap:10px; }
.spinner{ width:20px; height:20px; border-radius:50%; border:3px solid rgba(22,49,92,.25); border-top-color:var(--navy); animation:spin .8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.privacy-short{ font-size:14px; color:var(--muted); line-height:1.55; }
.privacy-short a{ font-weight:700; color:var(--navy); text-decoration:underline; text-underline-offset:3px; }

.error-summary{
  padding:18px 20px; border-radius:var(--radius-sm); background:var(--error-tint); border:2px solid var(--error);
  color:var(--ink); scroll-margin-top:calc(var(--header-h) + 16px);
}
.error-summary h3{ display:flex; gap:10px; align-items:center; font-size:17px; font-weight:800; color:var(--error); margin-bottom:8px; }
.error-summary ul{ display:flex; flex-direction:column; gap:4px; padding-inline-start:30px; list-style:disc; }
.error-summary a{ color:var(--error); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.alert{
  padding:18px 20px; border-radius:var(--radius-sm); background:#fff7e8; border:2px solid var(--amber-ink); color:var(--ink);
}
.alert p{ font-weight:700; }
.alert-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.alert-actions .btn{ min-height:46px; padding:10px 18px; font-size:15px; }

.success{ text-align:center; padding:12px 4px; }
.success__ic{ width:72px; height:72px; margin:0 auto 18px; border-radius:50%; background:var(--green-tint); color:var(--green-ink); display:grid; place-items:center; }
.success__ic .i{ width:38px; height:38px; stroke-width:2.5; }
.success h2{ font-size:clamp(23px,3vw,30px); line-height:1.3; font-weight:800; color:var(--navy); }
.success h2:focus-visible{ outline-offset:6px; }
.success p{ margin-top:12px; color:var(--muted); font-size:17px; }
.success .ref{ display:inline-block; margin-top:16px; padding:8px 16px; border-radius:var(--pill); background:var(--navy-soft); color:var(--navy); font-weight:700; }
.success .help{ font-size:15px; }
.success .help a{ color:var(--navy); font-weight:700; text-decoration:underline; }
.success__actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:24px; }

/* Encadré latéral */
.aside{ display:flex; flex-direction:column; gap:18px; position:sticky; top:calc(var(--header-h) + 24px); }
.aside-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:26px; }
.aside-card h3{ font-size:19px; font-weight:800; color:var(--navy); margin-bottom:16px; }
.steps{ display:flex; flex-direction:column; gap:16px; counter-reset:step; }
.steps li{ display:flex; gap:14px; align-items:flex-start; line-height:1.55; }
.steps li::before{
  counter-increment:step; content:counter(step); flex-shrink:0; width:32px; height:32px; border-radius:50%;
  background:var(--navy); color:#fff; display:grid; place-items:center; font-family:var(--font-lat); font-weight:800; font-size:15px;
}
.contact-lines{ display:flex; flex-direction:column; gap:10px; }
.contact-lines .btn{ justify-content:flex-start; }
.aside-card.dark{ background:var(--navy); color:#fff; border-color:var(--navy); }
.aside-card.dark h3{ color:#fff; }
.aside-card.dark p{ color:rgba(255,255,255,.8); margin-bottom:14px; }

/* ---------- Pied de page ---------- */
.site-footer{ background:var(--navy-900); color:rgba(255,255,255,.8); padding:56px 0 28px; }
.foot-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:34px; }
.site-footer .brand{ color:#fff; }
.site-footer .brand-by{ color:rgba(255,255,255,.7); }
.foot-tag{ margin-top:14px; max-width:340px; line-height:1.7; }
.foot-title{ font-size:16px; font-weight:800; color:#fff; margin-bottom:14px; }
.foot-links{ display:flex; flex-direction:column; gap:2px; }
.foot-links a{ display:inline-flex; align-items:center; gap:10px; min-height:40px; transition:color .2s; }
.foot-links a:hover{ color:var(--amber); }
.foot-links .i{ width:18px; height:18px; }
.socials{ display:flex; gap:10px; margin-top:14px; }
.social{ width:48px; height:48px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); color:#fff; transition:background-color .2s, transform .2s; }
.social:hover{ background:rgba(255,255,255,.18); transform:translateY(-2px); }
.social .i{ width:22px; height:22px; }
.privacy{ margin-top:36px; border-top:1px solid rgba(255,255,255,.12); padding-top:22px; }
.privacy summary{ display:inline-flex; align-items:center; gap:10px; min-height:44px; cursor:pointer; font-weight:800; color:#fff; list-style:none; }
.privacy summary::-webkit-details-marker{ display:none; }
.privacy summary .i{ width:18px; height:18px; transition:transform .2s; }
.privacy[open] summary .i-chev{ transform:rotate(180deg); }
.privacy-body{ margin-top:10px; max-width:860px; font-size:14.5px; line-height:1.75; }
.privacy-body p + p{ margin-top:8px; }
.privacy-body strong{ color:#fff; }
.privacy-body a{ color:#fff; text-decoration:underline; }
.foot-bottom{ margin-top:26px; padding-top:20px; border-top:1px solid rgba(255,255,255,.12); display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; font-size:14px; }

/* ---------- Barre d'action mobile ---------- */
.mobile-cta{
  position:fixed; inset-inline:0; bottom:0; z-index:90; display:none; gap:10px; align-items:center;
  padding:10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.96); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border-top:1px solid var(--line); box-shadow:0 -10px 30px -18px rgba(22,49,92,.45);
  transform:translateY(110%); visibility:hidden; transition:transform .25s var(--ease), visibility 0s linear .25s;
}
.mobile-cta.is-visible{ transform:none; visibility:visible; transition:transform .25s var(--ease); }
.mobile-cta .btn-primary{ flex:1; min-height:50px; }
.mobile-cta .btn-wa{ width:50px; min-height:50px; padding:0; flex-shrink:0; }
.mobile-cta .prog-name{ font-family:var(--font-lat); }

/* ---------- Responsive ---------- */
@media (max-width:1060px){
  .panel{ grid-template-columns:1fr; gap:26px; }
  .panel__media{ position:static; order:-1; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:16px; align-items:start; }
  .panel__others{ margin-top:0; }
  .interest-grid{ grid-template-columns:1fr; }
  .aside{ position:static; display:grid; grid-template-columns:1fr 1fr; }
}
@media (max-width:900px){
  .nav-links{
    display:none; position:absolute; top:100%; inset-inline:0; flex-direction:column; align-items:stretch; gap:2px;
    padding:10px var(--gutter) 16px; background:#fff; border-bottom:1px solid var(--line); box-shadow:var(--shadow);
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ min-height:48px; padding:0 14px; border-radius:12px; font-size:16.5px; }
  .nav-links a[aria-current="true"]{ box-shadow:none; background:var(--navy-soft); }
  .nav-right{ margin-inline-start:auto; }
  .burger{ display:inline-flex; }
  .nav-cta{ display:none; }
  .mobile-cta{ display:flex; }
  body{ padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
  .prog-grid{ grid-template-columns:1fr; max-width:640px; margin-inline:auto; gap:14px; }
  .skills-grid,.values{ grid-template-columns:1fr 1fr; }
  .photo-strip{ grid-template-columns:1fr 1fr; }
  .foot-grid{ grid-template-columns:1fr 1fr; }
  .foot-grid > :first-child{ grid-column:1 / -1; }
}
@media (max-width:900px) and (min-width:641px){
  .prog-card{ display:grid; grid-template-columns:220px minmax(0,1fr); }
  .prog-card__media{ aspect-ratio:auto; height:100%; min-height:200px; }
}
@media (max-width:640px){
  body{ font-size:16.5px; }
  .section{ padding:60px 0; }
  .sec-head{ margin-bottom:32px; }
  .brand-mark{ width:34px; height:34px; }
  .brand-name{ font-size:17px; }
  .brand-by{ font-size:11.5px; }
  .hero-bg{ padding:34px 0 108px; }
  .hero-kicker{ font-size:13.5px; margin-bottom:14px; }
  .hero-lead{ font-size:16px; }
  .prog-grid{ margin-top:-84px; gap:12px; }
  /* Cartes compactes : les 3 programmes tiennent dans le premier écran */
  .prog-card{ display:grid; grid-template-columns:104px minmax(0,1fr); border-radius:var(--radius); }
  .prog-card::before{ inset:0 auto 0 0; width:5px; height:auto; }
  html[dir="rtl"] .prog-card::before{ inset:0 0 0 auto; }
  .prog-card__media{ aspect-ratio:auto; height:100%; min-height:124px; }
  .prog-card__badge{ display:none; }
  .prog-card__body{ gap:6px; padding:12px 14px 12px; }
  .prog-card__title{ font-size:19px; gap:2px 8px; }
  .gloss{ font-size:14.5px; }
  .prog-card__desc{ font-size:14.5px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .facts{ gap:6px; }
  .fact{ padding:3px 9px; font-size:12.5px; }
  .fact .i{ width:14px; height:14px; }
  .prog-card__more{ font-size:14px; padding-top:0; }
  .trust-list{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
  .trust-list li{ font-size:14.5px; }
  .details{ padding-top:52px; }
  .tabs{ display:grid; width:100%; }
  .tab{ padding:8px 10px; font-size:14px; gap:6px; white-space:normal; line-height:1.2; }
  .panel{ padding:22px 18px; }
  .panel__media{ grid-template-columns:1fr; }
  .panel__others{ display:none; }
  .factgrid,.panel__cols{ grid-template-columns:1fr; }
  .factgrid{ gap:10px; }
  .panel__cta .btn-primary{ width:100%; }
  .skills-grid{ grid-template-columns:1fr 1fr; gap:12px; }
  .skill{ padding:18px 12px; }
  .skill .ic{ width:48px; height:48px; margin-bottom:12px; }
  .skill h3{ font-size:16px; }
  .skill p{ font-size:14px; }
  .stats{ grid-template-columns:repeat(3,1fr); gap:8px; }
  .stat{ padding:16px 8px; }
  .stat .l{ font-size:13.5px; }
  .values{ grid-template-columns:1fr; }
  .form-card{ padding:22px 16px; border-radius:var(--radius); }
  .field-row{ grid-template-columns:1fr; }
  .choice-cards{ grid-template-columns:1fr; }
  .choice-card .choice__ui{ flex-direction:row; align-items:center; min-height:64px; padding:12px 44px 12px 14px; }
  html[dir="rtl"] .choice-card .choice__ui{ padding:12px 14px 12px 44px; }
  .choice-card .choice__check{ top:50%; transform:translateY(-50%); }
  .choice-card .choice__txt{ display:flex; flex-direction:column; }
  .aside{ grid-template-columns:1fr; }
  .foot-grid{ grid-template-columns:1fr; }
  .mini-table{ font-size:14px; }
  .mini-table th,.mini-table td{ padding:8px; }
}
@media (max-width:380px){
  .brand-by{ display:none; }
  .lang-toggle button{ min-width:40px; padding:0 8px; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation:none !important; transition:none !important; }
  .js .reveal{ opacity:1; transform:none; }
}
@media print{
  .site-header,.mobile-cta,.tabs-bar,.form-card,.aside{ display:none !important; }
  .panel[hidden]{ display:grid !important; }
}
