/* ============================================================
   NOVACARE — Design System
   Centre Médical | Abidjan, Côte d'Ivoire
============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --brand: #1a9a9c;
  --brand-deep: #127375;
  --brand-soft: #e6f3f3;
  --accent: #aeb9b9;
  --accent-deep: #93a0a0;
  --ink: #0f1a1a;
  --ink-light: #3d5555;
  --bg: #fafaf7;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --red: #dc2626;
  --green: #16a34a;

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

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 26, 26, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 26, 26, 0.14);

  --max-w: 1400px;
  --section-py: 80px;
  --nav-h: 72px;
}

/* ── Page loader ─────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}
#page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#page-loader img.loader-logo {
  height: 56px;
  width: auto;
}
#page-loader img.loader-gif {
  width: 48px;
  height: 48px;
}

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  overflow-x: clip; /* prevents horizontal scroll without creating a scroll container */
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: clip;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--brand-deep);
}
ul {
  list-style: none;
}
address {
  font-style: normal;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}
h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}
h4 {
  font-size: 1.1rem;
}
p {
  color: var(--ink-light);
}

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  padding: 6px 0;
  position: sticky;
  top: 0;
  z-index: 200;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar__item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.topbar__sep {
  opacity: 0.4;
}
.topbar__whatsapp {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 500;
}
.topbar__whatsapp:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ── Navigation ─────────────────────────────────────────── */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(15, 26, 26, 0.06);
  position: sticky;
  top: 33px;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 48px;
  width: auto;
  max-width: fit-content;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brand);
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__list li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.nav__list li a:hover,
.nav__list li.active > a {
  color: var(--brand);
  background: var(--brand-soft);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}
.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 50;
}
.dropdown li a {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
}
.dropdown li a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.has-dropdown:hover .dropdown {
  display: block;
}
.nav__cta {
  margin-left: 12px;
}
.nav__mobile-head {
  display: none;
}
.nav__close {
  display: none;
}
.nav__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 42, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 240;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav__backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
/* Le voile est ajouté au <body> ; le tiroir, lui, vit dans .site-header.
   Or l'en-tête est « sticky » avec z-index:100 : il forme un contexte
   d'empilement, et le z-index:250 du tiroir ne vaut qu'à l'intérieur de
   celui-ci. Face au voile (240), tout l'en-tête restait donc dessous —
   le menu s'ouvrait mais était recouvert et inutilisable.
   Tant que le menu est ouvert, on remonte l'en-tête au-dessus du voile. */
