/* MédecinSportSanté — Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0f1a;
  --slate: #1a2233;
  --muted: #8494a8;
  --light: #c4cdd8;
  --cream: #f4f1ec;
  --accent: #0097cc;
  --accent-dim: #006b96;
  --warm: #e8ddd0;
  --danger: #e74c3c;
  --radius: 8px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cream); }

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

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

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background .3s;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 116px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 84px;
  width: auto;
  display: block;
  flex-shrink: 0;
  /* Blue-on-black logo: screen blend makes black pixels transparent,
     letting the dark nav background show through seamlessly.
     Blue design elements remain visible. No pseudo-element needed. */
  mix-blend-mode: screen;
}

.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-logo-accent { color: var(--accent); }

@media (max-width: 480px) {
  .nav-logo-img { height: 66px; }
  .nav-logo-text { font-size: 14px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--light);
  transition: color .2s;
  position: relative;
  white-space: nowrap;
  /* Prevent accented caps (À, É, etc.) from shifting vertical alignment */
  line-height: 1;
  display: flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-cta {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: 6px;
  transition: background .2s, transform .2s !important;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-dim);
  color: var(--cream) !important;
  transform: translateY(-1px);
}

.lang-toggle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile menu button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -1px;
}

h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  margin-bottom: 24px;
}

h1 span, h2 span, h3 span { color: var(--accent); }

h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(45, 212, 168, 0.25);
  border-radius: 4px;
}

.section-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* justify-content removed — centering via auto margins on .hero-inner
     prevents upward overflow into the fixed 116px nav on shorter viewports */
  padding: 160px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(45, 212, 168, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 212, 168, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  position: relative;
  z-index: 1;
  /* Auto margins center vertically inside the flex hero when there's extra
     space, but collapse to 0 when content fills/overflows — content stays
     below the 160px padding-top (nav clearance), never overlapping the header */
  margin-top: auto;
  margin-bottom: auto;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-dim);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-stat-row {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.hero-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--cream);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* =========================================
   CREDENTIALS STRIP
   ========================================= */
.cred-strip {
  background: var(--slate);
  padding: 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.cred-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.cred-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.cred-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cred-item {
  font-size: 14px;
  color: var(--light);
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* =========================================
   SECTIONS
   ========================================= */
.section {
  padding: 100px 40px;
}

.section--alt {
  background: var(--slate);
}

.section--gradient {
  background: linear-gradient(180deg, var(--slate) 0%, var(--ink) 100%);
}

.section-header {
  margin-bottom: 64px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-text {
  margin: 0 auto;
}

/* =========================================
   SERVICES GRID
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.service-card {
  padding: 40px 32px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
  transition: border-color .3s, transform .3s;
}

.service-card:hover {
  border-color: rgba(45, 212, 168, 0.2);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 { margin-bottom: 12px; }

.service-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.service-card .service-list {
  list-style: none;
  margin-top: 16px;
}

.service-card .service-list li {
  font-size: 14px;
  color: var(--light);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card .service-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =========================================
   ABOUT / BIO
   ========================================= */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
}

.bio-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 20px;
}

.bio-text p strong { color: var(--cream); }

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(45, 212, 168, 0.15);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
}

.timeline-year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Awards */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.award-card {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(45, 212, 168, 0.15);
  background: rgba(45, 212, 168, 0.03);
}

.award-year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.award-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
}

.award-org {
  font-size: 14px;
  color: var(--muted);
}

/* Clinics */
.clinics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.clinic-card {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.clinic-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.clinic-card .clinic-location {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}

.clinic-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--cream);
  transition: border-color .2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select option {
  background: var(--slate);
  color: var(--cream);
}

.form-status {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(45, 212, 168, 0.1);
  border: 1px solid rgba(45, 212, 168, 0.2);
  color: var(--accent);
}

.form-status.error {
  display: block;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: var(--danger);
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 168, 0.08);
  border-radius: 10px;
}

.contact-info-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
  letter-spacing: 0;
}

.contact-info-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================
   QUOTE / VISION
   ========================================= */
.vision {
  padding: 100px 40px;
  background: linear-gradient(180deg, var(--slate) 0%, var(--ink) 100%);
  text-align: center;
}

.vision-inner {
  max-width: 700px;
  margin: 0 auto;
}

.vision blockquote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.vision .attr {
  font-size: 14px;
  color: var(--muted);
}

.vision .attr strong { color: var(--accent); }

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
  padding: 80px 40px;
  text-align: center;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.cta-banner-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner h2 {
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.65;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  padding: 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: var(--ink);
}

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

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
}

.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
}

.footer-links a:hover { color: var(--accent); }

