/* =========================================================
   Carthage Bridge Services — Stylesheet
   Direction : bleu clinique aligné sur le logo (arche de Carthage) :
   bleu marine et bleus médicaux en famille dominante (confiance, rigueur),
   un seul accent turquoise réservé aux signaux positifs
   (mission, succès, CTA secondaire), rouge dédié aux erreurs.
   Motif d'arche conservé (le "pont").
   ========================================================= */

:root {
  /* Couleur d'ancrage — bleu marine clinique profond */
  --ink: #0a2647;
  --ink-light: #123a6b;
  --ink-soft: #1a4f82;

  /* Bleu médical — navigation, liens, icônes, focus */
  --teal: #1e88e5;
  --teal-dark: #0d47a1;

  /* Bleu primaire — actions principales (CTA) */
  --clay: #1565c0;
  --clay-dark: #0b3d78;

  /* Accent turquoise du logo — unique touche positive (mission, succès, CTA secondaire) */
  --gold: #13a3a8;
  --gold-light: #5fd3d6;
  --mint-dark: #0d7f83;

  /* Rouge dédié aux erreurs de formulaire */
  --danger: #c62828;

  /* Fonds : ciel de Sidi Bou Saïd, sable chaud, eau turquoise — aucun blanc pur */
  --bg: #f5f9fd;
  --sky: #e6f0fa;
  --sand: #f1f6fb;
  --sand-deep: #e6eef8;
  --aqua-mist: #e4f3f5;
  --sun: #f2b84b;
  --surface: #ffffff;
  --text: #14263a;
  --text-muted: #4b6075;
  --border: rgba(11, 47, 91, 0.13);

  --shadow: 0 22px 44px -22px rgba(10, 38, 71, 0.32);
  --shadow-sm: 0 10px 22px -14px rgba(10, 38, 71, 0.32);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --container: 1160px;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--text-muted); }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; list-style: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-dark);
  background: rgba(21, 101, 192, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow i { font-size: 0.75rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--clay-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--mint-dark); color: #fff; }

.btn-light {
  background: var(--surface);
  color: var(--ink);
}
.btn-light:hover { background: var(--sand); color: var(--ink); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--clay); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.brand-text small { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav ul {
  display: flex;
  gap: 26px;
}
.primary-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
  text-decoration: none;
}
.nav-cta { padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 55%, var(--teal-dark) 130%);
  color: #fff;
  overflow: hidden;
  padding: 88px 0 0;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.16;
}
.hero::before {
  width: 520px; height: 520px;
  background: var(--clay);
  top: -220px; right: -160px;
}
.hero::after {
  width: 360px; height: 360px;
  border: 2px solid var(--gold-light);
  background: transparent;
  bottom: -180px; left: -100px;
  opacity: 0.16;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 110px;
}
.hero h1 { color: #fff; }
.hero .eyebrow { background: rgba(255,255,255,0.14); color: #fff; }
.hero-lead { color: rgba(255,255,255,0.85); font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
  max-width: 520px;
}
.hero-stats div {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 16px 14px;
}
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-light); }
.hero-stats span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.75); }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; height: auto; max-width: 420px; }

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  padding: 70px 0 0;
  text-align: center;
}
.page-hero .container { position: relative; z-index: 2; padding-bottom: 84px; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 60ch; margin: 0 auto; }
.page-hero .eyebrow { background: rgba(255,255,255,0.14); color: #fff; }

/* Motif d'arches en filigrane (Carthage / zellige) + vague de transition */
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.section-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}
.section-wave svg { display: block; width: 100%; height: 54px; }
.section-wave path { fill: var(--bg); }

