/* =========================================================================
   Nomadic Evasion — plain CSS, no framework, no build step.
   Colours are taken from the design file (navy #0C2647 / orange #E8853A).
   ========================================================================= */

:root {
  --navy:        #0C2647;
  --navy-deep:   #12263F;
  --navy-art:    #123A63;
  --blue:        #1C5FA8;
  --blue-pale:   #EAF2FB;
  --blue-soft:   #8FB4DC;
  --blue-text:   #C3D5EA;
  --blue-tag:    #D3E2F2;

  --orange:      #E8853A;   /* accent de marque, sur fond sombre */
  --orange-dark: #D9752C;
  --orange-lit:  #F0913F;
  /* Le texte blanc sur #E8853A ne donne que 2,68:1 : insuffisant.
     Les boutons utilisent une déclinaison plus sombre de la même teinte,
     qui passe à 4,62:1 tout en restant reconnaissable. */
  --orange-btn:  #B85B18;
  --orange-btn-h:#A44E11;
  --star:        #A8560F;

  --grey:        #55657A;
  --grey-quote:  #4A5B71;

  --line:        #E8EEF6;
  --line-soft:   #EDF2F8;
  --line-strong: #D6E2F0;
  --line-faint:  #F1F5FA;

  --white:       #FFFFFF;
  --page:        #F3F7FC;
  --wa:          #15803D;   /* 5,02:1 avec du blanc */
  --wa-dark:     #10662F;

  --wrap:  1200px;
  --pad:   24px;
  --round: 14px;
}

/* ---------- reset ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* l'attribut hidden doit l'emporter : plusieurs composants redéfinissent
   display (.btn en inline-flex, .car-foot en flex…) et le masqueraient sinon */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy-deep);
  background: var(--page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* clipped rather than pushed off-canvas, so it can't widen the document */
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 18px -8px rgba(12,38,71,.5);
}

/* an image or video that must fill its box */
.media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { padding: 11px 20px; font-size: .84rem; }

.btn-orange { background: var(--orange-btn); color: var(--white); }
.btn-orange:hover { background: var(--orange-btn-h); color: var(--white); }

.btn-outline { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 13px; }

/* ---------- header ------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(18,38,63,.08);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-text { display: block; line-height: 1; }
.brand-name {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy-deep);
}
.brand-sub {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .42em;
  color: var(--orange-btn);
}

.nav-row {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.nav-row a {
  font-size: .84rem;
  font-weight: 500;
  color: var(--grey);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-row a:hover { color: var(--navy-deep); }
.nav-row a[aria-current="page"] {
  color: var(--navy-deep);
  border-bottom-color: var(--blue);
}

.header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy-deep);
  cursor: pointer;
}
.burger:hover { border-color: var(--blue); }

.drawer { border-top: 1px solid var(--line-soft); background: var(--white); }
.drawer[hidden] { display: none; }
.drawer-inner { display: grid; gap: 2px; padding-block: 8px 14px; }
.drawer-inner a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy-deep);
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-faint);
}
.drawer-contact { font-weight: 600; color: var(--blue); border-bottom: 0; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy-deep);
  white-space: nowrap;
  transition: border-color .15s, background-color .15s, color .15s;
}
.lang-switch:hover { border-color: var(--blue); background: var(--blue-pale); color: var(--blue); }
.lang-switch svg { color: var(--grey); }
.lang-switch:hover svg { color: var(--blue); }

@media (max-width: 380px) {
  .lang-switch span { display: none; }
  .lang-switch { padding: 9px; }
}

/* ---------- hero : vidéo plein cadre derrière le texte ------------------ */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -1; }

/* le flou est léger : on doit encore reconnaître des étudiants.
   L'échelle compense le bord adouci par le filtre. */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) saturate(1.05);
  transform: scale(1.08);
}

/* dégradé + voile : le texte reste lisible quel que soit le plan */
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12,38,71,.92) 0%, rgba(12,38,71,.74) 52%, rgba(12,38,71,.55) 100%),
    linear-gradient(to top, rgba(12,38,71,.85) 0%, rgba(12,38,71,0) 45%);
}

.hero-inner {
  position: relative;
  padding-block: 76px 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 40px;
  align-items: center;
}

/* colonne droite : contacts et réseaux sur une plaque translucide */
.hero-side {
  padding: 22px 24px 24px;
  border-radius: 16px;
  background: rgba(9, 28, 54, .52);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.hero-side-title {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.hero-contacts + .hero-side-title { margin-top: 22px; }

.hero-contacts { margin-top: 12px; display: grid; gap: 2px; }
.hero-contacts a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: .86rem;
  color: #E4EDF8;
  transition: background-color .15s, color .15s;
}
.hero-contacts a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.hero-contacts svg { flex: 0 0 auto; color: var(--blue-soft); }

.hero-social { margin-top: 12px; display: flex; gap: 10px; }
.hsoc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--white);
  transition: transform .15s, filter .15s;
}
.hsoc:hover { transform: translateY(-2px); color: var(--white); filter: brightness(1.08); }
.hsoc-wa { background: var(--wa); }
.hsoc-ig { background: linear-gradient(45deg, #F09433, #DC2743 45%, #BC1888 100%); }
.hsoc-tt { background: #111111; }

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--blue-soft);
}

.hero h1 {
  margin-top: 20px;
  max-width: 15ch;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(8,24,46,.45);
}
.accent { color: var(--orange-lit); }

.hero-lede {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.7;
  color: #DCE7F4;
}

.hero .btn-row { margin-top: 30px; }

.hero-proof { margin-top: 32px; font-size: .82rem; color: var(--blue-text); }
.hero-proof strong { color: var(--white); font-weight: 600; }

.hero-script {
  margin-top: 26px;
  font-family: Caveat, cursive;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(12,38,71,.85);
}

.hero-tel { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.4); }
.hero-tel:hover { color: var(--orange-lit); border-bottom-color: var(--orange-lit); }

/* ---------- services strip (overlaps the hero) -------------------------- */

.services { margin-top: -64px; position: relative; z-index: 5; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 30px -24px rgba(18,38,63,.28);
}

