/* ==========================================================================
   AVOCAT DIRECT — Me Jean-Maurice Bellaiche — style.css
   --------------------------------------------------------------------------
   Un seul fichier. Aucune dépendance. Voir docs/DESIGN-SYSTEM.md pour le
   pourquoi de chaque jeton. Ordre : jetons → base → utilitaires → en-tête →
   sections dans l'ordre de la page → pied de page → pages secondaires →
   états JS → mouvement → impression.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Polices — auto-hébergées, sous-ensemble latin, licence OFL à côté.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Replis métriques : aucun décalage de mise en page à l'échange de police. */
@font-face {
  font-family: "Serif-repli";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 26%;
}
@font-face {
  font-family: "Sans-repli";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 97%;
  ascent-override: 95%;
  descent-override: 24%;
}

/* --------------------------------------------------------------------------
   1. Jetons
   -------------------------------------------------------------------------- */
:root {
  /* Fonds clairs */
  --blanc-chaud: #FBF9F5;
  --creme: #F4F0E8;
  --blanc: #FFFFFF;
  --filet: #E2DCD0;          /* filets sur fond clair — jamais de texte */
  /* Fonds sombres */
  --navy: #0F1F3A;
  --navy-2: #16294A;         /* survol du bouton navy, dégradé du portrait vide */
  --navy-fonce: #0A1628;     /* bandeaux */
  --filet-sombre: rgba(255, 255, 255, 0.14);
  /* Texte */
  --encre: #1C2230;          /* texte sur clair — 15,1:1 sur blanc chaud */
  --plomb: #545B69;          /* secondaire sur clair — 6,5:1 */
  --brume: #AEB8C9;          /* secondaire sur navy — 8,2:1 */
  /* Accent cuivre — trois valeurs, trois usages, ne pas intervertir */
  --cuivre: #9A5B27;         /* TEXTE accent sur clair — 5,1:1 / 4,7:1 */
  --cuivre-vif: #C4813F;     /* REMPLISSAGES ; porte --encre (5,0:1) */
  --cuivre-clair: #D9A26A;   /* accent sur navy — 7,3:1 */
  --erreur: #9B2C1F;         /* formulaire seulement — 7,2:1 */

  /* Typographie */
  --police-titre: "Source Serif 4", "Serif-repli", Georgia, "Times New Roman", serif;
  --police-corps: "Source Sans 3", "Sans-repli", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --t-d1: clamp(2.3rem, 1.4rem + 3.4vw, 4.25rem);
  --t-d2: clamp(1.9rem, 1.35rem + 1.85vw, 2.8rem);
  --t-d3: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem);
  --t-d4: 1.2rem;
  --t-lead: clamp(1.1rem, 1.02rem + 0.35vw, 1.25rem);
  --t-corps: 1.0625rem;      /* 17 px — lectorat adulte, lecture longue */
  --t-petit: 0.9375rem;      /* 15 px */
  --t-micro: 0.75rem;        /* 12 px — sourcils, plancher absolu */

  /* Rythme */
  --e1: 8px; --e2: 16px; --e3: 24px; --e4: 32px; --e5: 40px; --e6: 48px; --e8: 64px;
  --gouttiere: clamp(20px, 5vw, 56px);
  --largeur: 1280px;
  --section: clamp(64px, 6vw + 32px, 120px);
  --rayon: 3px;
  --transition: 180ms ease;
}

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

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

body {
  margin: 0;
  background: var(--blanc-chaud);
  color: var(--encre);
  font-family: var(--police-corps);
  font-size: var(--t-corps);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--e3);
  letter-spacing: -0.005em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 { font-size: var(--t-d1); line-height: 1.06; letter-spacing: -0.012em; }
h2 { font-size: var(--t-d2); line-height: 1.1; }
h3 { font-size: var(--t-d3); }
h4 { font-size: var(--t-d4); }

p { margin: 0 0 var(--e2); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--cuivre); }

ul, ol { margin: 0; padding: 0; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 600; }
sup { font-size: 0.68em; line-height: 0; vertical-align: baseline; position: relative; top: -0.42em; }
hr { border: 0; border-top: 1px solid var(--filet); margin: var(--e4) 0; }

