/* ==========================================================================
   Cabinet — direction éditoriale haut de gamme.

   Principes :
   - Une serif de caractère (Fraunces) pour les titres, une sans neutre (Inter)
     pour le texte courant. Rien d'autre.
   - Des respirations larges : le vide est le principal signal de qualité.
   - Un seul accent, le bronze. Pas de dégradé, pas d'ombre portée appuyée.
   - Les mouvements sont lents et discrets, et désactivés si l'utilisateur a
     demandé moins d'animations.
   Polices auto-hébergées : aucune requête vers un tiers.
   ========================================================================== */

/* --- Polices --------------------------------------------------------- */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.069cb90e11a3.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "InterVar";
  src: url("../fonts/inter-latin.260c81a4759b.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}

/* --- Jetons ---------------------------------------------------------- */

:root {
  /* Palette.
     Les tons sont volontairement tièdes plutôt que neutres : un noir pur et
     un blanc pur donnent un rendu net mais froid, presque clinique. Quelques
     degrés vers le brun suffisent à réchauffer l'ensemble sans rien perdre
     de la sobriété. */
  --ivory: #fcfaf6;
  --ink: #1d1a17;
  --ink-70: #4a4642;
  --ink-45: #7d7873;
  --bronze: #8c6a4a;
  --bronze-deep: #6d5038;
  --sand: #f0ebe3;
  --sand-deep: #e4ddd1;
  --line: #e0d9cf;
  --white: #ffffff;

  /* États */
  --ok-bg: #edf2ec;  --ok-ink: #3d5c43;
  --warn-bg: #faf2e4; --warn-ink: #7a5a21;
  --err-bg: #f9edeb;  --err-ink: #8a3d33;
  --info-bg: #ecefF3; --info-ink: #3d4f66;

  /* Typographie */
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "InterVar", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rythme — échelle fluide, sans media query */
  --step--1: clamp(0.82rem, 0.80rem + 0.1vw, 0.88rem);
  --step-0:  clamp(1.02rem, 0.99rem + 0.15vw, 1.12rem);
  --step-1:  clamp(1.22rem, 1.14rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.36rem + 0.9vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 1.9vw, 3.1rem);
  --step-4:  clamp(2.5rem, 1.7rem + 3.8vw, 5rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 66ch;
  --max: 1200px;
  --max-narrow: 760px;

  --radius: 2px;
  --radius-lg: 4px;

  /* Mouvement */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 0.7s;
  --mid: 0.35s;
  --fast: 0.18s;
}

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

html {
  scroll-behavior: smooth;
  /* Décale les ancres sous l'en-tête fixe. */
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 350;
  line-height: 1.7;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: oldstyle-nums;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); font-variation-settings: "opsz" 120, "SOFT" 20; }
h2 { font-size: var(--step-3); font-variation-settings: "opsz" 60; }
h3 { font-size: var(--step-1); font-weight: 500; font-variation-settings: "opsz" 24; }
h4 { font-size: var(--step-0); font-weight: 600; font-family: var(--sans); }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

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

hr { border: none; border-top: 1px solid var(--line); margin: 3rem 0; }

::selection { background: var(--bronze); color: var(--ivory); }

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

/* --- Structure ------------------------------------------------------- */

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { width: 100%; max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(4rem, 10vw, 9rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--sand); }
.section-ink h2, .section-ink h3 { color: var(--ivory); }

.skip-link {
  position: absolute; top: -100px; left: var(--gutter); z-index: 200;
  background: var(--ink); color: var(--ivory);
  padding: 0.85rem 1.4rem; font-size: var(--step--1);
  transition: top var(--mid) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Jeu d'icônes inséré une fois par page : présent dans le DOM, jamais affiché. */
.icon-sprite { display: none; }

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

/* --- Surtitre et filets ---------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: clamp(1.5rem, 4vw, 3rem);
  height: 1px;
  background: var(--bronze);
  opacity: 0.5;
  flex-shrink: 0;
}
.section-ink .eyebrow { color: var(--sand-deep); }
.section-ink .eyebrow::before { background: var(--sand-deep); }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-70);
  font-weight: 300;
  max-width: 54ch;
}

.section-head { max-width: 58ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head p { color: var(--ink-70); }

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

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--ivory) 85%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color var(--mid) var(--ease), background var(--mid) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
}

.header-inner {
  display: flex; align-items: center; gap: 2rem;
  min-height: clamp(72px, 9vw, 92px);
  transition: min-height var(--mid) var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 68px; }

.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--serif);
  font-size: var(--step-1);
  font-variation-settings: "opsz" 20;
  letter-spacing: -0.015em;
}
.brand-title {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-45); margin-top: 0.15rem;
}

.site-nav {
  margin-left: auto;
  display: flex; align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.8rem);
}

.nav-link {
  font-size: var(--step--1); color: var(--ink-70);
  position: relative; padding: 0.3rem 0;
  /* Sans cela, « Le praticien » et le bouton d'appel se coupent en deux
     lignes dès que la barre manque de place. */
  white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--bronze);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--mid) var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--ink); }

.nav-staff { color: var(--bronze); font-weight: 500; }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.4em; height: 1.4em; padding: 0 0.35em; margin-left: 0.3em;
  background: var(--bronze); color: var(--ivory);
  border-radius: 999px; font-size: 0.7rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nav-toggle, .nav-toggle-label { display: none; }

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

