/* ==========================================================
   IDENTITÉ DU CLIENT : Un Hair de Flo (Bessières)

   Direction « Poudre et violette » (refonte du 3 octobre 2026) :
   - fondation : le style Emma Lewisham de Refero Styles. Fond
     poudré, surfaces blanches, un seul violet profond réservé à ce
     qui se clique, titres en serif légère, boutons au contour,
     champs soulignés d'un filet, aucun ombrage ;
   - emprunts : le rythme aéré et les filets fins du style Aesop ;
     la façon dont les fiches de salons présentent les prestations
     et les horaires (ligne du jour mise en avant, état ouvert/fermé) ;
   - le motif du métier : le trait fin d'un cheveu. Une mèche se
     dessine dans l'accroche, et trois textures (lisse, ondulé,
     bouclé) tiennent la place des photos en attendant celles du salon.

   Polices auto-hébergées (licence OFL, voir assets/fonts/LICENCES.txt) :
   Noto Serif CJK en 200 et 300 pour les titres (caractères latins
   seulement ; même dessin que Source Serif), Inter 400 et 500 pour le texte.
   ========================================================== */

@font-face { font-family: "Noto Serif CJK"; src: url("/assets/fonts/notoserif-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif CJK"; src: url("/assets/fonts/notoserif-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Couleurs (noms du modèle conservés) */
  --ink: #18141f;          /* texte : noir à peine violacé */
  --pine: #49369e;         /* violet profond : la marque, la barre d'appel mobile */
  --oak: #49369e;          /* tout ce qui se clique : boutons, liens, champs */
  --oak-dark: #372879;     /* le même violet, au survol */
  --ground: #f2f1ef;       /* fond de page : poudre */
  --paper: #ffffff;        /* surfaces : bandes blanches, planches, formulaire */
  --line: #d9d5d1;         /* filets */
  --mist: #a9a7db;         /* lavande : traits des dessins, sélection de texte */
  --petal: #ec9bad;        /* pétale : pastilles, un seul trait du dessin */
  --ink-soft: #5b5564;     /* texte secondaire */
  --ink-hint: #6f6a79;     /* exemples dans les champs */

  /* Typographie */
  --font-title: "Noto Serif CJK", "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.375rem);
  --step-2: clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem);
  --step-4: clamp(2.3rem, 1.25rem + 5.2vw, 4.25rem);

  /* Mise en page */
  --wrap: 76rem;
  --gap: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 3px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* sortie douce */
}

/* ---------- Base et surfaces du navigateur ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  scrollbar-color: var(--oak) var(--ground);
  accent-color: var(--oak);
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 58rem) { html { scroll-padding-top: 6.25rem; } } /* l'en-tête reste collé en haut sur grand écran */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--ink);
  background: var(--ground);
  padding-bottom: 3.75rem; /* place pour la barre d'appel mobile */
  overflow-x: clip;
}
@media (min-width: 48rem) { body { padding-bottom: 0; } }

::selection { background: var(--mist); color: var(--ink); }
input, textarea { caret-color: var(--oak); }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 300;
  font-synthesis: none;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: var(--step-3); max-width: 18ch; }
h3 { font-size: var(--step-2); line-height: 1.2; }
p { margin: 0 0 1.1em; max-width: 62ch; text-wrap: pretty; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--oak); text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
a:hover { color: var(--oak-dark); }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb { white-space: nowrap; }