::selection { background: var(--cuivre-clair); color: var(--encre); }

/* Focus visible — anneau cuivre sur clair, crème sur sombre. Jamais retiré. */
:focus-visible {
  outline: 3px solid var(--cuivre);
  outline-offset: 3px;
  border-radius: 2px;
}
.sombre :focus-visible,
.entete__nav-mobile :focus-visible { outline-color: var(--cuivre-clair); }

/* --------------------------------------------------------------------------
   3. Utilitaires
   -------------------------------------------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section { padding-block: var(--section); }
.section--creme { background: var(--creme); }
.sombre { background: var(--navy); color: var(--blanc-chaud); }
.sombre a:hover { color: var(--cuivre-clair); }
.sombre h1, .sombre h2, .sombre h3 { color: var(--blanc); }

.sourcil {
  display: block;
  font-family: var(--police-corps);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin: 0 0 var(--e2);
}
.sombre .sourcil { color: var(--cuivre-clair); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--plomb);
  max-width: 58ch;
}
.sombre .lead { color: var(--brume); }

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

.saut-contenu {
  position: absolute;
  left: var(--e2); top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--blanc-chaud);
  border-radius: var(--rayon);
  text-decoration: none;
  font-weight: 600;
}
.saut-contenu:focus { top: var(--e2); }

/* Note interne — visible au prototype, masquée en présentation client
   (ajouter la classe `presentation` sur <body>). Jamais en production. */
.note-interne {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--encre);
  background: #FFF3DC;
  border: 1px dashed var(--cuivre);
  border-radius: var(--rayon);
  padding: 6px 10px;
  line-height: 1.3;
}
.note-interne::before {
  content: "NOTE PORTORO";
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--cuivre);
}
body.presentation .note-interne { display: none; }
.note-interne code { font-family: inherit; font-weight: 700; }

/* Boutons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--rayon);
  font-family: var(--police-corps);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { color: inherit; }

/* Principal sur fond clair : navy plein. */
.btn--p { background: var(--navy); color: var(--blanc-chaud); border-color: var(--navy); }
.btn--p:hover { background: var(--navy-2); color: var(--blanc); }
/* Principal sur fond sombre : cuivre plein, texte encre (le seul bouton cuivre). */
.sombre .btn--p { background: var(--cuivre-vif); color: var(--encre); border-color: var(--cuivre-vif); }
.sombre .btn--p:hover { background: var(--cuivre-clair); color: var(--encre); border-color: var(--cuivre-clair); }

/* Secondaire : contour. */
.btn--s { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--s:hover { background: var(--navy); color: var(--blanc-chaud); }
.sombre .btn--s { color: var(--blanc-chaud); border-color: rgba(255, 255, 255, 0.55); }
.sombre .btn--s:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--blanc-chaud); color: var(--blanc); }

/* Lien téléphone (icône + numéro) */
.tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.tel svg { flex: 0 0 auto; }
.tel:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* --------------------------------------------------------------------------
   4. En-tête
   -------------------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanc-chaud);
  border-bottom: 1px solid var(--filet);
  transition: box-shadow var(--transition);
}
.entete--compacte { box-shadow: 0 1px 0 var(--filet), 0 6px 18px -12px rgba(15, 31, 58, 0.25); }

.entete__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e3);
  min-height: 80px;
}

/* Mot-symbole : deux lignes verrouillées, aucun logo. */
.marque {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: var(--navy);
  line-height: 1;
  white-space: nowrap;
}
.marque:hover { color: var(--navy); }
.marque__nom {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.marque__sous {
  font-family: var(--police-corps);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--plomb);
}
.sombre .marque, .sombre .marque:hover { color: var(--blanc); }
.sombre .marque__sous { color: var(--brume); }

.entete__nav { display: none; }
.entete__actions { display: flex; align-items: center; gap: var(--e3); }
.entete__actions .btn { display: none; }
.entete__tel { color: var(--navy); min-width: 44px; min-height: 44px; justify-content: center; }
.entete__tel span { display: none; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 6.4rem;
  padding: 8px 12px;
  background: transparent;
  border: 1.5px solid var(--navy);
  border-radius: var(--rayon);
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
}
.menu-btn .ferme { display: none; }
.menu-btn[aria-expanded="true"] .ouvre { display: none; }
.menu-btn[aria-expanded="true"] .ferme { display: inline; }

