/* =========================================================
   Espace Santé Intégrative de Sherbrooke
   Feuille de style du site public.
   Palette et typographie tirées du guide identitaire ESIS.

   Parti pris : des transitions longues et douces (jamais de rebond),
   des images qui se découvrent de gauche à droite, du Cormorant
   généreux. Rien ne doit sursauter.
   ========================================================= */

/* --- Polices ------------------------------------------------ */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/CormorantGaramond-Variable.woff2") format("woff2-variations"),
       url("/assets/fonts/CormorantGaramond-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/CormorantGaramond-Italic-Variable.woff2") format("woff2-variations"),
       url("/assets/fonts/CormorantGaramond-Italic-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

/* --- Jetons de marque --------------------------------------- */
:root {
  /* Orange principal fourni par la cliente ; les trois déclinaisons en sont
     dérivées par variation de luminosité, pour que la famille reste cohérente. */
  --terre: #E38A5F;
  --terre-fonce: #C56E43;
  --terre-clair: #EDB395;
  --sable: #F4DDD0;
  --casse: #F1E8E3;
  --bleu: #566C90;
  --bleu-profond: #3E5579;
  --fond: #F5F0E9;
  --texte: #68696B;
  --texte-fonce: #4A4B4D;
  --blanc: #FFFFFF;
  --trait: #E2D5C9;
  --trait-clair: rgba(255, 255, 255, .18);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --marge: clamp(22px, 6vw, 108px);
  --section-y: clamp(84px, 9.5vw, 168px);
  --rayon: 3px;
  --arche: 999px 999px 10px 10px;

  /* Une seule courbe pour tout le site : lente au départ, longue à la fin. */
  --doux: cubic-bezier(.22, .61, .30, 1);
  --fondu: .78s var(--doux);
  --fondu-long: 1.15s var(--doux);

  --ombre-douce: 0 24px 64px -38px rgba(90, 70, 55, .34);
  --ombre-carte: 0 34px 80px -50px rgba(90, 70, 55, .46);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--terre); color: #fff; }

.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;
}

.lien-evitement {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--bleu-profond); color: #fff; padding: 14px 22px; font-size: 13px;
}
.lien-evitement:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; border-radius: 2px; }

/* « Chiro-Clinique » ne doit jamais se casser sur le trait d'union.
   Posé par h_insecable() sur les noms composés. */
.insecable { white-space: nowrap; }

/* =========================================================
   Typographie — Cormorant généreux
   ========================================================= */
.titre-xxl, .titre-xl, .titre-l, .titre-m, .titre-s {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bleu-profond);
  letter-spacing: -.008em;
  margin: 0;
  text-wrap: balance;
}
.titre-xxl { font-size: clamp(33px, 4.4vw, 68px); line-height: .93; }
.titre-xl  { font-size: clamp(33px, 4vw, 58px);   line-height: .97; }
.titre-l   { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.0; }
.titre-m   { font-size: clamp(25px, 2.5vw, 36px); line-height: 1.06; }
.titre-s   { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.12; }

.surtitre {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--terre);
  margin: 0 0 18px;
}

.lead {
  font-size: clamp(17px, 1.15vw, 19.5px);
  line-height: 1.8;
  color: var(--texte);
  max-width: 48ch;
  margin: 24px 0 0;
}

.section-intro { max-width: 60ch; margin: 20px auto 0; font-size: 17px; }
.section-tete-centre .section-intro { text-align: center; }
.section-intro-gauche { margin-left: 0; margin-right: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* Lien souligné discret, très utilisé */
.lien-souligne {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terre); background: none; border: 0; padding: 4px 0;
  position: relative;
}
.lien-souligne::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(1);
  transition: transform .6s var(--doux);
}
.lien-souligne:hover::after { transform-origin: left; transform: scaleX(0); }
.lien-souligne svg { width: 14px; height: 14px; transition: transform .6s var(--doux); }
.lien-souligne:hover svg { transform: translateX(5px); }

/* =========================================================
   Mise en page générale
   ========================================================= */
.section { padding: var(--section-y) var(--marge); position: relative; }

.section-tete { max-width: 820px; margin-bottom: clamp(48px, 5.2vw, 84px); }
.section-tete-centre { margin-left: auto; margin-right: auto; text-align: center; }

/* L'entête d'une section partage le conteneur de son contenu (1440 px centrés)
   au lieu de se caler sur le bord de la page : sur un grand écran, le titre
   se retrouvait sinon plus à gauche que la grille qu'il annonce. Le texte,
   lui, reste borné à sa largeur de lecture. */
.regroupement > .section-tete,
.piliers > .section-tete,
.specialistes > .section-tete {
  width: 100%; max-width: 1440px; margin-left: auto; margin-right: auto;
}
.piliers > .section-tete > * { max-width: 820px; }

/* Chaque section se lit d'un écran, sans défilement interne : on vise la
   hauteur de la fenêtre et on centre le contenu. `min-height` et non
   `height` — si le contenu déborde malgré tout (texte long, petite
   fenêtre), la page défile normalement plutôt que de tronquer.
   Réservé aux écrans assez hauts : sur un portable écrasé ou un téléphone,
   le flux normal reste plus lisible. */
@media (min-width: 981px) and (min-height: 720px) {
  .regroupement, .apropos, .piliers, .citation,
  .expertises, .appel-action, .contact {
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: clamp(70px, 7vh, 110px);
    padding-bottom: clamp(70px, 7vh, 110px);
  }
  .regroupement > *, .apropos > *, .piliers > *, .citation > *,
  .expertises > *, .appel-action > *, .contact > * { width: 100%; }

  /* Les images gardent leur proportion mais ne poussent plus la section
     au-delà de l'écran. */
  .apropos .cadre-arche { max-height: 62vh; }
  .expertises-colonne-photo .cadre-arche { max-height: 56vh; }
  .section-tete { margin-bottom: clamp(34px, 3.4vw, 56px); }
}

.fond-creme { background: var(--casse); }
.fond-sable { background: var(--sable); }
.fond-blanc { background: var(--blanc); }

.vide-message {
  text-align: center; font-size: 15px; color: var(--texte);
  border: 1px dashed var(--trait); border-radius: var(--rayon);
  padding: 46px 24px; background: #fff8;
}

/* =========================================================
   Boutons — pleins, doux, sans rebond
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase;
  padding: 18px 30px; border: 1px solid transparent; border-radius: 999px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color var(--fondu), border-color var(--fondu), background-color var(--fondu);
  cursor: pointer; white-space: nowrap; text-align: center;
}
/* Le fond de survol monte en fondu, il ne « saute » pas. */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bleu-profond); opacity: 0;
  transition: opacity var(--fondu);
}
.btn:hover::before, .btn:focus-visible::before { opacity: 1; }
.btn-icone { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .6s var(--doux); }
.btn:hover .btn-icone { transform: translateX(5px); }

