/* Centre Espoir de Gatineau — site public.
   Palette et polices tirées du logo : terracotta #DA7757, encre #141413,
   Source Serif 4 pour les titres, Source Sans 3 pour le texte. */

/* ---- Polices (hébergées ici, sous licence OFL) ------------------------------ */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/SourceSerif4-normal-400-700.f2ea9c12d2.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/SourceSerif4-italic-400.09147e39b7.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/SourceSans3-normal-400-700.7a19a7027e.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/SourceSans3-italic-400.3c230c0342.woff2") format("woff2");
}

/* ---- Jetons ------------------------------------------------------------------ */
:root {
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --surface-2: #F3F1EA;
  --surface-3: #ECE9E0;
  --ink: #141413;
  --ink-2: #55534E;
  --ink-3: #85837C;
  --line: #E8E6DF;
  --line-2: #D9D6CD;
  --accent: #DA7757;
  --accent-ink: #B4573A;
  --accent-deep: #8E4229;
  --accent-soft: #F8EDE6;
  --accent-wash: #FBF3EE;
  --focus: #1F5FBF;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 16px;
  --radius-s: 10px;
  --radius-l: 24px;
  --shadow-1: 0 1px 2px rgba(20, 20, 19, .04), 0 6px 20px -12px rgba(20, 20, 19, .16);
  --shadow-2: 0 2px 4px rgba(20, 20, 19, .05), 0 18px 40px -20px rgba(20, 20, 19, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1120px;
  --gutter: 20px;
  --header-h: 68px;

  /* Échelle fluide : lisible sur un téléphone, ample sur un grand écran. */
  --text: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --text-s: .9375rem;
  --h1: clamp(2.125rem, 1.4rem + 3.2vw, 3.75rem);
  --h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --lead: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem);
  --section: clamp(3.5rem, 2.5rem + 5vw, 7rem);
}
@media (min-width: 700px) { :root { --gutter: 32px; --header-h: 76px; } }

/* ---- Base --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--text) / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; text-decoration-color: rgba(180, 87, 58, .45); transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: .35em; }
strong { font-weight: 600; }
small { font-size: var(--text-s); }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
sup { font-size: .7em; }
button { font: inherit; color: inherit; }

.lead { font-size: var(--lead); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.small { font-size: var(--text-s); }
.measure { max-width: 42em; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 1px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ---- Boutons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(20,20,19,.06), 0 8px 18px -10px rgba(218, 119, 87, .55); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; box-shadow: 0 2px 0 rgba(20,20,19,.04), 0 12px 24px -12px rgba(180, 87, 58, .6); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--surface); border-color: var(--ink-3); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2A2926; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .9375rem; }
.btn-lg { min-height: 58px; padding: 0 1.9em; font-size: 1.125rem; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow:hover { text-decoration: none; }

/* ---- En-tête ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* The translucent, blurred background lives on a pseudo-element: a backdrop
   filter on the header itself would make it the containing block of the
   fixed-position mobile menu, which would then be clipped to the header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 249, 245, .55);
  -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px);
  /* A hairline of light along the bottom edge, so the glass reads as a pane. */
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .45);
}
/* Browsers without backdrop-filter fall back to a nearly opaque header, so the
   menu stays legible over a dark section. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before { background: rgba(250, 249, 245, .96); }
}
.header-bar { position: relative; }
.site-header.is-scrolled { border-bottom-color: rgba(20, 20, 19, .08); box-shadow: 0 8px 24px -20px rgba(20,20,19,.25); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; text-decoration: none; }
.brand img { height: 42px; width: auto; }
@media (min-width: 700px) { .brand img { height: 50px; } }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn) {
  display: inline-block; padding: 10px 14px; border-radius: 999px;
  color: var(--ink-2); font-weight: 500; text-decoration: none; font-size: 1.0625rem; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.site-nav a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--ink); font-weight: 600; position: relative; }
.site-nav a:not(.btn)[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 1px; background: var(--accent); }
.site-nav .nav-cta { margin-left: 10px; }
.site-nav .nav-cta .btn { min-height: 44px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 10px;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 600; font-size: .9375rem; cursor: pointer;
}
.menu-toggle:hover { background: var(--surface); }
.menu-icon { width: 18px; height: 14px; display: inline-flex; flex-direction: column; justify-content: space-between; }
.menu-icon i { display: block; height: 2px; background: currentColor; border-radius: 1px; transition: transform .25s var(--ease), opacity .2s var(--ease); transform-origin: center; }
.menu-open .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-icon i:nth-child(2) { opacity: 0; }
.menu-open .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Six links plus the button need about 1130 px beside the logo (« Statistiques » joined them on 2026-12-02;
   measured: the row ran 90 px past the page at 1024 and still 14 px at 1100). The menu button therefore stays
   until 1180. It was 1024 with five links, 900 with four. */
