/* Émilie Guilloux, infirmière libérale. Site B, la plaque lisible. */

@font-face {
  font-family: "Marcellus";
  src: url("fonts/marcellus-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-next.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@property --va {
  syntax: "<angle>";
  inherits: true;
  initial-value: 45deg;
}

:root {
  /* la palette */
  --voilage: #F2F2EE;
  --crepi: #E4DACA;
  --ardoise: #2A3035;
  --garde-corps: #B0521F;
  --laiton: #8C6F2E;
  --pelouse: #56702F;
  --ardoise-2: #4A5258;
  --laiton-clair: #C4A468;
  --garde-corps-fonce: #8F4218;

  /* les familles */
  --f-titre: "Marcellus", "Times New Roman", serif;
  --f-texte: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  /* l'échelle, téléphone */
  --t-plaque: 44px;
  --t-h1: 40px;
  --t-h2: 30px;
  --t-h3: 23px;
  --t-lead: 20px;
  --t-body: 19px;
  --t-small: 16px;
  --t-bouton: 20px;

  /* l'espacement */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --bande: var(--s-8);
  --gouttiere: 20px;

  /* les rayons */
  --r-1: 6px;
  --r-2: 999px;

  /* le mouvement */
  --courbe: cubic-bezier(.2, .7, .2, 1);
  --d-etat: 200ms;
  --d-trait: 300ms;
  --d-entree: 900ms;
  --d-reflet: 1200ms;

  --barre: 64px;
  --ligne: 26em;
}

@media (min-width: 900px) {
  :root {
    --t-plaque: 88px;
    --t-h1: 64px;
    --t-h2: 40px;
    --t-h3: 26px;
    --t-lead: 22px;
    --bande: var(--s-9);
    --gouttiere: 48px;
    --barre: 88px;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--barre); }

body {
  margin: 0;
  background: var(--voilage);
  color: var(--ardoise);
  font-family: var(--f-texte);
  font-size: var(--t-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--f-titre);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--t-h2); line-height: 1.15; }
h3 { font-size: var(--t-h3); line-height: 1.25; }
p { margin: 0; }
p + p { margin-top: var(--s-4); }

/* le second ton, en laiton à 40 px et plus seulement */
.ton { color: inherit; }
@media (min-width: 900px) {
  .ton { color: var(--laiton); }
  .sur-ardoise .ton { color: var(--laiton-clair); }
}

.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ardoise-2); max-width: var(--ligne); }
.texte { max-width: var(--ligne); }
.petit { font-size: var(--t-small); color: var(--ardoise-2); }

.cadre {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

.bande { padding: var(--bande) 0; position: relative; isolation: isolate; }

/* ---------- les surfaces ---------- */

.sur-voilage { background: var(--voilage); }

.sur-crepi { background: var(--crepi); }
.sur-crepi::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("img/crepi.webp") center / 512px;
  mix-blend-mode: multiply;
  opacity: .22;
}
.sur-crepi::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 10% 0%, color-mix(in srgb, var(--voilage) 45%, transparent), transparent 72%);
}

.sur-ardoise { background: var(--ardoise); color: var(--voilage); }
.sur-ardoise::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/ardoise.webp") center / 360px;
  mix-blend-mode: soft-light;
  opacity: .10;
}
.sur-ardoise::after {
  content: "";
  position: absolute; inset: 0 40% 40% 0; z-index: -1; pointer-events: none;
  background: url("img/lumiere.webp") left top / cover no-repeat;
  mix-blend-mode: screen;
  opacity: .30;
}
.sur-ardoise .lead, .sur-ardoise .petit { color: color-mix(in srgb, var(--voilage) 82%, var(--ardoise)); }

/* ---------- les vis ---------- */