.btn-plein { background: var(--terre); color: #fff; }
.btn-plein:hover { color: #fff; }

.btn-ligne { border-color: var(--terre); color: var(--terre); background: transparent; }
.btn-ligne::before { background: var(--terre); }
.btn-ligne:hover { color: #fff; border-color: var(--terre); }

.btn-clair { background: #fff; color: var(--terre-fonce); }
.btn-clair:hover { color: #fff; }

.btn-petit { padding: 13px 22px; font-size: 10.5px; letter-spacing: .15em; }
/* Format des pieds de carte : « En savoir plus » et « Rendez-vous » doivent
   tenir côte à côte sur une seule ligne. */
.btn-mini { padding: 9px 15px; font-size: 9.5px; letter-spacing: .1em; gap: 6px; }
.lien-mini {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 9.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--terre); background: none; border: 0; padding: 9px 0;
  position: relative; white-space: nowrap;
}
.lien-mini::after {
  content: ""; position: absolute; left: 0; bottom: 5px; width: 100%; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(1);
  transition: transform .6s var(--doux);
}
.lien-mini:hover::after { transform-origin: left; transform: scaleX(0); }
.lien-mini svg { width: 12px; height: 12px; transition: transform .6s var(--doux); }
.lien-mini:hover svg { transform: translateX(4px); }

/* =========================================================
   Écran de chargement
   ========================================================= */
.chargement {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--fond);
  display: grid; place-items: center;
  transition: opacity .7s var(--doux), visibility .7s;
}
.chargement.est-parti { opacity: 0; visibility: hidden; pointer-events: none; }
.chargement-centre { display: flex; flex-direction: column; align-items: center; gap: 34px; }

/* Le monogramme reste immobile, la mention tourne autour de lui. */
.chargement-sceau {
  position: relative;
  width: clamp(150px, 19vw, 216px);
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.chargement-anneau {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* Un tour en 7 s : sur les ~1,7 s d'affichage, l'anneau parcourt près d'un
     quart de tour — assez pour qu'on voie qu'il tourne, assez lent pour
     rester calme. */
  animation: anneauTourne 7s linear infinite;
}
.chargement-monogramme {
  position: relative;
  width: 54%; height: auto;
  animation: monogrammeRespire 3.4s ease-in-out infinite;
}
@keyframes anneauTourne { to { transform: rotate(360deg); } }
@keyframes monogrammeRespire {
  0%, 100% { opacity: .74; }
  50%      { opacity: 1; }
}
.chargement-barre {
  display: block; width: 156px; height: 1.5px;
  background: rgba(217, 145, 102, .2); overflow: hidden; border-radius: 2px;
}
.chargement-jauge {
  display: block; width: 0; height: 100%; background: var(--terre);
  transition: width .5s var(--doux);
}

/* =========================================================
   Navigation
   ========================================================= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; gap: 30px;
  padding: 24px var(--marge);
  background: transparent;
  transition: background var(--fondu), padding var(--fondu),
              box-shadow var(--fondu), border-color var(--fondu);
  border-bottom: 1px solid transparent;
}
.nav-flow { position: static; }

.brand { display: block; flex: 0 0 auto; line-height: 0; }
/* La barre repose toujours sur un fond clair (crème, ou le côté texte de
   l'entête) : le logo terre cuite y reste lisible dans les deux états. */
.brand-logo { width: auto; height: clamp(52px, 5.2vw, 76px); transition: height var(--fondu); }

.navlinks { display: flex; align-items: center; gap: clamp(18px, 2vw, 36px); margin-left: auto; }
.navlinks > a:not(.btn) {
  font-size: 13.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bleu-profond); padding: 8px 0; position: relative;
  transition: color var(--fondu);
}
.navlinks > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px;
  background: var(--terre); transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--doux);
}
.navlinks > a:not(.btn):hover { color: var(--terre); }
.navlinks > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.btn-nav { padding: 16px 30px; font-size: 13px; background: var(--terre); color: #fff; }

/* État défilé */
.site-nav.est-defile {
  background: rgba(245, 240, 233, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--trait);
  padding-top: 15px; padding-bottom: 15px;
  box-shadow: 0 14px 44px -34px rgba(90, 70, 55, .5);
}
.site-nav.est-defile .brand-logo { height: clamp(44px, 4.3vw, 62px); }

.nav-solid { position: sticky; background: rgba(245, 240, 233, .96); border-bottom-color: var(--trait); }

/* Menu mobile */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: 0; background: transparent; padding: 0; margin-left: auto;
}
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--bleu-profond); border-radius: 2px; transition: .4s var(--doux); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 400;
  background: var(--bleu-profond); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .55s var(--doux), visibility .55s;
}
.mobile-menu.est-ouvert { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu-logo { width: 88px; opacity: .8; }
.mobile-menu-close {
  position: absolute; top: 20px; right: 20px; width: 46px; height: 46px;
  border: 1px solid var(--trait-clair); border-radius: 50%; background: transparent;
  color: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center;
  transition: background var(--fondu);
}
.mobile-menu-close:hover { background: rgba(255,255,255,.1); }
.mobile-menu-links { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mobile-menu-links > a:not(.btn) {
  font-family: var(--serif); font-size: 30px; line-height: 1.1; color: #fff;
  transition: color var(--fondu);
}
.mobile-menu-links > a:not(.btn):hover { color: var(--terre-clair); }
.mobile-menu-cta { margin-top: 12px; background: var(--terre); color: #fff; }

/* =========================================================
   Entête
   ========================================================= */
.entete {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(118px, 13vh, 168px) var(--marge) clamp(72px, 8vh, 112px);
  overflow: hidden;
}
.entete-fond { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(78px); opacity: .5; }
.blob-a { width: 46vw; height: 46vw; left: -14vw; top: -12vw; background: var(--sable); }
.blob-b { width: 34vw; height: 34vw; right: 4vw; bottom: -14vw; background: rgba(217, 145, 102, .3); }

.entete-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .92fr);
  gap: clamp(32px, 4.2vw, 72px); align-items: center;
}
/* Le titre veut de la place : la colonne de texte prend la part la plus
   large et le plafond monte avec elle, sinon « ensemble » se retrouve seul
   sur sa ligne. */
.entete-copy { max-width: 680px; }
.entete-boutons { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }

.entete-media { position: relative; }
.entete-photo {
  margin: 0; overflow: hidden;
  border-radius: var(--arche);
  aspect-ratio: 4 / 5;
  max-height: 78svh;
  background: var(--sable);
  box-shadow: var(--ombre-carte);
}
.entete-photo img { width: 100%; height: 100%; object-fit: cover; }

.entete-medaillon {
  position: absolute; left: -8%; bottom: 8%;
  width: clamp(130px, 15vw, 200px); aspect-ratio: 4 / 5;
  margin: 0; overflow: hidden; border-radius: 999px 999px 8px 8px;
  border: 6px solid var(--fond); background: var(--sable);
  box-shadow: var(--ombre-douce);
}
.entete-medaillon img { width: 100%; height: 100%; object-fit: cover; }

/* Le sceau tournant est réservé à l'écran de chargement : dans l'entête, il
   entrait en concurrence avec le logo de la barre de navigation. */

.entete-note {
  display: flex; align-items: center; gap: 10px;
  margin: 24px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--terre);
}
.entete-note svg { width: 17px; height: 17px; }

