/* CJF Saint-Malo — feuille de style du site public */

@font-face { font-family: "Atkinson"; src: url(../fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(../fonts/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(../fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow C"; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow C"; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow C"; src: url(../fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }

/* Chiffres : Atkinson Hyperlegible barre les zéros ; on utilise ceux de Barlow */
@font-face { font-family: "Atkinson"; src: url(../fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0030-0039; }
@font-face { font-family: "Atkinson"; src: url(../fonts/barlow-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0030-0039; }

:root {
  --marine: #0f2a47;
  --marine-2: #163a60;
  --bleu: #3473b6;
  --bleu-ink: #235a96;
  --rouge: #d93427;
  --rouge-ink: #b3261b;
  --brume: #eaf0f5;
  --ink: #16212c;
  --granit: #536273;
  --line: #d3dce6;
  --white: #fff;

  --f-body: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-head: "Barlow C", "Arial Narrow", sans-serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --wrap: 72rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu-ink); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: var(--rouge-ink); }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--f-head); line-height: 1.05; margin: 0 0 var(--s4); color: var(--marine); letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0 0 var(--s4); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--marine); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.small { font-size: .92rem; color: var(--granit); }
.lead { font-size: 1.2rem; color: var(--granit); max-width: 42rem; }
.empty { color: var(--granit); padding: var(--s6) 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; font: 700 1.15rem/1 var(--f-head); letter-spacing: .01em;
  padding: .8rem 1.3rem; border-radius: var(--radius); border: 2px solid var(--rouge-ink);
  background: var(--rouge-ink); color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #9a1f15; border-color: #9a1f15; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--marine); border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--marine); border-color: var(--marine); }
.btn-ghost-dark:hover { background: var(--marine); color: #fff; }
.btn-block { display: block; text-align: center; }
.btn-small { font-size: 1rem; padding: .5rem .9rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 4.25rem; }
.brand img { width: 170px; height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s1); }
.main-nav a {
  display: block; padding: .55rem .8rem; font: 700 1.2rem/1 var(--f-head); color: var(--marine);
  text-decoration: none; border-radius: var(--radius);
}
.main-nav a:hover { background: var(--brume); color: var(--marine); }
.main-nav a[aria-current="page"] { color: var(--rouge-ink); box-shadow: inset 0 -3px 0 var(--rouge); border-radius: 0; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem; background: none; border: 2px solid var(--marine);
    border-radius: var(--radius); padding: .45rem .7rem; font: 700 1.05rem/1 var(--f-head); color: var(--marine); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    display: none; box-shadow: 0 12px 24px rgba(15,42,71,.12);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: var(--s2) 1.25rem var(--s4); }
  .main-nav a { font-size: 1.5rem; padding: .8rem .25rem; border-bottom: 1px solid var(--brume); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--rouge); padding-left: .9rem; }
  .brand img { width: 150px; }
}
.no-js .main-nav { display: block; position: static; box-shadow: none; }

/* ---------- Fil d'Ariane ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: var(--s4) 0 0; margin: 0; font-size: .9rem; color: var(--granit); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--granit); }

/* ---------- Accueil : hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--marine); color: #fff; }
.hero-swoosh { position: absolute; right: 0; top: 0; height: 100%; width: min(70%, 760px); }
.hero-grid { position: relative; display: grid; gap: var(--s6); padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); align-items: center; }
.hero-title {
  color: #fff; font-size: clamp(3.2rem, 9vw, 6.6rem); line-height: .92; font-weight: 800; max-width: 11ch;
  margin-bottom: var(--s5); text-wrap: balance;
}
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34rem; color: #d6e2ee; margin: 0; }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .hero-grid:has(.hero-photo) { grid-template-columns: 1.1fr .9fr; } }

/* ---------- Recherche de section par âge ---------- */
.finder { padding: var(--s7) 0 var(--s8); }
.finder-page { padding-top: 0; }
.finder-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4) var(--s6); margin-bottom: var(--s5); }
.finder-head h2 { margin: 0; }
.finder-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.finder-page .finder-filter { margin-bottom: var(--s5); }
.finder-label { font-weight: 700; margin-right: var(--s2); }
.chip {
  font: 600 1.1rem/1 var(--f-head); padding: .55rem .95rem; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--marine); border: 2px solid var(--line);
}
.chip:hover { border-color: var(--bleu); }
.chip[aria-pressed="true"] { background: var(--marine); border-color: var(--marine); color: #fff; }
.finder-note { margin: var(--s4) 0 0; color: var(--granit); min-height: 1.6em; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: #fff; }
.tile[hidden] { display: none; }
.tile a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.tile-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile-body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5) var(--s5) var(--s5); flex: 1; position: relative; }
.tile-name { font: 800 1.9rem/1 var(--f-head); color: var(--marine); }
.tile-age { font-weight: 700; font-size: .92rem; color: var(--rouge-ink); }
.tile-tag { color: var(--granit); font-size: .98rem; line-height: 1.45; }
.tile a:hover { background: var(--brume); }
.tile a:hover .tile-name { color: var(--bleu-ink); }
.tile[data-cat="solidaire"] .tile-body { border-left: 4px solid var(--rouge); }
.tile[data-cat="sante"] .tile-body { border-left: 4px solid var(--bleu); }