.vis { position: relative; --vd: 8px; --vc: 2px; --vo: 12px; }
.vis-plaque { --vd: 12px; --vc: 2px; --vo: 12px; }
.vis::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  --fente: linear-gradient(var(--va), transparent calc(50% - .6px), var(--laiton) calc(50% - .6px) calc(50% + .6px), transparent calc(50% + .6px));
  --tete: radial-gradient(circle closest-side, var(--voilage) 0 calc(var(--vd) / 2 - var(--vc)), var(--laiton) calc(var(--vd) / 2 - var(--vc)) calc(var(--vd) / 2 - .4px), transparent calc(var(--vd) / 2));
  --ombre: radial-gradient(circle closest-side, color-mix(in srgb, var(--ardoise) 28%, transparent) 0 calc(var(--vd) / 2 - .6px), transparent calc(var(--vd) / 2 + .4px));
  background:
    var(--fente) left calc(var(--vo) + var(--vc)) top calc(var(--vo) + var(--vc)) / calc(var(--vd) - 2 * var(--vc)) calc(var(--vd) - 2 * var(--vc)) no-repeat,
    var(--fente) right calc(var(--vo) + var(--vc)) top calc(var(--vo) + var(--vc)) / calc(var(--vd) - 2 * var(--vc)) calc(var(--vd) - 2 * var(--vc)) no-repeat,
    var(--fente) left calc(var(--vo) + var(--vc)) bottom calc(var(--vo) + var(--vc)) / calc(var(--vd) - 2 * var(--vc)) calc(var(--vd) - 2 * var(--vc)) no-repeat,
    var(--fente) right calc(var(--vo) + var(--vc)) bottom calc(var(--vo) + var(--vc)) / calc(var(--vd) - 2 * var(--vc)) calc(var(--vd) - 2 * var(--vc)) no-repeat,
    var(--tete) left var(--vo) top var(--vo) / var(--vd) var(--vd) no-repeat,
    var(--tete) right var(--vo) top var(--vo) / var(--vd) var(--vd) no-repeat,
    var(--tete) left var(--vo) bottom var(--vo) / var(--vd) var(--vd) no-repeat,
    var(--tete) right var(--vo) bottom var(--vo) / var(--vd) var(--vd) no-repeat,
    var(--ombre) left calc(var(--vo) + 1px) top calc(var(--vo) + 1.5px) / var(--vd) var(--vd) no-repeat,
    var(--ombre) right calc(var(--vo) - 1px) top calc(var(--vo) + 1.5px) / var(--vd) var(--vd) no-repeat,
    var(--ombre) left calc(var(--vo) + 1px) bottom calc(var(--vo) - 1.5px) / var(--vd) var(--vd) no-repeat,
    var(--ombre) right calc(var(--vo) - 1px) bottom calc(var(--vo) - 1.5px) / var(--vd) var(--vd) no-repeat;
}

/* une carte: une photo carrée tenue par quatre vis */
.carte {
  border-radius: var(--r-1);
  overflow: hidden;
  background: var(--crepi);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--ardoise) 12%, transparent);
  transition:
    transform var(--d-etat) var(--courbe),
    box-shadow var(--d-etat) var(--courbe),
    --va var(--d-trait) var(--courbe);
}
.carte img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .carte:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--ardoise) 12%, transparent);
    --va: 135deg;
  }
}

/* ---------- la barre ---------- */

.barre {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--barre);
  display: flex;
  align-items: center;
  transition: background-color var(--d-etat) var(--courbe);
}
.barre.pleine, .page-sous .barre { background: var(--voilage); }
.barre .cadre { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.barre-logo { display: block; flex: none; border-radius: var(--r-1); }
.barre-logo img { height: 44px; width: auto; }
@media (min-width: 900px) { .barre-logo img { height: 70px; } }
.accueil .barre-logo { opacity: 0; visibility: hidden; transition: opacity var(--d-etat) var(--courbe), visibility 0s linear var(--d-etat); }
.accueil .barre.logo-range .barre-logo { opacity: 1; visibility: visible; transition: opacity var(--d-etat) var(--courbe); }

.nav { display: none; }
.nav a, .menu a { color: var(--ardoise); }
.barre-tel { font-weight: 700; white-space: nowrap; }

.menu-bouton {
  font: 700 var(--t-small) / 1 var(--f-texte);
  color: var(--ardoise);
  background: var(--voilage);
  border: 2px solid var(--ardoise);
  border-radius: var(--r-1);
  padding: var(--s-3) var(--s-4);
  min-height: 44px;
  cursor: pointer;
}
.menu {
  position: fixed;
  inset: var(--barre) 0 auto 0;
  z-index: 39;
  background: var(--voilage);
  padding: var(--s-5) var(--gouttiere) var(--s-7);
  display: none;
  box-shadow: 0 24px 24px color-mix(in srgb, var(--ardoise) 10%, transparent);
}
.menu.ouvert { display: block; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li + li { margin-top: var(--s-4); }
.menu a { font-family: var(--f-titre); font-size: var(--t-h3); }
.menu .petit { margin-top: var(--s-6); }

@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: var(--s-6); }
  .menu-bouton, .menu { display: none !important; }
}

