/* Club Cyclo Quévy – site public
   Charte : noir #111111, blanc, rouge club #D71920 ; drapeau belge #000000 / #FDDA24 / #EF3340
   Titres : Barlow Condensed ; texte : Inter (polices auto-hébergées, voir fonts.css) */

:root {
    --black: #111111;
    --ink: #1a1a1a;
    --text: #333333;
    --muted: #5c5c5c;
    --line: #e2e2e2;
    --grey: #f4f4f4;
    --white: #ffffff;
    --red: #d71920;
    --red-dark: #a81118;
    --red-light: #ff5a60;
    --be-black: #000000;
    --be-yellow: #fdda24;
    --be-red: #ef3340;
    --radius: 10px;
    --shadow: 0 1px 0 #e5e5e5, 0 8px 24px rgba(0, 0, 0, .08);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-title: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--be-yellow); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--be-yellow); color: var(--black); padding: 10px 16px; font-weight: 700; border-radius: 0 0 6px 6px; }
.skip-link:focus { top: 0; }

/* Liseré tricolore */
.tricolore { display: flex; height: 5px; }
.tricolore span { flex: 1; }
.tricolore span:nth-child(1) { background: var(--be-black); }
.tricolore span:nth-child(2) { background: var(--be-yellow); }
.tricolore span:nth-child(3) { background: var(--be-red); }

.mini-flag { display: flex; width: 180px; height: 6px; border-radius: 3px; overflow: hidden; }
.mini-flag span { flex: 1; }
.mini-flag span:nth-child(1) { background: var(--be-black); box-shadow: inset 0 0 0 1px #444; }
.mini-flag span:nth-child(2) { background: var(--be-yellow); }
.mini-flag span:nth-child(3) { background: var(--be-red); }

/* Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px;
    border-radius: 6px; border: 1px solid transparent; font: inherit; font-size: .95rem; font-weight: 600;
    text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn--lg { font-size: 1rem; padding: 15px 24px; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: #e8e8e8; color: var(--black); }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: #333; color: var(--white); }
.btn--outline-light { border-color: #5a5a5a; color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

.eyebrow { margin: 0 0 6px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.eyebrow--light { color: var(--red-light); }

/* En-tête */
.site-header { background: var(--black); border-bottom: 1px solid #2a2a2a; position: relative; z-index: 20; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 14px; padding-bottom: 4px; }
.site-logo { flex-shrink: 0; }
.site-logo img { height: 72px; width: auto; }
.site-nav { display: contents; }
.site-nav > nav { order: 3; flex: 1 1 100%; border-top: 1px solid #2a2a2a; padding-top: 6px; }
.site-nav__actions { order: 2; margin-left: auto; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 30px; }
.site-nav__item > a, .subnav > summary { display: block; color: #e6e6e6; text-decoration: none; font-weight: 600; font-size: 1rem; padding: 10px 0; border-bottom: 3px solid transparent; cursor: pointer; }
.site-nav__item > a:hover, .subnav > summary:hover { color: var(--white); }
.site-nav__item.is-active > a, .site-nav__item.is-active .subnav > summary { color: var(--white); border-bottom-color: var(--red); }
.site-nav__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.subnav { position: relative; }
.subnav > summary { list-style: none; }
.subnav > summary::-webkit-details-marker { display: none; }
.subnav > summary::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.subnav ul { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: -16px; top: calc(100% + 8px); min-width: 260px; background: var(--white); border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); border-top: 4px solid var(--red); }
.subnav ul a { display: block; padding: 10px 18px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.subnav ul a:hover, .subnav ul a[aria-current="page"] { background: var(--grey); color: var(--red); }

.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: transparent; color: var(--white); border: 1px solid #5a5a5a; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: ""; }
.menu-toggle__bars::before { position: absolute; top: -6px; }
.menu-toggle__bars::after { position: absolute; top: 6px; }

/* Bandeau d'alerte */
.site-alert { background: var(--be-yellow); color: var(--black); font-weight: 600; padding: 12px 0; }

/* Accueil : bandeau principal */
.hero { background: var(--black); color: var(--white); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-top: 64px; padding-bottom: 96px; }
.hero__brand { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.hero__logo { width: 150px; height: 150px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.hero__name { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hero__title { font-family: var(--font-title); font-weight: 800; font-size: clamp(3.4rem, 8vw, 6rem); line-height: .86; text-transform: uppercase; }
.hero__title span { color: var(--be-red); }
.hero__text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero__tagline { margin: 0; font-family: var(--font-title); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; text-transform: uppercase; color: #e6e6e6; }
.hero__lead { margin: 0; font-size: 1.1rem; color: #d4d4d4; }

/* Accueil : 3 encadrés (ordre du drapeau : noir, jaune, rouge) */
.quick { margin-top: -44px; position: relative; }
.quick__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.quick-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border-top: 6px solid; display: flex; flex-direction: column; gap: 8px; }
.quick-card p { margin: 0; color: var(--text); font-size: .95rem; }
.quick-card .link-arrow { margin-top: auto; padding-top: 6px; font-size: .95rem; }
.quick-card--black { border-top-color: var(--be-black); }
.quick-card--yellow { border-top-color: var(--be-yellow); }
.quick-card--red { border-top-color: var(--be-red); }
.quick-card__label { font-size: .8rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted) !important; }
.quick-card__title { font-family: var(--font-title); font-weight: 700; font-size: 2rem; }

/* Sections */
.section { padding-top: 72px; }
.section:last-child { padding-bottom: 80px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section__title { font-family: var(--font-title); font-weight: 800; font-size: clamp(2.2rem, 4vw, 2.9rem); text-transform: uppercase; }
.section__title--sm { font-size: 2rem; margin-bottom: 12px; }
.section__head .section__title--sm { margin-bottom: 0; }

/* Cartes des randonnées */
.ride-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ride-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; min-height: 200px; background: var(--black); color: var(--white); text-decoration: none; border-radius: var(--radius); border-bottom: 6px solid var(--be-red); transition: transform .15s ease; }
.ride-card--1 { border-bottom-color: var(--be-yellow); }
.ride-card:hover { color: var(--white); transform: translateY(-3px); }
.ride-card__when { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red-light); }
.ride-card__name { font-family: var(--font-title); font-weight: 700; font-size: 1.85rem; line-height: 1.05; }
.ride-card__where { color: #cfcfcf; font-size: .95rem; }
.ride-card__dist { margin-top: auto; font-weight: 600; font-size: .95rem; }

/* Mise en page à deux colonnes */
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split__main { flex: 999 1 560px; min-width: 0; }
.split__side { flex: 1 1 340px; min-width: 0; }
.panel-grey { background: var(--grey); border-radius: var(--radius); padding: 26px; }
.panel-grey p { color: var(--text); }

.empty-state { border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px; color: var(--muted); text-align: center; }
.empty-state--large { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 24px; }
.empty-state--large .lead { color: var(--ink); max-width: 640px; }

/* Affiliations */
.affiliations { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.affiliations__text { flex: 1 1 320px; }
.affiliations__text p { color: var(--text); }
.affiliations__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.affiliations__logos img { width: 96px; height: 96px; }
.affiliations__badge { display: inline-flex; align-items: center; height: 64px; padding: 0 20px; border: 2px solid var(--black); border-radius: 8px; font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; letter-spacing: .05em; }

/* En-tête des pages intérieures */
.page-head { background: var(--black); color: var(--white); padding: 28px 0 44px; }
.page-head__title { font-family: var(--font-title); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.4rem); text-transform: uppercase; line-height: .95; }
.breadcrumb { font-size: .85rem; color: #a8a8a8; margin-bottom: 14px; }
.breadcrumb a { color: #cfcfcf; }

/* Pied de page */
.site-footer { background: var(--black); color: #d4d4d4; margin-top: 80px; font-size: .95rem; }
.site-footer a { color: #e6e6e6; }
.site-footer a:hover { color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding-top: 48px; padding-bottom: 32px; }
.site-footer__club { display: flex; gap: 16px; align-items: flex-start; }
.site-footer__club p { margin: 0; line-height: 1.7; }
.site-footer__club img { width: 88px; height: 88px; flex-shrink: 0; }
.site-footer__name, .site-footer__title { color: var(--white); font-weight: 700; margin: 0 0 6px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid #2a2a2a; font-size: .85rem; color: #9a9a9a; }
.site-footer__bottom a { color: #9a9a9a; }
main > .section:last-child { padding-bottom: 0; }

/* Mobile */
@media (max-width: 960px) {
    .js .menu-toggle { display: inline-flex; }
    .site-header__inner { padding-bottom: 12px; }
    .site-nav > nav { order: 0; flex: none; border-top: 0; padding-top: 0; }
    .site-nav__actions { order: 0; margin-left: 0; }
    .js .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 12px; }
    .js .site-nav.is-open { display: flex; }
    .site-nav__list { flex-direction: column; gap: 0; }
    .site-nav__item > a, .subnav > summary { padding: 12px 4px; border-bottom: 1px solid #2a2a2a; font-size: 1.05rem; }
    .site-nav__item.is-active > a, .site-nav__item.is-active .subnav > summary { border-bottom-color: #2a2a2a; color: var(--red-light); }
    .subnav ul { position: static; box-shadow: none; border-top: 0; background: #1c1c1c; border-radius: 0; min-width: 0; }
    .subnav ul a { color: #e6e6e6; padding-left: 20px; }
    .subnav ul a:hover, .subnav ul a[aria-current="page"] { background: #262626; color: var(--white); }
    .site-nav__actions { padding-top: 12px; }
    .site-nav__actions .btn { flex: 1 1 0; }
    .site-logo img { height: 56px; }
    .site-footer__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .hero__inner { padding-top: 40px; padding-bottom: 80px; }
    .hero__logo { width: 120px; height: 120px; }
    .section { padding-top: 56px; }
    .site-logo img { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ride-card { transition: none; }
}

/* Étape 3 : photo d'accueil */
.hero__main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero__main .hero__brand { flex: none; }
.hero__photo { flex: 1 1 380px; min-width: 0; margin: 0; }
.hero__photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.hero__tagline { margin-top: 6px; }

/* Pages de contenu */
.page-head__intro { margin: 14px 0 0; max-width: 760px; color: #d4d4d4; font-size: 1.1rem; }
.page-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.page-layout .prose { flex: 999 1 560px; min-width: 0; }
.page-aside { flex: 1 1 260px; min-width: 0; }
.side-nav { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-nav__title { margin: 0; padding: 14px 18px; background: var(--black); color: var(--white); font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; }
.side-nav a { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; border-left: 4px solid transparent; }
.side-nav a:hover { background: var(--grey); color: var(--red); }
.side-nav a[aria-current="page"] { border-left-color: var(--red); font-weight: 600; background: var(--grey); }

.prose { max-width: 760px; color: var(--text); }
.prose h2 { font-family: var(--font-title); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; color: var(--ink); margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; color: var(--ink); margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--red); }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--be-yellow); background: var(--grey); }
.prose strong { color: var(--ink); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .updated { margin-top: 2em; font-size: .85rem; color: var(--muted); }

/* Tableau des tarifs */
.table-scroll { overflow-x: auto; margin: 0 0 1.5em; }
.fees { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 520px; }
.fees th, .fees td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fees thead th { background: var(--black); color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.fees thead th:first-child { border-radius: 8px 0 0 0; }
.fees thead th:last-child { border-radius: 0 8px 0 0; }
.fees .num { text-align: right; white-space: nowrap; }
.fees tbody th { font-weight: 400; }
.fees__label { display: block; font-weight: 700; color: var(--ink); }
.fees__audience, .fees__note { display: block; font-size: .88rem; color: var(--muted); }
.fees__total { font-weight: 800; color: var(--ink); }

/* Comité */
.group-title { font-family: var(--font-title); font-weight: 800; font-size: 2rem; text-transform: uppercase; margin: 48px 0 18px; display: flex; align-items: center; gap: 14px; }
.group-title:first-child { margin-top: 0; }
.group-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.people--membre { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.person { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.people--bureau .person { border-top: 5px solid var(--red); }
.person__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.people--membre .person__photo { width: 56px; height: 56px; }
.person__photo--initials { display: inline-flex; align-items: center; justify-content: center; background: var(--black); color: var(--white); font-family: var(--font-title); font-weight: 800; font-size: 2rem; }
.people--membre .person__photo--initials { font-size: 1.3rem; }
.person__body { min-width: 0; }
.person__name { font-family: var(--font-title); font-weight: 700; font-size: 1.55rem; line-height: 1.1; }
.people--membre .person__name { font-size: 1.3rem; }
.person__function { margin: 4px 0 0; font-weight: 700; color: var(--red); font-size: .95rem; }
.person__resp { margin: 6px 0 0; color: var(--text); font-size: .95rem; }
.person__contact { list-style: none; margin: 10px 0 0; padding: 0; font-size: .92rem; }
.person__contact a { overflow-wrap: anywhere; }
.asbl { margin-top: 56px; background: var(--grey); border-radius: var(--radius); padding: 28px; }
.asbl__list { margin: 0; display: grid; gap: 12px; }
.asbl__list div { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 12px; }
.asbl__list dt { font-weight: 700; }
.asbl__list dd { margin: 0; color: var(--text); }
@media (max-width: 600px) { .asbl__list div { grid-template-columns: 1fr; gap: 0; } }

/* Liens */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.link-card { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; background: var(--white); }
.link-card--link:hover { border-color: var(--black); color: var(--ink); box-shadow: var(--shadow); }
.link-card__logo { width: 96px; height: 72px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--grey); border-radius: 8px; overflow: hidden; }
.link-card__logo img { max-width: 88px; max-height: 64px; object-fit: contain; }
.link-card__initials { font-family: var(--font-title); font-weight: 800; font-size: 1.7rem; color: var(--muted); }
.link-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-card__name { font-weight: 700; }
.link-card__meta, .link-card__desc { font-size: .9rem; color: var(--muted); }
.link-card__url { font-size: .85rem; color: var(--red); overflow-wrap: anywhere; }

/* Partenaires (accueil) */
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.partners a, .partners li > span, .partners li > img { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.partners a:hover { border-color: var(--black); color: var(--red); }
.partners img { max-height: 48px; width: auto; }
.partners a > span { padding: 0; border: 0; min-height: 0; }

/* Étape 4 : nouvelles */
.container--narrow { max-width: 880px; }
.filters { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; }
.chips a:hover { border-color: var(--black); }
.chips a[aria-current="page"] { background: var(--black); border-color: var(--black); color: var(--white); }
.search { display: flex; flex-wrap: wrap; gap: 8px; }
.search input, .search select { font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid #c9c9c9; border-radius: 6px; min-height: 44px; }
.search input { width: 220px; max-width: 100%; }
.results-info { color: var(--muted); margin-bottom: 20px; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; }
.news-card { display: flex; flex-direction: column; gap: 14px; }
.news-card--large { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.news-card__media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--black); aspect-ratio: 16 / 10; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.news-card:hover .news-card__media img { transform: scale(1.03); }
.news-card__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: var(--black); }
.news-card__placeholder img { width: 72px; height: 72px; opacity: .9; }
.news-card__meta { margin: 0 0 6px; font-size: .85rem; color: var(--muted); }
.news-card__meta a { color: var(--red); font-weight: 600; text-decoration: none; }
.pin { color: var(--black); font-weight: 700; background: var(--be-yellow); padding: 1px 6px; border-radius: 4px; }
.news-card__title { font-family: var(--font-title); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.news-card--large .news-card__title { font-size: clamp(2rem, 3.5vw, 2.6rem); }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a:hover { color: var(--red); }
.news-card__excerpt { margin: 8px 0 0; color: var(--text); font-size: .97rem; }
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-list .news-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; }
.news-list .news-card__title { font-size: 1.45rem; }
@media (max-width: 760px) {
    .news-card--large, .news-list .news-card { grid-template-columns: minmax(0, 1fr); }
    .news-list .news-card { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; }
    .news-list .news-card__excerpt { display: none; }
    .news-list .news-card__title { font-size: 1.2rem; }
}

.pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 40px; font-weight: 600; }
.pagination a { text-decoration: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; }
.pagination a:hover { border-color: var(--black); }

/* Article */
.page-head--article { padding-bottom: 36px; }
.article__meta { margin: 0 0 10px; color: #cfcfcf; font-size: .95rem; }
.article__meta a { color: var(--be-yellow); text-decoration: none; font-weight: 600; }
.article__title { font-family: var(--font-title); font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1; }
.article__content { padding-top: 40px; }
.article__cover { margin: 0 0 32px; }
.article__cover img { width: 100%; border-radius: var(--radius); }
.prose--article { max-width: none; font-size: 1.05rem; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; margin: 1em 0; }
.article__gallery, .article__files { margin-top: 48px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--grey); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery a:hover img { transform: scale(1.04); }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.files a { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.files a:hover { border-color: var(--black); }
.files small { color: var(--muted); font-weight: 400; }
.files__icon { background: var(--red); color: var(--white); font-size: .75rem; font-weight: 800; padding: 6px 8px; border-radius: 4px; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.share span { font-weight: 600; }
.share a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; }
.share a:hover { border-color: var(--black); }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0 24px; }
.article__nav a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.article__nav a:hover { border-color: var(--black); }
.article__nav small { color: var(--muted); font-weight: 400; }
.article__nav-prev { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .article__nav { grid-template-columns: 1fr; } .article__nav-prev { grid-column: auto; text-align: left; } }

/* Visionneuse */
.no-scroll { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 10, 10, .97); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox__figure img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lightbox__figure figcaption { color: #e6e6e6; text-align: center; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: var(--white); border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #bdbdbd; font-size: .9rem; margin: 0; }
@media (prefers-reduced-motion: reduce) { .news-card__media img, .gallery img { transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Étape 5 : calendrier */
.page-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.year-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.year-nav a { color: #cfcfcf; text-decoration: none; font-weight: 700; padding: 6px 12px; border: 1px solid #444; border-radius: 6px; }
.year-nav a:hover { color: var(--white); border-color: var(--white); }
.year-nav a[aria-current="page"] { background: var(--white); color: var(--black); border-color: var(--white); }
.cal-tools { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; margin-bottom: 24px; font-size: .95rem; }
.cal-actions a, .link-btn { font-weight: 600; }
.cal-actions__right { display: flex; gap: 18px; margin-left: auto; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--red-dark); }

.cal-month { margin-bottom: 36px; }
.cal-month__title { font-family: var(--font-title); font-weight: 800; font-size: 2rem; text-transform: uppercase; display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cal-month__title::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.cal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cal-event { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cal-event--organisation { border-left-color: var(--be-red); background: #fff7f7; }
.cal-event--sortie { border-left-color: var(--be-black); }
.cal-event--vie_club { border-left-color: var(--be-yellow); }
.cal-event.is-past { opacity: .6; }
.cal-event.is-cancelled .cal-event__title { text-decoration: line-through; }
.cal-event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--black); color: var(--white); border-radius: 8px; padding: 8px 4px; line-height: 1; }
.cal-event--organisation .cal-event__date { background: var(--red); }
.cal-event__wd { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #d4d4d4; }
.cal-event--organisation .cal-event__wd { color: #ffe0e0; }
.cal-event__day { font-family: var(--font-title); font-weight: 800; font-size: 2.1rem; margin: 2px 0; }
.cal-event__mo { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.cal-event__body { min-width: 0; }
.cal-event__tags { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 4px; background: var(--grey); color: var(--muted); }
.tag--organisation { background: var(--red); color: var(--white); }
.tag--sortie { background: var(--black); color: var(--white); }
.tag--vie_club { background: var(--be-yellow); color: var(--black); }
.tag--source { background: transparent; border: 1px solid var(--line); }
.tag--cancelled { background: #3a3a3a; color: var(--white); }
.tag--modified { background: #fff4bf; color: #5c4a00; }
.cal-event__title { font-family: var(--font-title); font-weight: 700; font-size: 1.55rem; line-height: 1.1; }
.cal-event__meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .93rem; color: var(--text); }
.cal-event__meta span + span::before { content: none; }
.cal-event__meta a { color: var(--text); }
.cal-event__dist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cal-event__dist li { font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--grey); }
.cal-event__note { margin: 8px 0 0; font-size: .9rem; font-weight: 600; color: var(--red-dark); }
.cal-event__links { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.cal-event__links a { text-decoration: none; }
@media (max-width: 640px) {
    .cal-event { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .cal-event__day { font-size: 1.7rem; }
    .cal-event__links { grid-column: 2; flex-direction: row; align-items: center; }
    .cal-event__title { font-size: 1.3rem; }
    .cal-actions__right { margin-left: 0; }
}

/* Accueil : agenda */
.agenda { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.agenda li { display: flex; gap: 14px; background: var(--white); border-radius: 8px; padding: 12px 14px; }
.agenda__date { width: 52px; flex-shrink: 0; text-align: center; border-right: 1px solid var(--line); padding-right: 12px; line-height: 1; }
.agenda__day { display: block; font-family: var(--font-title); font-weight: 800; font-size: 1.75rem; }
.agenda li.is-org .agenda__day { color: var(--red); }
.agenda__mo { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.agenda__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.agenda__title { font-weight: 700; line-height: 1.25; }
.agenda__meta { font-size: .85rem; color: var(--muted); }

/* Impression du calendrier */
@media print {
    .site-header, .site-footer, .tricolore, .skip-link, .no-print, .site-alert { display: none !important; }
    body { font-size: 11pt; color: #000; }
    .page-head { background: none; color: #000; padding: 0 0 8pt; }
    .page-head__title { font-size: 22pt; }
    .breadcrumb, .page-head__intro, .year-nav { display: none; }
    .section { padding-top: 0; }
    .cal-month { break-inside: avoid-page; margin-bottom: 12pt; }
    .cal-month__title { font-size: 15pt; margin-bottom: 4pt; }
    .cal-event { break-inside: avoid; grid-template-columns: 52pt 1fr; padding: 4pt 6pt; gap: 8pt; border-radius: 0; box-shadow: none; opacity: 1 !important; }
    .cal-event__date { background: none !important; color: #000; border: 1px solid #000; }
    .cal-event__wd, .cal-event__mo { color: #000 !important; }
    .cal-event__day { font-size: 16pt; }
    .cal-event__title { font-size: 12pt; }
    .tag { border: 1px solid #000; background: none !important; color: #000 !important; }
    .cal-event__dist li { background: none; border: 1px solid #999; }
    .cal-event__meta a { text-decoration: none; }
}

/* Étape 6 : randonnées */
.ride-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.ride-tile { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--black); color: var(--white); text-decoration: none; border-bottom: 6px solid var(--be-red); transition: transform .15s ease; }
.ride-tile--1 { border-bottom-color: var(--be-yellow); }
.ride-tile:hover { color: var(--white); transform: translateY(-3px); }
.ride-tile__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #1e1e1e; overflow: hidden; }
.ride-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.ride-tile__media .ride-tile__logo { width: 96px; height: 96px; object-fit: contain; opacity: .9; }
.ride-tile__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.ride-tile__when { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red-light); }
.ride-tile__name { font-family: var(--font-title); font-weight: 800; font-size: 2.1rem; line-height: 1; text-transform: uppercase; }
.ride-tile__tag { color: #cfcfcf; font-size: .95rem; }
.ride-tile__next { margin-top: 8px; font-size: .92rem; color: #e6e6e6; }

.ride-hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.ride-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.ride-hero--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 17, 17, .92) 0%, rgba(17, 17, 17, .55) 60%, rgba(17, 17, 17, .3) 100%); }
.ride-hero__inner { position: relative; z-index: 1; padding-top: 28px; padding-bottom: 64px; }
.ride-hero__row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.ride-hero__text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ride-hero__badge { align-self: flex-start; background: var(--red); color: var(--white); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 4px; }
.ride-hero__title { font-family: var(--font-title); font-weight: 800; font-size: clamp(3rem, 7vw, 5.4rem); line-height: .9; text-transform: uppercase; }
.ride-hero__sub { margin: 0; font-weight: 600; color: var(--be-yellow); }
.ride-hero__tag { margin: 0; font-size: 1.15rem; color: #e0e0e0; max-width: 640px; }
.ride-hero__card { flex: 0 1 320px; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 22px; border-top: 6px solid var(--red); display: flex; flex-direction: column; gap: 8px; }
.ride-hero__card.is-cancelled { border-top-color: #3a3a3a; }
.ride-hero__card-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ride-hero__card-date { font-family: var(--font-title); font-weight: 800; font-size: 2rem; line-height: 1.05; }
.ride-hero__card.is-cancelled .ride-hero__card-date { text-decoration: line-through; }
.ride-hero__card-info { font-weight: 600; color: var(--red-dark); }

.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.keyfacts > div { padding: 20px 24px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); font-size: .95rem; color: var(--text); }
.keyfacts > div:last-child { border-right: 0; }
.keyfacts__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.keyfacts strong { font-size: 1.05rem; color: var(--ink); }
.keyfacts__note { font-size: .85rem; color: var(--muted); }

.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.aside-box--dark { background: var(--black); color: #e6e6e6; border-color: var(--black); }
.aside-box--dark a { color: var(--white); }
.aside-box__title { font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; margin-bottom: 10px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }

.routes-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 20px; }
.routes-layout--nomap { grid-template-columns: minmax(0, 1fr); }
.route-map { height: 560px; border-radius: var(--radius); border: 1px solid var(--line); background: #e9ece6; position: sticky; top: 16px; z-index: 0; }
.route-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.route-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--white); }
.route-card:hover { border-color: var(--black); }
.route-card__head { display: flex; align-items: center; gap: 14px; }
.route-card__swatch { width: 6px; align-self: stretch; border-radius: 3px; background: var(--red); flex-shrink: 0; }
.route-card__swatch--1 { background: #111111; }
.route-card__swatch--2 { background: #1b6fd1; }
.route-card__swatch--3 { background: #e08a00; }
.route-card__swatch--4 { background: #2a8a3e; }
.route-card__swatch--5 { background: #7b3fb5; }
.route-card__km { font-family: var(--font-title); font-weight: 800; font-size: 2.3rem; line-height: 1; min-width: 92px; }
.route-card__km small { font-size: 1.1rem; }
.route-card__meta { flex: 1; display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); }
.route-card__meta strong { color: var(--ink); font-size: .98rem; }
.route-card__links { display: flex; gap: 6px; }
.btn-mini { font-size: .8rem; font-weight: 700; color: var(--ink); border: 1px solid var(--ink); border-radius: 6px; padding: 8px 10px; text-decoration: none; }
.btn-mini:hover { background: var(--ink); color: var(--white); }
.route-card__desc { margin: 8px 0 0; font-size: .9rem; color: var(--text); }
.route-card__profile { margin-top: 10px; }
.profile { width: 100%; height: auto; display: block; }
.profile__area { fill: rgba(215, 25, 32, .12); }
.profile__line { fill: none; stroke: var(--red); stroke-width: 2; }
.profile__axis { font-size: 11px; fill: #6b6b6b; font-family: var(--font); }
@media (max-width: 900px) {
    .routes-layout { grid-template-columns: minmax(0, 1fr); }
    .route-map { height: 380px; position: static; }
}

.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.bars li { display: grid; grid-template-columns: 52px 1fr 56px; gap: 10px; align-items: center; }
.bars__year { font-weight: 700; }
.bars__track { background: var(--grey); border-radius: 4px; height: 22px; overflow: hidden; }
.bars__bar { display: block; height: 100%; background: var(--red); border-radius: 4px; }
.bars__bar--0 { width: 2%; } .bars__bar--1 { width: 10%; } .bars__bar--2 { width: 20%; } .bars__bar--3 { width: 30%; }
.bars__bar--4 { width: 40%; } .bars__bar--5 { width: 50%; } .bars__bar--6 { width: 60%; } .bars__bar--7 { width: 70%; }
.bars__bar--8 { width: 80%; } .bars__bar--9 { width: 90%; } .bars__bar--10 { width: 100%; }
.bars__value { font-weight: 700; text-align: right; }
.edition-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.edition-links a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; text-decoration: none; color: var(--ink); }
.edition-links a[aria-current="page"] { background: var(--black); color: var(--white); border-color: var(--black); }
@media print { .route-map { display: none; } }

/* --- Galerie (étape 7) --- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.album-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-bottom: 5px solid var(--black); transition: transform .15s ease; }
.album-grid > .album-card:nth-child(3n+2) { border-bottom-color: var(--be-yellow); }
.album-grid > .album-card:nth-child(3n) { border-bottom-color: var(--be-red); }
.album-card:hover { transform: translateY(-3px); color: var(--ink); }
.album-card__media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--black); }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; }
.album-card__media .album-card__logo { width: 80px; height: 80px; object-fit: contain; opacity: .9; }
.album-card__badge { position: absolute; top: 10px; left: 10px; background: var(--black); color: var(--white); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 4px; }
.album-card__badge--draft { left: auto; right: 10px; background: var(--be-yellow); color: var(--black); }
.album-card__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.album-card__date { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.album-card__title { font-family: var(--font-title); font-weight: 700; font-size: 1.55rem; line-height: 1.1; }
.album-card__count { color: var(--muted); font-size: .92rem; }
.album-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; color: #d4d4d4; font-weight: 600; }
.album-meta__badge { background: var(--be-yellow); color: var(--black); padding: 1px 10px; border-radius: 4px; }
.album-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.album-links a { color: var(--white); border: 1px solid #5a5a5a; border-radius: 999px; padding: 6px 14px; font-size: .92rem; font-weight: 600; text-decoration: none; }
.album-links a:hover { border-color: var(--white); }
.gallery--album { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pagination span[aria-current] { padding: 10px 16px; border-radius: 6px; background: var(--black); color: var(--white); }
.pagination:has(span[aria-current]) { gap: 8px; flex-wrap: wrap; }
.fb-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; background: var(--grey); border-radius: var(--radius); border-left: 6px solid var(--red); }
.fb-band p { margin: 0; }
.ride-albums { margin-top: 16px; }
@media (max-width: 600px) { .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .album-card__title { font-size: 1.25rem; } .gallery--album { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } .gallery--album a { border-radius: 3px; } }
.album-grid--home { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 600px) { .album-grid--home { grid-template-columns: 1fr; } }
