/* MND24 — styles communs à toutes les pages */

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #0D2B4E;
  line-height: 1.65;
}

:root {
  --navy:        #0D2B4E;
  --navy-mid:    #1A4A7A;
  --teal:        #3AADA8;
  --teal-light:  #6ECECE;
  --teal-pale:   #E8F6F6;
  --white:       #FFFFFF;
  --off-white:   #F4F8FB;
  --text-muted:  #4A6C8C;
  --teal-text:   #1F7C78;
  --radius-pill: 2rem;
  --radius-card: 1.2rem;
  --shadow-card: 0 4px 20px rgba(13,43,78,.08);
  --shadow-hover: 0 8px 32px rgba(58,173,168,.2);
}

/* ── NAVBAR ── */
    nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 2.5rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--teal-pale);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  text-decoration: none;
}

.nav-brand img {
  width: auto;
  height: 52px;
  flex-shrink: 0;
  display: block;
}

.nav-title {
  display: flex;
  flex-direction: column;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.nav-title small {
  margin-top: 0.2rem;
  color: var(--teal-text);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.nav-cta {
  flex-shrink: 0;
  padding: 0.6rem 1.4rem;
  background: var(--navy);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

/* ── HERO ── */
    .hero {
  background: var(--white);
  margin-top: 70px;
  padding: 5rem 2rem 4rem;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  position: relative; overflow: hidden;
}

.hero-blob {
  position: absolute; top: -80px; right: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,173,168,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-blob-2 {
  position: absolute; bottom: -60px; left: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,43,78,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 4rem; max-width: 960px; width: 100%;
  margin-bottom: 2.5rem;
  position: relative; z-index: 1;
}

.hero-logo img {
  height: 500px; width: auto; flex-shrink: 0;
}

.hero-text {
  text-align: left;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 900; color: var(--navy);
  line-height: 1.1; text-transform: uppercase;
  letter-spacing: -.01em; margin-bottom: .8rem;
}

.hero-text h1 .highlight {
  color: var(--teal-text);
}

.hero-text .hero-sub {
  font-size: .95rem; color: var(--text-muted);
  font-weight: 500; line-height: 1.7; max-width: 420px;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; position: relative; z-index: 1;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--navy); color: #fff;
  padding: .95rem 2.2rem; border-radius: var(--radius-pill);
  font-size: .95rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 4px 18px rgba(13,43,78,.25);
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-primary:hover {
  background: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(58,173,168,.35);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; border: 2px solid var(--navy); color: var(--navy);
  padding: .95rem 2.2rem; border-radius: var(--radius-pill);
  font-size: .95rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}

.btn-secondary:hover {
  border-color: var(--teal-text); color: var(--teal-text); background: var(--teal-pale); transform: translateY(-2px);
}

/* ── SECTIONS ── */
    section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1080px; margin: 0 auto;
}

.section-eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-text); margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 900; color: var(--navy);
  line-height: 1.15; margin-bottom: 1rem; text-transform: uppercase;
}

.section-intro {
  font-size: 1rem; color: var(--text-muted);
  max-width: 620px; margin-bottom: 3rem;
  font-weight: 500; line-height: 1.8;
}

/* ── MISSION ── */
    .mission-section {
  background: var(--off-white);
}

.mission-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}

.mission-card {
  background: var(--white); border-radius: var(--radius-card);
  padding: 1.8rem 1.5rem; border-top: 4px solid var(--teal);
  box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s;
}

.mission-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-hover);
}

.mission-card h3 {
  font-size: 1rem; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem;
}

.mission-card p {
  font-size: .875rem; color: var(--text-muted); font-weight: 500; line-height: 1.6;
}

/* ── WHY ── */
    .why-section {
  background: var(--white);
}

.why-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center;
}

.why-visual {
  background: var(--navy); border-radius: var(--radius-card);
  padding: 2.8rem 2.2rem; text-align: center;
  position: relative; overflow: hidden;
}

.why-visual::before {
  content: ''; position: absolute; bottom: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(58,173,168,.15); pointer-events: none;
}

.why-visual-tag {
  display: inline-block; background: var(--teal); color: #fff; padding: .3rem .9rem; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.4rem;
}

.why-visual-headline {
  font-size: 2.2rem; font-weight: 900; color: #fff; line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 1.2rem;
}

.why-visual-headline span {
  color: var(--teal-light);
}

