/* ============================================================================
   theme.css — variation D « Dynamique » · Kin & Masso (Isabelle Graillot)
   18 septembre 2026 · YannCode Solutions

   Énergie, typo affiche, les DEUX couleurs du logo assumées. Blanc + crème
   très pâle, corail saturé en aplats et titres, bleu en pastilles-autocollants.
   Aucun vert, aucun beige, aucun sépia, aucun coin arrondi sur une photo.

   ponytail: pas de police à télécharger — site/commun/fonts/ n'existe pas,
   donc pile système en graisse 900 à la place d'Archivo Black, et Georgia
   (police système) pour le mot en italique serif. Si les .woff2 arrivent,
   il suffit de deux @font-face ici et de changer --pile-titre / --pile-serif.
   ============================================================================ */
/* Polices locales (site/commun/fonts/, copiées du chantier Joe Blow le 18 sept.) — jamais Google Fonts. */
@font-face { font-family: "Archivo Black"; src: url("../../commun/fonts/archivo-black.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../../commun/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- 1. Les couleurs ---------- */
:root {
  --fond: #ffffff;
  --texte: #22262b;              /* anthracite */
  --accent: #eb5d3e;             /* corail du logo — aplats, titres, boutons */
  --accent-2: #77b0cd;           /* bleu du logo — pastilles, surlignés */
  --pale: #fbf7f2;               /* crème très pâle (couleur de son local) */

  --corail-txt: #c03f22;         /* corail lisible en petit (5,4:1 sur blanc) */
  --bleu-txt: #2e6e8e;
  --corail-voile: rgba(235, 93, 62, .08);
  --bord: rgba(34, 38, 43, .16);
  --rayon: 0;                    /* coins DROITS partout — sauf pastilles */
  --largeur: 72rem;

  --pile: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pile-titre: "Archivo Black", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --pile-serif: Georgia, "Times New Roman", serif;
}

/* ---------- 2. Typographie affiche ---------- */
h1, h2, h3, .bloc__titre, .affiche__titre, .chiffres__nb {
  font-family: var(--pile-titre);
  font-weight: 900;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: .98; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); color: var(--corail-txt); line-height: 1.02; }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -.015em; }

/* la signature : UN mot en italique serif dans le titre */
h1 em, h2 em {
  font-family: var(--pile-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--accent);
}
h2 em { color: var(--bleu-txt); }

/* le « marqueur » bleu pâle */
.cadre strong, .section p > strong {
  background: linear-gradient(transparent 68%, rgba(119, 176, 205, .5) 68%);
  padding: 0 .12em;
}

/* ---------- 3. Rythme des sections : blanc / crème alternés ---------- */
.section + .section { border-top: 0; }
.section { padding: 4rem 0; }
main > .section:nth-of-type(even) { background: var(--pale); }
.section > .conteneur > h2 { margin-bottom: 1.4rem; }

/* ---------- 4. Entête ---------- */
.entete { border-bottom: 3px solid var(--texte); }
.entete__logo img { height: 2.9rem; }
.nav__liste a { font-weight: 700; letter-spacing: .01em; }
.nav__liste a:hover, .nav__liste a[aria-current="page"] {
  color: var(--corail-txt); text-decoration: none;
  box-shadow: inset 0 -.35em 0 rgba(235, 93, 62, .28);
}
.nav__bouton { border: 3px solid var(--texte); font-weight: 800; }
.nav__sous > ul { border: 2px solid var(--texte); box-shadow: 6px 6px 0 var(--accent-2); }

