/* ==========================================================================
   Jean-Rémi Tomasini — Ostéopathe D.O. à Lannion
   Feuille de style commune aux cinq pages du site.
   Aucune dépendance, aucun build. Mobile-first, testée jusqu'à 360 px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Polices, hébergées sur le domaine
   Inter et Lora sont servies depuis /assets/fonts plutôt que par Google :
   deux connexions tierces en moins sur le chemin critique, et aucune adresse
   IP de visiteur transmise à Google au chargement.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/lora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */

:root {
  /* Charte — couleurs extraites des photos du cabinet */
  --vert: #24503e;
  --terracotta: #b75b4a;
  --creme: #f5f2ea;
  --creme-fonce: #eae5d9;
  --anthracite: #333a40;
  --noyer: #8a5a38;
  --laiton: #b08a4f;

  /* Le laiton de la charte sert aux filets. Pour du texte ou un pictogramme,
     il ne passe pas AA : ces deux nuances prennent le relais. */
  --laiton-clair: #e3c88f;
  --laiton-fonce: #a87f45;

  /* Variantes dérivées, nécessaires aux contrastes WCAG AA.
     --terracotta reste la couleur de marque ; --terracotta-fonce sert dès
     qu'un texte doit passer le seuil de 4,5:1 (boutons, liens sur crème). */
  --terracotta-fonce: #9e4a38;
  --vert-sombre: #1b3d2f;
  --anthracite-doux: #5a6470;
  --blanc: #fff;

  /* Filets fins */
  --filet: 1px solid rgb(176 138 79 / 32%);
  --filet-clair: 1px solid rgb(245 242 234 / 22%);

  /* Typographie */
  --font-titre: "Lora", Georgia, "Times New Roman", serif;
  --font-corps: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rythme vertical */
  --section-y: 4rem;
  --gouttiere: 1.25rem;
  --largeur-max: 68rem;
  --largeur-texte: 42rem;

  /* Rayons — discrets, jamais de bulle */
  --r-s: 3px;
  --r-m: 6px;
  --r-l: 10px;
}

@media (min-width: 48em) {
  :root {
    --section-y: 5.5rem;
    --gouttiere: 2rem;
  }
}

@media (min-width: 64em) {
  :root {
    --section-y: 7rem;
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--creme);
  color: var(--anthracite);
  font-family: var(--font-corps);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* laisse la place à la barre d'action fixe du mobile */
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

@media (min-width: 56.25em) {
  body {
    padding-bottom: 0;
  }
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-titre);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.05rem, 1.35rem + 3.1vw, 3.5rem);
}

h2 {
  font-size: clamp(1.7rem, 1.25rem + 2vw, 2.55rem);
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
}

h4 {
  font-size: 1.0625rem;
}

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

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

a {
  color: var(--terracotta-fonce);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--vert);
}

ul {
  padding-left: 1.15rem;
}

strong {
  font-weight: 600;
}

/* Accessibilité clavier — anneau visible partout */
:focus-visible {
  outline: 3px solid var(--terracotta-fonce);
  outline-offset: 3px;
  border-radius: var(--r-s);
}

.lien-evitement {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--vert);
  color: var(--creme);
  font-weight: 600;
  border-radius: 0 0 var(--r-m) 0;
}

.lien-evitement:focus {
  left: 0;
  top: 0;
  color: var(--creme);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Mise en page
   -------------------------------------------------------------------------- */

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

.conteneur--etroit {
  max-width: 48rem;
}

.section {
  padding-block: var(--section-y);
}

.section--serree {
  padding-block: calc(var(--section-y) * 0.65);
}

.section--creme {
  background: var(--creme);
}

.section--creme-fonce {
  background: var(--creme-fonce);
}

.section--blanc {
  background: var(--blanc);
}

.section--vert {
  background: var(--vert);
  color: var(--creme);
}

.section--vert h1,
.section--vert h2,
.section--vert h3 {
  color: var(--creme);
}

.section--vert a:not(.btn) {
  color: var(--creme);
}

.section--vert .surtitre {
  color: var(--laiton-clair);
}

.entete-section {
  max-width: var(--largeur-texte);
  margin-bottom: 2.75rem;
}

.entete-section--centre {
  margin-inline: auto;
  text-align: center;
}

.entete-section > p {
  font-size: 1.125rem;
  color: var(--anthracite-doux);
}

.section--vert .entete-section > p {
  color: rgb(245 242 234 / 82%);
}

.surtitre {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-fonce);
}