.entete-defiler {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 2; width: 24px; height: 54px; display: grid; place-items: center;
}
.entete-defiler-trait {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(var(--terre), rgba(217, 145, 102, 0));
  position: relative; overflow: hidden;
}
.entete-defiler-trait::after {
  content: ""; position: absolute; left: 0; top: -46px; width: 1px; height: 46px;
  background: linear-gradient(rgba(62,85,121,0), var(--bleu-profond));
  animation: filDescend 2.8s ease-in-out infinite;
}
@keyframes filDescend { to { transform: translateY(92px); } }

/* =========================================================
   Notre regroupement — panneaux des cliniques
   ========================================================= */
.regroupement { background: var(--casse); }

.panneaux {
  max-width: 1500px; margin: 0 auto;
  display: flex; gap: 14px; align-items: stretch;
  min-height: min(clamp(460px, 56vw, 640px), 62vh);
}

.panneau {
  position: relative; flex: 1 1 0; min-width: 0;
  border-radius: 260px 260px var(--rayon) var(--rayon);
  overflow: hidden; background: var(--bleu-profond); color: #fff;
  cursor: pointer; isolation: isolate;
  /* Le panneau s'ouvre lentement : c'est le geste central de la section. */
  transition: flex-grow 1.05s var(--doux), box-shadow 1.05s var(--doux);
}
.panneau:hover, .panneau:focus-visible, .panneau:focus-within {
  flex-grow: 2.6;
  box-shadow: var(--ombre-carte);
}
.panneau:focus-visible { outline: 2px solid var(--terre); outline-offset: 4px; }

.panneau-photo { position: absolute; inset: 0; z-index: -2; }
.panneau-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); filter: saturate(.86);
  transition: transform 1.6s var(--doux), filter 1.2s var(--doux);
}
.panneau:hover .panneau-photo img,
.panneau:focus-within .panneau-photo img { transform: scale(1); filter: saturate(1); }

/* Voile : sombre au repos pour laisser lire le nom, plus clair à l'ouverture. */
.panneau-voile {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(62,85,121,.34) 0%, rgba(62,85,121,.62) 46%, rgba(30,44,66,.9) 100%);
  transition: background 1.05s var(--doux);
}
.panneau:hover .panneau-voile,
.panneau:focus-within .panneau-voile {
  background: linear-gradient(180deg, rgba(62,85,121,.24) 0%, rgba(62,85,121,.56) 40%, rgba(30,44,66,.92) 100%);
}

/* Les quatre panneaux sont réglés comme une grille : chaque bande — logo,
   nom, accroche, coordonnées — occupe la même hauteur d'un panneau à l'autre,
   donc tout est vis-à-vis. Le contenu part du haut, sous le logo. */
.panneau-contenu {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: clamp(42px, 4.4vw, 66px) clamp(16px, 1.6vw, 26px) clamp(26px, 2.6vw, 40px);
}
/* Largeur de texte figée, indépendante de l'ouverture du panneau : les sauts
   de ligne du nom ne se recomposent jamais au survol. */
.panneau-contenu > * { width: min(100%, 268px); }

/* Bande de hauteur fixe, logos calés sur sa ligne du bas : leurs bases
   s'alignent d'un panneau à l'autre malgré des formats très différents.
   Deux plafonds plutôt qu'un : à hauteur égale, le logotype de la chiro —
   cinq fois plus large que haut — écrasait visuellement les trois logos
   verticaux. La bride de largeur rétablit des présences comparables. */
/* Même boîte de rapport 2,07 que dans les entêtes de groupe : c'est ce qui
   met les quatre logos à surface égale malgré leurs formes opposées. */
.panneau-logo-zone {
  height: clamp(66px, 6.5vw, 90px);
  display: flex; align-items: flex-end; justify-content: center;
  margin-bottom: clamp(34px, 3.6vw, 52px);
}
/* Les quatre logos sont de familles graphiques très différentes : les
   réduire tous à une silhouette blanche est ce qui les fait cohabiter.
   L'ombre portée les décolle des photos claires — sans elle, le logo de la
   clinique d'allaitement, tout en traits fins, disparaît. */
.panneau-logo {
  max-height: 100%; max-width: clamp(137px, 13.4vw, 186px);
  width: auto; height: auto;
  object-fit: contain; object-position: center bottom;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(20, 30, 45, .55));
}

.panneau-nom {
  font-family: var(--serif); font-weight: 400; color: #fff; margin: 0;
  font-size: clamp(20px, 1.55vw, 26px); line-height: 1.12;
  text-shadow: 0 2px 16px rgba(20, 30, 45, .4);
  min-height: 2.24em;
}
/* Un bloc par ligne : le découpage vient du PHP (lignes_du_nom), jamais de la
   largeur disponible. */
.panneau-nom-ligne { display: block; }

.panneau-accroche {
  margin: clamp(12px, 1.3vw, 18px) 0 0;
  font-size: 13.5px; line-height: 1.55; letter-spacing: .03em;
  color: rgba(255,255,255,.82);
  min-height: 3.1em;
}


.panneau-details {
  margin-top: 18px;
  display: grid; grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 1.05s var(--doux), opacity .85s var(--doux) .12s;
}
.panneau-details > * { min-height: 0; }
.panneau:hover .panneau-details,
.panneau:focus-within .panneau-details { grid-template-rows: 1fr; opacity: 1; }

.panneau-details > .panneau-infos { overflow: hidden; }

