@font-face {
  font-family: "Andika";
  src: url("fonts/andika-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Andika";
  src: url("fonts/andika-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F3F4F1;
  --facade: #DCD3C3;
  --ink: #1B2427;
  --slate: #566166;
  --line: #D5D9D6;
  --soin: #1D6A4E;
  --soin-dark: #155540;
  --radius: 4px;
  --gutter: 16px;
  --font: "Andika", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.1875rem;
  line-height: 1.55;
  letter-spacing: 0;
  padding-bottom: 80px;
}
h1, h2, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: var(--soin); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--soin); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: the label comes from data-label, so the element itself holds the number only */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3em;
  min-height: 56px; padding: 0 24px;
  background: var(--soin); color: #fff;
  border-radius: var(--radius);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background-color 300ms;
}
.btn::before { content: attr(data-label) " "; font-weight: 400; white-space: pre; }
.link { font-weight: 700; }

/* Header: desktop only, sticky, keeps the call one click away */
.top { display: none; }

/* Hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; }
.hero-in { display: flex; flex-direction: column; padding-top: 32px; padding-bottom: 96px; }
.hero-call { margin-top: 48px; }
.hero-meta { margin-top: 28px; }
.dayline { margin-top: auto; padding-top: 48px; }
.eyebrow { font-size: 1rem; color: var(--slate); margin-bottom: 8px; }
h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 4rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.3125rem, 1.15rem + 0.6vw, 1.5rem); line-height: 1.35; margin-top: 12px; max-width: 30ch; text-wrap: balance; }
.status { margin-top: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.status:empty { display: none; }
.status::before {
  content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%;
  border: 2px solid var(--ink);
}
.status.is-open::before { background: var(--ink); }
.note { margin-top: 12px; padding-left: 22px; max-width: 34ch; white-space: pre-line; }
.note:empty { display: none; }

.call-label { font-size: 1rem; color: var(--slate); margin-bottom: 4px; }
.phone {
  display: inline-block;
  font-size: min(12vw, 11rem);
  line-height: 1; font-weight: 700; letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: max(3px, 0.035em); text-underline-offset: 0.12em;
}

.hero-meta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.proof { font-size: 1rem; line-height: 1.5; }

/* The day line: a 24 h track, the open slots filled, now marked */
.dayline-label { font-size: 1rem; margin-bottom: 12px; }
.dayline-label b { font-weight: 700; }
.track { position: relative; display: block; height: 8px; background: var(--line); border-radius: var(--radius); }
.track-big { height: 12px; }
.track i { position: absolute; top: 0; bottom: 0; background: var(--ink); border-radius: var(--radius); }
.track .now {
  position: absolute; top: -8px; bottom: -8px; width: 2px; margin-left: -1px;
  background: var(--ink); box-shadow: 0 0 0 2px var(--paper);
}
.scale { position: relative; height: 20px; margin-top: 8px; font-size: 0.875rem; color: var(--slate); }
.scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.scale span:nth-child(1) { left: 0; transform: none; }
.scale span:nth-child(2) { left: 25%; }
.scale span:nth-child(3) { left: 50%; }
.scale span:nth-child(4) { left: 75%; }
.scale span:nth-child(5) { left: 100%; transform: translateX(-100%); }

/* Parcours: opens on the numbers */
.parcours { padding: 64px 0 72px; }
.years { display: grid; gap: 32px; }
.years li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; align-content: start; gap: 20px; }
.year {
  font-size: clamp(3.5rem, 2.4rem + 4.6vw, 7.5rem); line-height: 0.9; font-weight: 700;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.years p { max-width: 22ch; }

/* Au cabinet, chez vous */
.lieux-in { display: grid; padding-inline: 0; }
.lieu { padding: 48px var(--gutter); }
.lieu-cabinet { background: var(--facade); }
.lieu h2, .horaires h2 { font-size: clamp(1.875rem, 1.45rem + 1.8vw, 2.75rem); line-height: 1.1; font-weight: 700; margin-bottom: 20px; }
.lieu p + p { margin-top: 12px; }
.lieu .link { display: inline-block; margin-top: 24px; }
.addr { font-size: 1.3125rem; line-height: 1.4; font-weight: 700; white-space: pre-line; }
.lieu-domicile p { white-space: pre-line; max-width: 34ch; text-wrap: pretty; }
.small { font-size: 1rem; color: var(--ink); }

/* Horaires */
.horaires { padding: 56px 0 56px; }
.h-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 32px; }
.h-head h2 { margin-bottom: 0; }
.h-head .status { margin-top: 0; }
.week li {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "d s" "t t";
  gap: 6px 16px; align-items: baseline;
  padding: 14px 0;
}
.week .d { grid-area: d; }
.week .slots { grid-area: s; font-variant-numeric: tabular-nums; text-align: right; }
.week .slots span + span::before { content: ", "; }
.week .slots .off { color: var(--slate); }
.week .track { grid-area: t; margin-top: 6px; }
.week li.today { font-weight: 700; }
.scale-week { margin-top: 4px; }

