/* ==========================================================================
   KB BEAUTY — Montélimar
   Charte : crème et nude, arches, serif fine en capitales espacées.
   ========================================================================== */

:root {
  /* Teintes relevées sur les photos du salon :
     drap crème, gris chauds, noir des cols roulés, brun des cheveux, nude de la peau. */
  --creme: #f4efe7;     /* drap, fond principal */
  --creme-2: #eae4da;   /* fond alterné */
  --sable: #dcd5c9;     /* bandeaux */
  --nude: #9f8173;      /* carnation, accent doux */
  --caramel: #7d6154;   /* accent lisible sur fond clair */
  --brun: #3b3027;      /* cheveux, fonds profonds */
  --encre: #1e1a17;     /* texte courant */
  --noir: #120f0e;      /* noir des cols roulés */
  --gris: #625b55;      /* textes secondaires, contraste 4,9:1 sur crème */

  --filet: rgba(30, 26, 23, 0.15);
  --filet-fort: rgba(30, 26, 23, 0.32);
  --filet-clair: rgba(244, 239, 231, 0.22);

  /* Instrument Serif : didone modernisée, élégante sans déliés fragiles.
     Schibsted Grotesk : grotesque contemporaine, très lisible en petit corps. */
  --display: "Instrument Serif", "Didot", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gothic: "UnifrakturMaguntia", "Instrument Serif", serif;

  --marge: clamp(1.25rem, 4.4vw, 5.5rem);
  --contenu: 1400px;
  --gouttiere: max(var(--marge), calc((100% - var(--contenu)) / 2));
  --arche: 999px 999px 0 0;
  --lent: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --doux: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  background: var(--creme) url("../img/grain.png?v=4cfd4d7a") 0 0 / 200px 200px;   /* même fond que le corps : aucune bande sur les écrans > 1920px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  color-scheme: light;
  scroll-padding-top: 8.5rem;          /* l'en-tête collant ne masque plus les ancres */
}

*, *::before, *::after { -webkit-tap-highlight-color: rgba(159, 129, 115, 0.18); }

/* Repère au clavier, dans les tons de la marque */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
  border-radius: 1px;
}
:where(a, button, input, [tabindex]):focus:not(:focus-visible) { outline: none; }

body {
  max-width: 1920px;
  margin-inline: auto;
  background: var(--creme);
  background-image: url("../img/grain.png?v=4cfd4d7a");
  background-size: 200px 200px;
  touch-action: manipulation;
  padding-bottom: env(safe-area-inset-bottom);
  color: var(--encre);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.003em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--nude); color: var(--creme); }

/* --- Typographie --------------------------------------------------------- */

/* Capitales serif très espacées : la signature de la charte */

/* Titres de section en minuscules, tout en douceur */
.titre-bas {
  font-family: "Cormorant Garamond", "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  line-height: 1.08; letter-spacing: 0.005em;
  text-wrap: balance;
  text-decoration: underline;
  text-decoration-color: var(--caramel);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.sur {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gris);
}

.txt { text-wrap: pretty; font-size: clamp(1rem, 1.05vw, 1.0625rem); color: #45403b; max-width: 42ch; line-height: 1.72; }
.txt + .txt { margin-top: 1.1rem; }
.txt b { font-weight: 400; color: var(--encre); }


/* --- Boutons -------------------------------------------------------------- */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 1.05rem 2.2rem;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--encre); color: var(--encre);
  overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--encre);
  transform: translateY(101%); transition: transform var(--doux); z-index: -1;
}
.btn:hover { color: var(--creme); }
.btn:hover::before { transform: translateY(0); }
.btn i { display: block; width: 20px; height: 1px; background: currentColor; transition: width var(--doux); }
.btn:hover i { width: 32px; }

.btn--plein { color: var(--creme); }
.btn--plein::before { transform: translateY(0); }
.btn--plein:hover { color: var(--encre); }
.btn--plein:hover::before { transform: translateY(101%); }

.btn--clair { border-color: var(--creme); color: var(--creme); }
.btn--clair::before { background: var(--creme); }
.btn--clair:hover { color: var(--encre); }

.ul { position: relative; display: inline-block; }
.ul::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--doux);
}
.ul:hover::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   Écran d'entrée
   ========================================================================== */