.panneau-infos { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.panneau-infos li {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; line-height: 1.5; text-align: center;
  overflow-wrap: anywhere;
}
.panneau-infos svg { width: 16px; height: 16px; color: var(--terre-clair); flex: 0 0 auto; }
.panneau-infos a { transition: color var(--fondu); }
.panneau-infos a:hover { color: var(--terre-clair); }

.panneau-actions { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.panneau-actions .lien-souligne { color: var(--terre-clair); }

/* =========================================================
   Bandeau défilant
   ========================================================= */
.bandeau { overflow: hidden; padding: 18px 0; }
.bandeau-terracotta { background: var(--terre); color: #fff; }
.bandeau-sable { background: var(--sable); color: var(--bleu-profond); }
.bandeau-bleu { background: var(--bleu-profond); color: #fff; }

.bandeau-piste { display: flex; width: max-content; animation: defile 68s linear infinite; }
.bandeau-suite { display: flex; align-items: center; }
.bandeau-mot {
  font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  padding: 0 24px; white-space: nowrap;
}
.bandeau-feuille { width: 15px; height: 15px; opacity: .6; flex: 0 0 auto; }
@keyframes defile { to { transform: translateX(-50%); } }
.bandeau:hover .bandeau-piste { animation-play-state: paused; }

/* =========================================================
   À propos
   ========================================================= */
.apropos { background: var(--fond); }
.apropos-grille {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  gap: clamp(38px, 6vw, 96px); align-items: center;
}
.apropos-texte { max-width: 56ch; margin-top: 30px; }

.apropos-points { list-style: none; margin: 38px 0; padding: 0; display: grid; gap: 16px; }
.apropos-points li {
  display: flex; align-items: center; gap: 13px;
  font-family: var(--serif); font-size: clamp(19px, 1.6vw, 25px); line-height: 1.16; color: var(--bleu-profond);
  padding-bottom: 15px; border-bottom: 1px solid var(--trait);
  transition: color var(--fondu), border-color var(--fondu);
}
/* Les trois énoncés gardent le bleu marine au survol : le passage à
   l’orange les faisait lire comme des liens cliquables, ce qu’ils ne sont pas.
   Seul le filet réagit. */
.apropos-points li:hover { border-bottom-color: var(--terre-clair); }
.point-icone { width: 21px; height: 21px; color: var(--terre); flex: 0 0 auto; }

/* La photo est centrée dans sa colonne plutôt que collée au bord droit :
   sans cette contrainte, elle s'étirait sur toute la largeur disponible et
   la composition penchait. */
.apropos-media {
  position: relative;
  display: flex; justify-content: center;
  width: 100%;
}
.apropos-media > .cadre-arche { width: min(100%, 460px); }
.cadre-arche {
  margin: 0; overflow: hidden; border-radius: var(--arche);
  aspect-ratio: 4 / 5; background: var(--sable); box-shadow: var(--ombre-carte);
}
.cadre-arche img { width: 100%; height: 100%; object-fit: cover; }

/* Posé à cheval sur le bord intérieur de la photo : à droite, il frôlerait
   le bord de la fenêtre sur les grands écrans. */
.apropos-medaillon {
  position: absolute; left: -9%; bottom: -7%;
  width: clamp(120px, 14vw, 190px); aspect-ratio: 1;
  margin: 0; overflow: hidden; border-radius: 50%;
  border: 7px solid var(--fond); background: var(--sable);
  box-shadow: var(--ombre-douce);
}
.apropos-medaillon img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Nos engagements
   ========================================================= */
.piliers { background: var(--casse); }
.piliers-grille {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(246px, 1fr)); gap: 1px;
  background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden;
}
.pilier {
  background: var(--casse); padding: clamp(32px, 3vw, 50px);
  transition: background var(--fondu-long);
}
.pilier:hover { background: var(--fond); }
.pilier-num {
  display: block; font-family: var(--serif); font-size: 16px; letter-spacing: .22em; color: var(--terre); margin-bottom: 28px;
}
.pilier-icone { display: block; color: var(--bleu); margin-bottom: 22px; transition: color var(--fondu-long); }
.pilier:hover .pilier-icone { color: var(--terre); }
.pilier-icone svg { width: 32px; height: 32px; }
.pilier-titre { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.9vw, 29px); color: var(--bleu-profond); margin: 0 0 12px; line-height: 1.08; }
.pilier-texte { font-size: 14px; line-height: 1.76; margin: 0; }

/* =========================================================
   Nos spécialistes — logo de la clinique à gauche
   ========================================================= */
.specialistes { background: var(--fond); }

/* Le groupe s'ouvre par une ligne de titre : identité et coordonnées à
   gauche, filet, logo à droite. Les fiches suivent en dessous, sur toute la
   largeur — le logo en colonne latérale mangeait trop de place. */
.pro-groupe {
  max-width: 1500px; margin: 0 auto clamp(54px, 6vw, 96px);
}
.pro-groupe:last-of-type { margin-bottom: 0; }

.pro-groupe-tete {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 46px);
  padding-bottom: clamp(20px, 2.2vw, 30px);
  margin-bottom: clamp(22px, 2.4vw, 34px);
  border-bottom: 0;
}
.pro-groupe-identite { flex: 0 1 auto; min-width: 0; }
.pro-groupe-filet { flex: 1 1 40px; height: 1px; background: var(--trait); min-width: 20px; }

.pro-groupe-nom {
  font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 2.5vw, 38px);
  color: var(--bleu-profond); margin: 0; line-height: 1.04;
}
/* Deux colonnes sous le nom : joindre la clinique à gauche, s'y rendre à
   droite. Une coordonnée par ligne — en file horizontale, téléphone et
   courriel se lisaient comme une seule phrase. */
.pro-groupe-infos {
  margin: 14px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, auto));
  gap: 7px clamp(22px, 2.4vw, 44px); justify-content: start;
}
/* Une seule colonne à remplir : la grille n'en réserve qu'une, sinon la
   piste vide décalait les coordonnées vers la droite. */
.pro-groupe-infos-une { grid-template-columns: minmax(0, auto); }
.pro-groupe-infos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; align-content: start; }
.pro-groupe-infos li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; line-height: 1.5; }
.pro-groupe-infos svg { width: 15px; height: 15px; color: var(--terre); flex: 0 0 auto; }
.pro-groupe-infos a { transition: color var(--fondu); }
.pro-groupe-infos a:hover { color: var(--terre); }

/* Tous les logos à la même taille apparente.
   Un logo n'a pas de « taille » unique : le sigle de la Chiro-Clinique est
   large et plat (rapport 4,86), les trois autres sont hauts (rapport 0,9).
   À hauteur égale, le premier occupe cinq fois plus de surface ; à largeur
   égale, c'est l'inverse. On leur donne donc une boîte commune dont le
   rapport largeur/hauteur vaut √(4,86 × 0,9) ≈ 2,07 : le sigle large bute
   sur la largeur, les hauts butent sur la hauteur, et les quatre couvrent
   la même surface. Changer l'une des deux valeurs sans l'autre casse
   l'égalité. */
.pro-groupe-logo {
  flex: 0 0 auto;
  height: clamp(64px, 6.3vw, 92px);
  width: auto; max-width: clamp(132px, 13vw, 190px);
  object-fit: contain; object-position: right center;
}

/* Deux fiches par rangée, jamais trois : à trois colonnes, un groupe de
   quatre laissait une fiche seule sur la deuxième rangée. La grille est
   bornée et centrée pour ne pas s’étirer sur un grand écran. */