.service { display: block; padding: 24px 20px; background: var(--white); }
.service:hover { background: #F8FBFF; }

.ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--blue-pale);
  color: var(--blue);
}
.ico.lg { width: 44px; height: 44px; border-radius: 12px; }

.service-name {
  display: block;
  margin-top: 14px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy-deep);
}
.service-desc {
  display: block;
  margin-top: 5px;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--grey);
}

/* ---------- generic section --------------------------------------------- */

.section { padding-top: 50px; }
.section:first-of-type { padding-top: 54px; }
.section-last { padding-bottom: 56px; }

h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.25; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.section-sub { margin-top: 6px; font-size: .88rem; color: var(--grey); }
.section-link {
  display: inline-block;
  padding: 10px 0;
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- destinations ------------------------------------------------ */

.dest-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
}

.dest {
  position: relative;
  display: block;
  height: 210px;
  border-radius: var(--round);
  overflow: hidden;
  background: var(--navy-art);
}
.dest .media { position: absolute; inset: 0; transition: transform .35s ease-out; }
.dest:hover .media { transform: scale(1.05); }

.dest-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(8,26,48,.9) 0%,
    rgba(8,26,48,.15) 55%,
    rgba(8,26,48,0) 78%);
}

.dest-label { position: absolute; left: 15px; right: 15px; bottom: 14px; }
.dest-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--white);
}
.dest-tags { display: block; margin-top: 4px; font-size: .74rem; color: var(--blue-tag); }

.flag {
  display: block;
  flex: 0 0 auto;
  width: 21px;
  height: 15px;
  border: 1px solid rgba(255,255,255,.5);
  overflow: hidden;
}
.flag img { width: 100%; height: 100%; object-fit: cover; }
.flag.sm { width: 18px; height: 13px; border-color: rgba(18,38,63,.14); }

/* ---------- why us ------------------------------------------------------ */

.why {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

.why-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 22px 18px;
}
.why-item p { margin-top: 12px; font-size: .86rem; font-weight: 600; line-height: 1.45; }

.stats {
  background: var(--blue-pale);
  border-radius: var(--round);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 14px;
}
.stat-value { display: block; font-size: 1.2rem; font-weight: 700; color: var(--navy-deep); }
.stat-flag img { width: 34px; height: 24px; border: 1px solid rgba(18,38,63,.14); object-fit: cover; }
.stat-label { display: block; margin-top: 3px; font-size: .74rem; color: var(--grey); }

/* ---------- réussites --------------------------------------------------- */

.reussites {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--round);
  overflow: hidden;
}
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--line); }
.card-media .media { position: absolute; inset: 0; }
.card figcaption { padding: 14px 16px 16px; }

.tag {
  display: inline-block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 4px 9px;
  border-radius: 999px;
}
.card-title { display: block; margin-top: 9px; font-size: .88rem; font-weight: 600; }

/* ---------- testimonials ------------------------------------------------ */

.testimonials {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--round);
  padding: 20px;
}
.quote-head { display: flex; align-items: center; gap: 12px; }

/* initials, not a photo: these testimonials are placeholder copy */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.quote-name { display: block; font-size: .9rem; font-weight: 600; }
.quote-role { display: block; margin-top: 2px; font-size: .74rem; color: var(--grey); }

.stars { margin-top: 12px; font-size: .82rem; color: var(--star); letter-spacing: .08em; }
.quote blockquote {
  margin-top: 10px;
  font-size: .85rem;
  line-height: 1.65;
  color: var(--grey-quote);
}

/* ---------- CTA band ---------------------------------------------------- */

.cta { position: relative; overflow: hidden; background: var(--navy); }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-veil { position: absolute; inset: 0; background: rgba(12,38,71,.74); }

.cta-inner {
  position: relative;
  padding-block: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.cta h2 { color: var(--white); font-size: clamp(1.25rem, 2.4vw, 1.85rem); }
.cta p { margin-top: 10px; font-size: .88rem; color: var(--blue-text); }

/* ---------- footer ------------------------------------------------------ */

.site-footer { background: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(130px, .9fr));
  gap: 28px 24px;
  padding-block: 40px 20px;
}

.footer-about {
  margin-top: 14px;
  max-width: 280px;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--grey);
}

.socials { margin-top: 14px; margin-left: -10px; display: flex; gap: 6px; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--navy-deep);
}
.socials a:hover { color: var(--orange); }

.site-footer h3 { font-size: .85rem; font-weight: 700; color: var(--navy-deep); }
.site-footer ul { margin-top: 10px; display: grid; gap: 2px; }
.site-footer li a,
.site-footer li span { display: inline-block; padding: 6px 0; font-size: .8rem; color: var(--grey); }
.site-footer li a:hover { color: var(--orange); }
.wrap-any { overflow-wrap: anywhere; }

.footer-bottom { border-top: 1px solid var(--line-soft); }
.footer-bottom-inner {
  padding-block: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .76rem; color: var(--grey); }

/* clears the floating WhatsApp pill on wide screens */
.footer-script {
  padding-right: 190px;
  font-family: Caveat, cursive;
  font-size: 1.18rem;
  color: var(--navy-deep);
}

/* =========================================================================
   Pages intérieures
   ========================================================================= */

.page-hero { position: relative; background: var(--navy); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12,38,71,.94) 0%, rgba(12,38,71,.74) 60%, rgba(12,38,71,.55) 100%);
}
.page-hero-inner { position: relative; padding-block: 64px 58px; }
.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  color: var(--white);
}
.page-hero-lede {
  margin-top: 16px;
  max-width: 52ch;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--blue-text);
}

.prose { max-width: 68ch; }
.prose p { margin-top: 12px; font-size: .95rem; line-height: 1.75; color: var(--grey-quote); }

.band-soft { background: var(--blue-pale); }
.band-soft .section { padding-block: 54px; }

