/* Karim Mechter, ostéopathe D.O. — feuille de style
   Palette tirée du cabinet : vert pin (vue sur les pins), argile et rose (murs), blanc.
   Typographie : Lora (texte et titres, hébergée sur le site) + police système (interface). */

@font-face {
  font-family: "Lora";
  src: url("fonts/lora-variable.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/lora-italic-variable.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --pin-950: #10221c;
  --pin-900: #163027;
  --pin-800: #1d3f34;
  --pin-700: #275244;
  --pin-600: #336656;
  --pin-100: #e3ece7;
  --pin-50: #f1f6f3;
  --argile-700: #8a3f2f;
  --argile-600: #a34d39;
  --argile-500: #c26b55;
  --argile-300: #e2b0a1;
  --argile-200: #efd6cd;
  --argile-100: #f8ebe6;
  --argile-50: #fcf6f3;
  --terracotta-clair: #f1d2bf; /* teinte des murs du cabinet, éclaircie */
  --terracotta-pale: #f7e4d9;
  --terracotta-trait: #e2b39c;
  --or: #d9961a;
  --encre: #1b2420;
  --encre-2: #3f4a45;
  --gris: #5b6560;
  --trait: #e6ddd8;
  --blanc: #ffffff;
  --texte: "Lora", Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --large: 1200px;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --rayon: 10px;
  --espace-section: clamp(3.5rem, 7vw, 6.5rem);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--encre);
  background: var(--blanc);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--texte);
  font-weight: 600;
  line-height: 1.16;
  color: var(--pin-900);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 1.35rem + 2.6vw, 3.35rem); letter-spacing: -0.012em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); letter-spacing: -0.008em; }
h3 { font-size: clamp(1.2rem, 1.1rem + .45vw, 1.4rem); }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }

a { color: var(--pin-700); text-decoration-thickness: .075em; text-underline-offset: .2em; }
a:hover { color: var(--argile-600); }
:focus-visible { outline: 3px solid var(--argile-500); outline-offset: 3px; border-radius: 4px; }

.lien-evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--pin-900); color: var(--blanc); padding: .7rem 1rem; border-radius: 8px;
  font-family: var(--ui); font-weight: 600;
}
.lien-evitement:focus { top: 1rem; color: var(--blanc); }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.conteneur { width: min(100% - 2 * var(--gouttiere), var(--large)); margin-inline: auto; }
.mesure { max-width: 68ch; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ui); font-size: 1rem; font-weight: 600; line-height: 1.2;
  padding: .9rem 1.3rem; border-radius: 8px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 48px;
}
.bouton svg { width: 1.15em; height: 1.15em; flex: none; }
.bouton--rdv { background: var(--argile-600); color: var(--blanc); }
.bouton--rdv:hover { background: var(--argile-700); color: var(--blanc); }
.bouton--pin { background: var(--pin-700); color: var(--blanc); }
.bouton--pin:hover { background: var(--pin-900); color: var(--blanc); }
.bouton--contour { border-color: currentColor; color: var(--pin-700); background: transparent; }
.bouton--contour:hover { color: var(--argile-600); }
.bouton--clair { border-color: rgba(255, 255, 255, .55); color: var(--blanc); background: transparent; }
.bouton--clair:hover { border-color: var(--blanc); color: var(--blanc); background: rgba(255, 255, 255, .08); }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Avis des patients */
.section--avis { background: var(--terracotta-pale); }
.avis__tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: 2rem; }
.avis__tete h2 { margin-bottom: .35rem; }
.avis__note { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .75rem; margin: 0; font-family: var(--ui); font-size: 1.02rem; color: var(--encre-2); }
.avis__chiffre { font-family: var(--texte); font-size: clamp(2.6rem, 2rem + 2vw, 3.5rem); font-weight: 600; line-height: 1; color: var(--pin-950); }
.avis__note .avis__etoiles { font-size: 1.6rem; }
.avis__etoiles { color: var(--or); letter-spacing: .08em; line-height: 1; }
.avis__liste { list-style: none; margin: 0; padding: 0; columns: 3 17rem; column-gap: 1.25rem; }
.avis__liste li { break-inside: avoid; margin-bottom: 1.25rem; }
@media (max-width: 700px) { .avis__liste li:nth-child(n+4) { display: none; } } /* sur téléphone : les 3 plus récents */
.avis { margin: 0; display: flex; flex-direction: column; gap: .85rem; padding: 1.5rem 1.5rem 1.3rem; background: var(--blanc); border: 1px solid var(--terracotta-trait); border-radius: var(--rayon); }
.avis blockquote { flex: 1; margin: 0; font-family: var(--texte); font-style: italic; font-size: 1.14rem; line-height: 1.55; color: var(--encre); }
.avis blockquote p { margin: 0; }
.avis blockquote p::before { content: "«\00a0"; }
.avis blockquote p::after { content: "\00a0»"; }
.avis figcaption { font-family: var(--ui); font-size: .9rem; color: var(--gris); }
.avis figcaption strong { color: var(--pin-900); font-weight: 600; }
.avis__mention { margin: .25rem 0 0; max-width: 70ch; font-family: var(--ui); font-size: .82rem; line-height: 1.5; color: var(--gris); }

