/* ==========================================================================
   Institut Parisien d'Ophtalmologie — Shared Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --navy: #0d2240;
  --navy-light: #1a3a5c;
  --gold: #b8922a;
  --gold-light: #d4a84b;
  --cream: #f8f6f1;
  --white: #ffffff;
  --text: #2a2a2a;
  --text-light: #666;
  --border: #e0d9cc;
  --accent: #2a6496;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --sidebar-width: 270px;
  --content-max-width: 1000px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition: 0.25s ease;
}


/* --------------------------------------------------------------------------
   2. CSS Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p + p {
  margin-top: 1em;
}


/* --------------------------------------------------------------------------
   3. Sidebar Navigation
   -------------------------------------------------------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--navy);
  color: var(--white);
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-light) var(--navy);
}

/* Hamburger toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  box-shadow: var(--shadow);
}

/* Overlay behind open sidebar on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
}


/* --------------------------------------------------------------------------
   4. Main Content Area
   -------------------------------------------------------------------------- */
.main-content,
.main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* --------------------------------------------------------------------------
   5. Page Hero Section
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 48px 48px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.page-hero .hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
}

.page-hero .hero-breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.page-hero .hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.page-hero .hero-breadcrumb a:hover {
  color: var(--gold-light);
}


/* --------------------------------------------------------------------------
   6. Content Area
   -------------------------------------------------------------------------- */
.content-area {
  max-width: var(--content-max-width);
  padding: 40px 48px 60px;
  margin: 0 auto;
  width: 100%;
}


/* --------------------------------------------------------------------------
   7. Intro Box (white card with gold left border)
   -------------------------------------------------------------------------- */
.intro-box {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  padding: 28px 32px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.intro-box p {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.75;
}

.intro-box strong {
  color: var(--navy);
}


/* --------------------------------------------------------------------------
   8. Section Titles
   -------------------------------------------------------------------------- */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

/* Optional gold accent bar under title */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--gold);
}


/* --------------------------------------------------------------------------
   9. Info Grid (2 columns) & Info Cards
   -------------------------------------------------------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.info-card .card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Full-width variant */
.info-card.full-width {
  grid-column: 1 / -1;
}


/* --------------------------------------------------------------------------
   10. Steps (numbered circles + text)
   -------------------------------------------------------------------------- */
.steps {
  margin-bottom: 36px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
}

.step + .step {
  border-top: 1px solid var(--border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
}


/* --------------------------------------------------------------------------
   11. Alert Boxes (cream background, gold border)
   -------------------------------------------------------------------------- */
.alert-box {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 28px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.alert-box .alert-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.alert-box p {
  color: var(--text);
}


/* --------------------------------------------------------------------------
   12. CTA Section (navy rounded card, gold button)
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 40px 40px;
  text-align: center;
  margin: 40px 0;
}

.cta-section h2,
.cta-section h3 {
  font-family: var(--font-heading);
  color: var(--white);
  margin-bottom: 10px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
  max-width: 540px;
  margin-inline: auto;
}

/* Gold button (reusable) */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* Outline button variant */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 26px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}


/* --------------------------------------------------------------------------
   13. Tags (pill-shaped, navy background opacity)
   -------------------------------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  background: rgba(13, 34, 64, 0.08);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  transition: background var(--transition);
}

.tag:hover {
  background: rgba(13, 34, 64, 0.14);
}


/* --------------------------------------------------------------------------
   14. Schema Wrap (white card for SVG diagrams)
   -------------------------------------------------------------------------- */
.schema-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: center;
}

.schema-wrap svg {
  max-width: 100%;
  height: auto;
}

.schema-wrap figcaption,
.schema-wrap .schema-caption {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 16px;
  font-style: italic;
}


/* --------------------------------------------------------------------------
   15. Two-Column Layout
   -------------------------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.two-col > * {
  min-width: 0; /* prevent overflow */
}


/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  padding: 40px 48px 40px;
  padding-right: max(48px, calc(160px + 40px)); /* space for floating CTA */
  font-size: 0.85rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.footer-col p,
.footer-col li {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: var(--content-max-width);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}


/* --------------------------------------------------------------------------
   17. Utility Classes
   -------------------------------------------------------------------------- */
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-light  { color: var(--text-light); }
.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }


/* ==========================================================================
   18. Responsive Breakpoints
   ========================================================================== */

