/* Raouf Physio v2 — « L'amplitude retrouvée »
   Mobile-first (360 px), breakpoints 640 / 1024. Sin dependencias. */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --pin: #1B6347;        /* vert pin : marque */
  --pin-fonce: #14503A;  /* hover */
  --profond: #0E2A22;    /* texte, pied */
  --sauge: #E2EEE6;      /* fonds alternés, chips */
  --blanc: #F7FAF8;      /* fond général */
  --grenade: #C2362B;    /* accent : Appeler + point de statut */
  --gris: #4D5F57;       /* texte secondaire */
  --filet: rgba(14, 42, 34, .16);

  --f-titre: "Familjen Grotesk", "Arial Narrow", Arial, sans-serif;
  --f-texte: "Atkinson Hyperlegible Next", "Segoe UI", Roboto, Arial, sans-serif;

  --t-sm: .9375rem;
  --t-base: 1.0625rem;
  --t-h3: 1.3rem;
  --t-h2: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem);
  --t-h1: clamp(2.15rem, 1.4rem + 3.4vw, 3.75rem);

  --pad: 1.25rem;
  --sect: clamp(3.25rem, 2rem + 5vw, 6rem);
  --barre: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--profond);
  background: var(--blanc);
  padding-bottom: var(--barre);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pin); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pin-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pin); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--f-titre);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 680; letter-spacing: -.028em; line-height: 1.02; }
h2 { font-size: var(--t-h2); font-weight: 650; }
h3 { font-size: var(--t-h3); font-weight: 620; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }

.wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: var(--pad); }
.intro { color: var(--gris); font-size: 1.125rem; max-width: 52ch; }
.petit { font-size: var(--t-sm); color: var(--gris); }

.skip {
  position: absolute; left: .75rem; top: -4rem; z-index: 50;
  background: var(--profond); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: .75rem; }

