/* =========================================================
   Cabinet de kinésiologie — feuille de style unique
   Thème « herbier » : lin verdi, encre forêt, pastels végétaux.
   Aucune ressource externe (RGPD) — polices système par défaut.
   Pour utiliser des polices auto-hébergées : voir README.md
   ========================================================= */

/* --- 1. Jetons de design ------------------------------- */
:root {
  /* Palette dérivée du logo « Ambre Solyga » : pétrole, or, sable,
     et les sept chakras déclinés en pastel. */

  /* fonds */
  --ivoire:       #FBF7F0;  /* fond de page */
  --sable:        #F5EBDD;  /* section alternée */
  --blanc:        #FFFFFF;

  /* textes */
  --petrole:      #1B424A;  /* encre du logo — titres */
  --petrole-doux: #4E6B70;  /* corps de texte */
  --canard:       #33697A;  /* script du logo — étiquettes */

  /* accents */
  --or:           #D9B26A;  /* filet et étoiles du logo */
  --or-fonce:     #7F611E;  /* liens, chiffres */
  --sauge:        #99B9A2;  /* traits, bordures */
  --sable-fonce:  #E7CFAE;

  /* les sept chakras, en pastel (de la couronne à la racine) */
  --couronne:     #C3A6D8;
  --troisieme:    #9FAEDB;
  --gorge:        #9CC9E3;
  --coeur:        #A9D3B0;
  --plexus:       #F0D68F;
  --sacre:        #F2B98C;
  --racine:       #E9A19C;

  /* profondeur */
  --profond:      #17383F;

  /* typographie */
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-xxl: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
  --t-xl:  clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
  --t-l:   clamp(1.45rem, 1.15rem + 1.1vw, 1.95rem);
  --t-m:   clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --t-s:   0.94rem;
  --t-xs:  0.76rem;

  /* rythme */
  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  --largeur: 1140px;
  --rail: 150px;
  --fil: 170px;
  --rayon: 14px;
}

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

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

body {
  margin: 0;
  background-color: var(--ivoire);
  /* voiles pastel très diffus : de la lumière, pas du décor */
  background-image:
    radial-gradient(58rem 38rem at 78% -10%, rgba(249,220,185,.5), transparent 66%),
    radial-gradient(46rem 32rem at -8% 14%, rgba(153,185,162,.22), transparent 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--petrole-doux);
  font-family: var(--sans);
  font-size: var(--t-m);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--petrole);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: var(--t-xxl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-l); line-height: 1.2; }
h4 { font-size: 1.06rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.15em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--or-fonce); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrole); }

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

.lien-invisible {
  position: absolute; left: -9999px;
  background: var(--petrole); color: var(--ivoire);
  padding: .8rem 1.2rem; z-index: 100;
}
.lien-invisible:focus { left: 1rem; top: 1rem; }

.enveloppe {
  width: min(100% - (var(--gouttiere) * 2), var(--largeur));
  margin-inline: auto;
}

/* --- 3. Éléments de langage ---------------------------- */
.surtitre {
  font-family: var(--sans);
  font-size: var(--t-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--canard);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
}

.souffle {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 0 0 rgba(217, 178, 106, .6);
  animation: respire 6s ease-in-out infinite;
  flex: none;
}
@keyframes respire {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 178, 106, .6); }
  45%      { box-shadow: 0 0 0 9px rgba(217, 178, 106, 0); }
}

.chapo {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.32rem);
  line-height: 1.62;
  color: var(--petrole);
  max-width: 54ch;
}

.citation {
  font-family: var(--display);
  font-size: var(--t-l);
  line-height: 1.35;
  color: var(--petrole);
  border-left: 2px solid var(--or);
  padding-left: 1.4rem;
  margin: 2rem 0;
  max-width: 46ch;
}