.pro-grille {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.pro-grille-large { max-width: 1500px; margin: 0 auto; }

/* Carte horizontale : photo à gauche, identité et coordonnées à droite.
   Tout tient dans la hauteur d'une photo — la fiche se lit d'un coup d'œil,
   sans avoir à la faire défiler. */
.pro-carte {
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  overflow: hidden; display: grid; grid-template-columns: clamp(128px, 12.5vw, 156px) 1fr;
  /* L'ombre monte lentement et repart encore plus lentement : au survol,
     c'est le seul mouvement de la carte, il ne doit pas se remarquer. */
  transition: box-shadow 1.5s var(--doux), border-color 1.5s var(--doux), background 1.5s var(--doux);
  scroll-margin-top: 118px;
}
.pro-carte:hover {
  box-shadow: 0 30px 72px -52px rgba(90, 70, 55, .38);
  border-color: rgba(232, 181, 145, .55);
  transition-duration: 1.1s;
}

.pro-photo { position: relative; background: var(--sable); overflow: hidden; min-height: 218px; }
.pro-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 1.6s var(--doux), filter 1.2s var(--doux);
  filter: saturate(.92);
}
/* Un point focal réglé dans l'éditeur reprend la main sur le cadrage : le
   style en ligne l'emporte de lui-même sur la règle ci-dessus, à toutes les
   largeurs. C'est lui qui garde le visage dans le cadre quand la carte passe
   en format large et court sur mobile. */
.pro-carte:hover .pro-photo img { transform: scale(1.04); filter: saturate(1); }
.pro-photo-vide { position: absolute; inset: 0; display: grid; place-items: center; color: var(--terre-clair); }
.pro-photo-vide svg { width: 54px; height: 54px; }

/* La photo tient la colonne de gauche : tout le texte s'empile à droite,
   du nom vers les coordonnées puis les actions. Mettre les coordonnées à
   côté du nom donnait trois colonnes en enfilade, illisibles. */
.pro-corps {
  padding: clamp(16px, 1.4vw, 22px);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px;
}
.pro-identite { width: 100%; }

.pro-nom { font-family: var(--serif); font-weight: 400; font-size: clamp(23px, 1.8vw, 29px); line-height: 1.08; color: var(--bleu-profond); margin: 0; }
.pro-titre { font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--terre); margin: 6px 0 0; line-height: 1.6; }

.pro-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; width: 100%; }
.pro-liens li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.pro-liens svg { width: 15px; height: 15px; color: var(--bleu); flex: 0 0 auto; }
.pro-liens a { transition: color var(--fondu); }
.pro-liens a:hover { color: var(--terre); }

/* Les deux actions tiennent sur une seule ligne : c'est la raison d'être du
   format « mini ». Le retour à la ligne n'est autorisé qu'en dessous de la
   largeur où la carte passe elle-même en colonne. */
/* Mention pour les cliniques sans réservation en ligne. */
.pro-note { font-size: 12.5px; font-style: italic; color: var(--terre-fonce); margin: 0; width: 100%; }
.fiche-corps .pro-note { margin-top: 16px; }

.pro-pied {
  width: 100%; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--trait);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: nowrap;
}
.pro-pied > * { flex: 0 0 auto; }

/* =========================================================
   Fiche complète (fenêtre)
   ========================================================= */
.fiche {
  position: relative;
  border: 0; padding: 0; max-width: min(1000px, 94vw); width: 100%;
  max-height: 90svh; background: var(--fond); color: var(--texte);
  border-radius: var(--rayon); box-shadow: 0 50px 120px -40px rgba(30, 40, 60, .55);
  /* Colonne flex plutôt que bloc : c'est ce qui transmet la hauteur maximale
     à .fiche-inner, qui la transmet à son tour à .fiche-corps. Sans cette
     chaîne, la grille intérieure prenait la hauteur de son contenu et la
     biographie longue était coupée sans pouvoir défiler. */
  display: flex; flex-direction: column;
  overflow: hidden;
}
/* Un <dialog> fermé est masqué par le navigateur avec « display: none ».
   La règle « display: flex » ci-dessus l'écrasait : les neuf fiches
   s'affichaient donc à la file sous la section. On rend la main au
   navigateur tant que la fenêtre n'est pas ouverte. */
.fiche:not([open]) { display: none; }
.fiche::backdrop { background: rgba(30, 40, 60, .58); backdrop-filter: blur(6px); }
/* Ouverture en fondu doux, pas d'apparition sèche. */
.fiche[open] { animation: ficheEntre .6s var(--doux); }
.fiche[open]::backdrop { animation: voileEntre .6s var(--doux); }
@keyframes ficheEntre { from { opacity: 0; transform: translateY(18px); } }
@keyframes voileEntre { from { opacity: 0; } }

.fiche-inner {
  flex: 1 1 auto; min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  /* La piste est bornée : sans « minmax(0, 1fr) », une ligne de grille prend
     la hauteur de son contenu et le débordement n'a nulle part où aller. */
  grid-template-rows: minmax(0, 1fr);
  border-radius: var(--rayon);
}
/* La photo garde ses propres proportions au lieu de s'étirer sur toute la
   hauteur de la fenêtre.
   Pourquoi : la hauteur de la fenêtre vient de la biographie, pas de la photo.
   Avec une longue bio, la colonne faisait 400 × 810 px pour un portrait en
   900 × 1125 — « cover » agrandissait alors l'image jusqu'à remplir la hauteur
   et rognait 38 % de la largeur, épaules et joues comprises. En lui donnant
   son propre rapport 4/5, l'image se pose entière en haut de la colonne et le
   fond sable occupe le reste. */
.fiche-photo {
  position: relative; background: var(--sable); overflow: hidden; min-height: 0;
  display: flex; align-items: flex-start;
}
.fiche-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 100%;
  object-fit: cover; object-position: center top;
}

.fiche-corps {
  padding: clamp(26px, 3vw, 48px);
  min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* Barre de défilement discrète, aux couleurs de la marque. */
.fiche-corps { scrollbar-width: thin; scrollbar-color: var(--terre-clair) transparent; }
.fiche-corps::-webkit-scrollbar { width: 8px; }
.fiche-corps::-webkit-scrollbar-thumb { background: var(--terre-clair); border-radius: 99px; }

.fiche-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.fiche-actions .btn { flex: 0 1 auto; }
.fiche-corps .surtitre { margin-bottom: 14px; }
.fiche-titre {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terre); margin: 10px 0 0;
}
.fiche-bio { margin-top: 20px; font-size: 16px; line-height: 1.8; }
.fiche-bloc { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--trait); }
.fiche-sous-titre {
  font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.1;
  color: var(--bleu-profond); margin: 0 0 14px;
}
.fiche-corps .btn { margin-top: 26px; }

.fiche-fermer {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--trait); background: var(--fond); color: var(--bleu-profond);
  font-size: 26px; line-height: 1; display: grid; place-items: center;
  transition: background var(--fondu), color var(--fondu), border-color var(--fondu);
}
.fiche-fermer:hover { background: var(--terre); color: #fff; border-color: var(--terre); }

/* Le corps est figé à sa position exacte pendant qu'une fiche est ouverte :
   « overflow: hidden » seul ferait remonter la page en haut. Le décalage
   `top` est posé par le script, puis rendu à la fermeture. */
body.fiche-ouverte {
  position: fixed; left: 0; right: 0; width: 100%;
  overflow: hidden;
}

/* =========================================================
   Nos expertises — accordéons
   ========================================================= */
.expertises { background: var(--casse); }
.expertises-grille {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 5vw, 92px); align-items: start;
}
.expertises-colonne-photo { position: sticky; top: 122px; }
.expertises-colonne-texte .section-tete { margin-bottom: clamp(30px, 3vw, 48px); }