.footer-disclaimer {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* =========================================
   PAGE HEADER (inner pages)
   ========================================= */
.page-header {
  padding: 160px 40px 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 212, 168, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
}

.page-header .section-text {
  max-width: 640px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
/* Desktop: ensure hero/page-header text clears the 116px nav + 84px logo */
@media (min-width: 769px) {
  .hero { padding-top: 200px; }
  .page-header { padding-top: 200px; }
}

@media (max-width: 1050px) {
  /* Tighten nav on narrow desktops — FR labels are longer than EN */
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12px; }
  .nav-cta { font-size: 11px !important; padding: 6px 12px; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .clinics-grid { grid-template-columns: 1fr; }

  /* Switch to hamburger at 900px — FR nav (9 items incl. "Réserver en ligne")
     overflows the horizontal space below this width */
  .nav-links {
    display: none;
    position: absolute;
    top: 116px;
    left: 0; right: 0;
    background: rgba(10, 15, 26, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links a { font-size: 14px; }
  .nav-cta { font-size: 13px !important; padding: 7px 16px; }

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

  .nav-hamburger { display: flex; }
}

@media (max-width: 768px) {
  .hero { padding: 140px 24px 60px; }
  .hero-stat-row { flex-direction: column; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 24px; }
  .page-header { padding: 140px 24px 40px; }
  .cred-strip { padding: 32px 24px; }
  .vision { padding: 60px 24px; }
  .container { padding: 0 24px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links { justify-content: center; }
}

/* =========================================
   SERVICE DETAIL (full page)
   ========================================= */
.service-detail {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.service-detail-card {
  padding: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  margin-bottom: 40px;
}

.service-detail-card .service-icon { font-size: 48px; }

.service-detail-card h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}

.service-detail-card p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 16px;
}

.service-detail-card ul {
  list-style: none;
  margin-top: 12px;
}

.service-detail-card ul li {
  font-size: 15px;
  color: var(--light);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-detail-card ul li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =========================================
   HERO WITH PHOTO
   ========================================= */
.hero-content {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: var(--max-w);
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-photo {
  flex: 0 0 280px;
  position: relative;
  z-index: 1;
}

.hero-photo img {
  width: 280px;
  object-fit: contain;
  object-position: center top;
  border-radius: 16px;
  border: 2px solid rgba(45, 212, 168, 0.2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  height: auto;
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 32px;
  }
  .hero-photo { flex: 0 0 auto; }
  .hero-photo img {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .hero-photo img {
    width: 160px;
  }
}

/* =========================================
   ABOUT PORTRAIT
   ========================================= */
.about-portrait {
  text-align: center;
  margin-bottom: 48px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.about-portrait img {
  width: 220px;
  height: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: 16px;
  border: 2px solid rgba(45, 212, 168, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  margin: 0 auto 16px;
}

.about-portrait .portrait-caption {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.about-portrait .portrait-caption strong {
  color: var(--cream);
}

/* =========================================
   CLINIC PHOTO GALLERY
   ========================================= */
.clinic-gallery {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 0 40px;
}

.clinic-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.clinic-gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .3s;
}

.clinic-gallery-grid img:hover {
  transform: scale(1.02);
}

@media (max-width: 600px) {
  .clinic-gallery-grid {
    grid-template-columns: 1fr;
  }
  .clinic-gallery { padding: 0 24px; }
}

/* =========================================
   VIDEO SECTION
   ========================================= */
.videos-section {
  padding: 100px 40px;
  background: var(--slate);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.videos-section .section-header {
  max-width: var(--max-w);
  margin: 0 auto 48px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.video-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: border-color .3s, transform .3s;
}

.video-card:hover {
  border-color: rgba(45, 212, 168, 0.2);
  transform: translateY(-4px);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-title {
  padding: 16px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .videos-section { padding: 60px 24px; }
}

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

/* =========================================
   SERVICE DETAIL IMAGE
   ========================================= */
.service-detail-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* =========================================
   CLINIC PHOTO BANNER (contact page)
   ========================================= */
.clinic-photo-banner {
  max-width: var(--max-w);
  margin: 0 auto 48px;
  padding: 0 40px;
}

.clinic-photo-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .clinic-photo-banner { padding: 0 24px; }
}

/* =========================================
   ARTICLE FEATURED IMAGE
   ========================================= */
.article-featured-img {
  width: 100%;
  max-width: 720px;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  display: block;
}

/* =========================================
   LAZY LOAD IMAGES
   ========================================= */
img[loading="lazy"] {
  opacity: 1;
  transition: opacity .3s;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 200;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus { top: 8px; }

/* =========================================
   FOCUS VISIBLE — keyboard navigation (WCAG 2.1 AA)
   Visible focus for all interactive elements.
   outline: none on inputs is compensated by border-color change on :focus.
   ========================================= */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Buttons and nav links get a slightly larger offset */
.btn:focus-visible,
.nav-links a:focus-visible,
.footer-links a:focus-visible,
.footer-social a:focus-visible,
.nav-logo:focus-visible,
.nav-hamburger:focus-visible,
.back-link:focus-visible,
.blog-card-link:focus-visible,
.blog-card h2 a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Pricing table links */
.pricing-table a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Form inputs: the border-color change serves as focus indicator;
   add box-shadow for extra visibility without outline on inputs */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 151, 204, 0.35);
}

/* =========================================
   BLOG
   ========================================= */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 800px;
}

.blog-card {
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  transition: border-color .3s, transform .3s;
}

.blog-card:hover {
  border-color: rgba(45, 212, 168, 0.2);
  transform: translateY(-4px);
}

.blog-card-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.blog-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.blog-card h2 a {
  color: var(--cream);
  transition: color .2s;
}

.blog-card h2 a:hover {
  color: var(--accent);
}

.blog-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

.blog-card-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: color .2s;
}

.blog-card-link:hover {
  color: var(--cream);
}

/* Article content */
.article-content {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--light);
}

.article-content h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--cream);
}

.article-content h3 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 16px;
}

.article-content p {
  margin-bottom: 20px;
  color: var(--light);
}

.article-content strong {
  color: var(--cream);
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--light);
}

.article-content li strong {
  color: var(--cream);
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--cream);
}

/* Back link */
.back-link {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  transition: color .2s;
}

.back-link:hover {
  color: var(--cream);
}

/* Footer legal links (privacy + manage cookies) */
.footer-legal {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.footer-legal a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  transition: color .2s;
}

.footer-legal a:hover { color: var(--accent); }

.footer-legal span {
  color: var(--muted);
  font-size: 12px;
}

/* Footer social */
.footer-social {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-social a {
  font-size: 14px;
  color: var(--muted);
  transition: color .2s;
}

.footer-social a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .blog-card { padding: 24px; }
  .blog-card h2 { font-size: 20px; }
  .article-content { font-size: 16px; }
  .article-content h2 { font-size: 24px; margin-top: 36px; }
}

/* =========================================
   COOKIE CONSENT BANNER & MODAL (Loi 25)
   ========================================= */

/* Banner */
#mss-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #13192a;
  border-top: 1px solid rgba(0,151,204,0.25);
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

.mss-cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mss-cookie-text {
  flex: 1;
  font-size: 13px;
  color: var(--light);
  line-height: 1.5;
  min-width: 200px;
}

.mss-cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.mss-cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Buttons */
.mss-btn {
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: opacity .15s, background .15s;
  white-space: nowrap;
}
.mss-btn:hover { opacity: 0.88; }
.mss-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mss-btn-accept {
  background: var(--accent);
  color: var(--ink);
}

.mss-btn-refuse {
  background: transparent;
  color: var(--light);
  border: 1px solid rgba(196,205,216,0.3);
}
.mss-btn-refuse:hover { background: rgba(255,255,255,0.05); }

.mss-btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(196,205,216,0.15);
}
.mss-btn-secondary:hover { background: rgba(255,255,255,0.04); }

