/* Cabinet infirmier Gaignard Failleau, site C, la tournée.
   Every colour, size and duration comes from design.md, as tokens. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* la palette du portail */
  --enduit: #E7E0D8;
  --papier: #F7F4EF;
  --anthracite: #393B47;
  --lame: #5C5E69;
  --laiton: #C8AE78;
  --laiton-grave: #8E7446;

  /* les familles */
  --f-titre: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-texte: "Atkinson Hyperlegible Next", Verdana, sans-serif;

  /* l'échelle, téléphone d'abord */
  --t-heure-xl: 112px;
  --t-heure: 72px;
  --t-h1: 34px;
  --t-h2: 34px;
  --t-zone: 34px;
  --t-h3: 23px;
  --t-plaque: 18px;
  --t-plaque-xl: min(27px, calc((100vw - 80px) / 11));
  --t-lead: 20px;
  --t-body: 18px;
  --t-regle: 16px;

  /* l'espacement, base 4 */
  --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; --s-10: 160px;
  --gouttiere: 16px;
  --bande: var(--s-8);
  --largeur: 1280px;

  --r-plaque: 3px;
  --r-photo: 6px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --d-etat: 200ms;
  --d-photo: 600ms;
  --d-entree: 900ms;

  --barre: 48px;
  --photo-carre: min(358px, calc(100vw - 2 * var(--gouttiere)), calc(100svh - 420px));
}

@media (min-width: 1024px) {
  :root {
    --t-heure-xl: 220px;
    --t-h1: 56px;
    --t-h2: 48px;
    --t-zone: 48px;
    --t-h3: 26px;
    --t-plaque: 22px;
    --t-plaque-xl: min(96px, calc((100vw - 2 * var(--gouttiere) - 144px) / 10.9));
    --t-lead: 22px;
    --gouttiere: 48px;
    --bande: var(--s-9);
    --barre: 64px;
    --photo-carre: min(520px, calc(100svh - 280px));
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--barre); }
body {
  margin: 0;
  background: var(--papier);
  color: var(--anthracite);
  font-family: var(--f-texte);
  font-size: var(--t-body);
  line-height: 1.55;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saut {
  position: absolute; left: var(--s-4); top: -60px; z-index: 50;
  background: var(--papier); color: var(--anthracite); padding: var(--s-2) var(--s-4);
  border-radius: var(--r-plaque);
}
.saut:focus { top: var(--s-2); }

/* le focus, toujours visible au clavier */
:focus-visible { outline: 2px solid var(--laiton-grave); outline-offset: 2px; }
.bande--nuit :focus-visible, .barre :focus-visible, .pouce :focus-visible { outline-color: var(--laiton); }

/* ---------- les titres ---------- */
.h1, .h2, .h3 {
  font-family: var(--f-titre);
  font-weight: 600;
  font-stretch: 110%;
  text-wrap: balance;
}
.h1 { font-size: var(--t-h1); line-height: 1.08; }
.h2 { font-size: var(--t-h2); line-height: 1.08; }
.h3 { font-size: var(--t-h3); line-height: 1.2; font-stretch: 100%; }
.ton { font-weight: 300; color: var(--lame); }
.bande--nuit .ton { color: var(--enduit); }

/* ---------- les bandes, la lumière d'une journée ---------- */
.bande { position: relative; isolation: isolate; padding: var(--bande) var(--gouttiere); }
.bande--nuit { background: var(--anthracite); color: var(--enduit); }
.bande--nuit::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/lames.webp") center / 100% auto repeat-y;
  opacity: 0.12; mix-blend-mode: soft-light;
}
.bande--jour { background: var(--papier); }
.bande--mur {
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, color-mix(in srgb, var(--papier) 60%, transparent), transparent 70%),
    var(--enduit);
}
.bande--mur::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/enduit.webp") 0 0 / 640px 640px repeat;
  opacity: 0.4; mix-blend-mode: multiply;
}
/* le V ajouré du portail, au bord haut des bandes anthracite */
.bande--v::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 24px; height: 12px;
  transform: translateX(-50%);
  background: var(--papier);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ---------- la barre ---------- */
