/* Expé Gypas 2027 — feuille de style commune à toutes les pages.
   Concept : une page claire ou sombre selon le téléphone, bleu glacier comme couleur de fond,
   orange du logo réservé aux appels au don. Altitudes et francs en police mono. */
:root {
  --bg: #f3f8fc;
  --bg-rgb: 243, 248, 252;
  --band: #e7f0f7;
  --surface: #ffffff;
  --line: #cfdeea;
  --line-strong: #9db8cb;
  --fg: #0c2234;
  --muted: #46606f;
  --accent: #14679a;
  --bar: #2f86b8;
  --bar-soft: #8fc2de;
  --bar-deep: #14507a;
  --sun: #f2a954;
  --sun-hover: #f7b96c;
  --sun-ink: #1d1407;
  --sun-text: #9a5200;
  --need-bg: #fff4e2;
  --need-line: #efc78e;
  --track: #dbe7f0;
  --tile: #ffffff;
  --sub: #2d4558;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08131d; --bg-rgb: 8, 19, 29; --band: #0d1c29; --surface: #122434; --line: #223b4f; --line-strong: #34536a;
    --fg: #e8f1f8; --muted: #9bb2c4; --accent: #63b6e2; --bar: #58a9cf; --bar-soft: #9ccde4; --bar-deep: #2c6b8a;
    --sun-ink: #1a1206; --sun-text: #f2a954; --need-bg: #1b1810; --need-line: #5a4521; --track: #0e1c29; --tile: #f2f6f9; --sub: #c9d8e3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08131d; --bg-rgb: 8, 19, 29; --band: #0d1c29; --surface: #122434; --line: #223b4f; --line-strong: #34536a;
  --fg: #e8f1f8; --muted: #9bb2c4; --accent: #63b6e2; --bar: #58a9cf; --bar-soft: #9ccde4; --bar-deep: #2c6b8a;
  --sun-ink: #1a1206; --sun-text: #f2a954; --need-bg: #1b1810; --need-line: #5a4521; --track: #0e1c29; --tile: #f2f6f9; --sub: #c9d8e3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.65 var(--body); -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun); color: var(--sun-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 5.4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 3.4vw, 1.5rem); line-height: 1.2; }
p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sun-text); margin: 0 0 14px; }
.eyebrow.blue { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); line-height: 1.6; max-width: 62ch; }
.prose { max-width: 62ch; color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose strong, .lead strong { color: var(--fg); font-weight: 600; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--body); text-align: center; }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-sun:hover { background: var(--sun-hover); }
.btn-line { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-line:hover { border-color: var(--accent); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; white-space: nowrap; }
.btn.lg { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }
.link-arrow { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(var(--bg-rgb), 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand .dot { width: 13px; height: 13px; border-radius: 50%; background: var(--sun); flex: none; }
.brand em { font-style: normal; color: var(--accent); }
.brand small { font-family: var(--mono); font-weight: 400; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; }
.actions-top { display: flex; align-items: center; gap: 10px; }
.burger { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--fg); cursor: pointer; padding: 0; }
.burger svg { width: 20px; height: 20px; }
.nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.nav.open { display: flex; }
.nav a { padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.nav a:last-child { border-bottom: 0; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
@media (min-width: 1000px) {
  .burger { display: none; }
  .nav { position: static; display: flex; flex-direction: row; gap: 22px; padding: 0; border: 0; background: none; }
  .nav a { padding: 8px 0; border: 0; font-size: 0.93rem; color: var(--muted); border-bottom: 2px solid transparent; }
  .nav a:hover { color: var(--fg); }
  .nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--sun); }
}
@media (max-width: 400px) { .brand small { display: none; } .actions-top .btn { padding: 0 14px; } }

/* Home hero */
.hero { position: relative; }
.hero-media { position: relative; height: clamp(300px, 64vw, 660px); overflow: hidden; background: #0a2a4a; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 58%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(var(--bg-rgb), 0.75) 22%, rgba(var(--bg-rgb), 0) 62%); }
.hero-body { position: relative; margin-top: calc(-1 * clamp(80px, 15vw, 190px)); padding-bottom: clamp(36px, 6vw, 64px); }
h1 { font-size: clamp(2.6rem, 10.5vw, 5.8rem); letter-spacing: -0.035em; line-height: 0.98; }
h1 span { color: var(--sun-text); }
.sub { margin-top: 18px; font-size: clamp(1.08rem, 2.8vw, 1.4rem); line-height: 1.5; color: var(--sub); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { list-style: none; margin: clamp(32px, 6vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats li { padding: 20px 0 6px; }
.stats li:nth-child(odd) { padding-right: 12px; }
.stats b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.9rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats li { padding-right: 20px; } }

/* Page header (inner pages) */
.phead { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 5vw, 56px); }
.phead h1 { font-size: clamp(2.2rem, 8vw, 4.4rem); max-width: 16ch; }
.phead .lead { margin-top: 22px; color: var(--sub); }
.phead.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .phead.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: end; } }

/* Sections */
.sec { padding-block: clamp(48px, 8vw, 104px); scroll-margin-top: 70px; }
.sec.alt { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec.tight-top { padding-top: 0; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 5vw, 52px); }
.split { display: grid; gap: 36px; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } .split.wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } .split.center { align-items: center; } }

