@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600&display=swap");

:root {
  --primary: #4268d2;
  --primary-hover: #3353ae;
  --navy: #142349;
  --band: #ecf2fe;
  --band-rgb: 236, 242, 254;
  --primary-light: #ecf2fe;
  --accent: #92c1fa;
  --ink: #142349;
  --muted: #616a85;
  --bg: #ffffff;
  --cream: #ecf2fe;
  --border: #e6e9f0;
  --danger: #dc2626;
  --radius: 10px;
  --shadow: 0 7px 14px 0.36px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 4px 20px rgba(66, 104, 210, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Lexend Deca", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a { color: var(--primary); }

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid rgba(97, 106, 133, 0.17);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.logo {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-right: 1rem;
  color: var(--navy);
  text-decoration: none;
  animation: none;
}

nav.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem 1.6rem;
  white-space: nowrap;
}

nav.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover { color: var(--primary); }

nav.site-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

nav.site-nav a.btn-nav {
  color: white;
  border-bottom: none;
  margin-left: 0.5rem;
}

nav.site-nav a.btn-nav:hover { color: white; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.3rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  nav.site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-top: 1rem;
    gap: 0.75rem;
  }

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

  header.site-header {
    flex-wrap: wrap;
  }
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-family: inherit;
  font-weight: 400;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

nav.site-nav a.btn-nav {
  padding: 0.75rem 1.5rem;
  font-size: 0.98rem;
  box-shadow: none;
}

.btn.secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

.btn.secondary:hover { background: var(--primary-light); }

.btn:disabled {
  background: #cbd5e1;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  padding: 5rem max(2rem, calc((100% - 1160px) / 2));
  background: var(--bg);
  border-bottom: 1px solid rgba(97, 106, 133, 0.17);
}

.hero-content { flex: 1 1 380px; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: var(--navy);
  animation: titre-apparition 0.8s ease both;
  animation-delay: 0.1s;
}

.hero p { color: var(--muted); font-size: 1.125rem; margin-bottom: 2rem; }

.hero-visual {
  flex: 1 1 300px;
  min-height: 220px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20, 35, 73, 0.12);
  background: var(--primary-light);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

section { padding: 4.5rem 2rem; max-width: 1160px; margin: 0 auto; }

/* Bandeaux pleine largeur */
section.hero, section.page-hero { max-width: none; }

section h2 {
  position: relative;
  display: inline-block;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 2rem;
  padding-bottom: 0.6rem;
}

section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.7s ease 0.2s;
}

section h2.visible::after { width: 56px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  background: white;
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; color: var(--navy); font-size: 1.35rem; }
.card p { color: var(--muted); margin-bottom: 0; }

.team-member {
  text-align: center;
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 0.75rem;
}

footer.site-footer {
  margin-top: 3rem;
  background: var(--primary-light);
  padding: 4rem 2rem 1.5rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
}

.footer-grid a {
  display: block;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 0.3rem;
}

.footer-grid a:hover { color: var(--primary); }

.footer-title {
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  max-width: 1160px;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(20, 35, 73, 0.12);
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- Pages de contenu (sous-pages) --- */

.page-hero {
  padding: 5.5rem 2rem 4.5rem;
  background:
    linear-gradient(rgba(var(--band-rgb), 0.78), rgba(var(--band-rgb), 0.78)),
    var(--hero-img, url("https://images.unsplash.com/photo-1629909615184-74f495363b67?fm=jpg&q=70&w=1600&auto=format&fit=crop")) center / cover;
  text-align: center;
  color: white;
}

@keyframes titre-apparition {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes trait-dessine {
  from { width: 0; }
  to { width: 64px; }
}

.page-hero h1 {
  position: relative;
  display: inline-block;
  color: white;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  animation: titre-apparition 0.8s ease both;
  animation-delay: 0.1s;
}

.page-hero h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: trait-dessine 0.6s ease both;
  animation-delay: 0.1s;
}

.page-hero p { transition-delay: 150ms; }

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.breadcrumb a { color: var(--muted); }

.page-hero .breadcrumb,
.page-hero .breadcrumb a { color: var(--accent); }

/* Photos */

.photo-placeholder {
  border-radius: var(--radius);
  min-height: 180px;
  overflow: hidden;
  position: relative;
  margin: 0;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.photo-placeholder figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: white;
  background: linear-gradient(to top, rgba(20, 35, 73, 0.85), transparent);
}

.photo-placeholder--round {
  border-radius: 50%;
  width: 110px;
  height: 110px;
  min-height: 0;
  margin: 0 auto 0.75rem;
}

.photo-placeholder--round img { min-height: 0; }

.photo-placeholder--wide { height: 320px; }

.photo-placeholder--wide img { height: 320px; }

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.photo-gallery .photo-placeholder { min-height: 160px; }
.photo-gallery .photo-placeholder img { min-height: 160px; }

.map-placeholder {
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--navy);
  min-height: 180px;
  text-align: center;
  padding: 1rem;
}

