/* ==========================================================================
   Pr Olivier Barbier — maquette de site
   Feuille de style unique. Mobile-first, aucun framework.
   ========================================================================== */

:root {
  /* Couleurs */
  --ivory: #faf8f4;
  --cream: #f2eee6;
  --white: #ffffff;

  --ink: #16211f;
  --body: #55504a;
  --muted: #6b6255;
  --faint: #8b8271;

  --petrol: #0f3a4d;
  --petrol-line: #4a6f80;
  --petrol-soft: #c9d6dc;

  --sand: #c8a87c;
  --sand-ink: #8a6434;
  --sand-label: #b08a55;

  --terracotta: #c2410c;
  --terracotta-ink: #b4491f;
  --terracotta-soft: #e0955f;

  --dark: #101418;
  --dark-2: #1a1f25;
  --dark-line: #2c323a;
  --dark-body: #b9bec6;
  --dark-faint: #9aa1ab;

  --line: #e3ddd2;
  --line-2: #e7e1d6;
  --border-soft: #c3bbac;

  /* Typographie */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', 'Helvetica Neue', Arial, sans-serif;

  /* Rythme */
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(40px, 6vw, 66px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--petrol); }
a:hover { color: var(--sand-ink); }

h1, h2, h3 { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.bleed { width: 100%; }
.bleed > .wrap { padding-inline: var(--gutter); }

/* Titres --------------------------------------------------------------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
  color: var(--petrol);
  text-wrap: pretty;
}

.display--xl { font-size: clamp(38px, 6.1vw, 78px); }
.display--l  { font-size: clamp(32px, 4.5vw, 58px); }
.display--m  { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; }
.display--s  { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a6a52;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--terracotta);
  flex-shrink: 0;
}
.eyebrow--rule::before { width: 34px; height: 1px; background: var(--sand); }

.lead { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.65; color: #494f4a; margin: 0; }
.prose { font-size: 16px; line-height: 1.7; color: var(--body); margin: 0; }
.note  { font-size: 13px; line-height: 1.6; color: var(--faint); margin: 0; }

/* Boutons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn--primary { background: var(--petrol); color: var(--white); font-weight: 700; }
.btn--primary:hover { background: #0b2c3b; color: var(--white); }
.btn--ghost { border-color: var(--border-soft); color: var(--petrol); background: transparent; }
.btn--ghost:hover { border-color: var(--petrol); color: var(--petrol); }
.btn--accent { background: var(--terracotta); color: var(--white); }
.btn--accent:hover { background: #a03608; color: var(--white); }
.btn--light { background: var(--white); color: var(--petrol); font-weight: 700; }
.btn--light:hover { color: var(--petrol); }
.btn--outline-light { border-color: var(--petrol-line); color: var(--white); }
.btn--outline-light:hover { color: var(--white); border-color: var(--white); }
.btn--small { min-height: 44px; padding: 0 22px; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* En-tête -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding-block: 12px;
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand__name { font-family: var(--serif); font-size: 24px; color: var(--petrol); }
.brand__role { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.nav a { font-size: 14px; text-decoration: none; color: #3a4440; }
.nav a:hover { color: var(--petrol); }
/* le bouton du menu garde sa couleur propre : .nav a l'emporterait sinon */
.nav a.btn--primary,
.nav a.btn--primary:hover { color: var(--white); }
.nav a[aria-current="page"] {
  color: var(--petrol);
  font-weight: 700;
  border-bottom: 2px solid var(--sand);
  padding-bottom: 3px;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #ddd5c6;
  border-radius: 3px;
  cursor: pointer;
}

/* Héro ----------------------------------------------------------------- */

.hero { display: grid; grid-template-columns: 1fr 560px; align-items: stretch; padding-inline: max(0px, (100% - var(--max)) / 2); }
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2vw, 26px);
  padding: clamp(32px, 5vw, 76px) clamp(20px, 4vw, 52px) clamp(32px, 5vw, 76px) var(--gutter);
  max-width: 720px;
  margin-left: auto;
}
.hero__text .lead { max-width: 500px; }
.hero em { font-style: italic; color: var(--terracotta-ink); }