/* Menu mobile : panneau plein écran sous l'en-tête. */
.entete__nav-mobile {
  display: none;
  position: fixed;
  inset: 80px 0 0 0;
  z-index: 49;
  background: var(--navy);
  color: var(--blanc-chaud);
  padding: var(--e4) var(--gouttiere) var(--e6);
  overflow-y: auto;
}
body.menu-ouvert .entete__nav-mobile { display: block; }
body.menu-ouvert { overflow: hidden; }
body.menu-ouvert main, body.menu-ouvert footer { visibility: hidden; }
.entete__nav-mobile ul { list-style: none; display: grid; gap: 2px; }
.entete__nav-mobile ul a {
  display: block;
  padding: 14px 0;
  font-family: var(--police-titre);
  font-size: 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid var(--filet-sombre);
}
.entete__nav-mobile .btn {
  margin-top: var(--e4);
  width: 100%;
  background: var(--cuivre-vif);
  color: var(--encre);
  border-color: var(--cuivre-vif);
}
.entete__nav-mobile .tel {
  display: inline-flex;
  margin-top: var(--e3);
  font-size: 1.25rem;
  color: var(--blanc-chaud);
}

/* Très petits écrans : le mot-symbole se resserre pour laisser place au
   téléphone et au bouton Menu (« Fermer » doit tenir dans la même largeur). */
@media (max-width: 439px) {
  .entete__in { gap: 12px; }
  .entete__actions { gap: 10px; }
  .marque__nom { font-size: 1.05rem; letter-spacing: 0.12em; }
  .marque__sous { font-size: 0.62rem; letter-spacing: 0.04em; }
  .entete__tel { min-width: 40px; }
  .menu-btn { min-width: 6rem; padding: 8px 10px; }
}
/* Sous 1140 px : mot-symbole, téléphone (icône), CTA, bouton Menu. */
@media (min-width: 600px) {
  .entete__actions .btn { display: inline-flex; }
}
@media (min-width: 1140px) {
  .entete__in { min-height: 88px; }
  .entete__nav { display: flex; flex: 0 1 auto; gap: clamp(16px, 1.6vw, 28px); }
  .entete__nav a {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--encre);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: border-color var(--transition), color var(--transition);
  }
  .entete__nav a:hover { color: var(--navy); border-bottom-color: var(--cuivre); }
  .entete__actions { gap: var(--e2); }
  .entete__actions .btn { padding-inline: 18px; }
  .menu-btn, .entete__nav-mobile { display: none !important; }
}
@media (min-width: 1280px) {
  .entete__tel span { display: inline; }
  .entete__actions { gap: var(--e3); }
  .entete__actions .btn { padding-inline: 24px; }
}

/* --------------------------------------------------------------------------
   5. Héro — composition en deux temps : le texte à gauche sur navy plein,
      l'image révélée à droite par un dégradé. Le texte ne dépend jamais
      de l'image pour son contraste.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media picture, .portrait picture { height: 100%; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.hero__voile {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--navy) 0%, var(--navy) 36%, rgba(15, 31, 58, 0.86) 52%, rgba(15, 31, 58, 0.42) 74%, rgba(15, 31, 58, 0.28) 100%),
    linear-gradient(180deg, rgba(15, 31, 58, 0.2) 0%, rgba(15, 31, 58, 0.0) 40%, rgba(15, 31, 58, 0.55) 100%);
}
.hero__in {
  padding-block: clamp(72px, 10vw, 128px) clamp(56px, 8vw, 96px);
}
.hero__texte { max-width: 720px; }
/* Identité d'abord : le nom porte le H1 ; le rôle est une seconde ligne du même titre. */
.hero h1 { color: var(--blanc); margin-bottom: var(--e3); font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4rem); line-height: 1.05; }
.hero__role {
  display: block;
  margin-top: 10px;
  font-family: var(--police-corps);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cuivre-clair);
}
/* Énoncé de positionnement : important, mais secondaire par rapport au nom. */
.hero__enonce {
  font-family: var(--police-titre);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.3;
  color: var(--blanc-chaud);
  max-width: 40ch;
  margin: 0 0 var(--e3);
  text-wrap: balance;
}
.hero .lead { margin-bottom: var(--e5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--e2) var(--e3); align-items: center; }
.hero .note-interne { position: absolute; right: var(--gouttiere); bottom: var(--e3); z-index: 1; }