/* ---------- Bandeaux ---------- */
.band { padding: var(--s8) 0; }
.band-agenda { background: var(--marine); color: #e3ebf3; }
.band-agenda h2 { color: #fff; }
.two-col { display: grid; gap: var(--s6); }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 2fr; } }
.col-head p { color: #b9cadb; }

.events { list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid rgba(255,255,255,.15); }
.event:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--rouge-ink); color: #fff; border-radius: var(--radius); padding: .5rem .25rem; align-self: start; }
.event-day { font: 800 2.3rem/1 var(--f-head); }
.event-month { font: 600 1rem/1.1 var(--f-head); }
.event-title { margin: 0 0 .3rem; font-size: 1.55rem; }
.event-title a { color: inherit; text-decoration: none; }
.event-title a:hover { text-decoration: underline; }
.band-agenda .event-title { color: #fff; }
.event-meta { margin: 0; }
.event-section { margin: .2rem 0 0; font-size: .92rem; opacity: .75; }

.agenda { padding-bottom: var(--s8); }
.agenda .event, .section-aside .event { border-color: var(--line); }
.agenda-month { margin-top: var(--s6); font-size: 1.5rem; color: var(--granit); }
.events-compact .event { grid-template-columns: 3.5rem 1fr; gap: var(--s4); padding: var(--s4) 0; }
.events-compact .event-day { font-size: 1.8rem; }
.events-compact .event-title { font-size: 1.25rem; }

.news-band { padding: var(--s8) 0; }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2) var(--s4); margin-bottom: var(--s5); }
.row-head h2 { margin: 0; }
.row-head a { font-weight: 700; }
.cards { display: grid; gap: var(--s6) var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.card-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--brume); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-fallback {
  display: flex; align-items: flex-end; height: 100%; padding: var(--s4) var(--s5);
  font: 800 2.6rem/.95 var(--f-head); color: var(--marine);
  background: linear-gradient(160deg, transparent 55%, rgba(52,115,182,.18) 55%), var(--brume);
}
.card-body { display: flex; flex-direction: column; gap: .35rem; padding-top: var(--s4); }
.card-section { font-weight: 700; font-size: .9rem; color: var(--rouge-ink); }
.card-title { font: 700 1.6rem/1.05 var(--f-head); color: var(--marine); }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; }
.card-excerpt { color: var(--granit); }
.card-date { font-size: .88rem; color: var(--granit); }

.club-band { background: var(--brume); padding: var(--s8) 0; }
.club-grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 860px) { .club-grid { grid-template-columns: 1.2fr 1fr; } }
.club-year { font: 800 clamp(4.5rem, 12vw, 8rem)/.8 var(--f-head); color: var(--bleu); margin: 0 0 var(--s4); opacity: .35; }
.values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.values li { font: 700 1.35rem/1 var(--f-head); padding: .7rem 1rem; background: #fff; color: var(--marine); border-radius: var(--radius); border-left: 4px solid var(--rouge); }
.values-light li { background: var(--brume); font-size: 1.15rem; }

/* ---------- Pages intérieures ---------- */
.page-head { padding: var(--s6) 0 var(--s6); }
.page-head h1 { max-width: 20ch; }

.prose { max-width: 42rem; }
.prose h2 { margin-top: var(--s6); }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: var(--s5) 0; padding: var(--s2) var(--s5); border-left: 4px solid var(--bleu); color: var(--granit); }