.why-visual-divider {
  width: 48px; height: 3px; background: var(--teal); border-radius: 2px; margin: 0 auto 1.4rem;
}

.why-visual-quote {
  font-size: .95rem; color: rgba(255,255,255,.75); font-style: italic; line-height: 1.65; font-weight: 500;
}

.why-points {
  list-style: none; display: flex; flex-direction: column; gap: 1.3rem;
}

.why-point {
  display: flex; gap: 0.75rem; align-items: flex-start;
}

.why-point-icon {
  width: 10px; height: 10px; flex-shrink: 0; background: var(--teal); border-radius: 50%; margin-top: .45rem;
}

.why-point-text h4 {
  font-size: .95rem; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .25rem;
}

.why-point-text p {
  font-size: .875rem; color: var(--text-muted); font-weight: 500;
}

/* ── CTA ── */
    .cta-section {
  background: var(--navy); text-align: center; padding: 4.5rem 2rem;
}

.cta-section .section-title {
  color: #fff;
}

.cta-section .section-intro {
  color: rgba(255,255,255,.65); margin-left: auto; margin-right: auto;
}

.cta-buttons {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem;
}

.cta-section .btn-primary {
  background: var(--teal); box-shadow: 0 4px 18px rgba(58,173,168,.4);
}

.cta-section .btn-primary:hover {
  background: #2d9090;
}

.cta-section .btn-secondary {
  border-color: rgba(255,255,255,.4); color: #fff;
}

.cta-section .btn-secondary:hover {
  border-color: var(--teal-light); color: var(--teal-light); background: rgba(58,173,168,.1);
}

/* ── CONTACT ── */
    .contact-section {
  background: var(--off-white); text-align: center;
}

.contact-card {
  background: var(--white); border-radius: var(--radius-card);
  padding: 2.8rem 2.2rem; max-width: 500px; margin: 0 auto;
  box-shadow: var(--shadow-card); border-top: 4px solid var(--teal);
}

.contact-card h3 {
  font-size: 1.1rem; font-weight: 900; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem;
}

.contact-card > p {
  font-size: .875rem; color: var(--text-muted); font-weight: 500; margin-bottom: 1.8rem;
}

.contact-coords {
  display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.4rem;
}

.contact-coord-link {
  display: flex; align-items: center; justify-content: center;
  background: var(--off-white); border: 1.5px solid rgba(13,43,78,.12);
  border-radius: var(--radius-pill); padding: .65rem 1.4rem;
  font-size: .9rem; font-weight: 600; color: var(--navy);
  text-decoration: none; letter-spacing: .01em;
  transition: border-color .2s, color .2s, background .2s;
}

.contact-coord-link:hover {
  border-color: var(--teal-text); color: var(--teal-text); background: var(--teal-pale);
}

.social-links {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.social-link {
  display: flex; align-items: center; gap: .5rem;
  background: var(--off-white); border: 1.5px solid rgba(13,43,78,.15);
  color: var(--navy); font-size: .82rem; font-weight: 700;
  padding: .5rem 1.2rem; border-radius: var(--radius-pill);
  text-decoration: none; letter-spacing: .03em; text-transform: uppercase;
  transition: border-color .2s, color .2s, background .2s;
}

.social-link:hover {
  border-color: var(--teal-text); color: var(--teal-text); background: var(--teal-pale);
}

.social-link svg {
  width: 16px; height: 16px; flex-shrink: 0;
}

/* ── MENTIONS LÉGALES (accordéon) ── */
    .legal-section {
  background: var(--white);
  padding: 3rem 2rem;
  border-top: 1px solid rgba(13,43,78,.08);
}

.legal-section .container {
  max-width: 800px;
}

.legal-section > .container > h2 {
  font-size: 1rem; font-weight: 900; color: var(--navy);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.2rem;
}

/* Bouton accordéon principal */
    .legal-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: var(--off-white);
  border: 1.5px solid rgba(13,43,78,.1);
  border-radius: var(--radius-card);
  padding: 1rem 1.4rem; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem; font-weight: 800;
  color: var(--navy); letter-spacing: .04em; text-transform: uppercase;
  transition: background .2s, border-color .2s;
  margin-bottom: .5rem;
}

.legal-toggle:hover {
  background: var(--teal-pale); border-color: var(--teal-text); color: var(--teal-text);
}