.plomb {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--anthracite-doux);
}

.mention {
  font-size: 0.875rem;
  color: var(--anthracite-doux);
}

.section--vert .mention {
  color: rgb(245 242 234 / 72%);
}

/* Filet fin laiton */
.filet {
  height: 1px;
  margin-block: 2.5rem;
  border: 0;
  background: rgb(176 138 79 / 32%);
}

/* Grilles */
.grille {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 34em) {
  .grille--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 48em) {
  .grille {
    gap: 1.5rem;
  }

  .grille--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grille--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62em) {
  .grille--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Duo texte + image */
.duo {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 56.25em) {
  .duo {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .duo--image-gauche > .duo__media {
    order: -1;
  }
}

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--r-m);
  font-family: var(--font-corps);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn svg {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

.btn--primaire {
  background: var(--terracotta-fonce);
  border-color: var(--terracotta-fonce);
  color: var(--blanc);
}

.btn--primaire:hover {
  background: #8a3f2f;
  border-color: #8a3f2f;
  color: var(--blanc);
}

.btn--secondaire {
  background: transparent;
  border-color: var(--vert);
  color: var(--vert);
}

.btn--secondaire:hover {
  background: var(--vert);
  color: var(--creme);
}

.btn--clair {
  background: var(--creme);
  border-color: var(--creme);
  color: var(--vert);
}

.btn--clair:hover {
  background: var(--blanc);
  border-color: var(--blanc);
  color: var(--vert-sombre);
}

.btn--contour-clair {
  background: transparent;
  border-color: rgb(245 242 234 / 55%);
  color: var(--creme);
}

.btn--contour-clair:hover {
  background: rgb(245 242 234 / 12%);
  border-color: var(--creme);
  color: var(--creme);
}

.btn--large {
  width: 100%;
}

@media (min-width: 34em) {
  .btn--large {
    width: auto;
  }
}

.groupe-btn {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-block: 1.75rem 0.85rem;
}

@media (min-width: 34em) {
  .groupe-btn {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.groupe-btn--centre {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   5. En-tête
   -------------------------------------------------------------------------- */

.entete {
  position: relative;
  z-index: 20;
  background: var(--creme);
  border-bottom: var(--filet);
}

.entete__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}

.marque {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--vert);
  text-decoration: none;
  font-family: var(--font-titre);
  font-weight: 600;
  line-height: 1.15;
}

.marque:hover {
  color: var(--vert);
}

.marque img {
  width: 2.5rem;
  height: 2.5rem;
}

.marque__nom {
  display: block;
  font-size: 1.0625rem;
}

.marque__role {
  display: block;
  font-family: var(--font-corps);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--anthracite-doux);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 56.25em) {
  .nav {
    display: flex;
  }
}

.nav a:not(.btn) {
  color: var(--anthracite);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--terracotta-fonce);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.nav .btn {
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9375rem;
}

.nav .btn:hover {
  text-decoration: none;
  color: var(--blanc);
}

/* En-tête réduit des pages de campagne : le logo n'est pas cliquable et
   la navigation se limite à la prise de rendez-vous. */
.entete--conversion .marque {
  cursor: default;
}

.entete--conversion .nav {
  display: flex;
}

.entete--conversion .nav a:not(.btn) {
  display: none;
}

@media (max-width: 26em) {
  .entete--conversion .nav .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   6. Héros
   -------------------------------------------------------------------------- */

.heros {
  padding-block: 2.75rem var(--section-y);
  background: var(--creme);
}

@media (min-width: 56.25em) {
  .heros {
    padding-block: 4rem;
  }
}

.heros__grille {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 56.25em) {
  .heros__grille {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 3.5rem;
  }
}

.heros__media {
  position: relative;
  order: -1;
}

@media (min-width: 56.25em) {
  .heros__media {
    order: 0;
  }
}

.heros__media img {
  width: 100%;
  border-radius: var(--r-l);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 22%;
}

@media (min-width: 56.25em) {
  .heros__media img {
    aspect-ratio: 5 / 6;
  }
}

.heros h1 {
  margin-bottom: 0.5em;
}

.heros__accroche {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--anthracite-doux);
}

/* Pastille de disponibilité */
.pastille {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  padding: 0.4rem 0.9rem;
  background: var(--creme-fonce);
  border: var(--filet);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--vert);
}

.pastille__point {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--vert);
}