/* Réserve d'icônes SVG, invisible */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--pine); color: #fff; padding: 0.75rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; color: #fff; }
.skip:hover { color: #fff; }

/* ---------- En-tête ---------- */
.top { background: var(--ground); border-bottom: 1px solid var(--line); }
@media (min-width: 58rem) { .top { position: sticky; top: 0; z-index: 40; } }
.top__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.75rem;
}
.brand {
  font-family: var(--font-title); font-weight: 300; font-size: 1.5rem; line-height: 1;
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--oak); }
/* Le logo du salon dans l'en-tête : fixe (rien n'apparaît sur le premier écran), il s'incline au survol */
.brand--logo { display: block; flex: none; padding-block: 0.55rem; }
.brand--logo svg { display: block; height: clamp(4.5rem, 3.6rem + 3.6vw, 5.9rem); width: auto; max-width: none; transform-origin: 50% 60%; transition: transform 0.5s var(--ease); }
.brand--logo:hover svg { transform: perspective(30rem) rotateX(8deg) rotateY(-10deg); }
.nav { display: none; gap: 2.25rem; list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
@media (min-width: 58rem) { .nav { display: flex; } }
.nav a { position: relative; display: block; padding-block: 0.4rem; color: var(--ink); text-decoration: none; }

/* ---------- Boutons : un contour, jamais d'aplat au repos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  min-height: 3.25rem; padding: 0.85rem 1.6rem;
  border: 1px solid var(--oak); border-radius: var(--radius);
  background: transparent; color: var(--oak);
  font: inherit; font-weight: 500; font-size: 1rem; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { background: var(--oak); color: #fff; }
.btn--ink { border-color: var(--ink); color: var(--ink); border-radius: 0; }
.btn--ink:hover { background: var(--ink); color: #fff; }
.btn--small { min-height: 2.75rem; padding: 0.5rem 1.1rem; font-size: 0.9375rem; }
/* Sur mobile, la barre d'appel du bas remplace le bouton de l'en-tête */
.top__appel { display: none; }
@media (min-width: 48rem) { .top__appel { display: inline-flex; } }

/* Lien suivi d'une flèche */
.suite { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 500; }
.suite svg { width: 1.35rem; height: 0.8rem; flex: none; }

/* ---------- Accroche ---------- */
.hero { padding-block: clamp(2.25rem, 5vw, 3.5rem) var(--section); }
.hero__grid { display: grid; gap: 3rem var(--gap); align-items: center; }
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); gap: clamp(3rem, 6vw, 5.5rem); align-items: stretch; }
  .hero .planche { aspect-ratio: auto; min-height: 32rem; max-width: none; }
}
.hero__title {
  font-size: var(--step-4); font-weight: 200; line-height: 1.07; letter-spacing: -0.022em;
  max-width: 16ch; margin-bottom: 0.5em;
}
.hero__lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 41ch; margin: 0; }
.hero__appel { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.hero__phone {
  font-family: var(--font-title); font-weight: 300; font-size: var(--step-3); line-height: 1.1;
  letter-spacing: -0.01em; color: var(--oak); white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  text-decoration-color: var(--mist);
}
.hero__phone:hover { text-decoration-color: currentColor; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.75rem; margin-top: 1.4rem; }

/* État du salon, mis à jour par anim.js : « Ouvert » ou « Fermé » */
.statut {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 0.4em;
  margin: 0; max-width: none; padding: 0.3rem 0.9rem;
  border: 1px solid var(--line); border-radius: 50px; background: var(--paper);
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 400;
  line-height: 1.5; letter-spacing: 0; color: var(--ink-soft);
}
.statut[hidden] { display: none; }
.statut__mot { font-weight: 500; color: var(--ink); }
.statut--ouvert { background: var(--petal); border-color: var(--petal); color: var(--ink); }
.statut--ouvert .statut__mot::before {
  content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-right: 0.5em;
  border-radius: 50%; background: var(--oak); vertical-align: 0.12em;
}

/* La planche : une mèche au trait fin */
.planche { margin: 0; background: var(--paper); aspect-ratio: 4 / 5; overflow: hidden; max-width: 30rem; }
.planche svg { display: block; width: 100%; height: 100%; }
.meche path, .texture path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.95; }
.t1 { stroke: var(--oak); }
.t2 { stroke: var(--oak); stroke-opacity: 0.45; }
.t3 { stroke: var(--mist); }
.meche .t4 { stroke: var(--petal); stroke-width: 1.5; }

