/* ═══════════════════════════════════════════════════════════════════
   DR. H. AMARI — LABORATOIRE D'ANALYSES MÉDICALES ET DE PMA
   Architecture CSS moderne (2026) : Reproduction Visuelle Exacte
   ═══════════════════════════════════════════════════════════════════ */

/* ─── VARIABLES & DESIGN TOKENS ─── */
:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Couleurs de la charte Dr. Amari */
  --navy-darkest: #081a2e;
  --navy-deep: #09223c;
  --navy-primary: #0a2540;
  --navy-sub: #1e3a5f;
  
  --blue-brand: #0066cc;
  --blue-hover: #0052a3;
  --blue-light: #0369a1;
  --blue-sky: #38bdf8;
  --blue-pale: #e0f2fe;
  --blue-ice: #f0f7fc;
  --blue-bg: #eaf4fa;
  --blue-border: #93c5fd;
  
  --slate-body: #334155;
  --slate-sub: #475569;
  --slate-dark: #1e293b;
  --slate-border: #e2edf5;

  --red-closed-bg: #fee2e2;
  --red-closed-text: #dc2626;

  /* Rayons de courbure */
  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-sub: 14px;
  --radius-sm: 10px;

  /* Ombres douces médicales */
  --shadow-subtle: 0 2px 10px rgba(10, 37, 64, 0.04);
  --shadow-card: 0 4px 16px rgba(10, 37, 64, 0.04);
  --shadow-hover: 0 14px 30px rgba(2, 132, 199, 0.12);
  --shadow-btn: 0 4px 14px rgba(0, 102, 204, 0.22);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-body);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ─── LAYOUT CONTAINER ─── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ─── BOUTONS UNIFIÉS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--blue-brand);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background-color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--navy-primary);
  border: 1.5px solid var(--blue-border);
}

.btn-outline:hover {
  background-color: #f0f9ff;
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-icon {
  flex-shrink: 0;
}

.btn-icon-down {
  transition: transform 0.2s ease;
}

.btn-outline:hover .btn-icon-down {
  transform: translateY(2px);
}

/* ═══════════════════════════════════════════════════════════════════
   1 · HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid #eef4f8;
  height: 70px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(10, 37, 64, 0.06);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate-dark);
  text-decoration: none;
  padding: 8px 2px;
  transition: color 0.15s ease;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.nav-link:hover {
  color: var(--blue-brand);
}

.nav-link.active {
  color: var(--blue-brand);
  font-weight: 700;
}

.active-pill {
  position: absolute;
  bottom: -4px;
  width: 30px;
  height: 3px;
  background-color: var(--blue-brand);
  border-radius: 2px;
}

.nav-cta-wrapper {
  flex-shrink: 0;
}

.btn-nav {
  padding: 9px 20px;
  font-size: 13.5px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
  padding: 0;
}

.mobile-toggle .bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--navy-primary);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   2 · HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eef7fc 0%, #dff0fa 50%, #e8f4fa 100%);
  padding-top: 36px;
  padding-bottom: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 24px;
}

.hero-content {
  padding-bottom: 44px;
}

.hero-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-primary);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.hero-title-alias {
  font-size: 0.82em;
  font-weight: 700;
  color: var(--navy-primary);
}

.hero-subtitle {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy-sub);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate-body);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-visual-col {
  display: flex;
  justify-content: flex-end;
  align-self: flex-end;
}

.hero-visual-frame {
  width: 100%;
  max-width: 540px;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
}

.hero-visual-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Fondu subtil sur le bord gauche pour fusionner avec le fond bleu clair */
  mask-image: linear-gradient(to right, transparent 0%, black 12%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%);
}

/* ═══════════════════════════════════════════════════════════════════
   3 · SECTION « NOS SPÉCIALITÉS »
   ═══════════════════════════════════════════════════════════════════ */
.specialites-section {
  padding: 68px 0 76px;
  background-color: #ffffff;
}