/* ---------- les liens et le focus ---------- */

a { color: inherit; }
.lien, .nav a, .pied a, .menu a {
  text-decoration: none;
  background: linear-gradient(var(--laiton), var(--laiton)) left bottom / 100% 2px no-repeat;
  padding-bottom: 4px;
}
.sur-ardoise .lien, .pied a { background-image: linear-gradient(var(--laiton-clair), var(--laiton-clair)); }
@media (hover: hover) and (pointer: fine) {
  .lien, .nav a, .pied a { transition: background-size var(--d-trait) var(--courbe); }
  .lien:hover, .nav a:hover, .pied a:hover { background-size: 0 2px; animation: trait var(--d-trait) var(--courbe) forwards; }
}
@keyframes trait { from { background-size: 0 2px; } to { background-size: 100% 2px; } }

:focus-visible { outline: 3px solid var(--ardoise); outline-offset: 3px; border-radius: 2px; }
.sur-ardoise :focus-visible, .pied :focus-visible { outline-color: var(--voilage); }

/* ---------- le bouton d'appel, seul en garde-corps ---------- */

.appel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3em;
  min-height: 60px;
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-2);
  background: var(--garde-corps);
  color: var(--voilage);
  font: 700 var(--t-bouton) / 1.2 var(--f-texte);
  text-decoration: none;
  transition: background-color var(--d-etat) var(--courbe), transform var(--d-etat) var(--courbe);
}
.appel .num { font-weight: 700; letter-spacing: .01em; }
.appel:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .appel:hover { background: var(--garde-corps-fonce); }
}

.appel-fixe {
  position: fixed;
  left: var(--gouttiere);
  right: var(--gouttiere);
  bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-etat) var(--courbe), visibility 0s linear var(--d-etat);
}
.appel-fixe.visible { opacity: 1; visibility: visible; transition: opacity var(--d-etat) var(--courbe); }
@media (min-width: 900px) { .appel-fixe { display: none; } }

/* ---------- le héros: la plaque sur le mur ---------- */

.heros {
  min-height: 100svh;
  padding: calc(var(--barre) + var(--s-5)) 0 var(--s-7);
  display: flex;
  align-items: flex-start;
}
.heros .cadre { display: grid; gap: var(--s-6); }
.heros-texte { display: grid; gap: var(--s-5); justify-items: start; }
.heros-ligne { font-family: var(--f-titre); font-size: var(--t-h2); line-height: 1.15; text-wrap: balance; }
.preuve { font-size: var(--t-small); color: var(--ardoise-2); }

.plaque {
  --va: 45deg;
  position: relative;
  border-radius: var(--r-1);
  background: var(--laiton-clair) url("img/laiton.webp") center / cover;
  color: var(--ardoise);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--ardoise) 18%, transparent), 0 18px 30px -18px color-mix(in srgb, var(--ardoise) 45%, transparent);
  outline: 1px solid color-mix(in srgb, var(--voilage) 60%, transparent);
  outline-offset: 6px;
}
.plaque-heros {
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform-origin: 0 0;
  will-change: transform;
  z-index: 5;
  overflow: hidden;
}
.plaque-heros h1 { margin: 0; line-height: 1; }
.grave {
  display: block;
  color: var(--ardoise);
  text-shadow: 0 1px 0 color-mix(in srgb, var(--voilage) 45%, transparent), 0 -1px 0 color-mix(in srgb, var(--ardoise) 35%, transparent);
}
.grave-nom {
  font-family: var(--f-titre);
  font-size: var(--t-plaque);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.08;
}
.grave-metier {
  font-family: var(--f-titre);
  font-size: var(--t-h3);
  margin-top: var(--s-4);
}
.reflet {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(110deg, transparent 38%, color-mix(in srgb, var(--voilage) 35%, transparent) 50%, transparent 62%);
  transform: translateX(-110%);
  opacity: 0;
}