.section-hero { background: var(--brume); padding: var(--s6) 0 var(--s7); margin-top: var(--s4); }
.section-hero h1 { margin-bottom: var(--s2); }
.section-age { display: inline-block; font: 700 1.2rem/1 var(--f-head); background: var(--rouge-ink); color: #fff; padding: .45rem .75rem; border-radius: var(--radius); margin-bottom: var(--s4); }
.section-hero-grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .section-hero.has-photo .section-hero-grid { grid-template-columns: 1fr 1fr; } }
.section-cover { margin: 0; border-radius: var(--radius); overflow: hidden; }
.section-cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.section-layout { display: grid; gap: var(--s7); padding: var(--s7) 0; }
@media (min-width: 960px) { .section-layout { grid-template-columns: minmax(0, 1fr) 20rem; } }
.section-main > h2 { margin-top: var(--s7); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.timetable { width: 100%; border-collapse: collapse; font-size: 1rem; }
.timetable th, .timetable td { text-align: left; padding: .75rem .9rem .75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.timetable thead th { font: 700 1.05rem/1 var(--f-head); color: var(--granit); border-bottom: 2px solid var(--marine); }
.timetable tbody th { font-weight: 700; white-space: nowrap; }
.tt-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .timetable thead { display: none; }
  .timetable tr { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .timetable th, .timetable td { border: 0; padding: .1rem 0; }
  .timetable td:nth-child(3), .timetable td:nth-child(4) { grid-column: 1 / -1; }
  .timetable td:nth-child(4) { color: var(--granit); font-size: .95rem; }
}

.section-aside { display: flex; flex-direction: column; gap: var(--s6); }
.contact-box { background: var(--marine); color: #e3ebf3; border-radius: var(--radius); padding: var(--s5); }
.contact-box h2 { color: #fff; font-size: 1.7rem; }
.contact-box a { color: #fff; }
.contact-box .small, .contact-box .small a { color: #b9cadb; }
.contact-box .btn { background: var(--rouge-ink); }
.contacts { list-style: none; padding: 0; margin: 0 0 var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.contacts li { display: flex; flex-direction: column; overflow-wrap: anywhere; }
.contact-name { font-weight: 700; color: #fff; }
.contacts a[href^="tel"] { font: 700 1.45rem/1.2 var(--f-head); text-decoration: none; }
.aside-events h2 { font-size: 1.6rem; }

.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(45%, 12rem), 1fr)); gap: var(--s2); }
.gallery a { display: block; border-radius: 4px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,22,36,.94); display: grid; place-items: center; padding: 3.5rem 1rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 7rem); width: auto; object-fit: contain; }
.lightbox figcaption { color: #dbe5ef; margin-top: var(--s3); text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font: 700 1.1rem/1 var(--f-head); padding: .7rem 1rem; border-radius: var(--radius); cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev { left: .75rem; top: 50%; } .lb-next { right: .75rem; top: 50%; }

/* Article */
.article-head { padding-top: var(--s5); }
.article-head h1 { max-width: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: .3rem var(--s4); color: var(--granit); font-size: .95rem; }
.article-meta a { font-weight: 700; color: var(--rouge-ink); }
.event-facts { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: center; margin: 0 0 var(--s6); padding: var(--s5); background: var(--brume); border-radius: var(--radius); border-left: 4px solid var(--rouge); }
.event-facts dt { font-size: .9rem; color: var(--granit); }
.event-facts dd { margin: 0; font: 700 1.4rem/1.15 var(--f-head); color: var(--marine); }
.event-cta { margin-left: auto; }
.article-cover { margin-top: 0; margin-bottom: var(--s6); }
.article-cover img { width: 100%; max-height: 34rem; object-fit: cover; border-radius: var(--radius); }
.article-cover figcaption { font-size: .9rem; color: var(--granit); margin-top: var(--s2); }
.article-body { font-size: 1.12rem; }
.article-gallery { margin-top: var(--s6); }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); padding: var(--s6) 0 var(--s8); margin-top: var(--s6); border-top: 1px solid var(--line); }
.share { display: flex; gap: var(--s4); color: var(--granit); }

.news-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s5); }
.news-filter label { font-weight: 700; }
.news-list { padding-top: 0; }
.pager { display: flex; gap: var(--s2); margin-top: var(--s7); }
.pager a { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; }
.pager a[aria-current="page"] { background: var(--marine); color: #fff; border-color: var(--marine); }

.club-page { display: grid; gap: var(--s7); padding-bottom: var(--s8); }
@media (min-width: 900px) { .club-page { grid-template-columns: minmax(0, 1fr) 22rem; } }
.club-aside figure { margin: 0 0 var(--s5); border-radius: var(--radius); overflow: hidden; }
.club-aside h2 { font-size: 1.6rem; }
.club-aside .values { margin-bottom: var(--s5); }

.bureau { padding-bottom: var(--s8); }
.members { list-style: none; padding: 0; margin: 0 0 var(--s7); display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.members li { background: #fff; padding: var(--s5); display: flex; flex-direction: column; }
.member-role { font-size: .92rem; color: var(--rouge-ink); font-weight: 700; }
.member-name { font: 700 1.5rem/1.1 var(--f-head); color: var(--marine); }
.organigramme { margin: 0; }
.organigramme figcaption { color: var(--granit); font-size: .9rem; margin-top: var(--s2); }

/* Contact */
.contact-page { display: grid; gap: var(--s7); padding-bottom: var(--s8); }
@media (min-width: 900px) { .contact-page { grid-template-columns: 20rem minmax(0, 1fr); } }
.contact-info h2 { font-size: 1.6rem; margin-top: var(--s5); }
.contact-info h2:first-child { margin-top: 0; }
.contact-info address { font-style: normal; margin-bottom: var(--s4); }
.big-link { font: 700 1.8rem/1.1 var(--f-head); text-decoration: none; }
.contact-form { background: var(--brume); padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: var(--radius); }
.field-row { display: grid; gap: 0 var(--s4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: var(--s4); }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.opt { font-weight: 400; color: var(--granit); }
input, select, textarea {
  font: inherit; width: 100%; padding: .7rem .8rem; border: 2px solid #b8c5d3; border-radius: var(--radius); background: #fff; color: var(--ink);
}
select { width: auto; max-width: 100%; }
.field select { width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--bleu); outline: 3px solid rgba(52,115,182,.25); outline-offset: 0; }
.has-error input, .has-error textarea { border-color: var(--rouge-ink); }
.field-error { color: var(--rouge-ink); font-size: .92rem; margin: .3rem 0 0; font-weight: 700; }
.hp { position: absolute; left: -9999px; }
.notice { padding: var(--s4) var(--s5); border-radius: var(--radius); }
.notice-ok { background: #fff; border-left: 4px solid #2f8a4e; }
.notice-ok h2 { color: #1f6b3a; }
.notice-err { background: #fff; border-left: 4px solid var(--rouge-ink); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--marine); color: #c5d4e3; padding: var(--s7) 0 0; font-size: .98rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); padding-bottom: var(--s6); }
.footer-name { font: 800 1.7rem/1.05 var(--f-head); color: #fff; }
.footer-h { font-size: 1.3rem; color: #fff; margin-bottom: var(--s3); }
.site-footer address { font-style: normal; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--s4); }
.hours { margin: 0; }
.hours div { display: grid; grid-template-columns: 6.5rem 1fr; }
.hours dt { font-weight: 700; color: #fff; }
.hours dd { margin: 0; }
.hours-light dt { color: var(--ink); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); border-top: 1px solid rgba(255,255,255,.15); padding: var(--s4) 0 var(--s5); font-size: .88rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s4); margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .crumbs, .share { display: none; }
}

@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-body { padding: var(--s4); gap: var(--s1); }
  .tile-name { font-size: 1.45rem; }
  .tile-age { font-size: .85rem; }
  .tile-tag { display: none; }
  .finder { padding: var(--s6) 0; }
  .band, .news-band, .club-band { padding: var(--s7) 0; }
}
.legal { padding-bottom: var(--s8); }

/* =====================================================================
   Version 2 : photos, illustrations, animations
   ===================================================================== */
:root { --ease: cubic-bezier(.2,.7,.2,1); --shadow: 0 18px 40px -18px rgba(15,42,71,.45); --radius-lg: 14px; }
body { background: #fff; }

/* En-tête : ombre au défilement */
.site-header { transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px -10px rgba(15,42,71,.35); }

/* Boutons */
.btn { transition: transform .15s var(--ease), background-color .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-light { background: #fff; color: var(--marine); border-color: #fff; }
.btn-light:hover { background: var(--brume); color: var(--marine); border-color: var(--brume); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(120% 90% at 0% 0%, #163a60 0%, var(--marine) 55%); }
.hero-grid { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .hero-grid:has(.hero-mosaic) { grid-template-columns: 1fr 1.05fr; gap: var(--s7); } }
.hero-title { max-width: none; margin-bottom: var(--s5); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:nth-child(3) > span { color: #fff; background: linear-gradient(transparent 72%, var(--rouge) 72%, var(--rouge) 92%, transparent 92%); padding-right: .1em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

.hero-mosaic { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.hero-mosaic .hm { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.hero-mosaic .hm img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic .hm-1 { grid-row: 1 / 3; }
.hero-mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hero-mosaic.n2 .hm-2 { grid-row: 1 / 3; }
.hm-dot { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: var(--rouge); right: -18px; top: -22px; box-shadow: 0 10px 30px rgba(217,52,39,.5); }
@media (max-width: 899px) {
  .hero-mosaic { aspect-ratio: 4 / 3; grid-template-columns: 1.5fr 1fr; }
  .hm-dot { width: 48px; height: 48px; right: -8px; top: -14px; }
}

.hero-facts { list-style: none; margin: 0; padding: var(--s5) 0 var(--s6); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--s4) var(--s5); border-top: 1px solid rgba(255,255,255,.14); position: relative; color: #b9cadb; font-size: .98rem; line-height: 1.35; }
.hero-facts b { display: block; font: 800 2.3rem/1 var(--f-head); color: #fff; margin-bottom: .2rem; }

/* Animation d'arrivée (une seule, au chargement) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { transform: translateY(105%); }
  .js .hero-lead, .js .hero-actions, .js .hero-facts { opacity: 0; transform: translateY(14px); }
  .js .hero-mosaic .hm { opacity: 0; transform: scale(.94) translateY(16px); }
  .js .hm-dot { transform: scale(0); }
  .js.loaded .hero-title .line > span { transform: none; transition: transform .8s var(--ease); }
  .js.loaded .hero-title .line:nth-child(2) > span { transition-delay: .08s; }
  .js.loaded .hero-title .line:nth-child(3) > span { transition-delay: .16s; }
  .js.loaded .hero-lead, .js.loaded .hero-actions, .js.loaded .hero-facts { opacity: 1; transform: none; transition: opacity .7s .35s, transform .7s .35s var(--ease); }
  .js.loaded .hero-mosaic .hm { opacity: 1; transform: none; transition: opacity .8s, transform .9s var(--ease); }
  .js.loaded .hero-mosaic .hm-1 { transition-delay: .15s; }
  .js.loaded .hero-mosaic .hm-2 { transition-delay: .3s; }
  .js.loaded .hero-mosaic .hm-3 { transition-delay: .42s; }
  .js.loaded .hm-dot { transform: scale(1); transition: transform .6s .7s cubic-bezier(.3,1.6,.5,1); }
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Vignettes des sections ---------- */
.finder { background: linear-gradient(#fff, var(--brume) 85%); }
.tiles { background: none; border: 0; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.tile { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 10px 26px -20px rgba(15,42,71,.6); transition: transform .25s var(--ease), box-shadow .25s; }
.tile:hover, .tile:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile a:hover { background: none; }
.tile-visual { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--marine); }
.tile-visual img, .tile-visual .illus { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.tile a:hover .tile-visual img, .tile a:hover .tile-visual .illus { transform: scale(1.06); }
.tile-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,42,71,.55)); pointer-events: none; }
.tile-age { position: absolute; left: var(--s3); bottom: var(--s3); z-index: 1; background: #fff; color: var(--rouge-ink); font: 700 .98rem/1 var(--f-head); padding: .4rem .6rem; border-radius: 999px; }
.tile-body { padding: var(--s4) var(--s5) var(--s5); gap: .35rem; }
.tile-name { font-size: 1.75rem; }
.tile[data-cat] .tile-body { border-left: 0; }
.tile[data-cat="solidaire"] .tile-name { color: var(--rouge-ink); }
.tile.filtered-in { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .tiles { gap: var(--s3); }
  .tile-body { padding: var(--s3); }
  .tile-name { font-size: 1.3rem; }
  .tile-age { font-size: .82rem; left: .5rem; bottom: .5rem; padding: .3rem .5rem; }
}

/* ---------- Agenda ---------- */
.band-agenda { position: relative; overflow: hidden; }
.band-agenda::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 40px solid rgba(52,115,182,.25); left: -260px; bottom: -300px; }
.band-agenda .wrap { position: relative; }
.band-agenda .event { transition: background-color .2s; padding-left: var(--s3); padding-right: var(--s3); border-radius: 8px; }
.band-agenda .event:hover { background: rgba(255,255,255,.06); }

/* ---------- Mosaïque photo ---------- */
.photos-band { padding: var(--s8) 0; background: var(--brume); }
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(120px, 15vw, 210px); grid-auto-flow: dense; }
.mosaic li { overflow: hidden; border-radius: 10px; }
.mosaic a { display: block; height: 100%; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.mosaic a:hover img { transform: scale(1.06); }
.mo-1 { grid-column: span 2; grid-row: span 2; }
.mo-6 { grid-column: span 2; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .mo-1 { grid-column: span 2; grid-row: span 1; }
  .mo-6 { grid-column: span 2; }
}

/* ---------- Cartes d'actualités ---------- */
.card-link { border-radius: var(--radius-lg); }
.card-photo { position: relative; border-radius: var(--radius-lg); box-shadow: 0 14px 30px -22px rgba(15,42,71,.8); }
.card-photo img, .card-photo .illus { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.card-link:hover .card-photo img, .card-link:hover .card-photo .illus { transform: scale(1.05); }
.card-when { position: absolute; top: var(--s3); left: var(--s3); display: flex; flex-direction: column; align-items: center; background: var(--rouge-ink); color: #fff; border-radius: 8px; padding: .35rem .6rem .4rem; font: 600 .9rem/1 var(--f-head); }
.card-when b { font: 800 1.7rem/1 var(--f-head); }

/* ---------- Bloc club ---------- */
.club-band { background: #fff; }
.club-grid { gap: var(--s7); }
@media (min-width: 860px) { .club-grid:has(.club-photo) { grid-template-columns: 1fr 1fr; } }
.club-photo { margin: 0; position: relative; }
.club-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.club-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius-lg); background: var(--bleu); opacity: .18; z-index: -1; }
.club-text .values { margin: var(--s4) 0 var(--s5); }
.club-text .values li { background: var(--brume); font-size: 1.15rem; padding: .55rem .8rem; }
.club-year { margin-bottom: var(--s2); }

/* ---------- Bandeau de contact ---------- */
.cta-band { background: var(--rouge-ink); color: #fff; padding: var(--s7) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 36px solid rgba(255,255,255,.12); }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s5); position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: var(--s2); }
.cta-band p { margin: 0; color: #fde3e0; }
.cta-band a:not(.btn) { color: #fff; font-weight: 700; }

/* ---------- Page section ---------- */
.section-hero { position: relative; padding: 0; margin-top: var(--s4); background: var(--marine); color: #fff; overflow: hidden; min-height: clamp(320px, 46vw, 520px); display: flex; align-items: flex-end; }
.section-hero-media { position: absolute; inset: 0; }
.section-hero-media img, .section-hero-media .illus { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,42,71,.92) 0%, rgba(15,42,71,.65) 45%, rgba(15,42,71,.1) 100%), linear-gradient(0deg, rgba(15,42,71,.7), transparent 50%); }
.section-hero:not(.has-photo) .section-hero-media::after { background: linear-gradient(90deg, rgba(15,42,71,.85) 0%, rgba(15,42,71,.3) 60%, transparent); }
.section-hero-text { position: relative; padding: var(--s7) 0; }
.section-hero h1 { color: #fff; font-size: clamp(3rem, 8vw, 5.5rem); margin-bottom: var(--s3); }
.section-hero .lead { color: #dbe6f1; max-width: 34rem; }
.section-hero .btn { margin-top: var(--s2); }
.crumbs + .section-page .section-hero, .section-page .section-hero { margin-top: var(--s4); }
@media (max-width: 700px) {
  .section-hero-media::after { background: linear-gradient(0deg, rgba(15,42,71,.95) 10%, rgba(15,42,71,.35) 70%, rgba(15,42,71,.2)); }
  .section-hero { min-height: 420px; }
}
.timetable tbody tr { transition: background-color .15s; }
.timetable tbody tr:hover { background: var(--brume); }
.contact-box { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.gallery a { border-radius: 10px; }

/* Article */
.article-cover img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Page head décorée */
.page-head { position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 28px solid var(--brume); z-index: -1; }
.club-aside figure img { border-radius: var(--radius-lg); }

/* Visionneuse : apparition */
.lightbox img { border-radius: 6px; animation: lbin .3s var(--ease); }
@keyframes lbin { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* Retour en haut */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--marine); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .tile:hover, .btn:hover { transform: none; }
}
.club-photo, .page-head { isolation: isolate; }
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: var(--s4); font-size: .9rem; }
  .hero-facts b { font-size: 1.9rem; }
  .hero-swoosh { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}
.section-hero:not(.has-photo) .section-hero-media { left: 42%; }
.section-hero:not(.has-photo) .section-hero-media::after { background: linear-gradient(90deg, var(--marine) 0%, rgba(15,42,71,0) 35%); }
@media (max-width: 700px) {
  .section-hero:not(.has-photo) .section-hero-media { left: 0; bottom: 45%; }
  .section-hero:not(.has-photo) .section-hero-media::after { background: linear-gradient(0deg, var(--marine) 0%, rgba(15,42,71,0) 60%); }
}

/* =====================================================================
   Version 3 : menu déroulant, hero photo plein écran, événements,
   engagements, partenaires, carte, pages institutionnelles
   ===================================================================== */

/* ---------- Navigation avec sous-menu ---------- */
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s1); }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; padding: .5rem .35rem; margin-left: -.4rem; color: var(--marine); cursor: pointer; border-radius: var(--radius); }
.sub-toggle:hover { background: var(--brume); }
.sub-toggle svg { transition: transform .2s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: min(680px, 92vw); background: #fff; border-radius: var(--radius-lg); padding: var(--s4);
  box-shadow: 0 24px 50px -18px rgba(15,42,71,.45), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s; z-index: 60;
}
.sub-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-sub.open .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s, transform .18s var(--ease); }
@media (hover: hover) and (min-width: 861px) {
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s, transform .18s var(--ease); }
}
.sub-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.main-nav .sub-grid a { display: flex; flex-direction: column; gap: 2px; padding: .55rem .7rem; border-radius: 8px; font: 700 1.15rem/1.1 var(--f-head); color: var(--marine); box-shadow: none; }
.main-nav .sub-grid a:hover { background: var(--brume); }
.sub-age { font: 400 .8rem/1.2 var(--f-body); color: var(--granit); }
.main-nav .sub-all { display: block; margin-top: var(--s3); padding: .7rem .8rem; border-top: 1px solid var(--line); font: 700 1rem/1.2 var(--f-body); color: var(--bleu-ink); box-shadow: none; border-radius: 0; }
.nav-cta { margin-left: var(--s2); }
.main-nav .nav-cta a.btn { color: #fff; padding: .6rem 1rem; font-size: 1.1rem; box-shadow: none; border-radius: var(--radius); }
.main-nav .nav-cta a.btn[aria-current="page"] { background: var(--marine); border-color: var(--marine); }

@media (max-width: 860px) {
  .nav-list { flex-direction: column; align-items: stretch; padding: var(--s2) 1.25rem var(--s4); gap: 0; }
  .main-nav ul.nav-list { padding: var(--s2) 1.25rem var(--s4); }
  .has-sub { flex-wrap: wrap; }
  .has-sub > .nav-sub-link { flex: 1; }
  .sub-toggle { padding: .8rem; margin: 0; border-bottom: 1px solid var(--brume); border-radius: 0; }
  .sub-menu { position: static; transform: none; width: 100%; box-shadow: none; padding: 0 0 var(--s3); display: none; opacity: 1; visibility: visible; }
  .has-sub.open .sub-menu { display: block; transform: none; }
  .sub-grid { grid-template-columns: 1fr 1fr; }
  .main-nav .sub-grid a { font-size: 1.1rem; border-bottom: 0; }
  .nav-cta { margin: var(--s4) 0 0; }
  .main-nav .nav-cta a.btn { text-align: center; border-bottom: 0; padding: .9rem; }
  .main-nav { max-height: calc(100vh - 4.25rem); overflow-y: auto; }
}

/* ---------- Hero photo plein écran ---------- */
.hero-immersive { min-height: min(88vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,42,71,.94) 0%, rgba(15,42,71,.78) 38%, rgba(15,42,71,.25) 75%), linear-gradient(0deg, rgba(15,42,71,.95) 0%, rgba(15,42,71,0) 45%); }
.hero-immersive .hero-swoosh { opacity: .7; }
.hero-immersive .hero-grid { position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-immersive .hero-grid { grid-template-columns: 1.4fr .6fr; align-items: end; } }
.hero-logo { margin: 0 0 var(--s5); }
.hero-logo img { width: 170px; background: #fff; padding: .55rem .8rem; border-radius: 10px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.hero-immersive .hero-title { font-size: clamp(2.8rem, 7vw, 5.8rem); max-width: 13ch; margin-bottom: var(--s3); }
.hero-immersive .hero-title .line:nth-child(3) > span { background: none; }
.hero-tagline { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--f-head); color: #fff; margin: 0 0 var(--s4); }
.hero-tagline::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--rouge); margin-right: .4em; vertical-align: .05em; }
.hero-immersive .hero-lead { color: #dbe6f1; }
.hero-stack { position: relative; display: grid; gap: 12px; align-self: end; }
.hero-stack .hs { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -25px rgba(0,0,0,.7); border: 3px solid rgba(255,255,255,.9); }
.hero-stack img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-stack .hs-2 { width: 78%; justify-self: end; }
.hero-stack .hm-dot { top: -26px; right: -14px; }
@media (max-width: 899px) { .hero-stack { display: none; } .hero-immersive { min-height: 640px; } }
.hero-immersive .hero-facts { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-logo, .js .hero-tagline { opacity: 0; transform: translateY(14px); }
  .js.loaded .hero-logo, .js.loaded .hero-tagline { opacity: 1; transform: none; transition: opacity .7s .2s, transform .7s .2s var(--ease); }
  .js .hero-stack .hs { opacity: 0; transform: translateY(24px); }
  .js.loaded .hero-stack .hs { opacity: 1; transform: none; transition: opacity .8s .4s, transform .9s .4s var(--ease); }
  .js.loaded .hero-stack .hs-2 { transition-delay: .55s; }
  .js .hero-bg img { transform: scale(1.06); }
  .js.loaded .hero-bg img { transform: scale(1); transition: transform 2.4s var(--ease); }
}

/* ---------- Présentation ---------- */
.intro-band { padding: var(--s8) 0; }
.intro-grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 860px) { .intro-grid:has(.club-photo) { grid-template-columns: 1fr 1fr; } }
.intro-band .values { margin: var(--s4) 0 var(--s5); }
.intro-band .values li { background: var(--brume); font-size: 1.12rem; padding: .5rem .8rem; }
.finder-sub { margin: .3rem 0 0; color: var(--granit); }

/* ---------- Cartes d'événements ---------- */
.ecards { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.ecard-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 14px 34px -22px rgba(0,0,0,.6); transition: transform .25s var(--ease), box-shadow .25s; }
.ecard-link:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(0,0,0,.6); color: inherit; }
.ecard-photo { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--marine); }
.ecard-photo img, .ecard-photo .illus { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.ecard-link:hover .ecard-photo img, .ecard-link:hover .ecard-photo .illus { transform: scale(1.05); }
.ecard-date { position: absolute; left: var(--s3); top: var(--s3); display: flex; flex-direction: column; align-items: center; background: var(--rouge-ink); color: #fff; border-radius: 10px; padding: .4rem .7rem .5rem; font: 600 .95rem/1 var(--f-head); box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.ecard-date b { font: 800 2rem/1 var(--f-head); }
.ecard-body { display: flex; flex-direction: column; gap: .3rem; padding: var(--s4) var(--s5) var(--s5); }
.ecard-title { font: 700 1.5rem/1.05 var(--f-head); color: var(--marine); }
.ecard-meta { color: var(--granit); font-size: .95rem; }
.ecard-section { font-size: .88rem; font-weight: 700; color: var(--rouge-ink); }
.band-agenda .row-head h2 { color: #fff; }
.row-head-light p { color: #b9cadb; margin: .3rem 0 0; }
.ecards-compact { grid-template-columns: 1fr; gap: var(--s3); }
.ecards-compact .ecard-photo { aspect-ratio: 16 / 7; }
.ecards-compact .ecard-title { font-size: 1.25rem; }
.agenda .ecards { margin-bottom: var(--s5); }
.past-events { margin-top: var(--s7); }
.past-events summary { cursor: pointer; font: 700 1.4rem var(--f-head); color: var(--granit); margin-bottom: var(--s4); }
.ecards-past .ecard-link { filter: grayscale(.6); opacity: .85; }

/* ---------- Cartes d'actualités (méta) ---------- */
.card-meta { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; }
.card-tag { font-size: .82rem; color: var(--granit); background: var(--brume); padding: .1rem .5rem; border-radius: 999px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.cat-nav a { text-decoration: none; padding: .5rem .9rem; border-radius: 999px; border: 2px solid var(--line); font: 600 1.05rem/1 var(--f-head); color: var(--marine); }
.cat-nav a span { color: var(--granit); font-weight: 400; }
.cat-nav a[aria-current="page"] { background: var(--marine); border-color: var(--marine); color: #fff; }
.cat-nav a[aria-current="page"] span { color: #c5d4e3; }
.news-similar { background: var(--brume); }
.pager a[rel] { width: auto; padding: 0 .9rem; }

/* ---------- Engagements et partenaires ---------- */
.engage-band { padding: var(--s8) 0; background: var(--brume); }
.engage-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: start; }
.engage-card { background: #fff; border-radius: var(--radius-lg); padding: var(--s5) var(--s5) var(--s6); box-shadow: 0 14px 30px -24px rgba(15,42,71,.7); }
.engage-card h2 { font-size: 1.1rem; color: var(--rouge-ink); font-family: var(--f-body); margin-bottom: var(--s3); }
.engage-card h3 { font-size: 1.8rem; margin-bottom: var(--s3); }
.engage-card p { color: var(--granit); }
.engage-card a { font-weight: 700; }
.engage-card figure { margin: calc(var(--s5) * -1) calc(var(--s5) * -1) var(--s4); }
.engage-card figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.engage-unicef { border-top: 6px solid #1cabe2; }
.partners-band { padding: var(--s7) 0; }
.partners-title { font-size: 1.6rem; text-align: center; color: var(--granit); }
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s5) var(--s7); align-items: center; }
.partners img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partners a:hover img { filter: none; opacity: 1; }
.partners span { font: 700 1.3rem var(--f-head); color: var(--granit); }
.partners-list { display: block; padding-left: 1.1rem; list-style: disc; }

/* ---------- Pages club, contact ---------- */
.toc { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); }
.toc a { font-weight: 700; }
.club-main > h2 { margin-top: var(--s7); }
.members-compact { margin: var(--s5) 0; }
.member-photo { display: block; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin-bottom: var(--s3); background: var(--brume); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-initials { display: grid; place-items: center; height: 100%; font: 800 2rem var(--f-head); color: var(--bleu); }
.places { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.places li { background: #fff; padding: var(--s3) var(--s4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem var(--s4); }
.place-name { font-weight: 700; }
.place-secs { color: var(--granit); font-size: .95rem; }
.docs { padding-left: 1.2rem; }
.docs span { color: var(--granit); font-size: .9rem; }
.club-aside .engage-card { margin: var(--s5) 0; }
.notice-box { background: var(--brume); border-left: 5px solid var(--bleu); border-radius: var(--radius); padding: var(--s4) var(--s5); margin-bottom: var(--s6); }
.notice-box p { margin-bottom: var(--s3); }
.map-band { padding: 0 0 var(--s8); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: var(--s3); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Pied de page ---------- */
.footer-logo { width: 150px; background: #fff; padding: .4rem .6rem; border-radius: 8px; margin-bottom: var(--s4); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Pages d'erreur ---------- */
.error-page main { padding: var(--s8) 0; }
.error-page img { margin-bottom: var(--s6); }
.debug { white-space: pre-wrap; background: var(--brume); padding: var(--s4); border-radius: var(--radius); font-size: .85rem; }

/* Pas de débordement horizontal */
html, body { overflow-x: clip; }
.main-nav .sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0; flex-direction: initial; }
@media (max-width: 860px) { .main-nav .sub-grid { grid-template-columns: 1fr 1fr; padding: 0; } }
@media (min-width: 701px) and (max-width: 1023px) {
  .section-hero:not(.has-photo) .section-hero-media { left: 58%; }
  .section-hero:not(.has-photo) .section-hero-text > * { max-width: 56%; }
  .section-hero:not(.has-photo) .section-hero-text .hero-actions { max-width: none; }
}