.entree {
  position: fixed; inset: 0; z-index: 200; background: var(--creme-2);
  display: grid; place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.entree__marque { width: clamp(118px, 15vw, 178px); opacity: 0; transform: scale(0.94); filter: brightness(0) saturate(0) opacity(0.82); }
.entree.est-pret .entree__marque { animation: marqueIn 1.1s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes marqueIn { to { opacity: 1; transform: none; } }
.entree__barre {
  position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
  width: min(160px, 40vw); height: 1px; background: rgba(38,34,31,0.16);
}
.entree__barre span { display: block; height: 100%; width: 0; background: var(--caramel); transition: width 1.1s ease; }
.entree.est-pret .entree__barre span { width: 100%; }
.entree.est-fini { opacity: 0; visibility: hidden; }
body.charge { overflow: hidden; }

.evite { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.evite:focus {
  position: fixed; left: 50%; top: 12px; transform: translateX(-50%);
  width: auto; height: auto; z-index: 300;
  background: var(--encre); color: var(--creme); padding: 0.85rem 1.5rem;
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
}

/* ==========================================================================
   En-tête
   ========================================================================== */

.annonce {
  background: var(--sable); color: var(--brun);
  padding-inline: max(1rem, env(safe-area-inset-left));
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  text-align: center; padding: 0.75rem 1rem;
}
.annonce b { font-weight: 400; }
.annonce span { opacity: 0.45; margin: 0 0.7rem; }

.tete {
  position: sticky; top: 0; z-index: 90;
  background: var(--creme);
  border-bottom: 1px solid transparent;
  transition: border-color var(--doux);
}
.tete.est-collee { border-bottom-color: var(--filet); }

.tete__barre {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem; padding: 1.15rem var(--marge) 0.85rem;
}
.tete__cote { display: flex; align-items: center; gap: 1.4rem; }
.tete__cote--droit { justify-content: flex-end; }
.tete__lien { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.icone { display: grid; place-items: center; width: 34px; height: 34px; color: var(--encre); transition: color var(--doux), transform var(--doux); }
.icone svg { width: 19px; height: 19px; }
.icone:hover { color: var(--caramel); transform: translateY(-2px); }

.tete__logo { justify-self: center; display: block; }
.tete__logo img { height: clamp(30px, 3.4vw, 40px); width: auto; }
.tete__baseline {
  display: block; text-align: center; margin-top: 0.45rem;
  font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gris); font-weight: 500;
}

.nav { display: flex; justify-content: center; gap: clamp(1.4rem, 3.2vw, 3rem); padding: 0 var(--marge) 1rem; }
.nav a { position: relative; padding: 0.55rem 0.15rem; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; transition: color var(--doux); }
.nav a:hover { color: var(--caramel); }
.nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -8px; height: 1px;
  background: var(--caramel); transition: left var(--doux), right var(--doux);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { left: 0; right: 0; }

.burger { display: none; flex-direction: column; gap: 6px; padding: 8px 0; }
.burger span { display: block; width: 26px; height: 1px; background: var(--encre); transition: transform var(--doux), opacity 0.3s; }
.burger.est-ouvert span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.est-ouvert span:nth-child(2) { opacity: 0; }
.burger.est-ouvert span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tiroir {
  position: fixed; inset: 0; width: 100%; z-index: 120;
  overscroll-behavior: contain; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--creme);
  padding: 6.5rem var(--marge) max(3rem, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: flex-start;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s 0.75s;
}
.tiroir.est-ouvert { visibility: visible; clip-path: inset(0 0 0 0); transition-delay: 0s; }
.tiroir__barre {
  position: absolute; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0.95rem var(--marge) 0.75rem;
  border-bottom: 1px solid var(--filet);
}
.tiroir__logo { justify-self: center; height: 30px; width: auto; }
.tiroir__fermer {
  position: relative; width: 44px; height: 44px; margin-left: -9px;
  display: block; background: none; border: 0; cursor: pointer; color: var(--encre);
}
.tiroir__fermer span {
  position: absolute; left: 9px; top: 50%; width: 26px; height: 1px; background: currentColor;
}
.tiroir__fermer span:first-child { transform: rotate(45deg); }
.tiroir__fermer span:last-child { transform: rotate(-45deg); }
.tiroir__liens a, .tiroir__pied a {
  display: block; font-family: var(--display); font-size: clamp(2rem, 8.5vw, 2.9rem);
  line-height: 1.3; border-bottom: 1px solid var(--filet); padding: 0.45rem 0;
}
.tiroir__liens a span { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; font-weight: 500; color: var(--gris); vertical-align: super; margin-right: 0.9rem; }
.tiroir__liens { margin-top: auto; }
.tiroir__pied { margin-top: 2.25rem; margin-bottom: auto; display: flex; flex-direction: column; gap: 0.6rem; }
html.menu-ouvert { overflow: hidden; }
html.menu-ouvert body { overflow: hidden; touch-action: none; }

/* ==========================================================================
   Accueil : photo plein cadre, titre en capitales espacées par-dessus
   ========================================================================== */

.scene {
  position: relative; overflow: hidden; background: var(--creme-2);
}
.scene__img {
  display: block; width: 100%;
  height: clamp(260px, calc(100svh - 192px), 1100px);   /* pleine largeur, et la photo tient dans le premier écran */
  object-fit: cover; object-position: 50% 42%;
  transform: scale(1.06); transition: transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.scene.is-in .scene__img { transform: scale(1); }
.scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(23,19,16,0.14) 0%, rgba(23,19,16,0) 28%, rgba(23,19,16,0.10) 62%, rgba(23,19,16,0.5) 100%),
    linear-gradient(264deg, rgba(23,19,16,0.42) 0%, rgba(23,19,16,0.12) 34%, rgba(23,19,16,0) 58%);
}
.scene__texte {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: max-content; max-width: 60%;
  padding-inline: clamp(1.25rem, 3.5vw, 4rem);
  text-align: center; color: #fff; z-index: 2;
}
.scene__titre {
  width: clamp(124px, 14vw, 196px);
  margin: 0 auto 1.15rem;
}
.scene__titre img {
  width: 100%; height: auto;
  filter: drop-shadow(0 2px 16px rgba(23, 19, 16, 0.45));
}
.scene__lieu { white-space: nowrap; font-size: 11.5px; letter-spacing: 0.24em; font-weight: 500; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(23,19,16,0.75), 0 2px 16px rgba(23,19,16,0.55); }

/* ==========================================================================
   Bandeaux défilants
   Fondu aux extrémités, alternance italique / capitales, losange de séparation.
   ========================================================================== */

.defile {
  overflow: hidden;
  padding: 0.65rem 0;
  position: relative;
}
.defile::before, .defile::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 7%; z-index: 1; pointer-events: none;
}
.defile::before { left: 0; background: linear-gradient(90deg, var(--encre), transparent); }
.defile::after { right: 0; background: linear-gradient(270deg, var(--encre), transparent); }
.defile--sombre { background: var(--encre); color: var(--creme); }

.defile__piste {
  display: flex; align-items: center; width: max-content;
  will-change: transform;
  animation: glisse 62s linear infinite;
}
@keyframes glisse { to { transform: translateX(-25%); } }

/* Le défilement ralentit au survol au lieu de s'arrêter net */
.defile__piste { transition: none; }
.defile:hover .defile__piste { animation-play-state: paused; }

.defile__mot {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1;
  white-space: nowrap;
  padding: 0 clamp(1.1rem, 2.2vw, 1.9rem);
}
.defile__mot--caps {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.64rem, 0.88vw, 0.74rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* Losange fin : plus discret et plus soigné qu'une pastille pleine */
.defile__sep {
  flex: none;
  width: 4px;
  aspect-ratio: 1;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 0.42;
}
.defile--sombre .defile__sep { background: var(--nude); opacity: 0.85; }

/* ==========================================================================
   Trames
   ========================================================================== */

.bloc { padding: clamp(3.75rem, 7vw, 7.5rem) var(--gouttiere); }
.bloc > * { max-width: var(--contenu); margin-inline: auto; }
.bloc--creme { background: var(--creme-2); }
.bloc--sable { background: var(--sable); }
.bloc--blanc { background: #fff; }

.bloc__tete { text-align: center; margin-bottom: clamp(2.25rem, 4.2vw, 3.75rem); }
.bloc__tete .sur { display: block; margin-bottom: 0.9rem; }

/* --- Libellé de section aligné -------------------------------------------- */

.repere {
  display: block; padding: clamp(1.1rem, 2vw, 1.6rem) var(--gouttiere);
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gris); font-weight: 500;
  border-bottom: 1px solid var(--filet);
}

/* --- Arche : la forme signature de la charte ------------------------------ */

.arche { border-radius: var(--arche); overflow: hidden; background: var(--creme-2); }
.arche img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s cubic-bezier(0.22,1,0.36,1), filter 0.8s ease; }
.arche:hover img { transform: scale(1.045); }
.soin:hover .soin__nom { color: var(--caramel); }
.soin__nom { transition: color var(--doux); }

/* --- Présentation « bonjour » --------------------------------------------- */

.presentation {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.presentation__arche { width: 100%; max-width: 460px; aspect-ratio: 3 / 4; justify-self: center; border: 2px solid var(--noir); }
.presentation__texte h2 { margin-bottom: 1.5rem; }
.presentation__texte .btn { margin-top: 2.1rem; }

/* --- Horaires et contact --------------------------------------------------- */

.infos {
  display: grid; grid-template-columns: 1fr 1px 1fr minmax(0, 360px);
  gap: 0 clamp(1.5rem, 4.5vw, 4.5rem); align-items: center;
}
.infos__filet { background: var(--filet); width: 1px; align-self: stretch; }
.infos__arche { width: 100%; max-width: 360px; aspect-ratio: 3 / 4; justify-self: center; border: 2px solid var(--noir); }
.infos__col { text-align: center; }
.infos__col h2 { margin-bottom: 1.9rem; }
.infos__lignes { display: grid; gap: 0; max-width: 340px; width: 100%; margin-inline: auto; }
.infos__lignes > * {
  display: block; padding: 0.95rem 0;
  border-bottom: 1px solid var(--filet);
  font-size: 0.9375rem; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.infos__lignes > *:first-child { border-top: 1px solid var(--filet); }
.infos__lignes dt {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gris); font-weight: 500;
  padding-bottom: 0.15rem; border-bottom: 0;
}
.infos__lignes dd { padding-top: 0; font-size: clamp(0.95rem, 1.4vw, 1.15rem); }
.infos__lignes .paire { padding: 0.85rem 0; border-bottom: 1px solid var(--filet); }
.infos__lignes .paire:first-child { border-top: 1px solid var(--filet); }
.infos__lignes .paire dt, .infos__lignes .paire dd { padding: 0; border: 0; }

/* --- Prestations en arches ------------------------------------------------- */

.soins {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.6vw, 2.25rem); row-gap: 0;
  grid-template-rows: auto auto;
}
.soin { display: block; text-align: center; }
.soin .arche { aspect-ratio: 3 / 4; border: 2px solid var(--noir); }
.soin__nom {
  font-family: "Cormorant Garamond", "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(1.75rem, 2.7vw, 2.4rem);
  line-height: 1.15; letter-spacing: 0.01em;
  color: var(--encre); text-align: center;
  margin-top: 1.4rem; padding-top: 0.9rem; position: relative;
}
.soin__nom::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 1px; background: var(--caramel);
}