/* la gravure: un masque avance de gauche à droite */
.anime .grave {
  -webkit-mask-image: linear-gradient(90deg, black 45%, transparent 55%);
  mask-image: linear-gradient(90deg, black 45%, transparent 55%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: gravure 600ms var(--courbe) forwards;
}
.anime .g2 { animation-delay: 300ms; }
.anime .g3 { animation-delay: 600ms; animation-duration: 500ms; }
.anime .reflet { animation: reflet var(--d-reflet) var(--courbe) 1000ms forwards; }
@keyframes gravure {
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes reflet {
  0% { opacity: 1; transform: translateX(-110%); }
  100% { opacity: 1; transform: translateX(110%); }
}

@media (min-width: 900px) {
  .heros { align-items: center; padding-top: calc(var(--barre) + var(--s-6)); }
  .heros .cadre { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--s-8); }
  .plaque-heros { height: 440px; }
  .grave-metier { margin-top: var(--s-5); }
}

/* ---------- les sections ---------- */

.titre-section { max-width: 18em; }
.titre-section + .lead { margin-top: var(--s-5); }

/* les soins: la liste nommée et une carte */
.soins-grille { display: grid; gap: var(--s-7); margin-top: var(--s-7); }
.liste-soins { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4) var(--s-7); }
.liste-soins li { font-family: var(--f-titre); font-size: var(--t-h3); line-height: 1.25; padding-left: var(--s-5); position: relative; }
.liste-soins li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--voilage);
  box-shadow: 0 0 0 2px var(--laiton);
}
.soins-carte { max-width: 420px; }
.soins-note { margin-top: var(--s-6); }
@media (min-width: 600px) {
  .liste-soins { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .soins-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; gap: var(--s-8); }
}

/* la zone: les lieux en grand, un par ligne */
.zone-grille { display: grid; gap: var(--s-7); }
.lieux { list-style: none; margin: var(--s-6) 0 0; padding: 0; }
.lieux li { font-family: var(--f-titre); font-size: var(--t-h2); line-height: 1.3; }
.lieux li.commune { color: var(--ardoise-2); }
.tournee { display: grid; gap: var(--s-4); align-content: start; }
.point {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pelouse);
  margin-right: var(--s-2);
  vertical-align: baseline;
}
@media (min-width: 900px) {
  .zone-grille { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8); align-items: end; }
}

/* l'avis: une citation d'abord */
.citation { margin: 0; max-width: 26em; }
.citation p {
  font-family: var(--f-titre);
  font-size: var(--t-h2);
  line-height: 1.3;
}
.citation p::before { content: "« "; color: var(--laiton); }
.citation p::after { content: " »"; color: var(--laiton); }
.citation footer { margin-top: var(--s-5); font-size: var(--t-small); color: var(--ardoise-2); }
.note-google { display: flex; align-items: baseline; gap: var(--s-3); margin-top: var(--s-7); flex-wrap: wrap; }
.note-google strong { font-size: var(--t-h3); }
.autres-avis { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-4); max-width: var(--ligne); }
.autres-avis li { color: var(--ardoise-2); }
@media (min-width: 900px) {
  .avis-grille { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s-8); align-items: end; }
  .avis-grille .autres-avis { margin-top: 0; }
}

/* le cabinet: la photo d'abord */
.cabinet-photo { border-radius: var(--r-1); overflow: hidden; }
.cabinet-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cabinet-grille { display: grid; gap: var(--s-7); }
.cabinet-texte { display: grid; gap: var(--s-5); align-content: start; }
@media (min-width: 900px) {
  .cabinet-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: center; }
}

/* le contact: le numéro d'abord, la plaque tient l'adresse et les horaires */
.contact { background: var(--voilage); }
.contact::before {
  content: "";
  position: absolute; inset: 0 66% 0 0; z-index: -1; pointer-events: none;
  background: url("img/voilage.webp") left center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: .35;
}
.contact-grille { display: grid; gap: var(--s-7); }
.grand-numero {
  display: inline-block;
  font: 700 var(--t-h2) / 1.1 var(--f-texte);
  color: var(--ardoise);
  text-decoration: none;
  letter-spacing: .01em;
}
.contact-tete { display: grid; gap: var(--s-5); justify-items: start; }
.plaque-contact { padding: var(--s-7) var(--s-6); }
.plaque-contact h3 { font-size: var(--t-h3); }
.plaque-contact .adresse { margin-top: var(--s-3); }
.horaires { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.horaires li { display: grid; grid-template-columns: 7.5em 1fr; gap: var(--s-3); }
.horaires .jour { font-weight: 700; }
.horaires [data-content-kind="hours"] span + span::before { content: " et "; }
.horaires .off { color: var(--ardoise-2); }
.plaque-contact .petit { color: var(--ardoise); margin-top: var(--s-5); }
@media (min-width: 900px) {
  .contact-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); align-items: center; }
  .plaque-contact { padding: var(--s-7); }
}

