/* ============================================================
   SITAC Academy — Design System
   ============================================================ */

:root {
  /* Brand */
  --blue-ink: #14315E;      /* bleu profond du logo */
  --blue-700: #16386B;      /* bleu principal */
  --blue-600: #1E4E9C;
  --blue-500: #2E6BE6;      /* accent lumineux */
  --blue-400: #5B8DEF;
  --blue-200: #BFD4F5;
  --blue-100: #E4EDFB;
  --blue-50:  #F1F6FE;

  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --ink: #0F1B2D;
  --text: #33404F;
  --muted: #6B7787;
  --line: #E7EAEF;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow: 0 8px 24px rgba(20, 49, 94, .08);
  --shadow-lg: 0 24px 60px rgba(20, 49, 94, .14);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);

  --container: 1200px;
  --nav-h: 74px;
}

/* ----------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Le body seul ne suffit pas : sans cette ligne, un element qui depasse
     rend toute la page glissable lateralement sur mobile. */
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}

::selection { background: var(--blue-500); color: #fff; }

/* ----------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 110px 0; position: relative; }
.section--tight { padding: 72px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 18px;
}
.section-head p { font-size: 18px; color: var(--muted); }

.text-blue { color: var(--blue-600); }

/* Gradient text */
.grad {
  background: linear-gradient(100deg, var(--blue-700), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 100px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  white-space: nowrap;
}
.btn svg { transition: transform .22s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 56, 107, .28);
}
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(22, 56, 107, .34); }

.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-200);
}
.btn-ghost:hover { border-color: var(--blue-500); background: var(--blue-50); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ----------------------------------------------------------- Navbar */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(250, 250, 250, .92);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 24px rgba(16, 24, 40, .05);
}

/* Le flou coute cher : reserve aux appareils a pointeur fin (souris),
   ou le processeur graphique n'est pas le facteur limitant. */
@media (pointer: fine) and (min-width: 900px) {
  .nav {
    background: rgba(250, 250, 250, .72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
  }
  .nav.scrolled { background: rgba(255, 255, 255, .82); }
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }

.nav__left { display: flex; align-items: center; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--blue-700);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(22, 56, 107, .28);
  flex: none;
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .02em;
  color: var(--blue-ink);
}
.brand__tag { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 9px 16px;
  border-radius: 100px;
  transition: color .2s ease, background .2s ease;
}
.nav__links a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav__links a.active { color: var(--blue-700); font-weight: 600; }
/* Le bouton S'inscrire dans la liste ne sert qu'au menu mobile — masqué sur desktop */
.nav__links .btn { display: none; }

/* .nav__links a (0,1,1) est plus spécifique que .btn-primary (0,1,0) et lui
   imposait la couleur de texte sombre : dans le menu mobile, le bouton
   s'affichait en gris foncé sur bleu foncé, donc illisible. */
.nav__links a.btn-primary,
.nav__links a.btn-primary:hover { color: #fff; }
.nav__links a.btn-primary:hover { background: var(--blue-600); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .25s; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------- Sélecteur de langue */
.lang-switch { position: relative; flex: none; }
.lang-switch__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.lang-switch__btn:hover { border-color: var(--blue-200); background: var(--blue-50); }
.lang-switch__flag { display: inline-flex; line-height: 0; }
.lang-switch__flag svg,
.lang-switch__menu li svg {
  display: block;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(15, 27, 45, .12);
}
.lang-switch__chevron { transition: transform .2s ease; color: var(--muted); }
.lang-switch.open .lang-switch__chevron { transform: rotate(180deg); }

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 200;
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background .15s ease;
}
.lang-switch__menu li:hover { background: var(--blue-50); }
.lang-switch__menu li[aria-selected="true"] { color: var(--blue-700); font-weight: 600; background: var(--blue-50); }

@media (max-width: 480px) {
  .lang-switch__btn { padding: 7px 9px; }
  .lang-switch__code { display: none; }
}

/* ----------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 90px);
  padding-bottom: 120px;
  overflow: hidden;
}
.hero::after { /* soft radial glow */
  content: "";
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(46,107,230,.12), transparent 62%);
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 780px; }

.hero h1 {
  font-size: clamp(40px, 6.4vw, 74px);
  line-height: 1.04;
  margin-bottom: 26px;
}
.hero__sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 16px 7px 8px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.badge-pill b { color: var(--blue-700); }
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.16); }