/* Bandeau d'identité posé sous le héros */
.credit-heros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: var(--filet);
  font-size: 0.875rem;
  color: var(--anthracite-doux);
}

/* --------------------------------------------------------------------------
   7. Preuve sociale
   -------------------------------------------------------------------------- */

.note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.etoiles {
  display: inline-flex;
  gap: 0.1rem;
  color: var(--laiton-fonce);
}

.section--vert .etoiles {
  color: var(--laiton-clair);
}

.etoiles svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentcolor;
}

.note__score {
  font-weight: 600;
  color: var(--anthracite);
}

.note__source {
  color: var(--anthracite-doux);
}

.section--vert .note__score {
  color: var(--creme);
}

.section--vert .note__source {
  color: rgb(245 242 234 / 78%);
}

/* --------------------------------------------------------------------------
   8. Cartes
   -------------------------------------------------------------------------- */

.carte {
  padding: 1.5rem;
  background: var(--blanc);
  border: var(--filet);
  border-radius: var(--r-l);
}

@media (min-width: 48em) {
  .carte {
    padding: 1.75rem;
  }
}

.carte h3 {
  margin-bottom: 0.4rem;
}

.carte p {
  font-size: 0.9375rem;
  color: var(--anthracite-doux);
}

.carte--creme {
  background: var(--creme);
}

.carte--vert {
  background: var(--vert);
  border-color: transparent;
  color: var(--creme);
}

.carte--vert h3 {
  color: var(--creme);
}

.carte--vert p {
  color: rgb(245 242 234 / 85%);
}

.carte__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  background: var(--creme-fonce);
  border-radius: var(--r-m);
  color: var(--vert);
}

.carte__icone svg {
  width: 1.4rem;
  height: 1.4rem;
}

.carte--vert .carte__icone {
  background: rgb(245 242 234 / 14%);
  color: var(--creme);
}

/* Encadré fort */
.encadre {
  padding: 1.75rem;
  background: var(--vert);
  border-radius: var(--r-l);
  color: var(--creme);
  font-family: var(--font-titre);
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

@media (min-width: 48em) {
  .encadre {
    padding: 2.25rem;
  }
}

/* --------------------------------------------------------------------------
   9. Étapes numérotées
   -------------------------------------------------------------------------- */

.etapes {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.etape {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.15rem;
  align-items: start;
}

.etape::before {
  counter-increment: etape;
  content: counter(etape, decimal-leading-zero);
  padding-top: 0.15rem;
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--noyer);
  line-height: 1;
}

.section--vert .etape::before {
  color: var(--laiton-clair);
}

.etape h3 {
  margin-bottom: 0.3rem;
}

.etape p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--anthracite-doux);
}

.section--vert .etape p {
  color: rgb(245 242 234 / 84%);
}

/* --------------------------------------------------------------------------
   10. Liste à coches
   -------------------------------------------------------------------------- */

.coches {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.coches li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.9375rem;
}

.coches svg {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  color: var(--vert);
}

.section--vert .coches svg {
  color: var(--laiton);
}

/* --------------------------------------------------------------------------
   11. Témoignages
   -------------------------------------------------------------------------- */

.avis {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--blanc);
  border: var(--filet);
  border-radius: var(--r-l);
}

@media (min-width: 48em) {
  .avis {
    padding: 1.75rem;
  }
}

.avis__entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.avis__auteur {
  font-weight: 600;
  font-size: 0.9375rem;
}

.avis__date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--anthracite-doux);
}

