/* ============================================================
   Cabinet Jeanne Bouteiller — Masseur-Kinésithérapeute, Paris 16e
   « Sport & Périnée — Santé de la femme active »
   Identité : arche plein cintre · crème / sauge / terracotta
   Fondation technique : reset + accessibilité (tronc commun),
   identité propre par variables CSS.
   v. 2026-08-17
   ============================================================ */

/* ---------- 1. Polices auto-hébergées (woff2 variables, OFL) ---------- */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-wght-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-ext-wght-normal.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-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-wght-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-ext-wght-normal.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-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-wght-italic.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-ext-wght-italic.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-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. Variables — charte issue des locaux ---------- */

:root {
  /* Palette (dérivée des arches peintes du cabinet) */
  --creme: #F1EAE0;          /* fond général */
  --creme-clair: #FAF6EF;    /* fonds de cartes */
  --sauge: #A8B29F;          /* primaire identitaire */
  --sauge-pale: #E4E8DF;     /* aplats doux */
  --terracotta: #B9714F;     /* accent décoratif uniquement */
  --terracotta-fonce: #9C5537; /* liens & CTA — AA sur crème (4,7:1) */
  --beige-rose: #D9BCA8;
  --chene: #C1946A;          /* filets */
  --ardoise: #4F5865;        /* texte secondaire, footer */
  --ardoise-fonce: #434A56;
  --anthracite: #2E2E2E;     /* texte, arches sombres */

  --texte: var(--anthracite);
  --texte-2: var(--ardoise);
  --lien: var(--terracotta-fonce);

  /* Typographies */
  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Trebuchet MS', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Rythme */
  --container: 71.25rem;     /* 1140 px */
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(3rem, 8vw, 5.5rem);
  --radius: 0.875rem;
  --arch: 62.4375rem;        /* rayon « plein cintre » : 999px */

  --transition: 180ms ease;
}

/* ---------- 3. Reset ---------- */

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

* { margin: 0; }

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

body {
  min-height: 100dvh;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

address { font-style: normal; }

p, h1, h2, h3, h4 { overflow-wrap: break-word; }

ul[class], ol[class] { list-style: none; padding: 0; }

/* ---------- 4. Accessibilité ---------- */

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--anthracite);
  color: var(--creme);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

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

:focus-visible {
  outline: 3px solid var(--terracotta-fonce);
  outline-offset: 2px;
  border-radius: 2px;
}
.site-footer :focus-visible { outline-color: var(--beige-rose); }

@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;
  }
}

/* ---------- 5. Typographie ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--anthracite);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 650; }

p + p { margin-top: 0.9em; }

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

strong { font-weight: 650; }

.lead {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  color: var(--texte-2);
  max-width: 42em;
}

/* ---------- 6. Structure ---------- */

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

main { flex: 1; }

.section { padding-block: var(--section-y); }
.section-alt { background: var(--sauge-pale); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

.section-head { max-width: 46em; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { margin-top: 0.75rem; color: var(--texte-2); }

/* ---------- 7. L'arche — élément signature (emploi codifié) ---------- */

/* 7a. Cadre photo plein cintre (hero, galerie — 1 par page) */
.arch-frame {
  border-radius: var(--arch) var(--arch) 0 0;
  overflow: hidden;
  background: var(--sauge-pale);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }

/* 7b. Chapeau de section : petit arc terracotta (sections clés uniquement) */
.kicker {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-fonce);
  margin-bottom: 0.85rem;
}
.kicker::before {
  content: "";
  flex: none;
  width: 1.65rem;
  height: 0.95rem;
  border: 2px solid var(--terracotta);
  border-bottom: 0;
  border-radius: var(--arch) var(--arch) 0 0;
  transform: translateY(-0.1rem);
}

/* Variante sobre, sans arc (autres sections) */
.kicker-plain::before { border-radius: 0; height: 2px; border: 0; background: var(--chene); align-self: center; transform: none; }

/* ---------- 8. Boutons ---------- */

.btn {
  display: inline-block;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary {
  background: var(--terracotta-fonce);
  color: var(--creme-clair);
}
.btn-primary:hover { background: var(--anthracite); }
.btn-secondary {
  background: transparent;
  color: var(--anthracite);
  border-color: var(--anthracite);
}
.btn-secondary:hover { background: var(--anthracite); color: var(--creme); }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--creme) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--anthracite) 10%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.25;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
  color: var(--anthracite);
}
.brand-sub {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--texte-2);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--anthracite);
  margin-block: 0.3rem;
  transition: transform var(--transition), opacity var(--transition);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.6vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.btn) {
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--anthracite);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  border-bottom-color: var(--terracotta);
}
.site-nav .btn { padding: 0.55rem 1.15rem; font-size: 0.95rem; }

@media (max-width: 72em) {
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(0.36rem) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-0.36rem) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--creme);
    border-bottom: 1px solid color-mix(in srgb, var(--anthracite) 12%, transparent);
    display: none;
    box-shadow: 0 18px 30px -18px rgba(46, 46, 46, 0.25);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
  }
  .site-nav li { border-bottom: 1px solid color-mix(in srgb, var(--anthracite) 8%, transparent); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a:not(.btn) { display: block; padding: 0.8rem 0.25rem; border-bottom: 0; }
  .site-nav .nav-cta { padding-top: 0.9rem; }
  .site-nav .btn { display: block; text-align: center; }
}