.btn {
  --btn-bg: var(--ink);
  --btn-ink: var(--ivory);
  --btn-line: var(--ink);
  /* `z-index: 0` crée le contexte d'empilement : le ::before en -1 se peint
     au-dessus du fond du bouton mais sous son texte. */
  position: relative; z-index: 0;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.9rem;
  background: var(--btn-bg); color: var(--btn-ink);
  border: 1px solid var(--btn-line); border-radius: var(--radius);
  font-family: var(--sans); font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; overflow: hidden;
  transition: color var(--mid) var(--ease), border-color var(--mid) var(--ease),
              transform var(--mid) var(--ease);
}
/* Remplissage qui monte depuis le bas au survol. */
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--bronze);
  transform: translateY(101%);
  transition: transform var(--mid) var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--ivory); border-color: var(--bronze); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  --btn-line: var(--line);
}
.btn-ghost:hover { border-color: var(--bronze); }

.btn-light {
  --btn-bg: transparent;
  --btn-ink: var(--sand);
  --btn-line: color-mix(in srgb, var(--sand) 35%, transparent);
}

.btn-danger {
  --btn-bg: transparent;
  --btn-ink: var(--err-ink);
  --btn-line: color-mix(in srgb, var(--err-ink) 30%, transparent);
}
.btn-danger::before { background: var(--err-ink); }

.btn-sm { padding: 0.7rem 1.3rem; font-size: 0.78rem; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* Le libellé d'un bouton ne se coupe jamais en deux lignes. */
.btn { white-space: nowrap; }

/* Lien fléché, pour les renvois discrets */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
  transition: border-color var(--mid) var(--ease), gap var(--mid) var(--ease);
}
.link-arrow::after { content: "→"; transition: transform var(--mid) var(--ease); }
.link-arrow:hover { border-color: var(--bronze); color: var(--bronze); gap: 0.8rem; }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- Révélation au défilement ---------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Cascade légère entre éléments voisins */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* --- Héros ----------------------------------------------------------- */

.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 6rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-title { margin-bottom: 1.5rem; }
.hero-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  color: var(--bronze);
  /* L'italique penche vers la droite : sans ce léger retrait, sa dernière
     lettre vient toucher le mot suivant en grand corps. */
  margin-right: 0.08em;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg);
}
/* Filet décalé derrière le portrait */
.hero-figure::after {
  content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  z-index: -1;
}

.portrait-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: var(--sand);
  border: 1px solid var(--line);
  display: grid; place-items: center; padding: 2rem;
  text-align: center; color: var(--ink-45); font-size: var(--step--1);
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0 clamp(1.5rem, 4vw, 3rem);
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.hero-meta div { min-width: 0; }
.hero-meta dt {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-45); margin-bottom: 0.3rem;
}
.hero-meta dd { margin: 0; font-size: var(--step--1); line-height: 1.5; }

/* --- Bandeau de chiffres --------------------------------------------- */

.figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.figure-value {
  font-family: var(--serif); font-size: var(--step-3);
  font-variation-settings: "opsz" 72; line-height: 1;
  color: var(--bronze); margin-bottom: 0.5rem;
}
.figure-label { font-size: var(--step--1); color: var(--ink-70); }
.section-ink .figure-label { color: var(--sand-deep); }
.section-ink .figure-value { color: var(--ivory); }

/* --- « Ce qui vous amène » -------------------------------------------- */

.situations { list-style: none; padding: 0; margin: 0; max-width: 56ch; }
.situations li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 300;
  font-variation-settings: "opsz" 24;
  line-height: 1.45;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.situations li:last-child { border-bottom: none; }
/* Guillemet ouvrant en filigrane : ce sont les mots du visiteur. */
.situations li::before {
  content: "—";
  position: absolute; left: 0; top: 1.25rem;
  color: var(--bronze);
  font-size: var(--step-0);
  line-height: 1;
}

/* --- Bandeau d'ambiance ---------------------------------------------- */

.band {
  position: relative;
  min-height: clamp(280px, 42vw, 520px);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
}
.band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  /* Léger mouvement au défilement, sans parallaxe JS. */
  transform: scale(1.02);
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(26, 26, 26, .55) 0%, rgba(26, 26, 26, .35) 50%, rgba(26, 26, 26, .6) 100%);
}
/* Variante sans texte : l'image seule, en respiration. Pas de voile sombre,
   puisqu'il n'y a rien à faire ressortir par-dessus. */
.band-plain { min-height: clamp(220px, 32vw, 420px); }
.band-plain::after { display: none; }

.band-content { position: relative; z-index: 1; color: var(--ivory); padding: 3rem var(--gutter); }
.band-content h2 { color: var(--ivory); max-width: 20ch; margin-inline: auto; }
.band-content p { color: rgba(253, 252, 250, .82); max-width: 52ch; margin-inline: auto; }