/* Note Google : mise en avant de l'avis des patients */
.rdv { display: grid; gap: 1rem; justify-items: start; }
.note { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .3rem .55rem; font-family: var(--ui); font-size: .95rem; line-height: 1.3; color: var(--encre-2); text-decoration: none; }
.note:hover .note__texte, .note:focus-visible .note__texte { text-decoration: underline; text-underline-offset: .2em; }
.note__etoiles { color: var(--or); font-size: 1.15em; letter-spacing: .06em; line-height: 1; }
.note__texte strong { color: var(--pin-950); font-weight: 700; }
.note--grande { font-size: 1.02rem; padding: .6rem 1rem; background: var(--blanc); border: 1px solid var(--terracotta-trait); border-radius: 999px; }
.note--grande .note__etoiles { font-size: 1.25em; }
.note--compacte { font-size: .88rem; gap: .35rem; white-space: nowrap; }
.note--sombre { color: #c9d6cf; }
.note--sombre .note__texte strong { color: var(--blanc); }
.bandeau-rdv .rdv { justify-items: end; }
.carte-rdv .note { display: flex; justify-content: center; margin-top: .9rem; font-size: .86rem; gap: .2rem .45rem; }
.carte-rdv .note strong { display: inline; font-family: var(--ui); font-size: inherit; margin: 0; }
.entete__actions > .note { margin-right: .6rem; }
.pied__note { margin-top: 1rem; }
@media (max-width: 1499px) { .entete__actions > .note { display: none; } }
@media (max-width: 760px) { .bandeau-rdv .rdv { justify-items: start; } }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--trait);
}
@supports (backdrop-filter: blur(8px)) {
  .entete { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.3) blur(10px); }
}
.entete__int { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 4.5rem; }
.marque { display: flex; flex-direction: column; text-decoration: none; color: var(--pin-900); line-height: 1.15; }
.marque__nom { font-family: var(--texte); font-weight: 600; font-size: 1.28rem; letter-spacing: -.005em; }
.marque__metier { font-family: var(--ui); font-size: .8rem; color: var(--gris); margin-top: .15rem; }
.marque:hover { color: var(--pin-900); }