/* ---------- 10. Hero ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 5rem) var(--section-y); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy .lead { margin-top: 1.1rem; }
.hero-copy .btn-group { margin-top: 1.8rem; }
.hero-meta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.92rem;
  color: var(--texte-2);
}
.hero-meta li { display: flex; align-items: center; gap: 0.45rem; }
.hero-meta li::before {
  content: "";
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  background: var(--sauge);
}
.hero-figure { margin: 0; }
.hero-figure .arch-frame { aspect-ratio: 4 / 5; }
.hero-tel { white-space: nowrap; }

@media (max-width: 48em) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 22rem; margin-inline: auto; width: 100%; }
  .hero-figure .arch-frame { aspect-ratio: 4 / 4.6; }
}

/* Hero secondaire (pages intérieures, texte seul) */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero .lead { margin-top: 1rem; }

/* ---------- 11. Cartes & grilles ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }

@media (max-width: 64em) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40em) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--creme-clair);
  border: 1px solid color-mix(in srgb, var(--chene) 38%, transparent);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.card h3 a {
  color: var(--anthracite);
  text-decoration: none;
}
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; transition: border-color var(--transition), transform var(--transition); }
.card:hover { border-color: var(--terracotta); transform: translateY(-2px); }
.card p { color: var(--texte-2); font-size: 0.99rem; }
.card-more {
  margin-top: auto;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--terracotta-fonce);
}

/* Liste à puces sobre */
.list {
  display: grid;
  gap: 0.55rem;
  padding-left: 0;
}
.list li {
  list-style: none;
  padding-left: 1.35rem;
  position: relative;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.55rem;
  height: 0.34rem;
  border: 2px solid var(--sauge);
  border-bottom: 0;
  border-radius: var(--arch) var(--arch) 0 0;
}

/* Étapes (déroulement de séance) */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.steps li { list-style: none; display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; align-items: start; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 650;
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--sauge-pale);
  color: var(--anthracite);
  border: 1px solid var(--sauge);
}
.steps h3 { margin-bottom: 0.2rem; }
.steps p { color: var(--texte-2); font-size: 0.99rem; }

/* ---------- 12. Encarts ---------- */

.notice {
  border-left: 4px solid var(--sauge);
  background: var(--creme-clair);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.4rem;
  margin-block: 1.75rem;
}
.notice-terracotta { border-left-color: var(--terracotta); }
.notice p { font-size: 0.99rem; color: var(--texte-2); }
.notice p:first-child { margin-top: 0; }
.notice strong { color: var(--anthracite); }

/* ---------- 13. Tableaux (horaires) ---------- */

.hours { border-collapse: collapse; width: 100%; max-width: 26rem; }
.hours caption { text-align: left; font-weight: 650; margin-bottom: 0.6rem; font-family: var(--font-display); }
.hours th, .hours td { text-align: left; padding: 0.42rem 0; border-bottom: 1px solid color-mix(in srgb, var(--anthracite) 12%, transparent); }
.hours th { font-weight: 600; padding-right: 1.5rem; }
.hours td { color: var(--texte-2); }
.site-footer .hours th, .site-footer .hours td { border-bottom-color: color-mix(in srgb, var(--creme) 18%, transparent); color: var(--creme); }

/* ---------- 14. Galerie ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.9rem, 2.5vw, 1.4rem); }
@media (max-width: 48em) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 0.88rem; color: var(--texte-2); margin-top: 0.45rem; }

/* ---------- 15. Formulaires ---------- */

.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.form label { font-weight: 650; display: block; margin-bottom: 0.35rem; }
.form input, .form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--anthracite) 30%, transparent);
  border-radius: 0.5rem;
  background: var(--creme-clair);
}
.form input:focus-visible, .form textarea:focus-visible {
  outline: 2px solid var(--terracotta-fonce);
  outline-offset: 0;
  border-color: var(--terracotta-fonce);
}
.form-help { font-size: 0.9rem; color: var(--texte-2); margin-top: 0.3rem; }
.form-notice {
  font-size: 0.93rem;
  color: var(--texte-2);
  border-left: 3px solid var(--terracotta);
  padding-left: 0.9rem;
}

/* ---------- 16. Pied de page ---------- */

.site-footer {
  background: var(--ardoise);
  color: var(--creme);
  margin-top: var(--section-y);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 48em) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h2 {
  color: var(--creme);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.site-footer a { color: var(--creme); }
.site-footer a:hover { color: var(--beige-rose); }
.site-footer address { font-style: normal; }
.footer-nav { display: grid; gap: 0.45rem; }
.footer-note { font-size: 0.92rem; color: color-mix(in srgb, var(--creme) 78%, var(--ardoise)); margin-top: 0.9rem; }

.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--creme) 16%, transparent);
  padding-block: 1.1rem;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  color: color-mix(in srgb, var(--creme) 82%, var(--ardoise));
}

/* ---------- 17. Divers ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  border: 1px solid var(--sauge);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  font-size: 0.9rem;
  color: var(--anthracite);
  background: var(--creme-clair);
}

.figure-note { font-size: 0.88rem; color: var(--texte-2); margin-top: 0.5rem; }

/* Figure 16:9 arrondie (visuels de pages intérieures, hors arche) */
.figure-rounded {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sauge-pale);
}
.figure-rounded img { width: 100%; height: 100%; object-fit: cover; }

/* Encart rendez-vous */
.rdv h2 { font-size: 1.35rem; margin-bottom: 0.45rem; }
.rdv .btn-group { margin-top: 1rem; }
.rdv p { color: var(--texte); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 48em) { .two-col { grid-template-columns: 1fr; } }

.prose > * { max-width: 48em; }
.prose h2 { margin-top: 2.2rem; margin-bottom: 0.7rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.45rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }

.anchor-offset { scroll-margin-top: 5.5rem; }

/* ---------- 18. Impression ---------- */

@media print {
  .site-header, .site-footer, .nav-toggle, .btn, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
}
