/*
 * Cabinet de pédiatrie — Dr Fatimazahra Tassou, Fès
 *
 * Direction (méthode unslop de Damir Sokolovsky, @heydamir, CC BY 4.0)
 *   Produit   : site du cabinet de pédiatrie et d'endocrinologie pédiatrique, pour les parents
 *   Caractère : joyeux, rassurant, précis
 *   Monde     : la salle d'attente du cabinet — fauteuils vert pomme, table turquoise, peluches,
 *               toise murale avec sa montgolfière, ballon du logo
 *   Moments   : la toise colorée de l'accueil, la courbe de croissance
 *   Signature : les graduations de la toise
 *
 * Interface sobre (rampe chaude, un accent vert du logo) ; les couleurs d'enfants ne servent qu'à
 * désigner un type de consultation, partout de la même façon.
 */
:root {
  /* Rampe chaude (tokens unslop « warm », clair) */
  --bg: #f7f4ee;
  --card: #fdfbf7;
  --raised: #efe9df;
  --text: #1f1b16;
  --text-2: #5e554a;
  --muted: #7b7266;
  --line: rgba(31, 27, 22, 0.08);
  --line-strong: rgba(31, 27, 22, 0.14);

  /* Accent : vert du logo, assombri pour 5:1 avec le blanc */
  --accent: #4e7a30;
  --accent-hover: #43692a;
  --accent-ink: #3d6125;

  /* Couleurs d'enfants : une par type de consultation (fond doux, encre lisible, couleur pleine) */
  --green-tint: #e7f2d2; --green-ink: #3d6a1d; --green: #9cc63f;
  --teal-tint: #d6f0ec;  --teal-ink: #16665c;  --teal: #3fb8a9;
  --sky-tint: #ddeefb;   --sky-ink: #1f5d8a;   --sky: #5dade2;
  --sun-tint: #fff0c4;   --sun-ink: #855700;   --sun: #f6c445;
  --coral-tint: #fde3d6; --coral-ink: #a1422a; --coral: #f28c6a;
  --pink-tint: #f8e2eb;  --pink-ink: #8c2f55;  --pink: #e58bb0;

  --r-control: 10px;
  --r-card: 16px;
  --r-panel: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --font: "Figtree", "Segoe UI", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.1; color: var(--text); }
h1 { font-size: 60px; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: 40px; letter-spacing: -0.02em; }
h3, .h3 { font-size: 20px; letter-spacing: 0; }
p { margin: 0; }
sup { font-size: 0.7em; }
.ar { font-family: "Tajawal", var(--font); font-weight: 500; letter-spacing: 0; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1200px, 100% - 64px); margin-inline: auto; }
.intro { margin-top: 12px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 36rem; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: var(--r-control); background: var(--text); color: #fff; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-control);
  border: 1px solid transparent; font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--raised); border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--line-strong); background: #e9e2d6; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 238, 0.94); border-bottom: 1px solid transparent; transition: border-color 160ms var(--ease); }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 600; font-size: 17px; line-height: 1.2; white-space: nowrap; }