/* ---------- Sections ---------- */
section.section { padding: 84px 0; }
section.section.tight { padding: 60px 0; }
/* Panneaux colorés arrondis posés sur le fond ciel : plus de bandes blanches */
.section-alt,
.section-sand,
.section-aqua,
.section-navy {
  position: relative;
  margin: 14px 20px;
  border-radius: 44px;
  overflow: hidden;
}
.section-alt {
  background-color: var(--sand);
  background-image: radial-gradient(circle at 96% 8%, rgba(30, 136, 229, 0.08), transparent 34%),
                    radial-gradient(circle at 2% 100%, rgba(18, 166, 176, 0.10), transparent 36%);
}
.section-sand {
  background-color: var(--sky);
  background-image: radial-gradient(circle, rgba(21, 101, 192, 0.16) 1.6px, transparent 1.6px);
  background-size: 24px 24px;
}
.section-aqua {
  background-color: var(--aqua-mist);
  background-image: radial-gradient(circle at 92% 0%, rgba(18, 166, 176, 0.26), transparent 38%),
                    radial-gradient(circle at 0% 100%, rgba(21, 101, 192, 0.12), transparent 40%);
}
.section-navy {
  color: #fff;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
}
.section-navy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='70'%3E%3Cpath d='M5 70 C5 40 25 20 45 20 C65 20 85 40 85 70' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='2'/%3E%3C/svg%3E");
}
.section-navy::after {
  content: ""; position: absolute; right: -60px; bottom: -40px; width: 380px; height: 420px; pointer-events: none;
  background: url("../img/logo-mark-reversed.svg") center / contain no-repeat; opacity: 0.09;
}
.section-navy .container { position: relative; z-index: 1; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255, 255, 255, 0.78); }
.section-navy .eyebrow { background: rgba(255, 255, 255, 0.14); color: #fff; }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin: 0 0 40px; text-align: left; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

/* Le badge d'icône reprend la forme d'arche — signature visuelle du site */
.card-icon {
  width: 56px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% 50% 10px 10px;
  background: rgba(30, 136, 229, 0.12);
  color: var(--teal-dark);
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

.icon-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.icon-list i {
  flex: none;
  width: 36px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% 50% 8px 8px;
  background: rgba(19, 163, 168, 0.16);
  color: var(--gold);
  margin-top: 2px;
}
.icon-list strong { display: block; color: var(--ink); margin-bottom: 2px; }
.icon-list p { margin: 0; }

/* ---------- Markets / countries ---------- */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.market-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.market-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.market-chip i { color: var(--clay); font-size: 1.1rem; }
.market-group-title {
  font-family: var(--font-mono);
  color: var(--clay-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 40px 0 18px;
}
.market-group-title:first-of-type { margin-top: 0; }

/* ---------- Why us / values ---------- */
.value-row {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.value-row:last-child { border-bottom: none; }
.value-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--clay-dark);
  background: rgba(21, 101, 192, 0.1);
  min-width: 46px;
  height: 40px;
  border-radius: 50% 50% 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-row h3 { margin-bottom: 6px; }
.value-row p { margin: 0; }

/* ---------- Mission / vision ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.mv-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  color: #fff;
}
.mv-card::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  right: -60px; bottom: -70px;
}
.mv-card.vision { background: linear-gradient(150deg, var(--ink), var(--teal-dark)); }
.mv-card.mission { background: linear-gradient(150deg, var(--mint-dark), var(--gold)); }
.mv-card i { font-size: 1.6rem; color: var(--gold-light); margin-bottom: 14px; display: block; }
.mv-card h3 { color: #fff; }
.mv-card p { color: rgba(255,255,255,0.88); margin: 0; position: relative; z-index: 1; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink), var(--clay-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -120px; right: -60px;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; position: relative; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* ---------- Partnership types ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.partner-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 18px 20px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.partner-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.partner-chip i {
  font-size: 1.5rem;
  color: var(--teal-dark);
  margin-bottom: 10px;
  display: block;
}
.partner-chip strong { color: var(--ink); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: flex-start;
}
.contact-info-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card ul { margin-top: 22px; position: relative; z-index: 1; }
.contact-info-card li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info-card li i {
  width: 38px; height: 40px;
  border-radius: 50% 50% 8px 8px;
  background: rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  flex: none;
}
.contact-info-card a { color: #fff; }
.contact-info-card small { color: rgba(255,255,255,0.65); display: block; margin-top: 2px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #f7fafd;
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.consent input { width: auto; margin-top: 3px; }

.alert {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 22px;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert-success { background: rgba(19, 163, 168, 0.12); color: var(--mint-dark); border: 1px solid rgba(19,163,168,0.3); }
.alert-error { background: rgba(198, 40, 40, 0.1); color: var(--danger); border: 1px solid rgba(198,40,40,0.28); }

/* ---------- Map placeholder ---------- */
.location-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 26px;
}
.location-card iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.82); margin-top: 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 36px;
  padding: 60px 0 40px;
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .brand-mark { color: var(--gold-light); }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.1rem; display: block; margin-bottom: 6px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin: 0; }