.legal-toggle[aria-expanded="true"] {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

.legal-toggle .chevron {
  width: 18px; height: 18px; flex-shrink: 0;
  transition: transform .25s;
}

.legal-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* Contenu accordéon */
    .legal-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}

.legal-body.open {
  max-height: 2000px;
}

.legal-body-inner {
  background: var(--off-white);
  border: 1.5px solid rgba(13,43,78,.08);
  border-top: none;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  padding: 1.5rem 1.4rem 1.8rem;
  margin-bottom: .5rem;
}

.legal-block {
  margin-bottom: 1.2rem;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h3 {
  font-size: .78rem; font-weight: 800; color: var(--teal-text); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .35rem;
}

.legal-block p {
  font-size: .82rem; color: var(--text-muted); font-weight: 500; line-height: 1.7;
}

.legal-block a {
  color: var(--teal-text); text-decoration: none;
}

.legal-block a:hover {
  text-decoration: underline;
}

/* ── PIED DE PAGE ── */
footer {
  padding: 3.2rem 2rem 1.6rem;
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.75;
}

.footer-inner {
  display: grid;
  gap: 2.4rem;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.footer-name {
  margin-bottom: .7rem;
  color: #ffffff;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-baseline {
  max-width: 34ch;
  color: rgba(255, 255, 255, .68);
  font-size: .8rem;
}

.footer-legal-mention {
  margin-top: .8rem;
  color: rgba(255, 255, 255, .5);
  font-size: .74rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.footer-col-title {
  margin-bottom: .35rem;
  color: var(--teal-light);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-col a {
  width: fit-content;
  color: rgba(255, 255, 255, .72);
  font-size: .8rem;
  text-decoration: none;
  transition: color .15s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--teal-light);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: .5rem;
  margin-top: .9rem;
}

.footer-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: rgba(255, 255, 255, .85);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: var(--teal-light);
  background: rgba(110, 206, 206, .16);
  color: var(--teal-light);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  display: flex;
  max-width: 1180px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin: 2.6rem auto 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .5);
  font-size: .74rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--teal-light);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  footer {
    padding: 2.4rem 1.25rem 1.4rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.9rem;
  }
}

/* ── NAVBAR MOBILE — correctif final ── */
@media (max-width: 760px) {
  nav {
  gap: 0.6rem !important;
  padding: 0.6rem 0.75rem !important;
  }
  .nav-brand {
  flex: 1 1 auto !important;
  gap: 0.55rem !important;
  min-width: 0 !important;
  }
  .nav-brand img {
  height: 43px !important;
  }
  .nav-title {
  max-width: 135px !important;
  font-size: 0.64rem !important;
  line-height: 1.15 !important;
  }
  .nav-title small {
  margin-top: 0.15rem !important;
  font-size: 0.54rem !important;
  }
  .nav-cta {
  flex: 0 0 auto !important;
  max-width: 145px !important;
  padding: 0.6rem 0.7rem !important;
  font-size: 0.62rem !important;
  line-height: 1.15 !important;
  }
}

/* ── NAVIGATION PRINCIPALE (bureau) ── */
.nav-menu {
  display: none;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem 0;
  border: none;
  background: none;
  color: var(--navy);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after,
.nav-item:hover > .nav-link::after,
.nav-link[aria-expanded="true"]::after {
  transform: scaleX(1);
}

.nav-link.active,
.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--teal-text);
}

.nav-caret {
  width: 0;
  height: 0;
  border-top: 4px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform .2s ease;
}

.nav-item:hover .nav-caret,
.nav-link[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + .55rem);
  left: 50%;
  z-index: 120;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  min-width: 232px;
  padding: .5rem;
  border: 1px solid var(--teal-pale);
  border-radius: .9rem;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(13, 43, 78, .14);
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -.6rem;
  right: 0;
  left: 0;
  height: .6rem;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-link[aria-expanded="true"] + .nav-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  padding: .58rem .75rem;
  border-radius: .55rem;
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: var(--teal-pale);
  color: var(--teal-text);
}