/* ---------- 5. Héros — titre géant, photo décalée à coins droits ---------- */
.hero--d { position: relative; overflow: hidden; background: var(--fond); }
.hero--d .hero__grille {
  display: grid; grid-template-columns: repeat(12, 1fr);
  align-items: center; padding: 3.4rem 0 4.6rem;
}
.hero--d .hero__mots { grid-column: 1 / 8; grid-row: 1; z-index: 1; padding-right: 1rem; } /* Fable 18 sept. : plus de chevauchement sur le titre (« blesser » était coupé à 1440) */
.hero--d .hero__photo { grid-column: 8 / 13; grid-row: 1; z-index: 2; }
.hero--d .hero__photo img {
  width: 100%; height: clamp(18rem, 34vw, 27rem);
  object-fit: cover; object-position: center 30%;
  border-radius: 0; box-shadow: -14px 14px 0 var(--accent-2);
}
.hero--d .hero__sous {
  margin-top: 1.1rem; font-size: 1.2rem; font-weight: 700;
  max-width: 38ch; color: var(--texte);
}
.hero--d h1 { max-width: none; }
.hero--texte-seul .hero__mots { grid-column: 1 / -1; }
.hero--texte-seul .hero__sous { max-width: 34ch; }
/* pages internes : le titre ne passe PAS derrière la photo (un nom à moitié caché
   se lit mal) — le chevauchement reste la signature de l'accueil seulement */
.hero--interne .hero__grille { padding: 2.8rem 0 3.6rem; column-gap: 2rem; }
.hero--interne .hero__mots { grid-column: 1 / 8; }
.hero--interne .hero__photo { grid-column: 8 / 13; }

/* pastille de localisation — la signature Clinique MT */
.pastille-lieu {
  display: inline-block; margin-bottom: 1rem;
  padding: .3rem .95rem; border-radius: 2rem;
  background: var(--accent); color: #fff;
  font-size: .9rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}

/* pastilles-autocollants rondes bleues, à cheval sur la frontière du héros */
.autocollants {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.1rem;
  width: min(100% - 2 * var(--gouttiere), var(--largeur));
  z-index: 3; display: flex; gap: .9rem;
}
.autocollants li {
  display: grid; place-content: center; text-align: center;
  width: 9.4rem; height: 9.4rem; /* 9,4 rem : le texte à 1,1 rem (plancher desktop) tient dans le rond */ border-radius: 50%;
  background: var(--accent-2); color: #14313f;
  font-size: .8rem; font-weight: 800; line-height: 1.15;
  letter-spacing: .02em; padding: .4rem;
  box-shadow: 0 6px 16px rgba(34, 38, 43, .18);
  transform: rotate(-7deg);
}
.autocollants li + li { transform: rotate(6deg); }

