/* ==========================================================================
   Lee Portal — Psychanalyse & Photothérapie, Tarbes
   Mise en page « L'Image latente », palette « Ivoire & Bouteille » :
   ivoire / vert bouteille, EB Garamond (texte) + Archivo (interface).
   CSP stricte : aucun style inline dans le HTML — tout vit ici.
   ========================================================================== */

/* ---------- Polices auto-hébergées (latin, variables) ---------- */
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-italic-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Couleurs */
  --paper: #E9E4D8;        /* grège */
  --paper-2: #DCD5C2;      /* grège-2 */
  --ink: #262E22;          /* encre */
  --ink-soft: #525A44;     /* encre-2 */
  --plum: #262E22;         /* fond sombre = encre */
  --plum-2: #2C3527;
  --amber: #4A5A31;        /* mélèze sombre — liens sur zones claires */
  --amber-light: #DCD5C2;  /* liens et labels sur encre = grège-2 */
  --glow: #DCD5C2;
  --meleze: #5C6E3F;       /* filets épais 3px sur encre uniquement */
  --line: #CBC3AC;
  --line-dark: #3A4434;    /* filets 1px sur encre */
  --error: #7A2B25;
  --focus: #4A5A31;

  /* Typographie */
  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-labels: "Archivo", Arial, Helvetica, sans-serif;
  --fs-hero: clamp(3.25rem, 2.2rem + 3.4vw, 4.0625rem);
  --fs-h1: clamp(2.9375rem, 2.2rem + 2.9vw, 4.0625rem);
  --fs-h2: clamp(2.28125rem, 1.75rem + 2.3vw, 3.40625rem);
  --fs-h3: clamp(1.6875rem, 1.5rem + 0.9vw, 2.21875rem);
  --fs-h4: 1.4375rem;
  --fs-body: clamp(1.5rem, 1.4rem + 0.6vw, 1.71875rem);
  --fs-small: 1.25rem;
  --fs-quote: clamp(1.9375rem, 1.5rem + 2.5vw, 3.25rem);
  --fs-quote-in: clamp(1.625rem, 1.4rem + 1vw, 2.28125rem);

  /* Layout */
  --container: 1140px;
  --header-h: 72px;
  --radius-card: 20px;
  --radius-field: 12px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  margin: 0 0 1rem;
}
h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.15; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
h4 { font-size: var(--fs-h4); font-family: var(--font-labels); font-weight: 600; line-height: 1.35; margin: 0 0 0.75rem; }

p { margin: 0 0 1.25rem; }
p, li, dd { max-width: 65ch; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
figcaption { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 0.75rem; line-height: 1.5; }

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

strong { font-weight: 600; }

::selection { background: var(--meleze); color: #E9E4D8; }

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

/* ---------- Utilitaires ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container-narrow { max-width: 820px; }

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

.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 200ms;
}
.skip-link:focus { transform: translateY(0); }

.center { text-align: center; }
.center p, .center li { margin-inline: auto; }

/* Surtitre de section : « 01 — Pourquoi consulter ? » */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--font-labels);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin: 0 0 1.25rem;
}
.eyebrow .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2.25rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--amber);
  line-height: 1;
}
.section-dark .eyebrow .num { color: var(--glow); }
.center .eyebrow { justify-content: center; }
.section-dark .eyebrow { color: var(--amber-light); }

/* ---------- Sections & fonds ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-alt { background: var(--paper-2); }
.section-dark {
  background: var(--plum);
  color: var(--paper);
}
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark a:not(.btn) { color: var(--amber-light); }
.section-dark .text-soft { color: rgba(233, 228, 216, 0.75); }

.text-soft { color: var(--ink-soft); }
.small { font-family: var(--font-labels); font-size: 1.1875rem; line-height: 1.6; }

/* Grain argentique (héros et sections sombres) */
.grain { position: relative; isolation: isolate; }
.grain::after { content: none; }
.grain > * { position: relative; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-family: var(--font-labels);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 250ms, box-shadow 250ms, transform 250ms, color 250ms;
  min-height: 56px;
  white-space: nowrap;
}
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--plum-2);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-glow {
  background: var(--paper);
  color: var(--ink);
}
.btn-glow:hover {
  background: var(--paper-2);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--amber);
  color: var(--amber);
}
.btn-secondary:hover { background: rgba(74, 90, 49, 0.08); }
.section-dark .btn-secondary,
.nav-dialog .btn-secondary {
  border-color: var(--amber-light);
  color: var(--amber-light);
}
.section-dark .btn-secondary:hover { background: rgba(220, 213, 194, 0.12); }

