/* So Linéa — feuille de style unique du site */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  /* Couleurs : celles de ses supports (pastille vieux rose, fond du logo, brun des flyers) */
  --creme: #fcf8f6;
  --blush: #fbefea;
  --sable: #eadbd3;
  --rose: #a67878;
  --rose-profond: #8a5c5c;
  --brun: #6b4a42;
  --texte: #3e2c27;
  --texte-doux: #6f5a53;
  --terracotta: #c8643e;

  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --gouttiere: clamp(1.25rem, 5vw, 3rem);
  --largeur: 72rem;
  --section: clamp(4.5rem, 10vw, 8rem);
  --doux: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 8rem; } /* les ancres ne passent pas sous l'en-tête fixe */
body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font: 400 1rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rose-profond); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brun); }
:focus-visible { outline: 2px solid var(--rose-profond); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sable); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--brun); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.2vw, 4.75rem); line-height: 1.04; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
h3 { font-size: 1.65rem; line-height: 1.2; }
p { margin: 0 0 1.1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.chapeau { font-size: 1.125rem; line-height: 1.7; color: var(--texte-doux); }
.discret { color: var(--texte-doux); font-size: .9rem; }
.centre { text-align: center; }
.centre, .centre p { margin-inline: auto; }
.lien-evitement { position: absolute; left: -999px; top: 0; }
.lien-evitement:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--creme); padding: .5rem 1rem; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem; padding: .8rem 1.75rem;
  border: 1px solid var(--rose-profond); border-radius: 999px;
  background: var(--rose-profond); color: #fff;
  font: 500 .95rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none;
  transition: background-color .3s var(--doux), color .3s var(--doux), border-color .3s var(--doux);
}
.bouton:hover { background: var(--brun); border-color: var(--brun); color: #fff; }
.bouton--clair { background: transparent; color: var(--rose-profond); }
.bouton--clair:hover { background: var(--rose-profond); color: #fff; border-color: var(--rose-profond); }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

/* Lien texte avec trait qui se dessine au survol */
.lien {
  color: var(--rose-profond); text-decoration: none; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--doux);
  padding-bottom: 2px;
}
.lien:hover { background-size: 100% 1px; color: var(--rose-profond); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background-color .4s var(--doux), box-shadow .4s var(--doux);
}
/* pas de backdrop-filter : il casserait le menu mobile en position fixe */
.entete.est-defile, .menu-ouvert .entete { background: var(--creme); box-shadow: 0 1px 0 var(--sable); }
.entete .conteneur { display: flex; align-items: center; gap: 2rem; min-height: 5.5rem; padding-block: .6rem; transition: padding .4s var(--doux); }
.logo { display: block; flex: none; border-radius: 50%; }
/* Logo bien visible en haut de page, qui se réduit quand on fait défiler */
.logo img { width: 13rem; height: 13rem; border-radius: 50%; transition: width .4s var(--doux), height .4s var(--doux); }
.entete.est-defile .conteneur { padding-block: .35rem; }
.entete.est-defile .logo img { width: 4.5rem; height: 4.5rem; }
.insecable { white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.bouton) {
  color: var(--texte); text-decoration: none; font-size: .9rem; padding-block: .25rem;
  background: linear-gradient(var(--rose), var(--rose)) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--doux), color .3s;
}
.nav a:not(.bouton):hover, .nav a[aria-current="page"] { background-size: 100% 1px; color: var(--brun); }
.nav .bouton { min-height: 2.6rem; padding: .55rem 1.25rem; font-size: .875rem; }
.menu-bouton { display: none; }