/* --- Déroulé d'une séance -------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.step-number {
  counter-increment: step;
  font-family: var(--serif);
  font-size: var(--step-2);
  font-variation-settings: "opsz" 48;
  color: var(--bronze);
  line-height: 1;
  min-width: 2.5rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.step-number::before { content: counter(step, decimal-leading-zero); }
.step-body h3 { margin-bottom: .4rem; }
.step-body p { color: var(--ink-70); font-size: var(--step--1); }
.step-duration {
  display: inline-block; margin-top: .6rem;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-45);
}
.step-figure { margin-top: 1rem; }
.step-figure img { border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; }

/* Variante avec illustrations : une colonne de plus. */
.steps-illustrated .step {
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

/* Une étape sur deux inverse texte et image : cinq blocs identiques empilés
   se lisent comme un tableau, l'alternance leur rend du rythme. */
.steps-illustrated .step:nth-child(even) .step-body { grid-column: 3; grid-row: 1; }
.steps-illustrated .step:nth-child(even) .step-figure { grid-column: 2; grid-row: 1; }

.steps-illustrated .step-figure { margin-top: 0; }

/* --- Galerie du lieu -------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform var(--slow) var(--ease);
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1rem .8rem;
  background: linear-gradient(transparent, rgba(26, 26, 26, .72));
  color: var(--ivory); font-size: var(--step--1);
}
/* La première image occupe deux colonnes quand il y en a assez */
.gallery-feature figure:first-child { grid-column: span 2; }
.gallery-feature figure:first-child img { aspect-ratio: 16 / 10; }

/* --- Carte avec image ------------------------------------------------- */

.card-figure {
  margin: calc(-1 * clamp(1.75rem, 3vw, 2.5rem));
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform var(--slow) var(--ease);
}
a.card:hover .card-figure img { transform: scale(1.04); }

/* --- Grilles de cartes ----------------------------------------------- */

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Carte numérotée, registre éditorial */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column;
  transition: border-color var(--mid) var(--ease), transform var(--slow) var(--ease);
}
.section-sand .card { background: var(--ivory); }

a.card:hover { border-color: var(--bronze); transform: translateY(-4px); }

.card-index {
  font-family: var(--serif); font-size: var(--step--1);
  color: var(--bronze); letter-spacing: 0.1em;
  margin-bottom: 1.25rem; font-variant-numeric: tabular-nums;
}

/* En-tête de carte : icône au trait d'un côté, numéro de l'autre. */
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.card-head .card-index { margin-bottom: 0; }

.card-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  color: var(--bronze);
  transition: transform var(--slow) var(--ease), color var(--mid) var(--ease);
}
a.card:hover .card-icon { transform: translateY(-2px) rotate(-4deg); }

/* Variante plus grande, pour une icône seule en tête de section. */
.icon-lg { width: 44px; height: 44px; }
/* Le niveau de titre d'une carte dépend de sa place dans la page : h3 sous un
   titre de section, h2 quand la carte suit directement le h1. L'apparence doit
   rester la même dans les deux cas. */
.card h2, .card h3 {
  font-size: var(--step-1); font-weight: 500;
  font-variation-settings: "opsz" 24;
  margin-bottom: 0.6rem;
}
.card p { color: var(--ink-70); font-size: var(--step--1); line-height: 1.65; }
.card-foot { margin-top: auto; padding-top: 1.5rem; }

/* --- Tarifs ---------------------------------------------------------- */