.barre { background: var(--anthracite); color: var(--enduit); position: relative; z-index: 20; }
.barre-in {
  height: var(--barre); max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin: 0 auto; padding: 0 var(--gouttiere);
  display: flex; align-items: center; gap: var(--s-4);
}
.mono { display: block; flex: none; border-radius: var(--r-plaque); }
.mono img { width: 32px; height: 32px; }
.nav { display: none; }
.menu {
  margin-left: auto; background: none; border: 0; color: var(--enduit); padding: var(--s-2) var(--s-1);
  font-size: var(--t-body); cursor: pointer;
  text-decoration: underline 1px color-mix(in srgb, var(--enduit) 45%, transparent); text-underline-offset: 5px;
}
.nav.is-open {
  display: flex; flex-direction: column; position: absolute; top: var(--barre); left: 0; right: 0;
  background: var(--anthracite); padding: var(--s-2) var(--gouttiere) var(--s-6);
  border-top: 1px solid color-mix(in srgb, var(--enduit) 18%, transparent);
}
.nav.is-open a {
  font-family: var(--f-titre); font-weight: 600; font-stretch: 110%; font-size: var(--t-h3);
  text-decoration: none; padding: var(--s-3) 0; color: var(--enduit);
}

/* ---------- le bouton d'appel, le laiton ---------- */
.appel {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: var(--laiton); color: var(--anthracite);
  border: 1px solid var(--laiton-grave); border-radius: var(--r-plaque);
  box-shadow: 0 2px 0 var(--laiton-grave);
  font-family: var(--f-titre); font-weight: 600; font-stretch: 110%;
  font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap;
  transition: background-color var(--d-etat) var(--ease), transform var(--d-etat) var(--ease), box-shadow var(--d-etat) var(--ease);
}
.appel--court { height: 36px; padding: 0 var(--s-4); font-size: 18px; flex: none; }
.appel--plein { width: 100%; min-height: 56px; padding: var(--s-3) var(--s-5); font-size: 22px; }
.appel--plein::before { content: "Appeler le\00a0"; font-weight: 400; }
.appel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--papier) 35%, transparent) 50%, transparent 70%);
  transform: translateX(-110%);
}
.appel:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--laiton-grave); }
@media (hover: hover) and (pointer: fine) {
  .appel:hover { background: color-mix(in srgb, var(--laiton) 85%, var(--laiton-grave)); }
  .appel:hover::after { transform: translateX(110%); transition: transform var(--d-photo) var(--ease); }
}

/* les liens: un filet, un second qui se dessine */
.lien {
  text-decoration: underline 1px color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 4px;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 1px) / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 300ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .lien:hover { background-size: 100% 1px; }
  .nav a:hover { text-decoration-color: currentColor; }
}

/* ---------- l'heure ---------- */
.heure {
  font-family: var(--f-titre); font-weight: 600; font-stretch: 125%;
  font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.01em;
}
.heure--xl { font-size: var(--t-heure-xl); color: var(--enduit); }
.chiffres { display: flex; align-items: flex-start; }
.case { display: block; height: 1em; overflow: hidden; }
.rouleau { display: flex; flex-direction: column; transform: translateY(-50%); }
.rouleau > span { display: block; height: 1em; line-height: 1; }
.chiffres .h { display: block; line-height: 1; margin: 0 0.12em; }
.chiffres .h + .case { margin-left: 0; }
.chiffres > .case:first-child { margin-right: 0; }

/* la règle de la journée */
.regle { position: relative; display: grid; grid-template-columns: auto 1fr auto; row-gap: var(--s-2); }
.regle-trait {
  grid-column: 1 / -1; height: 2px; width: 100%;
  background: color-mix(in srgb, var(--enduit) 50%, transparent);
  transform-origin: 0 50%;
}
.regle-de, .regle-a {
  font-family: var(--f-titre); font-weight: 600; font-stretch: 110%;
  font-variant-numeric: tabular-nums; font-size: var(--t-regle); line-height: 1.2;
  color: color-mix(in srgb, var(--enduit) 80%, transparent);
}
.regle-de { grid-column: 1; }
.regle-a { grid-column: 3; }