.nav-cta {
  display: none;
  flex-shrink: 0;
  margin-left: 1.4rem;
  padding: .62rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: #ffffff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.nav-cta:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

/* le menu horizontal remplace le bouton burger sur grand écran */
@media (min-width: 1080px) {
  .nav-menu,
  .nav-cta {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 760px) {

  nav {
    gap: .5rem !important; padding: .55rem .7rem .5rem !important;
  }

  nav .nav-cta {
    max-width: 137px !important;
    margin-left: 0 !important;
    padding: .55rem .65rem !important;
    font-size: .58rem !important;
  }

  .nav-title {
    max-width: 125px !important; font-size: .61rem !important;
  }

  .nav-title small {
    font-size: .51rem !important;
  }

  .nav-menu {
    gap: 2rem;
  }

  .hero {
    margin-top: 112px !important;
  }

}

/* ══════════════════════════════════════════════════════════════
   OUTILS D’ACCESSIBILITÉ
   ══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "OpenDyslexic";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@5.3.0/latin-400-normal.woff2")
  format("woff2");
}

@font-face {
  font-family: "OpenDyslexic";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@5.3.0/latin-700-normal.woff2")
       format("woff2");
}

/* Lien d’évitement pour la navigation au clavier */
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10000;
  padding: .8rem 1rem;
  background: #ffffff;
  border: 3px solid #0D2B4E;
  border-radius: .65rem;
  color: #0D2B4E;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Focus clavier visible sur l’ensemble du site */
:focus-visible {
  outline: 4px solid #F4B400 !important;
  outline-offset: 4px !important;
}

/* Tailles de texte */
html[data-a11y-size="large"] {
  font-size: 112.5%;
}

html[data-a11y-size="xlarge"] {
  font-size: 125%;
}

/* Police OpenDyslexic, uniquement sur demande */
html.a11y-dyslexic body,
html.a11y-dyslexic button,
html.a11y-dyslexic input,
html.a11y-dyslexic textarea,
html.a11y-dyslexic select {
  font-family: "OpenDyslexic", Arial, sans-serif !important;
}

/* Espacement renforcé */
html.a11y-spacing body {
  letter-spacing: .025em;
  word-spacing: .09em;
}

html.a11y-spacing p,
html.a11y-spacing li,
html.a11y-spacing .tnd-card-full,
html.a11y-spacing .mission-card p,
html.a11y-spacing .why-point-text p {
  line-height: 1.95 !important;
}

/* Contraste renforcé : la charte reste reconnaissable */
html.a11y-contrast {
  --navy: #00182F;
  --navy-mid: #003B67;
  --teal: #007B77;
  --teal-light: #B8FFFF;
  --teal-pale: #E2FFFF;
  --off-white: #F8FAFC;
  --text-muted: #263E53;
}

html.a11y-contrast body {
  color: #00182F;
}

html.a11y-contrast .nav-cta,
html.a11y-contrast .btn-primary,
html.a11y-contrast .cta-section {
  border: 2px solid #ffffff;
}

html.a11y-contrast .tnd-card,
html.a11y-contrast .mission-card,
html.a11y-contrast .contact-card {
  border-width: 2px;
}

/* Liens plus faciles à repérer */
html.a11y-links a:not(.nav-cta):not(.btn-primary):not(.btn-secondary):not(.skip-link) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: .18em !important;
}

/* Mode calme : mouvements et éléments décoratifs réduits */
html.a11y-calm {
  scroll-behavior: auto !important;
}

html.a11y-calm *,
html.a11y-calm *::before,
html.a11y-calm *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

html.a11y-calm .hero-blob,
html.a11y-calm .hero-blob-2,
html.a11y-calm .tnd-panel::after,
html.a11y-calm .why-visual::before {
  display: none !important;
}

html.a11y-calm .mission-card:hover,
html.a11y-calm .tnd-card:hover,
html.a11y-calm .btn-primary:hover,
html.a11y-calm .btn-secondary:hover,
html.a11y-calm .nav-cta:hover {
  transform: none !important;
}

/* Bouton flottant */
.a11y-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .72rem 1rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--navy);
  box-shadow: 0 8px 26px rgba(13,43,78,.28);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.a11y-launcher:hover {
  background: var(--teal);
}

.a11y-launcher svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

/* Fond derrière le panneau */
.a11y-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 15, 30, .42);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.a11y-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Panneau */
.a11y-panel {
  position: fixed;
  right: 1rem;
  bottom: 4.8rem;
  z-index: 9999;
  width: min(390px, calc(100vw - 2rem));
  max-height: min(720px, calc(100vh - 6rem));
  overflow-y: auto;
  padding: 1.15rem;
  background: #ffffff;
  border: 2px solid var(--navy);
  border-radius: 1.2rem;
  box-shadow: 0 18px 50px rgba(0,20,40,.28);
  color: var(--navy);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.a11y-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.a11y-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(13,43,78,.12);
}