.section-header {
  margin-bottom: 36px;
  text-align: left;
}

.section-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy-primary);
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-description {
  font-size: 15px;
  color: var(--slate-sub);
  max-width: 680px;
  line-height: 1.6;
}

.specialites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.specialite-card {
  background-color: var(--blue-ice);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.specialite-card:hover {
  transform: translateY(-4px);
  background-color: #ffffff;
  border-color: #b9ddf5;
  box-shadow: var(--shadow-hover);
}

.card-icon-wrapper {
  margin-bottom: 20px;
  display: inline-block;
}

.card-icon-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1.35;
  margin-bottom: 16px;
  min-height: 46px;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  font-size: 13.5px;
  color: var(--slate-body);
  line-height: 1.55;
}

.card-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 7px;
}

.card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue-light);
  font-weight: bold;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-light);
  text-decoration: none;
  transition: all 0.15s ease;
  padding-top: 10px;
}

.card-link:hover {
  color: var(--blue-hover);
  gap: 9px;
}

/* ═══════════════════════════════════════════════════════════════════
   4 · SECTION « NOTRE PARCOURS » (BANDEAU CINÉMATIQUE)
   ═══════════════════════════════════════════════════════════════════ */
.parcours-section {
  position: relative;
  background-color: var(--navy-deep);
  color: #ffffff;
  padding: 56px 0 60px;
  overflow: hidden;
}

.parcours-backdrop-img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  pointer-events: none;
  mask-image: linear-gradient(to right, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 65%, transparent 100%);
  opacity: 0.95;
}

.parcours-container {
  position: relative;
  z-index: 2;
}

.parcours-head {
  margin-left: 330px;
  margin-bottom: 30px;
}

.parcours-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-sky);
  margin-bottom: 6px;
}

.parcours-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.parcours-stats-grid {
  margin-left: 330px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.stat-col {
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-col:last-child {
  border-right: none;
}

.stat-icon-wrapper {
  color: #7dd3fc;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.stat-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.stat-text-dense {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.35;
}

.stat-sub {
  display: block;
  font-size: 12px;
  color: #bae6fd;
  margin-top: 3px;
}

.stat-tag {
  font-size: 12px;
  color: #bae6fd;
  display: block;
  line-height: 1.2;
}

.stat-number {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 3px 0;
}

.stat-unit {
  font-size: 12.5px;
  color: #bae6fd;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   5 · SECTION « LE DOCTEUR »
   ═══════════════════════════════════════════════════════════════════ */
.docteur-section {
  padding: 68px 0 74px;
  background-color: #ffffff;
}

.docteur-grid {
  display: grid;
  grid-template-columns: 280px 1.25fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.docteur-photo-col {
  flex-shrink: 0;
}

.docteur-photo-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
  background-color: #ffffff;
  border: 1px solid var(--slate-border);
}

.docteur-photo-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.docteur-bio-col {
  padding-right: 8px;
}

.docteur-name {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 800;
  color: var(--navy-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.docteur-specialite {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.docteur-bio-text {
  font-size: 14px;
  line-height: 1.68;
  color: var(--slate-body);
  margin-bottom: 22px;
}

.btn-doc-more {
  padding: 10px 22px;
  font-size: 13.5px;
}

/* Quote card */
.quote-card {
  background-color: var(--blue-ice);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  border: 1px solid var(--slate-border);
  display: flex;
  flex-direction: column;
}

.quote-symbol {
  font-size: 48px;
  line-height: 0.65;
  font-family: Georgia, serif;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 12px;
}

.quote-text {
  font-size: 14.5px;
  line-height: 1.65;
  font-style: italic;
  color: var(--navy-sub);
  margin-bottom: 14px;
}

.quote-author {
  font-style: normal;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-sub);
}

/* ═══════════════════════════════════════════════════════════════════
   6 · SECTION « CONTACT & INFORMATIONS PRATIQUES »
   ═══════════════════════════════════════════════════════════════════ */
.contact-section {
  padding: 68px 0 80px;
  background-color: #fbfdff;
  border-top: 1px solid #eef4f8;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-card {
  background-color: #ffffff;
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--blue-pale);
  color: var(--blue-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-card-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--navy-primary);
}

.address-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--slate-body);
  margin-bottom: 14px;
}

.landmark-text {
  color: var(--slate-sub);
  font-size: 12.5px;
}

.map-preview-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--slate-border);
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.map-preview-frame:hover {
  transform: scale(1.02);
}

.map-card-img {
  width: 100%;
  height: auto;
  display: block;
}

.map-external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
  text-decoration: none;
}