.footer-col h4 { color: #fff; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; font-weight: 600; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: rgba(255,255,255,0.78); }
.footer-contact i { color: var(--gold-light); margin-top: 3px; }
.footer-note { font-size: 0.88rem; color: rgba(255,255,255,0.65); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 280px; }
  .mv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    gap: 18px;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav a { display: block; padding: 10px 0; }
  .nav-cta { align-self: flex-start; }

  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  section.section { padding: 56px 0; }
  .hero-inner { padding-bottom: 90px; }
  .page-hero .container { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .market-chip:hover, .partner-chip:hover { transform: none; }
}

/* ---------- Photos ---------- */
.hero-photo { position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.hero-photo-frame {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  border: 8px solid var(--sand);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -28px; bottom: 34px;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 16px; padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow);
}
.hero-badge img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; }
.hero-badge strong { display: block; font-size: 0.9rem; color: var(--ink); line-height: 1.2; }
.hero-badge span { font-size: 0.76rem; color: var(--text-muted); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.photo-card {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg) / 120px 120px var(--radius-lg) var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: var(--sand-deep);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-card:hover img { transform: scale(1.05); }
.photo-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 22px;
  background: linear-gradient(0deg, rgba(10, 38, 71, 0.92), rgba(10, 38, 71, 0));
  color: #fff;
}
.photo-card figcaption strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.photo-card figcaption span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }

/* Photo en fond des bandeaux de page */
.page-hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-img); background-size: cover; background-position: center;
  opacity: 0.3;
}

@media (max-width: 980px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { left: 8px; }
}
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-card { max-width: 380px; margin: 0 auto; width: 100%; }
}

.site-footer { border-radius: 44px 44px 0 0; margin-top: 28px; }
@media (max-width: 760px) {
  .section-alt, .section-sand, .section-aqua, .section-navy { margin: 10px 10px; border-radius: 28px; }
  .site-footer { border-radius: 28px 28px 0 0; }
  .section-navy::after { width: 240px; height: 260px; }
}

/* ---------- Logo officiel (globe, pont, avion, croix) ---------- */
.brand-mark img { display: block; }
.brand-text strong { font-family: var(--font-body); font-weight: 800; font-size: 1.12rem; letter-spacing: 0.03em; color: var(--ink); }
.brand-text strong em { font-style: normal; font-weight: 500; color: var(--gold); }
.footer-brand { flex-direction: column; gap: 14px; }
.footer-logo { display: inline-block; background: var(--sand); border-radius: 22px; padding: 12px 20px; }
.footer-logo img { display: block; }
.section-navy::after {
  background-image: url("../img/logo-icone.png");
  filter: brightness(0) invert(1); opacity: 0.06; width: 520px; height: 290px; right: -40px; bottom: -20px;
}
@media (max-width: 760px) { .section-navy::after { width: 300px; height: 168px; } }

/* =========================================================
   Interactions dynamiques : progression de lecture, WhatsApp
   flottant, retour en haut, compteurs, survol 3D, ticker,
   ciel animé du hero, carte radiale des marchés, chronologie.
   ========================================================= */

body { opacity: 0; }
body.is-ready { opacity: 1; transition: opacity 0.5s ease; }

/* ---------- Barre de progression ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--clay), var(--teal), var(--gold));
  z-index: 300; pointer-events: none;
}

/* ---------- WhatsApp flottant ---------- */
.float-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 250;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 14px 30px -10px rgba(10, 38, 71, 0.5);
  transition: transform 0.2s ease;
}
.float-whatsapp:hover { transform: translateY(-3px); color: #fff; }
.float-whatsapp::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid #25d366; opacity: 0.55;
  animation: pulseRing 2.2s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.85); opacity: 0.6; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- Retour en haut ---------- */
