/* ==========================================================
   Rian Masterson, psychologue clinicien
   Feuille de style commune à toutes les pages.
   Système : ardoise + gris chaud, serif éditorial + grotesque neutre,
   filets fins en guise de structure (même langage que le dossier clubs).
   ========================================================== */

/* ---------- Polices (auto-hébergées, licence SIL OFL) ---------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Couleurs */
  --slate: #22394A;        /* ardoise : titres, boutons, section sombre */
  --slate-soft: #4F6A80;   /* filets d'accent */
  --link: #2E5675;         /* liens (contraste AA sur papier et panneau) */
  --ink: #1E252B;          /* texte courant */
  --muted: #545750;        /* texte secondaire */
  --paper: #FBFAF7;        /* fond principal */
  --panel: #EFEDE7;        /* gris chaud : panneaux et sections alternées */
  --line: #D9D5CC;         /* filets neutres */
  --dark-text: #F4F2EE;
  --dark-soft: #C5D0D8;
  --focus: #2E5675;
  --error: #9B2C2C;

  /* Forme et graisse */
  --radius: 6px;           /* angles communs : photo, boutons, champs */
  --title-weight: 550;     /* titres : semi-bold allégé */

  /* Typographie */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Mesures */
  --text: 38rem;           /* ~70 caractères */
  --page: 70rem;
  --gutter: 1rem;
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --s6: 6rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: var(--title-weight);
  color: var(--slate);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h3 { font-size: 1.2rem; }

p, li { max-width: var(--text); }
p + p { margin-top: 0.9em; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--slate); text-decoration-thickness: 2px; }

strong { font-weight: 600; }

ul.plain { list-style: none; }

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

/* ---------- Mise en page ---------- */
.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--s5) 0; }
.section--panel { background: var(--panel); }
.section--tight { padding: var(--s4) 0; }

/* En-tête de section : petit libellé + titre + filet court */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: var(--s1);
}
.section-head { margin-bottom: var(--s4); }
.section-head h2::after,
.page-hero h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--slate-soft);
  margin-top: 0.9rem;
}
.section-head p { margin-top: var(--s2); color: var(--muted); }

.lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink); }

/* ---------- Lien d'évitement ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--slate);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--paper); }

/* ---------- En-tête ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.85rem var(--gutter) 0.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--serif);
  font-weight: var(--title-weight);
  font-size: 1.15rem;
  color: var(--slate);
}
.brand-title { font-size: 0.82rem; color: var(--muted); }
.brand:hover .brand-name { text-decoration: underline; text-underline-offset: 0.2em; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  align-items: center;
}
.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.93rem;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover { color: var(--link); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--slate); font-weight: 600; }
.site-nav .lang {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.25rem 0.55rem;
}
.site-nav .lang:hover { border-color: var(--link); text-decoration: none; }

/* Un bandeau blanc sépare toujours deux encarts colorés */
.section--panel + .section--dark { margin-top: var(--s5); }

/* ---------- Menu burger (sans JavaScript pour l'essentiel) ---------- */
.menu-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.burger { display: none; }

@media (max-width: 759px) {
  .header-inner { position: relative; }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .burger span {
    display: block;
    height: 2px;
    background: var(--slate);
    border-radius: 1px;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .menu-check:focus-visible + .burger { outline: 2px solid var(--focus); outline-offset: 3px; }
  .menu-check:checked + .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-check:checked + .burger span:nth-child(2) { opacity: 0; }
  .menu-check:checked + .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav { display: none; flex-basis: 100%; }
  .menu-check:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a { display: block; padding: 0.8rem 0; font-size: 1rem; border-top: 1px solid var(--line); }
  .site-nav .lang { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 0.8rem 0; font-size: 0.95rem; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--slate);
  background: var(--slate);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: #172A37; color: var(--paper); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color: var(--paper); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: var(--s3);
}
.action-note { font-size: 0.9rem; color: var(--muted); margin-top: var(--s2); }

/* ---------- Hero (accueil / EN) ---------- */
.hero { padding: var(--s4) 0 var(--s5); }
.hero-grid { display: grid; gap: var(--s4); }
.hero-photo {
  width: 100%;
  max-width: 8.5rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius);
  background: var(--panel);
}
.hero h1 { margin-bottom: var(--s3); }
.hero .lead { max-width: 36rem; }

/* Bandeau d'informations clés */
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: var(--s4);
  border-top: 1px solid var(--slate-soft);
}
.facts li {
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.4;
}
.facts dt, .fact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

/* ---------- Hero des pages intérieures ---------- */
.page-hero { padding: var(--s5) 0 var(--s4); }
.page-hero h1 { margin-bottom: var(--s3); max-width: 22ch; }
.page-hero .lead { max-width: 38rem; }
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: var(--s3); }
.breadcrumb a { color: var(--muted); }