/* Stats strip */
.stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 84px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--blue-700);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat__label { font-size: 14px; color: var(--muted); margin-top: 8px; }
.stats > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }

/* ----------------------------------------------------------- Cards / grids */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }

.icon-box {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-100);
  color: var(--blue-600);
  margin-bottom: 20px;
}
.icon-box svg { width: 26px; height: 26px; }

.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Value cards (a-propos) */
.value-emoji { font-size: 30px; margin-bottom: 16px; display: block; }

/* ----------------------------------------------------------- Formation cards */
.formation-cat {
  display: flex; align-items: baseline; gap: 14px;
  margin: 0 0 30px;
}
.formation-cat__num {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--blue-400);
}
.formation-cat h3 { font-size: 24px; }
.formation-cat span.count { color: var(--muted); font-size: 15px; font-family: var(--font-sans); font-weight: 400; }

.formation {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.formation::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-500));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.formation:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.formation:hover::before { transform: scaleX(1); }

/* Cartes à accordéon : hauteurs égales sans étirement.

   La grille étire ses cellules à la hauteur de la plus haute. Ouvrir un
   programme allongeait donc la voisine restée fermée, dont le .formation__desc
   (flex-grow: 1) absorbait la différence — un grand vide en plein milieu.
   Ne relâcher l'étirement qu'à l'ouverture réglait le vide, mais faisait
   « retomber » les voisines à leur hauteur réelle : un saut au clic.

   On supprime donc l'étirement en permanence, et on égalise les hauteurs par
   le contenu : la description occupe au moins 4 lignes, ce qui suffit à tous
   les libellés actuels, en français comme en anglais. Les cartes sont alors
   naturellement de même hauteur, et ouvrir l'une ne déplace plus les autres. */
.grid:has(.formation__program) { align-items: start; }
.formation:has(.formation__program) .formation__desc { min-height: 6.6em; }

.formation__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
  background: var(--blue-100); color: var(--blue-600);
}
.tag--cert { background: #E7F7EE; color: #1a9d55; }
.formation h4 { font-size: 20px; margin-bottom: 10px; color: var(--ink); font-family: var(--font-display); }
.formation__desc { color: var(--muted); font-size: 15px; margin-bottom: 20px; flex-grow: 1; }

.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 18px 0; border-top: 1px solid var(--line); margin-bottom: 18px; }
.meta div { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text); }
.meta svg { width: 15px; height: 15px; color: var(--blue-400); flex: none; }
.meta b { color: var(--muted); font-weight: 500; }

.formation__foot { display: flex; align-items: center; justify-content: space-between; }
.formation__foot .certs { font-size: 13px; color: var(--muted); }
.formation__foot a { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--blue-700); display: inline-flex; align-items: center; gap: 6px; }
.formation__foot a:hover { color: var(--blue-500); }

.formation__program { margin-bottom: 18px; }
.formation__program summary {
  cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; color: var(--blue-700);
}
.formation__program summary::-webkit-details-marker { display: none; }
.formation__program summary::before { content: "+ "; }
.formation__program[open] summary::before { content: "– "; }
.formation__program ol { margin: 14px 0 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 8px; }
.formation__program li { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.formation__program li b { color: var(--text); font-weight: 600; }
.formation__program .formation__prereq { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.formation__program .formation__prereq b { color: var(--text); font-weight: 600; }

/* ----------------------------------------------------------- Split / about */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 22px; }
.split p { color: var(--text); margin-bottom: 18px; font-size: 16.5px; }

.quote-block {
  border-inline-start: 3px solid var(--blue-500);
  padding-block: 6px;
  padding-inline: 24px 0;
  margin: 28px 0;
}
.quote-block p { font-family: var(--font-display); font-size: 20px; color: var(--ink); font-style: italic; margin: 0; line-height: 1.4; }

.founder {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.founder__avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
}
.founder__name { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 17px; }
.founder__role { font-size: 14px; color: var(--muted); }

/* Visual panel with network motif */
.visual-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 120% at 80% 10%, rgba(46,107,230,.35), transparent 55%),
    linear-gradient(160deg, var(--blue-700), var(--blue-ink));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.visual-panel__logo { position: relative; z-index: 2; width: 44%; opacity: .95; }