.nav { font-family: var(--ui); }
.nav__liste { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav__lien, .nav__deroulant > summary {
  display: block; padding: .55rem .7rem; border-radius: 6px; color: var(--encre-2);
  text-decoration: none; font-size: .95rem; font-weight: 500; cursor: pointer;
}
.nav__lien:hover, .nav__deroulant > summary:hover { color: var(--pin-900); background: var(--pin-50); }
.nav__lien[aria-current="page"], .nav__deroulant.actif > summary { color: var(--pin-900); box-shadow: inset 0 -2px 0 var(--argile-500); border-radius: 0; }
.nav__deroulant { position: relative; }
.nav__deroulant > summary { list-style: none; display: flex; align-items: center; gap: .3rem; }
.nav__deroulant > summary::-webkit-details-marker { display: none; }
.nav__deroulant > summary::after {
  content: ""; width: .45rem; height: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); margin-left: .2rem;
}
.nav__deroulant[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.nav__sous {
  list-style: none; margin: 0; padding: .5rem; position: absolute; left: 0; top: calc(100% + .4rem);
  min-width: 19rem; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: 0 12px 32px rgba(22, 48, 39, .12);
}
.nav__sous a { display: block; padding: .6rem .75rem; border-radius: 6px; color: var(--encre); text-decoration: none; font-size: .95rem; }
.nav__sous a:hover { background: var(--argile-50); color: var(--pin-900); }
.nav__sous a[aria-current="page"] { background: var(--argile-100); }
.entete__actions { display: flex; align-items: center; gap: .5rem; }
.entete__rdv { padding: .7rem 1rem; min-height: 44px; font-size: .95rem; }
.menu-bouton {
  display: none; align-items: center; gap: .45rem; font-family: var(--ui); font-weight: 600; font-size: .95rem;
  background: transparent; color: var(--pin-900); border: 1.5px solid var(--trait); border-radius: 8px;
  padding: .55rem .8rem; min-height: 44px; cursor: pointer;
}
.menu-bouton svg { width: 1.2rem; height: 1.2rem; }

@media (max-width: 1080px) {
  .menu-bouton { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--blanc); border-bottom: 1px solid var(--trait);
    box-shadow: 0 16px 32px rgba(22, 48, 39, .1); max-height: calc(100vh - 4.5rem); overflow-y: auto;
  }
  .nav.ouvert { display: block; }
  .nav__liste { flex-direction: column; align-items: stretch; padding: .75rem var(--gouttiere) 1.25rem; gap: 0; }
  .nav__lien, .nav__deroulant > summary { padding: .85rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--pin-50); border-radius: 0; }
  .nav__lien[aria-current="page"] { box-shadow: none; color: var(--argile-600); }
  .nav__deroulant > summary { justify-content: space-between; }
  .nav__sous { position: static; box-shadow: none; border: 0; padding: 0 0 .5rem .75rem; min-width: 0; }
  .nav__sous a { padding: .7rem .25rem; font-size: 1rem; }
  .entete__rdv .long { display: none; }
}
@media (max-width: 520px) {
  .marque__nom { font-size: 1.12rem; white-space: nowrap; }
  .marque__metier { display: none; }
  .entete__int { gap: .6rem; }
  .entete__rdv { padding: .6rem .75rem; font-size: .9rem; white-space: nowrap; }
  .entete__rdv svg { display: none; }
  .menu-bouton { padding: .55rem .65rem; }
  .menu-bouton span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Sections */
.section { padding-block: var(--espace-section); }
.section--rose { background: var(--argile-50); }
.section--vert { background: var(--pin-50); }
.section--sombre { background: var(--pin-900); color: #e8efea; }
.section--sombre h2, .section--sombre h3 { color: var(--blanc); }
.section--sombre a { color: var(--argile-200); }
.section__tete { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__tete p { color: var(--encre-2); font-size: 1.1rem; }
.section--sombre .section__tete p { color: #cfdcd5; }
.section--terre { background: var(--terracotta-pale); }
.chapo { font-size: clamp(1.1rem, 1.02rem + .35vw, 1.25rem); line-height: 1.6; }

/* Accueil — haut de page */
.hero { background: var(--terracotta-clair); color: var(--encre-2); overflow: hidden; }
.hero__grille { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: stretch; }
.hero__texte { padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 5vw, 4.5rem) 0; }
.hero__qui { font-family: var(--ui); font-weight: 600; font-size: 1rem; color: var(--argile-700); margin-bottom: 1.1rem; }
.hero h1 { color: var(--pin-950); max-width: 19ch; margin-bottom: 1.25rem; }
.hero a:not(.bouton) { color: var(--pin-700); }
.hero a:not(.bouton):hover { color: var(--pin-950); }
.hero__chapo { font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem); line-height: 1.62; color: var(--encre-2); max-width: 52ch; margin-bottom: 2rem; }
.hero .rdv { margin-bottom: 2.75rem; }
.titres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; font-family: var(--ui); }
.titres li { border-top: 1px solid var(--terracotta-trait); padding-top: .8rem; font-size: .95rem; line-height: 1.45; color: var(--encre-2); }
.titres strong { display: block; color: var(--pin-950); font-weight: 600; font-size: 1rem; margin-bottom: .15rem; }
.hero__photo { position: relative; margin: 0 calc(-1 * (100vw - min(100vw - 2 * var(--gouttiere), var(--large))) / 2) 0 0; min-height: 100%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__photo::before {
  content: ""; position: absolute; inset: auto auto 0 0; width: 38%; height: 9px; background: var(--argile-500); z-index: 1;
}
@media (max-width: 900px) {
  .hero__grille { grid-template-columns: 1fr; }
  .hero__texte { padding: 2.75rem 0 2.5rem; }
  .hero__photo { margin: 0 calc(-1 * var(--gouttiere)); }
  .hero__photo img { aspect-ratio: 4 / 4.2; height: auto; max-height: 80vh; }
}
@media (max-width: 520px) { .titres { grid-template-columns: 1fr; gap: .9rem; } }

/* Le fil : les domaines « suspendus » à un même ligament */
.domaines { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.domaines__intro { align-self: stretch; }
/* La photo accompagne la lecture de la liste, sans jamais dépasser la hauteur de l'écran */
.domaines__intro figure { margin: 2rem 0 0; position: sticky; top: 6.5rem; }
.domaines__intro img { border-radius: var(--rayon); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-height: calc(100vh - 8.5rem); }
.fil { list-style: none; margin: 0; padding: 0 0 0 2.4rem; position: relative; }
.fil::before {
  content: ""; position: absolute; left: .62rem; top: .9rem; bottom: 1.4rem; width: 2px;
  background: linear-gradient(to bottom, var(--argile-300), var(--argile-200));
  border-radius: 2px;
}
.fil > li { position: relative; padding-bottom: 2.4rem; }
.fil > li:last-child { padding-bottom: 0; }
.fil > li::before {
  content: ""; position: absolute; left: -2.18rem; top: .55rem; width: .95rem; height: .95rem; border-radius: 50%;
  background: var(--blanc); border: 2.5px solid var(--argile-500);
}
.domaine h3 { margin-bottom: .45rem; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.domaine h3 a { color: inherit; text-decoration: none; }
.domaine h3 a:hover { color: var(--argile-600); }
.domaine p { margin-bottom: .6rem; color: var(--encre-2); }
.domaine__motifs { font-family: var(--ui); font-size: .92rem; color: var(--gris); line-height: 1.5; margin-bottom: .7rem; }
.lien-suite { font-family: var(--ui); font-weight: 600; font-size: .95rem; }
@media (max-width: 900px) {
  .domaines { grid-template-columns: 1fr; }
  .domaines__intro { position: static; }
  .domaines__intro figure { display: none; }
}

/* Chaîne organe → attache → squelette */
.chaine { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: maillon; }
.chaine li { position: relative; padding: 1.6rem 1.6rem 1.5rem; background: var(--blanc); border: 1px solid var(--trait); }
.chaine li:first-child { border-radius: var(--rayon) 0 0 var(--rayon); }
.chaine li:last-child { border-radius: 0 var(--rayon) var(--rayon) 0; }
.chaine li + li { border-left: 0; }
.chaine li + li::before {
  content: ""; position: absolute; left: -.6rem; top: 50%; width: 1.2rem; height: 1.2rem; transform: translateY(-50%) rotate(45deg);
  background: var(--blanc); border-top: 1px solid var(--trait); border-right: 1px solid var(--trait);
}
.chaine h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.chaine h3 span { display: block; font-family: var(--ui); font-size: .85rem; font-weight: 600; color: var(--argile-600); margin-bottom: .35rem; }
.chaine p { margin: 0; color: var(--encre-2); font-size: 1rem; }
@media (max-width: 760px) {
  .chaine { grid-template-columns: 1fr; }
  .chaine li:first-child { border-radius: var(--rayon) var(--rayon) 0 0; }
  .chaine li:last-child { border-radius: 0 0 var(--rayon) var(--rayon); }
  .chaine li + li { border-left: 1px solid var(--trait); border-top: 0; }
  .chaine li + li::before { left: 50%; top: -.6rem; transform: translateX(-50%) rotate(135deg); }
}

.tableau-defile { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--blanc); }
table { border-collapse: collapse; width: 100%; font-family: var(--ui); font-size: .95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--trait); }
thead th { font-weight: 600; color: var(--pin-900); background: var(--pin-50); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--pin-900); white-space: nowrap; }
.note { font-family: var(--ui); font-size: .92rem; color: var(--gris); }
@media (max-width: 640px) {
  .tableau-defile { border: 0; background: transparent; overflow: visible; }
  .tableau-defile table, .tableau-defile tbody, .tableau-defile tr, .tableau-defile td { display: block; width: 100%; }
  .tableau-defile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau-defile tr { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: .4rem 0; margin-bottom: .9rem; }
  .tableau-defile td { border: 0; padding: .45rem 1rem; white-space: normal; }
  .tableau-defile td[data-label]::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--argile-600); margin-bottom: .1rem; }
  .tableau-defile td:first-child { font-size: 1.02rem; }
  .tableau-defile td:first-child::before { display: none; }
}