/* Légendes en quinconce, images alignées sur une même ligne (comme le modèle) */
@supports (grid-template-rows: subgrid) {
  .soin { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
  .soin .arche { grid-row: 1; }
  .soin .soin__nom { grid-row: 2; }
}
.soins__note { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); font-size: 13.5px; color: var(--gris); }

/* --- Carte des tarifs ------------------------------------------------------ */


.carte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; }
.carte__panneau { display: flex; flex-direction: column; border: 1px solid var(--filet-fort); background: var(--creme); padding: clamp(1.75rem, 3.2vw, 2.75rem); }
.carte__panneau .tarifs { flex: 1; }

.carte__entete {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: baseline;
  padding-bottom: 1.4rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--filet-fort);
}
.carte__titre { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; }
.carte__sous { margin-top: 0.35rem; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--gris); }

.tarifs { list-style: none; }
.tarif {
  display: grid; grid-template-columns: minmax(0, auto) minmax(1.5rem, 1fr) auto;
  align-items: baseline; column-gap: 0.85rem;
  padding: 1rem 0.65rem; margin: 0 -0.65rem;
  border-bottom: 1px solid var(--filet);
  transition: background var(--doux);
}
.tarif:last-child { border-bottom: 0; }
.tarif:hover { background: rgba(255, 255, 255, 0.6); }
.tarif__corps { min-width: 0; }
.tarif__nom { display: block; font-size: 1.0625rem; color: var(--encre); }
.tarif__tag {
  display: inline-block; margin-left: 0.55rem; padding: 0.12rem 0.5rem; vertical-align: 0.15em;
  font-style: normal; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  color: var(--caramel); border: 1px solid var(--caramel);
}
.tarif__duree { display: block; margin-top: 0.2rem; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--gris); font-variant-numeric: tabular-nums; }
.tarif__trait { border-bottom: 1px dotted var(--filet-fort); transform: translateY(-0.3em); }
.tarif__prix { font-family: var(--display); font-size: 1.4rem; color: var(--caramel); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Remplissages : trois tarifs selon le délai */
.grille { width: 100%; border-collapse: collapse; margin-top: 0.25rem; }
.grille th, .grille td { padding: 0.85rem 0.35rem; border-bottom: 1px solid var(--filet); vertical-align: middle; }
.grille thead th { padding-top: 0; padding-bottom: 0.6rem; border-bottom: 1px solid var(--filet-fort); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--gris); text-align: center; white-space: nowrap; }
.grille tbody th { text-align: left; font-weight: 400; padding-left: 0; }
.grille tbody tr:last-child th, .grille tbody tr:last-child td { border-bottom: 0; }
.grille tbody tr { transition: background var(--doux); }
.grille tbody tr:hover { background: rgba(255, 255, 255, 0.6); }
.grille__nom { display: block; font-size: 1.0625rem; color: var(--encre); }
.grille__detail { display: block; margin-top: 0.2rem; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--gris); }
.grille td { width: 19%; text-align: center; font-family: var(--display); font-size: 1.3rem; color: var(--caramel); font-variant-numeric: tabular-nums; white-space: nowrap; }
.grille td:last-child { padding-right: 0; }
.carte__astuce { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--filet); font-size: 0.875rem; color: var(--gris); line-height: 1.6; }
.carte__pied { text-align: center; margin-top: clamp(2.5rem, 4.5vw, 3.75rem); }
.carte__note { max-width: 58ch; margin: 0 auto 1.75rem; font-family: var(--display); font-style: italic; font-size: 1.1rem; line-height: 1.55; color: var(--brun); text-wrap: pretty; }