@media (max-width: 760px) {
  .hero { min-height: 0; justify-content: flex-start; }
  .hero__voile {
    background:
      linear-gradient(180deg, var(--navy) 0%, rgba(15, 31, 58, 0.92) 60%, rgba(15, 31, 58, 0.78) 100%);
  }
  .hero .note-interne { position: static; align-self: flex-start; margin: calc(-1 * var(--e3)) var(--gouttiere) var(--e4); }
}

/* --------------------------------------------------------------------------
   6. Bandeau de confiance — quatre faits, aucun chiffre décoratif.
   -------------------------------------------------------------------------- */
.confiance {
  background: var(--navy-fonce);
  color: var(--blanc-chaud);
  border-top: 1px solid var(--filet-sombre);
}
.confiance ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
}
.confiance li {
  padding: var(--e3) 0;
  border-bottom: 1px solid var(--filet-sombre);
}
.confiance li:last-child { border-bottom: 0; }
.confiance__cle {
  display: block;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cuivre-clair);
  margin-bottom: 6px;
}
.confiance__val {
  display: block;
  font-family: var(--police-titre);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--blanc);
}
@media (min-width: 720px) {
  .confiance ul { grid-template-columns: repeat(3, 1fr); }
  .confiance li { padding: var(--e4) var(--e3); border-bottom: 0; border-left: 1px solid var(--filet-sombre); }
  .confiance li:first-child { padding-left: 0; border-left: 0; }
  .confiance li:last-child { padding-right: 0; }
}

/* --------------------------------------------------------------------------
   7. Présentation — portrait (emplacement) + texte. Variante sans portrait.
   -------------------------------------------------------------------------- */
.presentation__grille {
  display: grid;
  gap: var(--e6);
  align-items: start;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 340px;
  background: var(--navy);
  border-radius: var(--rayon);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--vide {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--brume);
  padding: var(--e4);
  background:
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
}
.portrait--vide::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--filet-sombre);
  border-radius: 2px;
  pointer-events: none;
}
.portrait--vide .portrait__etiquette {
  font-family: var(--police-titre);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--blanc-chaud);
  max-width: 22ch;
}
.portrait--vide .portrait__etiquette small {
  display: block;
  margin-top: 10px;
  font-family: var(--police-corps);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cuivre-clair);
}
.presentation .note-interne { margin-top: var(--e2); }

.presentation__texte p { max-width: 62ch; }

@media (min-width: 700px) {
  /* Texte centré face au portrait ; la colonne du portrait est bornée pour que
     l'emplacement (ou la photo finale) ne domine pas un texte devenu court. */
  .presentation__grille { grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
  .presentation__texte { max-width: 62ch; }
  .presentation--sans-portrait .presentation__grille { grid-template-columns: 1fr; max-width: 760px; }
}
@media (min-width: 1000px) {
  .presentation__grille { grid-template-columns: minmax(260px, 340px) 1fr; }
}
@media (max-width: 699px) {
  .portrait { max-width: 300px; }
}

/* --------------------------------------------------------------------------
   8. Domaines de pratique — un panneau (droit de la famille) et une table
      des matières en deux colonnes. Pas de grille de cartes.
   -------------------------------------------------------------------------- */
.domaines__tete {
  display: grid;
  gap: var(--e3);
  margin-bottom: var(--e6);
}
.domaines__tete .lead { margin: 0; }
.domaines__corps {
  display: grid;
  gap: var(--e5);
}

.domaine--famille {
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-top: 3px solid var(--cuivre-vif);
  border-radius: var(--rayon);
  padding: clamp(24px, 3vw, 40px);
}
.domaine--famille h3 { font-size: var(--t-d2); margin-bottom: var(--e1); }
.domaine--famille .domaine__sous {
  font-size: var(--t-petit);
  color: var(--plomb);
  margin-bottom: var(--e3);
}
.domaine--famille p { color: var(--encre); max-width: 46ch; }
.domaine__liste {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px var(--e3);
  margin-top: var(--e3);
  padding-top: var(--e3);
  border-top: 1px solid var(--filet);
}
.domaine__liste li {
  position: relative;
  padding-left: 18px;
  font-weight: 600;
  font-size: var(--t-petit);
  color: var(--navy);
}
.domaine__liste li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cuivre-vif);
}
.domaine--famille .btn { margin-top: var(--e4); }

