/* ============================================================
   FARAH — Refonte moderne
   ============================================================ */

:root {
  /* Icônes SVG utilisées en CSS (::before / ::after) — aucun emoji, aucun glyphe typographique */
  --ico-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --ico-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2c.9 4.6 4.5 8.2 9.1 9.1v1.8c-4.6.9-8.2 4.5-9.1 9.1h-1.8c-.9-4.6-4.5-8.2-9.1-9.1v-1.8c4.6-.9 8.2-4.5 9.1-9.1z'/%3E%3C/svg%3E");

  /* TEAL — Farah brand */
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-soft: #f1f7f7;
  --ink: #008182;
  /* --ink-2: #2c4d4e; */
  --ink-2: #333333;
  --ink-3: #5a7475;
  --line: #d8e6e6;
  --line-2: #e7efef;

  --brand: #007f82;
  --brand-2: #008182;
  --brand-soft: #e0f1f1;
  --brand-tint: #b9dede;
  --accent: #008182;
  --accent-soft: #d2e3e3;
  --gold: #c08a3e;
  --emerald: #2d6a4f;
  --danger: #b6402a;
  --urgent: #d94a2d;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm:
    0 1px 2px rgba(14, 31, 36, 0.06), 0 1px 3px rgba(14, 31, 36, 0.04);
  --shadow-md:
    0 8px 24px -10px rgba(14, 31, 36, 0.18), 0 2px 6px rgba(14, 31, 36, 0.06);
  --shadow-lg: 0 30px 60px -25px rgba(14, 31, 36, 0.28);

  --font-display: Montserrat, sans-serif;
  --font-sans: Montserrat, sans-serif;

  --container: 1400px;
  --gutter: clamp(20px, 4vw, 40px);
}

[data-palette="warm"] {
  --bg: #fdfbf7;
  --bg-soft: #f5efe3;
  --line: #e6dccd;
}

[data-palette="deep"] {
  --bg: #f4f8f8;
  --bg-soft: #e3eded;
  --line: #cddede;
}

[data-dark="true"] {
  --bg: #07181a;
  --bg-elev: #0f2426;
  --bg-soft: #0f2426;
  --ink: #eaf6f6;
  --ink-2: #c4d8d9;
  --ink-3: #87a0a1;
  --line: #1a3133;
  --line-2: #15282a;
  --brand-soft: #0f3537;
  --brand-tint: #1a4d4f;
  --accent: #007f82;
  --accent-soft: #0f3537;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* `overflow-x: hidden` fait de l'élément un conteneur de défilement, ce qui
   neutralise `position: sticky` sur toute la page — c'est ce qui empêchait
   l'en-tête de rester en haut. `clip` bloque le débordement horizontal de la
   même façon SANS créer ce conteneur, donc sticky fonctionne.
   La déclaration `hidden` reste en premier comme repli pour les navigateurs
   anciens qui ignorent `clip`. */
html {
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}

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

.serif {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--brand-2);
  color: #ffffff;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 24px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.92;
}
.topbar-item strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-socials {
  display: inline-flex;
  gap: 4px;
}
.topbar-socials a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.85;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.topbar-socials a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}
.topbar-pill {
  background: var(--brand);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    transform 0.15s,
    background 0.2s;
}
.topbar-pill:hover {
  transform: translateY(-1px);
  background: #00969a;
}
@media (max-width: 860px) {
  .topbar-item:nth-child(2) {
    display: none;
  }
  .topbar-pill {
    display: none;
  }
}
@media (max-width: 540px) {
  .topbar {
    display: none;
  }
}