.accordeons { border-top: 1px solid var(--trait); }

.accordeon { border-bottom: 1px solid var(--trait); }
.accordeon-tete {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  padding: clamp(18px, 1.9vw, 26px) 0;
  transition: color var(--fondu), padding-left var(--fondu);
}
.accordeon-tete::-webkit-details-marker { display: none; }
.accordeon-tete:hover { color: var(--terre); padding-left: 8px; }

.accordeon-feuille { width: 20px; height: 20px; color: var(--terre); flex: 0 0 auto; transition: transform .8s var(--doux); }
.accordeon[open] .accordeon-feuille { transform: rotate(-14deg); }

.accordeon-titre {
  flex: 1; min-width: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(21px, 1.8vw, 28px); line-height: 1.1; color: var(--bleu-profond);
  transition: color var(--fondu);
}
.accordeon-tete:hover .accordeon-titre { color: var(--terre); }

/* Le signe + qui devient − : deux traits, une rotation. */
.accordeon-signe { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.accordeon-signe::before, .accordeon-signe::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--terre);
  transition: transform .7s var(--doux), opacity .7s var(--doux);
}
.accordeon-signe::before { width: 16px; height: 1.5px; transform: translate(-50%, -50%); }
.accordeon-signe::after  { width: 1.5px; height: 16px; transform: translate(-50%, -50%); }
.accordeon[open] .accordeon-signe::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.accordeon-corps { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--doux); }
.accordeon[open] .accordeon-corps { grid-template-rows: 1fr; }
/* Repli : le JS garde l'attribut open le temps que la hauteur redescende. */
.accordeon[open].se-ferme .accordeon-corps { grid-template-rows: 0fr; }
.accordeon-corps-inner { min-height: 0; overflow: hidden; }
.accordeon[open] .accordeon-corps-inner { padding-bottom: clamp(20px, 2vw, 30px); }
.accordeon[open].se-ferme .accordeon-corps-inner { padding-bottom: 0; }
.accordeon[open].se-ferme .accordeon-signe::after { transform: translate(-50%, -50%); opacity: 1; }

.accordeon-qui {
  font-size: 12px; letter-spacing: .06em; color: var(--terre-fonce);
  margin: 0 0 14px; font-style: italic;
}

/* Une liste, pas des pastilles : arrondies et encadrées, elles se lisaient
   comme des boutons sur lesquels cliquer. */
.expertise-mots { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.expertise-mots li {
  font-size: 15px; color: var(--texte); line-height: 1.55;
  padding-left: 17px; position: relative;
}
.expertise-mots li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--terre-clair);
}

/* « et bien plus » ferme la liste : c'est une mention, pas un mot-clé —
   donc pas de pastille, pas de survol. */
.expertise-mots li.expertise-plus { font-style: italic; color: var(--terre-fonce); margin-top: 6px; }
.expertise-mots li.expertise-plus::before { display: none; }

/* =========================================================
   Citation — bande bleue, comme le pied de page
   ========================================================= */
.citation { text-align: center; overflow: hidden; }
.citation-sable { background: var(--sable); }
.citation-creme { background: var(--casse); }
.citation-bleu { background: var(--bleu-profond); }
.citation-bleu .citation-texte { color: #fff; }
.citation-bleu .citation-signature { color: var(--terre-clair); }
.citation-bleu .citation-marque { color: rgba(255,255,255,.46); }

.citation-fond { position: absolute; inset: 0; z-index: 0; opacity: .2; }
.citation-fond img { width: 100%; height: 100%; object-fit: cover; }
.citation.a-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(62,85,121,.5) 0%, rgba(62,85,121,.9) 72%);
}
.citation.a-photo .citation-bloc { position: relative; z-index: 2; }

.citation-bloc { margin: 0 auto; max-width: 1040px; position: relative; z-index: 2; }
.citation-marque { display: block; color: var(--terre); margin-bottom: 26px; }
.citation-marque svg { width: 36px; height: 36px; margin: 0 auto; }
.citation-texte {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(24px, 2.8vw, 42px); line-height: 1.16; color: var(--bleu-profond); margin: 0;
  text-wrap: balance;
}
.citation-signature {
  margin-top: 28px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--terre-fonce);
}

/* =========================================================
   Appel à l'action
   ========================================================= */