.map-placeholder span { font-size: 2.5rem; }

.map-placeholder p {
  font-size: 0.8rem;
  color: var(--navy);
  opacity: 0.75;
  margin: 0;
}

.map-placeholder--wide { min-height: 260px; }

a.map-placeholder {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

a.map-placeholder:hover { opacity: 0.85; }

.map-placeholder .map-adresse {
  font-weight: 600;
  opacity: 1;
}

/* Cartes valeurs / avantages */

.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  background: white;
  box-shadow: var(--shadow);
}

.value-card .icon { font-size: 1.8rem; margin-bottom: 0.5rem; display: block; }

/* Équipe */

.staff-card { text-align: center; }

.staff-specialite {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.1rem 0 0.6rem;
}

/* Timeline (étapes d'un traitement) */

.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: etape;
}

.timeline li {
  counter-increment: etape;
  position: relative;
  padding: 0 0 1.5rem 3rem;
  border-left: 2px solid var(--primary-light);
}

.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline li::before {
  content: counter(etape);
  position: absolute;
  left: -18px;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline h4 { margin: 0 0 0.3rem; color: var(--navy); }
.timeline p { margin: 0; color: var(--muted); }

/* FAQ */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
  background: white;
  box-shadow: var(--shadow);
}

.faq-item h4 { margin: 0 0 0.4rem; color: var(--navy); }
.faq-item p { margin: 0; color: var(--muted); }

/* Bandeau urgence */

.urgence-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.urgence-banner h3 { color: #991b1b; margin-top: 0; }

.urgence-banner .btn { background: #b91c1c; }
.urgence-banner .btn:hover { background: #991b1b; }

/* Liens "en savoir plus" sur les cartes soins */

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

/* --- Page de prise de rendez-vous --- */

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .booking-layout { grid-template-columns: 1fr; }
}

.booking-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background: white;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.field input[type="date"],
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #c5cde6;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 104, 210, 0.15);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.slot-btn {
  padding: 0.55rem 0.4rem;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.95rem;
}

.slot-btn:hover { background: var(--primary-light); }

.slot-btn.selected {
  background: var(--primary);
  color: white;
}

.empty-msg, .info-msg {
  color: var(--muted);
  font-style: italic;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }

/* --- Animations d'apparition et de survol --- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.booking-layout > div > p.reveal:nth-of-type(2) { transition-delay: 150ms; }
.booking-layout > div > p.reveal:nth-of-type(3) { transition-delay: 300ms; }

.grid > .reveal:nth-child(2),
.photo-gallery > .reveal:nth-child(2) { transition-delay: 90ms; }
.grid > .reveal:nth-child(3),
.photo-gallery > .reveal:nth-child(3) { transition-delay: 180ms; }
.grid > .reveal:nth-child(4),
.photo-gallery > .reveal:nth-child(4) { transition-delay: 270ms; }
.grid > .reveal:nth-child(5) { transition-delay: 360ms; }
.grid > .reveal:nth-child(6) { transition-delay: 450ms; }

.timeline li.reveal:nth-child(2) { transition-delay: 90ms; }
.timeline li.reveal:nth-child(3) { transition-delay: 180ms; }
.timeline li.reveal:nth-child(4) { transition-delay: 270ms; }

.hero-visual.reveal { transition-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .page-hero h1, .hero h1, .page-hero h1::after {
    animation: none;
  }

  .page-hero h1::after { width: 64px; }
}

.card, .value-card, .staff-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover, .value-card:hover, .staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(20, 35, 73, 0.1);
}

.photo-placeholder img {
  transition: transform 0.5s ease;
}

.photo-placeholder:hover img {
  transform: scale(1.06);
}


/* --- Équipe sur la page d'accueil --- */

section.team-section {
  max-width: none;
  background: var(--primary-light);
  text-align: center;
}

.team-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-intro {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: -0.75rem auto 2.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 2rem;
  max-width: 1160px;
  margin: 0 auto;
}

.team-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(20, 35, 73, 0.1);
}

.team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--primary-light);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo img { transform: scale(1.05); }

.team-info { padding: 1.5rem 1.5rem 1.75rem; }
.team-info h3 { margin: 0 0 0.2rem; font-size: 1.3rem; }
.team-info p { color: var(--muted); margin: 0; }
.team-info .staff-specialite { color: var(--primary); margin-bottom: 0.75rem; }

/* =====================================================================
   Mise en page inspirée de shineorthodental.be
   ===================================================================== */