/* ---------- Header / nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.2s,
    box-shadow 0.2s;
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 15px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  text-decoration: none;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .logo-img {
    height: 42px;
  }
}
.cert-badge {
  height: 44px;
  width: auto;
  display: block;
  opacity: 0.92;
}
.cert-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) {
  .cert-wrap {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  position: relative;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-link .caret {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
  opacity: 0.6;
}
.nav-item:hover .nav-link {
  background: var(--bg-soft);
  color: var(--ink);
}
.nav-item:hover .nav-link .caret {
  transform: rotate(180deg);
}
.nav-item.active .nav-link {
  color: var(--brand);
}

.megamenu {
  position: absolute;
  top: calc(100% + 0px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  min-width: 385px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.nav-item:hover .megamenu,
.nav-item:focus-within .megamenu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.megamenu.wide {
  min-width: 640px;
}
.megamenu.huge {
  min-width: 780px;
}

.mm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
}
.mm-grid.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.mm-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s;
}
.mm-item:hover {
  background: var(--bg-soft);
}
.mm-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mm-item .label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.mm-item .desc {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.4;
}

.mm-feature {
  background: var(--brand);
  color: #f1ece1;
  border-radius: var(--r-md);
  padding: 22px;
  margin-top: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.mm-feature .num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
}
.mm-feature .lbl {
  font-size: 13px;
  opacity: 0.85;
  max-width: 220px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.15s,
    background 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--brand);
  color: #fff;
}
.nav-cta svg {
  width: 16px;
  height: 16px;
}

.menu-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1100px) {
  .nav,
  .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* ---------- Mobile sheet ---------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(6, 31, 32, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 100vw);
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -6px 0 48px rgba(6, 31, 32, 0.2);
  overflow: hidden;
}
.mobile-sheet.open {
  transform: translateX(0);
}

.mobile-sheet header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.ms-nav {
  flex: 1;
  overflow-y: auto;
}

.ms-item {
  border-bottom: 1px solid var(--line-2);
}

.ms-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.ms-top:hover {
  color: var(--brand);
}
.ms-top svg {
  transition: transform 0.25s;
  color: var(--ink-3);
  flex-shrink: 0;
}
.ms-item.open .ms-top {
  color: var(--brand);
}
.ms-item.open .ms-top svg {
  transform: rotate(180deg);
}

.ms-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.ms-item.open .ms-sub {
  grid-template-rows: 1fr;
}
.ms-sub-inner {
  overflow: hidden;
}
.ms-sub a {
  display: block;
  padding: 9px 0 9px 14px;
  color: var(--ink-3);
  font-size: 13.5px;
  border-left: 2px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.ms-sub a:last-child {
  margin-bottom: 8px;
}
.ms-sub a:hover {
  color: var(--brand);
  border-left-color: var(--brand-tint);
}

.ms-footer {
  flex-shrink: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.ms-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s;
}
.ms-footer a:hover {
  background: #005f62;
}

/* ---------- Hero ---------- */
.hero {
  /* padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px); */
  padding: clamp(1px, 0vw, 74px) 0 clamp(55px, 4vw, 77px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hc-1,
  .hc-2 {
    display: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 7px 14px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand-soft);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--emerald) 22%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--emerald) 22%, transparent);
  }
  50% {
    box-shadow: 0 0 0 8px color-mix(in oklab, var(--emerald) 0%, transparent);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 22px 0 24px;
  color: #0F3D3E;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand);
}
.hero p.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);/*
  max-width: 520px;*/
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.lede-highlight {
  color: var(--brand);
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 0.15s,
    background 0.2s,
    border-color 0.2s;
    cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--brand-2);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand);
  color: #fff;
}
.btn-urgent {
  background: var(--urgent);
  color: #fff;
}
.btn-urgent:hover {
  background: color-mix(in oklab, var(--urgent) 85%, black);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--bg-elev);
  border-color: var(--ink);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}
.hero-meta .item:last-child {
  border-right: none;
}
.hero-meta .item .k {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1;
  color: #0F3D3E;
  /* color: var(--ink); */
  white-space: nowrap;
  font-weight: 700;
}
.hero-meta .item .l {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}
@media (max-width: 600px) {
  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
  .hero-meta .item:nth-child(2) {
    border-right: none;
  }
  .hero-meta .item:nth-child(3),
  .hero-meta .item:nth-child(4) {
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-soft);
  isolation: isolate;
}

/* Hero video carousel */
.hero-video-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.hv-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: white;
}
.hv-slide.active {
  opacity: 1;
}
.hv-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}
.hv-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 7s linear;
}
.hv-slide.active .hv-bg {
  transform: scale(1.08);
}

/* Scene backgrounds — position:relative omitted intentionally;
   .hv-bg already declares position:absolute which must win */