/* Deux colonnes texte + image */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.duo--inverse > :first-child { order: 2; }
.duo figure { margin: 0; }
.duo img { border-radius: var(--rayon); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.duo figcaption, .galerie figcaption, .cabinet figcaption { font-family: var(--ui); font-size: .85rem; color: var(--gris); margin-top: .6rem; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .duo--inverse > :first-child { order: 0; } }

.liste-pro { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--ui); }
.liste-pro li { padding: .45rem .8rem; border-radius: 999px; background: var(--pin-50); color: var(--pin-800); font-size: .92rem; font-weight: 500; }

/* Ce que je fais / ne fais pas */
.engagements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.engagements h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.engagements ul { list-style: none; margin: 0; padding: 0; }
.engagements li { position: relative; padding: 0 0 .85rem 1.7rem; font-size: 1.02rem; }
.engagements .oui li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--argile-500); }
.engagements .non li::before { content: ""; position: absolute; left: 0; top: .78em; width: .85rem; height: 2px; background: var(--pin-700); }
.section--sombre .engagements .non li::before { background: rgba(255, 255, 255, .45); }
@media (max-width: 760px) { .engagements { grid-template-columns: 1fr; } }

/* Étapes de consultation (vraie séquence) */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: etape; }
.etapes li { counter-increment: etape; border-top: 2px solid var(--argile-200); padding-top: 1rem; }
.etapes li::before { content: counter(etape); display: block; font-family: var(--texte); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--argile-500); margin-bottom: .6rem; }
.etapes h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.etapes p { font-size: .98rem; color: var(--encre-2); margin: 0; }
@media (max-width: 900px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; } }