.back-to-top {
  position: fixed; right: 26px; bottom: 92px; z-index: 250;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { color: var(--clay); }

/* ---------- Survol 3D des cartes ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform 0.25s ease, box-shadow 0.25s ease; }

/* ---------- Ciel animé du hero : avion, route pointillée, pétales ---------- */
.hero-sky { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.flight-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.flight-route path {
  fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 2;
  stroke-dasharray: 2 11; stroke-linecap: round;
  animation: dashFlow 3s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -130; } }

.hero-plane {
  position: absolute; left: 5%; top: 80%; color: #fff; font-size: 1.15rem; opacity: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  animation: planeFly 9s ease-in-out infinite;
}
@keyframes planeFly {
  0%   { left: 4%;  top: 80%; transform: rotate(-6deg) scale(0.9); opacity: 0; }
  10%  { opacity: 1; }
  50%  { left: 68%; top: 16%; transform: rotate(-20deg) scale(1.05); }
  90%  { opacity: 1; }
  100% { left: 95%; top: 8%;  transform: rotate(-24deg) scale(1.1); opacity: 0; }
}

.petal {
  position: absolute; top: -16px; width: 10px; height: 10px;
  background: var(--gold-light); border-radius: 0 70% 0 70%; opacity: 0;
  animation-name: petalFall; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes petalFall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.65; }
  100% { transform: translate(-60px, 440px) rotate(280deg); opacity: 0; }
}

/* ---------- Ticker des services ---------- */
.ticker {
  position: relative; z-index: 2; overflow: hidden; white-space: nowrap;
  margin-top: 28px; padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: inline-flex; gap: 48px; animation: tickerScroll 28s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.ticker-track i { color: var(--gold-light); font-size: 0.7rem; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Carte radiale des marchés ---------- */
.hub-map { max-width: 640px; margin: 0 auto 8px; }
.hub-map svg { width: 100%; height: auto; overflow: visible; }
.hub-arc { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 9; opacity: 0.85; animation: dashFlow 2.6s linear infinite; }
.hub-pulse {
  fill: none; stroke: var(--clay); stroke-width: 2;
  transform-box: fill-box; transform-origin: center;
  animation: hubPulse 2.8s ease-out infinite;
}
@keyframes hubPulse {
  0%   { r: 14; opacity: 0.6; }
  100% { r: 50; opacity: 0; }
}
.hub-center { fill: var(--ink); }
.hub-node circle:first-child {
  transform-box: fill-box; transform-origin: center;
  animation: nodePulse 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes nodePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.28); } }
.hub-label { font: 600 12px/1 var(--font-mono); text-anchor: middle; letter-spacing: 0.02em; }
.hub-label-center { fill: #fff; font-size: 11px; }

/* ---------- Chronologie du parcours ---------- */
.timeline-rail {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 780px; margin: 0 auto 10px; position: relative; padding: 0 22px;
}
.timeline-rail::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 50%; height: 3px;
  background: var(--border); border-radius: 3px; transform: translateY(-50%);
}
.timeline-rail::after {
  content: ""; position: absolute; left: 22px; top: 50%; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--clay), var(--teal), var(--gold));
  border-radius: 3px; transform: translateY(-50%);
  transition: width 1.2s cubic-bezier(0.22, 0.9, 0.32, 1) 0.2s;
}
.timeline-rail.in-view::after { width: calc(100% - 44px); }
.timeline-dot {
  position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--clay); color: var(--clay-dark);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 760px) {
  .timeline-rail { display: none; }
  .float-whatsapp { width: 50px; height: 50px; font-size: 1.4rem; right: 16px; bottom: 16px; }
  .back-to-top { width: 38px; height: 38px; right: 18px; bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  body { opacity: 1 !important; transition: none !important; }
  .float-whatsapp::before,
  .ticker-track,
  .hero-plane,
  .petal,
  .hub-arc,
  .hub-pulse,
  .hub-node circle:first-child { animation: none !important; }
  .hub-pulse { display: none; }
  .tilt { transition: none !important; }
}

/* ---------- Catalogue de services par catégorie ---------- */
.service-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.service-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.service-cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.service-cat-head .card-icon { margin-bottom: 0; flex: none; }
.service-cat-head h3 { margin: 0; font-size: 1.12rem; }
.service-cat ul { display: flex; flex-direction: column; gap: 11px; }
.service-cat li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: var(--text-muted); line-height: 1.4;
}
.service-cat li i { color: var(--teal-dark); font-size: 0.78rem; margin-top: 4px; flex: none; }