.btn-block { width: 100%; }

/* Lien fléché tertiaire */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--amber);
}
.link-arrow .arrow { transition: transform 250ms var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* Groupe de CTA */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.center .cta-group { justify-content: center; }

/* ---------- Header ----------
   .site-nav (dans le HTML) est un point d'ancrage sémantique sans style propre. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}
@media (min-width: 1024px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .header-inner .brand { align-items: center; text-align: center; }
  .nav-list { justify-content: center; flex-wrap: wrap; }
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--paper);
  line-height: 1.2;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.8rem;
}
.brand-sub {
  font-family: var(--font-labels);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper-2);
  margin-top: 2px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-family: var(--font-labels);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--paper-2);
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.125rem;
  height: 1.5px;
  background: var(--paper-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease-out);
}
.nav-list a:not(.btn):hover::after,
.nav-list a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--paper);
}
.nav-toggle svg { display: block; width: 100%; height: 100%; }

/* Menu mobile : dialog natif plein écran */
.nav-dialog {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: var(--plum);
  color: var(--paper);
}
.nav-dialog::backdrop { background: transparent; }
.nav-dialog-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem clamp(1.25rem, 6vw, 2.5rem) 2.5rem;
}
.nav-dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-h);
}
.nav-dialog .brand { color: var(--paper); }
.nav-dialog .brand-sub { color: rgba(233, 228, 216, 0.6); }
.nav-close {
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--paper);
}
.nav-close svg { display: block; width: 100%; height: 100%; }

.nav-dialog-list {
  list-style: none;
  margin: auto 0;
  padding: 0;
}
.nav-dialog-list li { margin: 0; }
.nav-dialog-list a {
  display: inline-block;
  padding: 0.45rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.5vw, 2.4rem);
  font-weight: 450;
  color: var(--paper);
  text-decoration: none;
}
.nav-dialog-list a[aria-current="page"] { color: var(--glow); }
.nav-dialog-list a:hover { color: var(--amber-light); }

.nav-dialog-foot {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}
.nav-dialog-foot .tel {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--paper);
  text-decoration: none;
}
.nav-dialog-foot .tel:hover { color: var(--amber-light); }

@media (max-width: 1023px) {
  .nav-list { display: none; }
  .nav-toggle { display: block; }
}
@media (min-width: 1024px) {
  .nav-dialog { display: none; }
}

/* Bouton du header : inversion grège sur encre */
.site-header .btn-primary {
  background: var(--paper);
  color: var(--ink);
  font-size: 1.1875rem;
}
.site-header .btn-primary:hover {
  background: var(--paper-2);
  box-shadow: none;
}
.site-header :focus-visible,
.hero :focus-visible,
.section-dark :focus-visible,
.site-footer :focus-visible,
.nav-dialog :focus-visible {
  outline-color: var(--paper);
}

/* ---------- Héro accueil ---------- */
.hero {
  min-height: min(calc(85svh - var(--header-h)), 780px);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--plum);
  border-top: 3px solid var(--meleze);
  color: var(--paper);
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-labels);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber-light);
  margin: 0 0 1.5rem;
}
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--paper);
  margin: 0 auto 2rem;
  max-width: 18ch;
}
.hero-quote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-quote);
  line-height: 1.35;
  max-width: 24ch;
  margin: 0 auto;
  color: rgba(233, 228, 216, 0.92);
}
.hero-quote .q-mark {
  color: var(--glow);
  font-style: normal;
  font-weight: 400;
  opacity: 0.9;
}
.hero-fil {
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber-light);
  margin: 2rem auto;
}
.hero .cta-group { justify-content: center; }
.hero .link-arrow { color: var(--amber-light); }