.a11y-panel-title {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.a11y-panel-subtitle {
  margin-top: .28rem;
  color: var(--text-muted);
  font-size: .76rem;
  line-height: 1.5;
}

.a11y-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(13,43,78,.18);
  border-radius: 50%;
  background: var(--off-white);
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  font-size: 1.3rem;
  line-height: 1;
}

.a11y-group {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(13,43,78,.1);
}

.a11y-group:last-of-type {
  border-bottom: 0;
}

.a11y-group-title {
  margin-bottom: .65rem;
  color: var(--navy);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.a11y-size-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.a11y-choice,
.a11y-toggle,
.a11y-reset {
  min-height: 44px;
  border: 1.5px solid rgba(13,43,78,.18);
  border-radius: .75rem;
  background: var(--off-white);
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.25;
}

.a11y-choice {
  padding: .65rem .4rem;
}

.a11y-choice[aria-pressed="true"],
.a11y-toggle[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.a11y-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  width: 100%;
  margin-top: .55rem;
  padding: .72rem .8rem;
  text-align: left;
}

.a11y-toggle:first-of-type {
  margin-top: 0;
}

.a11y-toggle-state {
  min-width: 38px;
  color: var(--teal-text);
  font-size: .66rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.a11y-toggle[aria-pressed="true"] .a11y-toggle-state {
  color: var(--teal-light);
}

.a11y-help {
  margin-top: .5rem;
  color: var(--text-muted);
  font-size: .68rem;
  line-height: 1.5;
}

.a11y-reset {
  width: 100%;
  margin-top: 1rem;
  padding: .72rem 1rem;
  background: #ffffff;
  border-color: var(--teal-text);
  color: var(--teal-text);
}

.a11y-reset:hover {
  background: var(--teal-pale);
}

.a11y-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Respect automatique du réglage système */
@media (prefers-reduced-motion: reduce) {
  html {
  scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
  }
}

@media (max-width: 760px) {

  .a11y-launcher {
    right: .7rem;
    bottom: .7rem;
    padding: .7rem .82rem;
  }

  .a11y-launcher span {
    display: none;
  }

  .a11y-panel {
    right: .65rem;
    bottom: 4.4rem;
    width: calc(100vw - 1.3rem);
    max-height: calc(100vh - 5.3rem);
    padding: 1rem;
  }

}

/* ── LIENS JURIDIQUES DU FOOTER ── */
.footer-legal-links {
  margin-top: .6rem;
  color: rgba(255,255,255,.45);
  font-size: .8rem;
  line-height: 1.9;
  font-weight: 500;
}

.footer-legal-links a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--teal-light);
}

/* ── MENU HAMBURGER (jusqu'à 1079 px) ── */
nav {
  flex-wrap: nowrap !important;
}

@media (max-width: 1079px) {
  .nav-menu,
  nav > .nav-cta,
  .nav-dropdown {
    display: none !important;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  margin-left: auto;
  padding: 0;
  background: var(--navy);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(13,43,78,.18);
}

.menu-toggle:hover {
  background: var(--teal);
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  top: -7px;
}

.menu-toggle-lines::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 18, 35, .48);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.site-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.site-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  width: min(420px, 92vw);
  height: 100vh;
  padding: 1.2rem 1.25rem 2rem;
  overflow-y: auto;
  background: var(--white);
  box-shadow: -16px 0 40px rgba(13,43,78,.18);
  transform: translateX(105%);
  transition: transform .25s ease;
}

.site-menu-panel.open {
  transform: translateX(0);
}

.site-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(13,43,78,.1);
}

.site-menu-title {
  color: var(--navy);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(13,43,78,.12);
  border-radius: 50%;
  background: var(--off-white);
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  font-size: 1.6rem;
  line-height: 1;
}

.site-menu-list {
  display: grid;
  gap: .35rem;
  margin-top: 1.2rem;
}

.site-menu-link,
.site-submenu-toggle,
.site-submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: .78rem .9rem;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.site-menu-link:hover,
.site-menu-link.active,
.site-submenu-toggle:hover,
.site-submenu-toggle.active,
.site-submenu a:hover,
.site-submenu a.active {
  background: var(--teal-pale);
  color: var(--teal-text);
}