.overline {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Bande de photos sous le hero */

section.photo-strip {
  max-width: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding-inline: 0.75rem;
}

.photo-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

@media (max-width: 800px) {
  section.photo-strip { grid-template-columns: repeat(2, 1fr); }
  .photo-strip img { height: 160px; }
}

/* Accroche texte centrée */

.statement {
  text-align: center;
  max-width: 820px;
}

.statement h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.statement h2::after { left: 50%; transform: translateX(-50%); }

.statement p { color: var(--muted); font-size: 1.15rem; font-weight: 300; }

/* En-tête de section : titre à gauche, texte + bouton à droite */

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-head h2 { margin-bottom: 0; }
.section-head p { color: var(--muted); margin: 0 0 1.25rem; font-weight: 300; font-size: 1.05rem; }

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Cartes de soins avec photo */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(20, 35, 73, 0.1);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.75rem;
}

.service-card h3 { margin: 0 0 0.6rem; font-size: 1.35rem; }
.service-card p { color: var(--muted); margin: 0 0 1.25rem; flex: 1; }

.btn-light {
  align-self: flex-start;
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 100px;
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-light:hover { background: var(--primary); color: white; }

/* FAQ dépliable */

.faq { max-width: 860px; }
.faq h2 { display: block; text-align: center; }
.faq h2::after { left: 50%; transform: translateX(-50%); }

.faq details {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

.faq details[open] { border-color: var(--primary); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 3.5rem 1.25rem 1.5rem;
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--navy);
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
}

.faq details[open] summary::after { content: "−"; }

.faq details p { margin: 0; padding: 0 1.5rem 1.4rem; color: var(--muted); }

/* Bandeau d'appel au rendez-vous */

section.cta-band {
  max-width: none;
  background: var(--band);
  color: white;
  text-align: center;
}

.cta-band h2 { color: white; }
.cta-band h2::after { background: var(--accent); left: 50%; transform: translateX(-50%); }
.cta-band p { color: rgba(255, 255, 255, 0.8); max-width: 620px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* La Clinique : texte + collage de photos */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-split p { color: var(--muted); font-size: 1.08rem; }

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 0.9rem;
}

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.collage img:first-child { grid-row: span 2; }

@media (max-width: 800px) {
  .about-split { grid-template-columns: 1fr; }
  .collage { grid-template-rows: 150px 150px; }
}

/* Nos services : lignes photo / texte en alternance */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}

.service-row:last-child { border-bottom: none; }

.service-row:nth-child(even) .service-row-media { order: 2; }

.service-row-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 20px 50px rgba(20, 35, 73, 0.1);
}

.service-row h2 { margin-bottom: 1.25rem; }
.service-row p { color: var(--muted); }

.service-row ul { color: var(--muted); padding-left: 1.2rem; }
.service-row li { margin-bottom: 0.35rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

@media (max-width: 800px) {
  .service-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
  .service-row-media img { height: 230px; }
}

/* Urgence / contact */

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.info-list { display: grid; gap: 1rem; }

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
}

.info-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-item h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.info-item p { margin: 0; color: var(--muted); }
.info-item a { color: var(--primary); text-decoration: none; }

.find-us {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.find-us h3 { margin: 0 0 0.4rem; }
.find-us p { color: var(--muted); margin: 0 0 1.25rem; }

@media (max-width: 800px) {
  .find-us { grid-template-columns: 1fr; }
}

/* La Clinique : bandeau « Nos engagements » */

section.commitments {
  max-width: none;
  background: var(--band);
  color: white;
  text-align: center;
}

.commitments h2 { color: white; }
.commitments h2::after { background: var(--accent); left: 50%; transform: translateX(-50%); }

.commitments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1160px;
  margin: 1rem auto 0;
  text-align: left;
}

.commitment {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.commitment-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1rem;
}

.commitment h3 { color: white; margin: 0 0 0.6rem; font-size: 1.25rem; }
.commitment p { color: rgba(255, 255, 255, 0.75); margin: 0; }

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

@media (max-width: 520px) {
  .commitments-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

section.cta-band--light { background: var(--primary-light); color: var(--navy); }
.cta-band--light h2 { color: var(--navy); }
.cta-band--light h2::after { background: var(--primary); }
.cta-band--light p { color: var(--muted); }

/* Accueil : hero en bandeau bleu nuit, assorti aux autres onglets */

section.hero--banner {
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  border-bottom: none;
  background:
    linear-gradient(rgba(var(--band-rgb), 0.78), rgba(var(--band-rgb), 0.78)),
    url("https://images.unsplash.com/photo-1777331903190-341a3dd0441b?fm=jpg&q=75&w=1800&auto=format&fit=crop") center / cover;
  color: white;
}

.hero--banner .hero-content { flex: none; max-width: 820px; }
.hero--banner .overline { color: var(--accent); }
.hero--banner h1 { color: white; font-size: clamp(2.4rem, 6vw, 4rem); }
.hero--banner p { color: rgba(255, 255, 255, 0.85); max-width: 620px; margin-inline: auto; }
.hero--banner .hero-actions { justify-content: center; }

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

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

/* Bande de photos : un peu d'air sous le bandeau */
section.photo-strip { margin-top: 0.75rem; }

/* Boutons sur les bandeaux bleus : blancs pour rester visibles */
.hero--banner .btn:not(.btn-outline-light),
.cta-band:not(.cta-band--light) .btn {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(20, 35, 73, 0.25);
}

.hero--banner .btn:not(.btn-outline-light):hover,
.cta-band:not(.cta-band--light) .btn:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
}