.tarif { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: 2.5rem; padding: 1.5rem 1.75rem; border-radius: var(--rayon); background: var(--blanc); border: 1px solid var(--trait); }
.tarif__prix { font-family: var(--texte); font-size: 2rem; font-weight: 600; color: var(--pin-900); line-height: 1; }
.tarif p { margin: .35rem 0 0; font-family: var(--ui); font-size: .95rem; color: var(--gris); }

/* Listes d'articles */
.articles-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 2rem; }
.articles-grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.carte-article { border-top: 2px solid var(--argile-200); padding-top: 1rem; }
.carte-article__theme { font-family: var(--ui); font-size: .85rem; font-weight: 600; color: var(--argile-600); margin-bottom: .4rem; display: block; }
.carte-article h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: .45rem; }
.carte-article h3 a { color: var(--pin-900); text-decoration: none; }
.carte-article h3 a:hover { color: var(--argile-600); text-decoration: underline; }
.carte-article p { font-family: var(--ui); font-size: .95rem; line-height: 1.5; color: var(--gris); margin: 0; }
@media (max-width: 900px) { .articles-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .articles-grille, .articles-grille--2 { grid-template-columns: 1fr; } }

.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; font-family: var(--ui); }
.filtres button {
  font: inherit; font-size: .92rem; font-weight: 600; padding: .55rem .95rem; min-height: 44px; border-radius: 999px; cursor: pointer;
  background: var(--blanc); color: var(--pin-800); border: 1.5px solid var(--trait);
}
.filtres button[aria-pressed="true"] { background: var(--pin-800); border-color: var(--pin-800); color: var(--blanc); }
.groupe-articles { margin-bottom: 3.5rem; }
.groupe-articles[hidden] { display: none; }
.groupe-articles h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.groupe-articles > p { color: var(--encre-2); max-width: 62ch; }