.site-submenu-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.site-submenu-group.open .site-submenu-toggle::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.site-submenu {
  display: none;
  gap: .25rem;
  margin: .2rem 0 .4rem;
  padding-left: .8rem;
}

.site-submenu-group.open .site-submenu {
  display: grid;
}

.site-submenu a {
  min-height: 44px;
  padding-left: 1.1rem;
  font-size: .86rem;
  font-weight: 700;
}

.site-menu-separator {
  height: 1px;
  margin: .8rem 0;
  background: rgba(13,43,78,.1);
}

.site-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: .6rem;
  padding: .8rem 1rem;
  background: var(--navy);
  border-radius: 999px;
  color: var(--white);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.site-menu-cta:hover {
  background: var(--teal);
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 760px) {

  nav {
    flex-wrap: nowrap !important;
    padding: .65rem .8rem !important;
  }

  .nav-brand {
    max-width: calc(100% - 62px);
  }

  .nav-brand img {
    height: 42px !important;
  }

  .nav-title {
    max-width: none !important;
    font-size: .62rem !important;
  }

  .nav-title small {
    font-size: .5rem !important;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .hero,
  .about-page,
  .legal-page {
    margin-top: 0 !important;
    padding-top: 82px !important;
  }

  .about-hero,
  .legal-hero {
    padding-top: 3.2rem !important;
  }

}

/* ── HELLOASSO ── */
.helloasso-mini {
  max-width: 520px;
  margin: 2.2rem auto 0;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid rgba(13,43,78,.10);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.helloasso-mini p {
  margin-bottom: .45rem;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 800;
}

.helloasso-button-widget {
  display:block;
}

.helloasso-embed-full {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(13,43,78,.10);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* ── AJUSTEMENTS VISUELS ── */

/* le hero respire mieux : logo moins écrasant, actions visibles d'emblée */
.hero {
  padding: 3.2rem 2rem 3.4rem;
}

.hero-inner {
  gap: 3rem;
  margin-bottom: 0;
}

.hero-logo img {
  height: clamp(180px, 24vw, 320px);
}

.hero-text .hero-sub {
  max-width: 460px;
}

.hero-ctas {
  justify-content: flex-start;
  max-width: 960px;
  margin: 1.6rem auto 0;
}

.hero-text .hero-ctas {
  gap: .8rem;
  margin: 1.7rem 0 0;
}

.hero-ctas .btn-primary,
.hero-ctas .btn-secondary {
  padding: .85rem 1.5rem;
  font-size: .85rem;
}

/* les grands titres ne débordent plus sur petit écran */
/* Les titres ne doivent jamais être coupés en plein mot :
   pas de hyphens: auto, et on ne casse que si un mot dépasse à lui seul. */
h1, h2, h3, h4,
.section-title,
.tnd-section-title,
.about-lead,
.network-card h3,
.resource-card h3 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

@media (max-width: 620px) {
  .section-title,
  .tnd-section-title {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
  .hero-ctas {
    justify-content: center;
    width: 100%;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    justify-content: center;
    width: 100%;
    padding: .9rem 1.2rem;
    font-size: .84rem;
  }
}

/* le bouton d'accessibilité ne recouvre plus le texte sur petit écran */
@media (max-width: 620px) {
  .a11y-launcher span {
    display: none;
  }
  .a11y-launcher {
    right: .75rem;
    bottom: .75rem;
    width: 52px;
    height: 52px;
    padding: 0;
  }
}


/* le menu horizontal prend le relais du burger sur grand écran */
@media (min-width: 1080px) {
  .nav-menu {
    display: flex !important;
  }
  nav > .nav-cta {
    display: inline-flex !important;
  }
  .nav-dropdown {
    display: flex !important;
  }
  .menu-toggle {
    display: none !important;
  }
}

.footer-address {
  margin-top: .45rem;
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
  font-style: normal;
  line-height: 1.6;
}

/* ── Décalage sous la barre de navigation fixe ──
   Les pages réservaient 72 px alors que la barre en mesure 76 :
   le petit repère teal en haut des en-têtes passait dessous. */
main.about-page,
main.legal-page {
  padding-top: 80px;
}

.hero {
  margin-top: 80px;
}

/* ── Vignettes photo des cartes de contenu ──
   Une carte affiche soit une photo, soit le bloc bleu titré d'origine. */
.resource-thumb {
  position: relative;
  overflow: hidden;
}

.resource-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-thumb-photo {
  padding: 0;
}


/* ── Composants « réseau » (cartes numérotées, panneau, encadré) ──
   Déplacés ici depuis la page Partenariats : ils servent maintenant
   aussi sur la page Adhérer. */
/* ── PAGES RÉSEAU ── */
.network-hero {
  padding-bottom: 4.5rem;
}

.network-hero .about-lead {
  max-width: 760px;
}

.network-panel {
  margin-top:2.2rem;
  padding:1.45rem 1.6rem;
  background:var(--navy);
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-card);
  color:#fff;
}

.network-panel strong {
  display:block;
  margin-bottom:.35rem;
  color:var(--teal-light);
  font-size:1.2rem;
}

.network-panel p {
  color:rgba(255,255,255,.75);
  font-size:.9rem;
  line-height:1.7;
}

.network-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.35rem;
}

.network-card {
  padding:1.7rem 1.5rem;
  background:#fff;
  border:1px solid rgba(13,43,78,.1);
  border-top:4px solid var(--teal);
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-card);
}

.network-card .num {
  display:block;
  margin-bottom:.8rem;
  color:rgba(58,173,168,.35);
  font-size:2rem;
  font-weight:900;
  line-height:1;
}

.network-card h3 {
  margin-bottom:.55rem;
  color:var(--navy);
  font-size:.98rem;
  font-weight:900;
  text-transform:uppercase;
}

.network-card p {
  color:var(--text-muted);
  font-size:.88rem;
  line-height:1.75;
}

.network-highlight {
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:3rem;
  padding:2.2rem;
  background:var(--teal-pale);
  border-radius:var(--radius-card);
}

.network-highlight p {
  color:var(--text-muted);
  font-size:.9rem;
  line-height:1.8;
}

.network-highlight p+p {
  margin-top:1rem;
}

@media(max-width:760px) {
.network-grid,.network-highlight,.partner-types {
    grid-template-columns:1fr
  }
.network-highlight {
    gap:1.2rem;padding:1.35rem
  }
}


/* ── Cartes de contenu (Ressources, Actualités, Partenariats) ── */
.resource-section {
  padding:3.6rem 0;scroll-margin-top:110px
}

.resource-section+.resource-section {
  border-top:1px solid rgba(13,43,78,.1)
}

.resource-heading {
  max-width:760px;margin-bottom:1.8rem
}

.resource-grid {
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem
}

.resource-card {
  display:flex;flex-direction:column;min-height:100%;overflow:hidden;background:#fff;border:1px solid rgba(13,43,78,.1);border-radius:var(--radius-card);box-shadow:var(--shadow-card)
}

.resource-thumb {
  aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;padding:1.2rem;background:linear-gradient(145deg,var(--navy),#174d6d);color:#fff;text-align:center
}

.resource-thumb strong {
  font-size:1.15rem;line-height:1.3
}

.resource-card-body {
  display:flex;flex-direction:column;flex:1;padding:1.25rem
}

.resource-kicker {
  margin-bottom:.45rem;color: var(--teal-text);font-size:.67rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase
}

.resource-card h3 {
  margin-bottom:.55rem;color:var(--navy);font-size:1rem;line-height:1.35
}

.resource-card p {
  color:var(--text-muted);font-size:.84rem;line-height:1.7
}

.resource-card a.more {
  margin-top:auto;padding-top:1rem;color: var(--teal-text);font-size:.78rem;font-weight:800;text-decoration:none
}

@media(max-width:900px) {
.resource-grid {
    grid-template-columns:repeat(2,1fr)
  }
}

@media(max-width:650px) {
.resource-grid {
    grid-template-columns:1fr
  }
.resource-section {
    padding:2.6rem 0
  }
}

/* Formats de vignette selon la photo */
.resource-thumb-tall {
  aspect-ratio: 4/5;
}

.resource-thumb-square {
  aspect-ratio: 1/1;
}

/* Deux liens dans une même carte */
.resource-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1.1rem;
  margin-top: auto;
}

.resource-links a.more {
  margin-top: 0;
}

.resource-card a.more.secondary {
  color: var(--text-muted);
  font-weight: 700;
}

.resource-card a.more:hover,
.resource-card a.more:focus-visible {
  text-decoration: underline;
}

/* Deux liens dans une même carte */
.resource-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1.1rem;
  margin-top: auto;
  padding-top: 1rem;
}