/* Apparition de la citation par groupes de mots */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-quote .q-part {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px);
    animation: q-reveal 900ms var(--ease-out) forwards;
  }
  .js .hero-quote .q-part:nth-child(2) { animation-delay: 120ms; }
  .js .hero-quote .q-part:nth-child(3) { animation-delay: 240ms; }
  @keyframes q-reveal {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Héros de pages internes ---------- */
.page-hero {
  background: var(--paper-2);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.page-hero h1 { max-width: 24ch; }
.page-hero .lede {
  font-size: clamp(1.5625rem, 1.5rem + 0.5vw, 1.75rem);
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ---------- Citations in-page ---------- */
.quote-inline {
  border-left: 3px solid var(--amber);
  border-radius: 2px;
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-quote-in);
  line-height: 1.4;
  color: var(--ink);
}
.quote-breath {
  margin: 2.5rem auto;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-quote-in);
  line-height: 1.45;
  color: var(--ink);
  max-width: 30ch;
}
.quote-breath .q-mark { color: var(--amber); font-style: normal; }
.section-dark .quote-breath,
.section-dark .quote-inline,
.page-sombre .quote-breath,
.page-sombre .quote-inline { color: var(--paper); }
.section-dark .quote-breath .q-mark,
.page-sombre .quote-breath .q-mark { color: var(--paper-2); }
.section-dark .quote-inline { border-left-color: var(--paper-2); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(38, 46, 34, 0.10);
}
.card-motif { margin-bottom: 1.5rem; color: var(--amber); }
.card-motif svg { display: block; }
.card h3 { margin-bottom: 0.75rem; }
.card .link-arrow { margin-top: 0.5rem; }

.grid-2 {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.grid-3 {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Petites cards factuelles (raisons de consulter) */
.card-mini {
  background: var(--paper-2);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  font-size: 1.375rem;
  line-height: 1.55;
}
.section-alt .card-mini { background: var(--paper); border: 1px solid var(--line); }
.cards-mini {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.cards-mini li { margin: 0; max-width: none; }
@media (min-width: 640px) { .cards-mini { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards-mini { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- Liste-litanie (7 situations, accueil) ---------- */
.litany {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
}
.litany li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2.25rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body);
  max-width: 60ch;
}
.litany li:first-child { border-top: 1px solid var(--line); }
.litany li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.center .litany { margin-inline: auto; max-width: 60ch; }
.center .litany li { text-align: left; margin-inline: auto; }

/* ---------- Piliers (Comprendre / Se regarder / Évoluer) ---------- */
.pillars {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr 1fr; gap: 0; }
  .pillar { padding-inline: 2.25rem; border-left: 1px solid var(--line); }
  .pillar:first-child { border-left: 0; padding-left: 0; }
  .pillar:last-child { padding-right: 0; }
}
.pillar-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 1rem;
}
.pillar h3 { margin-top: 0; }
.pillar p { font-size: 1.375rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Photos ---------- */
/* Portrait : rectangle net, filet 1px */
.arch-photo {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}
.arch-photo img { width: 100%; }
.arch-photo picture { display: block; border: 0; }
.arch-photo img {
  border: 1px solid var(--line);
  border-radius: 0;
}
.arch-photo-sm { max-width: 300px; }

/* Photo : rectangle net */
.photo-frame {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}
.photo-frame img { width: 100%; }
.photo-frame picture { display: block; border: 0; }
.photo-frame img {
  border: 1px solid var(--line);
  border-radius: 0;
}
.photo-frame-sepia img { filter: grayscale(1); }
.section-dark .photo-frame img { border-color: var(--line-dark); }

/* Certificat : cadre droit */
.cert-frame {
  display: block;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.cert-frame img { border-radius: 0; display: block; }

/* Coins de visée photographique */
.corners {
  position: relative;
  padding: 22px;
}
.corners .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--amber);
}
.corners .corner-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.corners .corner-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.corners .corner-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.corners .corner-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* Gabarit texte + visuel */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 6fr 5fr; align-items: center; }
  .split-media { margin-top: 3rem; }
  .split-reverse { grid-template-columns: 4fr 7fr; }
  .split-reverse .split-media { order: -1; }
}
.split-media { justify-self: center; }

/* ---------- Tarifs ---------- */
.pricing {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 640px;
}
.section-alt .pricing { background: var(--paper); }
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.pricing-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1rem 0;
  margin: 0;
  max-width: none;
}
.pricing-list li + li { border-top: 1px solid var(--line); }
.pricing-label { flex-shrink: 0; }
.pricing-label .small { display: block; color: var(--ink-soft); }
.pricing-lead {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
  min-width: 2rem;
}
.pricing-price {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9375rem;
  white-space: nowrap;
}
.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.pricing-note svg { flex-shrink: 0; margin-top: 2px; }
.pricing-note p { margin: 0; }

/* ---------- Accordéons (Vos questions) ---------- */
.faq { margin-top: 2rem; max-width: 760px; }
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-size: 1.5625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(45deg);
  transition: transform 250ms var(--ease-out);
  margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--amber); }
.faq .faq-body { padding: 0 0 1.5rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Frise « À quoi vous attendre » ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) { .steps { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; } }
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3.25rem;
  margin: 0;
  max-width: none;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--amber);
}
.steps li::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 3.25rem;
  right: 0;
  height: 1px;
  background: var(--line);
}
.steps h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.steps p { font-size: 1.375rem; color: var(--ink-soft); margin: 0; }

