:root {
  --white:   #FFFFFF;
  --bg:      #F5F7F7;
  --surface: #EAEFEF;
  --border:  #DEE5E5;
  --ink:     #0E1A1A;
  --ink-2:   #445050;
  --ink-3:   #8C9999;

  --teal:     #1E9E94;
  --teal-hov: #1B8C83;
  --teal-dk:  #0B3D3A;
  --teal-mid: #106B63;
  --teal-bg:  #E6F5F3;

  --fd: 'Cormorant Garamond', Georgia, serif;
  --fb: 'DM Sans', system-ui, sans-serif;

  --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;

  --sh-xs:   0 1px 2px rgba(14,26,26,.05);
  --sh-sm:   0 2px 6px rgba(14,26,26,.07);
  --sh-teal: 0 4px 24px rgba(30,158,148,.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: var(--fd);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
p { color: var(--ink-2); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-mid);
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fb); font-weight: 500; font-size: 16px;
  border-radius: var(--r-md); padding: 11px 22px; line-height: 1;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  text-decoration: none; border: none; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-teal    { background: var(--teal); color: var(--white); box-shadow: var(--sh-teal); }
.btn-teal:hover { background: var(--teal-hov); }
.btn-dark    { background: var(--ink); color: #fff; box-shadow: var(--sh-sm); }
.btn-dark:hover  { background: #1a2828; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--border); box-shadow: var(--sh-xs); }
.btn-outline:hover { background: var(--surface); }
.btn-ghost   { background: transparent; color: var(--ink-2); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--surface); }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--fb); font-weight: 600; font-size: 12px;
  padding: 4px 12px; border-radius: var(--r-pill);
  white-space: nowrap; background: var(--teal-bg); color: var(--teal-mid);
}
.pill::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky; top: 0; z-index: 10;
}
header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-family: var(--fd); font-size: 20px; }
.logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; }
nav { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
nav a:hover { color: var(--teal-mid); }
@media (max-width: 800px) { nav { display: none; } }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding-top: 96px; padding-bottom: 96px;
}
.hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin-top: 16px; }
.hero h1 em { color: var(--teal-dk); font-style: italic; }
.hero p.sub { font-size: 20px; font-family: var(--fb); max-width: 46ch; margin-top: 20px; }
.hero .cta-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo {
  background: var(--surface); border-radius: var(--r-xl);
  height: 420px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 14px; border: 1px solid var(--border);
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-photo { height: 280px; order: -1; }
}

/* Sections */
section { padding: 64px 0; }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.bg-white { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: 31px; margin-top: 12px; }

/* Présentation établissement */
.about p { font-size: 16px; max-width: 60ch; margin-top: 16px; }

/* Grille services */
.prob-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden;
}
.prob-item {
  padding: 32px; background: #fff;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background 150ms ease;
}
.prob-item:hover { background: var(--teal-bg); }
.prob-item:nth-child(3n) { border-right: none; }
.prob-item:nth-last-child(-n+3) { border-bottom: none; }
.prob-item h3 { font-size: 20px; margin-top: 14px; font-family: var(--fb); font-weight: 600; }
.prob-item p { font-size: 14px; margin-top: 8px; }
@media (max-width: 800px) {
  .prob-grid { grid-template-columns: 1fr; }
  .prob-item { border-right: none !important; }
}

.more-row { margin-top: 24px; }