.appel-action { background: var(--terre); color: #fff; padding: clamp(62px, 6.4vw, 108px) var(--marge); overflow: hidden; }
.appel-inner {
  position: relative; max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); flex-wrap: wrap;
}
.appel-sceau { position: absolute; right: -50px; top: 50%; transform: translateY(-50%); width: 260px; opacity: .13; pointer-events: none; }
.appel-copy { flex: 1 1 380px; position: relative; z-index: 1; }
.appel-copy .titre-m { color: #fff; }
.appel-copy p { margin: 14px 0 0; max-width: 52ch; color: rgba(255,255,255,.9); font-size: 14.5px; }
.appel-inner > .btn { position: relative; z-index: 1; flex: 0 0 auto; }

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--fond); }
.contact-grille {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(38px, 6vw, 100px);
}
.contact-texte { max-width: 46ch; margin-top: 28px; }
.contact-coordonnees { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-coordonnees li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.contact-coordonnees svg { width: 18px; height: 18px; color: var(--terre); flex: 0 0 auto; }
.contact-coordonnees a { transition: color var(--fondu); }
.contact-coordonnees a:hover { color: var(--terre); }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; align-content: start;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: clamp(28px, 3.2vw, 48px);
}
.champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.champ-large { grid-column: 1 / -1; }
.champ label { font-size: 10.5px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; color: var(--bleu-profond); }
.champ label span { color: var(--terre); }
.champ input, .champ textarea, .champ select {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--texte-fonce);
  background: transparent; border: 0; border-bottom: 1px solid var(--trait);
  padding: 12px 2px; outline: none; transition: border-color var(--fondu);
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
.champ select { background: transparent; cursor: pointer; }
.champ textarea { resize: vertical; min-height: 112px; }
.champ input:focus, .champ textarea:focus, .champ select:focus { border-bottom-color: var(--terre); }
.champ input::placeholder, .champ textarea::placeholder { color: #b9b2ac; }

.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-pied { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-statut { font-size: 14px; margin: 0; color: var(--bleu-profond); }
.form-statut.est-erreur { color: #B4553A; }

/* =========================================================
   Page légale
   ========================================================= */
.legal { padding: clamp(56px, 7vh, 96px) var(--marge) var(--section-y); background: var(--fond); }
.legal-inner { max-width: 840px; margin: 0 auto; }
.legal-chapeau { font-size: 16px; line-height: 1.8; margin-top: 26px; max-width: 62ch; }
.legal-maj { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--terre); margin-top: 16px; }
.legal-bloc { margin-top: clamp(40px, 4vw, 62px); }
.legal-titre { font-family: var(--serif); font-weight: 400; font-size: clamp(23px, 2.1vw, 31px); color: var(--bleu-profond); margin: 0 0 14px; line-height: 1.1; }
.legal-texte { font-size: 14.5px; line-height: 1.8; }
.legal-texte a { color: var(--terre); text-decoration: underline; text-underline-offset: 3px; }

/* Texte libre */
.texte-libre-inner { max-width: 920px; margin: 0 auto; }
.texte-libre.est-centre .texte-libre-inner { text-align: center; }
.texte-courant { margin-top: 24px; font-size: 15.5px; line-height: 1.8; }

/* =========================================================
   Pied de page
   ========================================================= */
.footer { background: var(--bleu-profond); color: rgba(255,255,255,.86); padding: clamp(66px, 7vw, 112px) var(--marge) 32px; }
.footer-grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(30px, 4vw, 68px);
}
.footer-logo { width: 116px; height: auto; margin-bottom: 24px; }
.footer-tagline { font-size: 14px; line-height: 1.8; max-width: 34ch; color: rgba(255,255,255,.78); }
.footer-title { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.1; color: #fff; margin: 0 0 20px; }

.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.footer-contact li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; line-height: 1.5; word-break: break-word; }
.footer-contact svg { width: 17px; height: 17px; color: var(--terre-clair); flex: 0 0 auto; }
.footer-contact a { transition: color var(--fondu); }
.footer-contact a:hover { color: var(--terre-clair); }

.footnav { display: flex; flex-direction: column; gap: 12px; }
.footnav a { font-size: 13.5px; transition: color var(--fondu), padding-left var(--fondu); }
.footnav a:hover { color: var(--terre-clair); padding-left: 5px; }

.footer-social { display: flex; gap: 11px; margin-top: 22px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--trait-clair);
  display: grid; place-items: center; transition: background var(--fondu), border-color var(--fondu);
}
.footer-social a:hover { background: var(--terre); border-color: var(--terre); }
.footer-social svg { width: 18px; height: 18px; }

.credits {
  max-width: 1440px; margin: clamp(46px, 5vw, 76px) auto 0; padding-top: 26px;
  border-top: 1px solid var(--trait-clair);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 11.5px; letter-spacing: .06em; color: rgba(255,255,255,.66);
}
.credits a { color: #fff; border-bottom: 1px solid var(--terre); padding-bottom: 1px; transition: color var(--fondu), border-color var(--fondu); }
.credits a:hover { color: var(--terre-clair); border-color: var(--terre-clair); }

/* Retour en haut */
.retour-haut {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: var(--terre); color: #fff; display: grid; place-items: center;
  box-shadow: var(--ombre-douce);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--fondu), transform var(--fondu), visibility var(--fondu), background var(--fondu);
}
.retour-haut.est-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.retour-haut:hover { background: var(--bleu-profond); }
.retour-haut svg { width: 19px; height: 19px; }

/* =========================================================
   Apparitions au défilement
   ========================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--fondu-long), transform var(--fondu-long);
}
[data-reveal].est-visible { opacity: 1; transform: none; }

/* Images découvertes de gauche à droite, avec un léger recadrage qui se
   détend : le mouvement se lit sans qu'on voie le rideau. */
[data-reveal-image] { overflow: hidden; }
[data-reveal-image] > img {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.14);
  transition: clip-path 1.35s var(--doux), transform 1.8s var(--doux);
}
[data-reveal-image].est-visible > img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* Titres révélés ligne par ligne */
.ligne-masque {
  display: block; overflow: hidden;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.ligne-interne {
  display: block; transform: translateY(105%);
  transition: transform 1.15s var(--doux);
}
[data-split].est-visible .ligne-interne { transform: none; }
[data-split].est-visible .ligne-interne:nth-child(2) { transition-delay: .1s; }
[data-split].est-visible .ligne-interne:nth-child(3) { transition-delay: .2s; }
[data-split].est-visible .ligne-interne:nth-child(4) { transition-delay: .3s; }

/* =========================================================
   Adaptations aux petits écrans
   ========================================================= */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panneaux { min-height: clamp(380px, 52vw, 500px); }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 88px; }
  .navlinks { display: none; }
  .nav-burger { display: flex; }

  .entete { min-height: auto; padding-top: clamp(122px, 16vh, 156px); }
  .entete-inner { grid-template-columns: 1fr; gap: 48px; }
  .entete-copy { max-width: none; }
  .entete-media { max-width: 500px; }
  .entete-medaillon { left: auto; right: -4%; bottom: 4%; width: 118px; }
  .entete-sceau { right: 8px; top: 8px; width: 72px; }
  .entete-defiler { display: none; }

  .apropos-grille { grid-template-columns: 1fr; gap: 56px; }
  .apropos-media { max-width: 500px; }
  .apropos-medaillon { left: auto; right: 0; bottom: -8%; }

  .contact-grille { grid-template-columns: 1fr; gap: 46px; }
  .contact-form { grid-template-columns: 1fr; }
  .champ-large { grid-column: auto; }

  .expertises-grille { grid-template-columns: 1fr; gap: 44px; }
  .expertises-colonne-photo { position: static; max-width: 440px; }

  /* Les panneaux s'empilent et s'ouvrent tous : plus de survol sur tactile. */
  .panneaux { flex-direction: column; min-height: 0; gap: 16px; }
  .panneau { flex: none; border-radius: 200px 200px var(--rayon) var(--rayon); min-height: 420px; }
  .panneau-details { grid-template-rows: 1fr; opacity: 1; }
  .panneau-contenu > * { width: min(100%, 420px); }
  .panneau-nom { font-size: 24px; }
  .panneau-logo-zone { height: 90px; margin-bottom: 34px; }

  /* Le logo reste à droite du nom, comme sur grand écran : le passer
     au-dessus (order: -1) le faisait lire comme un titre de section. */
  .pro-groupe-tete { flex-wrap: nowrap; align-items: flex-start; gap: 16px 20px; }
  .pro-groupe-filet { display: none; }
  .pro-groupe-identite { flex: 1 1 auto; min-width: 0; }
  .pro-groupe-logo { margin-left: auto; height: clamp(56px, 12vw, 78px); max-width: clamp(116px, 25vw, 162px); }

  /* En colonne, la photo passe au-dessus dans une bande courte : elle ne peut
     plus garder son rapport 4/5, on la recadre donc sur le point focal. */
  .fiche-inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 34svh) minmax(0, 1fr); }
  .fiche-photo { min-height: 0; align-items: stretch; }
  .fiche-photo img { height: 100%; aspect-ratio: auto; max-height: none; }
}