.resource-links a.more {
  margin-top: 0;
  padding-top: 0;
}

.resource-card a.more.secondary {
  color: var(--text-muted);
  font-weight: 700;
}

.resource-card a.more:hover,
.resource-card a.more:focus-visible {
  text-decoration: underline;
}

/* Vignette « logo partenaire » : fond clair, logo entier, jamais rogné */
.resource-thumb-logo {
  aspect-ratio: 4/3;
  padding: 1.6rem;
  background: #ffffff;
  border-bottom: 1px solid var(--teal-pale);
}

.resource-thumb-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 620px) {
  .resource-thumb-logo {
    padding: 1.2rem;
  }
}

/* <picture> n'a pas de taille propre : sans cela l'image déborde
   de sa vignette au lieu de s'y ajuster. */
.resource-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Une vignette photo occupe toute la surface, sans marge bleue autour */
.resource-thumb.resource-thumb-photo {
  padding: 0;
}

/* ── Carte « à la une » : l'affiche à gauche, l'essentiel à droite ──
   Un seul élément dans une grille de trois colonnes laissait un grand
   vide sur ordinateur. */
.feature-card {
  display: grid;
  overflow: hidden;
  margin-top: 1.6rem;
  border: 1px solid var(--teal-pale);
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(13, 43, 78, .07);
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
}