@media (max-width: 960px) {
  .entete .conteneur { min-height: 6rem; padding-block: .5rem; }
  .entete.est-defile .conteneur, .menu-ouvert .entete .conteneur { padding-block: 0; }
  .logo img { width: 9.8rem; height: 9.8rem; }
  /* compact au défilement et menu ouvert : l'en-tête garde alors 6rem, la hauteur sous laquelle le menu s'ouvre */
  .entete.est-defile .logo img, .menu-ouvert .entete .logo img { width: 4.9rem; height: 4.9rem; }
  .menu-bouton {
    display: inline-flex; align-items: center; gap: .6rem; margin-left: auto;
    background: none; border: 0; padding: .5rem 0; color: var(--texte); font: 500 .9rem var(--sans); cursor: pointer;
  }
  .menu-bouton span { position: relative; display: block; width: 1.4rem; height: .75rem; }
  .menu-bouton span::before, .menu-bouton span::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .3s var(--doux), top .3s var(--doux); }
  .menu-bouton span::before { top: 1px; }
  .menu-bouton span::after { top: calc(100% - 2px); }
  .menu-ouvert .menu-bouton span::before { top: 50%; transform: rotate(45deg); }
  .menu-ouvert .menu-bouton span::after { top: 50%; transform: rotate(-45deg); }
  .nav {
    position: fixed; inset: 6rem 0 0; z-index: 40;
    flex-direction: column; align-items: flex-start; gap: .25rem;
    padding: 2rem var(--gouttiere); background: var(--creme);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .35s var(--doux), transform .35s var(--doux), visibility 0s .35s;
  }
  .menu-ouvert .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a:not(.bouton) { font: 500 2rem/1.5 var(--serif); color: var(--brun); }
  .nav .bouton { margin-top: 1.5rem; }
  .menu-ouvert { overflow: hidden; }
}