/* ---------- 1. le premier écran ---------- */
.premier { padding-top: var(--s-5); padding-bottom: var(--s-7); }
.premier-in {
  max-width: var(--largeur); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "heure" "regle" "photo" "titre" "ligne" "bouton";
}
.premier .heure { grid-area: heure; }
.premier .regle { grid-area: regle; margin-top: var(--s-3); }
.premier-photo {
  grid-area: photo; position: relative; margin-top: var(--s-5);
  aspect-ratio: 4 / 3; border-radius: var(--r-photo); overflow: hidden;
}
.premier-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* le pied de la photo fond dans la bande */
.premier-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--anthracite) 88%, transparent));
}
.premier .h1 { grid-area: titre; margin-top: var(--s-5); color: var(--enduit); }
.premier-ligne { grid-area: ligne; margin-top: var(--s-3); color: var(--enduit); }
.premier .appel--plein { grid-area: bouton; margin-top: var(--s-5); }

/* le moment: l'heure roule jusqu'à 6 h 30, la journée se trace */
@keyframes roule { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes paraît { from { opacity: 0; } to { opacity: 1; } }
.premier .rouleau { animation: roule 500ms var(--ease) calc(100ms + var(--n) * 70ms) both; }
.premier .regle-trait { animation: trace 800ms var(--ease) 800ms both; }
.premier .regle-a { animation: paraît 150ms linear 1600ms both; }

/* ---------- 2. la journée des soins ---------- */
.soins { padding-top: var(--s-7); }
.soins-in { max-width: var(--largeur); margin: 0 auto; }
.cadre {
  position: sticky; top: 0; z-index: 5;
  background: var(--papier);
  padding: var(--s-4) 0 var(--s-4);
  margin: 0 calc(-1 * var(--gouttiere));
  padding-left: var(--gouttiere); padding-right: var(--gouttiere);
}
.cadre::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 24px; pointer-events: none;
  background: linear-gradient(var(--papier), color-mix(in srgb, var(--papier) 0%, transparent));
}
.cadre-heure {
  position: relative; height: 1em; overflow: hidden;
  font-family: var(--f-titre); font-weight: 600; font-stretch: 125%;
  font-variant-numeric: tabular-nums; font-size: var(--t-heure); line-height: 1; color: var(--anthracite);
}
.cadre-heure .val { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(0); }
.cadre-heure .val.entre { transform: translateY(100%); }
.cadre-heure .val.sort { transform: translateY(-100%); }
.cadre-heure .val.anime { transition: transform 300ms var(--ease); }
.piste {
  position: relative; height: 4px; margin-top: var(--s-3);
  width: var(--photo-carre);
  background: color-mix(in srgb, var(--anthracite) 14%, transparent);
}
.piste-fait {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: var(--anthracite); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  transition: transform 300ms var(--ease);
}
.piste-marque {
  position: absolute; top: -6px; width: 2px; height: 16px; background: var(--anthracite);
  left: calc(var(--p, 0) * 100% - 1px);
  transition: left 300ms var(--ease);
}
.cadre-photo {
  position: relative; margin-top: var(--s-4);
  width: var(--photo-carre); aspect-ratio: 1; border-radius: var(--r-photo); overflow: hidden;
  background: var(--enduit);
}
.cadre-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 300ms var(--ease);
}
.cadre-photo img.is-on { opacity: 1; }
/* la gaze sur le cadre carré */
.cadre-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("img/gaze.webp") center / 256px 256px repeat;
  mix-blend-mode: multiply; opacity: 0.06;
}

.journee { position: relative; padding-top: var(--s-7); }
.h2--gaze { position: relative; max-width: 14ch; }
.h2--gaze::before {
  content: ""; position: absolute; inset: -24px -32px; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, var(--anthracite) 40%, transparent);
  mask-image: radial-gradient(closest-side, var(--anthracite) 40%, transparent);
  background: url("img/gaze.webp") center / 256px 256px repeat;
  mix-blend-mode: multiply; opacity: 0.08;
}
.lignes { margin-top: var(--s-6); }
.soin {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-2); align-content: start;
  padding: var(--s-6) 0 var(--s-7);
  min-height: 42svh;
  border-top: 1px solid color-mix(in srgb, var(--anthracite) 16%, transparent);
}
.soin-heure {
  font-family: var(--f-titre); font-weight: 300; font-stretch: 125%;
  font-variant-numeric: tabular-nums; font-size: var(--t-h3); line-height: 1.2; color: var(--lame);
  transition: color var(--d-etat) var(--ease), font-weight var(--d-etat) var(--ease);
}
.soin.is-on .soin-heure { color: var(--anthracite); font-weight: 600; }
.soin-corps > * + * { margin-top: var(--s-3); }
.soin-corps p { max-width: 62ch; }
.soin-ou { font-weight: 700; }
.journee-fin {
  padding: var(--s-6) 0 0; border-top: 1px solid color-mix(in srgb, var(--anthracite) 16%, transparent);
  font-size: var(--t-lead); line-height: 1.5; max-width: 34ch; color: var(--lame);
}