/* boutons */
.bouton {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans);
  font-size: var(--t-s); font-weight: 600;
  letter-spacing: .04em;
  padding: .95rem 1.7rem;
  border-radius: 100px;
  border: 1px solid var(--petrole);
  background: var(--petrole);
  color: var(--ivoire);
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.bouton:hover { background: var(--profond); border-color: var(--profond); color: var(--blanc); transform: translateY(-2px); }
.bouton--fantome { background: transparent; color: var(--petrole); border-color: rgba(27,66,74,.3); }
.bouton--fantome:hover { background: rgba(214,229,216,.55); border-color: var(--canard); color: var(--petrole); transform: translateY(-2px); }
.bouton--clair { background: var(--or); border-color: var(--or); color: #2C2208; }
.bouton--clair:hover { background: #E5C489; border-color: #E5C489; color: #2C2208; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.baseline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  color: var(--canard);
  margin: 0;
}

/* ornement repris du filet doré du logo */
.ornement {
  display: flex; align-items: center; gap: 1rem;
  margin: 2.5rem 0 0; color: var(--or);
}
.ornement::before, .ornement::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}
.ornement svg { width: 30px; height: auto; flex: none; }
.appel .ornement { max-width: 320px; margin-inline: auto; }

/* --- 4. En-tête et navigation -------------------------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(27,66,74,.1);
}
.entete__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}
.marque { text-decoration: none; display: flex; align-items: center; gap: .7rem; line-height: 1.1; }
.marque__logo { width: 46px; height: auto; flex: none; }
.marque__texte { display: flex; flex-direction: column; }
.marque__nom { font-family: var(--display); font-size: 1.5rem; color: var(--petrole); letter-spacing: .01em; }
.marque__role {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--canard); font-weight: 600;
}
.marque__nom { white-space: nowrap; }
@media (max-width: 420px) { .marque__logo { width: 38px; } .marque__nom { font-size: 1.25rem; } }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: var(--t-xs); letter-spacing: .13em; text-transform: uppercase;
  font-weight: 600; color: var(--petrole-doux); text-decoration: none;
  padding: .35rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--or); transition: right .3s ease;
}
.nav a:hover { color: var(--petrole); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--petrole); }
.nav .bouton { padding: .6rem 1.15rem; color: var(--ivoire); }
.nav .bouton::after { display: none; }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .5rem; width: 44px; height: 44px;
}
.burger span {
  display: block; width: 22px; height: 1.5px; background: var(--petrole);
  margin: 4.5px auto; transition: transform .3s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ivoire);
    border-bottom: 1px solid rgba(27,66,74,.1);
    padding: 1rem var(--gouttiere) 2rem;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
    max-height: calc(100vh - 100%); overflow-y: auto;
    box-shadow: 0 24px 40px -30px rgba(27,66,74,.55);
  }
  .nav[data-ouvert="true"] {
    transform: translateY(0);
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform .3s ease, opacity .3s ease, visibility 0s;
  }
  .nav a { width: 100%; padding: .95rem 0; border-bottom: 1px solid rgba(27,66,74,.08); font-size: .8rem; }
  .nav a::after { display: none; }
  .nav .bouton { margin-top: 1.2rem; border-bottom: 0; justify-content: center; }
}

/* --- 5. Héros ------------------------------------------ */
.heros { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5.5rem); }
.heros__grille {
  display: grid; gap: clamp(2.5rem, 6vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .heros__grille { grid-template-columns: 1.15fr .85fr; }
}
.heros--page { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.heros--page .heros__grille { grid-template-columns: 1fr; max-width: 46rem; }
.heros--page h1 { font-size: var(--t-xl); }

.heros h1 { margin: 1.2rem 0 1.5rem; }
.heros h1 em { font-style: italic; color: var(--or-fonce); }

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 52% 48% 44% 56% / 46% 52% 48% 54%;
  background-image: var(--photo, none), linear-gradient(155deg, var(--sable-fonce) 0%, #F7E3C2 45%, var(--sauge) 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 70px -42px rgba(23,56,63,.5);
}
.portrait::after {
  content: ""; position: absolute; inset: -14px;
  border: 1px solid rgba(153,185,162,.55);
  border-radius: inherit;
}

.heros__logo { position: relative; display: flex; justify-content: center; }
.heros__logo img { width: min(100%, 460px); height: auto; }
.heros__logo::before {
  content: ""; position: absolute; inset: 4% 0 auto;
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,220,185,.75), transparent 62%);
  z-index: -1;
}