/* ---------- Ligne signature (« Linéa ») ---------- */
.ligne { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.ligne path { fill: none; stroke: var(--rose); stroke-width: 1.25; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .55; }
.trait { display: block; width: 7.5rem; height: 1.5rem; margin-bottom: 1.25rem; overflow: visible; }
.centre .trait, .rdv .trait { margin-inline: auto; }
.trait path { fill: none; stroke: var(--rose); stroke-width: 1.25; stroke-linecap: round; }

/* ---------- Héros (accueil) ---------- */
.heros { position: relative; padding-block: clamp(2rem, 6vw, 4rem) clamp(4rem, 9vw, 7rem); }
.heros .conteneur { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.heros h1 { margin-bottom: .45em; }
.heros .chapeau { max-width: 30rem; margin-bottom: 2rem; }
.surtitre { font-size: .95rem; color: var(--rose-profond); margin-bottom: 1.25rem; font-weight: 500; }

/* Cercles photo, comme sur ses flyers, avec l'anneau fin de son logo */
.cercles { position: relative; justify-self: end; width: min(100%, 34rem); }
.cercle { position: relative; aspect-ratio: 1; border-radius: 50%; }
.cercle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cercle--anneau::after {
  content: ""; position: absolute; inset: -.9rem; border-radius: 50%;
  border: 1px solid var(--rose); opacity: .6; pointer-events: none;
}
.cercle--petit { position: absolute; width: 38%; left: -8%; bottom: -4%; border: .5rem solid var(--creme); }
.cercle--petit img { object-position: 50% 62%; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--blush { background: var(--blush); }
.section--serre { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.entete-section { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.entete-section p { color: var(--texte-doux); }

.citation { font: italic 500 clamp(1.75rem, 3.6vw, 2.75rem)/1.3 var(--serif); color: var(--brun); max-width: 40ch; margin: 0 auto 1.25rem; text-wrap: balance; }
.citation + .signature { color: var(--texte-doux); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .35rem; }

.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.deux-colonnes--centre { align-items: center; }

/* Liste à filets fins */
.liste-filets li { padding-block: 1rem; border-bottom: 1px solid var(--sable); font: 500 1.4rem/1.35 var(--serif); color: var(--brun); }
.liste-filets li:first-child { border-top: 1px solid var(--sable); }
.liste-filets--sans li { font: 400 1rem/1.6 var(--sans); color: var(--texte); padding-block: .8rem; }

/* Colonnes séparées par des filets (soins, bienfaits…) */
.colonnes { display: grid; grid-template-columns: repeat(3, 1fr); }
.colonnes > * { padding: .5rem clamp(1.25rem, 3vw, 2.5rem); border-left: 1px solid var(--sable); }
.colonnes > :first-child { border-left: 0; padding-left: 0; }
.colonnes > :last-child { padding-right: 0; }
.colonnes--4 { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
.colonnes--4 > :nth-child(odd) { border-left: 0; padding-left: 0; }
.promesse { font: italic 500 1.3rem/1.4 var(--serif); color: var(--rose-profond); margin-bottom: 1rem; }
.zones { font-size: .9rem; color: var(--texte-doux); margin-bottom: 1.5rem; }
.colonnes > article { display: flex; flex-direction: column; }
.prix { font: 500 1.75rem/1.2 var(--serif); color: var(--brun); margin: auto 0 0; }
.prix small { font: 400 .875rem var(--sans); color: var(--texte-doux); margin-right: .5rem; }
.puces li { position: relative; padding-left: 1.1rem; margin-bottom: .5rem; }
.puces li::before { content: ""; position: absolute; left: 0; top: .72em; width: .35rem; height: .35rem; border-radius: 50%; background: var(--rose); }

/* Trois repères (avis, zone, diplôme) */
.reperes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.repere strong { display: block; font: 500 1.5rem/1.3 var(--serif); color: var(--brun); margin-bottom: .35rem; }
.repere p { color: var(--texte-doux); font-size: .95rem; margin-bottom: .5rem; }
.etoiles { color: var(--rose); letter-spacing: .15em; font-size: 1rem; }

/* Bloc final de prise de rendez-vous */
.rdv { text-align: center; }
.rdv .boutons { justify-content: center; margin-top: 2rem; }

/* ---------- En-tête des pages intérieures ---------- */
.entete-page { position: relative; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.entete-page .conteneur { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.entete-page .cercle { width: min(100%, 22rem); justify-self: end; }
.entete-page--simple .conteneur { grid-template-columns: 1fr; }

/* Photo de la carte cadeau : rectangle aux coins doux (un cercle couperait la carte) */
.photo-carte { border-radius: 1.75rem; overflow: hidden; box-shadow: 0 1.5rem 3rem -1.75rem rgb(107 74 66 / .45); }
.photo-carte img { width: 100%; height: auto; }
.entete-page .photo-carte { width: min(100%, 28rem); justify-self: end; }

/* Image en forme de galet allongé */
.galet { border-radius: 999px; overflow: hidden; aspect-ratio: 3 / 2; }
.galet img { width: 100%; height: 100%; object-fit: cover; }

/* Tarifs : lignes avec pointillés */
.tarifs li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--sable); }
.tarifs li:first-child { border-top: 1px solid var(--sable); }
.tarifs p { margin: 0; }
.tarifs .nom { font: 500 1.6rem/1.2 var(--serif); color: var(--brun); }
.tarifs .nom span { display: block; font: 400 .9rem/1.5 var(--sans); color: var(--texte-doux); margin-top: .25rem; }
.tarifs .points { border-bottom: 1px dotted var(--rose); transform: translateY(-.35em); }
.tarifs .valeur { font: 500 1.6rem/1.2 var(--serif); color: var(--brun); text-align: right; white-space: nowrap; }
.tarifs .valeur small { display: block; font: 400 .85rem var(--sans); color: var(--texte-doux); }

/* Étapes (carte cadeau : vraie suite d'étapes) */
.etapes { counter-reset: etape; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.etapes li { counter-increment: etape; }
.etapes li::before { content: counter(etape); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border: 1px solid var(--rose); border-radius: 50%; font: 500 1.3rem var(--serif); color: var(--rose-profond); }

/* Valeurs (à propos) */
.valeurs h3 { font-style: italic; }

/* Coordonnées et horaires */
.coordonnees li { padding-block: 1.1rem; border-bottom: 1px solid var(--sable); }
.coordonnees li:first-child { border-top: 1px solid var(--sable); }
.coordonnees .intitule { display: block; font-size: .85rem; color: var(--texte-doux); }
.coordonnees a { font: 500 1.4rem/1.4 var(--serif); text-decoration: none; }
.horaires { width: 100%; border-collapse: collapse; }
.horaires th, .horaires td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--sable); font-weight: 400; }
.horaires td { text-align: right; color: var(--texte-doux); }
.horaires .ferme td { font-style: italic; }

.vignette { display: inline-block; width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: .75rem; }

.encadre { background: var(--blush); border-radius: 2rem; padding: clamp(2rem, 5vw, 3.5rem); }

/* Formulaire de demande de rendez-vous */
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.75rem; max-width: 48rem; }
.champ { display: flex; flex-direction: column; gap: .45rem; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: .9rem; font-weight: 500; }
.champ label small { font-weight: 400; color: var(--texte-doux); font-size: .85rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 3.1rem; padding: .8rem 1rem;
  font: 400 1rem/1.5 var(--sans); color: var(--texte);
  background: #fff; border: 1px solid var(--sable); border-radius: .9rem;
  transition: border-color .3s var(--doux), box-shadow .3s var(--doux);
}
.champ textarea { resize: vertical; }
.champ select {
  appearance: none; padding-right: 2.75rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a5c5c' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 1.1rem center;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--rose-profond); box-shadow: 0 0 0 3px rgb(166 120 120 / .18); }
.champ input:user-invalid { border-color: var(--terracotta); }
.champ input::placeholder { color: #7f6f68; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.etat-envoi { margin: 0; color: var(--rose-profond); font-size: .95rem; }
.formulaire .discret { margin: 0; }
.merci { display: none; max-width: 48rem; background: var(--creme); }
.merci:target { display: block; }
#demande:has(#merci:target) #form-rdv { display: none; }
.mention-sante { font-size: .85rem; color: var(--texte-doux); border-top: 1px solid var(--sable); padding-top: 1.25rem; margin-top: 3rem; max-width: none; }
.a-completer { background: #f7e1c8; color: var(--texte); padding: 0 .3em; border-radius: 3px; }

.texte-legal h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.texte-legal p, .texte-legal li { max-width: 70ch; }

/* ---------- Pied de page ---------- */
.pied { background: var(--blush); padding-block: 4rem 2rem; font-size: .9rem; }
.pied .grille { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
.pied .logo img { width: 7.5rem; height: 7.5rem; margin-bottom: 1rem; }
.pied h2 { font-size: 1.35rem; margin-bottom: .75rem; }
.pied p { margin-bottom: .4rem; }
.pied a { color: var(--texte); text-decoration: none; }
.pied a:hover { color: var(--rose-profond); }
.pied .horaires th, .pied .horaires td { padding: .2rem 0; border: 0; font-size: .875rem; }
.pied .bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--sable); color: var(--texte-doux); font-size: .8rem; }
.pied .bas a { color: var(--texte-doux); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .heros .conteneur, .entete-page .conteneur, .deux-colonnes { grid-template-columns: 1fr; }
  .cercles { justify-self: center; width: min(88%, 26rem); order: -1; margin-bottom: 1rem; }
  .entete-page .cercle { justify-self: start; width: min(70%, 15rem); order: -1; }
  .entete-page .photo-carte { justify-self: stretch; width: 100%; order: -1; }
  .colonnes, .colonnes--4, .reperes, .etapes, .formulaire { grid-template-columns: 1fr; }
  .colonnes > *, .colonnes--4 > * { border-left: 0; padding: 2rem 0 0; border-top: 1px solid var(--sable); }
  .colonnes > :first-child { border-top: 0; padding-top: 0; }
  .pied .grille { grid-template-columns: 1fr; }
  .ordre-image-apres > :first-child { order: 2; }
  /* la ligne garde ses proportions : bandeau en bas du bloc au lieu d'être étirée en hauteur */
  .ligne { top: auto; height: 40vw; }
}
@media (max-width: 520px) {
  .tarifs li { grid-template-columns: 1fr auto; }
  .tarifs .points { display: none; }
  .boutons .bouton { flex: 1 1 100%; }
}

/* ---------- Mouvement ---------- */
/* Un seul moment orchestré à l'arrivée sur la page, puis des apparitions discrètes au fil du défilement. */
@media (prefers-reduced-motion: no-preference) {
  .js .ligne path, .js .trait path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .ligne path { animation: dessin 3.2s var(--doux) .3s forwards; }
  .js .visible .trait path, .js .trait.visible path { animation: dessin 1.6s var(--doux) .1s forwards; }

  .js .arrivee > * { opacity: 0; transform: translateY(14px); animation: arrivee 1s var(--doux) forwards; animation-delay: calc(.15s + var(--i, 0) * .12s); }
  .js .cercles .cercle:first-child img { clip-path: circle(0% at 50% 50%); transform: scale(1.08); animation: ouverture 1.6s var(--doux) .2s forwards, pose 2.4s var(--doux) .2s forwards; }
  .js .cercles .cercle--anneau::after { opacity: 0; animation: anneau 1.4s var(--doux) 1s forwards; }
  .js .cercles .cercle--petit { opacity: 0; transform: translateY(16px); animation: arrivee 1s var(--doux) 1.1s forwards; }
  .js .entete-page .cercle, .js .entete-page .photo-carte { opacity: 0; animation: arrivee 1.2s var(--doux) .25s forwards; }

  .js [data-apparition] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--doux), transform 1s var(--doux); transition-delay: calc(var(--i, 0) * .1s); }
  .js [data-apparition].visible { opacity: 1; transform: none; }

  @keyframes dessin { to { stroke-dashoffset: 0; } }
  @keyframes arrivee { to { opacity: 1; transform: none; } }
  @keyframes ouverture { to { clip-path: circle(50% at 50% 50%); } }
  @keyframes pose { to { transform: scale(1); } }
  @keyframes anneau { to { opacity: .6; } }
}