body.nav-open .site-header {
  z-index: 260;
}
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}
.btn-accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--ink);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-dark:hover {
  background: #1a2e2e;
  color: #fff;
}
.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ── Flash messages ──────────────────────────────────────── */
.flash {
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.flash--success {
  background: #d1fae5;
  color: #065f46;
}
.flash--error {
  background: #fee2e2;
  color: #991b1b;
}
.flash--info {
  background: #dbeafe;
  color: #1e40af;
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  padding: var(--section-py) 0;
}
.section--alt {
  background: var(--gray-100);
}
.section--brand {
  background: var(--brand);
  color: #fff;
}
.section--brand h2,
.section--brand p,
.section--brand h3 {
  color: #fff;
}
.section--dark {
  background: var(--ink);
}
.section--dark h2,
.section--dark h3,
.section--dark p {
  color: rgba(255, 255, 255, 0.9);
}
.section__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section--brand .section__label,
.section--dark .section__label {
  color: var(--accent);
}
.section__title {
  margin-bottom: 16px;
}
.section__intro {
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 48px;
}

/* ── Grid ────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--brand-soft);
}
.card__body {
  padding: 24px;
}
.card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.card__title {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.card__excerpt {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}
.card__meta {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* Doctor card */
.doctor-card {
  text-align: center;
}
.doctor-card__photo {
  width: 100%;
  aspect-ratio: 4/4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  border-radius: var(--radius) var(--radius) 0 0;
}
.doctor-card__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-deep));
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius) var(--radius) 0 0;
}
.doctor-card__body {
  padding: 0px 10px 20px 10px;
}
.doctor-card__name {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.doctor-card__spec {
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 500;
}
.doctor-card__exp {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* Service card */
.service-card {
  padding: 32px;
}
.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon svg {
  stroke: var(--brand);
}
.service-card__title {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Insurance card */
.insurance-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brand);
}
.insurance-card__logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.insurance-card__initials {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brand);
  font-weight: 700;
  text-align: center;
}
.insurance-card__body {
  flex: 1;
  min-width: 0;
}
.insurance-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.insurance-card__type {
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.insurance-card__desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 4px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--ink);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2314A09D' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero > .container {
  position: relative;
  z-index: 3;
}
.hero__content {
  /* background: #00000061; */
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* ── Hero slideshow ──────────────────────────────────────── */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.6s ease-in-out;
  will-change: opacity;
}
.hero__slide.is-active {
  opacity: 1;
  animation: hero-kenburns 8s ease-out forwards;
}
@keyframes hero-kenburns {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

/* Images réelles — chemins relatifs depuis assets/css/style.css */
.hero__slide--1 {
  background-color: #0a1e2a;
  background-image: url("../image-des-etablissements-10.jpg");
  background-size: cover;
  background-position: center 30%;
}
.hero__slide--2 {
  background-color: #0d1b2a;
  background-image: url("../image-des-etablissements-15.jpg");
  background-size: cover;
  background-position: center;
}
.hero__slide--3 {
  background-color: #091820;
  background-image: url("../image-des-etablissements-05.jpg");
  background-size: cover;
  background-position: center;
}
.hero__slide--4 {
  background-color: #0f1c28;
  background-image: url("../image-des-etablissements-20.jpg");
  background-size: cover;
  background-position: center 20%;
}

/* Overlay multicouche : lisibilité texte + profondeur visuelle
   Renforcé pour les images médicales claires (fond blanc/clair) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* background initial */
  /* background:
    linear-gradient(to top,  rgba(8,18,26,.450) 0%, rgba(8,18,26,.400) 40%, rgba(8,18,26,.350) 100%),
    linear-gradient(to right, rgba(8,18,26,.420) 0%, rgba(8,18,26,.380) 55%, rgba(8,18,26,.280) 100%); */

  /* background modifier */
  background:
    linear-gradient(
      to top,
      rgb(8 18 26 / 60%) 0%,
      rgb(8 18 26 / 60%) 40%,
      rgb(8 18 26 / 46%) 100%
    ),
    linear-gradient(
      to right,
      rgb(8 18 26 / 63%) 0%,
      rgba(8, 18, 26, 0.235) 55%,
      rgba(8, 18, 26, 0.12) 100%
    );
}
.hero__overlay::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 420px;
  height: 3px;
  background: linear-gradient(to right, #14a09d, transparent);
  opacity: 0.55;
}

/* ── Navigation dots ─────────────────────────────────────── */
.hero__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition:
    background 0.35s,
    width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s;
}
.hero__dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.35);
}
.hero__dot.is-active {
  width: 36px;
  background: rgba(26, 154, 156, 0.18);
  border-color: rgba(26, 154, 156, 0.45);
}
.hero__dot.is-active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #14a09d;
  border-radius: inherit;
  animation: dot-fill 6s linear forwards;
}
@keyframes dot-fill {
  to {
    width: 100%;
  }
}
.hero__label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero__sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  /* background: rgba(255, 255, 255, 0.1); */
  /* background: #00000061; */
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 64px;
}
.hero__stat {
  /* background: rgba(255, 255, 255, 0.04); */
  background: rgba(26, 154, 156, 0.4);
  padding: 24px;
  text-align: center;
}
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
}
.hero__stat span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Page header (inner pages) ───────────────────────────── */
.page-header {
  background-color: var(--ink);
  background-image:
    linear-gradient(
      135deg,
      rgba(10, 30, 42, 0.29) 0%,
      rgba(14, 80, 78, 0.284) 100%
    ),
    url("../image-des-etablissements-18.jpg");
  background-size: cover;
  background-position: center;
  padding: 60px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
}
.page-header p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.breadcrumb a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.9);
}
.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}
.breadcrumb__current {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--brand);
  padding: 32px 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.stats-bar__item {
  background: var(--brand);
  padding: 24px;
  text-align: center;
}
.stats-bar__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--white);
}
.stats-bar__label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-label .required {
  color: var(--red);
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 154, 156, 0.12);
}
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}
.form-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 4px;
}
.form-hint {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ── Filters ─────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--ink);
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border: 1.5px solid var(--gray-200);
  color: var(--ink);
  background: var(--white);
  transition: all 0.2s;
}
.pagination a:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.pagination .current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ── Article content ─────────────────────────────────────── */
.article-body {
  max-width: 720px;
}
.article-body h2,
.article-body h3 {
  margin: 32px 0 16px;
}
.article-body p {
  margin-bottom: 16px;
  line-height: 1.8;
}
.article-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-body li {
  margin-bottom: 8px;
  color: var(--ink-light);
}
.article-body blockquote {
  border-left: 4px solid var(--brand);
  padding: 16px 20px;
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  color: var(--ink);
}
.article-body strong {
  color: var(--ink);
}