/* --- Tablets / narrow screens (max 900px) — sidebar shrinks --- */
@media (max-width: 900px) {
  :root {
    --sidebar-width: 220px;
  }

  .page-hero {
    padding: 40px 32px 36px;
  }

  .page-hero h1 {
    font-size: 2.1rem;
  }

  .content-area {
    padding: 32px 32px 48px;
  }

  .info-grid {
    gap: 18px;
  }
}

/* --- Mobile (max 768px) — sidebar becomes hamburger menu --- */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 280px;
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
  }

  /* Hide sidebar off-screen by default */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  /* Show sidebar when open */
  .sidebar.open {
    transform: translateX(0);
  }

  /* Show overlay when sidebar is open */
  .sidebar-overlay.active {
    display: block;
  }

  /* Main content and footer take full width */
  .main-content,
  .main,
  .footer {
    margin-left: 0;
  }

  /* Hero adjustments */
  .page-hero {
    padding: 72px 20px 32px; /* extra top for hamburger */
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  /* Content area */
  .content-area {
    padding: 24px 20px 40px;
  }

  /* Stack grids to single column */
  .info-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  /* Intro box */
  .intro-box {
    padding: 20px 22px;
  }

  /* CTA section */
  .cta-section {
    padding: 28px 24px;
  }

  /* Publications Section */
  .section--publications {
    background: var(--bg-light, #f8f9fa);
    padding: 60px 0;
  }
  .section--publications .section__title {
    text-align: center;
    margin-bottom: 8px;
  }
  .section--publications .section__intro {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.05rem;
  }
  .publications-group {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
  }
  .publications-group__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy, #1a2e44);
    list-style: none;
    transition: background 0.2s;
  }
  .publications-group__header:hover {
    background: #f0f4f8;
  }
  .publications-group__header::-webkit-details-marker {
    display: none;
  }
  .publications-group__header::before {
    content: "\25B6";
    font-size: 0.7em;
    margin-right: 12px;
    transition: transform 0.2s;
  }
  .publications-group[open] > .publications-group__header::before {
    transform: rotate(90deg);
  }
  .publications-group__name {
    flex: 1;
  }
  .publications-group__count {
    background: var(--gold, #d4a855);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
  }
  .publications-list {
    padding: 0 24px 20px 48px;
    margin: 0;
    counter-reset: none;
  }
  .publications-list li {
    padding: 6px 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
  }
  .publications-list li:last-child {
    border-bottom: none;
  }
  .publications-list li em {
    color: var(--navy, #1a2e44);
    font-style: italic;
  }
  .publications-list li a {
    color: var(--gold, #d4a855);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
  }
  .publications-list li a:hover {
    text-decoration: underline;
  }
  .publications-source {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: #888;
  }
  .publications-source a {
    color: var(--gold, #d4a855);
  }

  /* Footer */
  .site-footer {
    padding: 32px 20px 120px;
    padding-right: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  /* Steps */
  .step {
    gap: 14px;
  }

  .step-number {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   BEM Sidebar Aliases (homepage, equipe, contact pages)
   -------------------------------------------------------------------------- */
.sidebar__header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.sidebar__logo {
  display: block;
  text-decoration: none;
}
.sidebar__logo-img,
.sidebar-logo-img {
  max-width: 180px;
  height: auto;
  display: block;
  margin-bottom: 4px;
}
.sidebar__logo-text {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.sidebar__logo-sub {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.sidebar__close {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.6rem;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 16px;
}
.sidebar__nav { flex: 1; padding: 12px 0; }
.sidebar__menu { list-style: none; padding: 0; margin: 0; }
.sidebar__item { margin: 0; }
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  border-left: 3px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  background: none;
  border-right: none;
  border-top: none;
  border-bottom: none;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-body);
}
.sidebar__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}
.sidebar__link--active,
.sidebar__link[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--gold);
}
.sidebar__link--with-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-left: 3px solid transparent;
  width: 100%;
}
.sidebar__link--with-toggle .sidebar__link-text {
  flex: 1;
  padding: 12px 0 12px 21px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-family: var(--font-body);
  transition: color var(--transition);
}
.sidebar__link--with-toggle .sidebar__link-text:hover {
  color: var(--white);
}
.sidebar__link--with-toggle.sidebar__link--active .sidebar__link-text {
  color: var(--white);
}
.sidebar__link--with-toggle .sidebar__dropdown-toggle {
  background: none;
  border: none;
  padding: 12px 24px 12px 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}
.sidebar__link--with-toggle .sidebar__dropdown-toggle:hover {
  color: var(--white);
}
.sidebar__dropdown-toggle {
  justify-content: space-between;
}
.sidebar__chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.sidebar__item--dropdown.open .sidebar__chevron {
  transform: rotate(180deg);
}
.sidebar__submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.sidebar__item--dropdown.open .sidebar__submenu {
  max-height: 900px;
}
.sidebar__sublink {
  display: block;
  padding: 10px 24px 10px 42px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar__sublink:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}
.sidebar__sublink--active,
.sidebar__sublink[aria-current="page"] {
  color: var(--gold-light);
}
.sidebar__section-title {
  display: block;
  padding: 14px 24px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}
/* Sidebar submenu category labels */
.sidebar__subcategory {
  display: block;
  padding: 10px 24px 4px 32px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.85;
}
.sidebar__subcategory:first-child {
  padding-top: 6px;
}
.sidebar__cta {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.sidebar__cta-phone {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.sidebar__cta-btn {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition);
}
.sidebar__cta-btn:hover {
  background: var(--gold-light);
}

/* Mobile header (BEM pages) */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--navy);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
}
.mobile-header__logo { display: flex; align-items: center; text-decoration: none; }
.mobile-header__logo-img { height: 34px; width: auto; display: block; background: #fff; border-radius: 4px; padding: 3px 6px; }
.mobile-header__logo-text { color: var(--gold-light); font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; }
.mobile-header__toggle { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; }
/* sidebar-overlay: defined in section 3 */

@media (max-width: 768px) {
  .mobile-header { display: flex; }
  .sidebar__close { display: block; }
  .main, .main-content { padding-top: 56px; }
  .sidebar { padding-top: 60px; }
}

/* Affiliations grid */
.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .affiliations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 420px) {
  .affiliations-grid {
    grid-template-columns: 1fr;
  }
}
.affiliation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: var(--transition);
}
.affiliation-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.affiliation-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  margin-bottom: 12px;
}
.affiliation-card:hover .affiliation-card__icon {
  background: rgba(184, 146, 42, 0.1);
}
.affiliation-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  margin-bottom: 10px;
}
.affiliation-card__logo img {
  max-width: 100%;
  max-height: 55px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.affiliation-card__name {
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.affiliation-card__desc {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.35;
}

/* Equipe groups (team page sections) */
.equipe-group__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  text-align: center;
}
.equipe-group__subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Fondateurs — mise en avant */
.equipe-group--fondateurs {
  background: linear-gradient(135deg, var(--navy) 0%, #162d4a 100%);
  padding-top: 48px;
  padding-bottom: 48px;
}
.equipe-group--fondateurs .equipe-group__title {
  color: var(--white);
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 12px;
}
.equipe-group--fondateurs .equipe-group__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}
.equipe-group--fondateurs .equipe-group__subtitle {
  color: rgba(255,255,255,0.75);
}
.equipe-group--fondateurs .doctor-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}
.equipe-group--fondateurs .doctor-card__name,
.equipe-group--fondateurs .doctor-card__name a {
  color: var(--white);
}
.equipe-group--fondateurs .doctor-card__section-title {
  color: var(--gold-light);
}
.equipe-group--fondateurs .doctor-card__qualifications li,
.equipe-group--fondateurs .doctor-card__specialties li {
  color: rgba(255,255,255,0.8);
}
.equipe-group--fondateurs .doctor-card__specialties a {
  color: rgba(255,255,255,0.8);
}
.equipe-group--fondateurs .doctor-card__specialties a:hover {
  color: var(--white);
}