.feature-card-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.feature-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card-body {
  display: flex;
  flex-direction: column;
  padding: 2rem 2.2rem;
}

.feature-card-body h3 {
  margin-bottom: .7rem;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1.2;
}

.feature-card-lead {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}

.feature-facts {
  margin: 1.3rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.feature-facts li {
  display: grid;
  padding: .55rem 0;
  border-top: 1px solid var(--teal-pale);
  color: var(--navy);
  font-size: .88rem;
  gap: .15rem 1.2rem;
  grid-template-columns: 110px minmax(0, 1fr);
}

.feature-facts li:last-child {
  border-bottom: 1px solid var(--teal-pale);
}

.feature-facts strong {
  color: var(--teal-text);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feature-card .more {
  margin-top: auto;
  color: var(--teal-text);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.feature-card .more:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .feature-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-card-media img {
    max-height: 460px;
    object-position: top;
  }
  .feature-card-body {
    padding: 1.5rem 1.35rem;
  }
  .feature-facts li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Une rangée de deux cartes ne laisse plus une colonne vide */
.resource-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 460px));
}

/* Les cartes TND de l'accueil se centrent au lieu de coller à gauche */
.tnd-grid {
  justify-content: center;
}


/* ================================================================
   MND24 v9 — stabilisation des cartes et visuels desktop
   ================================================================ */
@media (min-width: 761px) {
  /* Les sections imbriquées ne cumulent plus le padding horizontal global. */
  .about-container > .resource-section {
    padding-left: 0;
    padding-right: 0;
  }

  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  /* Une seule carte reste à une largeur de carte normale. */
  .resource-grid > .resource-card:only-child {
    width: min(100%, 340px);
  }

  /* Deux cartes sont centrées et ne s'étirent pas sur toute la page. */
  .resource-grid:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: center;
  }

  /* Verrouille réellement la boîte de l'image, y compris avec <picture>. */
  .resource-thumb {
    position: relative;
    width: 100%;
    min-height: 0;
  }

  .resource-thumb picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .resource-thumb picture img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  /* Visuels éditoriaux/Instagram : on évite tout recadrage destructeur. */
  .resource-thumb-photo.resource-thumb-tall img {
    object-fit: contain;
    object-position: center;
  }

  .resource-thumb-photo.resource-thumb-tall {
    background: #f8f6f5;
  }

  /* Photos carrées : remplissage naturel de la carte. */
  .resource-thumb-photo.resource-thumb-square img {
    object-fit: cover;
    object-position: center;
  }

  /* Affiche événement : format 4/5 complet, jamais zoomé/rogné. */
  .feature-card {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: stretch;
  }

  .feature-card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    min-height: 0;
    background: #f8f6f5;
  }

  .feature-card-media picture {
    position: absolute;
    inset: 0;
  }

  .feature-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}
