/* Fonts served from our own hosting (no request to Google): SIL Open Font License, see /fonts/. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Layout: one narrow column for parents on a phone; the hero answers "is it open, who do I call";
   the growth ruler (la toise) for check-ups is the one bold element. */
:root {
  --paper: #F6F8F7;
  --ink: #1D2B3A;
  --muted: #4F6170;
  --leaf: #2E7466;
  --leaf-ink: #FFFFFF;
  --sun: #F0B93A;
  --mist: #E4EEEA;
  --line: #C9D8D2;
  --alert: #B4362B;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Atkinson Hyperlegible", "Verdana", "Segoe UI", sans-serif;
  --measure: 62ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11191E; --ink: #E5EEEA; --muted: #A3B4BC; --leaf: #6CC3AE; --leaf-ink: #0C1A17;
    --sun: #F3C557; --mist: #1A262B; --line: #2D3D44; --alert: #F08A7E; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11191E; --ink: #E5EEEA; --muted: #A3B4BC; --leaf: #6CC3AE; --leaf-ink: #0C1A17;
  --sun: #F3C557; --mist: #1A262B; --line: #2D3D44; --alert: #F08A7E; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
  /* keep clear of the notch and rounded corners on phones held sideways */
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: env(safe-area-inset-bottom);
}
.wrap { max-width: 68rem; margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0; max-width: var(--measure); }
a { color: var(--leaf); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand svg { flex: none; }
.langs { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.langs a, .langs span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.langs [aria-current] { background: var(--ink); color: var(--paper); }
nav.main { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 0.98rem; }
nav.main a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
nav.main a:hover { text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 48px; padding-block: 32px 48px; align-items: start; }
.hero-text { display: grid; gap: 18px; min-width: 0; }
.hero-text p { font-size: 1.15rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--leaf); }
.btn.primary { background: var(--leaf); color: var(--leaf-ink); }
.btn.ghost { color: var(--leaf); background: transparent; }

.today { background: var(--mist); border-radius: 20px; padding: 22px; display: grid; gap: 16px; min-width: 0; }
.status { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: none; }
.today[data-open="true"] .dot { background: var(--sun); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sun) 30%, transparent); }
.status-sub { color: var(--muted); font-size: 0.98rem; margin-top: -10px; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lines li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.lines .who { font-weight: 700; }
.lines a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }

/* Urgences band */
.urgent { border: 2px solid var(--alert); border-radius: 20px; padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; margin-bottom: 64px; }
.urgent h2 { font-size: 1.35rem; }
.urgent p { color: var(--muted); margin-top: 6px; }
.urgent-nums { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.urgent-nums div { display: grid; }
.urgent-nums small { color: var(--muted); font-size: 0.9rem; }
.urgent-nums strong { font-family: var(--display); font-size: 1.6rem; }
.urgent-nums a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.urgent-nums .vital strong { color: var(--alert); }

section.block { padding-block: 0 72px; display: grid; gap: 24px; }
.lead { color: var(--muted); }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 28px; }
.person { display: grid; gap: 8px; align-content: start; min-width: 0; }
.portrait { aspect-ratio: 1 / 1; max-width: 13rem; max-width: 100%; border-radius: 16px; background: var(--mist); display: grid; place-items: center; color: var(--muted); font-family: var(--display); font-size: 2.6rem; }
.person .role { color: var(--muted); font-size: 0.98rem; }

.gallery { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: start; }
.gallery img { width: 100%; height: clamp(180px, 26vw, 300px); object-fit: cover; border-radius: 14px; display: block; }

/* Growth ruler (la toise) */
.toise { position: relative; height: 150px; margin: 8px 2.5rem 0; }
.toise::before { content: ""; position: absolute; left: 0; right: 0; top: 56px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--leaf), var(--sun)); }
.mark { position: absolute; left: var(--p); top: 0; transform: translateX(-50%); display: grid; justify-items: center; text-align: center; width: 4.5rem; }
.mark .age { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1; height: 44px; display: flex; align-items: flex-end; }
.mark .unit { font-size: 0.8rem; color: var(--muted); }
.mark i { display: block; width: 2px; height: 24px; background: var(--ink); margin-block: 4px; }
.mark.year i { height: 34px; width: 3px; }
.toise-note { color: var(--muted); }
.toise + h3 { margin-top: 24px; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 12px 40px; list-style: none; margin: 0; padding: 0; }
.services li { padding-block: 14px; border-top: 1px solid var(--line); }
.services strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.services span { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 28px 40px; }
.contact > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.contact .num a { color: var(--ink); text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours th { text-align: left; font-weight: 400; color: var(--muted); padding: 6px 12px 6px 0; }
.hours td { padding: 6px 0; font-family: var(--display); font-variant-numeric: tabular-nums; }
.hours th, .hours td { white-space: nowrap; }
.hours-wrap { overflow-x: auto; }
.hours tr + tr { border-top: 1px solid var(--line); }

footer { border-top: 1px solid var(--line); padding-block: 16px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; color: var(--muted); font-size: 0.92rem; }
footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 16px 32px; }
  .urgent { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gallery img { height: 36vw; }
  .gallery img:first-child { grid-column: 1 / -1; height: 56vw; max-height: 340px; }
  nav.main { order: 3; width: 100%; }
  /* the ruler stands up on a phone, like a real toise */
  .toise { height: 440px; margin: 0; }
  .toise::before { left: calc(3rem + 8px); right: auto; top: 0; bottom: 0; width: 4px; height: auto; background: linear-gradient(180deg, var(--leaf), var(--sun)); }
  .mark { left: 0; top: var(--p); transform: translateY(-50%); display: flex; align-items: center; width: auto; text-align: left; gap: 8px; }
  .mark .age { height: auto; width: 3rem; justify-content: flex-end; }
  .mark i { width: 24px; height: 2px; margin: 0; }
  .mark.year i { width: 34px; height: 3px; }
  .mark .unit { order: 3; }
  .mark .age { order: 1; } .mark i { order: 2; }
  .person { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 16px; }
  .person .portrait { grid-row: span 4; font-size: 1.6rem; }
}
@media (max-width: 400px) {
  /* hours stack under the day on narrow phones instead of being cut off */
  .hours tr { display: grid; padding-block: 4px; }
  .hours th, .hours td { padding: 2px 0; white-space: normal; }
}
@media (prefers-reduced-motion: no-preference) {
  .today[data-open="true"] .dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--sun) 10%, transparent); } }
}

/* Legal pages */
.legal { padding-block: 24px 72px; display: grid; gap: 14px; max-width: var(--measure); }
.legal h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin-top: 22px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal .maj { color: var(--muted); font-size: 0.95rem; }
.legal address { font-style: normal; }