/* Ophtalmologistes */
.equipe-group--ophtalmologistes {
  background: var(--cream);
}
.equipe-group--ophtalmologistes .equipe-group__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Equipe paramédicale */
.equipe-group--equipe {
  background: var(--white);
}
.equipe-group--equipe .equipe-group__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Doctor cards (equipe page) */
.doctor-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 28px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  align-items: start;
}
.doctor-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.doctor-card__identity {}
.doctor-card__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.doctor-card__role {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.doctor-card__body {}
.doctor-card__section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  margin: 12px 0 8px;
}
.doctor-card__section-title:first-child { margin-top: 0; }
.doctor-card__qualifications,
.doctor-card__specialties {
  list-style: none;
  padding: 0;
  margin: 0;
}
.doctor-card__qualifications li,
.doctor-card__specialties li {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  padding: 5px 0 5px 20px;
  position: relative;
}
.doctor-card__qualifications li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.doctor-card__specialties li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
}
.doctor-card__footer {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}
.doctor-photo {
  width: 160px;
  border-radius: var(--radius);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doctor-photo__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.doctor-info { flex: 1; }
.doctor-info h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--navy); margin-bottom: 4px; }
.doctor-info .doctor-title { font-size: 0.82rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.doctor-info .doctor-quals { list-style: none; padding: 0; margin: 0 0 12px; }
.doctor-info .doctor-quals li { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; padding-left: 12px; position: relative; }
.doctor-info .doctor-quals li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }
.doctor-info .doctor-specialties { font-size: 0.88rem; color: var(--text); margin-bottom: 14px; }
.doctor-info .doctor-specialties strong { color: var(--navy); }