/* ── Values list ─────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.value-item {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow);
}
.value-item__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--brand-soft);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 12px;
}
.value-item__title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* ── Go to Top ───────────────────────────────────────────── */
.go-top {
  /* position: fixed; */
  bottom: 92px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 2px solid var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 26, 26, 0.12);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.2s,
    color 0.2s;
}
.go-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.go-top:hover {
  background: var(--brand);
  color: var(--white);
}

/* ── WhatsApp FAB ────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  margin-top: 10px;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__col--brand {
}
.footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer__logo img {
  height: 65px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
}
.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
.footer__group {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition:
    background 0.2s,
    color 0.2s;
}
.footer__social a:hover {
  background: var(--brand);
  color: #fff;
}
.footer__heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.footer__links li a:hover {
  color: var(--brand);
}
.footer__address {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__address p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.footer__address svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
}
.footer__address a {
  color: rgba(255, 255, 255, 0.7);
}
.footer__address a:hover {
  color: var(--brand);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer__legal a {
  color: rgba(255, 255, 255, 0.4);
}
.footer__legal a:hover {
  color: var(--brand);
}

/* ── CTA Band ────────────────────────────────────────────── */
.cta-band {
  background-color: var(--brand-deep);
  background-image:
    linear-gradient(
      135deg,
      rgba(26, 154, 156, 0.284) 0%,
      rgba(10, 64, 62, 0.93) 100%
    ),
    url("../image-des-etablissements-25.jpg");
  background-size: cover;
  background-position: bottom center;
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 12px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}
.cta-band__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Detail page layout ──────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.detail-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}
.sidebar-card h4 {
  margin-bottom: 16px;
  font-size: 1rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
  }
}
@media (max-width: 768px) {
  :root {
    --section-py: 56px;
  }
  .grid-2,
  .grid-3,
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* ── Burger visible + animation X ── */
  .nav__burger {
    display: flex;
  }
  .nav__burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav__burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ── Backdrop ── */
  .nav__backdrop {
    display: block;
  }

  /* ── Drawer latéral ── */
  .nav__menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 0 40px;
    margin-left: 0;
    z-index: 250;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    transition:
      transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.35s;
    box-shadow: none;
  }
  .nav__menu.open {
    transform: translateX(0);
    box-shadow: -8px 0 48px rgba(10, 30, 42, 0.22);
  }

  /* ── En-tête mobile (logo + fermer) ── */
  .nav__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    min-height: 66px;
    flex-shrink: 0;
  }
  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--gray-200);
    border-radius: 50%;
    background: none;
    cursor: pointer;
    color: var(--ink);
    transition:
      background 0.2s,
      color 0.2s,
      border-color 0.2s;
    flex-shrink: 0;
  }
  .nav__close:hover {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: var(--brand);
  }

  /* ── Liste de navigation ── */
  .nav__list {
    flex-direction: column;
    gap: 0;
  }
  .nav__list > li {
    border-bottom: 1px solid var(--gray-100);  width: 100%;
  }
  .nav__list li a {
    padding: 15px 20px;
    border-radius: 0;
    font-size: 0.97rem;
    border-bottom: none;
  }

  /* ── Dropdown mobile ── */
  .dropdown {
    position: static;
    box-shadow: none;
    padding: 0;
    background: var(--gray-50);
    border-radius: 0;
    border-top: 1px solid var(--gray-100);
  }
  .dropdown li {
    border-bottom: none;
  }
  .dropdown li a {
    padding: 11px 20px 11px 32px;
    font-size: 0.88rem;
    color: var(--ink-light);
  }
  .has-dropdown:hover .dropdown {
    display: none;
  }
  .has-dropdown.open .dropdown {
    display: block;
  }
  .has-dropdown > a svg {
    transition: transform 0.25s ease;
  }
  .has-dropdown.open > a svg {
    transform: rotate(180deg);
  }

  /* ── Bouton RDV ── */
  .nav__cta {
    margin: 20px 20px 0;
    text-align: center;
    display: block;
  }

  /* ── Reste ── */
  .hero {
    min-height: 400px;
  }
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
  }
  .topbar__item:nth-child(3),
  .topbar__sep {
    display: none;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .insurance-card {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Inline grids (styles="grid-template-columns:…") → colonne unique */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Réduire le gap sur les grids inline en mobile */
  [style*="grid-template-columns"][style*="gap:60px"],
  [style*="grid-template-columns"][style*="gap:48px"],
  [style*="grid-template-columns"][style*="gap:40px"] {
    gap: 28px !important;
  }
}
@media (max-width: 480px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   ACCUEIL — photos illustratives des services et des machines
   ============================================================ */
.service-card { overflow: hidden; }
/* La photo occupe toute la largeur de la carte, malgré son padding */
.service-card__photo {
  margin: -32px -32px 24px;
  overflow: hidden;
  background: var(--brand-soft);
}
.service-card__photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.service-card:hover .service-card__photo img { transform: scale(1.05); }

/* Cartes du plateau technique : format plus compact */
.equipement-card .service-card__photo img { height: 165px; }

@media (max-width: 720px) {
  .service-card__photo img,
  .equipement-card .service-card__photo img { height: 200px; }
}
/* Sur mobile, un équipement par ligne : la carte occupe toute la grille,
   quel que soit le nombre de colonnes de .grid-4. */
@media (max-width: 768px) {
  .equipement-card { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card__photo img { transition: none; }
}

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

/* ── Bandeau des services défilant (accueil) ── */
.nova-band { overflow: hidden; }
.nova-band .container { margin-bottom: 40px; }
.nova-marquee { position: relative; overflow: hidden; }
.nova-marquee-track { display: flex; width: max-content; animation: novaMarquee 52s linear infinite; }
.nova-marquee:hover .nova-marquee-track { animation-play-state: paused; }
.nova-marquee-card {
  position: relative; flex: 0 0 auto; margin: 0 22px 0 0;
  width: 330px; height: 420px; border-radius: var(--r-md, 8px); overflow: hidden;
  background: var(--brand-soft);
  box-shadow: 0 28px 56px -30px rgba(15,26,26,.45);
}
.nova-marquee-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.nova-marquee-card:hover img { transform: scale(1.06); }
.nova-marquee-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 22px 20px;
  display: flex; align-items: baseline; gap: 12px; color: #fff;
  background: linear-gradient(to top, rgba(7,46,45,.9), rgba(7,46,45,.22) 62%, transparent);
}
.nova-marquee-idx   { font-size: 11px; letter-spacing: .18em; font-weight: 700; opacity: .85; }
.nova-marquee-label { font-size: 19px; font-weight: 600; line-height: 1.15; }
.nova-marquee-fade { position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none; }
.nova-marquee-fade-l { left: 0;  background: linear-gradient(to right, var(--bg-alt), transparent); }
.nova-marquee-fade-r { right: 0; background: linear-gradient(to left,  var(--bg-alt), transparent); }
/* -50 % = une série complète : boucle invisible */
@keyframes novaMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .nova-marquee-card { width: 235px; height: 310px; margin-right: 14px; }
  .nova-marquee-fade { width: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .nova-marquee-track { animation: none; }
  .nova-marquee-card img { transition: none; }
}

/* ── Mosaïque « le centre en images » (accueil) ── */
.nova-mosaique { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 265px; gap: 14px; margin-top: 44px; }
.nova-tuile { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md, 8px);
  background: var(--brand-soft); grid-column: span 1; }
.nova-tuile--large { grid-column: span 2; }
.nova-tuile img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.nova-tuile:hover img { transform: scale(1.06); }
/* Légende toujours visible : au toucher et au clavier, pas de survol */
.nova-tuile figcaption { position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 18px 16px; display: flex; align-items: baseline; gap: 10px;
  color: #fff; opacity: .94; transition: opacity .35s ease;
  background: linear-gradient(to top, rgba(7,46,45,.9), rgba(7,46,45,.15) 70%, transparent); }
.nova-tuile:hover figcaption { opacity: 1; }
.nova-tuile-idx { font-size: 10px; letter-spacing: .16em; font-weight: 700; opacity: .85; flex-shrink: 0; }
.nova-tuile-label { font-size: 15px; font-weight: 600; line-height: 1.2; }
@media (max-width: 960px) { .nova-mosaique { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 560px) {
  .nova-mosaique { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .nova-tuile--large { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) { .nova-tuile img, .nova-tuile figcaption { transition: none; } }