.avis__motif {
  flex: none;
  padding: 0.2rem 0.7rem;
  background: var(--creme-fonce);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vert);
}

.avis blockquote {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--anthracite-doux);
}

.avis blockquote p::before {
  content: "\201C";
}

.avis blockquote p::after {
  content: "\201D";
}

/* Citation mise en avant */
.citation {
  max-width: 46rem;
  margin-inline: auto;
  padding-left: 1.25rem;
  border-left: 3px solid var(--laiton);
  font-family: var(--font-titre);
  font-size: clamp(1.2rem, 1.05rem + 0.9vw, 1.6rem);
  font-weight: 600;
  line-height: 1.45;
}

@media (min-width: 48em) {
  .citation {
    padding-left: 2rem;
  }
}

.citation cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-corps);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  color: var(--anthracite-doux);
}

.section--vert .citation cite {
  color: rgb(245 242 234 / 78%);
}

/* --------------------------------------------------------------------------
   12. Chiffres clés
   -------------------------------------------------------------------------- */

.chiffres {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 62em) {
  .chiffres {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.chiffre {
  padding: 1.35rem 1rem;
  background: rgb(245 242 234 / 6%);
  border: var(--filet-clair);
  border-radius: var(--r-l);
  text-align: center;
}

.chiffre__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--laiton-clair);
}

.chiffre__valeur {
  display: block;
  margin-block: 0.35rem 0.2rem;
  font-family: var(--font-titre);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
}

.chiffre__note {
  display: block;
  font-size: 0.8125rem;
  color: rgb(245 242 234 / 85%);
}

.chiffres--trois {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 48em) {
  .chiffres--trois {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Variante sur fond clair */
.chiffres--clair .chiffre {
  background: var(--blanc);
  border: var(--filet);
}

.chiffres--clair .chiffre__label {
  color: var(--noyer);
}

.chiffres--clair .chiffre__valeur {
  color: var(--vert);
}

.chiffres--clair .chiffre__note {
  color: var(--anthracite-doux);
}

/* --------------------------------------------------------------------------
   13. Galerie à défilement (sans JS)
   -------------------------------------------------------------------------- */

.galerie {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 1rem;
  padding-bottom: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--laiton) var(--creme-fonce);
}

@media (min-width: 48em) {
  .galerie {
    grid-auto-columns: 42%;
    gap: 1.25rem;
  }
}

@media (min-width: 64em) {
  .galerie {
    grid-auto-columns: 30%;
  }
}

.galerie figure {
  margin: 0;
  scroll-snap-align: start;
}

.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-l);
}

.galerie figcaption {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--anthracite-doux);
}

.section--vert .galerie figcaption {
  color: rgb(245 242 234 / 78%);
}

/* --------------------------------------------------------------------------
   14. FAQ — accordéon HTML natif
   -------------------------------------------------------------------------- */

.faq {
  border-top: var(--filet);
}

.faq details {
  border-bottom: var(--filet);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.15rem;
  font-family: var(--font-corps);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.25rem;
  border-right: 2px solid var(--terracotta-fonce);
  border-bottom: 2px solid var(--terracotta-fonce);
  transform: rotate(45deg) translate(-0.15rem, -0.15rem);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-0.2rem, -0.2rem);
}

.faq summary:hover {
  color: var(--terracotta-fonce);
}

.faq__reponse {
  padding-bottom: 1.35rem;
  font-size: 0.9375rem;
  color: var(--anthracite-doux);
}

.faq__reponse p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   15. Tarifs / offres
   -------------------------------------------------------------------------- */

.offres {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48em) {
  .offres {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }
}

.offre {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.75rem;
  background: var(--blanc);
  border: var(--filet);
  border-radius: var(--r-l);
}

@media (min-width: 48em) {
  .offre {
    padding: 2.25rem;
  }
}

.offre--vedette {
  border: 2px solid var(--vert);
}

.offre__badge {
  position: absolute;
  top: -0.8rem;
  left: 1.75rem;
  padding: 0.25rem 0.8rem;
  background: var(--vert);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--creme);
}