/* Hero section variants (BEM pages) */
.hero { background: var(--navy); color: var(--white); padding: 56px 48px 48px; }
.hero h1 { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 640px; line-height: 1.7; }

/* Hero avec vidéo en arrière-plan */
.hero--video {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 80px 48px 60px;
}
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,46,68,0.82) 0%, rgba(26,46,68,0.55) 100%);
  z-index: 1;
}
.hero--video .hero__content {
  position: relative;
  z-index: 2;
}
.hero-cta-mobile {
  display: none;
}
.hero__video--mobile {
  display: none;
}
.hero--video .hero__title {
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero--video .hero__tagline {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

/* Section base (expertise pages) */
.section {
  padding: 48px 48px;
  max-width: calc(var(--content-max-width) + 96px);
}
.section--highlight {
  background: var(--cream);
}
.section--cta {
  text-align: center;
}

/* Section headings (BEM pages) */
.section h2 { font-family: var(--font-heading); font-size: 1.65rem; font-weight: 700; color: var(--navy); padding-bottom: 12px; margin-bottom: 24px; border-bottom: 2px solid var(--border); position: relative; }

/* Expertise category headings (homepage) */
.expertise-category {
  margin-top: 36px;
  margin-bottom: 16px;
}
.expertise-category:first-of-type {
  margin-top: 12px;
}
.expertise-category__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
}
.expertise-category__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.expertise-category__icon {
  font-size: 1.1rem;
  opacity: 0.7;
}

/* Expertise grid (homepage) */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 24px;
}
.expertise-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--text);
  text-align: center;
}
.expertise-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.expertise-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.expertise-card__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  flex-shrink: 0;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.expertise-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.expertise-card:hover .expertise-card__icon {
  transform: scale(1.08);
  background: var(--gold);
}
.expertise-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.expertise-card__desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}
/* Legacy selectors */
.expertise-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.expertise-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Inline CTA (mid-content) */
.cta-inline {
  background: var(--navy);
  color: var(--white);
  padding: 28px 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0;
}
.cta-inline__text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}
.cta-inline .btn-primary {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .cta-inline {
    flex-direction: column;
    text-align: center;
  }
}

/* Urgence items */
.urgence-list {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}
.urgence-item {
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.urgence-item--critique {
  border-left-color: #c0392b;
  background: #fdf2f2;
}
.urgence-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.urgence-item p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* Highlight cards (homepage Le Centre) */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.highlight-card h3 { font-family: var(--font-heading); font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.highlight-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* Buttons (base styles) */
.btn,
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn:hover,
.cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-primary,
.btn--primary {
  background: var(--gold);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition);
}
.btn-primary:hover,
.btn--primary:hover {
  background: var(--gold-light);
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--white);
}
.btn--white {
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover {
  background: var(--cream);
}

/* Map container (contact page) */
.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius);
  background: #e0e0e0;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.contact-card h2,
.contact-card h3,
.contact-card__title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.contact-card p { font-size: 0.9rem; color: var(--text); line-height: 1.7; }
.contact-card__address { font-style: normal; }
.contact-card__phone a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-card__phone a:hover { color: var(--gold); }
.contact-card__hours {
  font-size: 0.9rem;
  line-height: 1.7;
}
.contact-card__hours dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: 8px;
}
.contact-card__hours dt:first-child { margin-top: 0; }
.contact-card__hours dd { color: var(--text); margin-left: 0; }