.feature-row {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.feature-row.reverse .feature-media { order: 2; }
/* l'image est détachée du flux : la colonne prend la hauteur de la rangée
   (celle du texte), l'image la remplit sans imposer son propre format */
.feature-media {
  position: relative;
  margin: 0;
  min-height: 280px;
  border-radius: var(--round);
  overflow: hidden;
  box-shadow: 0 18px 34px -24px rgba(18,38,63,.5);
}
.feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* le texte reste centré verticalement face à l'image */
.feature-copy { align-self: center; }
.feature-copy h3 { font-size: 1.15rem; font-weight: 700; }
.feature-copy p { margin-top: 12px; font-size: .93rem; line-height: 1.7; color: var(--grey-quote); }
.feature-copy .btn { margin-top: 20px; }

.check-list { margin-top: 16px; display: grid; gap: 11px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--grey-quote);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C5FA8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.check-list.small li { font-size: .86rem; }

.fil-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
/* six filières : trois par rangée se lisent mieux que quatre puis deux */
.fil-grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.fil { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.fil-name { font-size: .95rem; font-weight: 600; color: var(--navy-deep); }
.fil-desc { margin-top: 7px; font-size: .84rem; line-height: 1.6; color: var(--grey); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.piece-list { margin-top: 20px; display: grid; gap: 10px; list-style: none; padding: 0; counter-reset: piece; }
.piece-list li {
  position: relative;
  padding-left: 38px;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--grey-quote);
  counter-increment: piece;
}
.piece-list li::before {
  content: counter(piece);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line-strong);
  font-size: .76rem;
  font-weight: 600;
  color: var(--blue);
}
.side-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 24px;
}
.side-note h3 { font-size: 1rem; font-weight: 700; }
.side-note p { margin-top: 10px; font-size: .89rem; line-height: 1.7; color: var(--grey-quote); }
.side-note .btn { margin-top: 18px; }

.contact-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--round);
  padding: 22px;
}
.contact-card h3 { margin-top: 14px; font-size: 1rem; font-weight: 700; }
.contact-card p { margin-top: 8px; font-size: .88rem; line-height: 1.7; color: var(--grey-quote); }
.contact-card > a:last-child { display: inline-block; margin-top: 12px; font-size: .84rem; font-weight: 600; }

/* =========================================================================
   Timeline des étapes — courbe tracée en SVG par app.js
   ========================================================================= */

.timeline-wrap { position: relative; margin-top: 38px; }

.tl-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.tl-path { opacity: .9; }

/* route en pointillés : le motif vient de l'attribut stroke-dasharray du SVG */
.tl-path { opacity: .9; }

.timeline { position: relative; z-index: 1; display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }

/* repli sans JavaScript : une route droite en pointillés dans la gouttière */
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 13px;
  width: 0;
  border-left: 3px dashed #8FA8C6;
  z-index: -1;
}
.has-curve .timeline::before { display: none; }

/* la gouttière de gauche laisse voir la route sur petit écran */
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0;
  align-items: start;
  opacity: 0;
  transform: translateY(14px);
}
.tl-item > .tl-card { grid-column: 2; }
/* apparition décalée d'une étape à l'autre */
.tl-item.is-in { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s ease-out; }
.tl-static .tl-item { opacity: 1; transform: none; }

.tl-note { margin-top: 22px; font-size: .82rem; line-height: 1.6; color: var(--grey); }



/* =========================================================================
   Carrousel (villes, universités, avis)
   ========================================================================= */

/* la piste défile toute seule ; sans cela sa largeur remonte jusqu'au
   document et crée un défilement horizontal de la page sur mobile */
.carousel { position: relative; margin-top: 22px; overflow-x: hidden; }

.car-track {
  display: grid;
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 10px;
  margin: 0;
  list-style: none;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: var(--round); }

.carousel[data-size="wide"] .car-track { grid-auto-columns: minmax(300px, 1fr); }
.carousel[data-size="narrow"] .car-track { grid-auto-columns: minmax(268px, 1fr); }

.car-slide { scroll-snap-align: start; display: flex; }
.car-slide > * { width: 100%; }

/* pied : pastilles + commandes, jamais par-dessus une carte */
/* les pastilles remplacent les boutons : elles situent et servent de raccourci */
.car-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin-top: 8px; }
/* la cible tactile fait 30px ; seul le point à l'intérieur est visible */
.car-dot {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.car-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  transform: translate(-50%, -50%);
  transition: width .2s, background-color .2s;
}
.car-dot[aria-selected="true"]::before { width: 24px; background: var(--blue); }
.car-dot:hover::before { background: #B3C4D8; }

/* =========================================================================
   Avis
   ========================================================================= */

.avis {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--round);
  overflow: hidden;
  box-shadow: 0 12px 26px -24px rgba(18,38,63,.5);
}

/* la photo d'arrivée, au-dessus de l'avis */
.avis-photo { position: relative; flex: 0 0 auto; overflow: hidden; background: var(--blue-pale); }
.avis-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.avis-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 20px 20px; }

.avis-stars { font-size: .95rem; letter-spacing: .1em; line-height: 1; }
.star { color: #C3CEDC; }
.star.on { color: #C57F10; }   /* 3,3:1 sur blanc */

.avis-quote { margin: 14px 0 0; font-size: .9rem; line-height: 1.7; color: var(--grey-quote); }
.avis-quote::before { content: "« "; }
.avis-quote::after { content: " »"; }

.avis-who { margin-top: auto; padding-top: 16px; display: block; }
.avis-name { display: block; font-size: .88rem; font-weight: 600; color: var(--navy-deep); }
.avis-ctx { display: block; margin-top: 2px; font-size: .76rem; color: var(--grey); }

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

/* =========================================================================
   Accès rapide réseaux
   ========================================================================= */

/* toujours visibles : pas de menu à ouvrir */
.dock {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.dock-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 10px 22px -12px rgba(12,38,71,.7);
  transition: transform .15s, filter .15s;
}
.dock-link:hover { transform: translateY(-2px); color: var(--white); filter: brightness(1.08); }
.dock-ig { background: linear-gradient(45deg, #F09433, #DC2743 45%, #BC1888 100%); }
.dock-tt { background: #111111; }

.wa-float {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: var(--white);
  font-size: .86rem;
  font-weight: 600;
  padding: 13px 18px 13px 15px;
  border-radius: 999px;
  box-shadow: 0 14px 28px -12px rgba(12,38,71,.6);
  transition: background-color .15s;
}
.wa-float:hover { background: var(--wa-dark); color: var(--white); }

/* =========================================================================
   Formulaire dossier étudiant
   ========================================================================= */

.form-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 38px; align-items: start; }

.form-intro { position: sticky; top: 96px; }
.eyebrow-dark {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(28,95,168,.1);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--blue);
}
.form-intro h2 { margin-top: 14px; }
.form-intro > p { margin-top: 14px; font-size: .95rem; line-height: 1.75; color: var(--grey-quote); }

.form-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 18px 40px -32px rgba(18,38,63,.45);
}
/* liseré de marque sur l'arête haute */
.form-card::before {
  content: "";
  position: absolute;
  inset-inline: 22px;
  top: 0;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}

.fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.fs + .fs { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line-soft); }

.fs-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-deep);
}
.fs-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
}