.price-value {
  font-family: var(--serif); font-size: var(--step-2);
  font-variation-settings: "opsz" 48; line-height: 1;
  margin: 0.25rem 0 0.75rem;
}
.price-detail {
  font-size: var(--step--1); color: var(--ink-45);
  letter-spacing: 0.04em; margin-bottom: 1.25rem;
}
.price-note {
  font-size: var(--step--1); color: var(--bronze);
  padding-top: 0.5rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.chip {
  font-size: 0.76rem; padding: 0.3rem 0.7rem;
  background: var(--sand); color: var(--ink-70);
  border-radius: 999px; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.section-sand .chip { background: var(--sand-deep); }

/* --- Liste éditoriale (publications, parcours) ------------------------ */

.editorial-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.editorial-list > li { border-bottom: 1px solid var(--line); }

.entry {
  display: grid; grid-template-columns: 7rem 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  transition: padding-left var(--mid) var(--ease);
}
a.entry:hover { padding-left: 0.75rem; }
a.entry:hover .entry-title { color: var(--bronze); }

.entry-year {
  font-family: var(--serif); font-size: var(--step--1);
  color: var(--ink-45); font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.entry-body { min-width: 0; }
.entry-title {
  font-family: var(--serif); font-size: var(--step-1); font-weight: 400;
  font-variation-settings: "opsz" 24; line-height: 1.25;
  margin-bottom: 0.4rem; transition: color var(--mid) var(--ease);
}
.entry-meta { font-size: var(--step--1); color: var(--ink-45); }
.entry-kind {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bronze); white-space: nowrap;
}

/* --- Citations ------------------------------------------------------- */

.pullquote {
  font-family: var(--serif); font-size: var(--step-2);
  font-weight: 300; font-style: italic; line-height: 1.4;
  font-variation-settings: "opsz" 72, "SOFT" 40;
  letter-spacing: -0.015em; text-wrap: balance;
}
/* Citation intégrée à une carte : plus petite, sans marge extérieure. */
.pullquote-sm { font-size: var(--step-1); margin: 0; }

.pullquote-author {
  display: block; margin-top: 1.5rem;
  font-family: var(--sans); font-style: normal;
  font-size: var(--step--1); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-45);
}
.section-ink .pullquote-author { color: var(--sand-deep); }

/* --- Bloc éditorial : titre en marge, texte à droite ------------------- */

/* Un long texte posé seul au milieu de la page n'a aucun point d'accroche :
   l'œil ne sait ni où il en est, ni combien il reste. Le titre passe en marge
   gauche avec son numéro, et accompagne la lecture. */
/* Pas de filet entre les blocs : les citations et l'image qui les séparent
   jouent déjà ce rôle, et chaque bloc vit dans sa propre <section>. */
.article-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.article-block-head { position: sticky; top: 7rem; }
.article-block-head h2 { margin-bottom: 0; font-size: var(--step-2); }

/* Numéro de section : discret, en chiffres tabulaires. */
.article-number {
  font-family: var(--serif);
  font-size: var(--step--1);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.14em;
  color: var(--bronze);
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.article-number::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

@media (max-width: 900px) {
  .article-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-block-head { position: static; }
  .article-number::after { display: none; }
}

/* --- Citation de respiration ------------------------------------------ */

/* Posée seule entre deux blocs de texte, centrée et large : elle coupe la
   page de lecture et donne un point d'ancrage. */
.quote-break {
  max-width: 24ch;
  margin: clamp(2rem, 6vw, 4.5rem) auto;
  padding: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 40;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--bronze);
  text-wrap: balance;
}
/* Deux filets discrets, plutôt que des guillemets décoratifs. */
.quote-break::before,
.quote-break::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--line);
  margin: 0 auto;
}
.quote-break::before { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.quote-break::after { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* --- Informations pratiques en bande ---------------------------------- */

/* En colonnes horizontales plutôt qu'en encadré latéral : occupe toute la
   largeur au lieu de laisser un vide à côté du texte. */
.practical {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
}
.practical dt {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-45); margin-bottom: 0.5rem;
}
.practical dd { margin: 0; font-size: var(--step--1); line-height: 1.65; }

/* --- Prose ----------------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose p { margin-bottom: 1.4em; }
.prose > p:first-of-type { font-size: var(--step-1); line-height: 1.6; color: var(--ink-70); font-weight: 300; }
.prose h2 { margin-top: 2.5em; }
.prose h3 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--bronze); border-bottom: 1px solid var(--line); }
.prose a:hover { border-color: var(--bronze); }
.prose strong { font-weight: 600; }

.article-cover { border-radius: var(--radius-lg); margin: 2.5rem 0; width: 100%; }
.article-meta {
  font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-45); margin-bottom: 2rem;
}

/* --- Accordéon (FAQ) -------------------------------------------------- */

.accordion { border-top: 1px solid var(--line); }
/* Variante sans filet haut, quand l'accordéon suit déjà un titre de section. */
.accordion-flush { border-top: none; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  padding: clamp(1.25rem, 2.5vw, 1.9rem) 0;
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: var(--step-1); font-weight: 400;
  font-variation-settings: "opsz" 24; line-height: 1.3;
  transition: color var(--mid) var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--bronze); }
.accordion summary::after {
  content: "+"; font-family: var(--sans); font-size: var(--step-1);
  color: var(--bronze); flex-shrink: 0; line-height: 1;
  transition: transform var(--mid) var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion-body {
  padding-bottom: 1.9rem; max-width: var(--measure);
  color: var(--ink-70); font-size: var(--step--1); line-height: 1.75;
}

/* --- Formulaires ----------------------------------------------------- */

.form-shell {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.5rem);
}
.section-sand .form-shell { background: var(--ivory); }

.form-step {
  font-family: var(--serif); font-size: var(--step-1);
  margin: 0 0 1.75rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 0.9rem;
}
.form-step span { font-size: var(--step--1); color: var(--bronze); }
.form-step:not(:first-child) { margin-top: 3rem; }

.field { margin-bottom: 1.6rem; }
.field > label {
  display: block; font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-45); margin-bottom: 0.6rem;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }

.field-input {
  width: 100%; padding: 0.9rem 0;
  font: inherit; font-size: var(--step-0); color: var(--ink);
  background: transparent; border: none;
  border-bottom: 1px solid var(--line); border-radius: 0;
  transition: border-color var(--mid) var(--ease);
}
.field-input::placeholder { color: var(--ink-45); opacity: 0.7; }
.field-input:hover { border-bottom-color: var(--ink-45); }
.field-input:focus {
  outline: none; border-bottom-color: var(--bronze); border-bottom-width: 1px;
  box-shadow: 0 1px 0 0 var(--bronze);
}
textarea.field-input { resize: vertical; min-height: 5.5rem; line-height: 1.6; }
select.field-input { cursor: pointer; }

.help-text { font-size: var(--step--1); color: var(--ink-45); margin-top: 0.5rem; line-height: 1.6; }
/* Mention introduisant un bloc, et non une précision collée au champ. */
.help-text-spaced { margin-top: 1.25rem; }

/* Liste de cases à cocher sur plusieurs colonnes, pour les spécialités. */
.checkbox-grid ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.5rem;
}
.checkbox-grid li { font-size: var(--step--1); }
.checkbox-grid label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.checkbox-grid input { accent-color: var(--bronze); }

.check {
  display: flex; gap: 0.9rem; align-items: flex-start;
  margin-bottom: 1.1rem; cursor: pointer;
}
.check input { margin-top: 0.4rem; flex-shrink: 0; accent-color: var(--bronze); width: 1.05rem; height: 1.05rem; }
.check label, .check span { font-size: var(--step--1); color: var(--ink-70); line-height: 1.6; cursor: pointer; }