/* FAQ */
.faq { border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
  padding: 1.15rem 0; font-family: var(--texte); font-weight: 600; font-size: 1.12rem; color: var(--pin-900); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.35rem; height: 1.35rem; margin-top: .1rem; border-radius: 50%;
  background:
    linear-gradient(var(--argile-600), var(--argile-600)) center / .7rem 2px no-repeat,
    linear-gradient(var(--argile-600), var(--argile-600)) center / 2px .7rem no-repeat;
  border: 1.5px solid var(--argile-300);
}
.faq details[open] summary::after { background: linear-gradient(var(--argile-600), var(--argile-600)) center / .7rem 2px no-repeat; }
.faq .reponse { padding: 0 0 1.25rem; color: var(--encre-2); max-width: 68ch; }
.faq .reponse p:last-child { margin-bottom: 0; }

/* Cabinet */
.cabinet { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.adresse { font-style: normal; font-size: 1.15rem; line-height: 1.55; margin-bottom: 1.5rem; }
.adresse strong { color: var(--pin-900); }
.horaires { font-family: var(--ui); font-size: .98rem; margin: 0 0 1.75rem; display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.5rem; }
.horaires dt { font-weight: 600; color: var(--pin-900); }
.horaires dd { margin: 0; color: var(--encre-2); }
.contact-ligne { font-family: var(--ui); display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.75rem; }
.contact-ligne a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.contact-ligne svg { width: 1.1rem; height: 1.1rem; color: var(--argile-600); }
.cabinet figure { margin: 0; }
.cabinet img { border-radius: var(--rayon); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .cabinet { grid-template-columns: 1fr; } }

.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.galerie figure { margin: 0; }
.galerie img { border-radius: var(--rayon); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 700px) { .galerie { grid-template-columns: 1fr 1fr; } .galerie figure:last-child { grid-column: 1 / -1; } .galerie figure:last-child img { aspect-ratio: 3 / 2; } }

/* Bandeau de rendez-vous */
.bandeau-rdv { background: var(--terracotta-clair); color: var(--encre-2); border-radius: calc(var(--rayon) + 4px); padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 1.5rem 2.5rem; align-items: center; }
.bandeau-rdv h2 { color: var(--pin-950); font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); margin-bottom: .5rem; }
.bandeau-rdv p { margin: 0; color: var(--encre-2); }
.bandeau-rdv .boutons { justify-content: flex-end; }
@media (max-width: 760px) { .bandeau-rdv { grid-template-columns: 1fr; } .bandeau-rdv .boutons { justify-content: flex-start; } }