.domaines__liste {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: var(--e6);
  border-top: 1px solid var(--filet);
}
.domaines__liste li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0 var(--e2);
  padding: var(--e3) 0;
  border-bottom: 1px solid var(--filet);
}
.domaines__liste .num {
  font-family: var(--police-titre);
  font-size: 0.95rem;
  color: var(--cuivre);
  padding-top: 0.25em;
  font-variant-numeric: tabular-nums;
}
.domaines__liste h3 { font-size: var(--t-d4); margin-bottom: 6px; }
.domaines__liste h3:last-child { margin-bottom: 0; }
.domaines__liste p { font-size: var(--t-petit); color: var(--plomb); }
.domaines__liste .domaine__mots { font-size: 0.85rem; color: var(--cuivre); margin-bottom: 6px; letter-spacing: 0.01em; }
.domaines__pied {
  margin-top: var(--e5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e2) var(--e4);
  color: var(--plomb);
  font-size: var(--t-petit);
}
.domaines__pied p { max-width: 52ch; }

@media (min-width: 700px) {
  .domaines__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* deux colonnes : seuls les deux derniers items perdent leur filet bas */
}
@media (min-width: 700px) and (max-width: 1139px) {
  /* Panneau famille pleine largeur, contenu en deux colonnes internes. */
  .domaine--famille {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    column-gap: var(--e6);
    align-items: start;
  }
  .domaine--famille .sourcil, .domaine--famille h3, .domaine--famille .domaine__sous, .domaine--famille > p { grid-column: 1; }
  .domaine--famille .domaine__liste { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; padding-top: 0; border-top: 0; grid-template-columns: 1fr; align-self: center; }
  .domaine--famille .btn { grid-column: 1; justify-self: start; }
}
@media (min-width: 900px) {
  .domaines__tete { grid-template-columns: 1fr 1fr; align-items: end; }
}
@media (min-width: 1140px) {
  .domaines__corps { grid-template-columns: minmax(300px, 5fr) 7fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
}
@media (min-width: 1140px) and (min-height: 700px) {
  .domaine--famille { position: sticky; top: 112px; }
}

/* --------------------------------------------------------------------------
   9. Approche — six principes numérotés sur navy.
   -------------------------------------------------------------------------- */
.approche__tete { max-width: 640px; margin-bottom: var(--e6); }
.approche__liste {
  list-style: none;
  display: grid;
  gap: var(--e4) var(--e5);
  counter-reset: principe;
}
.approche__liste li {
  counter-increment: principe;
  padding-top: var(--e3);
  border-top: 1px solid var(--filet-sombre);
}
.approche__liste li::before {
  content: "0" counter(principe);
  display: block;
  font-family: var(--police-titre);
  font-size: 1rem;
  color: var(--cuivre-clair);
  margin-bottom: var(--e2);
  font-variant-numeric: tabular-nums;
}
.approche__liste h3 { font-size: var(--t-d4); color: var(--blanc); margin-bottom: var(--e1); }
.approche__liste p { color: var(--brume); font-size: var(--t-petit); }
@media (min-width: 640px) { .approche__liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .approche__liste { grid-template-columns: repeat(4, 1fr); gap: var(--e4) var(--e4); } }

/* --------------------------------------------------------------------------
   11. Avis Google — trois emplacements. Aucun chiffre tant que rien n'est
       vérifié : .avis__note reste `hidden`.
   -------------------------------------------------------------------------- */
.avis__tete {
  display: grid;
  gap: var(--e2);
  margin-bottom: var(--e6);
}
.avis__note {
  font-family: var(--police-titre);
  font-size: var(--t-d3);
  color: var(--navy);
  margin: 0;
}
.avis__note strong { color: var(--cuivre); font-weight: 600; }
.avis__grille {
  display: grid;
  gap: var(--e3);
}
.avis__carte {
  position: relative;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: var(--e4) var(--e4) var(--e3);
  display: flex;
  flex-direction: column;
  gap: var(--e2);
}
.avis__carte::before {
  content: "\00AB";
  font-family: var(--police-titre);
  font-size: 3.25rem;
  line-height: 0.6;
  color: var(--cuivre-vif);
  display: block;
  height: 0.55em;
}
.avis__texte {
  font-family: var(--police-titre);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--encre);
  flex: 1;
}
/* Emplacements réservés : jamais confondus avec de vrais avis — pas de guillemet,
   contour tireté, étiquette. */