/* ---------- Pourquoi nous choisir ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px 36px; max-width: 840px; margin: 0 auto 40px;
}
.why-item { display: flex; align-items: flex-start; gap: 14px; }
.why-item i {
  flex: none; width: 32px; height: 32px; margin-top: 2px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.why-item span { color: rgba(255, 255, 255, 0.88); font-size: 0.96rem; line-height: 1.5; }

.engagement-row {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 840px; margin: 0 auto;
}
.engagement-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.85); font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.engagement-item i { font-size: 1.3rem; color: var(--gold-light); }

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

/* ---------- FAQ (accordéon sans JavaScript) ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0 22px; transition: box-shadow 0.2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 34px 18px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: rgba(21, 101, 192, 0.1);
  color: var(--clay-dark); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 1.1rem; transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 20px; padding-right: 10px; }

/* ---------- Menu : 7 liens sur une seule ligne, burger dès 1080 px ---------- */
.primary-nav a { white-space: nowrap; }
.primary-nav, .primary-nav ul { gap: 20px; }
.primary-nav a { font-size: 0.92rem; }
.nav-cta { white-space: nowrap; }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--surface); flex-direction: column; align-items: stretch;
    padding: 18px 24px 26px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none; gap: 18px;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav a { display: block; padding: 10px 0; }
  .nav-cta { align-self: flex-start; }
}

/* ---------- Formules (cartes crème sur fond bleu nuit) ---------- */
.section-navy .service-cat h3 { color: var(--ink); }
.section-navy .service-cat li { color: var(--text-muted); }
.formules .service-cat { display: flex; flex-direction: column; }
.formules .service-cat ul { flex: 1; margin-bottom: 22px; }
.formules .service-cat .btn { align-self: flex-start; }

/* ---------- Actualités / articles ---------- */
.article-card { display: block; color: inherit; text-decoration: none; }
.article-card:hover { text-decoration: none; }
.article-card-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 22px 22px;
  background: linear-gradient(0deg, rgba(10, 38, 71, 0.95) 55%, rgba(10, 38, 71, 0));
  color: #fff; display: flex; flex-direction: column; gap: 6px;
}
.article-card-text small { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); }
.article-card-text strong { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; }
.article-card-text span { font-size: 0.84rem; color: rgba(255, 255, 255, 0.82); line-height: 1.45; }

.article-body { max-width: 760px; margin: 0 auto; }
.article-body h3 { margin: 30px 0 8px; font-size: 1.2rem; }
.article-body p { font-size: 1.02rem; line-height: 1.75; color: var(--text); }
.article-body .article-note {
  margin-top: 30px; padding: 16px 18px; border-radius: var(--radius-md);
  background: rgba(21, 101, 192, 0.08); font-size: 0.88rem; color: var(--text-muted);
}

/* =========================================================
   Refonte accueil : carrousel plein écran, chiffres sur photo,
   collage, défilement des cliniques
   ========================================================= */

/* ---------- Carrousel hero ---------- */
.hero-slider {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  min-height: clamp(580px, 88vh, 800px);
}
.hs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s; display: flex; align-items: center; }
.hs-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hs-slide.is-active .hs-img { animation: kenburns 11s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hs-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(10, 38, 71, 0.92) 0%, rgba(10, 38, 71, 0.72) 42%, rgba(10, 38, 71, 0.18) 100%),
              linear-gradient(0deg, rgba(10, 38, 71, 0.55) 0%, transparent 38%);
}
.hs-content { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 150px; width: 100%; }
.hs-content > * { max-width: 640px; }
.hs-content h1, .hs-title { color: #fff; font-family: var(--font-display); font-weight: 600; line-height: 1.12; font-size: clamp(2.1rem, 4.6vw, 3.7rem); margin: 0 0 18px; }
.hs-lead { color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; max-width: 52ch; }
.hs-content .eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; backdrop-filter: blur(6px); }
.hs-slide .hs-content > * { opacity: 0; transform: translateY(24px); }
.hs-slide.is-active .hs-content > * { animation: hsIn 0.8s cubic-bezier(0.22, 0.9, 0.32, 1) forwards; }
.hs-slide.is-active .hs-content > *:nth-child(1) { animation-delay: 0.25s; }
.hs-slide.is-active .hs-content > *:nth-child(2) { animation-delay: 0.4s; }
.hs-slide.is-active .hs-content > *:nth-child(3) { animation-delay: 0.55s; }
.hs-slide.is-active .hs-content > *:nth-child(4) { animation-delay: 0.7s; }
@keyframes hsIn { to { opacity: 1; transform: none; } }