/* ----------------------------------------------------------- CTA band */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(46,107,230,.4), transparent 50%),
    linear-gradient(150deg, var(--blue-700), var(--blue-ink));
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 18px; max-width: 540px; margin: 0 auto 32px; }
.cta-band .btn-light { background: #fff; }

/* ----------------------------------------------------------- Testimonials */
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.testimonial .stars { color: #F5B72E; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial p { color: var(--text); font-size: 15.5px; margin-bottom: 22px; }
.testimonial__who { display: flex; align-items: center; gap: 12px; }
.testimonial__who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.testimonial__who b { display: block; color: var(--ink); font-size: 15px; font-family: var(--font-display); }
.testimonial__who span { font-size: 13px; color: var(--muted); }

/* ----------------------------------------------------------- Logos / certs */
.cert-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cert-chip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 100px; padding: 12px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--blue-ink);
  box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------- Footer */
.footer { background: var(--blue-ink); color: rgba(255,255,255,.7); padding: 72px 0 32px; margin-top: 40px; }
.footer a { color: rgba(255,255,255,.7); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: rgba(255,255,255,.55); }
.footer__about { max-width: 320px; margin-top: 18px; font-size: 14.5px; line-height: 1.7; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; margin-bottom: 18px; text-transform: uppercase; }
.footer li { margin-bottom: 11px; font-size: 14.5px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13.5px; flex-wrap: wrap; gap: 12px; }

/* ----------------------------------------------------------- Page header (interior) */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 70px;
  overflow: hidden;
}
/* Lueur diffuse, en CSS pur : peinte une seule fois, cout nul au defilement */
.page-hero::after {
  content: "";
  position: absolute;
  top: -55%; left: 50%;
  transform: translateX(-50%);
  width: 820px; height: 820px;
  background: radial-gradient(circle, rgba(46,107,230,.11), transparent 62%);
  z-index: 0;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 60px); margin-bottom: 20px; max-width: 780px; }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 620px; }

/* ----------------------------------------------------------- Form */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  letter-spacing: .01em;
}
.field label .req { color: var(--blue-500); margin-inline-start: 2px; }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7787' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px var(--blue-100);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa4b1; }
.field .error-msg { color: #dc2626; font-size: 12.5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.1); }
.field.invalid .error-msg { display: block; }

.form-card .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 15px;
  /* Le .btn est en nowrap : sur un ecran etroit, ce libelle depassait la carte
     et rendait la page glissable horizontalement. Ici, il peut se replier. */
  white-space: normal;
  text-align: center;
}
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }
.form-note a { color: var(--blue-600); font-weight: 500; }

/* Champ piège anti-robot : retiré du flux sans display:none, que certains bots détectent */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------- Écriture de droite à gauche

   L'essentiel est gratuit : dir="rtl" retourne flex, grid et toutes les
   propriétés logiques (inset-inline-start, border-inline-end…), qui sont
   utilisées partout ailleurs dans ce fichier. Ne restent ici que les cas
   qu'aucune propriété logique ne couvre. */

/* La police du site ne dessine pas l'arabe : Noto Sans Arabic prend le relais
   pour ces caractères, Inter reste en tête pour les chiffres et le latin. */