.hv-scene-1 {
  background: #061f20;
}
.hv-scene-1::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 31, 32, 0.18) 0%,
    rgba(6, 31, 32, 0.62) 100%
  );
}
.hv-scene-2 {
  background: #061f20;
}
.hv-scene-2::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 31, 32, 0.15) 0%,
    rgba(6, 31, 32, 0.55) 100%
  );
}
@keyframes hvSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.hv-scene-3 {
  background: #061f20;
}
.hv-scene-3::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 31, 32, 0.25) 0%,
    rgba(6, 31, 32, 0.65) 100%
  );
}
.hv-scene-4 {
  background: #061f20;
}
.hv-scene-4::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 31, 32, 0.15) 0%,
    rgba(6, 31, 32, 0.6) 100%
  );
}
.hv-scene-5,
.hv-scene-6 {
  background: #061f20;
}
.hv-scene-5::after,
.hv-scene-6::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 31, 32, 0.18) 0%,
    rgba(6, 31, 32, 0.62) 100%
  );
}

.hv-caption {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hv-caption .num {
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.75;
}
.hv-caption .t {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  margin-top: 8px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.hv-caption .s {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 6px;
  max-width: 80%;
}

.hv-controls {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.hv-dot {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.hv-dot.active {
  background: rgba(255, 255, 255, 0.25);
}
.hv-dot.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: white;
  width: 0;
  animation: hvProg 5s linear forwards;
}
@keyframes hvProg {
  to {
    width: 100%;
  }
}

.hv-badge {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: white;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hv-badge .live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.35);
  animation: pulse 1.5s ease infinite;
}
.hero-card {
  position: absolute;
  background: var(--bg-elev);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.hc-1 {
  top: 24px;
  right: -8px;
  max-width: 220px;
  z-index: 4;
}
.hc-2 {
  bottom: 28px;
  left: -16px;
  max-width: 240px;
  z-index: 4;
}
.hc-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.hc-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
}
.hc-sub {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.hc-bar {
  margin-top: 10px;
  height: 6px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.hc-bar > span {
  display: block;
  height: 100%;
  background: var(--emerald);
  border-radius: 999px;
  width: 78%;
}

/* Hero centered variant */
.hero-centered .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.hero-centered .hero-visual {
  width: 100%;
  max-width: 1180px;
  aspect-ratio: 16/8;
  margin-top: 40px;
}
.hero-centered .hv-controls {
  bottom: 24px;
  right: 24px;
}
.hero-centered h1 {
  font-size: clamp(56px, 9vw, 64px);
}
.hero-centered p.lede {
  margin: 0 auto;
}
.hero-centered .hero-meta {
  justify-content: center;
}
.hero-centered .hc-1,
.hero-centered .hc-2 {
  display: none;
}

/* ---------- Quick-access strip ---------- */
.qa-strip {
  /* background: var(--ink); */
  background: #0F3D3E;
  color: var(--bg);
  padding: 24px 0;
}
.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.qa-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  transition:
    background 0.2s,
    transform 0.15s;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.qa-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.qa-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qa-card.urgent .icon {
  background: var(--urgent);
  color: #fff;
}
.qa-card .t {
  font-weight: 600;
  font-size: 15px;
}
.qa-card .s {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

/* ---------- Section primitives ---------- */
.section {
  padding: clamp(60px, 8vw, 110px) 0;
  overflow: hidden;
  max-width: 100%;
}
.section.tinted {
  background: var(--bg-soft);
}
.section.inverted {
  background: var(--brand-2);
  /* background: #2d2d2d; */
  color: #fff;
}
.section.inverted .ink-3,
.section.inverted .lede {
  color: rgba(255, 255, 255, 0.75);
}

.section-head {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
}
@media (max-width: 800px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 14px 0 0;
  font-weight: 700;
  max-width: 16ch;
}
.section-head .blurb {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  max-width: 50ch;
}
.section-head .tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}

/* ---------- Specialités grid ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 1000px) {
  .spec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-tile {
  background: var(--bg-elev);
  /* color: var(--ink); */
  color: #333;
  text-decoration: none;
  padding: 24px 22px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    background 0.25s,
    color 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.spec-tile:hover {
  background: var(--brand-2);
  color: #fff;
}
.spec-tile:hover .spec-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}
.spec-tile:hover .spec-count {
  color: rgba(255, 255, 255, 0.6);
}

.spec-tile .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.spec-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.spec-tile:hover .spec-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.spec-arrow {
  opacity: 0.4;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.spec-name {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  margin-top: 26px;
  font-weight: 600;
}
.spec-count {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ---------- Services swiper / row ---------- */
.svc-marquee {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.svc-marquee::-webkit-scrollbar {
  height: 6px;
}
.svc-marquee::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.svc-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.svc-card .ph {
  height: 160px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.svc-card .ph .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--bg-elev);
  color: var(--ink);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.svc-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 18px 0 8px;
  line-height: 1.1;
}
.svc-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}
.svc-card .more {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 13.5px;
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0;
}
@media (max-width: 800px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 36px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.stat:first-child {
  border-left: 0;
}
@media (max-width: 800px) {
  .stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
  .stat:first-child,
  .stat:nth-child(2) {
    border-top: 0;
  }
}
.stat .k {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  white-space: nowrap;
}
.stat .k sup {
  font-size: 0.4em;
  opacity: 0.7;
  margin-left: 2px;
  vertical-align: super;
}
.stat .l {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1.3;
}

/* ---------- Niveaux interactive ---------- */
.levels {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .levels {
    grid-template-columns: 1fr;
  }
}

.levels-tower {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px;
}
.level-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid transparent;
}
.level-row:hover {
  background: var(--bg-soft);
}
.level-row.active {
  background: var(--brand-2);
  color: #fff;
  border-color: var(--brand-2);
}
.level-row .num {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  width: 60px;
  flex-shrink: 0;
  white-space: nowrap;
}
.level-row .num.num-rdc {
  font-size: 32px;
  letter-spacing: 0.01em;
}
.level-row .info {
  flex: 1;
}
.level-row .name {
  font-weight: 600;
  font-size: 15px;
}
.level-row .sub {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 2px;
}
.level-row.active .sub {
  opacity: 0.8;
}
.level-row .chev {
  opacity: 0.4;
}
.level-row.active .chev {
  opacity: 1;
}

.level-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}
.level-panel .tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-weight: 600;
}
.level-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 56px);
  margin: 8px 0 24px;
  line-height: 1;
}
.level-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}
.level-services li {
  list-style: none;
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.level-services li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- IRMA highlight ---------- */
.irma {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .irma {
    grid-template-columns: 1fr;
  }
}
.irma-text h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1;
  margin: 18px 0 24px;
  color:#0F3D3E;
}
.irma-text h2 em {
  font-style: italic;
  color: var(--brand);
}
.irma-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.irma-features .f .num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--brand);
  font-weight: 700;
}
.irma-features .f .t {
  font-weight: 600;
  margin-top: 6px;
  color:#0F3D3E;
}
.irma-features .f .d {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 4px;
}
.irma-visual {
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    circle at 50% 50%,
    #008182 0%,
    #061f20 60%,
    #02191a 100%
  );
}
.irma-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring {
  position: absolute;
  border: 1px solid rgba(0, 127, 130, 0.55);
  border-radius: 50%;
  animation: ringSpin 18s linear infinite;
}
.ring.r1 {
  width: 70%;
  height: 70%;
}
.ring.r2 {
  width: 90%;
  height: 90%;
  border-color: rgba(0, 127, 130, 0.28);
  animation-direction: reverse;
}
.ring.r3 {
  width: 45%;
  height: 45%;
  border-color: rgba(255, 255, 255, 0.22);
}
.ring::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00bcc1;
  box-shadow: 0 0 16px #00bcc1;
}
@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}
.irma-core {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(rgba(6, 31, 32, 0.15), rgba(6, 31, 32, 0.35)),
    url("assets/FARAH/irm.jpg") center / cover no-repeat,
    radial-gradient(circle at 35% 35%, #ffffff, #007f82 70%, #008182 100%);
  box-shadow:
    0 0 80px rgba(0, 188, 193, 0.45),
    inset 0 0 30px rgba(0, 0, 0, 0.35);
  position: relative;
}
.irma-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 12px;
}
.irma-badge .v {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}
.irma-badge .l {
  opacity: 0.7;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.irma-badge.b1 {
  top: 24px;
  left: 24px;
}
.irma-badge.b2 {
  bottom: 24px;
  right: 24px;
  text-align: right;
}
.irma-badge.b3 {
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

/* ---------- Doctors ---------- */
.doctors-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.chip:hover {
  border-color: var(--ink);
}
.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) {
  .doctor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .doctor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 460px) {
  .doctor-grid {
    grid-template-columns: 1fr;
  }
}

.doctor-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.doctor-photo {
  aspect-ratio: 1;
  /* Image de repli affichée pour les médecins sans image_medecin
     (ou dont le fichier photo est introuvable). */
  background:
    url("assets/icon-medecin.jpg") center / cover no-repeat,
    radial-gradient(
      ellipse at 50% 30%,
      color-mix(in oklab, var(--brand) 22%, transparent),
      transparent 60%
    ),
    var(--bg-soft);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.doctor-photo img {
  position: absolute;
  inset: 0;
  width: 100%;object-position: center top;
  height: 100%;
  object-fit: cover;
  display: block;
}
.doctor-photo .pill {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  background: var(--bg-elev);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  color: var(--brand);
}
.doctor-body {
  padding: 18px;
}
.doctor-name {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.25;
}
.doctor-spec {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.doctor-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
}

/* ---------- Patient info ---------- */
.pi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .pi-grid {
    grid-template-columns: 1fr;
  }
}
.pi-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.pi-card.accent {
  background: var(--ink);
  background: #2d2d2d;
  color: var(--bg);
}
.pi-card h3 {
  font-family: var(--font-display);
  font-size: 36px;
  margin: 0;
  line-height: 1;
}
.pi-card p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0;
}
.pi-card.accent p {
  color: rgba(247, 245, 240, 0.75);
}
.pi-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pi-checklist li {
  list-style: none;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pi-checklist .ico {
  width: 20px;
  height: 20px;
  background: var(--emerald);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pi-card .payments {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.pay-chip {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(247, 245, 240, 0.1);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(247, 245, 240, 0.15);
}
/* Pastille blanche : les logos (Djamo est noir, OM/MTN sombres) restent
   lisibles sur le fond sombre de la carte .pi-card.accent. */
.pay-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(247, 245, 240, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.pay-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pay-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.6);
}
@media (max-width: 480px) {
  .pay-logo {
    width: 40px;
    height: 40px;
  }
}

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 1000px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-3px);
}
.news-card.large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.news-thumb {
  aspect-ratio: 5/3;
  background:
    radial-gradient(
      circle at 30% 60%,
      rgba(0, 127, 130, 0.35) 0%,
      transparent 55%
    ),
    repeating-linear-gradient(
      110deg,
      color-mix(in oklab, var(--brand) 14%, var(--bg-soft)) 0 16px,
      var(--bg-soft) 16px 32px
    );
  position: relative;
  overflow: hidden;
}
.news-card.large .news-thumb {
  aspect-ratio: 16/9;
  flex: 1;
}
.news-thumb .badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  background: var(--bg-elev);
  color: var(--ink);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news-body {
  padding: 20px 22px 24px;
}
.news-meta {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  gap: 14px;
}
.news-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  margin: 10px 0 0;
}
.news-card.large .news-title {
  font-size: 32px;
}