/* ---------- Formulaire ---------- */
.form-grid {
  display: grid;
  gap: 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-labels);
  font-size: 1.125rem;
  font-weight: 600;
}
.field .hint { font-size: 0.8125rem; color: var(--ink-soft); font-weight: 400; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  font: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  padding: 0.875rem 1rem;
  width: 100%;
  transition: border-color 200ms, box-shadow 200ms;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}
.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="tel"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(74, 90, 49, 0.22);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--error);
}
.field-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}
.field-consent input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--amber);
  flex-shrink: 0;
}
.field-consent label { font-weight: 400; font-size: 1.375rem; line-height: 1.55; }
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: 1rem;
}
.form-privacy svg { flex-shrink: 0; margin-top: 2px; }
.form-privacy p { margin: 0; }
.hidden-field { display: none !important; }

/* ---------- Cards de canaux (page contact) ---------- */
.channel-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.channel-card h2,
.channel-card h3 { font-size: 1.25rem; margin: 0; }
.channel-card .channel-note { font-size: 1.375rem; color: var(--ink-soft); margin: 0; flex-grow: 1; }
.channel-card .btn { align-self: flex-start; margin-top: 0.5rem; }
.channel-tel {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.channel-tel:hover { color: var(--amber); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-labels);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--amber);
  background: rgba(220, 213, 194, 0.14);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  align-self: flex-start;
}

/* ---------- Bloc contact final (accueil, fins de page) ---------- */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
}
.center .contact-strip {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.contact-strip .tel-lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.contact-strip .tel-lg:hover { color: var(--amber); }
.section-dark .contact-strip .tel-lg { color: var(--paper); }

/* ---------- Grille Instagram (page Réflexions) ---------- */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1rem);
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0;
  list-style: none;
}
.insta-grid li { margin: 0; max-width: none; }
.insta-item {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  outline: 1px solid var(--line-dark);
  transition: transform 300ms var(--ease-out), outline-color 300ms;
}
.insta-item img {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
.insta-item:hover { transform: translateY(-3px); outline-color: var(--amber-light); }
.insta-item:hover img { transform: scale(1.04); }
.insta-item:focus-visible { outline: 3px solid var(--amber-light); outline-offset: 2px; }
.insta-play {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(38, 46, 34, 0.75);
  color: #E9E4D8;
}
.insta-play svg { display: block; margin-left: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .js .insta-grid.reveal > li { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
  .js .insta-grid.reveal.is-visible > li { opacity: 1; transform: translateY(0); }
  .js .insta-grid.reveal > li:nth-child(2) { transition-delay: 45ms; }
  .js .insta-grid.reveal > li:nth-child(3) { transition-delay: 90ms; }
  .js .insta-grid.reveal > li:nth-child(4) { transition-delay: 135ms; }
  .js .insta-grid.reveal > li:nth-child(5) { transition-delay: 180ms; }
  .js .insta-grid.reveal > li:nth-child(6) { transition-delay: 225ms; }
  .js .insta-grid.reveal > li:nth-child(7) { transition-delay: 270ms; }
  .js .insta-grid.reveal > li:nth-child(8) { transition-delay: 315ms; }
  .js .insta-grid.reveal > li:nth-child(9) { transition-delay: 360ms; }
}

/* ---------- Présentation fusionnée (héro À propos) ---------- */
.hero-presentation { margin-top: clamp(2rem, 4vw, 3rem); }
.hero-presentation .split-media { align-self: start; }

/* ---------- Note sous un groupe d'actions — style unique ---------- */
.cta-note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 1rem 0 0;
}
.center .cta-note { margin-inline: auto; text-align: center; }
.section-dark .cta-note { color: rgba(233, 228, 216, 0.75); }

/* ---------- Renvoi vers l'autre approche ---------- */
.autre-approche {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.autre-approche .eyebrow { margin-bottom: 1.5rem; }
.autre-approche .card { margin: 0; }

/* ---------- Barre CTA mobile ---------- */
.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem clamp(1rem, 4vw, 1.5rem) calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 350ms var(--ease-out), visibility 0s linear 350ms;
}
.cta-bar.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 350ms var(--ease-out), visibility 0s;
}
.cta-bar .btn { flex: 1; padding-block: 0.7rem; min-height: 44px; }
@media (min-width: 1024px) { .cta-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .cta-bar { transition: none; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum);
  border-top: 1px solid var(--line-dark);
  color: var(--paper);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  font-size: 1.4375rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 0.8fr 1fr 1fr; } }