/* Pages intérieures : en-tête */
.entete-page { background: var(--argile-50); border-bottom: 1px solid var(--argile-100); }
.entete-page__grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.25rem, 5vw, 4.25rem); }
.entete-page__grille--seul { grid-template-columns: minmax(0, 1fr); }
.entete-page figure { margin: 0; }
.entete-page img { border-radius: var(--rayon); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 460px; }
.entete-page img.photo-portrait { object-position: 50% 15%; } /* garde de l'air au-dessus du visage */
.entete-page h1 { max-width: 22ch; }
.entete-page .chapo { color: var(--encre-2); max-width: 60ch; margin-bottom: 1.75rem; }
@media (max-width: 860px) {
  .entete-page__grille { grid-template-columns: 1fr; }
  .entete-page figure { order: -1; }
  .entete-page img { aspect-ratio: 3 / 2; max-height: 340px; }
}

.ariane { font-family: var(--ui); font-size: .88rem; color: var(--gris); margin-bottom: 1.25rem; }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.ariane li + li::before { content: "/"; margin: 0 .45rem 0 .1rem; color: var(--argile-300); }
.ariane a { color: var(--gris); }
.ariane [aria-current] { color: var(--encre-2); }

/* Contenu long : articles et piliers */
.contenu-grille { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(2.5rem, 5vw, 4rem); }
.contenu-grille--seul { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) { .contenu-grille { grid-template-columns: minmax(0, 1fr); } .colonne-laterale { order: -1; } }

.prose { max-width: 70ch; font-size: 1.09rem; line-height: 1.75; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); scroll-margin-top: 6.5rem; }
.prose h3 { margin-top: 1.9rem; font-size: 1.22rem; scroll-margin-top: 6.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--argile-500); }
.prose strong { font-weight: 600; color: var(--pin-900); }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--argile-300); color: var(--encre-2); font-style: italic; }
.prose table { font-size: .95rem; margin: 1.5rem 0; }
.prose > :first-child { margin-top: 0; }
.prose .tableau-defile table { margin: 0; }

.en-bref { background: var(--argile-100); border-radius: var(--rayon); padding: 1.4rem 1.6rem 1.2rem; margin: 0 0 2.25rem; max-width: 70ch; }
.en-bref h2 { font-size: 1.15rem; margin: 0 0 .65rem; color: var(--argile-700); }
.en-bref ul { margin: 0; padding-left: 1.2rem; font-size: 1.02rem; }
.en-bref li { margin-bottom: .45rem; }
.en-bref li::marker { color: var(--argile-500); }

.encadre-medical { background: var(--blanc); border: 1.5px solid var(--argile-300); border-radius: var(--rayon); padding: .3rem 1.6rem 1.1rem; margin: 2.6rem 0; }
.encadre-medical h2 { display: flex; align-items: center; gap: .65rem; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-top: 1.4rem; }
.encadre-medical h2::before {
  content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--argile-600); color: var(--blanc); font-family: var(--ui); font-size: 1rem; font-weight: 700;
}

.motifs { columns: 2; column-gap: 2rem; font-family: var(--ui); font-size: .98rem; list-style: none; padding: 0; margin: 0 0 2.5rem; max-width: 70ch; }
.motifs li { break-inside: avoid; padding: .55rem 0 .55rem 1.2rem; border-bottom: 1px solid var(--trait); position: relative; }
.motifs li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--argile-500); }
@media (max-width: 600px) { .motifs { columns: 1; } }

.meta-article { font-family: var(--ui); font-size: .92rem; color: var(--gris); display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: 1rem; }
.meta-article a { color: var(--pin-700); font-weight: 600; }
.theme-lien { font-family: var(--ui); font-weight: 600; font-size: .92rem; color: var(--argile-600); text-decoration: none; display: inline-block; margin-bottom: .65rem; }
.theme-lien:hover { text-decoration: underline; }