/* Équipe */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-photo {
  background: var(--surface); border-radius: 16px; height: 200px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 13px; border: 1px solid var(--border);
}
.team-card h4 { font-size: 16px; font-family: var(--fb); font-weight: 600; margin-top: 14px; }
.team-card .role { font-size: 13px; color: var(--teal-mid); margin-top: 2px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* CTA final */
.cta-final {
  background: var(--teal-bg); border: 1px solid rgba(30,158,148,.3);
  border-radius: var(--r-xl); padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-final-wrap { max-width: 1160px; margin: 0 auto; padding: 32px 24px 64px; }
.cta-final h2 { font-size: 31px; }
.cta-final p { margin-top: 8px; max-width: 48ch; }
.cta-final .btns { display: flex; gap: 12px; flex-shrink: 0; }
@media (max-width: 800px) {
  .cta-final { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
}

/* Footer */
footer { background: var(--surface); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-col p.label {
  font-size: 12px; color: var(--ink-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
}
.footer-col a { display: block; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.footer-col a:hover { color: var(--teal-mid); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border); font-size: 12px; color: var(--ink-3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--ink-3); padding: 24px 0 0; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--teal-mid); }

/* Page header (pages internes, hors home) */
.page-head { padding: 40px 0 8px; }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { font-size: 39px; }
.page-head p.lead { font-size: 18px; max-width: 60ch; margin-top: 16px; }

/* Cards de liste (services, blog) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.list-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color 150ms ease;
}
.list-card:hover { border-color: var(--teal); }
.list-card .thumb {
  background: var(--surface); height: 160px; display: flex; align-items: center;
  justify-content: center; color: var(--ink-3); font-size: 13px;
}
.list-card .body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.list-card h3 { font-size: 20px; font-family: var(--fb); font-weight: 600; }
.list-card p { font-size: 14px; }
.list-card .meta { font-size: 12px; color: var(--ink-3); margin-top: auto; padding-top: 8px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* Article (blog détail) */
.article-meta { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.article-cover {
  background: var(--surface); border-radius: var(--r-xl); height: 320px; margin-top: 32px;
  display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 14px;
  border: 1px solid var(--border);
}
.prose { max-width: 70ch; margin-top: 32px; }
.prose p { font-size: 16px; margin-top: 18px; }
.prose h2 { font-size: 25px; margin-top: 40px; }
.prose ul { margin-top: 14px; padding-left: 20px; color: var(--ink-2); }
.prose li { margin-top: 8px; font-size: 16px; }

/* Fiche service / praticien — header split */
.detail-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0 64px; }
.detail-photo {
  background: var(--surface); border-radius: var(--r-xl); height: 360px;
  display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 14px;
  border: 1px solid var(--border);
}
@media (max-width: 900px) {
  .detail-head { grid-template-columns: 1fr; }
  .detail-photo { height: 240px; order: -1; }
}

/* Praticiens liés (fiche service) */
.mini-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.mini-card { display: flex; align-items: center; gap: 12px; }
.mini-photo {
  width: 56px; height: 56px; border-radius: 50%; background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--ink-3);
  font-size: 11px; flex-shrink: 0; border: 1px solid var(--border);
}
.mini-card h4 { font-size: 14px; font-family: var(--fb); font-weight: 600; }
.mini-card .role { font-size: 12px; color: var(--teal-mid); }
@media (max-width: 900px) { .mini-team { grid-template-columns: 1fr 1fr; } }

/* Infos pratiques (fiche service / contact) */
.info-box {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px;
}
.info-box .item h4 { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-family: var(--fb); font-weight: 600; }
.info-box .item p { font-size: 15px; margin-top: 6px; color: var(--ink); }
@media (max-width: 800px) { .info-box { grid-template-columns: 1fr; } }

/* Équipe — page liste complète */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-pill {
  font-family: var(--fb); font-size: 13px; font-weight: 500; padding: 8px 16px;
  border-radius: var(--r-pill); border: 1.5px solid var(--border); background: #fff; color: var(--ink-2);
}
.filter-pill.active { background: var(--teal-bg); border-color: var(--teal); color: var(--teal-mid); }
.team-grid-lg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .team-grid-lg { grid-template-columns: repeat(2, 1fr); } }

/* Fiche praticien — bio */
.bio-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding: 48px 0; }
.bio-grid .side { display: flex; flex-direction: column; gap: 24px; }
.fact { border-top: 1px solid var(--border); padding-top: 16px; }
.fact h4 { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-family: var(--fb); font-weight: 600; }
.fact p { font-size: 15px; margin-top: 6px; color: var(--ink); }
@media (max-width: 900px) { .bio-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 16px 0 64px; }
.form-field { margin-top: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--fb); font-size: 15px; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-md); background: #fff; color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.map-block {
  background: var(--surface); border-radius: var(--r-xl); height: 220px; margin-top: 24px;
  display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 13px;
  border: 1px solid var(--border);
}
.contact-list .row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.contact-list .row:first-child { border-top: none; }
.contact-list h4 { font-size: 14px; font-family: var(--fb); font-weight: 600; }
.contact-list p { font-size: 14px; margin-top: 2px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Pages légales */
.legal-prose { max-width: 76ch; padding: 16px 0 64px; }
.legal-prose h2 { font-size: 22px; margin-top: 36px; }
.legal-prose p { font-size: 15px; margin-top: 12px; }
.legal-prose .updated { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* Photos réelles — repli automatique sur le placeholder tant que le fichier n'existe pas.
   Convention : chaque conteneur photo (hero-photo, thumb, team-photo, detail-photo,
   mini-photo, article-cover) peut accueillir un <img onerror="this.remove()"> en premier enfant.
   Si l'image charge : elle recouvre le conteneur et le texte de repli disparaît.
   Si l'image est absente (404) : elle se retire du DOM et le texte de repli réapparaît. */
.hero-photo, .thumb, .team-photo, .detail-photo, .mini-photo, .article-cover {
  position: relative; overflow: hidden;
}
.hero-photo img, .thumb img, .team-photo img, .detail-photo img,
.mini-photo img, .article-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-photo:has(img) .ph-label, .thumb:has(img) .ph-label,
.team-photo:has(img) .ph-label, .detail-photo:has(img) .ph-label,
.mini-photo:has(img) .ph-label, .article-cover:has(img) .ph-label {
  display: none;
}