.errorlist {
  list-style: none; margin: 0.6rem 0 0; padding: 0.7rem 1rem;
  background: var(--err-bg); color: var(--err-ink);
  border-radius: var(--radius); font-size: var(--step--1);
}

/* --- Sélection de créneaux -------------------------------------------- */

.booking-shell { max-width: 820px; }

/* Navigation entre les semaines de l'agenda. */
.week-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0 0 1.5rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.week-nav-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--step--1); letter-spacing: 0.03em;
  color: var(--ink); white-space: nowrap;
  /* Cible tactile confortable, au-delà de la hauteur du texte seul. */
  padding: 0.5rem 0; min-height: 44px;
}
.week-nav-link:hover { color: var(--bronze); }
.week-nav-link.is-disabled { color: var(--ink-45); opacity: 0.4; pointer-events: none; }
.week-nav-period {
  margin: 0; font-family: var(--serif); font-size: var(--step-0);
  font-variation-settings: "opsz" 20; white-space: nowrap;
}

.slot-day { margin-bottom: 2.25rem; }
.slot-day-head {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-45); margin-bottom: 0.9rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.slot-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.slot-option { position: relative; }
.slot-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.slot-option span {
  display: inline-block; padding: 0.7rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ivory); cursor: pointer;
  font-size: var(--step--1); font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease),
              color var(--fast) var(--ease);
}
.slot-option span:hover { border-color: var(--bronze); color: var(--bronze); }
.slot-option input:checked + span {
  background: var(--ink); color: var(--ivory); border-color: var(--ink);
}
.slot-option input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* --- Encarts --------------------------------------------------------- */

/* Explication de la suite, sur la page de suivi : ce que la personne doit
   savoir avant tout le reste, donc placé juste sous le statut. */
.next-step {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--sand);
  border-radius: var(--radius-lg);
  font-size: var(--step--1);
  line-height: 1.7;
}
.next-step strong {
  display: block; margin-bottom: 0.5rem;
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bronze);
}
.next-step p { margin: 0 0 0.6em; color: var(--ink-70); }
.next-step p:last-child { margin-bottom: 0; }
.next-step p strong {
  display: inline; margin: 0; font-size: inherit; letter-spacing: normal;
  text-transform: none; color: var(--ink);
}

.callout {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--sand); border-left: 2px solid var(--bronze);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: var(--step--1); line-height: 1.7;
}
.callout-warn { background: var(--warn-bg); border-left-color: var(--warn-ink); color: var(--warn-ink); }
.callout-danger { background: var(--err-bg); border-left-color: var(--err-ink); color: var(--err-ink); }
.callout strong { display: block; margin-bottom: 0.3rem; letter-spacing: 0.02em; }
.callout ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

/* --- Messages système ------------------------------------------------- */

.messages { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.message {
  padding: 1rem 1.3rem; margin-bottom: 0.6rem;
  border-radius: var(--radius-lg); font-size: var(--step--1);
  border: 1px solid var(--line); background: var(--white);
}
.message-success { background: var(--ok-bg); border-color: transparent; color: var(--ok-ink); }
.message-error { background: var(--err-bg); border-color: transparent; color: var(--err-ink); }
.message-warning { background: var(--warn-bg); border-color: transparent; color: var(--warn-ink); }
.message-info { background: var(--info-bg); border-color: transparent; color: var(--info-ink); }

/* --- Statuts --------------------------------------------------------- */

.status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.32rem 0.8rem; border-radius: 999px;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap;
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending { background: var(--warn-bg); color: var(--warn-ink); }
.status-confirmed { background: var(--ok-bg); color: var(--ok-ink); }
.status-declined, .status-cancelled, .status-noshow { background: var(--err-bg); color: var(--err-ink); }
.status-proposed { background: var(--info-bg); color: var(--info-ink); }
.status-completed { background: var(--sand); color: var(--ink-45); }

/* --- Tableaux -------------------------------------------------------- */

.table-wrap {
  overflow-x: auto; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
table.data { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
table.data th {
  text-align: left; padding: 1rem 1.2rem;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-45);
  background: var(--sand); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background var(--fast) var(--ease); }
table.data tbody tr:hover { background: var(--ivory); }
table.data .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- Espace praticien : ossature --------------------------------------- */

/* Même charte que le site public, navigation différente. Le fond sable
   distingue d'emblée l'espace de travail de la vitrine. */
body.staff { background: var(--sand); }

.staff-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.staff-header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px; flex-wrap: wrap;
}
.staff-nav {
  margin-left: auto;
  display: flex; align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
}
/* Liens secondaires : séparés du reste, en retrait. */
.staff-nav-aside { color: var(--ink-45); }
.staff-nav-aside:first-of-type { margin-left: 0.6rem; padding-left: 1.4rem; border-left: 1px solid var(--line); }

.staff-footer {
  padding: 2.5rem 0; margin-top: 4rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--ink-45);
}
.staff-footer p { margin: 0; }

/* Bandeau d'état en haut de l'espace : le site est fermé au public.
   Teinte d'avertissement plutôt que bronze — c'est une situation à quitter,
   pas un élément de la charte. */