.fs-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; }
.field label {
  display: block;
  min-height: 2.4em;
  font-size: .78rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--grey);
}
.req { color: var(--orange-btn); }
.opt { font-weight: 400; color: #5E6C7E; }

.hint { display: block; margin-top: 7px; font-size: .74rem; line-height: 1.5; color: var(--grey); }

.input {
  width: 100%;
  margin-top: 6px;
  padding: 13px 15px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--navy-deep);
  background: #F6F9FD;
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.input::placeholder { color: #A3B0C0; }
.input:hover { background: #F1F6FC; }
.input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(28,95,168,.14);
}
textarea.input { resize: vertical; min-height: 104px; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355657A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-inline-end: 40px;
}
[dir="rtl"] select.input { background-position: left 14px center; }

/* signalé seulement après une tentative d'envoi */
.input.is-bad { border-color: #E0736A; background: #FEF6F5; }
.err {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: .75rem;
  font-weight: 500;
  color: #C0392B;
}

.form-note {
  margin-top: 26px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #F3F8FF, #EDF4FD);
  border: 1px solid #DFEAF8;
  border-radius: 14px;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--grey-quote);
}

.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-send {
  background: var(--wa);
  border-color: var(--wa);
  color: var(--white);
  padding-block: 15px;
  box-shadow: 0 14px 26px -16px rgba(31,168,85,.9);
}
.btn-send:hover { background: var(--wa-dark); }

.form-status { margin-top: 16px; font-size: .86rem; font-weight: 500; min-height: 1.2em; }
.form-status.bad { color: #C0392B; }
.form-status.good { color: var(--wa-dark); }

@media (max-width: 980px) {
  .form-shell { grid-template-columns: 1fr; }
  .form-intro { position: static; }
  .split { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .feature-media { min-height: 0; aspect-ratio: 3 / 2; }
}

@media (max-width: 560px) {
  .form-card { padding: 24px 18px; border-radius: 18px; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .fs-grid { grid-template-columns: 1fr; }
  .page-hero-inner { padding-block: 44px 40px; }
}

/* =========================================================================
   Responsive
   ========================================================================= */

/* hero stacks before the columns get too narrow to read */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 56px 62px;
  }
  .hero-lede { max-width: none; }
  .hero-side { max-width: 460px; }
}

@media (max-width: 760px) {
  .why { grid-template-columns: 1fr; }
}

/* the inline nav no longer fits: swap to the drawer */
@media (max-width: 1180px) {
  .nav-row { display: none; }
  .burger { display: flex; }
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-script { padding-right: 0; }
}

/* logo + burger + pill stop fitting on one row: the pill goes, and the
   drawer's Contact link plus the floating WhatsApp button cover the same job */
@media (max-width: 560px) {
  .header-actions .btn { display: none; }
}

@media (max-width: 640px) {
  :root { --pad: 18px; }
  .car-foot { flex-direction: row; }
  .carousel[data-size="wide"] .car-track,
  .carousel[data-size="narrow"] .car-track { grid-auto-columns: minmax(84%, 1fr); }
  .dock { right: 14px; bottom: 14px; }
  .services { margin-top: -40px; }
  .section { padding-top: 40px; }
  .cta-inner { padding-block: 34px; }
  .btn { padding: 12px 20px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .dock-link { width: 42px; height: 42px; }
  .footer-bottom-inner { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .brand-name { font-size: 1rem; }
  .hero-script { font-size: 1.3rem; }
}

/* ---------- motion / print --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dest .media { transition: none; }
  .dest:hover .media { transform: none; }
  .tl-item, .tl-item.is-in { opacity: 1; transform: none; transition: none; }
  .tl-card, .tl-item:hover .tl-card { transition: none; transform: none; }
  .car-track { scroll-behavior: auto; }
  .dock-links li { transition: none; }
}

@media print {
  .site-header, .wa-float, .cta-bg { display: none; }
  body { color: #000; }
}

/* =========================================================================
   Cadre Google Maps
   ========================================================================= */

.map-frame {
  margin-top: 22px;
  /* pas de min-height : avec aspect-ratio elle recalculerait la largeur
     et le cadre déborderait de sa colonne */
  aspect-ratio: 16 / 7;
  max-width: 100%;
  border-radius: var(--round);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -26px rgba(18,38,63,.6);
  background: var(--blue-pale);
}
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-note { margin-top: 12px; font-size: .84rem; font-weight: 600; }

@media (max-width: 900px) {
  .map-frame { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .map-frame { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-card, .tl-item:hover .tl-card { transform: none; }
  .hsoc:hover { transform: none; }
}


/* =========================================================================
   Arabe : sens de lecture inversé
   =========================================================================
   La plupart des règles utilisent déjà des propriétés logiques ; ne sont
   reprises ici que celles qui restent physiques (grilles, décalages, SVG). */

[lang="ar"] body,
[dir="rtl"] body {
  font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0;
}
/* l'arabe n'a ni capitales ni interlettrage : on neutralise */
[dir="rtl"] .eyebrow,
[dir="rtl"] .eyebrow-dark,
[dir="rtl"] .brand-sub,
[dir="rtl"] .tl-when,
[dir="rtl"] .hero-side-title,
[dir="rtl"] .tag,
[dir="rtl"] .field label,
[dir="rtl"] .social-name {
  letter-spacing: 0;
  text-transform: none;
}
/* la marque et les logotypes restent en latin */
[dir="rtl"] .brand-name,
[dir="rtl"] .brand-sub,
[dir="rtl"] .brand-sub { letter-spacing: .42em; }
[dir="rtl"] .footer-script,
[dir="rtl"] .hero-script { font-family: Cairo, cursive; }

/* numéros de téléphone et emails : isolés en LTR par <bdi> au build ;
   seuls les identifiants purement latins restent forcés */
[dir="rtl"] .social-handle { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .hero-contacts a span { text-align: right; }

/* hero : la plaque passe à gauche */
[dir="rtl"] .hero-veil {
  background:
    linear-gradient(-100deg, rgba(12,38,71,.92) 0%, rgba(12,38,71,.74) 52%, rgba(12,38,71,.55) 100%),
    linear-gradient(to top, rgba(12,38,71,.85) 0%, rgba(12,38,71,0) 45%);
}
[dir="rtl"] .page-hero-veil {
  background: linear-gradient(-100deg, rgba(12,38,71,.94) 0%, rgba(12,38,71,.74) 60%, rgba(12,38,71,.55) 100%);
}

/* route de repli à droite */
[dir="rtl"] .timeline::before { left: auto; right: 13px; }

/* encart à liseré : le trait passe à droite */
[dir="rtl"] .side-note { border-left: 1px solid var(--line); border-right: 4px solid var(--orange); }

/* listes numérotées et à puces */
[dir="rtl"] .piece-list li { padding-left: 0; padding-right: 38px; }
[dir="rtl"] .piece-list li::before { left: auto; right: 0; }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }

/* décalage des étiquettes flottantes du hero */
[dir="rtl"] .form-card::before { inset-inline: 22px; }

/* le pied de page et la pastille sociale suivent inset-inline (déjà logique) */
[dir="rtl"] .footer-script { padding-right: 0; padding-left: 190px; }
@media (max-width: 820px) {
  [dir="rtl"] .footer-script { padding-left: 0; }
}


/* =========================================================================
   Formulaire en étapes
   ========================================================================= */

/* fil des étapes : masqué tant que le script n'a pas pris la main */
.wiz-rail { display: none; }
.is-wizard .wiz-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.wiz-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 3px solid var(--line);
  font-size: .74rem;
  font-weight: 600;
  color: #5E6C7E;
  transition: color .2s, border-color .2s;
}
.wiz-step.is-current,
.wiz-step.is-done { border-top-color: var(--blue); color: var(--navy-deep); }
.wiz-step.is-done { border-top-color: var(--wa); }

.wiz-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--line-soft);
  color: #5B6B80;
  font-size: .7rem;
  font-weight: 700;
}
.wiz-step.is-current .wiz-dot { background: var(--blue); color: var(--white); }
.wiz-step.is-done .wiz-dot {
  background: var(--wa);
  color: transparent;
  /* la coche remplace le numéro une fois l'étape franchie */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.wiz-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* en mode assistant, le numéro du bloc est déjà donné par le fil */
.is-wizard .fs + .fs { margin-top: 0; padding-top: 0; border-top: 0; }
.is-wizard .fs-legend { font-size: 1.05rem; }

@media (max-width: 560px) {
  .wiz-label { display: none; }
  .is-wizard .wiz-rail { gap: 6px; }
  .wiz-step { justify-content: center; }
}

/* =========================================================================
   Mobile : hero et étapes
   ========================================================================= */

@media (max-width: 700px) {
  .hero-inner { padding-block: 44px 52px; gap: 24px; }
  .hero .eyebrow { font-size: .62rem; letter-spacing: .14em; }
  .hero h1 { margin-top: 14px; font-size: clamp(1.9rem, 8.4vw, 2.5rem); max-width: none; }
  .hero-lede { margin-top: 14px; font-size: .95rem; }
  .hero .btn-row { margin-top: 22px; gap: 10px; }
  .hero .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .hero-script { margin-top: 18px; font-size: 1.45rem; }

  /* la plaque devient une simple rangée : téléphones + réseaux.
     Email et adresse restent en pied de page, inutile de les répéter ici. */
  .hero-side {
    max-width: none;
    padding: 0;
    background: none;
    border: 0;
    backdrop-filter: none;
  }
  .hero-side-title { display: none; }
  .hero-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }
  .hero-contacts li:nth-child(n+3) { display: none; }
  .hero-contacts a {
    padding: 11px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    font-size: .82rem;
  }
  .hero-social { margin-top: 10px; }
  .hsoc { width: 40px; height: 40px; border-radius: 11px; }
}



/* =========================================================================
   Page « Tests de langue »
   ========================================================================= */

.lang-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.lang-card {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--round);
}
.lang-card h3 { margin-top: 14px; font-size: 1.05rem; font-weight: 700; }
.lang-card .tag { margin-top: 8px; }
.lang-card p { margin-top: 12px; font-size: .88rem; line-height: 1.65; color: var(--grey-quote); }
.lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy-deep);
  color: var(--white);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
}

/* tableau : défile horizontalement si besoin, devient une pile de cartes sur mobile */
.test-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--round);
}
.test-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.test-table th,
.test-table td {
  padding: 15px 18px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.test-table thead th {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey);
  background: #F8FAFD;
}
.test-table tbody tr:last-child th,
.test-table tbody tr:last-child td { border-bottom: 0; }
.test-table td { color: var(--grey-quote); }
.test-table td strong { color: var(--navy-deep); font-weight: 600; }
.tt-name { display: block; font-weight: 700; color: var(--navy-deep); }
.tt-full { display: block; margin-top: 2px; font-size: .76rem; font-weight: 400; color: var(--grey); }
.lang-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.where-list { margin-top: 18px; display: grid; gap: 10px; }
.where-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .88rem;
}
.where-list strong { color: var(--navy-deep); }
.where-list span { color: var(--grey); }