.offre p {
  font-size: 0.9375rem;
  color: var(--anthracite-doux);
}

/* Déclarés après `.offre p` : ces deux classes doivent l'emporter sur elle. */
p.offre__nom {
  font-family: var(--font-corps);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--noyer);
  margin-bottom: 0.5rem;
}

p.offre__prix {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-titre);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  color: var(--vert);
}

.offre__periode {
  font-family: var(--font-corps);
  font-size: 1rem;
  font-weight: 500;
  color: var(--anthracite-doux);
}

.offre .btn {
  margin-top: auto;
  width: 100%;
}

/* --------------------------------------------------------------------------
   16. Oui / Non
   -------------------------------------------------------------------------- */

.verdict {
  padding: 1.5rem;
  border-radius: var(--r-l);
  border: var(--filet);
  background: var(--blanc);
}

@media (min-width: 48em) {
  .verdict {
    padding: 1.85rem;
  }
}

.verdict__titre {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-titre);
  font-size: 1.25rem;
  font-weight: 600;
}

.verdict--oui {
  border-left: 4px solid var(--vert);
}

.verdict--oui .verdict__titre {
  color: var(--vert);
}

.verdict--non {
  border-left: 4px solid var(--noyer);
}

.verdict--non .verdict__titre {
  color: var(--noyer);
}

.verdict p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--anthracite-doux);
}

/* --------------------------------------------------------------------------
   17. Bloc passerelle (accueil → Espace Autonomie)
   -------------------------------------------------------------------------- */

.passerelle {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  background: var(--creme-fonce);
  border: var(--filet);
  border-radius: var(--r-l);
}

@media (min-width: 48em) {
  .passerelle {
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    padding: 2.25rem 2.5rem;
  }
}

.passerelle h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem);
  margin-bottom: 0.4rem;
}

.passerelle p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--anthracite-doux);
}

/* --------------------------------------------------------------------------
   18. Cabinet / coordonnées
   -------------------------------------------------------------------------- */

.infos-liste {
  display: grid;
  gap: 1.15rem;
  margin: 0;
}

.infos-liste dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--noyer);
}

.infos-liste dd {
  margin: 0.2rem 0 0;
  font-size: 0.9375rem;
}

.horaires {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.horaires th,
.horaires td {
  padding: 0.45rem 0;
  text-align: left;
  font-weight: 400;
  border-bottom: var(--filet-clair);
}

.horaires td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.horaires tr:last-child th,
.horaires tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   19. Pied de page
   -------------------------------------------------------------------------- */

.pied {
  padding-block: 3.25rem 2rem;
  background: var(--vert);
  color: rgb(245 242 234 / 85%);
  font-size: 0.9375rem;
}

.pied__grille {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 48em) {
  .pied__grille {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 3rem;
  }
}

.pied h2,
.pied h3 {
  font-family: var(--font-corps);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--laiton-clair);
  margin-bottom: 0.85rem;
}

.pied a {
  color: var(--creme);
  text-decoration: none;
}

.pied a:hover {
  color: var(--blanc);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.pied__marque {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pied__marque img {
  width: 2.75rem;
  height: 2.75rem;
}

.pied__nom {
  display: block;
  font-family: var(--font-titre);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--creme);
}

.pied__role {
  display: block;
  font-size: 0.8125rem;
  color: rgb(245 242 234 / 72%);
}

.pied ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pied li + li {
  margin-top: 0.5rem;
}

.pied .horaires th,
.pied .horaires td {
  color: rgb(245 242 234 / 85%);
}

.pied .horaires td {
  color: var(--creme);
}

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: var(--filet-clair);
  font-size: 0.875rem;
  color: rgb(245 242 234 / 70%);
}

.pied__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

/* --------------------------------------------------------------------------
   20. Barre d'action fixe (mobile)
   -------------------------------------------------------------------------- */

.barre-action {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem var(--gouttiere) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgb(245 242 234 / 96%);
  backdrop-filter: blur(8px);
  border-top: var(--filet);
}

@media (min-width: 56.25em) {
  .barre-action {
    display: none;
  }
}

.barre-action .btn {
  flex: 1;
  min-height: 3.25rem;
  padding-inline: 1rem;
}