.staff-banner {
  background: var(--warn-bg);
  border-bottom: 1px solid var(--sand-deep);
  color: var(--warn-ink);
  font-size: var(--step--1);
}
.staff-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0.9rem 0;
}
.staff-banner-inner span { line-height: 1.5; }
.staff-banner form { margin: 0; flex-shrink: 0; }

@media (max-width: 700px) {
  .staff-banner-inner { flex-direction: column; align-items: flex-start; }
}

/* Les panneaux ressortent sur le fond sable. */
body.staff .panel,
body.staff .form-shell { background: var(--ivory); }

@media (max-width: 1080px) {
  .staff-nav {
    display: none; order: 3; width: 100%; flex-direction: column;
    align-items: flex-start; gap: 1.1rem;
    padding: 1.25rem 0 1.5rem; margin-left: 0;
    border-top: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .staff-nav { display: flex; }
  .staff-nav-aside:first-of-type { margin-left: 0; padding-left: 0; border-left: none; }
}

/* --- Vue des disponibilités (espace praticien) ------------------------- */

.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.day-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
/* Une journée fermée doit se repérer d'un coup d'œil dans la grille. */
.day-card.is-blocked { background: var(--sand); border-color: var(--sand-deep); }
.day-card.is-today { border-color: var(--bronze); }

.day-card-date {
  margin: 0; font-weight: 600; font-size: var(--step--1);
  text-transform: capitalize;
}
.day-card-today {
  display: inline-block; margin-left: 0.4rem;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bronze); font-weight: 500;
}
.day-card-state { margin: 0; font-size: 0.82rem; color: var(--ink-45); }
.day-card-reason { margin: 0; font-size: 0.78rem; color: var(--ink-45); font-style: italic; }

.day-card-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }

.day-card-action {
  padding: 0.35rem 0.7rem;
  background: transparent; color: var(--ink-70);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 0.76rem; cursor: pointer;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.day-card-action:hover { border-color: var(--bronze); color: var(--bronze); }
.day-card-action.is-strong { border-color: var(--ink-45); color: var(--ink); }

.day-card-list {
  list-style: none; padding: 0.6rem 0 0; margin: 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem; line-height: 1.6;
}

/* --- Panneaux (espace praticien) -------------------------------------- */

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem; margin-bottom: 3rem;
}
.stat {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.6rem;
}
.stat-value {
  font-family: var(--serif); font-size: var(--step-3); line-height: 1;
  font-variation-settings: "opsz" 72; margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: var(--step--1); color: var(--ink-45); line-height: 1.4; }
.stat-accent .stat-value { color: var(--bronze); }

.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); margin-bottom: 2rem; overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.3rem clamp(1.3rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line); background: var(--sand);
}
.panel-head h2 { margin: 0; font-size: var(--step-1); }
.panel-body { padding: clamp(1.3rem, 3vw, 2rem); }
.panel-body > :last-child { margin-bottom: 0; }
.panel-flush .panel-body { padding: 0; }
.panel-flush .table-wrap { border: none; border-radius: 0; }

.empty-state { color: var(--ink-45); font-size: var(--step--1); font-style: italic; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  padding: 1rem 0 1rem 1.5rem; border-bottom: 1px solid var(--line);
  font-size: var(--step--1); position: relative;
}
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 1.5rem;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--line);
}
.timeline li.is-unread::before { background: var(--bronze); }
.timeline li:last-child { border-bottom: none; }
.timeline time {
  display: block; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-45); margin-bottom: 0.2rem;
}

.toolbar { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.filter-bar { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 2.5rem; }
.filter-bar .field { margin-bottom: 0; }

.detail-list { margin: 0; display: grid; gap: 1.4rem; }
.detail-list dt {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-45); margin-bottom: 0.3rem;
}
.detail-list dd { margin: 0; font-size: var(--step--1); line-height: 1.6; }

.pagination {
  display: flex; gap: 1.5rem; align-items: center; justify-content: center;
  margin-top: 2.5rem; font-size: var(--step--1);
  letter-spacing: 0.04em;
}

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

.site-footer { background: var(--ink); color: var(--sand); padding: clamp(3.5rem, 8vw, 6rem) 0 2rem; }
.site-footer a { color: var(--sand); }

/* Quand l'appel final est lui aussi sombre, les deux blocs se touchent sans
   démarcation : l'œil lit un seul grand aplat où plus rien ne semble aligné,
   avec un vide important au milieu. On supprime ce double espacement et on
   trace un filet de séparation. */
.section-ink + .site-footer { padding-top: 0; }
.section-ink + .site-footer .footer-top {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(240, 235, 227, 0.14);
}
.site-footer a:hover { color: var(--white); }

.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem; border-bottom: 1px solid rgba(240, 235, 227, 0.14);
}
.footer-brand { font-family: var(--serif); font-size: var(--step-2); font-variation-settings: "opsz" 48; color: var(--ivory); }
.footer-role { color: rgba(240, 235, 227, 0.6); }
.footer-registration { color: rgba(240, 235, 227, 0.45); font-size: 0.8rem; }
.footer-heading {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(240, 235, 227, 0.5); margin-bottom: 1.1rem; font-family: var(--sans); font-weight: 500;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.6rem; font-size: var(--step--1); line-height: 1.6; }