[lang="ar"], [dir="rtl"] {
  font-family: "Inter", "Noto Sans Arabic", var(--font-sans);
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .lang-switch__code {
  font-family: "Space Grotesk", "Noto Sans Arabic", var(--font-display);
}

/* Chevron du menu déroulant : dessiné en image de fond, donc positionné en
   coordonnées physiques que `dir` ne retourne pas. */
[dir="rtl"] .field select {
  background-position: left 14px center;
  padding-inline: 40px 14px;
}

/* Le décalage de l'icône au survol doit suivre le sens de lecture */
[dir="rtl"] .btn:hover svg { transform: translateX(-3px); }

/* Un numéro s'écrit « +213 661… » dans toutes les langues : l'indicatif
   d'abord, puis le numéro, de gauche à droite. Sans cette règle, le sens RTL
   renvoie le bouton d'indicatif à DROITE du numéro et la lecture s'inverse.
   C'est tout le champ qu'il faut forcer, pas seulement la zone de saisie. */
[dir="rtl"] .tel { direction: ltr; }

/* La liste des pays, elle, se lit bien en arabe : nom à droite, indicatif à
   gauche. Elle est repassée en RTL, ce que sa position (left:0 ; right:0)
   permet sans rien déplacer. */
[dir="rtl"] .tel__panel { direction: rtl; }

/* …mais l'indicatif de chaque ligne redevient LTR : dans un contexte arabe,
   l'algorithme bidirectionnel place le « + » après les chiffres et affiche
   « 213+ ». */
[dir="rtl"] .tel__list span { direction: ltr; }

/* L'adresse e-mail reste lue de gauche à droite, alignée à droite pour suivre
   le reste du formulaire. */
[dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }

/* Bouton grisé tant que les champs obligatoires ne sont pas remplis */
.form-card .btn-primary:disabled {
  background: #c7cdd6;
  border-color: #c7cdd6;
  color: #f7f8fa;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.form-card .btn-primary:disabled svg { opacity: .6; }

/* Pendant l'envoi : une roue qui tourne remplace la fleche */
.btn-spinner { display: none; }
.form-card form.sending .btn-primary { cursor: progress; }
.form-card form.sending .btn-primary svg { display: none; }
.form-card form.sending .btn-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tourner .7s linear infinite;
}
@keyframes tourner { to { transform: rotate(360deg); } }

/* Erreur d'envoi (réseau, service indisponible) */
.form-error-global {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(220,38,38,.35);
  border-radius: 10px;
  background: rgba(220,38,38,.06);
  color: #b91c1c;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: #E7F7EE; color: #1a9d55; display: grid; place-items: center;
}
.form-success h3 { font-size: 22px; margin-bottom: 10px; }
.form-success p { color: var(--muted); }

/* Form aside (info column) */
.form-aside .eyebrow { margin-bottom: 20px; }
.form-aside h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 18px; }
.form-aside > p { color: var(--muted); font-size: 17px; margin-bottom: 30px; }
.form-benefits { display: flex; flex-direction: column; gap: 18px; margin-bottom: 34px; }
.form-benefit { display: flex; gap: 14px; align-items: flex-start; }
.form-benefit .b-ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center;
}
.form-benefit .b-ico svg { width: 20px; height: 20px; }
.form-benefit b { font-family: var(--font-display); color: var(--ink); font-size: 15.5px; display: block; margin-bottom: 2px; }
.form-benefit span { font-size: 14px; color: var(--muted); }
.form-contact-line { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); margin-top: 10px; }
.form-contact-line svg { width: 18px; height: 18px; color: var(--blue-500); }

/* ----------------------------------------------------------- Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: .25s;
  }
  .nav.open .nav__links { display: flex; transform: none; opacity: 1; pointer-events: auto; }
  .nav.open .nav__links .btn { display: inline-flex; justify-content: center; margin-top: 6px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stats > div + div { border-inline-start: none; padding-inline-start: 0; }
  .stats > div:nth-child(even) { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
  .section { padding: 76px 0; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .cta-band { padding: 52px 26px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .brand__tag { display: none; }
}

/* ============================================================
   Écran d'ouverture
   Un panneau bleu profond porte le logo, qui se « connecte »
   branche par branche. Puis le panneau remonte et découvre la page.
   ============================================================ */
html.chargement, html.chargement body { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  /* Bleu de marque : c'est le contraste avec la page claire qui rend
     le glissement visible. Un panneau de la couleur du fond ne se voit pas. */
  background: linear-gradient(155deg, #16386B 0%, #14315E 55%, #0F2547 100%);
  will-change: transform;
  /* Repli si le JavaScript ne s'exécute pas : le panneau remonte seul */
  animation: preloader-rideau .9s cubic-bezier(.76, 0, .24, 1) 3s forwards;
}

/* Halo diffus derrière le logo */
.preloader::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,141,239,.28), transparent 62%);
  pointer-events: none;
}

/* Sortie pilotée par le JavaScript */
.preloader.parti {
  animation: none;
  transform: translateY(-100%);
  transition: transform .9s cubic-bezier(.76, 0, .24, 1);
}
.preloader.parti .preloader__mark {
  opacity: 0;
  transform: translateY(-26px);
  transition: opacity .35s ease, transform .6s cubic-bezier(.76, 0, .24, 1);
}
@keyframes preloader-rideau {
  to { transform: translateY(-100%); }
}