/* ---------- 3. la zone ---------- */
.zone-in {
  max-width: var(--largeur); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6);
}
.zone-noms { font-family: var(--f-titre); font-stretch: 110%; font-size: var(--t-zone); line-height: 1.12; }
.zone-ton { font-weight: 300; color: var(--lame); }
.zone-liste { font-weight: 600; white-space: pre-line; margin: var(--s-2) 0; }
.zone-photo { width: 62%; justify-self: end; }
.vignette { border-radius: var(--r-photo); overflow: hidden; }
.vignette img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- 4. demander un passage ---------- */
.passage-in {
  max-width: var(--largeur); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-7);
}
.passage-photo { width: 56%; }
.etapes { margin-top: var(--s-6); counter-reset: etape; }
.etapes li {
  display: grid; grid-template-columns: 2.25em 1fr; column-gap: var(--s-3);
  padding: var(--s-4) 0;
}
.etapes li + li { border-top: 1px solid color-mix(in srgb, var(--anthracite) 12%, transparent); }
.etape-n {
  font-family: var(--f-titre); font-weight: 300; font-stretch: 125%; font-variant-numeric: tabular-nums;
  font-size: var(--t-h3); line-height: 1.2; color: var(--lame);
}
.etapes p { max-width: 58ch; }
.porte {
  margin-top: var(--s-6); max-width: 26ch;
  font-family: var(--f-titre); font-weight: 600; font-stretch: 110%; font-size: var(--t-h3); line-height: 1.25;
}

/* ---------- 5. le cabinet ---------- */
.cabinet-in {
  max-width: var(--largeur); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-7);
}
.cabinet-tete > * + * { margin-top: var(--s-4); }
.cabinet .h2 { margin-bottom: var(--s-5); }
.adresse {
  font-family: var(--f-titre); font-weight: 600; font-stretch: 110%; font-size: var(--t-h3); line-height: 1.25;
}
.semaine-titre { font-family: var(--f-titre); font-weight: 300; font-stretch: 110%; font-size: var(--t-h3); line-height: 1.2; }
.regle--semaine { margin-top: var(--s-4); margin-left: calc(3.2em + var(--s-3)); }
.regle--semaine .regle-a { text-align: right; }
.jours { margin-top: var(--s-3); }
.jour {
  display: grid; grid-template-columns: 3.2em 1fr; column-gap: var(--s-3); align-items: center;
  padding: var(--s-2) 0;
}
.jour dt {
  font-family: var(--f-titre); font-weight: 600; font-stretch: 110%; font-size: var(--t-body);
}
.jour dd { position: relative; display: grid; grid-template-columns: 1fr; row-gap: 2px; }
.lame { position: relative; display: block; height: 10px; background: color-mix(in srgb, var(--enduit) 10%, transparent); border-radius: 1px; }
.lame i {
  position: absolute; top: 0; bottom: 0; left: var(--de, 0%); right: var(--a, 0%);
  background: color-mix(in srgb, var(--enduit) 72%, transparent); border-radius: 1px;
  transform-origin: 0 50%;
}
.creneaux {
  font-family: var(--f-titre); font-weight: 400; font-stretch: 100%; font-variant-numeric: tabular-nums;
  font-size: var(--t-regle); line-height: 1.3; color: color-mix(in srgb, var(--enduit) 80%, transparent);
}
.creneaux span + span::before { content: ", "; }
.js .semaine .lame i { transform: scaleX(0); }
.js .semaine.is-in .lame i { transform: scaleX(1); transition: transform 800ms var(--ease) calc(300ms + var(--j, 0) * 80ms); }

/* ---------- 6. le contact ---------- */
.contact { padding-top: 0; }
.contact-photo { margin: 0 calc(-1 * var(--gouttiere)); overflow: hidden; }
.contact-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 60%; }
.contact-in { max-width: var(--largeur); margin: var(--s-7) auto 0; }
.contact .h2 { max-width: 16ch; }
.contact-actions { margin-top: var(--s-6); display: grid; row-gap: var(--s-4); }
.preuve { margin-top: var(--s-6); max-width: 46ch; color: var(--lame); font-size: var(--t-lead); line-height: 1.5; }