/* ---------- La parole d'une cliente ---------- */
.citation { background: var(--paper); padding-block: clamp(4rem, 9vw, 7.5rem); }
.citation figure { margin: 0 auto; max-width: 58rem; text-align: center; }
.citation blockquote { margin: 0; }
.citation blockquote p {
  font-family: var(--font-title); font-weight: 200; font-size: var(--step-3);
  line-height: 1.24; letter-spacing: -0.015em; max-width: none; margin: 0; text-wrap: balance;
}
.citation figcaption { margin-top: 1.75rem; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--alt { background: var(--paper); }
.section__lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 44ch; }
.split { display: grid; gap: 3rem var(--gap); }
@media (min-width: 58rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 6.5rem); align-items: start; }
}

/* En-tête de section : le titre à gauche, la phrase d'appui à droite */
.tete { display: grid; gap: 0.75rem 3rem; margin-bottom: clamp(2rem, 5vw, 3.75rem); }
.tete h2, .tete p { margin: 0; }
@media (min-width: 58rem) { .tete { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }

/* Pourquoi on revient : une promesse, et l'avis qui la prouve */
.reviews { list-style: none; margin: 0; padding: 0; }
.reviews > li {
  display: grid; gap: 0.9rem 3rem; padding-block: clamp(1.9rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.reviews > li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 44rem) {
  .reviews > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .reviews h3 { grid-column: 1 / -1; }
}
@media (min-width: 66rem) {
  .reviews > li { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.1fr); align-items: first baseline; }
  .reviews h3 { grid-column: auto; max-width: 13ch; }
}
.reviews h3 { margin: 0; }
.reviews p { margin: 0; color: var(--ink-soft); }
.reviews blockquote { margin: 0; }
.reviews blockquote p {
  font-family: var(--font-title); font-weight: 300; font-size: var(--step-1);
  line-height: 1.5; color: var(--ink);
}
.reviews footer { margin-top: 0.75rem; font-size: var(--step--1); color: var(--ink-soft); }
.petit { font-size: var(--step--1); color: var(--ink-soft); margin: 1.75rem 0 0; }

/* Prestations : une carte, ligne à ligne */
.services { margin: 0; }
.services > div { position: relative; display: grid; gap: 0.35rem 3rem; padding-block: clamp(1.5rem, 3vw, 2.1rem); }
.services > div::before { /* filet du haut, tracé au défilement */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: var(--line); transform-origin: left;
}
.services > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 50rem) {
  .services > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; }
}
.services dt { font-family: var(--font-title); font-weight: 300; font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.012em; }
.services dd { margin: 0; color: var(--ink-soft); max-width: 54ch; }

/* Invitation à compléter : ce qui reste à voir avec la cliente */
.ask {
  margin: 2.5rem 0 0; max-width: 66ch; padding: 1.15rem 1.35rem;
  border: 1px dashed var(--mist); background: var(--ground);
  font-size: 0.9375rem; line-height: 1.65;
}
.tag {
  display: inline-block; margin-right: 0.6rem; padding: 0.1rem 0.7rem;
  border-radius: 50px; background: var(--petal); color: var(--ink);
  font-size: 0.8125rem; font-weight: 500; line-height: 1.6; white-space: nowrap;
}

/* Le salon : trois textures au trait, en attendant les photos */
/* Ciseau en 3D : une bande de 22 images, dont une seule est visible à la fois.
   Sans animation, c'est la dernière image qui s'affiche : le ciseau ouvert. */