/* Contact CTA (dedicated contact page) */
.section--contact .contact-cta {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px 40px;
  text-align: center;
  margin: 32px 0;
}
.section--contact .contact-cta .contact-cta__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 10px;
}
.section--contact .contact-cta .contact-cta__text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 540px;
  margin-inline: auto;
}
.contact-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-cta__actions .btn--outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}
.contact-cta__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

/* Map container override for iframe */
.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Homepage — Hero Section (BEM)
   -------------------------------------------------------------------------- */
.hero__content {
  max-width: 680px;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero__tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__actions .btn--outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}
.hero__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Homepage — Section Container (BEM)
   -------------------------------------------------------------------------- */
.section__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
}
.section__title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.section__title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--gold);
}
.section__intro {
  font-size: 1.02rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Homepage — Le Centre Section
   -------------------------------------------------------------------------- */
.section--centre-bg {
  position: relative;
  overflow: hidden;
}
.section--centre-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/institut - 1.png') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.section--centre-bg > .section__container {
  position: relative;
  z-index: 1;
}
.centre__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.centre__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}
.centre__text strong {
  color: var(--navy);
}
.centre__associes {
  grid-column: 1 / -1;
  margin: 24px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.centre__associes img {
  width: 100%;
  max-width: 520px;
  max-height: 500px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.centre__associes figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  max-width: 520px;
}
.centre__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.highlight {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.highlight:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.highlight__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.highlight__label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Homepage — Galerie Photo du Centre
   -------------------------------------------------------------------------- */
.centre__galerie {
  margin-top: 48px;
  display: none;
}
.centre__galerie.is-visible {
  display: block;
}
.centre__galerie-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  text-align: center;
}
.galerie__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.galerie__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.galerie__item--large {
  grid-column: span 2;
}
.galerie__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.galerie__item:hover img {
  transform: scale(1.05);
}
.galerie__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Lightbox */
.galerie__lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.galerie__lightbox[aria-hidden="false"] {
  display: flex;
}
.galerie__lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}
.galerie__lightbox-caption {
  color: #fff;
  margin-top: 12px;
  font-size: 0.95rem;
  text-align: center;
}
.galerie__lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10001;
}
.galerie__lightbox-prev,
.galerie__lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 10001;
}
.galerie__lightbox-prev:hover,
.galerie__lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}
.galerie__lightbox-prev { left: 20px; }
.galerie__lightbox-next { right: 20px; }