/* ---------- Installations gallery ---------- */
.install-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.install-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md, 16px);
  background: var(--bg-soft, #eef5f5);
}
.install-card.feature {
  grid-column: span 2;
  grid-row: span 2;
}
.install-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.install-card:hover img {
  transform: scale(1.07);
}
.install-card figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(6, 31, 32, 0) 45%,
    rgba(6, 31, 32, 0.72) 100%
  );
}
.install-card .it-t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}
.install-card.feature .it-t {
  font-size: 22px;
}
.install-card .it-s {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
.install-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .install-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .install-card.feature {
    grid-column: span 2;
    grid-row: span 1;
  }
}
@media (max-width: 520px) {
  .install-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer h4 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
  opacity: 0.6;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer ul a {
  font-size: 14px;
  color: rgba(247, 245, 240, 0.8);
  transition: color 0.2s;
}
.footer ul a:hover {
  color: var(--brand-tint);
}
.footer-brand .logo-mark {
  background: var(--brand);
}
.footer-brand p {
  font-size: 14px;
  color: rgba(247, 245, 240, 0.6);
  line-height: 1.6;
  max-width: 36ch;
  margin: 16px 0 24px;
}
.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.footer-hours .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.footer-hours .row .val {
  color: rgba(247, 245, 240, 0.6);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: rgba(247, 245, 240, 0.5);
}
.footer-bottom .farah-bg {
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  font-family: var(--font-display);
  font-size: clamp(180px, 22vw, 320px);
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
  user-select: none;
}
.footer-wrap {
  position: relative;
  overflow: hidden;
}

/* ---------- Floating CTA ---------- */
.fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 70;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}
.fab-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -10px var(--brand);
  border: 0;
  transition: transform 0.2s;
}
.fab-main:hover {
  transform: scale(1.06);
}
.fab-sub {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}
.fab-sub:hover {
  transform: scale(1.06);
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Go to top ---------- */
.go-top {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 70;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.go-top--visible {
  opacity: 0;
  pointer-events: auto;
  transform: translateY(0);
}
.go-top:hover {
  background: var(--brand-d, #0a6355);
  transform: translateY(-3px) !important;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Marquee partners ---------- */
.marquee {
  overflow: hidden;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
}
.marquee-item::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-color: var(--brand);
  -webkit-mask: var(--ico-diamond) center / 14px 14px no-repeat;
  mask: var(--ico-diamond) center / 14px 14px no-repeat;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Hide tweaks panel default toggle if needed ---------- */

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding: 20px 0;
}

.payment-card {
  background: white;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  border-top: 4px solid;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  display: flex;
}

.payment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: currentColor;
  opacity: 0.03;
  transition: opacity 0.3s ease;
}

.payment-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.payment-card:hover::before {
  opacity: 0.08;
}

.payment-icon {
  margin-bottom: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
}

.payment-icon svg {
  width: 50px;
  height: 50px;
}

.payment-name {
  font-size: 0.8em;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 600;
}

.payment-description {
  color: #7f8c8d;
  font-size: 0.6em;
  margin-bottom: 15px;
  line-height: 1.5;
}

.payment-code {
  display: inline-block;
  background: #f8f9fa;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.5em;
  color: #666;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .payment-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .payment-card {
    padding: 20px 15px;
  }
}

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

/* Animation de chargement */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.payment-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.payment-card:nth-child(1) {
  animation-delay: 0.1s;
}
.payment-card:nth-child(2) {
  animation-delay: 0.2s;
}
.payment-card:nth-child(3) {
  animation-delay: 0.3s;
}
.payment-card:nth-child(4) {
  animation-delay: 0.4s;
}
.payment-card:nth-child(5) {
  animation-delay: 0.5s;
}
.payment-card:nth-child(6) {
  animation-delay: 0.6s;
}
.payment-card:nth-child(7) {
  animation-delay: 0.7s;
}


/* ---------- Contenu rédigé depuis le backoffice ---------- */
/* Liste à puces des pages éditoriales (mission, valeurs, engagements) */
.pg-list { margin: 0; padding: 0; list-style: none; }
.pg-list li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  color: var(--ink-3); line-height: 1.75; font-size: 15.5px;
}
.pg-list li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}