/* ---------- Boutons ---------- */
.ico { width: 1.35em; height: 1.35em; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.5rem; padding: .8rem 1.35rem;
  font: 600 1.0625rem/1.1 var(--f-titre); letter-spacing: 0;
  border-radius: 12px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-wa { background: var(--pin); color: #fff; }
.btn-wa:hover { background: var(--pin-fonce); color: #fff; }
.btn-tel { background: #fff; color: var(--grenade); border-color: var(--grenade); }
.btn-tel:hover { background: var(--grenade); color: #fff; }
.btn-ghost { background: transparent; color: var(--pin); border-color: var(--pin); }
.btn-ghost:hover { background: var(--pin); color: #fff; }
.btn-sm { min-height: 2.9rem; padding: .55rem 1rem; font-size: 1rem; }
.btn-large { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1rem; }
.actions .btn { flex: 1 1 13rem; }

/* ---------- En-tête ---------- */
.site-header { background: var(--blanc); border-bottom: 1px solid var(--filet); }
.header-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .25rem 1rem; padding-block: .7rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--profond); text-decoration: none;
  font: 700 1.3rem/1 var(--f-titre); letter-spacing: -.02em;
}
.logo:hover { color: var(--profond); }
.logo-mark { width: 2rem; height: 2rem; color: var(--pin); }
/* Menu : une seule ligne dès 360 px. Mobile : libellés courts (« Raouf », « Accès »), le libellé
   complet reste dans le nom accessible. Filet de sécurité : défilement horizontal, sans débordement. */
.nav { width: 100%; min-width: 0; }
.nav ul {
  display: flex; flex-wrap: nowrap; gap: 0 1.15rem; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav li { flex: none; }
.nav a { position: relative; }
.nav a {
  display: inline-block; line-height: 2.75rem; padding: 0 .1rem; /* 44 px de cible tactile */
  color: var(--profond); white-space: nowrap;
  text-decoration: none; font-weight: 600; font-size: 1rem;
}
.nav-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: pre; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--pin); }
.nav a:hover { color: var(--pin); }
.header-cta { display: none; gap: .5rem; }

/* ---------- Instagram (@raouf_physio) : un seul composant, couleurs du site ---------- */
.insta-point { fill: currentColor; }
.lien-insta {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
}
.lien-insta .ico { width: 1.15em; height: 1.15em; }
/* En-tête. Mobile : icône seule, cible de 44 × 44 px au bout de la ligne du logo
   (le menu garde sa propre ligne). ≥ 640 px : icône + @raouf_physio. */
.insta-entete {
  position: relative; margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 .55rem; border-radius: 10px;
  color: var(--pin); font: 600 1rem/1 var(--f-titre); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.insta-entete:hover { background: var(--sauge); color: var(--pin-fonce); }
.insta-entete .ico { width: 1.5rem; height: 1.5rem; }
.insta-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* Hero de l'accueil : lien secondaire, sous l'appel */
.hero-insta { font-size: var(--t-sm); margin: -.5rem 0 .75rem; }
.hero-insta .lien-insta { color: var(--gris); font-weight: 400; text-decoration-color: rgba(77, 95, 87, .45); }
.hero-insta .lien-insta strong { color: var(--pin); font-weight: 600; }
.hero-insta .lien-insta:hover { color: var(--profond); text-decoration-color: currentColor; }
.hero-insta .ico { color: var(--pin); }

/* ---------- Barre d'action mobile ---------- */
.barre-action {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 3rem; gap: .5rem;
  padding: .6rem var(--pad) calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(247, 250, 248, .97);
  border-top: 1px solid var(--filet);
}
.barre-action .btn { min-height: 3.5rem; padding-inline: .6rem; gap: .45rem; }
/* Instagram : bouton carré discret (icône seule), Appeler et WhatsApp gardent la largeur */
.barre-action .btn-insta { padding: 0; background: #fff; color: var(--pin); border-color: rgba(27, 99, 71, .4); }
.barre-action .btn-insta:hover { background: var(--sauge); color: var(--pin-fonce); border-color: var(--pin); }
.barre-action .btn-insta .ico { width: 1.6rem; height: 1.6rem; }
/* Posé par le JS sur l'accueil tant que la CTA du hero est visible ; sans JS, la barre reste affichée */
.barre-action { transition: transform .3s ease, visibility 0s linear 0s; }
.barre-action.est-cachee {
  transform: translateY(110%); visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}

/* ---------- Statut d'ouverture ---------- */
.statut { display: flex; align-items: center; gap: .55rem; font-weight: 600; margin-bottom: 1.25rem; }
.statut-point {
  width: .7rem; height: .7rem; border-radius: 50%; flex: none;
  background: var(--grenade);
}
.statut.est-ferme .statut-point { background: transparent; box-shadow: inset 0 0 0 2px var(--gris); }
.statut.est-ferme { color: var(--gris); }

/* ---------- Hero ----------
   Mobile : la photo au goniomètre passe en tête, à fond perdu, et le titre la chevauche
   sur un fondu vers le fond de page. Ordre du DOM inchangé (h1 d'abord). */
.hero { padding-block: 0 2rem; }
.hero-in { display: grid; gap: 0; }
.hero-texte { position: relative; z-index: 1; margin-top: -1.5rem; }
.hero-photo { order: -1; overflow: hidden; }
.hero-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 18%;
  background: linear-gradient(to bottom, rgba(247, 250, 248, 0), var(--blanc) 88%);
  pointer-events: none;
}
.hero-actions { margin-bottom: .5rem; }
.hero-actions .btn { flex: 0 1 auto; min-width: min(100%, 17rem); }
.hero-appel { font-size: var(--t-sm); color: var(--gris); margin-bottom: .75rem; }
.lien-tel {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem;
  color: var(--grenade); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px;
}
.lien-tel:hover { color: #9E2B22; text-decoration-thickness: 2px; }
.lien-tel .ico { width: 1.1em; height: 1.1em; }
.hero-sous { font-size: 1.125rem; color: var(--gris); max-width: 46ch; }
.hero-lieu { font-size: var(--t-sm); color: var(--gris); margin: 0; }
.hero-photo { position: relative; margin: 0 calc(var(--pad) * -1); }
/* Photo réelle (640 × 980) : cadre carré en mobile, 4:5 en escritorio, toujours ancré en haut.
   L’image et le SVG partagent le même repère (cover / slice, xMid YMin) : le goniomètre reste sur le cou. */
.hero-cadre { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #d9d4cc; }
.hero-cadre img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
}
/* Fond (salle, chaises à droite) assombri légèrement ; les deux personnes restent nettes */
.hero-cadre::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to left, rgba(14, 42, 34, .58) 0%, rgba(14, 42, 34, .22) 26%, rgba(14, 42, 34, 0) 42%),
    linear-gradient(to right, rgba(14, 42, 34, .3) 0%, rgba(14, 42, 34, 0) 22%),
    linear-gradient(to bottom, rgba(14, 42, 34, .22) 0%, rgba(14, 42, 34, 0) 18%);
}
.gonio { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.gonio line, .gonio path { fill: none; stroke-linecap: round; }
.gonio-traits { filter: drop-shadow(0 0 2.5px rgba(255, 255, 255, .95)); }
.gonio-traits { opacity: .88; }
.g-bras { stroke: var(--pin); stroke-width: 4; }
.g-fixe { stroke-dasharray: 2 10; stroke-width: 3.5; }
.g-arc { stroke: var(--grenade); stroke-width: 4.5; }
.g-pivot { fill: #fff; stroke: var(--pin); stroke-width: 3.5; }
.gonio-etiquette rect { fill: rgba(255, 255, 255, .93); }
.gonio-etiquette text { font: 650 22px var(--f-titre); fill: var(--profond); letter-spacing: .01em; }

/* ---------- Sections ---------- */
.section { padding-block: var(--sect); }
.douleur, .parcours, .formulaire-bloc { background: var(--sauge); }
.page-tete { padding-block: 2.25rem 2.5rem; border-bottom: 1px solid var(--filet); }
.page-tete h1 { max-width: 20ch; }

/* Fil d'Ariane (pages internes) : une ligne discrète, petites capitales espacées, sans animation */
.ariane { margin: 0 0 1rem; }
.ariane ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: nowrap; align-items: center; min-width: 0;
  font: 600 .75rem/1.4 var(--f-titre); letter-spacing: .1em; text-transform: uppercase;
  color: var(--gris); white-space: nowrap;
}
.ariane li { display: flex; align-items: center; flex: none; }
.ariane li[aria-current] { flex: 0 1 auto; min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; color: var(--profond); }
.ariane a {
  display: inline-flex; align-items: center; min-height: 2.75rem; /* cible tactile */
  color: var(--pin); text-decoration: none;
}
.ariane a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.ariane-sep { margin-inline: .6rem; color: var(--pin); font-size: 1rem; line-height: 1; }
.page-tete:has(.ariane) { padding-top: .75rem; }
/* Où me consulter : photo réelle du Centre Al Ryad dans la cabecera (4:3 en mobile, 4:5 en escritorio vía <picture>) */
.page-tete-in { display: grid; gap: 1.5rem; }
.page-tete-photo { margin: 0; max-width: 40rem; }
.page-tete-photo img { display: block; width: 100%; height: auto; border-radius: 4px; }

/* Chips « Où avez-vous mal ? » */
.chips {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem;
}
.chip {
  display: flex; align-items: center; gap: .7rem;
  min-height: 4rem; padding: .6rem 1rem .6rem .75rem;
  background: #fff; color: var(--profond); text-decoration: none;
  border: 1px solid var(--filet); border-radius: 999px;
  font: 600 1.02rem/1.15 var(--f-titre);
  transition: border-color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: var(--pin); color: var(--profond); background: #fbfdfc; }
.chips li:last-child { grid-column: 1 / -1; }
.pic { width: 1.5rem; height: 2.5rem; flex: none; }
.pic circle, .pic path { fill: none; stroke: var(--gris); stroke-width: 1.4; stroke-linecap: round; }
.pic .z { fill: var(--pin); stroke: none; }
.pic .zt { stroke: var(--pin); stroke-width: 1.8; }

/* Soins en trois moments.
   Sans JS : les trois moments empilés, cartes en rail horizontal (mobile).
   Avec JS (.est-onglets) : sélecteur à onglets + cadran d'amplitude. */
.soins-zone { margin-top: 1.75rem; }
.moments { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.moment { min-width: 0; }
.moment h3 { margin-bottom: .2rem; font-size: 1.6rem; }
.moment-intro { color: var(--gris); margin-bottom: 1rem; }
.cartes {
  list-style: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) .75rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14.5rem, 78%); gap: .9rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: #9DB0A6 transparent;
}
.carte-soin {
  position: relative; scroll-snap-align: start; min-width: 0;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--filet); border-radius: 6px; overflow: hidden;
}
.carte-lien {
  display: grid; gap: .25rem; padding-bottom: .35rem;
  color: var(--profond); text-decoration: none;
}
.carte-lien img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .55rem; }
.carte-lien .soin-nom, .carte-lien .soin-pour { padding-inline: .95rem; }
.carte-lien:hover { color: var(--profond); }
.carte-lien:hover .soin-nom { color: var(--pin); text-decoration: underline; text-decoration-thickness: 2px; }
.carte-lien:focus-visible, .carte-wa:focus-visible { outline-offset: -3px; }
.soin-nom { font: 620 1.15rem/1.2 var(--f-titre); }
.soin-pour { color: var(--gris); font-size: var(--t-sm); }
.carte-wa {
  margin-top: auto; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 3rem; padding: .45rem .95rem .7rem;
  font: 600 .98rem/1.15 var(--f-titre); color: var(--pin); text-decoration: none;
}
.carte-wa:hover { color: var(--pin-fonce); text-decoration: underline; }
.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Mode onglets (posé par le JS) */
.selecteur { display: grid; gap: 1.1rem; margin-bottom: 1.5rem; }
.selecteur[hidden] { display: none; }
.onglets {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem;
  padding: .3rem; background: var(--sauge); border-radius: 14px;
}
.onglet {
  min-height: 3.25rem; padding: .5rem .35rem; margin: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--profond);
  font: 620 1.05rem/1.1 var(--f-titre); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.onglet:hover { background: #d3e5d9; }
.onglet[aria-selected="true"] { background: var(--pin); color: #fff; }
.onglet:focus-visible { outline-offset: 2px; }
.dial { width: min(100%, 15rem); margin-inline: auto; text-align: center; }
.dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial line, .dial path { fill: none; stroke-linecap: round; }
.d-piste { stroke: var(--sauge); stroke-width: 12; }
.d-plein { stroke: var(--pin); stroke-width: 12; }
.d-crans line { stroke: #9DB0A6; stroke-width: 2; }
.d-fixe { stroke: var(--pin); stroke-width: 2.5; stroke-dasharray: 3 8; }
.d-aiguille { stroke: var(--profond); stroke-width: 5; }
.d-pivot { fill: #fff; stroke: var(--profond); stroke-width: 4; }
.dial-mesure {
  margin: .35rem auto 0; max-width: none;
  font: 600 .95rem/1 var(--f-titre); color: var(--gris); font-variant-numeric: tabular-nums;
}
.dial-val { font-size: 1.6rem; font-weight: 700; color: var(--pin); }
.est-onglets .moment h3 {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0;
}
.est-onglets .moment-intro { font-size: 1.125rem; color: var(--profond); }
.soins-apercu .actions { margin-top: 2rem; }
.soins-apercu .actions .btn { flex: 0 1 auto; }

/* Parcours */
.parcours-in { display: grid; gap: 1.5rem; }
.arc-parcours { width: 100%; max-width: 20rem; height: auto; margin-top: .5rem; overflow: visible; }
.arc-parcours path { fill: none; stroke-width: 10; stroke-linecap: round; }
.ap-piste { stroke: #fff; }
.ap-plein { stroke: var(--pin); }
.ap-cran { stroke: var(--sauge); stroke-width: 4; }
.arc-parcours text { font: 700 18px var(--f-titre); fill: var(--pin); }
.etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.etapes li {
  counter-increment: etape; position: relative;
  padding: 0 0 0 3.25rem;
}
.etapes li::before {
  content: counter(etape);
  position: absolute; left: 0; top: -.15rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pin); color: #fff; font: 700 1.05rem/1 var(--f-titre);
}
.etapes h3 { margin-bottom: .3rem; }
.etapes p { margin: 0; }

/* Première séance */
.premiere-in { display: grid; gap: 2rem; }
.a-apporter { border-left: 3px solid var(--pin); padding-left: 1.25rem; }
.coches { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.coches li { position: relative; padding: .35rem 0 .35rem 1.9rem; }
.coches li::before {
  content: ""; position: absolute; left: .15rem; top: .75rem;
  width: 1rem; height: .55rem;
  border-left: 2.5px solid var(--pin); border-bottom: 2.5px solid var(--pin);
  transform: rotate(-45deg);
}

/* Horaires & accès : tableau étiquette-valeur */
.horaires { border-top: 1px solid var(--filet); }
.acces { display: grid; gap: 2rem; }
.kv { margin: 0 0 1.25rem; }
.kv > div {
  display: grid; grid-template-columns: 6.75rem minmax(0, 1fr); gap: .75rem;
  padding: .7rem 0; border-bottom: 1px solid var(--filet);
}
.kv > div:first-child { border-top: 1px solid var(--filet); }
.kv dt { color: var(--gris); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kv a[href^="tel:"], .kv a[href^="https://wa.me"], .footer-nap a { white-space: nowrap; }
.acces .actions .btn { flex: 0 1 auto; }
.page-tete + .horaires { border-top: 0; }

/* Carte d'accès : coordonnées avec icônes + plan (Google Maps chargé seulement au clic) */
.acces-carte { min-width: 0; }
.infos { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.infos li {
  display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .8rem; align-items: start;
  padding: .85rem 0; border-bottom: 1px solid var(--filet);
}
.infos li:first-child { border-top: 1px solid var(--filet); }
.infos-ico { width: 1.6rem; height: 1.6rem; color: var(--pin); margin-top: .1rem; }
.infos-tit { display: block; font: 650 1.02rem/1.3 var(--f-titre); color: var(--profond); margin-bottom: .1rem; }
.infos div { color: var(--gris); overflow-wrap: anywhere; }
.infos address { font-style: normal; }
.infos a { font-weight: 600; white-space: nowrap; display: inline-block; padding-block: .2rem; }

.plan {
  position: relative; min-width: 0; height: 17rem; /* 272 px à 360-390 px */
  border: 1px solid var(--filet); border-radius: 14px; overflow: hidden;
  background: #E9F1EC;
}
.plan-fond { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan-ilots rect { fill: #fff; stroke: rgba(14, 42, 34, .08); }
.plan-vert { fill: #CFE3D6; }
.plan-rue { fill: none; stroke: #fff; stroke-width: 9; }
.plan-avenue { fill: none; stroke: #F3E3C4; stroke-width: 14; stroke-linecap: round; }
.plan-cible { fill: var(--sauge); stroke: var(--pin); stroke-width: 2; }
.plan-marqueur {
  position: absolute; left: 50%; top: 40%; transform: translate(-1rem, -100%);
  display: flex; align-items: flex-start; gap: .35rem; pointer-events: none;
}
.plan-marqueur svg { width: 2rem; height: 2.65rem; flex: none; filter: drop-shadow(0 2px 3px rgba(14, 42, 34, .3)); }
.plan-nom {
  margin-top: .35rem; padding: .2rem .5rem; border-radius: 6px;
  background: #fff; color: var(--profond); font: 650 .9rem/1.2 var(--f-titre); white-space: nowrap;
  box-shadow: 0 1px 3px rgba(14, 42, 34, .18);
}
.plan-voile {
  position: absolute; inset: auto .6rem .6rem .6rem;
  padding: .6rem; border-radius: 10px;
  background: rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(14, 42, 34, .14);
}
.btn-carte { width: 100%; min-height: 3rem; padding: .5rem .6rem; gap: .45rem; font-size: .9375rem; background: var(--pin); color: #fff; }
.btn-carte:hover { background: var(--pin-fonce); color: #fff; }
.plan-note { margin: .5rem 0 0; font-size: .8125rem; line-height: 1.35; color: var(--gris); text-align: center; max-width: none; }
.plan iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* CTA final + FAQ */
.final { background: var(--profond); color: #fff; }
.final .intro { color: #CFE0D6; }
.final .btn-tel { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.final .btn-tel:hover { background: #fff; color: var(--grenade); }
.final .btn-wa { background: #fff; color: var(--pin); }
.final .btn-wa:hover { background: var(--sauge); color: var(--pin-fonce); }
.final a:not(.btn) { color: #fff; }
.final :focus-visible { outline-color: #fff; }
.final-in { display: grid; gap: 2.5rem; }
.faq-q { border-bottom: 1px solid var(--filet); }
.final .faq-q { border-color: rgba(255, 255, 255, .22); }
.faq-q summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1rem 2.25rem 1rem 0; font: 620 1.1rem/1.3 var(--f-titre);
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after {
  content: ""; position: absolute; right: .35rem; top: 1.3rem;
  width: .6rem; height: .6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-q[open] summary::after { transform: rotate(-135deg); top: 1.55rem; }
.faq-q p { margin: 0 0 1rem; }
.final .faq-q p { color: #DCE8E1; }
.faq-large { max-width: 48rem; }
.faq-large .faq-q:first-of-type { border-top: 1px solid var(--filet); }

/* Page Soins */
.toc { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.toc a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem .95rem;
  background: var(--sauge); border-radius: 999px; color: var(--profond);
  text-decoration: none; font-weight: 600; font-size: var(--t-sm);
}
.toc a:hover { background: #d3e5d9; color: var(--profond); }
.moment-bloc:nth-of-type(even) { background: var(--sauge); }
.soin {
  display: grid; gap: 1.1rem;
  padding-block: 2rem; border-top: 1px solid var(--filet);
  scroll-margin-top: 1rem;
}
.moment-bloc .intro { margin-bottom: 1.5rem; }
.soin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.soin h3 { font-size: 1.55rem; }
.soin-qui strong { font-weight: 700; }

/* Page Cabinet */
.duo { display: grid; gap: 2rem; align-items: start; }
.photo-portrait { margin: 0; }
.photo-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.approche { background: var(--sauge); }
.principes { display: grid; gap: 1.5rem; margin: 1.5rem 0 0; }
.principes > div { border-top: 2px solid var(--pin); padding-top: .9rem; }
.principes dt { font: 650 1.35rem/1.15 var(--f-titre); margin-bottom: .35rem; }
.principes dd { margin: 0; max-width: 40ch; }

/* Figures avec légende (photos du client) */
.photo-portrait figcaption, .photo-carte figcaption {
  margin-top: .6rem; font-size: var(--t-sm); color: var(--gris); max-width: 52ch;
}
.photo-carte { margin: 0; }
.photo-carte img { width: 100%; height: auto; border-radius: 4px; }

/* Accueil : bande de présentation d'Abderraouf Kafi, juste après le hero */
.credentiels { border-top: 1px solid var(--filet); }
.credentiels .kv { margin-top: 1.25rem; }
.kv-large > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
.kv-large dd { font-weight: 500; }
.kv-large dt { font: 650 .98rem/1.3 var(--f-titre); color: var(--pin); }

/* Qui est Raouf : sportifs + Instagram */
.galerie {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem;
}
.galerie img { aspect-ratio: 4 / 3; object-fit: cover; }
.insta { margin-top: 2.5rem; border-top: 2px solid var(--pin); padding-top: 1rem; max-width: 40rem; }
.insta .actions .btn { flex: 0 1 auto; }

/* Soins : techniques */
.techniques dt { font-size: 1.2rem; }
.formations + .actions { margin-top: 2rem; }
.formations + .actions .btn { flex: 0 1 auto; }

/* Formulaire */
.form-rdv {
  background: #fff; border: 1px solid var(--filet); border-radius: 14px;
  padding: 1.25rem; display: grid; gap: 1.1rem;
}
.champ { margin: 0; padding: 0; border: 0; min-width: 0; }
.champ > label:not(.radio):not(.case), .champ legend { display: block; font-weight: 700; margin-bottom: .35rem; padding: 0; }
.optionnel { font-weight: 400; color: var(--gris); }
input[type="text"], select {
  width: 100%; min-height: 3.25rem; padding: .7rem .85rem;
  font: inherit; color: var(--profond); background: var(--blanc);
  border: 1.5px solid #9DB0A6; border-radius: 10px;
}
input[type="text"]:focus-visible, select:focus-visible { border-color: var(--pin); }
input::placeholder { color: #6B7C74; }
.radio, .case { display: flex; gap: .65rem; align-items: flex-start; padding: .45rem 0; font-weight: 400; }
.radio input, .case input { width: 1.35rem; height: 1.35rem; margin: .1rem 0 0; accent-color: var(--pin); flex: none; }
.case { font-size: var(--t-sm); }
.erreur { color: var(--grenade); font-weight: 600; font-size: var(--t-sm); margin: .4rem 0 0; }
[aria-invalid="true"] { border-color: var(--grenade) !important; }
.form-etat { margin: 0; font-weight: 600; color: var(--pin); min-height: 1.5em; }
.btn.est-pret { background: var(--profond); }

/* Pages légales */
.texte { max-width: 46rem; }
.texte h2 { font-size: 1.45rem; margin-top: 2rem; }
.texte ul { padding-left: 1.25rem; }
.texte li { margin-bottom: .4rem; }

/* ---------- Pied ---------- */
.site-footer { background: var(--profond); color: #DCE8E1; padding-block: 3rem 1.5rem; font-size: var(--t-sm); }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-in { display: grid; gap: 1.75rem; }
.footer-nom { font: 700 1.35rem/1 var(--f-titre); color: #fff; margin-bottom: .4rem; }
.footer-nap { font-style: normal; line-height: 1.7; }
.footer-horaires { line-height: 1.7; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer-nav a { display: inline-block; padding: .4rem 0; }
.site-footer p { margin-bottom: 0; }
.footer-id p + p { margin-top: .5rem; }
.footer-nap .lien-insta { vertical-align: middle; }

/* ---------- ≥ 640 px ---------- */
@media (min-width: 640px) {
  :root { --pad: 2rem; }
  .kv > div { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips li:last-child { grid-column: auto; }
  .hero-photo { margin: 0 calc(var(--pad) * -1); }
  .cartes { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-inline: 0; padding-inline: 0; overflow: visible; }
  .dial { width: 16rem; }
  .soin { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: start; }
  .duo { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .duo-inverse > figure { order: 0; }
  .principes { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .formations, .techniques { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .kv-large > div { grid-template-columns: 9.5rem minmax(0, 1fr); gap: .75rem; }
  .plan { height: 20rem; }
  .nav-long { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }
  .nav-court { display: none; }
  .insta-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }
  .nav ul { gap: 0 1.4rem; }
  .footer-in { grid-template-columns: repeat(2, 1fr); }
  .form-rdv { padding: 1.75rem; }
}

/* ---------- ≥ 1024 px ---------- */
@media (min-width: 1024px) {
  .page-tete-in { grid-template-columns: minmax(0, 1fr) 24rem; gap: 4rem; align-items: center; }
  body { padding-bottom: 0; }
  .barre-action { display: none; }
  .header-in { flex-wrap: nowrap; padding-block: .9rem; }
  .nav { margin-left: auto; width: auto; }
  .insta-entete { margin-left: 0; }
  .nav ul { overflow: visible; }
  .nav ul { gap: 1.4rem; flex-wrap: nowrap; }
  .formations, .techniques { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .credentiels .duo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: center; }
  .header-cta { display: flex; }
  .hero { padding-block: 3.5rem 4rem; }
  .hero-texte { margin-top: 0; }
  .hero-photo { order: 0; margin: 0; width: 100%; max-width: 28rem; justify-self: end; }
  .hero-cadre { aspect-ratio: 4 / 5; border-radius: 4px; }
  .hero-photo::after { content: none; }
  .hero-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3.5rem; align-items: center; }
  .est-onglets .soins-zone { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; align-items: start; }
  .est-onglets .selecteur { margin-bottom: 0; gap: 1.75rem; }
  .est-onglets .onglets { grid-template-columns: 1fr; }
  .est-onglets .onglet { min-height: 3.5rem; padding-inline: 1.1rem; text-align: left; font-size: 1.2rem; }
  .est-onglets .dial { width: 100%; max-width: 18rem; }
  .est-onglets .moment-intro { margin-top: .35rem; }
  .parcours-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .etapes { gap: 2.25rem; padding-top: .5rem; }
  .premiere-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; }
  .final-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; }
  .footer-in { grid-template-columns: 1.3fr 1.4fr 1fr 1fr; }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Carte et plan côte à côte : le plan prend la hauteur de la carte (fixée par la grille, sans CLS) */
  .acces { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; align-items: stretch; }
  .plan { height: auto; min-height: 26rem; }
  .plan-voile { inset: auto auto 1rem 1rem; width: min(22rem, calc(100% - 2rem)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* 1024–1199 px : la ligne d'en-tête est pleine (logo + menu + Appeler + WhatsApp) :
   Instagram reste en icône 44 × 44 ; @raouf_physio réapparaît dès 1200 px */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .insta-entete .insta-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
}