/* Mentions légales côte à côte, pour ne pas allonger le pied de page. */
.footer-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: var(--step--1); color: rgba(240, 235, 227, 0.58); line-height: 1.7;
}
.footer-notes strong {
  display: block; color: rgba(240, 235, 227, 0.85); margin-bottom: 0.4rem;
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.footer-notes p { margin: 0; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(240, 235, 227, 0.14);
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(240, 235, 227, 0.5);
}

/* --- Widget de chat --------------------------------------------------- */

.chat-widget { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 80; }

.chat-launcher {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.5rem;
  background: var(--ink); color: var(--ivory);
  border: none; border-radius: 999px;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.04em; cursor: pointer;
  box-shadow: 0 4px 24px rgba(26, 26, 26, 0.18);
  transition: background var(--mid) var(--ease), transform var(--mid) var(--ease),
              box-shadow var(--mid) var(--ease);
}
.chat-launcher:hover {
  background: var(--bronze); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.24);
}
.chat-launcher.is-open { opacity: 0; pointer-events: none; transform: scale(0.9); }
.chat-dot { width: 6px; height: 6px; border-radius: 50%; background: #7fc99a; flex-shrink: 0; }

.chat-panel {
  width: min(400px, calc(100vw - 2rem));
  height: min(580px, calc(100vh - 7rem));
  background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 16px 64px rgba(26, 26, 26, 0.2);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right;
  animation: chat-in var(--mid) var(--ease);
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; background: var(--ink); color: var(--ivory);
}
.chat-header strong { font-family: var(--serif); font-size: var(--step-0); font-weight: 400; display: block; }
.chat-subtitle { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(240, 235, 227, 0.55); }
.chat-close {
  background: none; border: none; color: var(--sand);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 0.2rem;
  transition: color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.chat-close:hover { color: var(--ivory); transform: rotate(90deg); }

.chat-disclaimer {
  padding: 0.8rem 1.3rem; font-size: 0.76rem; line-height: 1.55;
  background: var(--sand); color: var(--ink-70);
  border-bottom: 1px solid var(--line);
}

.chat-messages {
  flex: 1; overflow-y: auto; padding: 1.3rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--sand-deep); border-radius: 3px; }

.chat-bubble {
  max-width: 86%; padding: 0.85rem 1.1rem;
  font-size: var(--step--1); line-height: 1.6;
  border-radius: var(--radius-lg);
  animation: bubble-in var(--mid) var(--ease);
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.chat-bubble p { margin: 0 0 0.6em; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble-bot { background: var(--sand); align-self: flex-start; border-bottom-left-radius: 1px; }
.chat-bubble-user { background: var(--ink); color: var(--ivory); align-self: flex-end; border-bottom-right-radius: 1px; }
.chat-bubble-safety { background: var(--err-bg); color: var(--err-ink); max-width: 100%; }
.chat-cta { margin-top: 0.9rem; }

.chat-pending { display: none; gap: 0.3rem; padding: 0 1.3rem 0.9rem; align-items: center; }
.chat-pending.htmx-request { display: flex; }
.chat-pending span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-45);
  animation: pulse 1.3s infinite ease-in-out both;
}
.chat-pending span:nth-child(2) { animation-delay: 0.16s; }
.chat-pending span:nth-child(3) { animation-delay: 0.32s; }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

.chat-form {
  display: flex; gap: 0.75rem; align-items: center;
  padding: 0.9rem 1.1rem; border-top: 1px solid var(--line); background: var(--ivory);
}
.chat-form input[type="text"] {
  flex: 1; padding: 0.6rem 0; font: inherit; font-size: var(--step--1);
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  transition: border-color var(--fast) var(--ease);
}
.chat-form input[type="text"]:focus { outline: none; border-bottom-color: var(--bronze); }
.chat-send {
  background: var(--ink); color: var(--ivory); border: none;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  cursor: pointer; flex-shrink: 0; font-size: 1rem; line-height: 1;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.chat-send:hover { background: var(--bronze); transform: scale(1.06); }

/* --- Utilitaires ----------------------------------------------------- */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--ink-45); }
.measure { max-width: var(--measure); }
.nowrap { white-space: nowrap; }
.full-width { grid-column: 1 / -1; }

/* Deux colonnes largement espacées, alignées en haut. Remplace les
   `style="gap:…;align-items:start"` qui se répétaient d'un gabarit à l'autre
   avec des valeurs légèrement différentes. */
.grid-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.grid-split-centered { align-items: center; }

/* Bascule à 900 px et non à 760 : en dessous, deux colonnes laissent environ
   340 px chacune — un titre en grand corps s'y casse en trois lignes et les
   boutons s'empilent. L'empilement vaut mieux que le tassement. */
@media (max-width: 900px) {
  .grid-split { grid-template-columns: 1fr; }
}

/* Bloc de texte centré, pour les appels à l'action en pleine largeur. */
.stack-centered { max-width: 52ch; margin-inline: auto; }
.stack-centered-tight { max-width: 26ch; margin-inline: auto; }

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

/* Deux colonnes, comme « Ce qui vous amène » et « L'approche » : le titre à
   gauche, l'invitation et les boutons à droite. Aligné sur le même bord que le
   pied de page, et occupant toute la largeur — centré, la section introduisait
   un second axe de lecture ; à gauche sur une seule colonne, elle laissait la
   moitié droite vide. */
.cta-title { max-width: 16ch; margin-bottom: 0; }
.cta-text {
  max-width: 44ch;
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  color: rgba(240, 235, 227, 0.72);
}
.cta-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
}