.brand-sub { font-size: 13px; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: var(--r-control); text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 15px; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a.active { color: var(--text); }
.nav-call { display: none !important; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--card); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ic { width: 20px; height: 20px; }
.menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

/* ---------- Accueil ---------- */
.hero { padding: 40px 0 64px; }
.hero-in { display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: center; min-height: calc(100svh - var(--header-h) - 104px); }
.hero-place { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 15px; color: var(--text-2); margin-bottom: 20px; }
.hero-place .ar { color: var(--accent-ink); font-size: 16px; }
.hero h1 { max-width: 11em; }
.lead { margin-top: 20px; font-size: 20px; line-height: 1.5; color: var(--text-2); max-width: 32rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { margin: 40px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; max-width: 32rem; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-facts div { display: contents; }
.hero-facts dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.hero-facts dd { margin: 0; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-facts .open { color: var(--accent-ink); font-weight: 600; }
.hero-facts .shut { color: var(--coral-ink); font-weight: 600; }

/* Visuel : toise colorée + photo, un seul bloc */
.hero-visual { display: grid; grid-template-columns: 84px 1fr; gap: 0; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 12px; box-shadow: var(--shadow); }
.portrait { position: relative; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--raised); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; border-radius: 8px; background: rgba(253, 251, 247, 0.94); font-weight: 600; font-size: 15px; line-height: 1.4; }
.portrait figcaption span { display: block; font-weight: 400; font-size: 13px; color: var(--text-2); }

.toise { position: relative; margin-right: 12px; border-radius: 12px; overflow: hidden; background: var(--card); }
.toise-bands { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(6, 1fr); }
.toise-bands i:nth-child(1) { background: var(--sky); }
.toise-bands i:nth-child(2) { background: var(--teal); }
.toise-bands i:nth-child(3) { background: var(--green); }
.toise-bands i:nth-child(4) { background: var(--sun); }
.toise-bands i:nth-child(5) { background: var(--coral); }
.toise-bands i:nth-child(6) { background: var(--pink); }
/* Graduations (signature) : la toise couvre 40 à 160 cm — un trait tous les 2 cm, un plus long tous les 10 cm */
.toise-ticks {
  position: absolute; inset: 0 auto 0 0; width: 100%;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0 1.5px, transparent 1.5px calc(100% / 60)) left top / 22px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0 2px, transparent 2px calc(100% / 12)) left top / 40px 100% no-repeat;
}
.toise-labels { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-rows: repeat(6, 1fr); }
.toise-labels li { display: flex; align-items: flex-start; justify-content: flex-end; padding: 4px 8px 0 0; font-size: 12px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18); }
.balloon-mark { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; transform-origin: bottom; }
.balloon-mark .balloon { width: 40px; height: auto; margin: -64px 0 0 6px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12)); }
.balloon-mark .mark-line { width: 100%; height: 3px; background: var(--text); margin-top: 0; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }

/* ---------- Endocrinologie ---------- */
.endo-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.endo-text h3 { margin-top: 32px; font-size: 18px; }
.check-list { list-style: none; padding: 0; margin: 16px 0 32px; display: grid; gap: 8px; }
.check-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 16px; }
.check-list .ic { margin-top: 3px; color: var(--teal-ink); }
.endo-visual { display: grid; gap: 16px; }
.chart { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; box-shadow: var(--shadow); }
.chart figcaption { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.chart figcaption b { font-family: var(--display); font-weight: 500; font-size: 20px; }
.chart figcaption span { font-size: 14px; color: var(--muted); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid path { stroke: rgba(31, 27, 22, 0.07); stroke-width: 1; }
.chart .ticks path { stroke: rgba(31, 27, 22, 0.35); stroke-width: 1.2; }
.chart .y-labels text, .chart .x-labels text, .chart .pct-labels text { font: 500 11px var(--font); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .y-labels text { text-anchor: end; }
.chart .x-labels text { text-anchor: start; }
.chart .pct { fill: none; stroke: rgba(31, 27, 22, 0.18); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .pct.p50 { stroke: rgba(31, 27, 22, 0.3); stroke-dasharray: none; }
.chart .child { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1400ms var(--ease) 200ms; }
.chart .dots circle { fill: var(--card); stroke: var(--teal); stroke-width: 2; opacity: 0; transition: opacity 300ms var(--ease); }
.chart .dots circle.last { fill: var(--teal); stroke: var(--card); }
.chart .last-label { opacity: 0; transition: opacity 300ms var(--ease) 1500ms; }
.chart .last-label rect { fill: var(--teal-ink); }
.chart .last-label text { font: 600 12px var(--font); fill: #fff; font-variant-numeric: tabular-nums; }
.chart.drawn .child { stroke-dashoffset: 0; }
.chart.drawn .dots circle, .chart.drawn .last-label { opacity: 1; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 20px; border-top: 3px solid var(--teal); border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.chart-legend i.lg-pct { border-top: 1.5px dashed rgba(31, 27, 22, 0.35); }
.endo-proof { display: grid; grid-template-columns: 0.6fr 1fr; gap: 16px; align-items: start; }
.endo-proof figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px; }
.endo-proof img { border-radius: 8px; width: 100%; }
.endo-proof figure:first-child img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center 35%; }
.endo-proof figcaption { padding: 8px 4px 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- Consultations : une couleur d'enfant par type ---------- */
.c-green { --tint: var(--green-tint); --ink: var(--green-ink); --solid: var(--green); }
.c-teal { --tint: var(--teal-tint); --ink: var(--teal-ink); --solid: var(--teal); }
.c-sky { --tint: var(--sky-tint); --ink: var(--sky-ink); --solid: var(--sky); }
.c-sun { --tint: var(--sun-tint); --ink: var(--sun-ink); --solid: var(--sun); }
.c-coral { --tint: var(--coral-tint); --ink: var(--coral-ink); --solid: var(--coral); }
.c-pink { --tint: var(--pink-tint); --ink: var(--pink-ink); --solid: var(--pink); }
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.care { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-card); background: var(--tint); color: var(--text); text-decoration: none; transition: transform 160ms var(--ease); }
.care h3 { margin-top: 20px; }
.care p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.care-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform 160ms var(--ease); }
.care-icon .ic { width: 20px; height: 20px; }
.care:hover .care-icon { transform: translateY(-2px) rotate(-6deg); }
.care-photo { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; }
.care-photo img { width: 100%; flex: 1; min-height: 240px; object-fit: cover; }
.care-photo .care-body { padding: 24px; }
.care-link .more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.care-link .more .ic { transition: transform 160ms var(--ease); }
.care-link:hover .more .ic { transform: translateX(2px); }

/* ---------- Parcours ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media { margin: 0; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); }
.timeline { list-style: none; padding: 0; margin: 32px 0 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 12px 1fr; gap: 16px; padding-bottom: 20px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 5.5px; top: 20px; bottom: 0; width: 1px; background: var(--line-strong); }
.tl-dot { width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; border: 2px solid var(--muted); background: var(--card); }
.tl-dot.tl-teal { border-color: var(--teal); background: var(--teal); }
.timeline b { display: block; font-weight: 600; }
.timeline span { display: block; font-size: 14px; color: var(--muted); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 16px; }
.g-item { position: relative; padding: 0; border: 0; border-radius: var(--r-card); overflow: hidden; cursor: zoom-in; background: var(--raised); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.g-item:hover img { transform: scale(1.02); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-cap { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(253, 251, 247, 0.94); font: 500 13px var(--font); color: var(--text); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); overflow: visible; }
.lightbox::backdrop { background: rgba(31, 27, 22, 0.8); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; border-radius: var(--r-card); }
.lb-close { position: absolute; top: -52px; right: 0; width: 40px; height: 40px; border-radius: var(--r-control); border: 0; background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; }

/* ---------- Horaires et accès ---------- */
.infos { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 16px; }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.panel h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel h2 .ic { color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--text-2); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today th, .hours tr.today td { font-weight: 600; color: var(--text); }
.hours tr.today th::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
address { font-style: normal; color: var(--text-2); }
.contact-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; align-items: center; }
.contact-list .ic { color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-list a:hover { color: var(--accent-ink); }
.contact-list span { grid-column: 2; font-size: 13px; color: var(--muted); }
.contact-list span.plain { grid-column: auto; font-size: 15px; color: var(--text); }
.panel.map { padding: 0; overflow: hidden; min-height: 320px; }
.panel.map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Rendez-vous ---------- */
.rdv { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.rdv-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.motifs { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.motifs legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--card); font-size: 15px; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--solid); }
.chip input:checked + span { background: var(--tint); border-color: var(--ink); color: var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-control);
  border: 1px solid var(--line-strong); background: var(--bg); font: 400 16px var(--font); color: var(--text);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(78, 122, 48, 0.16); }
.field .invalid { border-color: var(--coral-ink); }
.form-error { color: var(--coral-ink); font-size: 14px; font-weight: 500; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 32px; }
.faq-list { display: grid; gap: 8px; max-width: 48rem; }
.faq-list details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { color: var(--muted); transition: transform 160ms var(--ease); }
.faq-list details[open] summary .ic { transform: rotate(45deg); }
.faq-list details p { padding: 0 20px 20px; color: var(--text-2); }

/* ---------- Pied de page ---------- */
.site-footer { padding-top: 64px; }
.foot-in { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.foot-logo { width: 160px; }
.site-footer h4 { font-family: var(--font); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.site-footer p, .foot-nav a { font-size: 15px; color: var(--text-2); }
.site-footer p + p { margin-top: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); }
.foot-nav { display: grid; align-content: start; gap: 8px; }
.foot-nav h4 { margin-bottom: 4px; }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mobile-bar { display: none; }

/* ---------- Une seule entrée au chargement + la montgolfière qui monte (croissance) ---------- */
.hero-text > *, .hero-visual { animation: enter 480ms var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 50ms; }
.hero-text > :nth-child(3) { animation-delay: 100ms; }
.hero-text > :nth-child(4) { animation-delay: 150ms; }
.hero-text > :nth-child(5) { animation-delay: 200ms; }
.hero-visual { animation-delay: 120ms; }
.balloon-mark { animation: grow 1600ms var(--ease) 400ms both; }
.balloon-mark .balloon { animation: sway 6s ease-in-out 2s infinite; transform-origin: 50% 100%; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0.12); } to { transform: none; } }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* ---------- Tablette ---------- */
@media (max-width: 1120px) {
  .hero-in { grid-template-columns: 1fr 440px; gap: 48px; }
  h1 { font-size: 52px; }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .care-photo { grid-column: span 2; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .care-link { grid-column: span 2; }
  .care-photo img { min-height: 260px; }
  .infos { grid-template-columns: 1fr 1fr; }
  .panel.map { grid-column: span 2; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile : menu compact ---------- */
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .container { width: min(1200px, 100% - 32px); }
  h1 { font-size: 40px; line-height: 1.06; letter-spacing: -0.02em; }
  h2 { font-size: 32px; }
  .intro { font-size: 17px; }
  .header-in { gap: 8px; }
  .brand img { height: 36px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 12px; }
  .menu-btn { display: inline-flex; }
  .nav + .header-actions { margin-left: auto; }
  .header-rdv { width: 40px; min-height: 40px; padding: 0; }
  .header-rdv span { display: none; }
  .header-rdv .ic { width: 20px; height: 20px; }
  .nav {
    position: absolute; top: calc(var(--header-h) - 4px); right: 16px; width: min(260px, calc(100vw - 32px));
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
  .nav a { min-height: 44px; font-size: 16px; }
  .nav-call { display: flex !important; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px !important; color: var(--accent-ink) !important; }

  .hero { padding: 32px 0 64px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .lead { font-size: 18px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-facts { margin-top: 32px; }
  .hero-visual { grid-template-columns: 64px 1fr; padding: 8px; width: min(100%, 420px); justify-self: center; }
  .toise { margin-right: 8px; }
  .toise-labels li { font-size: 11px; padding-right: 4px; }
  .balloon-mark .balloon { width: 32px; margin: -52px 0 0 4px; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .endo-grid, .about, .rdv { grid-template-columns: 1fr; gap: 40px; }
  .care-grid { grid-template-columns: 1fr 1fr; }
  .care-photo { grid-column: span 2; display: flex; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .g-wide { grid-column: span 2; }

  .mobile-bar {
    display: grid; grid-template-columns: auto 1fr; gap: 8px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    padding: 6px; border-radius: var(--r-card); background: rgba(253, 251, 247, 0.97); border: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(150%); transition: transform 300ms var(--ease);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-control); text-decoration: none; font-weight: 600; font-size: 15px; background: var(--raised); color: var(--text); }
  .mobile-bar .mb-wa { background: var(--accent); color: #fff; }
  .site-footer { padding-bottom: 80px; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .care-grid { grid-template-columns: 1fr; }
  .care-photo, .care-link { grid-column: auto; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-wide, .g-tall { grid-column: auto; grid-row: auto; }
  .infos { grid-template-columns: 1fr; }
  .panel.map { grid-column: auto; }
  .row { grid-template-columns: 1fr; }
  .rdv-form { padding: 20px; }
  .foot-in { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .chart .child { stroke-dashoffset: 0; }
  .chart .dots circle, .chart .last-label { opacity: 1; }
}