/* bandeau statique des raisons de venir (pas d'animation) */
.bandeau {
  background: var(--pale); border-top: 3px solid var(--texte);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.6rem;
  padding: 1rem var(--gouttiere); margin: 0;
  font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.bandeau span + span::before { content: "·"; color: var(--accent); padding-right: 1.6rem; }
@media (min-width: 52rem) { .bandeau { padding-left: 22rem; } }   /* laisse la place aux autocollants */

/* ---------- 6. Accueil — services en blocs asymétriques ---------- */
.sect-services { background: var(--fond) !important; }
.blocs { display: grid; gap: 1.8rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.8rem; }
.bloc {
  display: grid; text-decoration: none; color: inherit;
  background: var(--pale); border: 3px solid var(--texte);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bloc:hover, .bloc:focus-visible { transform: translate(-4px, -4px); box-shadow: 10px 10px 0 var(--accent); }
.bloc--grand { grid-column: 1 / -1; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.bloc:last-child { transform: translateY(2.2rem); }        /* l'asymétrie assumée */
.bloc:last-child:hover { transform: translate(-4px, 1.9rem); }
.bloc { grid-template-rows: auto 1fr; }
.bloc__photo img { width: 100%; height: 16rem; object-fit: cover; }
.bloc--grand { grid-template-rows: auto; }
.bloc--grand .bloc__photo img { height: 100%; min-height: 21rem; }
.bloc__corps { display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem 1.6rem 1.7rem; }
.bloc__titre {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.02; color: var(--corail-txt);
}
.bloc--grand .bloc__titre { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.bloc__texte { font-size: 1.1rem; flex: 1; }
.bloc__lien { font-weight: 800; color: var(--bleu-txt); text-decoration: underline; text-underline-offset: .25em; }

/* ---------- 7. Témoignages — citations très grosses sur voile corail ---------- */
.temoignages { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.4rem; }
.temoignage {
  background: var(--corail-voile); border-left: 6px solid var(--accent);
  border-radius: 0; padding: 1.5rem 1.6rem;
}
.temoignage p { font-size: 1.45rem; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.temoignage cite { color: var(--corail-txt); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- 8. Massothérapie — la liste « affiche » ---------- */
.affiche { margin-top: 1.6rem; border-top: 3px solid var(--texte); }
.affiche__item { padding-left: 0 !important; margin: 0 !important; border-bottom: 3px solid var(--texte); }
.affiche__item::before { display: none !important; }
.affiche__item > a {
  display: grid; grid-template-columns: auto 1fr 8.5rem;
  align-items: center; gap: 1.4rem; padding: 1.3rem 0;
  text-decoration: none; color: inherit;
}
.affiche__item > a:hover { background: var(--corail-voile); }
.affiche__num {
  font-family: var(--pile-titre); font-weight: 900; letter-spacing: -.05em;
  font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; color: var(--accent);
}
.affiche__corps { display: flex; flex-direction: column; gap: .3rem; }
.affiche__titre { font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.05; }
.affiche__texte { font-size: 1.05rem; }
.affiche__photo img { width: 8.5rem; height: 8.5rem; object-fit: cover; border-radius: 0; }
.affiche__photo--vide { display: block; width: 8.5rem; height: 8.5rem; background: var(--accent-2); }

/* ---------- 9. Analyse biomécanique — les chiffres géants ---------- */
.chiffres {
  display: grid; gap: 1.2rem; margin: 0 0 2rem !important;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.chiffres li { padding-left: 0 !important; margin: 0 !important; border-top: 4px solid var(--accent); padding-top: .7rem !important; }
.chiffres li::before { display: none !important; }
.chiffres__nb { display: block; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--corail-txt); }
.chiffres__quoi { display: block; margin-top: .35rem; font-size: 1.05rem; font-weight: 700; }

/* ---------- 10. Réseau de référence en pastilles-autocollants bleues ---------- */
#reseau ul { display: flex; flex-wrap: wrap; gap: .6rem; }
#reseau li { padding-left: 0 !important; margin: 0 !important; }
#reseau li::before { display: none !important; }
#reseau li {
  padding: .5rem 1.1rem !important; border-radius: 2rem;
  background: var(--accent-2); color: #14313f; font-weight: 800; font-size: 1rem;
}

/* ---------- 11. Contact — le courriel énorme ---------- */
#ecrire > .conteneur > p:first-of-type { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
#ecrire > .conteneur > p:first-of-type a {
  display: inline-block; font-family: var(--pile-titre); font-weight: 900;
  font-size: clamp(1.3rem, 3.8vw, 2.5rem); letter-spacing: -.03em;
  color: var(--corail-txt); word-break: break-word;
}
#telephone > .conteneur > p:first-of-type a {
  font-family: var(--pile-titre); font-weight: 900;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem); letter-spacing: -.03em; color: var(--corail-txt);
}
.autocollants--contact {
  position: static; transform: none; margin: 0 auto 2.6rem;
  width: min(100% - 2 * var(--gouttiere), var(--largeur));
}

/* ---------- 12. Boutons, cartes, tarifs, figures, cadres ---------- */
.bouton { border-radius: 0; font-weight: 800; padding: .85rem 1.5rem; letter-spacing: .01em; }
.bouton:hover { filter: none; background: var(--corail-txt); }
.bouton--f { background: #1877f2; }
.bouton--f:hover { background: #0f5ecb; }

.carte { border: 3px solid var(--texte); border-radius: 0; background: var(--pale); }
.carte:hover, .carte:focus-visible { transform: translate(-4px, -4px); box-shadow: 10px 10px 0 var(--accent); }
.carte img { border-radius: 0; }
.carte__corps h3 { color: var(--corail-txt); }
.carte__bouton { color: var(--bleu-txt); font-weight: 800; }

.tarifs th { background: var(--accent); color: #fff; padding: .8rem .8rem; border-bottom: 0; letter-spacing: .1em; }
.tarifs td { padding: .75rem .8rem; }
.tarifs tr:hover td { background: var(--corail-voile); }

figure img { border-radius: 0; box-shadow: -12px 12px 0 var(--accent-2); }
figure.droite, figure.gauche { margin-bottom: 2rem; width: 20rem; }
figure.droite img, figure.gauche img { max-height: 24rem; object-fit: cover; }

.cadre { border: 3px dashed var(--accent-2); border-radius: 0; background: var(--fond); }
.section ul li::before { background: var(--accent); border-radius: 0; width: .5rem; height: .5rem; top: .68em; }
.section a { color: var(--bleu-txt); font-weight: 700; }
.section a.bloc, .section a.carte, .affiche__item > a { color: var(--texte); font-weight: 400; }
.section a.bouton, .pied a.bouton { color: #fff; }

.form__groupe input, .form__groupe select, .form__groupe textarea { border: 2px solid var(--texte); border-radius: 0; }
.form__note { border: 3px dashed var(--accent-2); border-radius: 0; }

.ancres a, #les-12-semaines a { border: 2px solid var(--texte); border-radius: 2rem; background: var(--fond); font-weight: 800; }
.ancres a:hover, #les-12-semaines a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- 13. Pied de page ---------- */
.pied { background: var(--texte); color: #fff; border-top: 0; }
.pied a { color: #fff; }
.pied a:hover { color: var(--accent-2); }
.pied__bas { opacity: .7; }
.saut { background: var(--accent); }
:focus-visible { outline: 3px solid var(--bleu-txt); outline-offset: 2px; }

/* ---------- 14. Mobile ---------- */
@media (max-width: 52rem) {
  .section { padding: 2.6rem 0; }
  .hero--d .hero__grille { grid-template-columns: 1fr; padding: 2rem 0 2.2rem; gap: 1.6rem; }
  .hero--d .hero__mots, .hero--d .hero__photo { grid-column: 1 / -1; grid-row: auto; }
  .hero--d .hero__photo img { box-shadow: -8px 8px 0 var(--accent-2); height: 15rem; }
  .hero--d .hero__sous { font-size: 1.05rem; max-width: none; }
  .autocollants { position: static; transform: none; width: auto; justify-content: flex-start; padding: 0 var(--gouttiere) 1.6rem; }
  .autocollants li { width: 6.6rem; height: 6.6rem; font-size: .75rem; }
  .bandeau { font-size: .8rem; gap: .3rem 1rem; }
  .bandeau span + span::before { padding-right: 1rem; }

  .blocs { grid-template-columns: 1fr; }
  .bloc--grand { grid-template-columns: 1fr; }
  .bloc:last-child, .bloc:last-child:hover { transform: none; }
  .bloc__texte { font-size: 1rem; }
  .bloc--grand .bloc__photo img { min-height: 13rem; }

  .temoignage p { font-size: 1.15rem; }
  .affiche__item > a { grid-template-columns: auto 1fr; gap: .9rem 1rem; }
  .affiche__photo { grid-column: 1 / -1; }
  .affiche__photo img { width: 100%; height: 9rem; }
  .affiche__photo--vide { width: 100%; height: 4rem; }
  .affiche__texte { font-size: 1rem; }
  #reseau li { font-size: .9rem; }
  figure img { box-shadow: -8px 8px 0 var(--accent-2); }
  .autocollants--contact { margin-bottom: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bloc, .carte { transition: none; }
}

/* == plancher desktop 1,1 rem (Fable, 18 sept. 2026) == */
@media (min-width: 52.01rem) {
  .pastille-lieu,
  .autocollants li,
  .bandeau,
  .temoignage cite,
  .affiche__texte,
  .chiffres__quoi,
  #reseau li { font-size: 1.1rem; }
}