/* ---------- les pages de détail ---------- */

.page-tete { padding: calc(var(--barre) + var(--s-7)) 0 var(--s-8); }
.plaque-titre {
  display: inline-block;
  padding: var(--s-6) var(--s-7);
  max-width: 100%;
}
.plaque-titre h1 {
  font-size: var(--t-h1);
  line-height: 1.08;
  text-shadow: 0 1px 0 color-mix(in srgb, var(--voilage) 45%, transparent), 0 -1px 0 color-mix(in srgb, var(--ardoise) 35%, transparent);
}
.page-tete .lead { margin-top: var(--s-6); }
.page-tete .appel { margin-top: var(--s-6); }

.tete-photo { display: grid; gap: var(--s-7); }
@media (min-width: 900px) {
  .tete-photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--s-8); }
}

/* la visite, en quatre temps */
.visite { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-7); counter-reset: temps; }
.visite li { display: grid; gap: var(--s-5); counter-increment: temps; }
.visite .carte { max-width: 360px; }
.visite h3::before { content: counter(temps) ". "; color: var(--laiton); }
@media (min-width: 700px) {
  .visite { grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-7); }
}
@media (min-width: 1100px) {
  .visite { grid-template-columns: repeat(4, 1fr); }
}

.deux-colonnes { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .deux-colonnes { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }

.a-preparer { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.a-preparer li { padding-left: var(--s-5); position: relative; }
.a-preparer li::before {
  content: "";
  position: absolute; left: 0; top: .6em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--voilage); box-shadow: 0 0 0 2px var(--laiton);
}
.sur-ardoise .a-preparer li::before { background: var(--ardoise); box-shadow: 0 0 0 2px var(--laiton-clair); }

.faits { display: grid; gap: var(--s-6); margin-top: var(--s-7); }
.faits h3 { margin-bottom: var(--s-2); }
@media (min-width: 900px) { .faits { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }

/* ---------- le pied ---------- */

.pied { padding: var(--s-8) 0 calc(var(--s-8) + 72px); }
@media (min-width: 900px) { .pied { padding-bottom: var(--s-8); } }
.pied-grille { display: grid; gap: var(--s-6); }
.pied-logo img { width: 180px; height: auto; }
.pied p { color: color-mix(in srgb, var(--voilage) 85%, var(--ardoise)); }
.pied .legal { font-size: var(--t-small); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-6); }
@media (min-width: 900px) { .pied-grille { grid-template-columns: auto 1fr 1fr; gap: var(--s-8); align-items: start; } }

/* ---------- les entrées au défilement ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--d-entree) var(--courbe), transform var(--d-entree) var(--courbe);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- mouvement réduit: l'état final, sans déplacement ---------- */

@media (prefers-reduced-motion: reduce) {
  .anime .grave { animation: none; -webkit-mask-image: none; mask-image: none; }
  .anime .reflet { animation: none; opacity: 0; }
  .js .reveal { transform: none; }
  .js .reveal.is-in { transition: opacity var(--d-etat) linear; transition-delay: 0s; }
  .carte, .appel, .lien, .nav a, .pied a { transition: none; animation: none; }
  .carte:hover { transform: none; --va: 45deg; }
  .plaque-heros { transform: none !important; }
}

/* ---------- ajouts ---------- */
.appel[data-content]::before { content: "Appeler le\00a0"; font-weight: 400; }
.pied .pied-logo { background: none; padding: 0; display: inline-block; }
@media (max-width: 899px) {
  .heros .cadre { gap: max(var(--s-6), calc(55svh - 388px)); }
}

.plaque .off, .plaque .petit, .plaque .lien { color: var(--ardoise); }
.plaque .lien { background-image: linear-gradient(var(--ardoise), var(--ardoise)); }
@media (max-width: 599px) {
  .plaque-contact { padding: var(--s-7) var(--s-5); }
  .horaires li { grid-template-columns: 5.6em 1fr; }
  .horaires [data-content-kind="hours"] span { display: block; }
  .horaires [data-content-kind="hours"] span + span::before { content: none; }
}
.faits { grid-template-columns: 1fr; }
@media (min-width: 900px) { .faits { grid-template-columns: 1fr 1fr; } }
.grand-chiffre { font-family: var(--f-titre); font-size: var(--t-h1); line-height: 1.08; color: var(--laiton-clair); }
.chemin { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-5); counter-reset: pas; }
.chemin li { counter-increment: pas; display: grid; grid-template-columns: 2em 1fr; gap: var(--s-3); max-width: var(--ligne); }
.chemin li::before { content: counter(pas); font-family: var(--f-titre); font-size: var(--t-h3); color: var(--laiton); line-height: 1.2; }
.chemin h3 { margin-bottom: var(--s-1); }
.espace-3 { margin-top: var(--s-3); }
.espace-5 { margin-top: var(--s-5); }
.espace-6 { margin-top: var(--s-6); }
.espace-8 { margin-top: var(--s-8); }
.nav a[aria-current="page"] { background-size: 100% 2px; font-weight: 700; }
@media (max-width: 699px) { .visite .carte { max-width: 240px; } .soins-carte { max-width: 300px; } }
@media (min-width: 600px) and (max-width: 899px) { .plaque-heros { width: 100%; max-width: 560px; height: 340px; } }