@media (max-width: 900px) {
  .galerie__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .galerie__item--large {
    grid-column: span 2;
  }
}
@media (max-width: 600px) {
  .centre__galerie {
    margin-top: 32px;
  }
  .galerie__grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .galerie__item--large {
    grid-column: span 2;
  }
  .galerie__item figcaption {
    font-size: 0.7rem;
    padding: 6px 8px;
  }
  .galerie__lightbox-prev,
  .galerie__lightbox-next {
    font-size: 1.5rem;
    padding: 4px 10px;
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .galerie__lightbox-prev { left: calc(50% - 60px); }
  .galerie__lightbox-next { right: calc(50% - 60px); }
  .galerie__lightbox-img {
    max-width: 95vw;
    max-height: 70vh;
  }
  .galerie__lightbox-caption {
    font-size: 0.85rem;
    margin-bottom: 60px;
  }
  .galerie__lightbox-close {
    top: 12px;
    right: 12px;
    font-size: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Homepage — Equipe Preview Section
   -------------------------------------------------------------------------- */
.equipe-preview {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}
.equipe-preview__text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}
.equipe-preview__text strong {
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Homepage — Contact Section (BEM)
   -------------------------------------------------------------------------- */
.section--contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-info__block {
  margin-bottom: 24px;
}
.contact-info__block:last-child {
  margin-bottom: 0;
}
.contact-info__heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.contact-info__address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
}
.contact-info__tel {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-info__tel:hover {
  color: var(--gold);
}
.contact-info__hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.contact-info__hours td {
  padding: 6px 16px 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.contact-info__hours tr:last-child td {
  border-bottom: none;
}
.contact-cta__card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  position: sticky;
  top: 24px;
}
.contact-cta__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 12px;
}
.contact-cta__text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 24px;
}
.btn--lg {
  padding: 14px 36px;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Footer (BEM — homepage)
   -------------------------------------------------------------------------- */
.footer {
  margin-left: var(--sidebar-width);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  padding: 40px 48px;
  font-size: 0.85rem;
  margin-top: auto;
}
.footer__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.footer__address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}
.footer__heading {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__list li {
  font-size: 0.85rem;
  line-height: 1.8;
}
.footer__link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__link:hover {
  color: var(--gold-light);
}
.footer__link--doctolib {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition);
}
.footer__link--doctolib:hover {
  background: var(--gold-light);
  color: var(--white);
}
.footer__bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   Sidebar Footer (BEM — fix overflow)
   -------------------------------------------------------------------------- */
.sidebar__footer {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  margin-top: auto;
}
.sidebar__footer .sidebar__cta {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition);
  border-top: none;
  margin-bottom: 10px;
}
.sidebar__footer .sidebar__cta:hover {
  background: var(--gold-light);
}
.sidebar__phone {
  font-size: 0.82rem;
  text-align: center;
}
.sidebar__phone a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.sidebar__phone a:hover {
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Legal Content (mentions légales)
   -------------------------------------------------------------------------- */
.legal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.75;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Mobile hamburger button spans (lines)
   -------------------------------------------------------------------------- */
.mobile-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}
/* Burger → Croix when sidebar is open */
.sidebar-open .mobile-header__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sidebar-open .mobile-header__toggle span:nth-child(2) {
  opacity: 0;
}
.sidebar-open .mobile-header__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.sidebar__close span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  margin: 5px 0;
  position: relative;
}
.sidebar__close span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}
.sidebar__close span:last-child {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive — Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .centre__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .centre__associes img {
    max-height: 350px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .doctor-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
    padding: 24px 20px;
    overflow: hidden !important;
  }
  .doctor-card__header,
  .doctor-card__body,
  .doctor-card__footer {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .doctor-card__header {
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .doctor-card__section-title {
    text-align: center;
  }
  .doctor-card__qualifications li,
  .doctor-card__specialties li {
    font-size: 0.82rem;
  }
  .doctor-card__footer {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .doctor-card__footer .btn {
    font-size: 0.78rem;
    padding: 8px 14px;
  }
  .doctor-photo {
    width: 140px;
    margin: 0 auto;
  }
  .equipe-group__title {
    font-size: 1.5rem;
  }
  .equipe-group--fondateurs .equipe-group__title {
    font-size: 1.6rem;
  }
  .equipe-group--fondateurs {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-grid { grid-template-columns: 1fr; }
  .contact-grid,
  .section--contact .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 20px 32px; }
  .hero--video { min-height: 70vh; padding: 60px 20px 24px; }
  .hero__video--desktop {
    display: none;
  }
  .hero__video--mobile {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    z-index: 0;
  }
  .hero--video .hero__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    min-height: calc(70vh - 84px);
  }
  .hero--video .hero__tagline {
    display: none;
  }
  .hero--video .hero__devise {
    order: 10;
    margin-top: auto;
    font-size: 0.95rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  }
  .hero__overlay {
    background: linear-gradient(180deg, rgba(26,46,68,0.55) 0%, rgba(26,46,68,0.1) 40%, rgba(26,46,68,0.1) 65%, rgba(26,46,68,0.6) 100%);
  }
  .hero--video .hero__actions {
    display: none;
  }
  .hero-cta-mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px 20px 0;
    background: var(--white);
  }
  .hero-cta-mobile .btn {
    text-align: center;
  }
  .hero__title { font-size: 1.6rem; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    text-align: center;
  }
  .centre__highlights {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding: 32px 20px;
  }
  .footer {
    padding: 32px 20px;
    margin-left: 0;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .equipe-preview {
    padding: 24px 20px;
  }
}

/* --- Small phones (max 480px) --- */
@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.4rem; }

  .section-title {
    font-size: 1.35rem;
  }

  .info-card {
    padding: 20px;
  }

  .btn-gold {
    width: 100%;
    justify-content: center;
  }

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

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

  .contact-form__submit {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   14. Avis Google Section
   -------------------------------------------------------------------------- */
.section--avis {
  background: var(--cream);
}

.avis__header {
  text-align: center;
  margin-bottom: 36px;
}

.avis__score {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}

.avis__note {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.avis__sur {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--text-light);
  font-weight: 500;
}

.avis__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.avis__count {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light);
}

.avis__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.avis__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avis__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.avis__card-stars {
  display: flex;
  gap: 2px;
}

.avis__text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
  font-style: italic;
}

