/* SOS Médecins – Burkina Faso — feuille de style unique
   Aucune dépendance externe : police hébergée dans /fonts. */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #14213d;
  --ink-soft: #3d4a66;
  --red: #c8102e;
  --red-deep: #9e0c24;
  --green: #17703c;
  --green-wash: #e8f3ec;
  --mist: #f2f4f8;
  --line: #d6dbe5;
  --white: #ffffff;

  --wrap: 75rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space-section: clamp(4rem, 9vw, 7.5rem);

  --step--1: clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2.15rem);
  --step-3: clamp(2.1rem, 1.7rem + 1.8vw, 3.25rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.2vw, 4.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  accent-color: var(--red);
  scrollbar-color: var(--ink-soft) var(--mist);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }

body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: var(--white); }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

a {
  color: var(--red);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--link-hover, var(--red-deep)); }
.section-ink, .site-footer { --link-hover: var(--white); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.measure { max-width: 68ch; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}
.skip:focus { top: 1rem; color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ───────── En-tête flottant ───────── */

body { border-top: 6px solid var(--red); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 0;
  overflow: visible;
}
.header-box {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin: 1.25rem auto 0;
  background: var(--white);
  box-shadow: 0 18px 40px -22px rgba(10, 16, 32, 0.55);
}

/* Barre de contact noire */
.utility {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem 2rem;
  padding: 0 1.75rem;
  height: 2.6rem;
  background: #0b0f1a;
  overflow: hidden;
}
.utility a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.utility a:hover { color: #ffb3bf; }
.utility .icon { width: 1rem; height: 1rem; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.5rem;
  padding: 0 1.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 4rem; height: auto; }
.brand span {
  color: var(--red);
  font-weight: 850;
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.brand small {
  display: block;
  margin-top: 0.15rem;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--ink);
  letter-spacing: 0.14em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: block;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font-weight: 750;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--red); }
.nav-list a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 1rem;
  padding: 0.95rem 1.5rem;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}
.nav-call:hover { background: var(--red-deep); color: var(--white); transform: translateY(-1px); }
.nav-list a.nav-call { display: inline-flex; padding: 0.95rem 1.5rem; color: var(--white); border-bottom: 0; }
.nav-list a.nav-call:hover { color: var(--white); }

/* Au défilement : la barre noire se replie, le bloc se colle en haut */
@supports (animation-timeline: scroll()) {
  .utility {
    animation: utility-fold linear both;
    animation-timeline: scroll(root);
    animation-range: 0 220px;
  }
  .header-box {
    animation: header-dock linear both;
    animation-timeline: scroll(root);
    animation-range: 0 220px;
  }
  @keyframes utility-fold { to { height: 0; } }
  @keyframes header-dock { to { margin-top: 0; width: 100%; } }
}

.header-call { display: none; }


/* Menu mobile sans JavaScript */
.menu { display: none; }
.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--white); }

@media (max-width: 80rem) {
  .nav-desktop { display: none; }
  .menu { display: block; }
  .header-call { display: inline-flex; margin-left: auto; padding: 0.75rem 1.1rem; }
  .utility { display: none; }
  .header-box { margin-top: 0.75rem; width: min(100% - 1.5rem, var(--wrap)); }
  .header-main { gap: 0.6rem; min-height: 4.5rem; padding: 0 1rem; }
  .brand img { width: 3.2rem; }
  .menu-panel {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(20, 33, 61, 0.35);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .menu-panel .nav-list { flex-direction: column; align-items: stretch; }
  .menu-panel .nav-list a {
    padding: 1rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
  }
  .menu-panel .nav-list a[aria-current="page"] { color: var(--red); border-bottom-color: var(--line); }
  .menu-panel .nav-call { margin: 1.25rem 0 0; justify-content: center; }
}

/* ───────── Boutons et icônes ───────── */

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); color: var(--white); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-ink { border-color: var(--ink); color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--white); }

.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ───────── Ouverture (accueil) ───────── */