/* --- Vitrines ------------------------------------------------------------- */

.vitrines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.vitrine { aspect-ratio: 2 / 3; }
.vitrines__lien { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }

/* --- Pied de page ------------------------------------------------------------ */

.pied {
  position: relative; overflow: hidden; overflow-x: clip;
  background: var(--brun); color: rgba(244, 239, 231, 0.78);
  padding: clamp(2.25rem, 4vw, 3.25rem) var(--gouttiere) 1.25rem;
}
.pied > * { position: relative; }
.pied__sceau {
  position: absolute; right: -5%; bottom: -14%; max-width: 70vw;
  width: min(38vw, 460px); height: auto; opacity: 0.06; pointer-events: none;
}
.pied__haut {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-bottom: clamp(1.25rem, 2.4vw, 1.75rem); border-bottom: 1px solid rgba(244, 239, 231, 0.16);
}
.pied__logo { width: clamp(140px, 15vw, 190px); height: auto; }
.pied__accroche {
  margin-top: 0.6rem; font-family: var(--display); font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(244, 239, 231, 0.7);
}
.pied__colonnes {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.5rem, 2.8vw, 2.25rem) 0;
}
.pied__titre {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  color: var(--creme); margin-bottom: 0.8rem; padding-bottom: 0.5rem; position: relative;
}
.pied__titre::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 1px; background: var(--nude); }
.pied__adresse { font-style: normal; font-size: 0.9375rem; line-height: 1.55; }
.pied__adresse a { color: var(--creme); }
.pied__note { margin-top: 0.5rem; font-size: 0.8125rem; color: rgba(244, 239, 231, 0.5); }
.pied__horaires div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; font-size: 0.875rem; }
.pied__horaires dt { color: rgba(244, 239, 231, 0.6); }
.pied__horaires dd { font-variant-numeric: tabular-nums; color: var(--creme); white-space: nowrap; }
.pied__liens { display: grid; gap: 0.4rem; justify-items: start; }
.pied__liens a { font-size: 0.875rem; color: rgba(244, 239, 231, 0.88); }
.pied__bas {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap;
  padding-top: 1.1rem; border-top: 1px solid rgba(244, 239, 231, 0.16);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244, 239, 231, 0.5);
}
.pied__legal { display: flex; flex-wrap: wrap; gap: 0.2rem 0.7rem; }
.pied__legal a { white-space: nowrap; }
.pied__retour { color: rgba(244, 239, 231, 0.7); padding: 0.5rem 0; }