/* ---------- 7. le pied de page, la plaque ---------- */
.pied { padding-bottom: calc(var(--s-8) + 88px); }
.pied::after { background: var(--papier); }
.pied-in { max-width: var(--largeur); margin: 0 auto; }
.plaque {
  position: relative;
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-plaque);
  background: var(--laiton);
  color: var(--anthracite);
  box-shadow:
    inset 0 0 0 1px var(--laiton-grave),
    inset 2px 2px 0 color-mix(in srgb, var(--papier) 40%, transparent),
    inset -2px -2px 0 color-mix(in srgb, var(--laiton-grave) 55%, transparent);
  isolation: isolate;
}
.plaque::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: url("img/laiton.webp") center / cover;
  mix-blend-mode: soft-light; opacity: 0.35;
}
.pl {
  font-family: var(--f-titre); font-weight: 600; font-stretch: 125%;
  font-size: var(--t-plaque-xl); line-height: 1.05; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 color-mix(in srgb, var(--papier) 35%, transparent);
  white-space: nowrap;
}
.pl + .pl { margin-top: var(--s-2); }
.pl--petit { font-size: var(--t-plaque); letter-spacing: 0.06em; line-height: 1.25; margin-bottom: var(--s-3); }
.pl--tel { margin-top: var(--s-4) !important; }
.pl--tel a { text-decoration: none; }
.pl-tel-mot { font-size: var(--t-plaque); letter-spacing: 0.06em; vertical-align: 0.35em; }
.vis {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--laiton-grave);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--laiton) 35%, transparent);
}
.vis::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 1.6px; margin-top: -0.8px;
  background: var(--anthracite); transform: rotate(var(--angle));
}
.vis--1 { top: 10px; left: 10px; --angle: 35deg; }
.vis--2 { top: 10px; right: 10px; --angle: -20deg; }
.vis--3 { bottom: 10px; left: 10px; --angle: 70deg; }
.vis--4 { bottom: 10px; right: 10px; --angle: 10deg; }
@keyframes grave { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.js .plaque.reveal { opacity: 1; transform: none; }
.js .plaque .pl { clip-path: inset(0 100% 0 0); }
.js .plaque.is-in .pl { animation: grave 500ms var(--ease) calc(var(--l) * 620ms) both; }
.pied-adresse { margin-top: var(--s-6); }
.pied-legal { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.pied-legal a {
  color: color-mix(in srgb, var(--enduit) 80%, transparent);
  text-decoration: underline 1px color-mix(in srgb, var(--enduit) 35%, transparent); text-underline-offset: 4px;
}

/* ---------- l'action sous le pouce, au téléphone ---------- */
.pouce {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: var(--s-2) var(--gouttiere) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: var(--anthracite);
  transform: translateY(110%); visibility: hidden;
  transition: transform 300ms var(--ease), visibility 0s linear 300ms;
}
.pouce.is-on { transform: translateY(0); visibility: visible; transition: transform 300ms var(--ease), visibility 0s; }
.pouce .appel--plein { min-height: 52px; font-size: 20px; }
.pouce.is-on a { pointer-events: auto; }

/* ---------- 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(--ease), transform var(--d-entree) var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ---------- 768 ---------- */
@media (min-width: 700px) {
  .zone-in { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); column-gap: var(--s-7); align-items: end; }
  .zone .h2 { grid-column: 1 / -1; }
  .zone-photo { width: 100%; }
  .passage-in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: var(--s-7); align-items: start; }
  .passage-photo { width: 100%; position: sticky; top: var(--s-7); }
  .cabinet-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: var(--s-7); }
  .premier-photo { max-width: 640px; }
  .jour dd { grid-template-columns: minmax(0, 1fr) 8.5em; column-gap: var(--s-4); align-items: center; }
  .creneaux { font-size: var(--t-body); }
  .regle--semaine { margin-right: calc(8.5em + var(--s-4)); }
}