.map-external-link:hover {
  color: var(--blue-hover);
}

/* Carte Coordonnées & Horaires */
.contact-subblock {
  margin-bottom: 22px;
}

.contact-subblock:last-child {
  margin-bottom: 0;
}

.contact-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-detail-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  font-size: 13.5px;
}

.detail-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-sub);
}

.detail-value {
  color: var(--navy-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.detail-value:hover {
  color: var(--blue-brand);
}

.hours-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.hours-schedule {
  font-size: 13px;
  color: var(--slate-body);
}

.hours-time {
  color: var(--navy-primary);
  font-weight: 700;
  margin-left: 4px;
}

.badge-closed {
  background-color: var(--red-closed-bg);
  color: var(--red-closed-text);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Carte Accueil & Rendez-vous */
.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  font-size: 13.5px;
  color: var(--slate-dark);
  line-height: 1.5;
}

.checklist-items li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 9px;
}

.check-icon {
  color: var(--blue-light);
  font-weight: 800;
}

.priority-callout {
  background-color: var(--blue-bg);
  border-radius: var(--radius-sub);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.callout-icon-wrapper {
  color: var(--blue-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-primary);
  display: block;
  margin-bottom: 2px;
}

.callout-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--slate-body);
  margin: 0;
}

.quick-cta-actions {
  display: flex;
  gap: 8px;
}

.btn-sm-block {
  flex: 1;
  padding: 8px 12px;
  font-size: 12.5px;
}

/* ═══════════════════════════════════════════════════════════════════
   7 · FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
  background-color: var(--navy-darkest);
  color: #cbd5e1;
  padding: 44px 0 24px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}

.footer-brand-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-microscope-icon {
  color: #ffffff;
  flex-shrink: 0;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  letter-spacing: -0.01em;
}

.footer-brand-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  display: block;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 13.5px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--blue-sky);
}

.footer-contact-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  align-items: flex-end;
}

.footer-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
}

.footer-phones a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-phones a:hover {
  color: var(--blue-sky);
}

.footer-phones .sep {
  margin: 0 4px;
  color: #475569;
}

.whatsapp-icon-link {
  color: #38bdf8 !important;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright .sep {
  margin: 0 6px;
  color: #475569;
}

.footer-motto {
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════════
   8 · BARRE MOBILE FLOTTANTE (QUICK CALL / WA)
   ═══════════════════════════════════════════════════════════════════ */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--slate-border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}

.mobile-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 8px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-call-btn {
  background-color: var(--blue-brand);
  color: #ffffff;
}

.mobile-wa-btn {
  background-color: #25d366;
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════
   9 · MODALES INTERACTIVES
   ═══════════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 26, 46, 0.65);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(8, 26, 46, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-box-large {
  max-width: 620px;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: var(--slate-dark);
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background-color: #e2e8f0;
  color: var(--navy-primary);
}

.modal-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--slate-sub);
  line-height: 1.55;
  margin-bottom: 22px;
}

.modal-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background-color: var(--blue-ice);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sub);
  text-decoration: none;
  transition: all 0.2s ease;
}

.modal-option-card:hover {
  background-color: #ffffff;
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.10);
}

.option-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--blue-brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #e0effa;
}

.modal-option-wa .option-icon-wrap {
  color: #16a34a;
}

.option-content {
  flex: 1;
}