.photo-band {
  margin: 22px 0 0;
  border-radius: var(--round);
  overflow: hidden;
}
.photo-band img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }

@media (max-width: 700px) {
  .test-table-wrap { overflow: visible; background: none; border: 0; }
  .test-table thead { display: none; }
  .test-table,
  .test-table tbody,
  .test-table tr,
  .test-table th,
  .test-table td { display: block; width: 100%; }
  .test-table tr {
    margin-bottom: 12px;
    padding: 6px 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .test-table th,
  .test-table td { padding: 8px 16px; border-bottom: 0; }
  .test-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .68rem;
    font-weight: 600;
    color: var(--grey);
  }
  .photo-band img { aspect-ratio: 16 / 9; }
}

/* =========================================================================
   Photos ajoutées aux pages Visa, À propos, Contact
   ========================================================================= */

.stamp-photo {
  margin: 18px 0 0;
  max-width: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px -18px rgba(18,38,63,.5);
}
.stamp-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--round);
  overflow: hidden;
}
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(8,26,48,.82), rgba(8,26,48,0));
  color: var(--white);
  font-size: .84rem;
  font-weight: 600;
}

.form-photo {
  margin: 24px 0 0;
  border-radius: var(--round);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}
.form-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.form-photo figcaption { padding: 10px 14px; font-size: .8rem; color: var(--grey); }