/* ---------- Rangées éditoriales (libellé à gauche, texte à droite) ---------- */
.rows { border-top: 1px solid var(--slate-soft); }
.row {
  padding: var(--s3) 0 var(--s4);
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row h3 { margin-bottom: 0.6rem; }
.row-meta { font-size: 0.88rem; color: var(--muted); margin-top: 0.25rem; margin-bottom: 0.6rem; }
.row .more { display: inline-block; margin-top: var(--s2); font-weight: 600; }

/* ---------- Colonnes coiffées d'un filet ---------- */
.ruled-cols { display: grid; gap: var(--s4); }
.ruled-cols > * { border-top: 1px solid var(--slate-soft); padding-top: var(--s2); }
.ruled-cols h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.ruled-cols p { font-size: 0.98rem; }

/* ---------- Panneau d'information ---------- */
.note {
  background: var(--panel);
  border-left: 2px solid var(--slate-soft);
  padding: var(--s2) var(--s3);
  margin-top: var(--s3);
  max-width: calc(var(--text) + 3rem);
  font-size: 0.97rem;
}
.section--panel .note { background: var(--paper); }

/* ---------- Texte long ---------- */
.prose > * + * { margin-top: 0.9em; }
.prose h2 { margin-top: var(--s4); }
.prose h3 { margin-top: var(--s3); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.5rem; }

/* ---------- Tarifs ---------- */
.price-list { list-style: none; max-width: 30rem; border-top: 1px solid var(--slate-soft); }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.price-list .price { font-weight: 600; color: var(--slate); white-space: nowrap; font-variant-numeric: tabular-nums; }
.small { font-size: 0.9rem; color: var(--muted); }

.info-grid { display: grid; gap: var(--s4); }
.info-block h3 { margin-bottom: var(--s2); }
.info-list { list-style: none; }
.info-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.info-list li:first-child { border-top: 1px solid var(--slate-soft); }

/* ---------- FAQ (details/summary, sans JavaScript) ---------- */
.faq { border-top: 1px solid var(--slate-soft); max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--serif);
  font-weight: var(--title-weight);
  font-size: 1.1rem;
  color: var(--slate);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--slate-soft);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.2rem; }
.faq details > div p { font-size: 1rem; }

/* ---------- Section sombre (contact) ---------- */
.section--dark { background: var(--slate); color: var(--dark-soft); }
.section--dark h2, .section--dark h3 { color: var(--dark-text); }
.section--dark .section-head h2::after { background: var(--dark-soft); }
.section--dark .eyebrow { color: var(--dark-soft); }
.section--dark p { color: var(--dark-soft); }
.section--dark a { color: var(--dark-text); }
.section--dark a:hover { color: #FFFFFF; }
.section--dark :focus-visible { outline-color: var(--dark-text); }

.contact-grid { display: grid; gap: var(--s5); }
.contact-list { list-style: none; border-top: 1px solid rgba(197, 208, 216, 0.45); }
.contact-list li { padding: 0.8rem 0; border-bottom: 1px solid rgba(197, 208, 216, 0.25); }
.contact-list .fact-label { color: var(--dark-soft); }
.contact-list a { font-weight: 600; font-size: 1.05rem; }
.section--dark .btn { background: var(--dark-text); color: var(--slate); border-color: var(--dark-text); }
.section--dark .btn:hover { background: #FFFFFF; color: var(--slate); }
.section--dark .note { background: rgba(255, 255, 255, 0.06); border-left-color: var(--dark-soft); color: var(--dark-soft); }

/* ---------- Formulaire ---------- */
.form { max-width: 34rem; }
.field { margin-bottom: var(--s3); }
.field label, .field legend {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-text);
  margin-bottom: 0.35rem;
}
.field .hint { display: block; font-size: 0.85rem; color: var(--dark-soft); margin-bottom: 0.45rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid #8DA0AE;
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--dark-text); outline-offset: 2px; }
.field .optional { font-weight: 400; color: var(--dark-soft); }
.hp-field { position: absolute; left: -9999px; }
.form-legal { font-size: 0.85rem; margin-top: var(--s2); }
.form-urgent { font-size: 0.88rem; }

/* ---------- Pied de page ---------- */
.site-footer {
  padding: var(--s4) 0;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: var(--s3);
}
.footer-inner p { max-width: none; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--slate); }

/* ---------- Pages simples (légal, merci, 404) ---------- */
.simple { padding: var(--s5) 0 var(--s6); }
.simple h1 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); margin-bottom: var(--s3); }
.simple h2 { font-size: 1.25rem; margin-top: var(--s4); margin-bottom: 0.6rem; }

/* ---------- Article ---------- */
.article { padding: var(--s5) 0 var(--s5); }
.article-head { max-width: var(--text); margin-bottom: var(--s4); }
.article-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.article-meta { font-size: 0.92rem; color: var(--muted); margin-top: var(--s2); }
.article .prose h2 { font-size: 1.4rem; }
.article-end { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--slate-soft); max-width: var(--text); }

/* ==========================================================
   Écrans plus larges
   ========================================================== */
@media (min-width: 640px) {
  :root { --gutter: 2rem; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li { padding-right: 1rem; }
  .ruled-cols { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .hero-photo { max-width: 12rem; }
}

@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; z-index: 100; }
  .hero { padding: var(--s5) 0 var(--s6); }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: start;
    gap: var(--s6);
  }
  .hero-photo { max-width: none; grid-column: 2; grid-row: 1; margin-top: 0.5rem; }
  .hero-text { grid-column: 1; grid-row: 1; }

  .row {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: var(--s4);
    padding: var(--s4) 0;
  }
  .row h3 { margin-bottom: 0; }
  .ruled-cols.three { grid-template-columns: repeat(3, 1fr); }
  .split {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: var(--s4);
    align-items: start;
  }
  .split > .section-head { margin-bottom: 0; }
  .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--s6); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .section { padding: var(--s6) 0; }
}

@media print {
  .site-header { position: static; }
  .site-nav, .actions, .form, .skip-link { display: none !important; }
  .section--dark { background: none; color: var(--ink); }
  .section--dark h2, .section--dark p, .section--dark a { color: var(--ink); }
}