/* Close */
.close { padding: 56px 0 72px; }
.close-in { display: grid; gap: 28px; justify-items: start; }
.close h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.1; font-weight: 700; text-wrap: balance; }
.btn-big { min-height: 64px; font-size: 1.25rem; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: 48px 0 40px; font-size: 1rem; }
.foot a { color: var(--paper); }
.foot-in { display: grid; gap: 16px; }
.foot-name { font-weight: 700; font-size: 1.1875rem; }
.foot-addr { white-space: pre-line; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.credit { color: #A9B2B4; }

/* Pinned call on the phone */
.callbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 0.3em;
  min-height: 56px; border-radius: var(--radius);
  background: var(--soin); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums;
}
.callbar::before { content: attr(data-label) " "; font-weight: 400; white-space: pre; }

/* Section reveal, once */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .top {
    display: block; position: sticky; top: 0; z-index: 20;
    background: var(--paper);
  }
  .top-in { display: flex; align-items: center; gap: 32px; height: 72px; }
  .mark { font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; margin-right: auto; }
  .nav { display: flex; gap: 28px; font-size: 1rem; }
  .nav a { color: var(--ink); text-decoration: none; }
  .btn-top { min-height: 48px; padding: 0 20px; font-size: 1rem; }
  .hero { min-height: calc(100vh - 72px); }
  .hero-in { padding-top: 64px; padding-bottom: 64px; justify-content: center; }
  .hero-in .dayline { margin-top: 72px; padding-top: 0; }
  section[id] { scroll-margin-top: 88px; }
  .years { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .years li { grid-template-columns: 1fr; gap: 16px; }
  .lieux-in { grid-template-columns: 1fr 1fr; padding-inline: var(--gutter); }
  .lieu { padding: 56px 48px; }
  .week li { grid-template-columns: 140px 1fr 150px; grid-template-areas: "d t s"; align-items: center; padding: 12px 0; }
  .week .track { margin-top: 0; }
  .scale-week { margin-left: 156px; margin-right: 166px; }
  .horaires { padding: 72px 0 64px; }
  .close h2 span { display: block; }
}

@media (min-width: 1100px) {
  :root { --gutter: 48px; }
  .hero-in {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "id id id id id id id id meta meta meta meta"
      "call call call call call call call call call call call call"
      "day day day day day day day day day day day day";
    column-gap: 32px; padding-bottom: 48px;
  }
  .hero-id { grid-area: id; }
  .hero-call { grid-area: call; margin-top: 56px; }
  .hero-meta { grid-area: meta; margin-top: 0; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 16px; }
  .dayline { grid-area: day; align-self: end; padding-top: 56px; }
  .parcours { padding: 96px 0 104px; }
  .lieu { padding: 72px 64px; }
  .horaires { padding: 104px 0 88px; }
  .week li { grid-template-columns: 200px 1fr 200px; }
  .scale-week { margin-left: 216px; margin-right: 216px; }
  .close { padding: 64px 0 112px; }
  .close-in { grid-template-columns: 1fr auto; align-items: end; }
  .lead { max-width: 40ch; }
  .foot-in { grid-template-columns: repeat(3, auto) 1fr; align-items: start; column-gap: 64px; }
  .foot-in .legal, .foot-in .credit { grid-column: 1 / -1; }
  .foot-in .legal { margin-top: 16px; }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover, .callbar:hover { background: var(--soin-dark); }
  .nav a:hover { color: var(--soin); text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .callbar { transition: none; }
}