.preloader__mark {
  position: relative;
  animation: preloader-mark .8s cubic-bezier(.2, .9, .25, 1) both;
}
@keyframes preloader-mark {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: scale(1); }
}
.preloader__mark svg { width: 128px; height: 128px; overflow: visible; }

/* Le point central pulse doucement */
.preloader__mark .noyau {
  transform-origin: 12px 12px;
  animation: preloader-noyau 1.9s ease-in-out .3s infinite;
}
@keyframes preloader-noyau {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.16); }
}

/* Les branches se tracent depuis le centre */
.preloader__mark .branches line {
  stroke-dasharray: 10;
  stroke-dashoffset: 10;
  animation: preloader-trait .5s ease forwards;
}
@keyframes preloader-trait { to { stroke-dashoffset: 0; } }

/* Les satellites s'allument au bout de leur branche */
.preloader__mark .satellites circle {
  opacity: 0;
  animation: preloader-satellite .35s ease forwards;
}
@keyframes preloader-satellite {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}

.preloader__mark .branches line:nth-of-type(1) { animation-delay: .30s; }
.preloader__mark .branches line:nth-of-type(2) { animation-delay: .40s; }
.preloader__mark .branches line:nth-of-type(3) { animation-delay: .50s; }
.preloader__mark .branches line:nth-of-type(4) { animation-delay: .60s; }
.preloader__mark .branches line:nth-of-type(5) { animation-delay: .70s; }

.preloader__mark .satellites circle:nth-of-type(1) { animation-delay: .66s; transform-origin: 12px 4px; }
.preloader__mark .satellites circle:nth-of-type(2) { animation-delay: .76s; transform-origin: 19px 8px; }
.preloader__mark .satellites circle:nth-of-type(3) { animation-delay: .86s; transform-origin: 19px 16px; }
.preloader__mark .satellites circle:nth-of-type(4) { animation-delay: .96s; transform-origin: 5px 8px; }
.preloader__mark .satellites circle:nth-of-type(5) { animation-delay: 1.06s; transform-origin: 5px 16px; }

/* Mouvement réduit demandé : on affiche le logo, sans l'animer */
@media (prefers-reduced-motion: reduce) {
  .preloader { animation-delay: .4s; }
  .preloader__mark,
  .preloader__mark .noyau,
  .preloader__mark .branches line,
  .preloader__mark .satellites circle { animation: none; opacity: 1; stroke-dashoffset: 0; }
}

/* ============================================================
   Champ téléphone : indicatif sélectionnable + numéro
   L'ensemble porte la bordure et le focus d'un champ unique ;
   le bouton et la saisie sont transparents à l'intérieur.
   ============================================================ */
.tel {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.tel:focus-within {
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px var(--blue-100);
}
.field.invalid .tel { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.1); }

/* Le bouton d'indicatif */
.tel__code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  transition: background .2s ease;
  flex: none;
}
.tel__code:hover { background: var(--blue-50); }
.tel__code svg { width: 15px; height: 15px; color: var(--muted); transition: transform .2s ease; }
.tel__code[aria-expanded="true"] svg { transform: rotate(180deg); }
.tel__dial { font-variant-numeric: tabular-nums; }

/* Le séparateur : posé sur le bord du bouton, il suit sa largeur */
.tel__code { border-inline-end: 1px solid var(--line); }
.tel:focus-within .tel__code { border-inline-end-color: var(--blue-200); }

/* La saisie du numéro : sans bordure, elle vit dans l'ensemble */
.tel input[type="tel"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.tel input[type="tel"]:focus { outline: none; }

/* Le panneau de recherche */
.tel__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.tel__panel[hidden] { display: none; }

.tel__search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.tel__search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.tel__search input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 0;
}
.tel__search input:focus { outline: none; }

.tel__list {
  max-height: 246px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0; padding: 6px;
}
.tel__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--text);
  cursor: pointer;
}
.tel__list li:hover,
.tel__list li[aria-selected="true"] { background: var(--blue-50); color: var(--blue-700); }
.tel__list li b { font-weight: 500; }
.tel__list li span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  flex: none;
}
.tel__list li:hover span { color: var(--blue-600); }

.tel__vide { padding: 18px 14px; text-align: center; font-size: 14px; color: var(--muted); }
.tel__vide[hidden] { display: none; }