/* Accents en blanc sur les bandeaux bleus (le bleu clair y manquait de contraste) */
.hero--banner .overline {
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.page-hero h1::after,
.commitments h2::after,
.cta-band:not(.cta-band--light) h2::after { background: rgba(255, 255, 255, 0.85); }

.commitment-num { color: white; opacity: 0.9; }
.commitment { border-top-color: rgba(255, 255, 255, 0.3); }
.commitment p { color: rgba(255, 255, 255, 0.85); }

/* Légère ombre portée pour garder le texte blanc lisible sur le bleu clair */
.hero--banner .hero-content,
.page-hero h1,
.page-hero p { text-shadow: 0 1px 12px rgba(20, 35, 73, 0.25); }

/* =====================================================================
   Bandeaux en bleu clair : le texte passe en bleu nuit pour rester lisible
   ===================================================================== */

.page-hero,
.hero--banner,
.cta-band:not(.cta-band--light),
.commitments { color: var(--navy); }

.page-hero h1,
.hero--banner h1,
.cta-band h2,
.commitments h2,
.commitment h3 { color: var(--navy); }

.page-hero p,
.hero--banner p,
.cta-band:not(.cta-band--light) p,
.commitment p { color: #33415f; }

.hero--banner .overline,
.page-hero .breadcrumb,
.page-hero .breadcrumb a { color: var(--primary); }

.page-hero h1::after,
.commitments h2::after,
.cta-band:not(.cta-band--light) h2::after { background: var(--primary); }

.commitment-num { color: var(--primary); opacity: 1; }
.commitment { border-top-color: rgba(20, 35, 73, 0.18); }

.hero--banner .hero-content,
.page-hero h1,
.page-hero p { text-shadow: 0 1px 10px rgba(255, 255, 255, 0.5); }

/* Boutons : de nouveau bleus, contour bleu nuit pour le bouton secondaire */
.hero--banner .btn:not(.btn-outline-light),
.cta-band:not(.cta-band--light) .btn {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-btn);
}

.hero--banner .btn:not(.btn-outline-light):hover,
.cta-band:not(.cta-band--light) .btn:hover {
  background: var(--primary-hover);
  color: white;
}

.btn-outline-light {
  color: var(--navy);
  border-color: var(--navy);
  background: rgba(255, 255, 255, 0.35);
}

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


/* Médecins : initiales en attendant les photos */

.team-photo--initiales {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), #d6e3fb);
  color: var(--primary);
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Page Notre équipe : un profil par médecin */

.doctors { display: grid; gap: 2rem; }

.doctor-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  scroll-margin-top: 90px;
}

.doctor-profile h2 { margin: 0 0 0.25rem; padding-bottom: 0; }
.doctor-profile h2::after { display: none; }
.doctor-profile p { color: var(--muted); }

.doctor-avatar {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), #d6e3fb);
  color: var(--primary);
  font-size: 3.2rem;
  font-weight: 300;
}

@media (max-width: 700px) {
  .doctor-profile { grid-template-columns: 1fr; text-align: center; }
  .doctor-avatar { width: 150px; margin: 0 auto; }
}

.doctor-avatar { overflow: hidden; }
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.team-photo img { object-position: center 20%; }

/* Fiches docteurs : domaines et langues */

.doctor-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.25rem 0 1rem;
}

.doctor-tags li {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.doctor-langs { margin: 0 0 1.5rem; font-size: 0.95rem; }
.doctor-langs strong { color: var(--navy); font-weight: 500; }

.team-info .team-langs { margin-top: 0.6rem; font-size: 0.88rem; }
.team-info .team-langs + .card-link { margin-top: 0.9rem; }

/* Accueil : fiches des docteurs dans la section équipe */
.team-section .doctors { max-width: 1000px; margin: 0 auto; text-align: left; }

@media (max-width: 700px) {
  .team-section .doctor-profile { text-align: center; }
}

/* Logo de la clinique */
.logo { display: flex; align-items: center; }
.logo img { height: 60px; width: auto; display: block; }

.footer-logo { height: 52px; width: auto; display: block; margin-bottom: 1rem; }

@media (max-width: 520px) {
  .logo img { height: 46px; }
}
