/* ============================================================================
   base.css — Kin & Masso (Isabelle Graillot) · fondation des 4 variations
   18 septembre 2026 · YannCode Solutions

   NEUTRE VOLONTAIREMENT : blanc, anthracite, gris. Aucun vert, aucun beige.
   Les couleurs de marque vivent dans site/<v>/css/theme.css, qui redéfinit
   les 5 variables ci-dessous — et rien d'autre n'est obligatoire.

     --fond      fond de page
     --texte     texte courant
     --accent    couleur principale (corail du logo chez la plupart des thèmes)
     --accent-2  couleur secondaire (bleu du logo)
     --pale      fond des blocs doux (cartes, tarifs)

   Polices SYSTÈME (jamais Google Fonts). Un thème peut charger un .woff2
   local depuis ../commun/fonts/ s'il en a besoin.
   ponytail: un seul fichier, pas de préprocesseur, pas de build CSS.
   ============================================================================ */

/* ---------- 1. Remise à zéro ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 2. Variables (un thème les redéfinit) ---------- */
:root {
  --fond: #ffffff;
  --texte: #22262b;
  --accent: #3d4249;
  --accent-2: #5c6570;
  --pale: #f4f5f6;

  --bord: rgba(34, 38, 43, .14);
  --largeur: 68rem;
  --gouttiere: 1.25rem;
  --rayon: .5rem;
  --pile: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pile-titre: var(--pile);
}

/* ---------- 3. Typographie — les planchers de lisibilité ---------- */
body {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--pile);
  font-size: 1.1rem;          /* plancher desktop */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--pile-titre); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p, li { font-size: 1.1rem; }
p + p, ul + p, p + ul, p + ol { margin-top: 1rem; }
li + li { margin-top: .45rem; }
strong { font-weight: 700; }

.conteneur { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.section { padding: 3.2rem 0; }
.section + .section { border-top: 1px solid var(--bord); }
.section > .conteneur > h2 { margin-bottom: 1.2rem; }
.section h3 { margin: 1.8rem 0 .6rem; }
.section ul { margin-top: .8rem; }
.section ul li { position: relative; padding-left: 1.3rem; }
.section ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent);
}
.section a { color: var(--accent); text-underline-offset: .18em; }
.section a:hover { text-decoration: none; }

/* ---------- 4. Entête et navigation ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--fond); border-bottom: 1px solid var(--bord);
}
.entete__barre {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem 0; min-height: 3.6rem;
}
.entete__logo img { width: auto; height: 2.6rem; }
.nav__bouton {
  display: none; align-items: center; gap: .5rem;
  background: none; border: 2px solid var(--bord); border-radius: var(--rayon);
  padding: .45rem .8rem; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.nav__liste { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.1rem; }
.nav__liste a {
  display: block; padding: .45rem .2rem;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em; text-decoration: none;
}
.nav__liste a:hover, .nav__liste a[aria-current="page"] {
  color: var(--accent); text-decoration: underline; text-underline-offset: .3em;
}

/* Sous-menu Massothérapie — survol au clavier et à la souris, sans JS */
.nav__sous { position: relative; }
.nav__sous > ul {
  position: absolute; left: -.8rem; top: 100%; min-width: 15rem;
  display: none; flex-direction: column; gap: 0;
  padding: .5rem .8rem .7rem; background: var(--fond);
  border: 1px solid var(--bord); border-radius: var(--rayon);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.nav__sous:hover > ul, .nav__sous:focus-within > ul { display: flex; }

/* ---------- 5. Héros ---------- */
.hero { position: relative; }
.hero__image img { width: 100%; max-height: 32rem; object-fit: cover; object-position: center 35%; }
.hero__texte { padding: 2.4rem 0 2rem; }
.hero__texte p { font-size: 1.2rem; max-width: 46rem; margin-top: .7rem; }
.hero h1 { max-width: 22ch; }

/* ---------- 6. Cartes de service (ce qu'elle a aimé de la démo) ---------- */
.cartes {
  display: grid; gap: 1.4rem; margin-top: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.carte {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--pale); border: 1px solid var(--bord); border-radius: var(--rayon);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.carte:hover, .carte:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .13); }