/* Photos */
.ph { margin: 0; }
.ph img { width: 100%; border-radius: 18px; background: var(--band); object-fit: cover; }
.ph figcaption { margin-top: 10px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.ph.wide img { aspect-ratio: 16 / 7; }
.ph.tall img { aspect-ratio: 4 / 5; }
.ph.land img { aspect-ratio: 3 / 2; }
.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic .ph img { height: 100%; }
.mosaic .m-wide { grid-column: 1 / -1; }
.mosaic .m-wide img { aspect-ratio: 16 / 8; }
.mosaic .m-tall img { aspect-ratio: 4 / 5; }
@media (min-width: 820px) {
  .mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .mosaic .m-wide { grid-column: span 8; }
  .mosaic .m-tall { grid-column: span 4; }
  .mosaic .m-half { grid-column: span 4; }
  .mosaic .m-wide img { aspect-ratio: 16 / 9; }
  .mosaic .m-tall img { aspect-ratio: 4 / 5; }
  .mosaic .m-half img { aspect-ratio: 4 / 5; }
}

/* Donation band */
.need { background: var(--need-bg); border: 1px solid var(--need-line); border-radius: 22px; padding: clamp(24px, 5vw, 48px); display: grid; gap: 22px; }
.need h2 { font-size: clamp(1.7rem, 5vw, 2.7rem); max-width: 22ch; }
.need h2 span { color: var(--sun-text); }
.need p { max-width: 60ch; color: var(--sub); }
.meter { display: flex; height: 16px; border-radius: 8px; overflow: hidden; gap: 2px; }
.meter i { display: block; width: var(--w); min-width: 0; }
.meter .a { background: var(--bar); }
.meter .b { background: var(--sun); }
.meter-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-top: 10px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.meter-cap b { color: var(--fg); font-weight: 500; }
@media (min-width: 900px) { .need { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; } }
.need .cta-row { margin-top: 4px; }
.band-cta { text-align: left; }

/* Pillars with photos */
.pcards { display: grid; gap: 18px; }
@media (min-width: 820px) { .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; min-width: 0; }
.pcard .img { aspect-ratio: 3 / 2; background: var(--band); overflow: hidden; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; }
.pcard .tx { padding: 22px 22px 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.pcard p { color: var(--muted); }
.pcard .link-arrow { margin-top: 6px; }
.pcard:hover { border-color: var(--accent); }

/* Faces strip */
.faces { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 22px 10px; padding: 0; list-style: none; }
.faces li { width: clamp(46px, 9vw, 64px); height: clamp(46px, 9vw, 64px); margin-left: -10px; border-radius: 50%; border: 3px solid var(--band); overflow: hidden; background: var(--surface); }
.faces img { width: 100%; height: 100%; object-fit: cover; }

/* Timeline */
.steps { list-style: none; margin: 0 0 0 6px; padding: 0; border-left: 1px solid var(--line-strong); }
.step { position: relative; padding: 0 0 34px 24px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.sec.alt .step::before { background: var(--band); }
.step.hl::before { background: var(--sun); border-color: var(--sun); }
.step .when { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.step h3 { margin: 6px 0 12px; }
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 0.96rem; line-height: 1.5; }
.step li { position: relative; padding-left: 16px; }
.step li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1px; background: var(--muted); }
.step .motto { margin-top: 14px; font-family: var(--display); font-weight: 500; font-size: 1.02rem; color: var(--accent); }
.step.hl .motto { color: var(--sun-text); }
@media (min-width: 900px) {
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .step { padding: 28px 0 0; }
  .step::before { left: 0; top: -6px; }
}

/* Stages */
.stages { border-top: 1px solid var(--line); }
.stage { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stage .k { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun-text); padding-top: 4px; }
.stage h3 { margin-bottom: 8px; }
.stage p { color: var(--muted); max-width: 58ch; }
@media (min-width: 760px) { .stage { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; } }
.pull { margin: clamp(32px, 5vw, 56px) 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 4.2vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.2; max-width: 26ch; text-wrap: balance; }
.pull span { color: var(--sun-text); }

.founders { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.founder { padding: 16px 0; border-bottom: 1px solid var(--line); }
.founder b { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.founder span { color: var(--muted); font-size: 0.95rem; }
.aside-quote { margin-top: 28px; padding: 22px 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.aside-quote p:first-child { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
.aside-quote p:last-child { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* Charte */
.devises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .devises { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.devises li { display: grid; gap: 10px; }
.devises .tile { background: var(--tile); border-radius: 16px; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); }
.devises img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.devises span { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* Expedition */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.facts b { display: block; font-family: var(--display); font-size: clamp(1.5rem, 5vw, 2.3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.84rem; line-height: 1.4; }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px 18px; }
.chart h3 { font-size: 1.05rem; margin-bottom: 4px; }
.chart .note { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted); }
.giants { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.giants .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.giants .n { font-weight: 600; }
.giants .v { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.giants .track { height: 10px; margin-top: 6px; border-radius: 6px; background: var(--track); position: relative; overflow: hidden; }
.giants .fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--bar-deep); border-radius: 6px; }
.giants .goal .fill { background: var(--sun); }
.giants .goal .n { color: var(--sun-text); }
.giants .goal .v { color: var(--fg); }
.axis { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.place-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.place-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.place-list span { color: var(--muted); }
.small-note { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }

/* Cards (research) */
.cards { display: grid; gap: 18px; }
@media (min-width: 900px) { .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card .cimg { aspect-ratio: 16 / 9; background: var(--band); }
.card .cimg img { width: 100%; height: 100%; object-fit: cover; }
.card .cbody { padding: clamp(22px, 4vw, 32px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card .eyebrow { margin: 0; }
.card p { color: var(--muted); }
.card dl { margin: 6px 0 0; display: grid; gap: 14px; }
.card dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card dd { margin: 3px 0 0; }
.meas { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 0.96rem; }
.meas li { position: relative; padding-left: 16px; }
.meas li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 1px; background: var(--muted); }
.card .amount { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card .amount span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card .amount b { font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sleep-img { background: #0f2a6b; border-radius: 16px; overflow: hidden; }
.sleep-img img { width: 100%; max-height: 420px; object-fit: contain; }

/* Budget */
.big3 { display: grid; gap: 0; border-top: 1px solid var(--line); }
.big3 > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.big3 .l { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.big3 b { display: block; margin-top: 6px; font-family: var(--display); font-size: clamp(2.1rem, 7vw, 3.4rem); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.big3 b small { font-family: var(--mono); font-size: 0.4em; letter-spacing: 0.06em; color: var(--muted); font-weight: 400; margin-right: 8px; }
.big3 p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.big3 .gap b { color: var(--sun-text); }
@media (min-width: 820px) { .big3 { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 0; } .big3 > div { border-bottom: 0; padding-right: 28px; } .big3 > div + div { padding-left: 28px; border-left: 1px solid var(--line); } }
.sub-h { margin: 0 0 22px; }
.bars { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.bars .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.bars .row > span:first-child { font-weight: 500; }
.bars .m { font-family: var(--mono); font-size: 0.86rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.bars .m b { color: var(--fg); font-weight: 500; }
.bars .track { height: 8px; margin-top: 8px; border-radius: 5px; background: var(--track); position: relative; overflow: hidden; }
.bars .fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--bar); border-radius: 5px; }
.stack { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; margin: 20px 0 22px; }
.stack i { display: block; width: var(--w); min-width: 0; }
.legend { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.legend li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; align-self: center; }
.legend .t small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.legend .v { font-family: var(--mono); font-size: 0.86rem; font-variant-numeric: tabular-nums; text-align: right; }
.legend .v small { display: block; color: var(--muted); font-size: 0.74rem; }

/* Reasons */
.reasons { display: grid; gap: 0; border-top: 1px solid var(--line); }
.reason { padding: 22px 0; border-bottom: 1px solid var(--line); }
.reason h3 { font-size: 1.15rem; margin-bottom: 8px; }
.reason p { color: var(--muted); max-width: 52ch; }
@media (min-width: 820px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; } }

/* People */
.kids { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .kids { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .kids { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kid { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.kid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--band); }
.kid .kb { padding: 12px 14px 16px; display: grid; gap: 4px; }
.kid .top-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kid b { font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.kid .age { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.kid p { font-size: 0.88rem; line-height: 1.4; color: var(--muted); }
.kid p em { font-style: normal; color: var(--fg); font-weight: 500; }
.adults { display: grid; gap: 18px; }
@media (min-width: 900px) { .adults { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.adult { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: grid; min-width: 0; }
.adult img { width: 100%; aspect-ratio: 4 / 4; object-fit: cover; object-position: 50% 20%; background: var(--band); }
.adult .ab { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.adult h3 { font-size: 1.35rem; }
.adult .role { color: var(--accent); font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.adult ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 0.95rem; }
.adult li { position: relative; padding-left: 16px; }
.adult li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 1px; background: var(--muted); }
.adult .cap { color: var(--muted); font-size: 0.82rem; }
@media (min-width: 560px) { .adult { grid-template-columns: 200px minmax(0, 1fr); } .adult img { height: 100%; aspect-ratio: auto; min-height: 240px; } }

/* Contact */
.contact { display: grid; gap: 8px; }
.contact .who { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.contact .copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.copy { appearance: none; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font: 500 0.85rem var(--body); min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer; }
.copy:hover { border-color: var(--accent); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px) max(40px, calc(24px + env(safe-area-inset-bottom, 0px))); background: var(--band); }
.foot .wrap { display: grid; gap: 28px; }
.foot .logo { background: #fff; border-radius: 16px; padding: 10px; width: 168px; }
.foot p { color: var(--muted); max-width: 46ch; font-size: 0.95rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.foot ul a { text-decoration: none; font-weight: 500; }
.foot ul a:hover { color: var(--accent); }
.foot .legal { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; margin-top: 18px; }
@media (min-width: 820px) { .foot .wrap { grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: start; gap: 48px; } }

/* Mosaic rows on large screens, contained image variants */
@media (min-width: 820px) {
  .mosaic { grid-auto-rows: clamp(240px, 28vw, 360px); }
  .mosaic .ph { height: 100%; }
  .mosaic .ph img { height: 100%; aspect-ratio: auto; }
}
.pcard .img img.contain { object-fit: contain; background: #0f2a6b; }
.card .cimg img.contain { object-fit: contain; background: #0f2a6b; }

.ph.nat img { aspect-ratio: auto; height: auto; }
.ph img[src$="rocher.jpg"] { object-position: 50% 68%; }
.pcard .img img[src$="rocher.jpg"] { object-position: 50% 68%; }
.ph img[src$="croix.jpg"] { object-position: 50% 35%; }