/* --- Formation ----------------------------------------------------------------- */

.formation__intro { max-width: 52ch; margin: 1.2rem auto 0; font-size: 1.0625rem; color: #4b4540; text-wrap: pretty; line-height: 1.7; }

.formation__duo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(2rem, 4.5vw, 5rem); align-items: center;
  max-width: 1240px; margin: 0 auto;
}
.formation__arche { width: 100%; max-width: 420px; aspect-ratio: 3 / 4; justify-self: center; border: 2px solid var(--noir); }
.fiche { max-width: 920px; margin: 0 auto; background: var(--creme); border: 1px solid var(--filet-fort); padding: clamp(1.75rem, 3.4vw, 3rem); }
.fiche__points { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 2.5rem; }
.fiche__points li { position: relative; padding: 0.55rem 0 0.55rem 1.7rem; font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; border-bottom: 1px solid var(--filet); }
.fiche__points li::before { content: ""; position: absolute; left: 3px; top: 0.85rem; width: 6px; height: 11px; border: solid var(--caramel); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.fiche__faits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(1.5rem, 2.8vw, 2.25rem); padding-top: clamp(1.5rem, 2.8vw, 2.25rem); border-top: 1px solid var(--filet-fort); }
.fiche__faits div { border-left: 1px solid var(--filet-fort); padding-left: 0.9rem; }
.fiche__faits dt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--gris); }
.fiche__faits dd { margin-top: 0.35rem; font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--encre); font-variant-numeric: tabular-nums; line-height: 1.2; }
.fiche__faits div:nth-child(2) dd { color: var(--caramel); font-size: clamp(1.5rem, 2.4vw, 2rem); }