/* ---------- les pages: la liste des soins et la demande. Les tokens du site, rien d'autre. ---------- */

/* le menu tient cinq liens entre 900 et 1200 px */
@media (min-width: 900px) and (max-width: 1199px) {
  .nav { gap: var(--s-4); font-size: var(--t-small); }
}

/* le bouton de la page: ardoise, le garde-corps reste au seul bouton d'appel */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: var(--s-3) var(--s-6);
  border: 2px solid var(--ardoise);
  border-radius: var(--r-1);
  background: var(--ardoise);
  color: var(--voilage);
  font: 700 var(--t-bouton) / 1.2 var(--f-texte);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--d-etat) var(--courbe), color var(--d-etat) var(--courbe);
}
.bouton-contour { min-height: 48px; padding: var(--s-2) var(--s-4); background: var(--voilage); color: var(--ardoise); font-size: var(--t-small); }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { background: var(--ardoise-2); border-color: var(--ardoise-2); }
  .bouton-contour:hover { background: var(--crepi); color: var(--ardoise); border-color: var(--ardoise); }
}
.bouton:active { transform: translateY(1px); }
button.lien { border: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; padding: 0 0 4px; }

/* la liste des soins: le filtre, puis une fiche par soin */
.filtre { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.filtre[hidden] { display: none; }
.filtre .bouton-contour[aria-pressed="true"] { background: var(--ardoise); color: var(--voilage); }
.filtre-compte { margin-top: var(--s-4); }
.fiches { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-7); }
.fiche { border-top: 1px solid color-mix(in srgb, var(--ardoise) 18%, transparent); padding-top: var(--s-5); }
.fiche[hidden] { display: none; }
.fiche h3 { position: relative; padding-left: var(--s-5); }
.fiche h3::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--voilage); box-shadow: 0 0 0 2px var(--laiton);
}
.fiche > p { margin-top: var(--s-3); max-width: var(--ligne); }
.fiche dl { margin: var(--s-4) 0 0; display: grid; gap: var(--s-3); max-width: var(--ligne); }
.fiche dt { font-size: var(--t-small); font-weight: 700; }
.fiche dd { margin: 0; }
.fiche .lien { display: inline-block; margin-top: var(--s-4); font-weight: 700; }
@media (min-width: 600px) {
  .fiche dl > div { display: grid; grid-template-columns: 8em 1fr; gap: var(--s-3); }
  .fiche dt { font-size: var(--t-body); }
}
@media (min-width: 900px) {
  .fiches { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}

/* la demande: six champs numérotés, la tournée à côté */
.demande-grille { display: grid; gap: var(--s-8); }
@media (min-width: 900px) {
  .demande-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; }
  .demande-cote { position: sticky; top: calc(var(--barre) + var(--s-6)); }
}
.champs { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-7); counter-reset: champ; max-width: 34em; }
.champ { counter-increment: champ; display: grid; grid-template-columns: 2em 1fr; gap: var(--s-3); }
.champ::before { content: counter(champ); font-family: var(--f-titre); font-size: var(--t-h3); color: var(--laiton); line-height: 1.25; }
.champ-corps { display: grid; gap: var(--s-3); justify-items: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.champ-titre { display: block; padding: 0; font-family: var(--f-titre); font-size: var(--t-h3); line-height: 1.25; }
.saisie {
  width: 100%;
  min-height: 56px;
  padding: var(--s-3) var(--s-4);
  border: 2px solid var(--ardoise-2);
  border-radius: var(--r-1);
  background: var(--voilage);
  color: var(--ardoise);
  font: 400 var(--t-body) / 1.3 var(--f-texte);
}
.saisie::placeholder { color: var(--ardoise-2); opacity: 1; }
.saisie[aria-invalid="true"] { border-width: 3px; border-color: var(--ardoise); }
.saisie-date { max-width: 16em; }
.aide { font-size: var(--t-small); color: var(--ardoise-2); }
.aide .lien { color: var(--ardoise); }
.erreur { font-size: var(--t-small); font-weight: 700; color: var(--ardoise); }
.erreur:empty { display: none; }
.zone-ligne { font-size: var(--t-small); color: var(--ardoise-2); max-width: var(--ligne); }
.zone-ligne.dans-zone { color: var(--ardoise); font-weight: 700; }
.zone-ligne .point { width: 10px; height: 10px; }

.choix { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choix label {
  display: grid;
  min-height: 60px;
  padding: var(--s-2) var(--s-4);
  border: 2px solid var(--ardoise-2);
  border-radius: var(--r-1);
  background: var(--voilage);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color var(--d-etat) var(--courbe), color var(--d-etat) var(--courbe);
}
.choix label .petit { font-weight: 400; }
.choix input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choix label:has(input:checked) { background: var(--ardoise); border-color: var(--ardoise); color: var(--voilage); }
.choix label:has(input:checked) .petit { color: color-mix(in srgb, var(--voilage) 82%, var(--ardoise)); }
.choix label:has(input:focus-visible) { outline: 3px solid var(--ardoise); outline-offset: 3px; }

.fichier { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.fichier:focus-visible + .bouton { outline: 3px solid var(--ardoise); outline-offset: 3px; }
.apercu { display: grid; grid-template-columns: 88px 1fr; gap: var(--s-4); align-items: center; }
.apercu[hidden] { display: none; }
.apercu img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-1); }
.apercu-nom { font-size: var(--t-small); word-break: break-all; }
.apercu .lien { font-size: var(--t-small); }

.case { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; }
.case input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--ardoise); }