.barre-action .btn--secondaire {
  flex: none;
  width: 3.25rem;
  padding: 0;
}

.barre-action .btn--secondaire svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* --------------------------------------------------------------------------
   21. Pages de contenu légal
   -------------------------------------------------------------------------- */

.doc {
  max-width: var(--largeur-texte);
  margin-inline: auto;
}

.doc h2 {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: var(--filet);
  font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.75rem);
}

.doc h2:first-of-type {
  margin-top: 1.5rem;
}

.doc h3 {
  margin-top: 1.85rem;
  font-family: var(--font-corps);
  font-size: 1.0625rem;
  font-weight: 600;
}

.doc li {
  margin-bottom: 0.4rem;
}

.doc address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   22. Sommaire de module (Espace Autonomie)
   -------------------------------------------------------------------------- */

.sommaire {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: chapitre;
}

.sommaire li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding-block: 0.7rem;
  font-size: 0.9375rem;
  border-bottom: var(--filet);
}

.sommaire li:last-child {
  border-bottom: 0;
}

.sommaire li::before {
  counter-increment: chapitre;
  content: counter(chapitre, decimal-leading-zero);
  font-family: var(--font-titre);
  font-weight: 600;
  color: var(--noyer);
}

.sommaire__duree {
  display: block;
  font-size: 0.8125rem;
  color: var(--anthracite-doux);
}

/* Extrait de script, pour montrer le ton */
.extrait {
  padding: 1.75rem;
  background: var(--blanc);
  border: var(--filet);
  border-left: 3px solid var(--laiton);
  border-radius: var(--r-l);
}

@media (min-width: 48em) {
  .extrait {
    padding: 2.25rem 2.5rem;
  }
}

.extrait p {
  font-family: var(--font-titre);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}

.extrait p + p {
  font-family: var(--font-corps);
  font-size: 1rem;
  font-weight: 400;
  color: var(--anthracite-doux);
}

.extrait__source {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-corps);
  font-size: 0.8125rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--noyer);
}

/* --------------------------------------------------------------------------
   23. Page en préouverture
   -------------------------------------------------------------------------- */

.bandeau-avant {
  padding-block: 0.85rem;
  background: var(--vert);
  color: var(--creme);
  text-align: center;
}

.bandeau-avant p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.bandeau-avant strong {
  color: var(--laiton-clair);
  font-weight: 600;
}

/* Jalon d'ouverture : la même boîte qu'un bouton, mais rien à cliquer. */
.jalon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  background: var(--creme-fonce);
  border: 2px dashed rgb(176 138 79 / 55%);
  border-radius: var(--r-m);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--vert);
}

.jalon svg {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  color: var(--noyer);
}

.section--vert .jalon {
  background: rgb(245 242 234 / 8%);
  border-color: rgb(227 200 143 / 55%);
  color: var(--creme);
}

.section--vert .jalon svg {
  color: var(--laiton-clair);
}

.offre .jalon {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   24. Bandeau de consentement aux cookies
   -------------------------------------------------------------------------- */

.cookies {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  background: var(--creme);
  border-top: 2px solid var(--vert);
  box-shadow: 0 -6px 24px rgb(51 58 64 / 12%);
  padding: 1rem var(--gouttiere) calc(1rem + env(safe-area-inset-bottom));
}

.cookies__inner {
  max-width: var(--largeur-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 56.25em) {
  .cookies__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.cookies__texte {
  margin: 0;
  max-width: 48rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--anthracite);
}

.cookies__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookies .btn {
  min-height: 2.75rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.9375rem;
}

.cookies__actions .btn {
  flex: 1;
}

@media (min-width: 34em) {
  .cookies__actions .btn {
    flex: none;
  }
}

/* Tant que le bandeau est visible, la barre d'action mobile s'efface pour ne
   pas se superposer à lui. */
body.cookies-visibles .barre-action {
  display: none;
}

/* Lien « Gérer les cookies » posé dans le pied de page */
.lien-cookies {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: var(--creme);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.lien-cookies:hover {
  color: var(--blanc);
}