.fiche__cpf { margin-top: clamp(1.5rem, 2.8vw, 2.25rem); padding-top: 1.2rem; border-top: 1px solid var(--filet); font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--brun); text-align: center; }

.formation__fin { text-align: center; margin-top: clamp(2rem, 3.5vw, 2.75rem); }
.formation__cta { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }

/* --- Fonds de section ------------------------------------------------------------ */

/* Filigrane du tampon, très pâle, dans le coin des grandes sections claires */
.bloc { position: relative; overflow: hidden; }
.bloc > * { position: relative; z-index: 1; }
.bloc--filigrane::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: min(48vw, 560px); aspect-ratio: 1649 / 1773;
  background: url("../img/filigrane-kb.png?v=f020f3e5") center / contain no-repeat;
}
#salon.bloc--filigrane::before { right: -8%; top: -6%; }
#prestations.bloc--filigrane::before { right: -9%; top: -10%; width: min(36vw, 420px); }
#formation.bloc--filigrane::before { right: -6%; bottom: -14%; }

/* Fin liseré double sous le bandeau d'annonce, et sur les transitions crème → blanc */
.bloc--blanc { box-shadow: inset 0 1px 0 var(--filet), inset 0 -1px 0 var(--filet); }

/* Les panneaux de la carte et de la formation reçoivent un coin marqué, façon carte imprimée */
.carte__panneau, .fiche { position: relative; }
.carte__panneau::after, .fiche::after {
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--filet); pointer-events: none;
}

/* --- Pages légales --------------------------------------------------------------- */