.avis__carte[data-placeholder] { border: 1px dashed var(--cuivre); background: transparent; }
.avis__carte[data-placeholder]::before { content: none; }
.avis__carte[data-placeholder] .avis__texte { color: var(--plomb); font-family: var(--police-corps); font-size: var(--t-petit); font-style: normal; }
.avis__carte[data-placeholder] .avis__etiquette {
  font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cuivre);
}
/* Mode présentation (body.presentation ou ?presentation) : les emplacements
   disparaissent, un repli sobre les remplace. Le système reste dans le code. */
.avis__repli { display: none; }
body.presentation .avis__grille[data-placeholder-grille],
body.presentation .avis__pied--placeholder { display: none; }
body.presentation .avis__repli { display: block; max-width: 62ch; }
body.presentation .avis { padding-block: clamp(48px, 5vw, 80px); }
body.presentation .avis__tete { margin-bottom: var(--e2); }
.avis__repli p { color: var(--plomb); }
.avis__repli .btn { margin-top: var(--e3); }
.avis__signature {
  font-size: var(--t-petit);
  color: var(--plomb);
  padding-top: var(--e2);
  border-top: 1px solid var(--filet);
  display: flex;
  justify-content: space-between;
  gap: var(--e2);
}
.avis__signature .google {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.avis__etoiles {
  display: inline-flex;
  gap: 2px;
  color: var(--cuivre-vif);
}
.avis__pied {
  margin-top: var(--e5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2) var(--e4);
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-petit);
  color: var(--plomb);
}
@media (min-width: 720px) { .avis__grille { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .avis__tete { grid-template-columns: 1fr auto; align-items: end; } }

/* --------------------------------------------------------------------------
   12. Langues — bandeau court.
   -------------------------------------------------------------------------- */
.langues {
  background: var(--navy-fonce);
  color: var(--blanc-chaud);
  padding-block: clamp(40px, 5vw, 64px);
}
.langues__in {
  display: grid;
  gap: var(--e3);
  align-items: center;
}
.langues__in h2 { font-size: var(--t-d3); margin: 0; color: var(--blanc); }
.langues__in .sourcil { margin-bottom: 8px; }
.langues__liste {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2) var(--e4);
  font-family: var(--police-titre);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  color: var(--blanc);
}
.langues__liste li { display: flex; align-items: center; gap: var(--e4); }
.langues__liste li + li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cuivre-clair);
}
@media (max-width: 899px) {
  .langues__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--e3); }
  .langues__liste li { gap: 0; }
  .langues__liste li + li::before { display: none; }
}
@media (min-width: 900px) {
  .langues__in { grid-template-columns: 1fr auto; gap: var(--e6); }
}

/* --------------------------------------------------------------------------
   13. Consultation — panneau navy + formulaire prototype.
   -------------------------------------------------------------------------- */
.consultation__grille { display: grid; gap: var(--e5); align-items: start; }
.consultation__panneau {
  background: var(--navy);
  color: var(--blanc-chaud);
  border-radius: var(--rayon);
  padding: clamp(28px, 4vw, 48px);
}
.consultation__panneau h2 { color: var(--blanc); }
.consultation__panneau .lead { margin-bottom: var(--e4); }
.consultation__direct {
  display: grid;
  gap: var(--e3);
  padding-top: var(--e3);
  border-top: 1px solid var(--filet-sombre);
}
.consultation__direct dt {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cuivre-clair);
  margin-bottom: 6px;
}
.consultation__direct dd { margin: 0; color: var(--blanc-chaud); }
.consultation__direct dd.muet { color: var(--brume); font-size: var(--t-petit); }
.consultation__direct .tel { font-family: var(--police-titre); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 500; color: var(--blanc); }