.option-content strong {
  display: block;
  font-size: 14px;
  color: var(--navy-primary);
}

.option-content span {
  font-size: 12.5px;
  color: var(--slate-sub);
}

.option-arrow {
  color: var(--blue-light);
  font-weight: 700;
  font-size: 16px;
}

.modal-footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--slate-sub);
  line-height: 1.4;
  border-top: 1px solid #eef4f8;
  padding-top: 14px;
}

.modal-doctor-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.modal-doc-avatar {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--blue-border);
}

.modal-doc-sub {
  font-size: 13px;
  color: var(--slate-sub);
}

.modal-doctor-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.doc-detail-item {
  background-color: var(--blue-ice);
  border-radius: var(--radius-sub);
  padding: 14px 16px;
  border: 1px solid var(--slate-border);
}

.doc-detail-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 4px;
}

.doc-detail-item p {
  font-size: 13px;
  color: var(--slate-body);
  line-height: 1.5;
  margin: 0;
}

.modal-actions-bar {
  display: flex;
  justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════════════
   10 · RESPONSIVE ADAPTATIONS (MOBILE / TABLETTE)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .parcours-head,
  .parcours-stats-grid {
    margin-left: 0;
  }
  .parcours-backdrop-img {
    opacity: 0.15;
    width: 100%;
  }
  .docteur-grid {
    grid-template-columns: 240px 1fr;
  }
  .docteur-quote-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 20px 24px;
    box-shadow: 0 16px 30px rgba(10, 37, 64, 0.08);
    border-bottom: 1px solid var(--slate-border);
    gap: 16px;
    align-items: flex-start;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 16px;
    border-bottom: 1px solid #f1f5f9;
  }

  .active-pill {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-content {
    padding-bottom: 10px;
  }

  .hero-visual-col {
    justify-content: center;
  }

  .hero-visual-frame {
    max-width: 100%;
  }

  .specialites-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .parcours-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }

  .stat-col:nth-child(3) {
    border-right: none;
  }

  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact-summary {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px; /* Dégagement barre mobile */
  }

  .mobile-sticky-bar {
    display: flex;
  }

  .nav-cta-wrapper {
    display: none;
  }

  .specialites-grid {
    grid-template-columns: 1fr;
  }

  .parcours-stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-col {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 16px;
  }

  .stat-col:last-child {
    border-bottom: none;
  }

  .docteur-grid {
    grid-template-columns: 1fr;
  }

  .docteur-photo-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  .quick-cta-actions {
    flex-direction: column;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   11 · POLISH & MOTION (REVEALS & MICRO-INTERACTIONS)
   ═══════════════════════════════════════════════════════════════════ */
.reveal-fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Échelonnage d'apparition pour les cartes */
.specialites-grid .specialite-card:nth-child(1) { transition-delay: 0.05s; }
.specialites-grid .specialite-card:nth-child(2) { transition-delay: 0.12s; }
.specialites-grid .specialite-card:nth-child(3) { transition-delay: 0.19s; }
.specialites-grid .specialite-card:nth-child(4) { transition-delay: 0.26s; }

.parcours-stats-grid .stat-col:nth-child(1) { transition-delay: 0.05s; }
.parcours-stats-grid .stat-col:nth-child(2) { transition-delay: 0.12s; }
.parcours-stats-grid .stat-col:nth-child(3) { transition-delay: 0.19s; }
.parcours-stats-grid .stat-col:nth-child(4) { transition-delay: 0.26s; }
.parcours-stats-grid .stat-col:nth-child(5) { transition-delay: 0.33s; }

.contact-cards-grid .contact-card:nth-child(1) { transition-delay: 0.05s; }
.contact-cards-grid .contact-card:nth-child(2) { transition-delay: 0.15s; }
.contact-cards-grid .contact-card:nth-child(3) { transition-delay: 0.25s; }

/* Micro-interaction active feedback */
.btn:active,
.mobile-action-btn:active,
.modal-option-card:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
  }
}