.tete--page .tete__barre { padding-bottom: 1.1rem; }
.page { max-width: 820px; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--marge) clamp(4rem, 7vw, 6rem); }
.page__tete { text-align: center; margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem); }
.page__tete .sur { display: block; margin-bottom: 0.7rem; }
.page__tete h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.page__maj { margin-top: 1rem; font-size: 0.875rem; color: var(--gris); }
.page__intro { font-size: 1.0625rem; line-height: 1.7; color: #3a3530; margin-bottom: clamp(2rem, 3.5vw, 2.75rem); padding-bottom: clamp(2rem, 3.5vw, 2.75rem); border-bottom: 1px solid var(--filet-fort); text-wrap: pretty; }
.page__bloc { margin-bottom: clamp(2rem, 3.5vw, 2.75rem); }
.page__bloc h2 { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.15; margin-bottom: 0.9rem; }
.page__bloc h3 { font-size: 1.0625rem; font-weight: 500; color: var(--encre); margin: 1.4rem 0 0.5rem; }
.page__bloc p { font-size: 1rem; line-height: 1.75; color: #3a3530; text-wrap: pretty; }
.page__bloc p + p { margin-top: 0.8rem; }
.page__fiche { display: grid; gap: 0; margin: 0.9rem 0 0.4rem; border-top: 1px solid var(--filet); }
.page__fiche div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); column-gap: 1.25rem; padding: 0.7rem 0; border-bottom: 1px solid var(--filet); }
.page__fiche dt { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--gris); padding-top: 0.25rem; }
.page__fiche dd { font-size: 1rem; line-height: 1.6; color: var(--encre); }
.page__fiche--compacte dd { font-size: 0.9375rem; color: #3a3530; }
.page__liste { list-style: none; margin: 0.7rem 0; }
.page__liste li { position: relative; padding: 0.45rem 0 0.45rem 1.4rem; font-size: 1rem; line-height: 1.65; color: #3a3530; }
.page__liste li::before { content: "—"; position: absolute; left: 0; color: var(--caramel); }
.page__liste b { font-weight: 500; color: var(--encre); }
.acompleter { background: #fbe9c9; color: #6b4a12; padding: 0.05em 0.35em; font-style: italic; border-radius: 2px; }
.pied--page { padding-top: 1.5rem; }
.pied--page .pied__bas { border-top: 0; padding-top: 0; }
.pied__legal a { color: rgba(244, 239, 231, 0.7); padding-block: 0.3rem; }
.pied__liens .ul { padding-block: 0.2rem; }

/* ==========================================================================
   Apparition
   ========================================================================== */

.rvl { opacity: 0; transform: translateY(14px); transition: opacity var(--lent), transform var(--lent); }
.rvl.is-in { opacity: 1; transform: none; }
.rvl[data-d="1"] { transition-delay: 0.06s; }
.rvl[data-d="2"] { transition-delay: 0.12s; }
.rvl[data-d="3"] { transition-delay: 0.18s; }
.masque { clip-path: inset(0 0 100% 0); transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1); }
.masque.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .rvl, .masque { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  html { scroll-behavior: auto; }
  .entree { display: none; }
}

/* ==========================================================================
   Adaptatif
   ========================================================================== */

@media (max-width: 1200px) {
  .scene__texte { top: auto; bottom: clamp(1.25rem, 3vw, 2rem); transform: none; width: auto; max-width: 60%; text-align: right; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
  .scene__titre { width: clamp(96px, 13vw, 150px); margin: 0 0 0.8rem auto; }
  .scene__lieu { font-size: 10.5px; }
}

@media (max-width: 1080px) {
  .infos { grid-template-columns: 1fr 1px 1fr minmax(0, 300px); }
  .pied__colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soins, .vitrines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gazette__colonnes { columns: 2; }
}

@media (max-width: 900px) and (min-width: 700px) {
  .carte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .carte__panneau { padding: 1.4rem; }
  .tarif__nom, .grille__nom { font-size: 1rem; }
  .grille td { font-size: 1.15rem; }
}

@media (max-width: 900px) {
  .scene__img { height: clamp(260px, calc(100svh - 124px), 1000px); }
  .tete__barre { grid-template-columns: minmax(var(--cote), 1fr) auto minmax(var(--cote), 1fr); gap: 0.75rem; padding-block: 0.95rem 0.75rem; --cote: 104px; }
  .tete__cote { gap: 0.35rem; }
  .icone { width: 32px; height: 32px; }
  .icone svg { width: 18px; height: 18px; }
  .tete__logo img { height: 30px; }
  .tete__baseline { font-size: 8.5px; letter-spacing: 0.28em; margin-top: 0.35rem; white-space: nowrap; }
  .formation__chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nav { display: none; }
  .burger { display: flex; }
  .presentation, .manifeste { grid-template-columns: 1fr; }
  .presentation__arche { order: -1; }
  .formation__duo { grid-template-columns: 1fr; gap: 2.25rem; }
  .formation__arche { order: -1; max-width: 380px; }
  .infos { grid-template-columns: 1fr; gap: 2.75rem; }
  .infos__arche { order: -1; max-width: 380px; }
  .infos__filet { display: none; }
  .manifeste__visuel { max-width: 320px; margin-inline: auto; }
  .avis { grid-template-columns: 1fr; }
  .gazette__colonnes { columns: 1; }
}

@media (max-width: 380px) {
  .grille { table-layout: fixed; }
  .grille th:first-child { width: 50%; }
  .grille td { width: auto; font-size: 0.9rem; padding-inline: 0; }
  .grille th, .grille td { padding-block: 0.7rem; }
  .grille thead th { font-size: 8px; letter-spacing: 0.08em; }
  .grille tbody th { padding-right: 0.3rem; }
  .grille__nom { font-size: 0.88rem; }
  .grille__detail { font-size: 8.5px; letter-spacing: 0.08em; }
  .tete__barre { --cote: 88px; gap: 0.5rem; }
  .tete__logo img { height: 27px; }
  .tete__baseline { font-size: 7.5px; letter-spacing: 0.22em; }
  .annonce { font-size: 8px; letter-spacing: 0.14em; padding-inline: 0.75rem; }
  .annonce span { margin: 0 0.4rem; }
  .icone { width: 28px; height: 28px; }
  .icone svg { width: 17px; height: 17px; }
  .tete__cote { gap: 0.2rem; }
}

@media (max-width: 699px) {
  .carte { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .carte__panneau { padding: 1.4rem clamp(0.9rem, 4vw, 1.5rem); }
  .fiche__points { grid-template-columns: 1fr; gap: 0; }
  .fiche__faits { grid-template-columns: 1fr; gap: 0.75rem; }
  .formation__cta .btn { flex: 1 1 100%; justify-content: center; }
  .annonce { font-size: 8.5px; letter-spacing: 0.2em; }
  .scene__img { height: clamp(400px, 112vw, 640px); max-height: 80svh; object-position: 50% 42%; }
  .scene::after {
    background:
      linear-gradient(180deg, rgba(23,19,16,0.12) 0%, rgba(23,19,16,0) 26%, rgba(23,19,16,0.10) 52%, rgba(23,19,16,0.66) 100%);
  }
  .scene__texte {
    top: auto; bottom: clamp(1.1rem, 4.5vw, 1.75rem); left: 0; right: 0; transform: none;
    width: 100%; max-width: none; text-align: center; padding-inline: 1.25rem;
  }
  .scene__titre { width: clamp(104px, 30vw, 136px); margin: 0 auto 0.6rem; }
  .scene__lieu { font-size: 9.5px; letter-spacing: 0.22em; }
  .annonce__long { display: none; }
  .soins { grid-template-columns: 1fr; row-gap: 2.5rem; grid-template-rows: none; }
  .tarif { grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.7rem; padding: 0.9rem 0.4rem; margin: 0 -0.4rem; }
  .tarif__trait { display: none; }
  .grille td { font-size: 1.15rem; padding-inline: 0.25rem; }
  .grille__nom { font-size: 1rem; }
  .carte__pied .btn { width: 100%; justify-content: center; }
  .soin { display: block; grid-row: auto; }
  .soin .arche, .soin .soin__nom, .soin .soin__detail, .soin   .vitrines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied__colonnes { grid-template-columns: 1fr; gap: 2.25rem; }
  .pied__bas { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .page__fiche div { grid-template-columns: 1fr; row-gap: 0.2rem; }
  .pied__haut .btn { width: 100%; justify-content: center; }
  .pied__colonnes { gap: 1.5rem; }
  .rdv__cta .btn { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 300px) {
  .grille td { font-size: 0.82rem; }
  .tete__barre { --cote: 58px; gap: 0.4rem; }
  .tete__cote--droit .icone:nth-child(2) { display: none; }   /* l'appel reste accessible dans le menu */
  .icone { width: 26px; height: 26px; }
  .tete__logo img { height: 25px; }
  .tete__baseline { font-size: 7px; letter-spacing: 0.18em; }
  .annonce { font-size: 7.5px; letter-spacing: 0.1em; }
}

/* Téléphones en paysage : l'écran est très bas, la bannière du haut cède la place à la photo */
@media (max-height: 460px) and (min-width: 641px) {
  .annonce { display: none; }
}