@media (max-width: 780px) {
  /* Sous cette largeur, la carte horizontale devient trop serrée :
     la photo repasse au-dessus. */
  .pro-grille { grid-template-columns: minmax(0, 1fr); }
  .pro-carte { grid-template-columns: 1fr; }
  /* 4/3 coupait trop haut et trop bas dans un portrait : un cadre un peu
     moins écrasé laisse la tête entière, point focal ou non. */
  .pro-photo { aspect-ratio: 5 / 4; max-height: 62vh; }
  .pro-pied { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .pro-grille { grid-template-columns: 1fr; }
  /* Deux colonnes de coordonnées ne tiennent plus sur cette largeur : elles
     s'empilent. Le logo, lui, reste à droite du nom. */
  .pro-groupe-infos { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .pro-groupe-nom { font-size: 24px; }
  .pro-groupe-logo { height: clamp(48px, 13vw, 62px); max-width: clamp(99px, 27vw, 128px); }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .credits { flex-direction: column; gap: 10px; }
  .appel-inner { flex-direction: column; align-items: flex-start; }
  .appel-sceau { display: none; }
  .entete-boutons .btn { flex: 1 1 100%; }
  .retour-haut { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .fiche { max-width: 100vw; max-height: 100svh; height: 100svh; border-radius: 0; }
  .fiche-inner { border-radius: 0; }
}

/* =========================================================
   Accessibilité — mouvement réduit
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-reveal-image] > img { clip-path: none !important; transform: none !important; }
  .ligne-interne { transform: none !important; }
  .bandeau-piste { animation: none !important; }
}

/* =========================================================
   Impression
   ========================================================= */
@media print {
  .site-nav, .mobile-menu, .retour-haut, .chargement, .entete-defiler, .bandeau, .fiche { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-reveal-image] > img { clip-path: none !important; transform: none !important; }
  .accordeon-corps { grid-template-rows: 1fr !important; }
  .panneau-details { grid-template-rows: 1fr !important; opacity: 1 !important; }
  .pro-carte, .panneau, .accordeon { break-inside: avoid; }
}

/* Liens posés dans un texte depuis l'éditeur visuel de la console : ils doivent se reconnaître. */
.lead a, .section-intro a, .apropos-texte a, .contact-texte a, .pilier-texte a,
.texte-courant a, .legal-chapeau a, .appel-copy p a {
  color: inherit; text-decoration: underline; text-underline-offset: 3px;
}


/* --- Fenêtre des témoins (cookies), en coin à la première visite --- */
.temoins {
  position: fixed; left: 20px; bottom: 20px; z-index: 9999;
  width: min(380px, calc(100vw - 32px)); padding: 22px 24px 20px;
  background: var(--blanc); color: var(--texte-fonce);
  border: 1px solid var(--trait); border-radius: 10px; box-shadow: var(--ombre-carte);
  font: 400 14px/1.55 var(--sans);
  opacity: 0; transform: translateY(14px); transition: opacity .4s var(--doux), transform .4s var(--doux);
}
.temoins.ouvert { opacity: 1; transform: none; }
.temoins p { margin: 0 0 14px; }
.temoins .temoins-titre { font: 500 22px/1.15 var(--serif); color: var(--bleu-profond); margin-bottom: 8px; }
.temoins a { color: var(--terre-fonce); text-decoration: underline; text-underline-offset: 2px; }
.temoins-boutons { display: flex; gap: 10px; justify-content: flex-end; }
.temoins button {
  min-height: 44px; padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 var(--sans); letter-spacing: .02em; transition: background .25s, color .25s, border-color .25s;
}
.temoins .temoins-non { background: transparent; color: var(--texte-fonce); border: 1px solid var(--trait); }
.temoins .temoins-non:hover { border-color: var(--texte); }
.temoins .temoins-oui { background: var(--terre); color: var(--blanc); border: 1px solid var(--terre); }
.temoins .temoins-oui:hover { background: var(--terre-fonce); border-color: var(--terre-fonce); }
@media (max-width: 560px) { .temoins { left: 16px; right: 16px; bottom: 16px; width: auto; } .temoins-boutons button { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .temoins { transition: none; } }

/* =========================================================
   « Et bien plus » : bouton qui dévoile les mots-clés cachés
   ========================================================= */
.expertise-mots li.expertise-plus-li::before { display: none; }
.expertise-mots .expertise-plus {
  font: inherit; font-style: italic; color: var(--terre-fonce);
  background: none; border: 0; padding: 0; margin-top: 6px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.expertise-mots .expertise-plus:hover, .expertise-mots .expertise-plus:focus-visible { color: var(--terre); }

/* =========================================================
   Bandeaux d'actualité (onglet « Actualité » de la console)
   ========================================================= */
.bandeau-actu { background: var(--casse); padding: 60px var(--marge); text-align: center; position: relative; }
.bandeau-actu + .bandeau-actu { border-top: 1px solid var(--trait); }
.bandeau-actu-inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bandeau-actu-titre { margin: 0; color: var(--texte-fonce); }
.bandeau-actu-texte { margin: 0; font-size: 17px; max-width: 62ch; }
.bandeau-actu-texte.est-petit { font-size: 14px; }
.bandeau-actu .btn { margin-top: 6px; }
.bandeau-actu-vide { padding: 22px var(--marge); }
.bandeau-actu-vide p { margin: 0; font-size: 13px; color: var(--texte); font-style: italic; }
/* Le menu fixe passe par-dessus le haut de la page : le premier bandeau garde son espace. */
body.sans-entete main > .bandeau-actu:first-child { margin-top: 0; }

/* =========================================================
   Pop-up d'annonce (onglet « Actualité » de la console)
   ========================================================= */
.popup-actu { position: fixed; inset: 0; z-index: 10000; background: rgba(40, 32, 28, .62); display: flex; align-items: center; justify-content: center; padding: 20px; }
.popup-actu[hidden], .popup-actu-boite[hidden] { display: none; }
.popup-actu-boite { position: relative; margin: 0; width: min(92vw, 760px); max-height: 88vh; animation: popupEntree .45s var(--doux) both; }
.popup-actu-boite img { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.popup-actu-fermer {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--texte-fonce); border: 0; font-size: 26px; line-height: 40px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.popup-actu-fermer:hover, .popup-actu-fermer:focus-visible { background: var(--terre); color: #fff; }
html.popup-ouvert { overflow: hidden; }
@keyframes popupEntree { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .popup-actu-fermer { top: -10px; right: -6px; } }

/* Logo blanc fourni par la clinique (onglet Cliniques) : affiché tel quel, seulement avec l'ombre portée. */
.panneau-logo.est-blanc { filter: drop-shadow(0 2px 10px rgba(20, 30, 45, .55)); }