/* --- 6. Blocs sur le fil (méridien) -------------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--sauge { background: var(--sable); }
.section--profond { background: var(--profond); color: rgba(255,255,255,.8); }
.section--profond h2, .section--profond h3 { color: var(--blanc); }
.section--profond .surtitre { color: var(--sable-fonce); }

.bloc { position: relative; }
.bloc + .bloc { margin-top: clamp(2.6rem, 6vw, 4.5rem); }

@media (min-width: 900px) {
  .bloc { padding-left: calc(var(--fil) + 44px); }
  .bloc__rail {
    position: absolute; left: 0; top: .35rem; width: var(--rail);
    text-align: right;
  }
  /* le fil : un trait continu qui traverse les blocs */
  .bloc::before {
    content: ""; position: absolute;
    left: var(--fil); top: 0; bottom: calc(-1 * clamp(2.6rem, 6vw, 4.5rem));
    width: 1px; background: rgba(153,185,162,.7);
  }
  .bloc:last-child::before,
  .bloc:last-of-type::before { bottom: 0; }
  .bloc__rail::after {
    content: ""; position: absolute;
    left: calc(var(--fil) - 3.5px); top: .55rem;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ivoire);
    border: 1px solid var(--sauge);
    transition: background .5s ease, border-color .5s ease, transform .5s ease;
  }
  .section--sauge .bloc__rail::after { background: var(--sable); }
  .section--profond .bloc::before { background: rgba(214,229,216,.3); }
  .section--profond .bloc__rail::after { background: var(--profond); border-color: var(--sable-fonce); }
  /* chaque bloc allume son chakra, de la couronne (en haut) à la racine */
  .bloc.est-visible .bloc__rail::after {
    background: var(--noeud, var(--or));
    border-color: var(--noeud, var(--or));
    transform: scale(1.4);
  }
}
.bloc__rail .surtitre { display: inline-flex; }
@media (max-width: 899px) {
  .bloc__rail { margin-bottom: .9rem; }
}

/* la couleur du nœud suit l'ordre des chakras du logo */
.bloc:nth-of-type(1) { --noeud: var(--couronne); }
.bloc:nth-of-type(2) { --noeud: var(--troisieme); }
.bloc:nth-of-type(3) { --noeud: var(--gorge); }
.bloc:nth-of-type(4) { --noeud: var(--coeur); }
.bloc:nth-of-type(5) { --noeud: var(--plexus); }
.bloc:nth-of-type(6) { --noeud: var(--sacre); }
.bloc:nth-of-type(7) { --noeud: var(--racine); }

/* --- 7. Listes et grilles ------------------------------ */
.liste-motifs {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3rem);
}
.liste-motifs li {
  padding: 1.05rem 0 1.05rem 1.6rem;
  border-top: 1px solid rgba(27,66,74,.12);
  position: relative;
  color: var(--petrole);
  font-size: 1.02rem;
  line-height: 1.5;
}
.liste-motifs li::before {
  content: ""; position: absolute; left: 0; top: 1.55rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--or);
}