.colonne-laterale { position: sticky; top: 6.5rem; display: grid; gap: 1.25rem; }
@media (max-width: 1000px) { .colonne-laterale { position: static; } .colonne-laterale .carte-rdv { display: none; } }
.sommaire { font-family: var(--ui); font-size: .93rem; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem 1.15rem; }
.sommaire summary { font-weight: 600; color: var(--pin-900); cursor: pointer; }
.sommaire ol { margin: .75rem 0 0; padding-left: 1.1rem; }
.sommaire li { margin-bottom: .4rem; line-height: 1.4; }
.sommaire a { color: var(--encre-2); text-decoration: none; }
.sommaire a:hover { color: var(--argile-600); text-decoration: underline; }
.carte-rdv { background: var(--terracotta-clair); color: var(--encre-2); border-radius: var(--rayon); padding: 1.3rem 1.25rem; font-family: var(--ui); font-size: .95rem; }
.carte-rdv p { margin: 0 0 1rem; line-height: 1.5; }
.carte-rdv strong { display: block; font-family: var(--texte); font-size: 1.15rem; color: var(--pin-950); margin-bottom: .35rem; }
.carte-rdv .bouton { width: 100%; }
.carte-rdv .bouton + .bouton { margin-top: .6rem; }

.auteur { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 1.1rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); margin: 2.75rem 0 2rem; max-width: 70ch; }
.auteur img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.auteur p { margin: 0; font-family: var(--ui); font-size: .95rem; line-height: 1.55; color: var(--encre-2); }
.auteur p strong { font-family: var(--texte); font-size: 1.1rem; color: var(--pin-900); display: block; margin-bottom: .2rem; }

.sources { font-family: var(--ui); font-size: .88rem; color: var(--gris); max-width: 70ch; margin-bottom: 2.5rem; }
.sources h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.sources ol { padding-left: 1.1rem; margin: 0; }
.sources li { margin-bottom: .4rem; line-height: 1.45; }
.avertissement { font-family: var(--ui); font-size: .88rem; color: var(--gris); max-width: 70ch; border-left: 3px solid var(--pin-100); padding-left: 1rem; margin: 0 0 2.5rem; }

.connexes { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--argile-50); }
.connexes h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); margin-bottom: 1.75rem; }

/* Parcours (frise : vraie chronologie) */
.frise { list-style: none; margin: 0; padding: 0 0 0 2.4rem; position: relative; max-width: 70ch; }
.frise::before { content: ""; position: absolute; left: .62rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--argile-200); }
.frise li { position: relative; padding-bottom: 1.6rem; }
.frise li::before { content: ""; position: absolute; left: -2.18rem; top: .45rem; width: .95rem; height: .95rem; border-radius: 50%; background: var(--blanc); border: 2.5px solid var(--argile-500); }
.frise__date { font-family: var(--ui); font-size: .9rem; font-weight: 700; color: var(--argile-600); display: block; }
.frise h3 { font-size: 1.15rem; margin: .1rem 0 .25rem; }
.frise p { margin: 0; color: var(--encre-2); font-size: 1rem; }

/* Pied de page */
.pied { background: var(--pin-950); color: #b9c9c1; font-family: var(--ui); font-size: .95rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.pied a { color: #e3ece7; text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied__grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.pied__nom { font-family: var(--texte); font-size: 1.35rem; font-weight: 600; color: var(--blanc); margin-bottom: .25rem; }
.pied h2 { font-family: var(--ui); font-size: .95rem; font-weight: 600; color: var(--blanc); margin: 0 0 .9rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .5rem; }
.pied address { font-style: normal; line-height: 1.6; margin: .75rem 0 1rem; }
.pied__bas { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .85rem; color: #93a69c; }
.pied__bas p { margin: 0; max-width: 70ch; }
@media (max-width: 860px) { .pied__grille { grid-template-columns: 1fr; gap: 2rem; } }

.a-completer { background: #fff3cd; color: #6b4e00; padding: 0 .25rem; border-radius: 3px; font-family: var(--ui); font-size: .92em; }

@media (prefers-reduced-motion: no-preference) {
  .nav__deroulant > summary::after { transition: transform .15s ease; }
}

@media print {
  .entete, .pied, .colonne-laterale, .bandeau-rdv, .connexes, .lien-evitement, .carte-rdv { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .contenu-grille { display: block; padding: 0; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; }
  .entete-page { background: none; }
  .entete-page figure { display: none; }
}