.carte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* carte sans photo utilisable (photo N&B écartée, service neuf) : aplat, jamais une image devinée */
.carte__vide { width: 100%; aspect-ratio: 4 / 3; background: var(--pale); border-bottom: 3px solid var(--accent-2); }
.carte__corps { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.carte__corps h3 { margin: 0; font-size: 1.25rem; }
.carte__corps p { font-size: 1rem; flex: 1; }
.carte__bouton {
  align-self: flex-start; margin-top: .3rem;
  font-size: 1rem; font-weight: 700; color: var(--accent);
}
.carte:hover .carte__bouton { text-decoration: underline; }

/* ---------- 7. Témoignages (tous visibles, plus de carrousel) ---------- */
.temoignages { display: grid; gap: 1.1rem; margin-top: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.temoignage {
  background: var(--pale); border-left: 4px solid var(--accent);
  border-radius: var(--rayon); padding: 1.1rem 1.2rem;
}
.temoignage p { font-size: 1.05rem; }
.temoignage cite { display: block; margin-top: .7rem; font-style: normal; font-weight: 700; font-size: 1rem; }

/* ---------- 8. Tarifs ---------- */
.tarifs { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.tarifs caption { text-align: left; font-size: 1rem; padding-bottom: .6rem; opacity: .85; }
.tarifs th {
  text-align: left; padding: 1.1rem .2rem .4rem; font-size: 1.05rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  border-bottom: 2px solid var(--bord);
}
.tarifs td { padding: .6rem .2rem; border-bottom: 1px solid var(--bord); font-size: 1.1rem; }
.tarifs td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }

/* ---------- 9. Figures et images de contenu ---------- */
figure { margin: 1.4rem 0; }
figure img { border-radius: var(--rayon); }
@media (min-width: 52rem) {
  figure.gauche { float: left; width: 22rem; max-width: 45%; margin: .4rem 1.8rem 1.2rem 0; }
  figure.droite { float: right; width: 22rem; max-width: 45%; margin: .4rem 0 1.2rem 1.8rem; }
}
figure.centre { margin-inline: auto; max-width: 42rem; }
figure.pleine img { width: 100%; }
.section > .conteneur::after { content: ""; display: block; clear: both; }

/* ---------- 9b. « Membre de » : logos des fédérations (22 sept. 2026) ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1.4rem 0; }
.logos__item { flex: 1 1 16rem; display: flex; flex-direction: column; align-items: center; gap: .8rem;
  padding: 1.2rem 1.4rem; border: 1px solid var(--bord); border-radius: var(--rayon);
  background: #fff; color: var(--texte); text-decoration: none; text-align: center; font-size: 1.1rem; line-height: 1.35; }
.logos__item img { width: auto; max-width: 100%; height: 4.5rem; object-fit: contain; border-radius: 0; }
.logos__item--fonce { background: var(--texte); color: #fff; }
.logos__item:hover span { text-decoration: underline; }

/* ---------- 10. Cadres « à écrire avec Isabelle » ---------- */
.cadre {
  margin: 1.4rem 0; padding: 1rem 1.2rem;
  border: 2px dashed var(--accent-2); border-radius: var(--rayon);
  background: var(--pale);
}
.cadre p { font-size: 1.05rem; }
.cadre p + p { margin-top: .6rem; }

/* ---------- 11. Coordonnées, boutons, Facebook ---------- */
.coord { display: grid; gap: .5rem; margin-top: 1rem; }
.coord a { font-weight: 700; }
.coord .note { font-size: 1rem; opacity: .9; }
.bouton {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.3rem; border: 0; border-radius: var(--rayon);
  background: var(--accent); color: #fff; font-size: 1.05rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.bouton:hover { filter: brightness(.92); }
.bouton--f { background: #1877f2; }
.bouton--f::before { content: "f"; font-weight: 900; font-size: 1.2rem; line-height: 1; }

/* ---------- 12. Formulaires (NON branchés à ce stade) ---------- */
.form { display: grid; gap: .9rem; max-width: 34rem; margin-top: 1.2rem; }
.form__groupe { display: grid; gap: .3rem; }
.form__groupe label { font-size: 1rem; font-weight: 600; }
.form__groupe input, .form__groupe select, .form__groupe textarea {
  width: 100%; padding: .6rem .7rem; font-size: 1.05rem;
  border: 1px solid var(--bord); border-radius: var(--rayon); background: #fff;
}
.form__groupe input:focus, .form__groupe select:focus, .form__groupe textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.form__groupe textarea { min-height: 7rem; resize: vertical; }
.form__consentement {
  display: flex; gap: .6rem; align-items: flex-start; font-size: 1rem; line-height: 1.4;
}
.form__consentement input { margin-top: .25rem; accent-color: var(--accent); }
.form__note {
  font-size: 1rem; font-weight: 700; padding: .55rem .8rem;
  border: 2px dashed var(--accent-2); border-radius: var(--rayon);
}
.form--enligne { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: end; max-width: 46rem; }
.form--enligne .form__note, .form--enligne .bouton { grid-column: 1 / -1; justify-self: start; }

/* ---------- 13. Pied de page + Loi 25 (:target, sans JS) ---------- */
.pied { border-top: 1px solid var(--bord); background: var(--pale); padding: 2.2rem 0 2.6rem; }
.pied__grille { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pied p, .pied li, .pied a { font-size: 1.05rem; }
.pied__liens a { font-weight: 600; }
.pied__bas { margin-top: 1.6rem; font-size: 1rem; opacity: .85; }

#confidentialite { display: none; }
#confidentialite:target { display: block; }
.legal { max-width: 47rem; }
.legal h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
.legal p { font-size: 1.1rem; line-height: 1.6; }
.legal-close { display: inline-block; margin-top: 2rem; font-weight: 700; color: var(--accent); }

/* ---------- 14. Page 5 km — corps plus grand, images alternées ---------- */
.page-5km .section p, .page-5km .section li { font-size: 1.2rem; }
/* la liste d'ancres des 12 semaines : des pastilles, pas des puces */
.ancres, #les-12-semaines ul { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
#les-12-semaines li { padding-left: 0 !important; }
#les-12-semaines li::before { display: none; }
#les-12-semaines li + li { margin-top: 0; }
.ancres a, #les-12-semaines a {
  display: block; padding: .45rem .9rem; border: 1px solid var(--bord);
  border-radius: 2rem; background: var(--pale);
  font-size: 1rem; font-weight: 700; text-decoration: none;
}
.ancres a:hover, #les-12-semaines a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 15. Accessibilité ---------- */
.saut {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.saut:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* ---------- 15b. Plancher desktop 1,1 rem sur TOUT (CLAUDE.md : corps ET éléments
   d'interface ≥ 1,1 rem, plancher absolu) — ajouté par Fable le 18 sept. au soir ;
   les thèmes ne descendent pas sous cette valeur en desktop. ---------- */
@media (min-width: 52.01rem) {
  .nav__bouton, .nav__liste a, .carte__corps p, .carte__bouton, .temoignage p,
  .temoignage cite, .tarifs caption, .tarifs th, .cadre p, .coord .note, .bouton,
  .form__groupe label, .form__groupe input, .form__groupe select, .form__groupe textarea,
  .form__consentement, .form__note, .pied p, .pied li, .pied a, .pied__bas,
  .ancres a, #les-12-semaines a { font-size: 1.1rem; }
}

/* ---------- 16. Mobile ---------- */
@media (max-width: 52rem) {
  body { font-size: 1rem; }                    /* plancher mobile */
  p, li { font-size: 1rem; }
  .section { padding: 2.4rem 0; }
  .hero__image img { max-height: 20rem; }
  .hero__texte p { font-size: 1.05rem; }
  .temoignage p { font-size: 1rem; }
  .tarifs td { font-size: 1rem; }
  .carte__corps p, .pied p, .pied li, .pied a { font-size: 1rem; }
  .nav__liste a, .form__groupe label, .ancres a { font-size: .9rem; }   /* éléments UI */
  .page-5km .section p, .page-5km .section li { font-size: 1.1rem; }

  .nav__bouton { display: inline-flex; }
  .nav__liste { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: .6rem; }
  .nav__liste li { border-top: 1px solid var(--bord); }
  .nav__liste a { padding: .8rem .2rem; font-size: 1rem; }
  .entete__barre { flex-wrap: wrap; }
  .entete[data-ouvert="oui"] .nav__liste { display: flex; }
  .nav__sous > ul { position: static; display: flex; border: 0; box-shadow: none;
    padding: 0 0 .4rem .9rem; }
}

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