/* =========================================================================
   Tests de langue : prix + accompagnement
   ========================================================================= */

.test-table td.tt-price { color: var(--navy-deep); font-weight: 600; white-space: normal; }

.help-test {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--round);
  box-shadow: 0 18px 40px -30px rgba(18,38,63,.45);
}
.eyebrow-dark {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--orange-btn);
}
.help-test-copy h2 { margin-top: 8px; }
.help-test-copy p { margin-top: 12px; color: var(--grey-quote); line-height: 1.7; }
.help-test-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.help-wa { color: var(--wa); font-weight: 700; font-size: .9rem; padding: 10px 0; }
.help-wa:hover { text-decoration: underline; }

.help-steps { counter-reset: hs; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.help-steps li {
  counter-increment: hs;
  position: relative;
  padding: 14px 16px 14px 58px;
  background: var(--page);
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--grey-quote);
}
.help-steps li strong { color: var(--navy-deep); }
.help-steps li::before {
  content: counter(hs);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-btn);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}
[dir="rtl"] .help-steps li { padding: 14px 58px 14px 16px; }
[dir="rtl"] .help-steps li::before { left: auto; right: 14px; }
.help-warn { margin-top: 14px; font-size: .8rem; line-height: 1.6; color: var(--grey); }

@media (max-width: 900px) {
  .help-test { grid-template-columns: 1fr; padding: 24px 20px; gap: 22px; }
}

/* =========================================================================
   RTL : chiffres et texte latin dans les pages arabes
   ========================================================================= */

bdi { unicode-bidi: isolate; }

/* téléphone et e-mail se saisissent de gauche à droite, alignés à droite */
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }
[dir="rtl"] input[type="tel"]::placeholder,
[dir="rtl"] input[type="email"]::placeholder { text-align: right; }

/* montants et niveaux : chiffres de même largeur, alignés proprement */
.test-table td, .tt-price, .tl-when, .tag { font-variant-numeric: tabular-nums; }

/* =========================================================================
   Accueil : aide pour le certificat de langue
   ========================================================================= */

.lang-help {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--round);
  overflow: hidden;
  box-shadow: 0 18px 40px -30px rgba(18,38,63,.45);
}
.lang-help-media { position: relative; margin: 0; min-height: 280px; }
.lang-help-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lang-help-chips {
  position: absolute;
  inset-inline-start: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  direction: ltr;
}
.lang-help-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(12,38,71,.88);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.lang-help-copy { padding: 34px 36px; }
.lang-help-copy h2 { margin-top: 8px; }
.lang-help-copy p { margin-top: 12px; color: var(--grey-quote); line-height: 1.7; }
.lang-help-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lang-help-list li {
  position: relative;
  padding-inline-start: 28px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy-deep);
}
.lang-help-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .2em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (max-width: 900px) {
  .lang-help { grid-template-columns: 1fr; }
  .lang-help-media { min-height: 0; aspect-ratio: 16 / 9; }
  .lang-help-copy { padding: 24px 20px; }
}


/* noms latins des avis (« Lina B. ») : lus de gauche à droite pour que le point
   de l'initiale reste à sa place, mais toujours alignés à droite */
[dir="rtl"] .avis-name { direction: ltr; text-align: right; }

/* =========================================================================
   Pourquoi nous : les quatre points sur toute la largeur
   ========================================================================= */

.why { grid-template-columns: 1fr; }
.why-points { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .why-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .why-points { grid-template-columns: 1fr; } }

/* =========================================================================
   Parcours en étapes : piste cliquable + panneau photo / texte
   ========================================================================= */

.journey {
  position: relative;
  margin-top: 26px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 50px -40px rgba(12,38,71,.55);
}

/* ---- piste ---- */
.jr-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jr-node { position: relative; }
/* trait vers l'étape suivante, coloré une fois l'étape passée */
.jr-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23px;
  inset-inline-start: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  transition: background .4s ease-out;
}
.jr-node.is-done::after { background: var(--orange); }

.jr-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0 6px 8px;
  border: 0;
  background: none;
  font: inherit;
  text-align: center;
  color: var(--grey);
  cursor: pointer;
}
.jr-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--page);
  border: 2px solid var(--line);
  color: var(--grey);
  transition: background .3s, border-color .3s, color .3s, transform .3s, box-shadow .3s;
}
.jr-when {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey);
}
[dir="rtl"] .jr-when { letter-spacing: 0; text-transform: none; }
.jr-name { font-size: .84rem; font-weight: 600; line-height: 1.3; color: var(--navy-deep); }

.jr-btn:hover .jr-ico { border-color: var(--orange); color: var(--orange-btn); }
.jr-btn:focus-visible { outline: none; }
.jr-btn:focus-visible .jr-ico { box-shadow: 0 0 0 4px rgba(232,133,58,.35); }

.jr-node.is-done .jr-ico { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.jr-node.is-current .jr-ico {
  background: var(--orange-btn);
  border-color: var(--orange-btn);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 10px 20px -10px rgba(184,91,24,.8);
}
.jr-node.is-current .jr-when { color: var(--orange-btn); }

/* ---- panneau ---- */
.jr-panels { margin-top: 22px; }
.jr-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 34px;
  align-items: center;
}
.journey.is-ready .jr-panel:not([hidden]) { animation: jr-in .45s ease-out; }
@keyframes jr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.jr-media { margin: 0; border-radius: 16px; overflow: hidden; background: var(--blue-pale); }
.jr-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