.hero__media { position: relative; background: var(--petrol); min-height: 420px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--terracotta);
  z-index: 2;
}
.hero__plate {
  position: absolute;
  left: -76px;
  bottom: 64px;
  width: 316px;
  background: var(--dark);
  color: var(--white);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.hero__plate strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.hero__plate span { font-size: 13px; line-height: 1.5; color: var(--dark-body); }

.contact-line { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.contact-line svg { flex-shrink: 0; }

/* Grilles génériques --------------------------------------------------- */

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(30px, 4vw, 48px); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section__intro { display: flex; flex-direction: column; gap: 12px; max-width: 660px; }
.link-underline { font-size: 15px; font-weight: 600; color: var(--petrol); text-decoration: none; border-bottom: 1px solid var(--sand); padding-bottom: 4px; }

/* Les quatre engagements ----------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.pillar { background: var(--ivory); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 10px; }
.pillar__num { font-family: var(--serif); font-size: 26px; color: var(--sand); }
.pillar h2 { font-size: 17px; font-weight: 700; color: var(--petrol); }
.pillar p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Bande sombre --------------------------------------------------------- */

.band { background: var(--dark); color: #f2efe8; }
.band--split { display: grid; grid-template-columns: 520px 1fr; padding-inline: max(0px, (100% - var(--max)) / 2); }
.band__media { position: relative; background: var(--white); min-height: 320px; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 33% 50%; }
.band__media::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 8px; background: var(--terracotta); }
.band__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--dark-2); padding: 24px; text-align: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #6c737f;
}
.band__body {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(16px, 2vw, 26px);
  padding: clamp(34px, 5vw, 62px) var(--gutter);
}
.band__body > * { width: 100%; max-width: 560px; }
.band .display { color: var(--white); }
.band__body .display { max-width: 560px; }
.band__body p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--dark-body); max-width: 560px; }
.band .eyebrow { color: var(--terracotta-soft); }
.band .eyebrow::before { background: var(--terracotta-soft); }

.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 560px; }
.figure { border-top: 1px solid var(--dark-line); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.figure b { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 34px); color: var(--white); }
.figure span { font-size: 13px; color: var(--dark-faint); }

/* Cartes par zone ------------------------------------------------------ */

.zone-card {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
}
.zone-card:hover { border-color: var(--sand); }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand-label); }
.zone-card h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--petrol); }
.zone-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.zone-card li { font-size: 14px; line-height: 1.45; color: var(--body); }

/* Parcours de soin ----------------------------------------------------- */

.steps-section { background: var(--cream); border-block: 1px solid var(--line); }
.step { border-top: 2px solid var(--sand); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.step:first-child { border-top-color: var(--petrol); }
.step__label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand-ink); }
.step:first-child .step__label { color: var(--petrol); }
.step h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.step p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Duo clinique / pôle -------------------------------------------------- */

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.duo article { display: flex; flex-direction: column; gap: 16px; }
.duo img { width: 100%; height: clamp(180px, 20vw, 240px); object-fit: cover; border-radius: 4px; }
.duo p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.duo .link-underline { align-self: flex-start; font-size: 14px; }

/* Actualités ----------------------------------------------------------- */