@media (max-width: 1179px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
    background: var(--bg); padding: 12px var(--gutter) 32px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
  .menu-open .site-header { border-bottom-color: var(--line); }
  .menu-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li + li { margin: 0; }
  .site-nav a:not(.btn) { display: block; padding: 18px 8px; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .site-nav a:not(.btn):hover { background: transparent; }
  .site-nav a:not(.btn)[aria-current="page"]::after { display: none; }
  .site-nav a:not(.btn)[aria-current="page"] { color: var(--accent-ink); }
  .site-nav .nav-cta { margin: 24px 0 0; }
  .site-nav .nav-cta .btn { width: 100%; min-height: 54px; font-size: 1.125rem; }
}
@media (min-width: 1180px) {
  .header-actions { display: none; }
}
@media (max-width: 479px) {
  .header-don { display: none; }
}

/* ---- Sections ------------------------------------------------------------------ */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.section-alt { background: var(--surface-2); }
.section-ink { background: var(--ink); color: #EDEBE4; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .eyebrow { color: #F2B79F; }
.section-ink .eyebrow::before { background: #F2B79F; }
.section-ink .lead, .section-ink .muted { color: #C9C6BC; }
.section-ink a:not(.btn) { color: #F2B79F; text-decoration-color: rgba(242, 183, 159, .5); }
.section-ink a:not(.btn):hover { color: #fff; }
.section-terracotta { background: var(--accent); color: #fff; }
.section-terracotta h2, .section-terracotta h3 { color: #fff; }
.section-terracotta .eyebrow { color: #FBE7DE; }
.section-terracotta .eyebrow::before { background: #FBE7DE; }
.section-terracotta .lead, .section-terracotta .muted, .section-terracotta .section-head p { color: #FBE7DE; }
.section-terracotta a:not(.btn) { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.section-terracotta .stat { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); box-shadow: none; }
.section-terracotta .stat .num { color: #fff; }
.section-terracotta .stat .num small { color: #FBE7DE; }
.section-terracotta .stat .label { color: #FBE7DE; }
.section-ink .feature-text p { color: #C9C6BC; }
.section-ink .two-col h2 { color: #fff; }
.section-head { max-width: 40em; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: .4em; }
.section-head p { color: var(--ink-2); font-size: var(--lead); line-height: 1.5; }

/* ---- Héros (accueil) ---------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 clamp(2.5rem, 2rem + 3vw, 5rem); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: .55em; max-width: 14em; }
.hero .lead { margin-bottom: 1.6em; }
.hero-art { position: relative; margin: 0 auto; width: min(100%, 420px); }
.hero-art::before {
  content: ""; position: absolute; inset: 8% -4% -2% -4%;
  background: radial-gradient(ellipse at 50% 60%, var(--accent-soft) 0%, rgba(248, 237, 230, 0) 70%);
  z-index: 0;
}
.hero-art img { position: relative; z-index: 1; width: 100%; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
  .hero-art { width: min(100%, 460px); margin-right: 0; }
}

/* Bandeau d'information sous le héros */
.info-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.info-strip .container { display: grid; gap: 0; }
.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; }
.info-item + .info-item { border-top: 1px solid var(--line); }
.info-item svg { flex: none; width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.info-item strong { display: block; font-weight: 600; }
.info-item span { color: var(--ink-2); }
.info-item a { text-decoration: none; }
.info-item a:hover { text-decoration: underline; }
@media (min-width: 760px) {
  .info-strip .container { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .info-item { padding: 24px 0; }
  .info-item + .info-item { border-top: 0; border-left: 1px solid var(--line); margin-left: -32px; padding-left: 32px; }
}

/* ---- Chiffres ------------------------------------------------------------------ */
.stats { display: grid; gap: 20px; }
.stat { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.stat .num { display: block; font-family: var(--serif); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 500; line-height: 1; letter-spacing: -.02em; color: var(--accent-ink); font-variant-numeric: tabular-nums; margin-bottom: .3em; }
.stat .num small { font-size: .55em; color: var(--accent); vertical-align: .25em; margin-left: .1em; font-family: var(--sans); font-weight: 600; }
.stat .label { display: block; color: var(--ink-2); line-height: 1.45; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* ---- Cartes d'action ------------------------------------------------------------ */
.cards { display: grid; gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px 26px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); color: inherit; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); text-decoration: none; color: inherit; }
.card h3 { margin: 0; }
.card p { color: var(--ink-2); margin: 0; }
.card .link-arrow { margin-top: auto; padding-top: 6px; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 4px; }
.card-icon svg { width: 26px; height: 26px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 760px) and (max-width: 959px) { .cards { grid-template-columns: repeat(2, 1fr); } }

/* ---- Rangées texte + illustration ----------------------------------------------- */
.feature { display: grid; gap: 32px; align-items: center; }
.feature-art { width: min(100%, 380px); margin: 0 auto; }
.feature-art img { width: 100%; }
.feature-text h2 { margin-bottom: .5em; }
.feature-text p { color: var(--ink-2); }
.feature-text .btn-row { margin-top: 1.6em; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.art-left .feature-art { order: -1; }
}

/* Citation tirée de la vision */
.pull { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); line-height: 1.35; letter-spacing: -.01em; font-weight: 500; color: var(--ink); margin: 0; }
.pull em { font-style: italic; color: var(--accent-ink); }

/* ---- Vidéos ---------------------------------------------------------------------- */
.videos { display: grid; gap: 24px; }
@media (min-width: 760px) { .videos { grid-template-columns: 1fr 1fr; gap: 32px; } }
.video-card h3 { margin: 16px 0 4px; font-size: 1.25rem; }
.video-card p { color: var(--ink-2); margin: 0; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); box-shadow: var(--shadow-1);
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.video:hover img { transform: scale(1.03); }
.video-play {
  position: absolute; inset: 0; width: 100%; border: 0; background: linear-gradient(to top, rgba(20,20,19,.45), rgba(20,20,19,0) 55%);
  display: grid; place-items: center; cursor: pointer; color: #fff; padding: 0;
}
.video-play .disc {
  width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 10px 30px -10px rgba(20,20,19,.6); transition: transform .25s var(--ease), background .2s var(--ease);
}
.video-play .disc svg { width: 28px; height: 28px; margin-left: 4px; }
.video-play:hover .disc { transform: scale(1.06); background: var(--accent-ink); }
.video-play .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.video.is-playing img, .video.is-playing .video-play { display: none; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Encadrés ------------------------------------------------------------------- */
.callout {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--radius); background: var(--accent-wash); border: 1px solid #F0D9CC;
}
.callout svg { flex: none; width: 26px; height: 26px; color: var(--accent-ink); margin-top: 3px; }
.callout p { margin: 0; }
.callout strong { color: var(--ink); }
.callout.neutral { background: var(--surface); border-color: var(--line); }
.callout.neutral svg { color: var(--ink-3); }

/* Bloc horaire */
.hours {
  display: grid; gap: 4px; padding: 26px 28px; border-radius: var(--radius); background: var(--ink); color: #fff;
}
.hours .hours-title { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #F2B79F; }
.hours .hours-when { font-family: var(--serif); font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -.01em; }
.hours .hours-where { color: #C9C6BC; }
.hours a { color: #fff; }

/* ---- Étapes ----------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps > li { position: relative; padding-left: 64px; counter-increment: s; margin: 0; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
  display: grid; place-items: center;
}
.steps h3 { margin: 0 0 .25em; font-size: 1.25rem; }
.steps p { color: var(--ink-2); margin: 0; }

/* ---- Listes à puces stylées ------------------------------------------------------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; margin: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B4573A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}

/* ---- Grille de contenu simple ------------------------------------------------------ */
.two-col { display: grid; gap: 40px; align-items: start; }
@media (min-width: 860px) { .two-col { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; } }
.two-col.equal { grid-template-columns: 1fr; }
@media (min-width: 860px) { .two-col.equal { grid-template-columns: 1fr 1fr; } }
.sticky { position: sticky; top: calc(var(--header-h) + 24px); }

.panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.panel h3 { margin-top: 0; }
.panel .btn { width: 100%; }
.panel .btn-row .btn { width: auto; flex: 1 1 auto; }
.panel + .panel { margin-top: 20px; }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.panel-list li:first-child { border-top: 0; padding-top: 0; }
.panel-list li:last-child { padding-bottom: 0; }
.panel-list svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.panel-list strong { display: block; }
.panel-list a { text-decoration: none; }
.panel-list a:hover { text-decoration: underline; }

/* ---- En-tête de page intérieure ---------------------------------------------------- */
.page-head { padding: clamp(2.5rem, 2rem + 2.5vw, 4.5rem) 0 clamp(1.5rem, 1rem + 2vw, 3rem); }
.page-head h1 { margin-bottom: .45em; max-width: 16em; }
.page-head .lead { margin: 0; }
.page-head .btn-row { margin-top: 1.6em; }
.page-head-grid { display: grid; gap: 28px; align-items: end; }
@media (min-width: 860px) { .page-head-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; } }
.page-head-art { width: min(100%, 300px); margin: 0 auto; }
@media (min-width: 860px) { .page-head-art { margin: 0 0 0 auto; width: min(100%, 320px); } }
/* Quatre personnes au lieu de trois : il leur faut plus de place, sinon chacune
   rapetisse d'autant. Elles se touchent sans se chevaucher — la main tendue de
   la première doit pouvoir désigner sa voisine sans la toucher. */
.page-head-art--quatuor { display: flex; align-items: flex-end; justify-content: center; width: min(100%, 420px); }
.page-head-art--quatuor img + img { margin-left: 0; }
@media (min-width: 860px) { .page-head-art--quatuor { width: min(100%, 440px); } }

/* ---- Équipe ----------------------------------------------------------------------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.team li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); margin: 0; }
.team .initials { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--serif); font-size: 1.1rem; font-weight: 500; display: grid; place-items: center; letter-spacing: .02em; }
.team strong { display: block; }
.team span { color: var(--ink-2); font-size: var(--text-s); }
@media (min-width: 640px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .team { grid-template-columns: repeat(3, 1fr); } }

/* ---- Frise (histoire) --------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line-2); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 28px 28px; margin: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.timeline .when { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--accent-ink); margin-bottom: .15em; }
.timeline p { color: var(--ink-2); margin: 0; }

/* ---- Projets à financer ------------------------------------------------------------ */
/* La page /projets. Chaque carte a deux étages : en tête, ce qu'est le projet et
   ce qu'il reste à réunir, avec le bouton, pour qu'on sache en trois secondes de
   quoi il s'agit; dessous, le récit et le budget à gauche, ce que vous recevez à
   droite. Les données viennent de src/projets/ (voir build/projets.mjs). */

/* L'aperçu du haut de page : la table des matières, avec les chiffres. */
.projets-tete .page-head-grid { align-items: center; }
.apercu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 22px 24px 10px; width: 100%; max-width: 440px; margin: 0 auto; }
@media (min-width: 860px) { .apercu { margin: 0 0 0 auto; } }
.apercu-titre, .bloc-titre { margin: 0 0 10px; font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.apercu ul { list-style: none; margin: 0; padding: 0; }
.apercu li { margin: 0; border-top: 1px solid var(--line); }
.apercu a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; color: var(--ink); text-decoration: none; }
.apercu a span { font-weight: 600; }
.apercu a strong { font-weight: 600; color: var(--accent-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.apercu a:hover span { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.apercu li.fait a strong { color: var(--ink-2); }
.apercu li.fait a strong::before { content: "✓ "; color: var(--accent); }

.projets { display: grid; gap: 32px; }
.projet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-1); overflow: hidden; scroll-margin-top: 8px; }

/* L'étage du haut : l'essentiel et le bouton. */
.projet-tete { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: clamp(24px, 1.5rem + 1.5vw, 44px); border-bottom: 1px solid var(--line); }
.projet-tete h3 { font-size: var(--h2); margin: .4em 0 .25em; }
.projet-accroche { margin: 0; font-size: var(--lead); line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.projet-chiffres { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: var(--radius); background: var(--accent-wash); border: 1px solid #F0D9CC; align-self: start; }
.projet-chiffres .grand { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 500; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.projet-chiffres .grand--texte { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); line-height: 1.15; }
.projet-chiffres .sous { margin: -2px 0 4px; color: var(--ink-2); font-size: var(--text-s); }
.projet-chiffres .acquis { margin: 0; color: var(--ink-2); font-size: .875rem; }
.projet-chiffres .btn { width: 100%; margin-top: 6px; white-space: normal; text-align: center; }
.barre { height: 10px; border-radius: 999px; background: #F0D9CC; overflow: hidden; }
.barre span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.barre--plein span { background: var(--ink); }
.lien-fiche { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: var(--text-s); font-weight: 600; color: var(--accent-deep); text-decoration: none; }
.lien-fiche svg { width: 18px; height: 18px; flex: none; }
.lien-fiche:hover { text-decoration: underline; }
@media (min-width: 860px) {
  .projet-tete { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
}

/* L'étage du bas : le récit et le budget, puis ce que vous recevez. */
.projet-corps { display: grid; grid-template-columns: minmax(0, 1fr); }
.projet-recit { padding: clamp(24px, 1.5rem + 1.5vw, 44px); }
.projet-recit > p { color: var(--ink-2); max-width: 36em; }
.projet-art { margin: 0 0 1.6em; max-width: 540px; }
.projet-art .dessin { display: block; width: 100%; height: auto; }
.dessin-legende { margin: 10px 0 0; text-align: center; font-size: .875rem; color: var(--ink-2); }
@media (max-width: 599px) { .projet-art { margin-left: -12px; margin-right: -12px; } }
.projet-cote { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 1.5rem + 1vw, 36px); background: var(--surface-2); border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .projet-corps { grid-template-columns: minmax(0, 1fr) 368px; }
  .projet-cote { border-top: 0; border-left: 1px solid var(--line); }
}
.bloc-titre--budget { margin-top: 2em; }
.budget { width: 100%; border-collapse: collapse; font-size: var(--text-s); }
.budget td, .budget th { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.budget .groupe th { padding-top: 18px; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.budget .note { display: block; color: var(--ink-2); font-size: .875rem; }
.budget .montant { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 12px; }
.budget .etat-cell { text-align: right; padding-left: 12px; white-space: nowrap; }
.budget tfoot th, .budget tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.0625rem; }
@media (max-width: 599px) {
  .budget tbody tr:not(.groupe), .budget tfoot tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .budget tbody tr:not(.groupe) td, .budget tfoot th, .budget tfoot td { padding: 0; border: 0; }
  .budget .montant { grid-column: 2; grid-row: 1; }
  .budget .etat-cell { grid-column: 1; grid-row: 2; text-align: left; padding: 6px 0 0 !important; }
  .budget .etat-cell:empty { display: none; }
  .budget .groupe th { display: block; }
  .budget tfoot tr { border-top: 2px solid var(--ink); border-bottom: 0; }
}
.pastille { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.pastille--fait { background: var(--ink); color: #fff; }
.pastille--commande { background: var(--accent-soft); color: var(--accent-deep); }
.projet-vide { margin: 0; padding: 16px 18px; border-radius: var(--radius-s); background: var(--accent-wash); color: var(--ink-2); }

.statut { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.statut--a-financer { background: var(--accent-soft); color: var(--accent-deep); }
.statut--en-cours { background: var(--ink); color: #fff; }
.statut--realise { background: var(--surface-3); color: var(--ink-2); }

/* Les paliers de commandite. */
.palier { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.palier-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.palier-tete strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.palier-tete span { font-weight: 700; color: var(--accent-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.palier-places { margin: 2px 0 12px; font-size: .875rem; color: var(--ink-2); }
.palier .checks { gap: 8px; font-size: var(--text-s); }
.palier .checks li { padding-left: 32px; }
.note-offre { margin: 2px 0 0; color: var(--ink-2); }

/* Les façons d'aider, pour un projet sans budget arrêté. */
.aides { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aides li { margin: 0; padding: 14px 18px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); }
.aides strong { display: block; }
.aides span { display: block; margin-top: 2px; color: var(--ink-2); font-size: var(--text-s); line-height: 1.45; }

/* Où va l'argent. */
.rep-barre { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; }
.rep-denrees { background: var(--accent); }
.rep-visibilite { background: var(--ink); }
.rep-equipement { background: var(--ink-3); }
.rep-legende { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.rep-legende li { margin: 0; display: grid; grid-template-columns: 12px auto 1fr; align-items: baseline; column-gap: 10px; }
.rep-legende i { width: 12px; height: 12px; border-radius: 50%; align-self: center; }
.rep-legende strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1; }
.rep-legende span { color: var(--ink-2); }
.rep-legende em { grid-column: 3; font-style: normal; font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.partenaires { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 600; font-size: 1.0625rem; }
.partenaires li { margin: 0; }
.partenaires img { height: 44px; width: auto; }
.projet-cote .bloc-titre + .partenaires { margin-top: -4px; }

/* Le parrain, sur fond encre. */
.parrain { display: grid; gap: 40px; align-items: center; }
.parrain .btn-row { margin-top: 1.6em; }
.parrain .lead { color: #EDEBE4; }
.parrain > div > p:not(.eyebrow):not(.lead) { color: #C9C6BC; }
.parrain-offre { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.parrain-offre .bloc-titre { color: #F2B79F; }
.checks-clair li { color: #C9C6BC; }
.checks-clair li strong { color: #fff; }
.parrain-note { margin: 18px 0 0; color: #A9A69C; }
@media (min-width: 860px) { .parrain { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; } }

/* Les engagements, puis le comparatif. */
.engagements { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 40px; counter-reset: e; }
.engagements li { margin: 0; padding-top: 18px; border-top: 2px solid var(--accent); counter-increment: e; }
.engagements h3 { font-size: 1.25rem; margin: 0 0 .35em; }
.engagements p { margin: 0; color: var(--ink-2); }
@media (min-width: 760px) { .engagements { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .engagements { grid-template-columns: repeat(4, 1fr); } }
.comparatif { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding: clamp(22px, 1.2rem + 1.5vw, 36px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.comparatif h3 { margin-bottom: .8em; }
.formes { display: grid; gap: 16px; }
@media (min-width: 760px) { .formes { grid-template-columns: 1fr 1fr; gap: 24px; } }
.forme { padding: 20px 22px; border-radius: var(--radius); background: var(--surface-2); }
.forme-nom { margin: 0 0 8px; font-family: var(--serif); font-size: 1.375rem; font-weight: 500; }
.forme dl { margin: 0; }
.forme dt { margin-top: 12px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.forme dd { margin: 2px 0 0; }
.comparatif .small { margin: 14px 0 0; }
.documents { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 24px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface-2); }
.documents p { margin: 0; }

/* La fin de page : la marche à suivre, puis le contact. */
.steps-row { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
@media (min-width: 760px) { .steps-row { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.contact-band .btn-row { gap: 10px; }
#contact { padding-bottom: calc(var(--section) * .8); }
.cta-band.terracotta.contact-band p { color: #fff; font-weight: 700; font-size: 1.1875rem; }

/* ---- Bandeau d'appel ---------------------------------------------------------------- */
.cta-band { background: var(--ink); color: #EDEBE4; border-radius: var(--radius-l); padding: clamp(2rem, 1.5rem + 2.5vw, 4rem); display: grid; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(218,119,87,.35) 0%, rgba(218,119,87,0) 70%); pointer-events: none; }
.cta-band.terracotta { background: var(--accent); color: #fff; }
.cta-band.terracotta::after { background: radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 70%); }
.cta-band.terracotta p { color: #FBE7DE; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #C9C6BC; margin: 0; font-size: var(--lead); line-height: 1.5; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (min-width: 860px) { .cta-band { grid-template-columns: minmax(0, 3fr) auto; gap: 40px; } .cta-band .btn-row { justify-content: flex-end; } }

/* ---- Carte (plan) -------------------------------------------------------------------- */
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow-1); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 860px) { .map { aspect-ratio: 16 / 10; } }

/* ---- Pied de page --------------------------------------------------------------------- */
/* No top margin: the last section's own padding is the breathing room. */
.site-footer { background: var(--ink); color: #C9C6BC; margin-top: 0; padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 2rem; font-size: 1rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.footer-logo { width: 150px; height: auto; margin-bottom: 18px; }
.footer-tagline { max-width: 26em; }
.footer-title { font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #F2B79F; margin: 0 0 14px; }
.footer-col a { color: #fff; text-decoration: none; }
.footer-col a:hover { color: #F2B79F; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-block; padding: 11px 0; }
.site-footer address a { display: inline-block; padding: 11px 0; margin: -6px 0; }
.footer-hours { margin-top: 18px; }
.footer-hours strong { color: #fff; }
.footer-social { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 10px; }
.footer-social li { margin: 0; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #C9C6BC; transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.footer-social a:hover { color: #F2B79F; border-color: #F2B79F; transform: translateY(-2px); text-decoration: none; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .9375rem; color: #85837C; }
.footer-legal p { margin: 0; }

/* ---- Apparition au défilement ------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---- Page d'erreur ---------------------------------------------------------------------- */
.error-page { padding: clamp(4rem, 3rem + 5vw, 8rem) 0; text-align: center; }
.error-page .code { font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--accent); letter-spacing: -.04em; margin-bottom: .2em; }

/* ---- Prose (politique) --------------------------------------------------------------------- */
.prose h2 { font-size: var(--h3); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p strong, .prose li strong { color: var(--ink); }

@media print {
  .site-header, .site-footer, .menu-toggle, .video-play, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}

/* ---- Aide alimentaire : le même exposé que l'accueil de aide.centreespoir.ca ---------------- */
.page-head .notice { margin-top: 1.4em; }
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--accent-wash); border: 1px solid #F0D9CC; color: var(--ink); border-radius: var(--radius-s); padding: 14px 16px; }
.notice svg { flex: none; width: 24px; height: 24px; color: var(--accent-ink); margin-top: 2px; }
.notice p { margin: 0; }
.notice a { color: var(--accent-ink); font-weight: 600; }
.facts { display: grid; gap: 14px; }
.facts .hours { padding: 24px 26px; gap: 2px; align-content: start; }
.facts .hours .hours-title { margin-bottom: 8px; }
.facts .hours .hours-time { font-family: var(--serif); font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); line-height: 1.2; color: #F2B79F; }
.facts .hours .hours-where { margin-top: 12px; }
.facts .hours .hours-phone { color: #fff; font-weight: 600; text-decoration: none; justify-self: start; }
.facts .hours .hours-phone:hover { text-decoration: underline; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 24px 26px 12px; }
.price-title { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; margin: 0; }
.price-list li + li { border-top: 1px solid var(--line); }
.price-list b { flex: 0 0 2.6em; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; color: var(--accent-ink); }
.price-list span { color: var(--ink-2); }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; gap: 18px; } }
.how-lead { color: var(--ink-2); max-width: 30em; }
.calc { margin-top: 14px; background: var(--surface-2); border-radius: var(--radius); padding: 16px 18px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-field { display: grid; gap: 6px; align-content: end; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.calc-field select { font: inherit; font-weight: 400; font-size: var(--text, 1.1875rem); color: var(--ink); width: 100%; min-height: 50px; padding: 10px 40px 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background-color: var(--surface);
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.calc-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.calc-result { margin: 8px 0 0; }
.calc-result strong { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--accent-ink); white-space: nowrap; }
.elig-steps > li > p { margin-bottom: 0; }
/* "Comment le seuil est calculé": a link under the calculator opens how the limit is worked out, in three
   numbered parts (David, 2026-09-24; version B, 2026-12-04, as on the platform). Popover API, no script; without it the text shows in place. */
.info-more { margin: 12px 0 0; }
.info-link { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
.info-link:hover { text-decoration-color: currentColor; }
.info-link svg { width: 20px; height: 20px; flex: none; }
.info-sheet { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px 26px 26px; border: 0; border-radius: var(--radius-l); background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px -12px rgba(20, 20, 19, .35); overflow: auto; overscroll-behavior: contain; }
.info-sheet::backdrop { background: rgba(20, 20, 19, .45); }
.info-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.info-sheet .info-sheet-head h3 { margin: 4px 0 0; font-size: var(--h3); }
.info-sheet-close { flex: none; width: 40px; height: 40px; margin: -4px -8px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.info-sheet-close:hover { background: var(--surface-3); }
.info-sheet-close svg { width: 18px; height: 18px; }
.info-sheet > h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 20px 0 4px; color: var(--ink); }
.info-sheet > h4:first-of-type { margin-top: 0; }
.info-sheet > p { margin: 0; color: var(--ink-2); }
.info-sheet > p + p, .info-sheet > ul + p { margin-top: 8px; }
.info-sheet > ul { margin: 4px 0 0; padding-left: 1.2em; color: var(--ink-2); }
.info-sheet > ul li + li { margin-top: 2px; }
.info-sheet .sheet-aside { font-size: .94rem; color: var(--ink-3); }
.info-sheet .sheet-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .94rem; color: var(--ink-3); }
.seuil-table { margin: 10px 0 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.seuil-table th, .seuil-table td { padding: 3px 0; font-weight: 400; color: var(--ink-2); text-align: left; }
.seuil-table td { padding-left: 28px; text-align: right; color: var(--ink); font-weight: 600; }
@media (max-width: 480px) { .info-sheet { padding: 20px 18px 22px; } }
@supports not selector(:popover-open) {
  .info-more, .info-sheet-head { display: none; }
  .info-sheet { width: auto; max-height: none; margin: 18px 0 0; padding: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  @media (max-width: 639px) { .elig-steps .info-sheet { margin-left: -64px; } }
}
/* On a phone the calculator and what follows it leave the step indent: room for two selects. */
@media (max-width: 639px) { .elig-steps .calc, .elig-steps .info-more { margin-left: -64px; } }

.how-grid { display: grid; gap: 22px; }
.how-head h2 { margin-bottom: .35em; }
.steps-line { gap: 26px; }
.steps-line > li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 52px; bottom: -22px; width: 2px; border-radius: 1px; background: var(--accent-soft); }
@media (min-width: 860px) { .how-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } .how-head { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; } }
/* The service period (#periode): a counter, one bag per visit, a tag tied to each handle (David,
   2026-09-24). Two shelves of three below 960 px, one shelf from 960 px. */
.term { background: var(--surface-2); border-radius: var(--radius-l); padding: clamp(22px, 1rem + 3vw, 52px); }
.term-head { display: grid; gap: 10px; margin-bottom: 40px; }
.term-head h2 { margin: 0; }
.term-head .how-lead { margin: 0; color: var(--ink-2); max-width: 34em; }
@media (min-width: 860px) { .term-head { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: end; } .term-head .how-lead { margin-bottom: .3em; max-width: 34em; } }
.shelf-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.shelves { display: grid; gap: 22px; }
.sh { padding-bottom: 58px; }
.sh-row { display: flex; align-items: flex-end; }
.bagw { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.bagi { position: relative; width: 100%; max-width: 104px; }
.bag { display: block; width: 100%; height: auto; margin-bottom: -3px; }
.bag-tag { position: absolute; left: 75%; top: 92%; z-index: 1; transform: translateX(-50%) rotate(-5deg); transform-origin: 50% 0; display: grid; justify-items: center; min-width: 52px; padding: 11px 8px 6px; border-radius: 7px; background: var(--surface); box-shadow: var(--shadow-1); }
.bagw:nth-child(4n+3) .bag-tag { transform: translateX(-50%) rotate(4deg); }
.bag-tag::before { content: ""; position: absolute; top: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.bag-tag b { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.1; color: var(--accent-ink); }
.bag-tag small { font-size: .6875rem; font-weight: 700; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.bag-tag.t-last { background: var(--accent-ink); }
.bag-tag.t-last b, .bag-tag.t-last small { color: #fff; }
.bag-tag.t-empty b { color: var(--ink-3); }
.gapl { flex: 0 0 42px; display: grid; justify-items: center; align-self: center; padding-top: 26px; color: var(--accent-ink); }
.gapl b { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1; }
.gapl span { font-size: .75rem; font-weight: 600; line-height: 1.3; color: var(--ink-3); }
.gapl svg { width: 100%; max-width: 46px; height: 10px; margin-top: 3px; }
.gapl.tail { display: none; }
.board, .shelves::after { height: 12px; border-radius: 6px; background: #E4DFD3; box-shadow: inset 0 3px 0 #D6CFBF, 0 12px 18px -12px rgba(20, 20, 19, .3); }
.board { margin: 0 -12px; }
@media (min-width: 960px) {
  .shelves { display: flex; align-items: flex-end; position: relative; gap: 0; padding-bottom: 70px; }
  .shelves::after { content: ""; position: absolute; left: -12px; right: -12px; bottom: 58px; }
  .sh, .sh-row { display: contents; }
  .board { display: none; }
  .gapl { flex-basis: 56px; }
  .gapl.tail { display: grid; }
}
.term-foot { display: flex; gap: 14px; align-items: center; margin: 0; color: var(--ink-2); }
.term-foot .ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-1); color: var(--accent-ink); }
.term-foot .ic svg { width: 20px; height: 20px; }
@media (max-width: 959px) {
  .term-foot { align-items: flex-start; }
  .gapl { padding: 0 0 26px; }
  .bag-tag { min-width: 46px; padding: 10px 6px 5px; }
  .bag-tag b { font-size: 1.2rem; }
  .bag-tag small { font-size: .625rem; letter-spacing: .03em; }
}

/* /aide-alimentaire is the twin of aide.centreespoir.ca's home page: one vertical rhythm, the
   section unit between blocks and half of it under the introduction. */
.aa-block { padding: calc(var(--section) / 2) 0; }
.aa-block.aa-first { padding-top: calc(var(--section) / 2 - clamp(1.5rem, 1rem + 2vw, 3rem)); }
.aa-block.aa-last { padding-bottom: var(--section); }
/* Sand bands set the sections apart (David, 2026-12-04, version B, as on the platform): « Qui peut
   s'inscrire » and « Un soutien temporaire » sit on full-width sand, the others stay cream. On the sand
   the calculator turns white, and the service-period card becomes the band itself; on a phone its
   shelves keep 12 px of room so the last bag's tag does not touch the screen edge. */
.aa-block.band { background: var(--surface-2); }
.band .calc { background: var(--surface); }
.band .term { background: none; border-radius: 0; padding: 0; }
@media (max-width: 639px) { .band .term .shelves { padding-inline: 12px; } }