.pg-cms { max-width: 820px; }
.pg-cms > *:first-child { margin-top: 0; }
.pg-cms h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; margin: 40px 0 12px; color: var(--ink); }
.pg-cms h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 8px; color: var(--ink); }
.pg-cms h4 { font-size: 1rem; font-weight: 700; margin: 22px 0 6px; color: var(--ink); }
.pg-cms p, .pg-cms li { color: var(--ink-3); line-height: 1.85; font-size: 15.5px; }
.pg-cms ul, .pg-cms ol { padding-left: 22px; margin: 12px 0; }
.pg-cms li { margin-bottom: 6px; }
.pg-cms a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.pg-cms a:hover { color: var(--brand-2); }
.pg-cms img { max-width: 100%; height: auto; border-radius: 12px; margin: 20px 0; }
.pg-cms figure { margin: 24px 0; }
.pg-cms figcaption { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.pg-cms blockquote {
  border-left: 3px solid var(--brand);
  margin: 24px 0; padding: 6px 0 6px 20px;
  color: var(--ink-2); font-size: 16px; font-style: italic;
}
.pg-cms hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.pg-cms table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.pg-cms th, .pg-cms td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.pg-cms th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.pg-cms video { max-width: 100%; border-radius: 12px; margin: 20px 0; }

/* ── Médecins de l'accueil : 12 praticiens sur 2 lignes de 5 ── */
.doctor-grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1200px) { .doctor-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1000px) { .doctor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .doctor-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Bouton flottant WhatsApp (dans la pile .fab existante) ── */
.fab-whatsapp {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
}
.fab-whatsapp:hover {
  background: #1EBE5A !important;
  color: #fff !important;
}

/* ── Barre haute + header fixés au défilement ──────────────────
   Le sticky doit porter sur le conteneur qui regroupe les deux.
   Posé sur .header seul, sa course d'adhérence se limitait à la
   hauteur de #farah-header : il se décollait après quelques pixels.
   Sticky (et non fixed) : la place reste réservée dans le flux,
   aucun décalage à compenser en haut de page. */
#farah-header {
  position: sticky;
  top: 0;
  z-index: 90;
}