.news { border-top: 1px solid var(--line); }
.news article { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.news time { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.news h3 { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.news p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Appel à l'action ----------------------------------------------------- */

.cta { background: var(--petrol); color: #f2efe8; }
.cta__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px; padding-block: clamp(34px, 4vw, 58px);
}
.cta .display { color: var(--white); }
.cta p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--petrol-soft); max-width: 620px; }
.cta__text { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }

/* Pied de page --------------------------------------------------------- */

.site-footer { padding-block: clamp(32px, 4vw, 46px) 30px; }
.site-footer__top { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 4vw, 56px); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-footer h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--petrol); }
.site-footer p, .site-footer a, .site-footer span { font-size: 14px; line-height: 1.6; color: var(--body); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__bottom {
  margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
}
.site-footer__bottom span { font-size: 12px; color: var(--faint); }

.footer-slim { border-top: 1px solid var(--line); padding-block: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-slim span, .footer-slim a { font-size: 13px; color: var(--body); text-decoration: none; }
.footer-slim nav { display: flex; flex-wrap: wrap; gap: 22px; }

/* Page biographie ------------------------------------------------------ */

.bio-hero { display: grid; grid-template-columns: 380px 1fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.bio-hero__portrait { display: flex; flex-direction: column; gap: 14px; }
.bio-hero__portrait img { width: 100%; height: clamp(320px, 34vw, 460px); object-fit: cover; object-position: 50% 20%; border-radius: 4px; }
.caption-rule { border-left: 2px solid var(--sand); padding-left: 14px; display: flex; flex-direction: column; gap: 6px; }
.caption-rule b { font-size: 13px; color: var(--petrol); }
.caption-rule span { font-size: 13px; line-height: 1.5; color: var(--muted); }
.bio-hero__text { display: flex; flex-direction: column; gap: 20px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fact { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.fact b { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 32px); color: var(--petrol); }
.fact span { font-size: 13px; color: var(--muted); }

.split { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; gap: 10px 28px; border-top: 1px solid #ddd5c6; padding-block: 20px; }
.row:last-child { border-bottom: 1px solid #ddd5c6; }
.row dt { width: 190px; flex-shrink: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand-ink); margin: 0; }
.row dd { margin: 0; flex: 1 1 260px; font-size: 16px; line-height: 1.6; color: #3f4a46; }

.theatres { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.theatres div { border-top: 1px solid var(--dark-line); padding-top: 14px; font-size: 15px; color: #e6e3dd; }

.panel { background: var(--white); border: 1px solid var(--line-2); border-radius: 4px; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.bullets li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: #3f4a46; }
.bullets li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; background: var(--sand); border-radius: 999px; flex-shrink: 0; }

.axis { border-top: 2px solid var(--petrol); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.axis h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.axis p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Page pathologies ----------------------------------------------------- */

.callout { background: var(--cream); border-left: 2px solid var(--sand); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.callout span { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand-ink); }
.callout p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.tab {
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid #d9d2c5; background: transparent; color: #3f4a46;
}
.tab:hover { border-color: var(--petrol); }
.tab[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: var(--white); }

.fiche { background: var(--white); border: 1px solid var(--line-2); border-radius: 4px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.fiche h2 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; color: var(--petrol); }
.fiche p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.fiche a { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--petrol); text-decoration: none; }

.disclaimer { background: var(--cream); border: 1px solid var(--line); padding: 14px 18px; border-radius: 3px; font-size: 13px; line-height: 1.6; color: var(--faint); margin: 0; }

.tech { border-top: 1px solid var(--dark-line); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.tech h3 { font-size: 18px; font-weight: 700; color: var(--white); }
.tech p { margin: 0; font-size: 14px; line-height: 1.6; color: #a8aeb7; }

.placeholder-box {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--dark-2); border: 1px solid #262c33; padding: 16px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #6c737f;
  min-height: 168px;
}

/* ==========================================================================
   Points de rupture
   ========================================================================== */

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr 440px; }
  .hero__plate { left: -56px; width: 290px; }
  .band--split { grid-template-columns: 420px 1fr; }
  .site-footer__top { grid-template-columns: 260px 1fr; }
  .bio-hero { grid-template-columns: 320px 1fr; }
  .split { grid-template-columns: 240px 1fr; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: flex; }
  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .site-header.is-open .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .site-header.is-open .nav a[aria-current="page"] { border-bottom-color: var(--sand); }
  .site-header.is-open .nav .btn { margin-top: 14px; border-bottom: 0; }
  .site-header__inner { position: relative; }

  .hero { grid-template-columns: 1fr; }
  .hero__text { padding-inline: var(--gutter); max-width: none; margin-left: 0; }
  .hero__media { min-height: 0; aspect-ratio: 3 / 2; order: -1; }
  .hero__media img { object-position: 50% 4%; }
  .hero__media::before { inset: 0 0 auto 0; width: 100%; height: 6px; }
  .hero__plate { left: 0; right: 0; bottom: 0; width: auto; }

  .band--split { grid-template-columns: 1fr; }
  .band__media { aspect-ratio: 1 / 1; min-height: 0; }
  .band__media img { object-position: 50% 50%; }
  .band__media::after { inset: auto 0 0 0; width: 100%; height: 6px; }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theatres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: 1fr; }

  .bio-hero { grid-template-columns: 1fr; }
  .bio-hero__portrait img { height: clamp(280px, 60vw, 420px); }
  .split { grid-template-columns: 1fr; }
  .row dt { width: 100%; }
}

@media (max-width: 720px) {
  .grid--3 { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr; }
  .cta__inner { align-items: flex-start; }
  .btn-row .btn { flex: 1 1 220px; }
}

@media (max-width: 620px) {
  .hero__media { aspect-ratio: 4 / 5; }
  .hero__media img { object-position: 50% 8%; }
}

@media (max-width: 560px) {
  .grid--4, .pillars { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .theatres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { flex: 0 0 auto; width: 100%; }
  .section__head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header, .burger { position: static; }
  .btn { border: 1px solid #999; }
}

/* Libellé de marque abrégé sur petits écrans ----------------------------- */
.only-narrow { display: none; }
@media (max-width: 620px) {
  .only-wide { display: none; }
  .only-narrow { display: inline; }
}