.hero-slider .hero-sky { z-index: 2; }
.hs-controls { position: absolute; left: 0; right: 0; bottom: 118px; z-index: 5; }
.hs-controls-inner { display: flex; align-items: center; gap: 18px; }
.hs-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(10, 38, 71, 0.35); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, transform 0.2s ease;
}
.hs-arrow:hover { background: var(--clay); transform: scale(1.06); }
.hs-dots { display: flex; gap: 10px; }
.hs-dot { width: 34px; height: 5px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, 0.35); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.hs-dot.is-active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dotFill var(--hs-delay, 6.5s) linear forwards; }
.hs-paused .hs-dot.is-active::after { animation-play-state: paused; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-slider .ticker { position: absolute; left: 0; right: 0; bottom: 48px; margin-top: 0; z-index: 3; }
.hero-slider .section-wave { z-index: 4; }

/* ---------- Bandeau de chiffres sur photo ---------- */
.stats-band {
  position: relative; padding: 70px 0; margin: 14px 20px; border-radius: 44px; overflow: hidden;
  background: linear-gradient(rgba(10, 38, 71, 0.86), rgba(10, 38, 71, 0.9)), url("../photos/plage-tunisie.jpg") center / cover;
  background-attachment: fixed; color: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { padding: 10px; }
.stat > i { font-size: 1.4rem; color: var(--gold-light); margin-bottom: 12px; display: block; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: #fff; }
.stat > span { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }

/* ---------- Texte + collage ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.collage { position: relative; height: 520px; }
.collage-a, .collage-b { position: absolute; overflow: hidden; border-radius: 999px 999px 24px 24px / 160px 160px 24px 24px; box-shadow: var(--shadow); border: 6px solid var(--surface); }
.collage-a { width: 58%; height: 440px; left: 0; top: 0; }
.collage-b { width: 52%; height: 390px; right: 0; bottom: 0; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage-badge {
  position: absolute; left: 6%; bottom: 14px; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow);
}
.collage-badge i { color: var(--gold-light); font-size: 1.2rem; }
.collage-badge strong { display: block; font-size: 0.92rem; }
.collage-badge span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Défilement des cliniques ---------- */
.clinic-strip { padding: 34px 0 40px; overflow: hidden; }
.clinic-strip-title { text-align: center; margin: 0 0 18px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay-dark); }
.clinic-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clinic-track { display: inline-flex; gap: 14px; white-space: nowrap; animation: tickerScroll 55s linear infinite; }
.clinic-marquee:hover .clinic-track { animation-play-state: paused; }
.clinic-pill {
  display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 0.92rem; color: var(--ink);
}
.clinic-pill i { color: var(--teal); }

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .collage { height: 460px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  .hero-slider { min-height: 680px; }
  .hs-content { padding-bottom: 190px; padding-top: 40px; }
  .hs-content .btn-light { display: none; }
  .hs-lead { font-size: 1rem; }
  .hs-content h1, .hs-title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hs-arrow { width: 38px; height: 38px; }
  .stats-band { margin: 10px; border-radius: 28px; padding: 50px 0; background-attachment: scroll; }
  .collage { height: 400px; }
  .collage-a { height: 340px; }
  .collage-b { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide.is-active .hs-img { animation: none; }
  .hs-slide .hs-content > * { opacity: 1; transform: none; animation: none !important; }
  .hs-dot.is-active::after { animation: none; transform: scaleX(1); }
  .clinic-track { animation: none; }
}

/* ---------- Barre d'infos en haut ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, 0.88); font-size: 0.82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px; }
.topbar a { color: rgba(255, 255, 255, 0.9); white-space: nowrap; }
.topbar a:hover { color: var(--gold-light); text-decoration: none; }
.topbar i { color: var(--gold-light); margin-right: 6px; }
.topbar-phones { display: flex; gap: 22px; }
@media (max-width: 760px) {
  .topbar-inner { justify-content: center; }
  .topbar-inner > a:first-child, .topbar-inner > a:last-child { display: none; }
  .topbar-phones { gap: 14px; font-size: 0.78rem; }
}

/* ---------- Diapositives claires (personnes souriantes) ---------- */
.hs-light .hs-img { left: var(--il, 30%); width: calc(100% - var(--il, 30%)); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%); mask-image: linear-gradient(90deg, transparent 0%, #000 28%); }
.hs-light { background: #fff; }
.hs-light .hs-overlay {
  background: linear-gradient(0deg, rgba(10, 38, 71, 0.82) 0%, rgba(10, 38, 71, 0.45) 14%, rgba(10, 38, 71, 0) 30%),
              linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 34%, rgba(255, 255, 255, 0) 62%);
}
.hs-light .hs-content h1, .hs-light .hs-title { color: var(--ink); }
.hs-light .hs-lead { color: var(--text-muted); }
.hs-light .hs-content .eyebrow { background: rgba(21, 101, 192, 0.1); color: var(--clay-dark); backdrop-filter: none; }
.hs-light .hs-content .btn-light { background: #fff; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }

@media (max-width: 760px) {
  .hs-light .hs-img { left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hs-light .hs-overlay { background: linear-gradient(0deg, rgba(10, 38, 71, 0.7) 0%, rgba(10, 38, 71, 0) 26%), linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.78) 55%, rgba(255, 255, 255, 0.35) 100%); }
}
.hs-light .hs-lead { max-width: 46ch; }

/* ---------- Photos qui défilent (fondu + léger zoom) ---------- */
[data-rotate] { overflow: hidden; }
[data-rotate] .rot-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02);
  transition: opacity 1.2s ease, transform 7s ease-out;
}
[data-rotate] .rot-img.is-on { opacity: 1; transform: scale(1.1); }
.photo-card[data-rotate]:hover .rot-img { transform: scale(1.1); }
.photo-card[data-rotate] figcaption { z-index: 2; }
.collage-a[data-rotate], .collage-b[data-rotate] { overflow: hidden; }

/* ---------- Cartes qui arrivent de haut, bas, gauche, droite ---------- */
.reveal.fly { transition: opacity 0.9s ease, transform 1s cubic-bezier(0.22, 0.9, 0.32, 1); }
.reveal.fly:not(.in-view) { opacity: 0; }
.reveal.fly-left:not(.in-view)   { transform: translateX(-130px) rotate(-3deg); }
.reveal.fly-right:not(.in-view)  { transform: translateX(130px) rotate(3deg); }
.reveal.fly-top:not(.in-view)    { transform: translateY(-110px) scale(0.94); }
.reveal.fly-bottom:not(.in-view) { transform: translateY(110px) scale(0.94); }
.reveal.fly.settled { transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease; }

@media (prefers-reduced-motion: reduce) {
  [data-rotate] .rot-img { transition: none; transform: none; }
  .reveal.fly:not(.in-view) { transform: none; opacity: 1; }
}

/* =========================================================
   Sélecteur de langue + version arabe (RTL)
   ========================================================= */
.topbar-right { display: flex; align-items: center; gap: 18px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; padding: 3px 12px;
  font-weight: 700; color: #fff;
}
.lang-switch:hover { background: rgba(255, 255, 255, 0.14); }
.lang-switch i { margin: 0; }

@media (max-width: 760px) {
  .topbar-inner { justify-content: space-between; gap: 8px; }
  .topbar-inner > a:first-child { display: none; }
  .topbar-right a:not(.lang-switch) { display: none; }
  .topbar-phones { gap: 10px; font-size: 0.74rem; }
}

/* ---------- Typographie arabe ---------- */
html[lang="ar"] {
  --font-body: 'Cairo', 'Manrope', system-ui, sans-serif;
  --font-display: 'Cairo', 'Manrope', system-ui, sans-serif;
  --font-mono: 'Cairo', 'Manrope', system-ui, sans-serif;
}
html[lang="ar"] * { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ar"] body { line-height: 1.9; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .hs-title, html[lang="ar"] .hs-content h1 { line-height: 1.45; font-weight: 700; }
html[lang="ar"] .brand-text strong, html[lang="ar"] .brand-text small { font-family: 'Manrope', sans-serif; }
html[lang="ar"] .eyebrow { font-weight: 700; font-size: 0.86rem; }
html[lang="ar"] .stat > span, html[lang="ar"] .clinic-strip-title, html[lang="ar"] .hub-label { font-size: 0.86rem; }

/* ---------- Sens de lecture ---------- */
html[dir="rtl"] .scroll-progress { left: auto; right: 0; }
html[dir="rtl"] .float-whatsapp { right: auto; left: 22px; }
html[dir="rtl"] .back-to-top { right: auto; left: 26px; }
html[dir="rtl"] .ticker, html[dir="rtl"] .clinic-marquee { direction: ltr; }

html[dir="rtl"] .hs-overlay {
  background: linear-gradient(265deg, rgba(10, 38, 71, 0.92) 0%, rgba(10, 38, 71, 0.72) 42%, rgba(10, 38, 71, 0.18) 100%),
              linear-gradient(0deg, rgba(10, 38, 71, 0.55) 0%, transparent 38%);
}
html[dir="rtl"] .hs-light .hs-img {
  right: auto; left: 0; width: calc(100% - var(--il, 30%));
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 28%); mask-image: linear-gradient(270deg, transparent 0%, #000 28%);
}
html[dir="rtl"] .hs-light .hs-overlay {
  background: linear-gradient(0deg, rgba(10, 38, 71, 0.82) 0%, rgba(10, 38, 71, 0.45) 14%, rgba(10, 38, 71, 0) 30%),
              linear-gradient(270deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 34%, rgba(255, 255, 255, 0) 62%);
}
@media (max-width: 760px) {
  html[dir="rtl"] .hs-light .hs-img { left: 0; right: auto; width: 100%; -webkit-mask-image: none; mask-image: none; }
  html[dir="rtl"] .hs-light .hs-overlay { background: linear-gradient(0deg, rgba(10, 38, 71, 0.7) 0%, rgba(10, 38, 71, 0) 26%), linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.78) 55%, rgba(255, 255, 255, 0.35) 100%); }
}

html[dir="rtl"] .collage-a { left: auto; right: 0; }
html[dir="rtl"] .collage-b { right: auto; left: 0; }
html[dir="rtl"] .collage-badge { left: auto; right: 6%; }

html[dir="rtl"] .faq-item summary { padding: 18px 0 18px 34px; }
html[dir="rtl"] .faq-item summary::after { right: auto; left: 0; }
html[dir="rtl"] .faq-item p { padding-right: 0; padding-left: 10px; }

html[dir="rtl"] .timeline-rail::before { left: 22px; right: 22px; }
html[dir="rtl"] .timeline-rail::after { left: auto; right: 22px; background: linear-gradient(270deg, var(--clay), var(--teal), var(--gold)); }

html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="number"] { direction: ltr; text-align: right; }
html[dir="rtl"] .field input::placeholder { text-align: right; }
html[dir="rtl"] .hub-map svg text { direction: rtl; }