.ciseau { width: min(22rem, 78%); aspect-ratio: 1; overflow: hidden; margin: -2.5rem 0 0 -0.4rem; filter: drop-shadow(6px 10px 9px rgb(40 30 70 / 0.22)); }
.ciseau__bande { width: 2200%; max-width: none; height: 100%; transform: translateX(calc(-100% * 21 / 22)); }
.liens { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.textures { margin: 0; }
.textures__rang { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.6rem, 2vw, 1.5rem); align-items: start; }
.texture { background: var(--paper); aspect-ratio: 3 / 4; }
.texture:nth-child(2) { margin-top: clamp(1.25rem, 4vw, 3rem); }
.texture:nth-child(3) { margin-top: clamp(2.5rem, 8vw, 6rem); }
.texture svg { display: block; width: 100%; height: 100%; }
.texture path { stroke-width: 0.8; }
.textures .ask { margin-top: 1.75rem; background: var(--paper); }
@media (min-width: 58rem) { .split--dessins { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: center; } }

/* Venir : horaires et accès */
.horaires { background: var(--ground); padding: clamp(1.5rem, 4vw, 2.75rem); }
.horaires table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.horaires caption {
  text-align: left; padding-bottom: 1.25rem;
  font-family: var(--font-title); font-weight: 300; font-size: var(--step-2);
  line-height: 1.2; letter-spacing: -0.012em; color: var(--ink);
}
.horaires__tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.horaires th, .horaires td {
  padding: 0.95rem 0; border-top: 1px solid var(--line);
  text-align: left; vertical-align: top; font-weight: 400;
}
.horaires th { color: var(--ink-soft); padding-right: 1rem; }
.horaires td { text-align: right; }
.horaires tr[aria-current="date"] th, .horaires tr[aria-current="date"] td { color: var(--ink); font-weight: 500; }
.horaires tr[aria-current="date"] th::before {
  content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-right: 0.6em;
  border-radius: 50%; background: var(--oak); vertical-align: 0.14em;
}
.horaires__note { margin: 1.1rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-soft); }

.acces { margin: 2rem 0 2.25rem; }
.acces > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.95rem; border-top: 1px solid var(--line); }
.acces > div:last-child { border-bottom: 1px solid var(--line); }
.acces dt { font-size: var(--step--1); color: var(--ink-soft); line-height: 2.1; }
.acces dd { margin: 0; }

/* ---------- Formulaire : champs soulignés d'un filet violet ---------- */
.form { display: grid; background: var(--paper); padding: clamp(1.5rem, 4.5vw, 3.25rem); }
.form label { font-size: var(--step--1); font-weight: 500; margin-top: 1.5rem; }
.form label:first-of-type { margin-top: 0; }
.form .optional { font-weight: 400; color: var(--ink-soft); }
.form input, .form textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: 0.55rem 0.6rem 0.6rem; background: transparent;
  border: 0; border-bottom: 1px solid var(--oak); border-radius: 0;
}
.form textarea { resize: vertical; min-height: 6.5rem; }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-hint); opacity: 1; }
/* Champ actif : fond poudré et filet doublé (le contour transparent sert au mode contrastes élevés) */
.form input:focus-visible, .form textarea:focus-visible {
  outline: 2px solid transparent; outline-offset: 0;
  background: var(--ground); box-shadow: 0 2px 0 var(--oak);
}
.form button { margin-top: 2rem; justify-self: start; }
.form__legal { font-size: var(--step--1); line-height: 1.6; color: var(--ink-soft); margin: 1.5rem 0 0; }
.form__trap { position: absolute; left: -9999px; }