/* ---------- 1024 et plus ---------- */
@media (min-width: 1024px) {
  .barre { position: sticky; top: 0; }
  .menu { display: none; }
  .nav { display: flex; margin-left: auto; gap: var(--s-6); }
  .nav a {
    font-size: var(--t-body); text-decoration: underline 2px transparent; text-underline-offset: 8px;
    transition: text-decoration-color var(--d-etat) var(--ease);
  }
  .nav a[aria-current="true"] { text-decoration-color: var(--laiton); }
  .appel--court { margin-left: var(--s-5); }

  .premier { padding: 0 0 0 var(--gouttiere); overflow: hidden; }
  .premier-in {
    max-width: none; margin: 0;
    grid-template-columns: minmax(0, 1fr) 50vw;
    grid-template-rows: auto auto auto 1fr auto;
    grid-template-areas: "heure photo" "titre photo" "ligne photo" "bouton photo" "regle regle";
    column-gap: 0;
    padding-left: max(0px, calc((100vw - var(--largeur)) / 2 - var(--gouttiere)));
  }
  .premier .heure { padding-top: var(--s-8); position: relative; z-index: 2; margin-right: -120px; }
  .premier-photo {
    margin-top: 0; aspect-ratio: auto; height: 100%; min-height: 560px; border-radius: 0; max-width: none;
  }
  .premier-photo::after {
    left: 0; top: 0; bottom: 0; right: auto; width: 80px; height: auto;
    background: linear-gradient(to right, var(--anthracite), color-mix(in srgb, var(--anthracite) 0%, transparent));
  }
  .premier .h1 { margin-top: var(--s-6); max-width: 13em; }
  .premier-ligne { font-size: var(--t-lead); }
  .premier .appel--plein { width: auto; justify-self: start; min-width: 380px; margin-top: var(--s-6); margin-bottom: var(--s-8); }
  .premier .regle { margin: 0; padding: var(--s-5) max(var(--gouttiere), calc((100vw - var(--largeur)) / 2)) var(--s-6) 0; }

  .soins { padding-top: var(--bande); }
  .soins-in { display: grid; grid-template-columns: 45% minmax(0, 1fr); column-gap: var(--s-8); align-items: start; }
  .cadre { top: calc(var(--barre) + var(--s-6)); margin: 0; padding: 0; background: none; }
  .cadre::after { display: none; }
  .journee { padding-top: 0; }
  .soin { min-height: 40vh; grid-template-columns: 6em minmax(0, 1fr); column-gap: var(--s-4); }

  .zone-in { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.8fr); align-items: start; }
  .zone .h2 { grid-column: 1; max-width: 9em; }
  .zone-noms { grid-column: 2; }
  .zone-photo { grid-column: 3; margin-top: var(--s-9); }

  .passage-in { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); column-gap: var(--s-9); }
  .passage-photo { max-width: 400px; }
  .passage-texte { padding-top: var(--s-6); }
  .porte { font-size: 34px; }

  .cabinet-in { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: var(--s-9); align-items: end; }

  .contact-in {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: var(--s-9);
    align-items: start;
  }
  .contact .h2 { grid-row: 1 / 3; }
  .contact-actions { margin-top: 0; }
  .contact .appel--plein { font-size: 24px; }
  .preuve { margin-top: var(--s-6); }

  .pied { padding-bottom: var(--s-9); }
  .plaque { padding: var(--s-7) var(--s-8); }
  .vis { width: 18px; height: 18px; }
  .vis--1 { top: 16px; left: 16px; } .vis--2 { top: 16px; right: 16px; }
  .vis--3 { bottom: 16px; left: 16px; } .vis--4 { bottom: 16px; right: 16px; }
  .pl + .pl { margin-top: var(--s-3); }
  .pouce { display: none; }
}

/* ---------- mouvement réduit: l'état final d'emblée ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .premier .rouleau, .premier .regle-trait, .premier .regle-a { animation: none; }
  .cadre-heure .val.anime, .piste-fait, .piste-marque, .cadre-photo img, .pouce { transition: none; }
  .js .reveal { transform: none; }
  .js .reveal.is-in { transition: opacity var(--d-etat) linear; transition-delay: 0ms; }
  .js .semaine .lame i, .js .semaine.is-in .lame i { transform: none; transition: none; }
  .js .plaque .pl, .js .plaque.is-in .pl { clip-path: none; animation: none; }
  .appel, .appel::after, .lien { transition: none; }
  .appel:hover::after { transition: none; }
}