.jr-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(232,133,58,.14);
  color: var(--orange-btn);
  font-size: .74rem;
  font-weight: 700;
}
.jr-copy h3 { margin-top: 14px; font-size: 1.55rem; font-weight: 700; line-height: 1.25; color: var(--navy-deep); }
.jr-copy p { margin-top: 12px; font-size: .98rem; line-height: 1.75; color: var(--grey-quote); }

.jr-arrows { display: flex; gap: 10px; margin-top: 24px; }
.jr-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy-deep);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.jr-arrow:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.jr-arrow:focus-visible { outline: 3px solid rgba(232,133,58,.5); outline-offset: 2px; }
[dir="rtl"] .jr-arrow svg { transform: scaleX(-1); }

/* ---- barre de défilement automatique ---- */
.jr-timer {
  position: absolute;
  inset-inline: 26px;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
}
.jr-timer span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #3B82C4);
  transform: scaleX(0);
  transform-origin: left;
}
[dir="rtl"] .jr-timer span { transform-origin: right; }
.jr-timer.is-running span { animation: jr-timer 5s linear forwards; }
.journey.is-paused .jr-timer span { animation-play-state: paused; }
.journey.is-stopped .jr-timer { display: none; }
@keyframes jr-timer { to { transform: scaleX(1); } }

/* ---- sans JavaScript : piste masquée, panneaux empilés ---- */
.journey:not(.is-ready) .jr-track,
.journey:not(.is-ready) .jr-arrows,
.journey:not(.is-ready) .jr-timer { display: none; }
.journey:not(.is-ready) .jr-panel + .jr-panel { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---- tablette ---- */
@media (max-width: 900px) {
  .journey { padding: 20px; }
  .jr-panel { grid-template-columns: 1fr; gap: 18px; }
  .jr-copy h3 { font-size: 1.3rem; margin-top: 12px; }
  .jr-copy p { font-size: .93rem; }
  .jr-arrows { margin-top: 18px; }
}

/* ---- mobile : la piste défile horizontalement ---- */
@media (max-width: 760px) {
  .jr-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .jr-track::-webkit-scrollbar { display: none; }
  .jr-node { flex: 0 0 118px; scroll-snap-align: center; }
  .jr-ico { width: 44px; height: 44px; }
  .jr-node:not(:last-child)::after { top: 21px; inset-inline-start: calc(50% + 28px); width: calc(100% - 56px); }
  .jr-name { font-size: .78rem; }
  .jr-timer { inset-inline: 20px; }
}
@media (max-width: 420px) {
  .journey { padding: 16px; border-radius: 18px; }
  .jr-track { margin-inline: -16px; padding-inline: 16px; }
  .jr-timer { inset-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .journey.is-ready .jr-panel:not([hidden]) { animation: none; }
  .jr-ico, .jr-node.is-current .jr-ico { transition: none; transform: none; }
  .jr-timer { display: none; }
}

/* =========================================================================
   Accueil façon maquette : hero photo plein cadre
   ========================================================================= */

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 45%;
  filter: brightness(1.06) saturate(1.12) contrast(1.03);
  transform: scaleX(-1);
}
[dir="rtl"] .hero-photo { transform: none; }

.hero-veil {
  background:
    linear-gradient(90deg, rgba(8,28,56,.97) 0%, rgba(12,38,71,.9) 30%, rgba(12,38,71,.45) 58%, rgba(12,38,71,.08) 82%),
    linear-gradient(to top, rgba(12,38,71,.6) 0%, rgba(12,38,71,0) 38%);
}
[dir="rtl"] .hero-veil {
  background:
    linear-gradient(270deg, rgba(8,28,56,.97) 0%, rgba(12,38,71,.9) 30%, rgba(12,38,71,.45) 58%, rgba(12,38,71,.08) 82%),
    linear-gradient(to top, rgba(12,38,71,.6) 0%, rgba(12,38,71,0) 38%);
}

.hero-inner { padding-block: 92px 118px; }

/* contacts et réseaux : rangée compacte sous les boutons */
.hero-copy .hero-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  max-width: none;
  margin-top: 26px;
  padding: 0;
  background: none;
  border: 0;
  backdrop-filter: none;
}
.hero-copy .hero-side-title { display: none; }
.hero-copy .hero-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }
.hero-copy .hero-contacts a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  font-size: .82rem;
}
.hero-copy .hero-social { margin-top: 0; }
.hero-copy .hsoc { width: 40px; height: 40px; border-radius: 11px; }

/* textes manuscrits posés sur la photo */
.hero-dream {
  position: absolute;
  top: 64px;
  inset-inline-end: 34px;
  max-width: 9ch;
  margin: 0;
  font-family: Caveat, cursive;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  line-height: .95;
  text-align: center;
  color: #fff;
  transform: rotate(-8deg);
  text-shadow: 0 3px 16px rgba(12,38,71,.7);
}
[dir="rtl"] .hero-dream { font-family: Cairo, cursive; font-weight: 700; transform: rotate(6deg); }