/* pastilles : chaque étiquette prend une teinte de l'herbier */
.pastilles { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.pastilles li {
  border: 1px solid transparent;
  color: var(--petrole);
  border-radius: 100px;
  padding: .45rem 1.2rem;
  font-size: var(--t-s);
  background: var(--gorge);
}
.pastilles li:nth-child(4n+2) { background: var(--coeur); }
.pastilles li:nth-child(4n+3) { background: var(--plexus); }
.pastilles li:nth-child(4n+4) { background: var(--sacre); }

.duo {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}
.carte {
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(153,185,162,.45);
  border-radius: var(--rayon);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.carte h3 { font-size: 1.3rem; }
.carte p { font-size: var(--t-s); }

/* étapes numérotées (séance) */
.etapes { list-style: none; counter-reset: etape; padding: 0; margin: 2rem 0 0; }
.etapes li {
  counter-increment: etape;
  position: relative;
  padding: 0 0 2rem 3.4rem;
  border-left: 1px solid rgba(153,185,162,.7);
  margin-left: .5rem;
}
.etapes li:last-child { border-left-color: transparent; padding-bottom: 0; }
.etapes li::before {
  content: "0" counter(etape);
  position: absolute; left: -1.1rem; top: -.15rem;
  background: var(--ivoire);
  color: var(--or-fonce);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em;
  padding: .15rem 0;
  width: 2.2rem; text-align: center;
}
.section--sauge .etapes li::before { background: var(--sable); }
.etapes h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.etapes p { font-size: var(--t-s); margin-bottom: 0; }

/* tarif */
.tarif {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 1.6rem;
  border-top: 1px solid rgba(27,66,74,.16);
  border-bottom: 1px solid rgba(27,66,74,.16);
  padding: 1.6rem 0; margin: 2rem 0;
}
.tarif__prix {
  font-family: var(--display); font-size: clamp(3rem, 8vw, 4.4rem);
  color: var(--or-fonce); line-height: 1;
}
.tarif__detail { font-size: var(--t-s); max-width: 34ch; margin: 0; }

/* avertissement légal */
.avertissement {
  border-left: 3px solid var(--sauge);
  background: rgba(214,229,216,.5);
  padding: 1.2rem 1.5rem;
  margin: 2.5rem 0 0;
  font-size: var(--t-s);
  border-radius: 0 var(--rayon) var(--rayon) 0;
}
.avertissement p { max-width: none; }
.avertissement strong { color: var(--petrole); }

/* --- 8. Contact & formulaire --------------------------- */
.coordonnees { list-style: none; padding: 0; margin: 1.8rem 0 0; }
.coordonnees li {
  padding: .95rem 0;
  border-top: 1px solid rgba(27,66,74,.12);
  display: grid; gap: .15rem;
}
.coordonnees .etiquette {
  font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase;
  color: var(--canard); font-weight: 600;
}
.coordonnees a, .coordonnees span { color: var(--petrole); font-size: 1.05rem; }

.formulaire { display: grid; gap: 1.1rem; margin-top: 2rem; max-width: 620px; }
.champ { display: grid; gap: .4rem; }
.champ label {
  font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--petrole);
}
.champ input, .champ textarea, .champ select {
  font: inherit; font-size: var(--t-s);
  color: var(--petrole);
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(153,185,162,.7);
  border-radius: 10px;
  padding: .8rem .95rem;
  width: 100%;
}
.champ textarea { min-height: 160px; resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--canard); }
.pot-de-miel { position: absolute; left: -9999px; opacity: 0; }
.mention-rgpd { font-size: .8rem; color: var(--petrole-doux); }

.message {
  border-radius: var(--rayon);
  padding: 1rem 1.2rem;
  font-size: var(--t-s);
  margin-bottom: 1.5rem;
}
.message--ok { background: var(--coeur); border-left: 3px solid var(--canard); color: var(--petrole); }
.message--ko { background: var(--sacre); border-left: 3px solid #B87A4A; color: var(--petrole); }

/* --- 9. Appel à l'action ------------------------------- */
.appel { text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.appel h2 { max-width: 20ch; margin-inline: auto; }
.appel p { margin-inline: auto; }
.appel .actions { justify-content: center; }

/* --- 10. Pied de page ---------------------------------- */
.pied {
  background: var(--profond);
  color: rgba(255,255,255,.8);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: var(--t-s);
}
.pied__grille {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pied h3 {
  color: var(--blanc); font-family: var(--sans); font-size: var(--t-xs);
  letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem;
}
.pied a { color: rgba(255,255,255,.85); text-decoration: none; }
.pied a:hover { color: var(--or); text-decoration: underline; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.pied .marque__nom { color: var(--blanc); }
.pied .marque__role { color: var(--sable-fonce); }
.pied__bas {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .78rem;
}
.pied__note { max-width: 60ch; font-size: .78rem; margin-top: 1.5rem; color: rgba(255,255,255,.7); }

/* --- 11. Apparition au défilement ---------------------- */
.reveler { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveler.est-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveler { opacity: 1; transform: none; }
}

/* --- 12. Impression ------------------------------------ */
@media print {
  .entete, .pied, .actions, .burger { display: none !important; }
  body { background: #fff; color: #000; }
}

/* --- 13. Variante de bouton sur fond forêt ------------- */
.bouton--contour { background: transparent; border-color: rgba(255,255,255,.4); color: var(--blanc); }
.bouton--contour:hover { background: rgba(255,255,255,.1); border-color: var(--blanc); color: var(--blanc); }