.site-footer h2 {
  font-size: 1.1875rem;
  font-family: var(--font-labels);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-light);
  margin-bottom: 1rem;
}
.site-footer p { color: rgba(233, 228, 216, 0.8); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--amber-light); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand .brand-name { font-size: 1.8rem; color: var(--paper); }
.footer-brand .baseline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: rgba(233, 228, 216, 0.75);
  margin: 0.75rem 0 1.25rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: border-color 250ms, color 250ms;
}
.footer-social a:hover { border-color: var(--amber-light); color: var(--amber-light); text-decoration: none; }
.footer-tel {
  font-family: var(--font-display);
  font-size: 1.875rem;
}
.footer-urgence {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
  font-size: 1.25rem;
  color: rgba(233, 228, 216, 0.7);
}
.footer-urgence p { color: inherit; max-width: none; margin-bottom: 1rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  font-family: var(--font-labels);
  font-size: 1.125rem;
  color: rgba(233, 228, 216, 0.7);
}
.footer-bottom p { color: inherit; margin: 0; }
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-bottom li { margin: 0; }
.footer-bottom a { color: rgba(233, 228, 216, 0.75); }

/* ---------- Reveals au scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .js .reveal-group > *:nth-child(2) { transition-delay: 80ms; }
  .js .reveal-group > *:nth-child(3) { transition-delay: 160ms; }
  .js .reveal-group > *:nth-child(4) { transition-delay: 240ms; }
}

/* ---------- Dialog d'agrandissement du certificat ---------- */
.cert-zoom {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  font: inherit;
  color: inherit;
  text-align: inherit;
}
.cert-dialog {
  border: 0;
  padding: 2.5rem 1rem 1rem;
  background: transparent;
  max-width: min(92vw, 860px);
}
.cert-dialog::backdrop { background: rgba(38, 46, 34, 0.82); }
.cert-dialog img { border-radius: 6px; width: 100%; height: auto; }
.cert-dialog .nav-close {
  position: absolute;
  top: 0;
  right: 0.5rem;
  color: #E9E4D8;
}

/* ---------- Page 404 & merci ---------- */
.page-simple {
  min-height: calc(70svh - var(--header-h));
  display: flex;
  align-items: center;
  text-align: center;
}
.page-simple .container { max-width: 640px; }

/* ---------- Impression ---------- */
@media print {
  .site-header, .site-footer, .cta-bar, .nav-dialog, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  .section-dark { background: #fff; color: #000; }
  .section-dark h2, .section-dark h3 { color: #000; }
}




/* ============ Garde-fous : aucun texte sombre sur fond sombre ============ */
.section-dark,
.section-dark p, .section-dark li {
  color: var(--paper);
}
.section-dark .text-soft { color: rgba(233, 228, 216, 0.75); }
.section-dark .small { color: rgba(233, 228, 216, 0.7); }
.section-dark figcaption,
.page-sombre figcaption { color: rgba(233, 228, 216, 0.75); }
.section-dark .pricing-note,
.page-sombre .pricing-note { color: rgba(233, 228, 216, 0.75); }
.section-dark .form-privacy { color: rgba(233, 228, 216, 0.75); }
.section-dark .faq summary {
  font-size: 1.5625rem; color: var(--paper); }
.section-dark .faq summary:hover { color: var(--paper-2); }
.section-dark .faq summary::after { color: var(--paper-2); }
.section-dark .pricing-price,
.page-sombre .pricing-price { color: var(--paper); }
.section-dark .channel-tel { color: var(--paper); }
.section-dark .steps li::before { color: var(--paper-2); }
.section-dark .steps p { color: rgba(233, 228, 216, 0.75); }
.section-dark .pillar p { color: rgba(233, 228, 216, 0.75); }
.section-dark .litany li::before { background: var(--paper-2); }
.section-dark .litany li,
.section-dark .litany li:first-child { border-color: var(--line-dark); }
.section-dark .btn-glow { color: var(--ink); }
.section-dark .btn-primary { background: var(--paper); color: var(--ink); }
.section-dark .btn-primary:hover { background: var(--paper-2); }
.page-sombre .field input:user-invalid,
.page-sombre .field textarea:user-invalid { border-color: #E0A79A; }


/* Figures : espace garanti autour des photos */
.split-media { max-width: 100%; }
figure.split-media { margin-block: 0; }
figcaption { position: relative; }