/* ---------- Pied de page ---------- */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5.5rem) 2.5rem; }
/* Logo du salon, remis au propre d'après l'enseigne */
.logo { width: min(21rem, 86%); margin: 0 0 2.5rem; }
.logo svg { display: block; width: 100%; height: auto; transform-origin: 50% 60%; transition: transform 0.5s var(--ease); }
.logo:hover svg { transform: perspective(42rem) rotateX(8deg) rotateY(-10deg); }
.logo__ciseau { transform-box: fill-box; transform-origin: center; }
.foot__marque {
  font-family: var(--font-title); font-weight: 200; font-size: clamp(2.6rem, 1rem + 8vw, 6rem);
  line-height: 1; letter-spacing: -0.025em; margin: 0 0 clamp(2rem, 5vw, 3.5rem); max-width: none;
}
.foot__inner {
  display: grid; gap: 1.5rem 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  font-size: 0.9375rem; line-height: 1.7; color: var(--ink-soft);
}
@media (min-width: 40rem) { .foot__inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .foot__inner { grid-template-columns: 1.2fr 1fr auto; } }
.foot__inner p { margin: 0; }
.foot__liens { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Barre d'appel mobile : le seul aplat violet ---------- */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: flex; justify-content: center; align-items: center; gap: 0.65rem;
  min-height: 3.75rem; padding: 0.9rem 1rem; background: var(--pine); color: #fff;
  font-weight: 500; font-size: 1.0625rem; line-height: 1.2; text-decoration: none;
}
.callbar:hover { color: #fff; }
.callbar:focus-visible { outline-color: #fff; outline-offset: -5px; }
.callbar svg { width: 1.2em; height: 1.2em; }
@media (min-width: 48rem) { .callbar { display: none; } }

/* ---------- Pages simples (merci, 404, mentions) ---------- */
.page { padding-block: var(--section); min-height: 60vh; }
.page h1 { font-size: var(--step-3); font-weight: 200; max-width: 22ch; }
.page h2 { font-size: var(--step-2); max-width: none; margin-top: 2.75rem; }
.top--page { position: static; }

/* ==========================================================
   MOUVEMENT
   Survol partout. Un moment signature : la mèche de l'accroche
   qui se dessine, cheveu après cheveu, à l'ouverture de la page.
   Au défilement : les filets des prestations se tracent, les
   textures se dessinent, les avis glissent en place et la
   citation s'éclaircit. Uniquement transform, opacity et le
   tracé des traits ; rien de caché sans JavaScript ; tout coupé
   par prefers-reduced-motion.
   ========================================================== */

/* Survol */
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--oak); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

a { transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.btn, .callbar { transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease); }
.btn:active, .callbar:active { transform: translateY(1px); }
.btn svg, .suite svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.suite:hover svg { transform: translateX(5px); }

.planche svg { transition: transform 0.9s var(--ease); }
.planche:hover svg { transform: scale(1.025); }

.services > div { transition: transform 0.35s var(--ease); }
.services > div:hover { transform: translateX(8px); }
.services dt { transition: color 0.25s ease; }
.services > div:hover dt { color: var(--oak); }

.reviews h3 { transition: color 0.25s ease; }
.reviews > li:hover h3 { color: var(--oak); }

.texture svg { transition: transform 0.5s var(--ease); }
.texture:hover svg { transform: translateY(-5px); }

.horaires tbody tr, .acces > div { transition: transform 0.25s var(--ease); }
.horaires tbody tr:hover, .acces > div:hover { transform: translateX(4px); }

.form input, .form textarea { transition: border-color 0.2s ease; }
.form input:hover, .form textarea:hover { border-color: var(--ink); }

/* Fil de progression */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 55;
  background: var(--oak); transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

@keyframes progresse { to { transform: scaleX(1); } }
@keyframes peint { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Le trait part d'un peu avant le début (1.05) pour ne laisser aucun point visible ;
   l'intervalle long (3) évite qu'un second tiret n'apparaisse au bout du trait. */
@keyframes trace { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
@keyframes ciseau { from { transform: translateX(0); } to { transform: translateX(calc(-100% * 21 / 22)); } }
@keyframes pose { from { opacity: 0; transform: scale(0.82) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes glisse { from { opacity: 0.25; transform: translateX(-24px); } to { opacity: 1; transform: none; } } /* vers la gauche : aucun débordement à droite */
@keyframes eclaire { from { opacity: 0.25; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Signature : la mèche se dessine à l'ouverture, cheveu après cheveu */
.meche path { stroke-dasharray: 1.01 3; animation: trace 2.6s cubic-bezier(0.3, 0.7, 0.25, 1) both; }
.meche path:nth-child(6n + 2) { animation-delay: 0.12s; }
.meche path:nth-child(6n + 3) { animation-delay: 0.24s; }
.meche path:nth-child(6n + 4) { animation-delay: 0.36s; }
.meche path:nth-child(6n + 5) { animation-delay: 0.48s; }
.meche path:nth-child(6n) { animation-delay: 0.6s; }
.meche .t3 { animation-duration: 3.2s; }

@supports (animation-timeline: view()) {
  .progress { animation: progresse linear both; animation-timeline: scroll(root block); }

  /* Les filets des prestations se tracent de gauche à droite */
  .services > div { view-timeline-name: --rang; view-timeline-axis: block; }
  .services > div::before {
    animation: peint linear both;
    animation-timeline: --rang;
    animation-range: entry 0% entry 100%;
  }

  /* Les textures se dessinent pendant qu'elles entrent dans l'écran */
  .textures { view-timeline-name: --textures; view-timeline-axis: block; }
  .texture path {
    stroke-dasharray: 1.01 3; stroke-dashoffset: 1.05;
    animation: trace linear both;
    animation-timeline: --textures;
    animation-range: entry 15% cover 45%;
  }

  /* Le ciseau suit le défilement : il s'ouvre en pivotant quand il entre, se referme quand il sort */
  .ciseau { view-timeline-name: --ciseau; view-timeline-axis: block; }
  .ciseau__bande {
    animation: ciseau steps(22, jump-none) 2 alternate both;
    animation-timeline: --ciseau;
    animation-range: cover 8% cover 92%;
  }

  /* Le logo se trace pendant qu'il entre dans l'écran, puis le ciseau se pose dans son cercle */
  .logo { view-timeline-name: --logo; view-timeline-axis: block; }
  .logo__trait {
    stroke-dasharray: 1.01 3; stroke-dashoffset: 1.05;
    animation: trace linear both;
    animation-timeline: --logo;
    animation-range: entry 5% entry 85%;
  }
  .logo__ciseau, .logo__plein {
    animation: pose linear both;
    animation-timeline: --logo;
    animation-range: entry 55% entry 100%;
  }

  /* Les avis glissent en place */
  .reviews > li { view-timeline-name: --avis; view-timeline-axis: block; }
  .reviews blockquote {
    animation: glisse linear both;
    animation-timeline: --avis;
    animation-range: entry 5% cover 30%;
  }

  /* La citation s'éclaircit en arrivant */
  .citation { view-timeline-name: --citation; view-timeline-axis: block; }
  .citation figure {
    animation: eclaire linear both;
    animation-timeline: --citation;
    animation-range: entry 10% cover 35%;
  }
}

/* Appoint JavaScript (navigateurs sans animation-timeline) :
   la classe .js-anim n'est posée que si le script s'exécute. */
.js-anim .textures:not(.js-vu) .texture path { stroke-dasharray: 1.01 3; stroke-dashoffset: 1.05; }
.js-anim .textures.js-vu .texture path { stroke-dasharray: 1.01 3; animation: trace 1.8s var(--ease) both; }
.js-anim .logo:not(.js-vu) .logo__trait { stroke-dasharray: 1.01 3; stroke-dashoffset: 1.05; }
.js-anim .logo.js-vu .logo__trait { stroke-dasharray: 1.01 3; animation: trace 1.6s var(--ease) both; }
.js-anim .logo:not(.js-vu) .logo__ciseau, .js-anim .logo:not(.js-vu) .logo__plein { opacity: 0; }
.js-anim .logo.js-vu .logo__ciseau, .js-anim .logo.js-vu .logo__plein { animation: pose 0.9s var(--ease) 0.7s both; }
.js-anim .services > div:not(.js-vu)::before { transform: scaleX(0); }
.js-anim .services > div.js-vu::before { animation: peint 0.9s var(--ease) both; }

/* Mouvement réduit : tout s'arrête, tout reste visible */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .progress { display: none; }
  .meche path, .texture path, .logo__trait { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .services > div::before { transform: none !important; }
}