.hero {
  position: relative;
  min-height: min(48rem, calc(100svh - 4.75rem));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  animation: settle 1.6s var(--ease-out) both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 22, 42, 0.9) 0%, rgba(14, 22, 42, 0.72) 42%, rgba(14, 22, 42, 0.05) 78%),
    linear-gradient(0deg, rgba(14, 22, 42, 0.6) 0%, rgba(14, 22, 42, 0) 45%);
}
.hero-body {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero-body h1 { max-width: 13ch; }
.hero-lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: #e6e9f0;
}
.hero .actions { margin-top: 2.25rem; }
.hero-caption {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: 1.25rem;
  max-width: 22rem;
  font-size: var(--step--1);
  color: #d5d9e3;
  text-align: right;
}

@keyframes settle {
  from { transform: scale(1.07); filter: saturate(0.6); }
  to { transform: scale(1); filter: saturate(1); }
}

/* En-tête des pages intérieures */
.page-head {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: var(--step-4); max-width: 18ch; }
.page-head p {
  max-width: 44rem;
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}

.page-head .actions { margin-top: 2rem; }

/* ───────── Sections ───────── */

.section { padding-block: var(--space-section); }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: var(--white); }
.section-ink a { color: var(--white); }

.section-title { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title p {
  max-width: 44rem;
  margin-top: 1rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}
.section-ink .section-title p { color: #c9cfdb; }
.section-ink .lead {
  margin: 1rem 0 2rem;
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: #c9cfdb;
}

/* Mission + trois branches */
.mission {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.mission-text p:first-of-type {
  font-size: var(--step-1);
  line-height: 1.5;
}
.mission-text h2 { margin-bottom: 1.5rem; }

.branches {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--ink);
}
.branches li {
  display: grid;
  gap: 0.35rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.branches strong {
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.branches span { color: var(--ink-soft); }

/* Ligne des faits */
.facts {
  background: var(--green-wash);
  border-block: 1px solid #cfe5d7;
}
.facts .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  padding-block: 1.6rem;
  font-size: var(--step-1);
  line-height: 1.4;
}
.facts p { margin: 0; }
.facts b {
  color: var(--green);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Actions en alternance photo / texte */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(4rem, 8vw, 6.5rem); }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature-media.is-poster img {
  aspect-ratio: auto;
  max-height: 34rem;
  width: auto;
  margin-inline: auto;
  outline: 1px solid var(--line);
}
.feature-media figcaption,
.figure figcaption {
  margin-top: 0.7rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.feature-text h2,
.feature-text h3 {
  font-size: var(--step-2);
  margin-bottom: 1rem;
}
.meta {
  margin: -0.4rem 0 1rem;
  font-weight: 650;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.feature-text .actions { margin-top: 1.75rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* À la une */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.spotlight h2 { font-size: var(--step-2); }
.spotlight p { margin-top: 1rem; color: var(--ink-soft); }

/* Rapports */
.reports {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid currentColor;
}
.report {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: center;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.section-ink .report { border-bottom-color: rgba(255, 255, 255, 0.22); }
.report h3 { font-size: var(--step-1); }
.report p {
  margin-top: 0.4rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.section-ink .report p { color: #c9cfdb; }
.report a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.section-ink .report a:hover { background: var(--white); color: var(--ink); }
.report a:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* Partenaires */
.partners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.partners li {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.partners img {
  height: 5.5rem;
  width: auto;
  object-fit: contain;
}
.partners p { color: var(--ink-soft); font-size: var(--step--1); }
.partners strong { display: block; color: var(--ink); font-size: var(--step-0); }

/* Contact */
.contact-band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-band h2 { max-width: 14ch; }
.contact-band .lead { margin-top: 1rem; color: #c9cfdb; font-size: var(--step-1); line-height: 1.5; }

.channels {
  margin: 0;
  padding: 0;
  list-style: none;
}
.channels li { border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.channels li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.22); }
.channels a {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-block: 1.15rem;
  color: var(--white);
  text-decoration: none;
}
.channels .icon { width: 1.6rem; height: 1.6rem; }
.channels .label { display: block; font-size: var(--step--1); color: #c9cfdb; }
.channels .value {
  display: block;
  font-size: var(--step-1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.channels .go { opacity: 0.6; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
.channels a:hover .go { transform: translateX(4px); opacity: 1; }
.channels a:hover .value { text-decoration: underline; text-underline-offset: 0.2em; }

/* Version claire (page contact) */
.channels.is-light li { border-color: var(--line); }
.channels.is-light a { color: var(--ink); }
.channels.is-light .label { color: var(--ink-soft); }
.channels.is-light .icon { color: var(--red); }

.postal {
  margin-top: 2rem;
  font-style: normal;
  color: var(--ink-soft);
}
.postal strong { display: block; color: var(--ink); }

/* Texte courant (à propos) */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin: 3.5rem 0 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 0.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--ink-soft); }

.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.aside-figure { position: sticky; top: 7rem; }
.aside-figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.figure figcaption { margin-top: 0.7rem; }

.timeline {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
}
.timeline strong { display: block; }
.timeline span { color: var(--ink-soft); }

.note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--mist);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* Autres actions (page Nos actions) */
.more-actions {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.more-title { font-size: var(--step-2); }
.branches .where { color: var(--ink-soft); font-weight: 650; font-size: var(--step--1); }

/* Galerie */
.gallery.gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Pied de page */
.site-footer {
  padding-block: 3.5rem 2.5rem;
  background: #0d1730;
  color: #c9cfdb;
  font-size: var(--step--1);
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-brand img {
  width: 5.5rem;
  background: var(--white);
  border-radius: 6px;
  padding: 0.35rem;
}
.footer-brand p { margin-top: 1rem; max-width: 32ch; }
.site-footer h2 {
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--white);
  margin-bottom: 0.9rem;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.55rem; }
.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ───────── Petits écrans ───────── */

@media (max-width: 56rem) {
  .mission, .feature, .spotlight, .split, .contact-band .wrap, .with-aside, .more-actions { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature-media { order: 0; }
  .aside-figure { position: static; }
  .partners { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .brand span { font-size: 0.95rem; }
  .brand small { display: none; }
  .brand img { width: 3rem; }
  .hero { min-height: calc(100svh - 4.75rem); }
  .hero::after {
    background: linear-gradient(0deg, rgba(14, 22, 42, 0.95) 0%, rgba(14, 22, 42, 0.8) 55%, rgba(14, 22, 42, 0.25) 100%);
  }
  .hero-media img { object-position: 60% 30%; }
  .hero-caption { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .report { grid-template-columns: minmax(0, 1fr); }
  .report a { justify-self: start; }
  .channels a { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .channels .go { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header, .site-footer, .hero-media, .hero::after { display: none; }
  .hero, .section-ink { background: none; color: var(--ink); }
}

.branch-title { font-size: var(--step-1); line-height: 1.3; }

@media (max-width: 40rem) {
  .header-call { padding: 0; width: 2.9rem; height: 2.9rem; justify-content: center; }
  .header-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu summary { padding: 0 0.9rem; }
}

/* ═════════ Effets : en-tête de page photo, parallaxe, tracé cardiaque ═════════ */

/* Le contenu passe sous l'en-tête flottant */
.hero { min-height: min(52rem, 100svh); }
.hero-body { padding-top: 11rem; }

/* En-têtes de pages intérieures en photo */
.page-head.has-photo {
  position: relative;
  overflow: hidden;
  padding-block: clamp(11rem, 18vw, 14rem) clamp(3rem, 6vw, 4.5rem);
  border-bottom: 0;
  background: var(--ink);
  color: var(--white);
}
.page-head-media { position: absolute; inset: 0; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-head.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 22, 42, 0.92) 0%, rgba(14, 22, 42, 0.7) 50%, rgba(14, 22, 42, 0.35) 100%);
}
.page-head.has-photo .wrap { position: relative; z-index: 1; }
.page-head.has-photo p { color: #e6e9f0; }
.page-head.has-photo .btn-ink { border-color: var(--white); color: var(--white); }

/* Tracé cardiaque du logo, signature de l'ouverture */
.ecg {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(4rem, 9vw, 7.5rem);
  pointer-events: none;
}
.ecg path {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 4000;
  stroke-dashoffset: 0;
  animation: ecg-draw 2.2s 0.5s var(--ease-out) both;
}
@keyframes ecg-draw { from { stroke-dashoffset: 4000; } }

/* Entrée de l'ouverture */
.hero-body > * { animation: hero-in 0.9s var(--ease-out) both; }
.hero-body > :nth-child(2) { animation-delay: 0.12s; }
.hero-body > :nth-child(3) { animation-delay: 0.24s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(1.5rem); } }

/* Chiffres qui comptent (sans JavaScript) */
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.count { counter-reset: n var(--n); animation: count-up 2.2s 0.6s var(--ease-out) both; font-variant-numeric: tabular-nums; }
.count::after { content: counter(n); }
.count-1000 { --n: 1000; }
.count-23 { --n: 23; }
@keyframes count-up { from { --n: 0; } }

/* Survol des photos */
.feature-media, .figure, .aside-figure { overflow: hidden; }
.feature-media img, .figure img {
  transition: transform 0.8s var(--ease-out), filter 0.4s;
}
.feature-media:hover img, .figure:hover img { transform: scale(1.04); }
.feature-media.is-poster:hover img { transform: none; }
.partners img { filter: grayscale(1); opacity: 0.75; transition: filter 0.3s, opacity 0.3s; }
.partners li:hover img { filter: none; opacity: 1; }

/* Bandes photo pleine largeur */
.band-frame { height: clamp(16rem, 42vw, 36rem); overflow: hidden; }
.photo-band .band-frame img { height: 100%; }

/* Rubans de photos de terrain */
.ribbons { overflow: hidden; }
.ribbon { overflow: hidden; }
.ribbon + .ribbon { margin-top: 0.75rem; }
.ribbon-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
}
.ribbon-track img {
  width: clamp(14rem, 26vw, 24rem);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  flex-shrink: 0;
}
.ribbon-b .ribbon-track { margin-left: -12rem; }

/* Défilement : parallaxe et apparitions (navigateurs compatibles uniquement ; sinon tout reste visible) */
@supports (animation-timeline: view()) {
  .hero-media, .page-head-media {
    animation: drift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }
  @keyframes drift { to { transform: translateY(22%); } }

  .photo-band .band-frame img {
    height: 135%;
    animation: band-drift linear both;
    animation-timeline: view();
  }
  @keyframes band-drift { from { transform: translateY(-26%); } to { transform: translateY(0); } }


  .feature {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 70%;
  }
  @keyframes rise { from { opacity: 0; transform: translateY(2.5rem); } }

  .feature-media img, .figure img, .inline-figure img {
    animation: unveil linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }
  @keyframes unveil { from { clip-path: inset(12% 6% 12% 6%); scale: 1.12; } }
}

@media (prefers-reduced-motion: reduce) {
  .ecg path { stroke-dashoffset: 0; }
  .count { --n: inherit; }
  .count-1000 { --n: 1000; }
  .count-23 { --n: 23; }
}
.photo-band .band-frame img { display: block; width: 100%; max-width: none; object-fit: cover; object-position: 50% 45%; }
/* La parallaxe déplace l'image vers le bas : on l'agrandit vers le haut pour ne jamais découvrir de vide */
.hero-media, .page-head-media { top: -24%; }

/* Compteurs : ils démarrent quand la bande des chiffres entre à l'écran */
@supports (animation-timeline: view()) {
  .count {
    animation: count-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

/* Rapports avec couverture */
.report.has-cover { grid-template-columns: 5.5rem minmax(0, 1fr) auto; }
.report .cover {
  width: 5.5rem;
  height: auto;
  outline: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out);
}
.section-ink .report .cover { outline-color: rgba(255, 255, 255, 0.25); }
.report.has-cover:hover .cover { transform: translateY(-4px) rotate(-1.5deg); }

/* Photos empilées (page Nos actions) */
.media-stack { display: grid; gap: 1.5rem; }
.media-stack figure { overflow: hidden; }
.media-stack img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media-stack figcaption { margin-top: 0.7rem; font-size: var(--step--1); color: var(--ink-soft); }
.feature:has(.media-stack) { align-items: start; }

/* Photo dans le texte (À propos) */
.prose-figure { margin: 0 0 1.75rem; }
.prose-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Pied de page : même signature que l'en-tête */
.footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-lockup img {
  width: 3.6rem;
  padding: 0.4rem;
  background: var(--white);
  border-radius: 6px;
}
.footer-lockup span {
  color: var(--white);
  font-weight: 850;
  font-size: 1.05rem;
  text-transform: uppercase;
  line-height: 1.05;
}
.footer-lockup small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #c9cfdb;
}

/* Partenaires plus présents */
.partners img { height: 7rem; opacity: 0.9; }

.postal-gap { margin-top: 1rem; }

@media (max-width: 40rem) {
  .report.has-cover { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .report.has-cover .cover { width: 4.5rem; grid-row: span 2; }
  .report.has-cover a { grid-column: 2; }
}
.reports + .note { margin-top: 2rem; }

/* Bandes photo : styles de base (restaurés) */
.photo-band { margin: 0; background: var(--ink); }
.photo-band figcaption {
  padding-block: 0.9rem 1.1rem;
  font-size: var(--step--1);
  color: #c9cfdb;
}

/* Liste des rapports de l'accueil : pleine largeur sous l'introduction */
.reports-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.reports-intro .lead { margin: 1rem 0 0; }

/* Bouton d'appel du téléphone : un vrai cercle */
@media (max-width: 40rem) {
  .header-call { flex-shrink: 0; aspect-ratio: 1; }
}

/* Rubans : défilement continu (boucle sans couture grâce à la copie de la piste) */
.ribbon-copy { display: contents; }
.ribbon-b .ribbon-track { margin-left: 0; }
.ribbon-a .ribbon-track, .ribbon-b .ribbon-track {
  animation: ribbon-loop 70s linear infinite;
  animation-timeline: auto;
}
.ribbon-b .ribbon-track { animation-direction: reverse; animation-duration: 80s; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes ribbon-loop { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 0.375rem)); } }

/* Légende de la photo d'ouverture, au-dessus du tracé cardiaque */
.hero-caption { bottom: clamp(5rem, 10vw, 8.5rem); z-index: 2; }

/* ═════════ Couleurs du logo : rouge, vert, noir ═════════ */

/* Trait tricolore au-dessus des titres de section */
.section-title h2::before,
.mission-text h2::before,
.reports-intro h2::before,
.more-title::before,
.contact-band h2::before,
.prose h2::before,
.page-head h1::before {
  content: "";
  display: block;
  width: 4.5rem;
  height: 6px;
  margin-bottom: 1.1rem;
  background: linear-gradient(90deg, var(--red) 0 33.33%, var(--green) 33.33% 66.66%, var(--ink) 66.66%);
}
.section-ink h2::before,
.contact-band h2::before,
.page-head.has-photo h1::before {
  background: linear-gradient(90deg, var(--red) 0 33.33%, #2fbf6a 33.33% 66.66%, var(--white) 66.66%);
}
.hl-green { color: var(--green); }

/* Les trois branches : trois blocs pleins aux couleurs du logo */
.mission .branches { border-top: 0; display: grid; gap: 0.5rem; }
.mission .branches li {
  padding: 1.5rem 1.75rem;
  border-bottom: 0;
  color: var(--white);
  transition: transform 0.35s var(--ease-out);
}
.mission .branches li:nth-child(1) { background: var(--green); }
.mission .branches li:nth-child(2) { background: var(--red); }
.mission .branches li:nth-child(3) { background: var(--ink); }
.mission .branches li:hover { transform: translateX(6px); }
.mission .branches span { color: rgba(255, 255, 255, 0.9); }

/* Bande des chiffres : vert plein */
.facts { background: var(--green); border-block: 0; color: var(--white); }
.facts b { color: var(--white); font-size: 1.25em; }

/* Lieux des actions en vert */
.meta, .branches .where { color: var(--green); }
.mission .branches .where { color: rgba(255, 255, 255, 0.9); }

/* Rubans sur fond vert très pâle */
.ribbons { background: var(--green-wash); }

/* Bloc contact : rouge plein */
.contact-band.section-ink { background: var(--red); }
.contact-band .lead { color: #ffe1e6; }
.contact-band .channels li,
.contact-band .channels li:first-child { border-color: rgba(255, 255, 255, 0.35); }
.contact-band .channels .label { color: #ffe1e6; }
.contact-band h2::before { background: linear-gradient(90deg, var(--ink) 0 33.33%, #2fbf6a 33.33% 66.66%, var(--white) 66.66%); }
.partners img { filter: none; opacity: 1; }

/* Photo d'ouverture : débordement de parallaxe vers le bas, banderole visible */
.hero-media { top: 0; bottom: -24%; }
.hero-media img { object-position: 50% 0%; }
@supports (animation-timeline: scroll()) {
  .hero-media { animation-name: drift-up; }
  @keyframes drift-up { to { transform: translateY(-16%); } }
}

/* Légende de la photo d'ouverture sur fond sombre */
.hero-caption {
  padding: 0.45rem 0.75rem;
  background: rgba(10, 16, 32, 0.82);
  color: #eef0f5;
  text-align: left;
}

/* Contrôle de pause des rubans (clavier, tactile, souris) */
.ribbon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-weight: 650;
  font-size: var(--step--1);
  cursor: pointer;
}
.ribbon-toggle input { width: 1.2rem; height: 1.2rem; accent-color: var(--green); }
.ribbons:has(.ribbon-toggle input:checked) .ribbon-track,
.ribbons:focus-within .ribbon-track { animation-play-state: paused; }

/* Blocs des branches : de vrais liens */
.mission .branches li { padding: 0; }
.mission .branches li:hover { transform: none; }
.branch-link {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 1.75rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out);
}
.branch-link:hover, .branch-link:focus-visible { color: inherit; transform: translateX(6px); }
.branch-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.branch-link strong .icon { vertical-align: -0.12em; margin-left: 0.15em; }
.nowrap { white-space: nowrap; }
.mission .branches .nowrap { color: inherit; }

/* ═════════ Actualités ═════════ */
.news-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2.5rem; }
.news-link {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.news-link img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.news-item { overflow: hidden; border-top: 6px solid transparent; border-image: linear-gradient(90deg, var(--red) 0 33.33%, var(--green) 33.33% 66.66%, var(--ink) 66.66%) 1; padding-top: 2rem; }
.news-link:hover img { transform: scale(1.03); }
.news-text { display: grid; gap: 0.8rem; }
.news-title { font-size: var(--step-2); font-weight: 750; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.news-link:hover .news-title { color: var(--red); }
.news-excerpt { color: var(--ink-soft); }
.news-link .text-link { color: var(--red); }
.news-link:focus-visible { outline: 3px solid var(--red); outline-offset: 6px; }

/* Article */
.article { padding-bottom: var(--space-section); }
.article-head { padding-top: clamp(10rem, 16vw, 12.5rem); max-width: 60rem; }
.article-head h1 { font-size: var(--step-4); }
.article-head h1::before {
  content: "";
  display: block;
  width: 4.5rem;
  height: 6px;
  margin-bottom: 1.1rem;
  background: linear-gradient(90deg, var(--red) 0 33.33%, var(--green) 33.33% 66.66%, var(--ink) 66.66%);
}
.article-head .meta { margin-top: 1.25rem; }
.article-back { margin-bottom: 2rem; }
.icon-back { transform: rotate(180deg); }
.article-figure { margin-top: 2.5rem; margin-bottom: 3rem; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption { margin-top: 0.7rem; font-size: var(--step--1); color: var(--ink-soft); }
.article-body { margin-inline: auto; }
.article-lead { font-size: var(--step-1); line-height: 1.5; }

@media (max-width: 56rem) {
  .news-link { grid-template-columns: minmax(0, 1fr); }
}

/* Menu à 6 liens : jamais de retour à la ligne dans un libellé */
.nav-desktop .nav-list a { white-space: nowrap; padding-inline: 0.7rem; letter-spacing: 0.1em; }
.nav-desktop .nav-list { gap: 0; }
.nav-desktop .nav-list a.nav-call { margin-left: 0.75rem; padding-inline: 1.3rem; }
/* Entrées d'actualité : un simple filet, le trait tricolore reste une marque courte */
.news-item { border-top: 1px solid var(--line); border-image: none; }