.formulaire {
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: clamp(24px, 3.5vw, 40px);
}
.formulaire__tete { margin-bottom: var(--e4); }
.formulaire__tete h3 { margin-bottom: 6px; }
.formulaire__tete p { font-size: var(--t-petit); color: var(--plomb); }
.formulaire fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.champs { display: grid; gap: var(--e3); }
.champ label {
  display: block;
  font-weight: 600;
  font-size: var(--t-petit);
  margin-bottom: 6px;
}
.champ .aide {
  display: block;
  font-size: 0.875rem;
  color: var(--plomb);
  margin-top: 6px;
}
.champ input, .champ select, .champ textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 1rem;              /* jamais sous 16 px : iOS zoome */
  background: var(--blanc-chaud);
  border: 1.5px solid #8F8A7E;   /* 3,3:1 sur blanc chaud — WCAG 1.4.11 */
  border-radius: var(--rayon);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231C2230' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 31, 58, 0.16);
}
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: var(--erreur); }
.champ__erreur { color: var(--erreur); font-size: 0.875rem; font-weight: 600; margin-top: 6px; }
.champ__erreur[hidden] { display: none; }
.facultatif { font-weight: 400; color: var(--plomb); }

.form-erreurs {
  margin-bottom: var(--e3);
  padding: var(--e2) var(--e3);
  border: 1.5px solid var(--erreur);
  border-radius: var(--rayon);
  background: #FBF1EF;
  color: var(--erreur);
  font-size: var(--t-petit);
}
.form-erreurs p { font-weight: 600; margin-bottom: 6px; }
.form-erreurs ul { padding-left: 18px; }
.form-erreurs a { color: var(--erreur); }

.formulaire__pied {
  margin-top: var(--e4);
  display: grid;
  gap: var(--e2);
}
.formulaire__pied .btn { width: 100%; }
.formulaire__pied .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.formulaire__mention { font-size: 0.875rem; color: var(--plomb); }
.formulaire__proto { font-size: 0.875rem; color: var(--plomb); }
.formulaire__proto strong { color: var(--cuivre); }

.form-confirmation {
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-top: 3px solid var(--cuivre-vif);
  border-radius: var(--rayon);
  padding: clamp(24px, 3.5vw, 40px);
}
.form-confirmation h3 { margin-bottom: var(--e2); }
.form-confirmation p { color: var(--plomb); }
.form-confirmation .btn { margin-top: var(--e3); }
[hidden] { display: none !important; }

@media (min-width: 640px) {
  .champs { grid-template-columns: repeat(2, 1fr); }
  .champ--large { grid-column: 1 / -1; }
  .formulaire__pied .btn { width: auto; justify-self: start; }
}
@media (min-width: 1000px) {
  .consultation__grille { grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 56px); }
  /* Pas de position sticky : le panneau (~950 px) dépasserait la hauteur de la
     plupart des fenêtres et son bas resterait inaccessible. */
}

/* --------------------------------------------------------------------------
   14. Coordonnées
   -------------------------------------------------------------------------- */