@media (min-width: 981px) {
  .hero { min-height: 600px; }
  /* la photo occupe la partie droite ; à gauche un aplat marine porte le texte,
     le dégradé masque la jonction */
  .hero-media { background: #0B2447; }
  .hero-photo {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 64%;
    height: 100%;
    object-position: 34% 45%;
  }
  .hero-veil {
    background:
      linear-gradient(90deg, #0B2447 0%, #0B2447 38%, rgba(11,36,71,.55) 46%, rgba(12,38,71,.08) 58%, rgba(12,38,71,0) 70%),
      linear-gradient(to top, rgba(12,38,71,.35) 0%, rgba(12,38,71,0) 24%);
  }
  [dir="rtl"] .hero-veil {
    background:
      linear-gradient(270deg, #0B2447 0%, #0B2447 38%, rgba(11,36,71,.55) 46%, rgba(12,38,71,.08) 58%, rgba(12,38,71,0) 70%),
      linear-gradient(to top, rgba(12,38,71,.35) 0%, rgba(12,38,71,0) 24%);
  }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .hero-copy { max-width: 620px; }
  /* dans le ciel, sous « Des rêves plus grands » : fond calme, texte lisible */
  .hero-script {
    position: absolute;
    top: 190px;
    bottom: auto;
    inset-inline-end: 60px;
    max-width: 10ch;
    margin: 0;
    font-size: 2rem;
    text-align: center;
    transform: rotate(-6deg);
  }
  [dir="rtl"] .hero-script { transform: rotate(5deg); }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 64px 96px; }
  .hero-dream { display: none; }
  .hero-photo { object-position: 42% 45%; }
  .hero-veil,
  [dir="rtl"] .hero-veil {
    background: linear-gradient(180deg, rgba(12,38,71,.72) 0%, rgba(12,38,71,.86) 55%, rgba(8,28,56,.95) 100%);
  }
}

/* =========================================================================
   Destinations phares : cartes photo défilantes
   ========================================================================= */

.country-grid {
  margin-top: 22px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 16px) / 4.25);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.country-grid::-webkit-scrollbar { display: none; }

.country-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.3;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
  background: var(--navy-deep);
  box-shadow: 0 16px 34px -26px rgba(12,38,71,.7);
  isolation: isolate;
}
.country-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease-out;
  z-index: -2;
}
.country-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8,26,48,.88) 0%, rgba(8,26,48,.35) 42%, rgba(8,26,48,0) 70%);
}
.country-card:hover { color: #fff; }
.country-card:hover .country-photo { transform: scale(1.06); }
.country-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.country-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--orange-btn);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
[dir="rtl"] .country-tag { letter-spacing: 0; text-transform: none; }

.country-info {
  position: absolute;
  inset-inline: 16px 62px;
  bottom: 16px;
  display: grid;
  gap: 3px;
}
.country-name { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; font-weight: 700; }
.country-flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.country-meta { font-size: .78rem; color: rgba(255,255,255,.82); }

.country-go {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-deep);
  transition: background .2s, color .2s;
}
.country-card:hover .country-go { background: var(--orange-btn); color: #fff; }
[dir="rtl"] .country-go svg { transform: scaleX(-1); }

@media (max-width: 1000px) { .country-grid { grid-auto-columns: calc((100% - 16px) / 2.3); } }
@media (max-width: 560px)  { .country-grid { grid-auto-columns: 78%; gap: 12px; } }

@media (prefers-reduced-motion: reduce) {
  .country-card:hover .country-photo { transform: none; }
}

/* avis : portraits recadrés sur le visage */
.avis-photo img { object-position: 50% 22%; }

/* lisibilité des textes manuscrits sur une photo plus claire */
.hero-dream,
.hero-script {
  text-shadow: 0 2px 4px rgba(8,26,48,.85), 0 4px 22px rgba(8,26,48,.75);
}

/* hero-photo miroir arabe : sur grand écran la photo passe à gauche ; on la
   retourne pour que l'étudiante reste du côté extérieur, loin du dégradé */
/* plus de miroir : la photo ne montre que la ville */

/* texte manuscrit arabe sur l eau : en arabe la photo occupe la gauche, et « Le monde vous attend ! »
   tombait sur le voyageur. On le place au-dessus de l'eau, zone calme.
   En pourcentages pour tenir a toutes les largeurs. */
@media (min-width: 981px) {
  [dir="rtl"] .hero-script {
    top: 33%;
    inset-inline-end: 28%;
  }
}

/* =========================================================================
   Hero mobile : la photo redevient une image, pas une texture.
   Elle occupe le haut en pleine largeur ; le texte remonte dessus sur une
   feuille marine a coins arrondis, et le manuscrit se pose sur la photo.
   ========================================================================= */
@media (max-width: 720px) {
  .hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 16 / 11;
  }
  .hero-photo {
    position: static;
    width: 100%;
    height: 100%;
    object-position: 48% 42%;
    transform: none;
  }
  /* voile seulement en bas : la ville reste lisible */
  .hero-veil,
  [dir="rtl"] .hero-veil {
    background: linear-gradient(to top, rgba(8,28,56,.92) 3%, rgba(8,28,56,.34) 36%, rgba(8,28,56,0) 66%);
  }

  /* la feuille de texte chevauche la photo */
  .hero-inner {
    position: relative;
    z-index: 2;
    margin-top: -24px;
    padding-block: 26px 30px;
    gap: 0;
    background: var(--navy);
    border-radius: 22px 22px 0 0;
  }

  /* l eyebrow repete le debut du chapo et prend deux lignes : on le retire */
  .hero .eyebrow { display: none; }

  .hero h1 {
    margin-top: 0;
    font-size: clamp(1.8rem, 7.6vw, 2.25rem);
    line-height: 1.12;
  }
  .hero-lede {
    margin-top: 12px;
    font-size: .9rem;
    line-height: 1.5;
  }

  .btn-row { margin-top: 18px; display: grid; gap: 8px; }
  .btn-row .btn-orange { width: 100%; }
  .btn-row .btn-outline {
    justify-self: start;
    width: auto;
    padding: 8px 2px;
    border: 0;
    background: none;
    text-decoration: underline;
    text-underline-offset: 5px;
  }

  /* le manuscrit se pose sur le bas de la photo : il est ancre au haut de la
     feuille (qui chevauche la photo de 24px), donc independant de la largeur */
  .hero-script {
    position: absolute;
    z-index: 3;
    top: -74px;
    inset-inline-start: 2px;
    margin: 0;
    font-size: 1.55rem;
    transform: rotate(-4deg);
  }

  /* les reseaux sont deja dans la pastille flottante, en bas de l ecran */
  .hero-social { display: none; }
  .hero-copy .hero-side, .hero-side { margin-top: 16px; }

  .services { margin-top: -22px; }
}

/* le hero est enveloppe dans <picture> (version telephone) : la balise ne doit
   pas creer de boite, l'image garde sa mise en page */
.hero-media picture { display: contents; }