/* RTL : le lien d'évitement ne doit pas créer de défilement horizontal */
html[dir="rtl"] .skip-link { left: auto; right: -999px; border-radius: 0 0 0 8px; }
html[dir="rtl"] .skip-link:focus { right: 0; }
html[dir="rtl"] body { overflow-x: clip; }

/* ---------- Flotte / transport ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 18px; margin-top: 8px; }
.fleet-item { position: relative; margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--sky); }
.fleet-item:nth-child(1), .fleet-item:nth-child(4), .fleet-item:nth-child(7), .fleet-item:nth-child(8) { grid-column: span 2; }
.fleet-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.fleet-item:hover img { transform: scale(1.05); }
.fleet-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; color: #fff; font-weight: 600; font-size: 0.92rem; background: linear-gradient(to top, rgba(8, 30, 60, 0.82), transparent); }
.fleet-cta { text-align: center; margin-top: 30px; }
@media (max-width: 900px) {
  .fleet-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .fleet-item:nth-child(7), .fleet-item:nth-child(8) { grid-column: span 1; }
}
@media (max-width: 520px) { .fleet-grid { gap: 12px; grid-auto-rows: 140px; } .fleet-item figcaption { font-size: 0.8rem; padding: 22px 10px 8px; } }

/* ---------- Mosaïque photos (accueil) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.mosaic-tile { position: relative; margin: 0; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow); background: var(--sky); }
.mosaic-tile.t-big { grid-column: span 2; grid-row: span 2; }
.mosaic-tile.t-wide { grid-column: span 2; }
.mosaic-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 46px 18px 14px; color: #fff; background: linear-gradient(0deg, rgba(10, 38, 71, 0.88), rgba(10, 38, 71, 0)); }
.mosaic-tile figcaption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.mosaic-tile figcaption span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.82); }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 12px; }
  .mosaic-tile.t-big { grid-row: span 2; }
}
@media (max-width: 520px) {
  .mosaic { grid-auto-rows: 140px; }
  .mosaic-tile.t-big, .mosaic-tile.t-wide { grid-column: span 2; grid-row: span 1; }
  .mosaic-tile figcaption { padding: 30px 12px 10px; }
}

/* Texte de la marque aligné sur le nouveau logo (bleu + or) */
.brand-text strong em { color: #b9851c; }
.brand-text small { color: #1f5fa8; }