.coordonnees__grille { display: grid; gap: var(--e5); }
.coordonnees__bloc dt {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin-bottom: var(--e1);
}
.coordonnees__bloc dd { margin: 0; line-height: 1.55; }
.coordonnees__bloc dd + dt { margin-top: var(--e3); }
.coordonnees__bloc .tel { font-family: var(--police-titre); font-size: 1.5rem; font-weight: 500; color: var(--navy); }
.coordonnees__bloc .nom { font-family: var(--police-titre); font-size: var(--t-d3); color: var(--navy); margin-bottom: 4px; }
.coordonnees__bloc .marque-ligne {
  font-family: var(--police-titre);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--navy);
}
.lien-externe { text-decoration: underline; text-underline-offset: 0.2em; }
.lien-externe svg { display: inline-block; vertical-align: -0.15em; margin-right: 6px; color: var(--cuivre); }
.pied .lien-externe { text-decoration: none; }
.pied .lien-externe svg { color: var(--cuivre-clair); }
.pied__bas .lien-externe { display: inline-flex; align-items: center; gap: 6px; }
.pied__bas .lien-externe svg { margin-right: 0; }
.heures { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--e2); }
.heures span:nth-child(odd) { color: var(--plomb); }
@media (min-width: 900px) {
  .coordonnees__grille { grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
}

/* --------------------------------------------------------------------------
   15. Pied de page
   -------------------------------------------------------------------------- */
.pied {
  background: var(--navy);
  color: var(--brume);
  padding-block: var(--e8) var(--e4);
  font-size: var(--t-petit);
}
.pied__grille { display: grid; gap: var(--e5); padding-bottom: var(--e5); border-bottom: 1px solid var(--filet-sombre); }
.pied__marque address { margin-top: var(--e3); line-height: 1.6; }
.pied__marque .tel { color: var(--blanc-chaud); margin-top: var(--e2); }
.pied h2 {
  font-family: var(--police-corps);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cuivre-clair);
  margin-bottom: var(--e2);
}
.pied ul { list-style: none; display: grid; gap: 2px; }
.pied a { text-decoration: none; color: var(--blanc-chaud); }
.pied ul a { display: inline-block; padding: 8px 0; min-height: 44px; }
.pied a:hover { color: var(--cuivre-clair); text-decoration: underline; text-underline-offset: 0.2em; }
.pied__mention { max-width: 56ch; line-height: 1.55; }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--e2) var(--e4);
  padding-top: var(--e3);
  font-size: 0.875rem;
}
.pied__bas ul { display: flex; flex-wrap: wrap; gap: var(--e2) var(--e3); align-items: center; }
.pied__bas a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) {
  .pied__grille { grid-template-columns: 1.4fr 1fr 1.4fr; gap: var(--e8); }
}

/* --------------------------------------------------------------------------
   16. Pages secondaires (404, confidentialité)
   -------------------------------------------------------------------------- */
.page-simple { padding-block: clamp(56px, 8vw, 112px); }
.page-simple .conteneur { max-width: 820px; }
.page-simple h1 { font-size: var(--t-d2); }
.page-simple h2 { font-size: var(--t-d3); margin-top: var(--e5); }
.page-simple .btn { margin-top: var(--e3); }
.bandeau-gabarit {
  background: #FFF3DC;
  border-bottom: 1px solid var(--cuivre-vif);
  color: var(--encre);
  font-size: var(--t-petit);
  padding: 10px 0;
}
.bandeau-gabarit strong { color: var(--cuivre); letter-spacing: 0.06em; }

/* --------------------------------------------------------------------------
   17. États JS et mouvement — une seule animation. Sans JS, tout est visible.
   -------------------------------------------------------------------------- */
.js-seulement { display: none; }
.js .js-seulement { display: inline-flex; }
/* Sans JavaScript, sous 1140 px : le panneau de navigation mobile est affiché
   en bandeau statique sous l'en-tête (aucune navigation ne dépend du script). */
html:not(.js) .entete__nav-mobile {
  display: block;
  position: static;
  padding: var(--e2) var(--gouttiere) var(--e3);
}
html:not(.js) .entete__nav-mobile ul { display: flex; flex-wrap: wrap; gap: 0 var(--e3); }
html:not(.js) .entete__nav-mobile ul a { font-size: 1.05rem; padding: 10px 0; border-bottom: 0; }
html:not(.js) .entete__nav-mobile .btn, html:not(.js) .entete__nav-mobile .tel { display: none; }
@media (min-width: 1140px) { html:not(.js) .entete__nav-mobile { display: none; } }
.sans-js-seulement { display: block; }
.js .sans-js-seulement { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveler {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 560ms ease-out, transform 560ms ease-out;
  }
  .js .reveler.est-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   18. Impression
   -------------------------------------------------------------------------- */
@media print {
  .entete, .menu-btn, .entete__nav-mobile, .hero__media, .hero__voile, .note-interne, .formulaire, .saut-contenu { display: none !important; }
  .sombre, .confiance, .langues, .consultation__panneau, .pied, .hero { background: none !important; color: #000 !important; }
  .sombre h1, .sombre h2, .sombre h3, .hero h1 { color: #000 !important; }
  a { text-decoration: none; }
  .section { padding-block: 24px; }
}
