/* ==========================================================
   Pierre Le Bras — Ostéopathe D.O. — Indre & Nantes
   Feuille de style unique pour les 3 pages.
   ========================================================== */

/* ---------- 1. Jetons de design ---------- */
:root {
  --encre:      #0F2E2C;
  --estuaire:   #24605E;
  --vase:       #6E8F84;
  --brume:      #E7ECE9;
  --papier:     #FCFDFC;
  --sable:      #DDCDAE;
  --sable-pale: #F2EAD9;
  --trait:      rgba(15, 46, 44, 0.14);

  --display: "Fraunces", Georgia, serif;
  --texte:   "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --large: 1180px;
  --rythme: clamp(3.5rem, 7vw, 6.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--brume);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--estuaire); }

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

.contenu {
  width: 100%;
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  background: var(--encre);
  color: var(--papier);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.saut-contenu:focus { left: 1rem; top: 1rem; }

/* ---------- 3. Typographie ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-variation-settings: "SOFT" 20, "WONK" 0; }

p { margin: 0 0 1.1em; max-width: 62ch; }

.chapeau {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--estuaire);
  line-height: 1.55;
}

.surtitre {
  font-family: var(--texte);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vase);
  margin: 0 0 1rem;
  display: block;
}

/* ---------- 4. Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--texte);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--encre);
  background: var(--encre);
  color: var(--papier);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.bouton:hover { background: var(--estuaire); border-color: var(--estuaire); transform: translateY(-2px); }

.bouton--clair { background: transparent; color: var(--encre); }
.bouton--clair:hover { background: var(--encre); color: var(--papier); border-color: var(--encre); }

.bouton--pleine { width: 100%; justify-content: center; }

.bouton::after { content: "→"; font-size: 1.05em; line-height: 1; }

/* ---------- 5. En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(231, 236, 233, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
  flex-wrap: wrap;
}

.marque {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--encre);
  line-height: 1.2;
}
.marque span {
  display: block;
  font-family: var(--texte);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vase);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); flex-wrap: wrap; }
.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--estuaire); }
.nav .bouton { border-bottom: 2px solid var(--encre); font-size: 0.85rem; padding: 0.7rem 1.15rem; }
.nav .bouton:hover { border-bottom-color: var(--estuaire); }

/* ---------- 6. Sections ---------- */
.section { padding-block: var(--rythme); }
.section--sable { background: var(--sable-pale); }
.section--encre { background: var(--encre); color: var(--brume); }
.section--encre h2 { color: var(--papier); }
.section--encre .surtitre { color: var(--sable); }
.section--encre a { color: var(--sable); }

.section__entete { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- 7. Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }

.hero__grille {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__portrait {
  position: relative;
  border-radius: 8px 8px 120px 8px;
  overflow: hidden;
  background: var(--sable);
  aspect-ratio: 1 / 1.1;
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.hero h1 { margin-bottom: 0.3em; }

.hero__lieux {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-variation-settings: "SOFT" 30, "WONK" 1;
  color: var(--estuaire);
  margin: 0 0 1.4rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.8rem; }

.hero__note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--vase);
  max-width: 40ch;
}

/* ---------- 8. Signature : le trait des deux rivières ---------- */
.rivieres { display: block; width: 100%; height: auto; }
.rivieres path { fill: none; stroke-width: 1.5; }
.rivieres .loire { stroke: var(--sable); }
.rivieres .erdre { stroke: var(--vase); }
.rivieres text {
  font-family: var(--texte);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--vase);
  font-weight: 600;
}

/* ---------- 9. Diptyque des cabinets ---------- */
.diptyque {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.cabinet {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 6px 6px 6px 48px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
}
.cabinet--loire { border-top: 6px solid var(--sable); }
.cabinet--erdre { border-top: 6px solid var(--vase); }

.cabinet__vignette {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 9;
  background: var(--brume);
}
.cabinet__vignette img { width: 100%; height: 100%; object-fit: cover; }

.cabinet h3 { margin-bottom: 0.35em; }

.cabinet__adresse {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.cabinet__adresse a { color: var(--encre); }

.cabinet__zones {
  font-size: 0.92rem;
  color: var(--estuaire);
  border-top: 1px solid var(--trait);
  padding-top: 1.1rem;
  margin-bottom: 1.5rem;
}

.cabinet .bouton { margin-top: auto; }

/* ---------- 10. Grille de cartes (publics, motifs) ---------- */
.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.carte {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 4px;
  padding: 1.75rem;
}
.carte h3 { margin-bottom: 0.5em; }
.carte p { font-size: 0.97rem; margin-bottom: 0; color: #2C4B48; }

.section--encre .carte {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}
.section--encre .carte h3 { color: var(--papier); }
.section--encre .carte p { color: rgba(231, 236, 233, 0.85); }

/* ---------- 11. Étapes numérotées (vraie séquence) ---------- */
.etapes { counter-reset: etape; display: grid; gap: 0; }

.etape {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: 1.75rem;
  border-top: 1px solid var(--trait);
}
.etape:last-child { border-bottom: 1px solid var(--trait); }

.etape::before {
  content: counter(etape, decimal-leading-zero);
  font-family: var(--display);
  font-size: 1.6rem;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  color: var(--vase);
  line-height: 1;
}
.etape h3 { margin-bottom: 0.4em; }
.etape p { margin-bottom: 0; }

/* ---------- 12. Tarif ---------- */
.tarif {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 6px 48px 6px 6px;
  padding: clamp(1.75rem, 4vw, 3rem);
}
.tarif__montant {
  font-family: var(--display);
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  line-height: 0.9;
  color: var(--estuaire);
}
.tarif__detail { flex: 1 1 22rem; }
.tarif__detail p:last-child { margin-bottom: 0; }

/* ---------- 13. Questions ---------- */
.question {
  border-top: 1px solid var(--trait);
  padding-block: 1.4rem;
}
.question:last-of-type { border-bottom: 1px solid var(--trait); }
.question summary {
  font-family: var(--display);
  font-size: 1.15rem;
  font-variation-settings: "SOFT" 20, "WONK" 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: "+";
  font-family: var(--texte);
  font-size: 1.6rem;
  color: var(--vase);
  line-height: 1;
  flex-shrink: 0;
}
.question[open] summary::after { content: "–"; }
.question p { margin: 1rem 0 0; }

/* ---------- 14. Bande de rappel ---------- */
.rappel { text-align: center; }
.rappel h2 { margin-inline: auto; max-width: 22ch; }
.rappel p { margin-inline: auto; }
.rappel__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 2rem; }
.section--encre .bouton { background: var(--sable); border-color: var(--sable); color: var(--encre); }
.section--encre .bouton:hover { background: var(--papier); border-color: var(--papier); }

/* ---------- 15. Pied de page ---------- */
.pied {
  background: var(--encre);
  color: rgba(231, 236, 233, 0.8);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.92rem;
}
.pied a { color: var(--sable); }
.pied__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.pied h3 { color: var(--papier); font-size: 1rem; margin-bottom: 0.8em; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 0.5rem; }
.pied__bas {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(231, 236, 233, 0.6);
}

/* ---------- 16. Petits écrans ---------- */
@media (max-width: 860px) {
  .hero__grille { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 20rem; border-radius: 8px 8px 80px 8px; }
  .entete__interieur { justify-content: center; text-align: center; }
  .nav { justify-content: center; gap: 1rem 1.25rem; }
  .etape { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- 17. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