.avis__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.avis__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.avis__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  font-style: normal;
  display: block;
}

.avis__date {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-light);
}

.avis__cta {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .avis__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .avis__note {
    font-size: 2.4rem;
  }
}

/* --------------------------------------------------------------------------
   15. MEDICAL IMAGES
   -------------------------------------------------------------------------- */
.medical-img {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 16px auto;
  display: block;
}

.medical-img--wide {
  max-width: 800px;
}

.medical-img--small {
  max-width: 400px;
}

.medical-figure {
  margin: 24px 0;
  text-align: center;
}

.medical-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 8px;
  font-style: italic;
}

.medical-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.medical-gallery figure {
  margin: 0;
  text-align: center;
}

.medical-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.medical-gallery figcaption {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 8px;
  font-style: italic;
}

@media (max-width: 600px) {
  .medical-gallery {
    grid-template-columns: 1fr;
  }
  .medical-gallery img {
    height: 180px;
  }
}

/* ==========================================================================
   Hero Devise (motto)
   ========================================================================== */

.hero__devise {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin: -8px 0 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .hero__devise {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   Floating CTA Buttons (persistent)
   ========================================================================== */

.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s;
}

/* Hide floating elements when sidebar is open */
body.sidebar-open .floating-cta,
body.sidebar-open .ipo-chat-btn,
body.sidebar-open .ipo-chat-panel {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* On desktop, offset chatbot to right of sidebar */
@media (min-width: 769px) {
  .ipo-chat-btn {
    left: calc(var(--sidebar-width) + 16px) !important;
  }
  .ipo-chat-panel {
    left: calc(var(--sidebar-width) + 16px) !important;
  }
}

.floating-cta__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.floating-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}

.floating-cta__btn--rdv {
  background: var(--gold);
  color: #fff;
}

.floating-cta__btn--tel {
  background: var(--navy);
  color: #fff;
}

.floating-cta__btn svg {
  flex-shrink: 0;
}

/* Compact on small screens */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }
  .floating-cta__btn {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
  .floating-cta__btn--rdv span {
    display: none;
  }
  .floating-cta__btn--rdv {
    border-radius: 50%;
    padding: 12px;
  }
  .floating-cta__btn--tel span {
    display: none;
  }
  .floating-cta__btn--tel {
    border-radius: 50%;
    padding: 12px;
  }
  .site-footer {
    padding-right: 48px; /* reset on mobile — icons are small enough */
  }
}

/* ==========================================================================
   SFO Information Sheets Section
   ========================================================================== */