/* Appel final suivi du pied de page : son espacement bas se cumulait avec
   celui du pied, créant un grand vide au milieu d'un même aplat sombre. */
.section-cta { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.toolbar-centered { justify-content: center; }
.page-title { font-size: var(--step-3); }
.field-spaced { margin-top: 1.5rem; }
.help-text-close { margin-top: 0.9rem; }

.section-ink .muted-light { color: rgba(240, 235, 227, 0.72); }
.section-ink .link-arrow {
  color: var(--sand); border-color: rgba(240, 235, 227, 0.3);
}
.eyebrow-centered { justify-content: center; }

/* --- Adaptations ----------------------------------------------------- */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* Deux colonnes de contenu deviennent trop étroites avant la largeur d'une
   tablette : on empile dès 900 px, comme `.grid-split`. */
@media (max-width: 900px) {
  .grid-2, .field-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 320px; }
  .hero-figure::after { display: none; }
}

@media (max-width: 760px) {
  /* L'alternance n'a plus de sens sur une colonne : image sous le texte. */
  .steps-illustrated .step { grid-template-columns: auto 1fr; }
  .steps-illustrated .step-figure,
  .steps-illustrated .step:nth-child(even) .step-figure { grid-column: 2; grid-row: auto; }
  .steps-illustrated .step:nth-child(even) .step-body { grid-column: 2; grid-row: auto; }
  .steps-illustrated .step-figure { margin-top: 1rem; }
  .gallery-feature figure:first-child { grid-column: span 1; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }

  .entry { grid-template-columns: 1fr; gap: 0.5rem; }
  .entry-kind { order: -1; }

  .accordion summary { gap: 1rem; }
  .pullquote { font-size: var(--step-1); }
  .week-nav { justify-content: center; }
  .week-nav-period { order: -1; width: 100%; text-align: center; }
}

/* Menu replié.
   Bascule à 1080 px et non à 760 : avec six liens, un bouton d'appel et la
   signature, la barre se tasse bien avant la largeur d'une tablette — les
   libellés se coupaient en deux lignes. */
@media (max-width: 1080px) {
  .nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; margin-left: auto; padding: 0.6rem; cursor: pointer;
  }
  .nav-toggle-label span {
    display: block; width: 22px; height: 1px; background: var(--ink);
    transition: transform var(--mid) var(--ease), opacity var(--mid) var(--ease);
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .header-inner { flex-wrap: wrap; }
  .site-nav {
    display: none; order: 3; width: 100%; flex-direction: column;
    align-items: flex-start; gap: 1.3rem;
    padding: 1.5rem 0 2rem; margin-left: 0;
    border-top: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; animation: nav-in var(--mid) var(--ease); }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .site-nav .nav-link { font-size: var(--step-1); font-family: var(--serif); }
}

/* Respecte le réglage système : plus aucun mouvement non sollicité. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .chat-widget, .toolbar, .skip-link { display: none !important; }
  body { background: var(--white); font-size: 11pt; }
  .section { padding: 1rem 0; }
  a { text-decoration: underline; }
}

/* --- Témoignages ------------------------------------------------------ */

/* Deux colonnes plutôt qu'une grille de cartes : un témoignage est un texte
   qu'on lit, pas une fiche qu'on survole. Les colonnes de hauteurs
   différentes évitent l'alignement rigide qui ferait « catalogue ». */
.testimonial-list {
  columns: 2;
  column-gap: clamp(2rem, 4vw, 3.5rem);
}

.testimonial {
  break-inside: avoid;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink-70);
}
.testimonial blockquote p { margin: 0 0 1rem; }
.testimonial blockquote p:last-child { margin-bottom: 0; }

.testimonial figcaption {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
}

@media (max-width: 820px) {
  .testimonial-list { columns: 1; }
}

/* --- Relecture dans l'espace praticien -------------------------------- */

.review-item { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.review-item:first-child { padding-top: 0; }
.review-item:last-child { padding-bottom: 0; border-bottom: none; }
.review-item header { margin-bottom: 0.9rem; font-size: var(--step--1); }
.review-item blockquote { margin: 0 0 1rem; }
.review-item .toolbar { margin-top: 1rem; }

.inline-facts {
  display: flex; flex-wrap: wrap; gap: 0 2rem;
  margin: 0 0 0.5rem; font-size: var(--step--1);
}
.inline-facts dt {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-45);
}
.inline-facts dd { margin: 0; }

.status-ok { background: var(--ok-bg); color: var(--ok-ink); }

/* --- Sélecteur de langue ---------------------------------------------- */

/* Des codes à deux lettres, pas des drapeaux : un drapeau désigne un pays,
   pas une langue. Le portugais n'est pas le Portugal, et l'espagnol
   appartient à vingt pays. */
.langues {
  display: flex;
  gap: 0.15rem;
  margin: 0 0 0 0.9rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
}

.langue {
  padding: 0.3rem 0.4rem;
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-45);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--fast) var(--ease);
}
.langue:hover { color: var(--ink); }

.langue.est-active {
  color: var(--bronze);
  font-weight: 500;
}

@media (max-width: 1080px) {
  /* Dans le menu replié, le sélecteur passe à la ligne et s'aligne à
     gauche comme les autres entrées. */
  .langues {
    margin: 0.6rem 0 0;
    padding: 0.6rem 0 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }
}