.envoyer { margin-top: var(--s-7); display: grid; gap: var(--s-3); justify-items: start; max-width: 34em; }
.envoyer .bouton { width: 100%; }
@media (min-width: 600px) { .envoyer .bouton { width: auto; } }

/* la demande prête: la fiche sur une plaque, l'appel, ou la demande laissée */
.prete:focus, .laissee:focus { outline: none; }
.prete[hidden], .laissee[hidden], .suite[hidden], .demande[hidden] { display: none; }
.fiche-demande { margin-top: var(--s-6); max-width: 36em; }
.recap li { grid-template-columns: 8em 1fr; }
.recap li > span:last-child { overflow-wrap: anywhere; }
.recap img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-1); margin-top: var(--s-2); }
@media (max-width: 599px) {
  .recap li { grid-template-columns: 1fr; gap: 0; }
  .recap li + li { margin-top: var(--s-2); }
}
.suite { margin-top: var(--s-6); display: grid; gap: var(--s-4); justify-items: start; }
.laissee { margin-top: var(--s-6); max-width: 36em; }
.message { margin-top: var(--s-2); padding-left: var(--s-4); border-left: 2px solid var(--laiton); }
.appel-vu .appel-fixe.visible { opacity: 0; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .bouton, .choix label { transition: none; }
}