.section--sfo {
  background: var(--bg-alt, #f8f7f4);
}

.sfo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .sfo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.sfo-group {
  background: #fff;
  border: 1px solid #e8e6e0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.sfo-group:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.sfo-group[open] {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.sfo-group__header {
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

.sfo-group__header::-webkit-details-marker {
  display: none;
}

.sfo-group__header::after {
  content: '+';
  margin-left: auto;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.2s;
}

.sfo-group[open] .sfo-group__header::after {
  content: '−';
}

.sfo-group__header:hover {
  background: rgba(212,168,85,0.06);
}

.sfo-group__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sfo-group__list {
  list-style: none;
  padding: 0 20px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sfo-group__list li {
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.sfo-group__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.sfo-group__list a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.sfo-group__list a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.sfo-source {
  margin-top: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

.sfo-source a {
  color: var(--gold);
  text-decoration: underline;
}

/* Related pathologies links */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.related-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.related-link:hover {
  background: var(--gold);
}

/* Contact form */
.contact-form {
  max-width: 700px;
  margin-top: 24px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.contact-form__field {
  margin-bottom: 16px;
}
.contact-form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}
.contact-form__label .required {
  color: #c0392b;
}
.contact-form__input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}
.contact-form__input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13, 34, 64, 0.1);
}
.contact-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form__notice {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.contact-form__notice a {
  color: var(--navy);
  font-weight: 500;
}
.contact-form__submit {
  min-width: 200px;
}
@media (max-width: 600px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
  .contact-form__submit {
    width: 100%;
  }
}


/* --------------------------------------------------------------------------
   18b. Mobile Table Scrollability
   -------------------------------------------------------------------------- */
.article-content table,
.content-area table,
.expertise-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   18c. Very Small Screens (max 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.15rem; }

  .page-hero {
    padding: 64px 14px 24px;
  }
  .page-hero h1 {
    font-size: 1.4rem;
  }

  .content-area {
    padding: 16px 14px 32px;
  }

  .section {
    padding: 24px 14px;
  }

  .hero__title {
    font-size: 1.4rem;
  }

  .sidebar__link {
    font-size: 0.82rem;
    padding: 11px 16px;
  }

  .sidebar__sublink {
    font-size: 0.78rem;
    padding: 9px 16px 9px 32px;
  }

  .intro-box {
    padding: 16px;
  }

  .info-card {
    padding: 16px;
  }

  .cta-section {
    padding: 20px 16px;
  }
}

/* --------------------------------------------------------------------------
   19. Accessibility
   -------------------------------------------------------------------------- */

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Focus-visible styles for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.sidebar__link:focus-visible,
.sidebar__sublink:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn:focus-visible,
.btn--primary:focus-visible,
.btn--outline:focus-visible,
.btn-gold:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.expertise-card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* --------------------------------------------------------------------------
   20. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .sidebar,
  .mobile-header,
  .sidebar-overlay,
  .floating-cta,
  .footer__cta,
  .hero__video,
  .ipo-chat-btn,
  .ipo-chat-panel,
  .skip-link,
  .btn--primary,
  .btn--outline {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .main {
    margin-left: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after,
  a[href^="tel"]::after {
    content: "";
  }

  .section,
  .footer {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero__overlay {
    display: none;
  }

  .footer {
    margin-left: 0 !important;
    border-top: 1px solid #ccc;
    padding: 1rem 0;
  }
}

/* --------------------------------------------------------------------------
   Echography Page — Key Stats
   -------------------------------------------------------------------------- */
.echo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 40px;
}
.echo-stat {
  background: white;
  border-radius: var(--radius, 12px);
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-top: 3px solid #c8a951;
}
.echo-stat__number {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a2e44;
  margin-bottom: 4px;
}
.echo-stat__label {
  display: block;
  font-size: 0.82rem;
  color: #666;
}

/* --------------------------------------------------------------------------
   Echography Page — Expert Profiles
   -------------------------------------------------------------------------- */
.echo-expertise {
  margin-bottom: 40px;
}
.echo-experts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.echo-expert {
  display: flex;
  gap: 20px;
  background: white;
  border-radius: var(--radius, 12px);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-left: 4px solid #c8a951;
}
.echo-expert__avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}
.echo-expert__info h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2e44;
  margin-bottom: 2px;
}
.echo-expert__role {
  font-size: 0.85rem;
  color: #c8a951;
  font-weight: 600;
  margin-bottom: 10px;
}
.echo-expert__info p:last-child {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Echography Page — Indications Grid
   -------------------------------------------------------------------------- */
.echo-indications {
  margin-bottom: 40px;
}
.echo-indications__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.echo-indication {
  background: white;
  border-radius: var(--radius, 12px);
  padding: 24px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.echo-indication:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.echo-indication__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.echo-indication h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a2e44;
  margin-bottom: 8px;
}
.echo-indication p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Echography Page — Image Gallery
   -------------------------------------------------------------------------- */
.echo-gallery {
  margin-bottom: 40px;
}
.echo-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.echo-gallery__item {
  background: white;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.echo-gallery__placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a2e44 0%, #2c4a6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.echo-gallery__placeholder span {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.echo-gallery__item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  display: block;
  background: #0a0a0a;
}
.echo-gallery__item figcaption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}
.echo-credit {
  display: block;
  font-size: 0.72rem;
  color: #999;
  font-style: italic;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Echography Page — Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .echo-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .echo-experts {
    grid-template-columns: 1fr;
  }
  .echo-indications__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .echo-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .echo-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .echo-stat {
    padding: 16px 12px;
  }
  .echo-stat__number {
    font-size: 1.3rem;
  }
  .echo-expert {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .echo-indications__grid {
    grid-template-columns: 1fr;
  }
  .echo-gallery__grid {
    grid-template-columns: 1fr;
  }
}