/* Modal — hidden by default; shown via JS showModal() */
#mss-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mss-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.mss-modal-box {
  position: relative;
  background: #13192a;
  border: 1px solid rgba(0,151,204,0.2);
  border-radius: 12px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.mss-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 20px;
}

.mss-pref-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mss-pref-info strong {
  display: block;
  font-size: 14px;
  color: var(--cream);
  margin-bottom: 4px;
}

.mss-pref-info p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.mss-always-on {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Toggle switch */
.mss-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.mss-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.mss-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 24px;
  transition: background .2s;
}

.mss-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}

.mss-toggle input:checked + .mss-toggle-slider {
  background: var(--accent);
}

.mss-toggle input:checked + .mss-toggle-slider::before {
  transform: translateX(20px);
}

.mss-toggle input:focus-visible + .mss-toggle-slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mss-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Manage cookies footer link */
.mss-manage-cookies {
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.mss-manage-cookies:hover { color: var(--accent); }
.mss-manage-cookies:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .mss-cookie-inner { flex-direction: column; align-items: stretch; }
  .mss-cookie-btns { flex-direction: column; }
  .mss-btn { text-align: center; }
}

/* =========================================
   STICKY MOBILE CTA — "Prendre rendez-vous"
   ========================================= */
.sticky-rdv {
  display: none; /* hidden on desktop */
}

@media (max-width: 767px) {
  /* Push body content up so sticky bar doesn't overlap last section */
  body { padding-bottom: 60px; }

  .sticky-rdv {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: #0097cc;
    transition: transform .25s ease, opacity .25s ease;
  }

  .sticky-rdv.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }

  .sticky-rdv a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    background: #0097cc;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    text-decoration: none;
    border-top: 2px solid rgba(255,255,255,.15);
    gap: 6px;
  }

  .sticky-rdv a:hover,
  .sticky-rdv a:focus-visible {
    background: #006b96;
    color: #fff;
    outline: 3px solid #fff;
    outline-offset: -4px;
  }
}
