/* ============================================================
   La Bogue d'Or Randonnée — basé sur la feuille de style du kit.
   Identité : jaune « bogue » + anthracite (couleurs du logo).
   Tout se pilote par les variables ci-dessous.
   ============================================================ */
:root {
  --accent: #e4e02a;          /* jaune du logo */
  --accent-soft: #fbfae0;
  --accent-deep: #5b6112;     /* olive foncé : texte accentué lisible sur fond clair */
  --ink: #23251d;
  --muted: #5f6358;
  --bg: #ffffff;
  --bg-alt: #f6f5ea;
  --border: #e6e4d2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(35, 37, 29, 0.08);
  --shadow-hover: 0 20px 50px rgba(35, 37, 29, 0.16);
  --max: 1160px;
  --font: 'Inter Variable', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Fraunces Variable', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 300; }
.skip:focus { left: 8px; top: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.eyebrow { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; }
.eyebrow--light { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; }
.section-head h2, .split h2 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: .5rem 0 .7rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.center { text-align: center; margin-top: 2rem; }
.stack { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }

/* ── Boutons ── */
.btn { display: inline-block; font-weight: 700; font-size: .95rem; padding: .85rem 1.6rem; border-radius: 99px; cursor: pointer; border: 2px solid transparent; font-family: inherit; line-height: 1.2; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn-sm { padding: .5rem 1.1rem; font-size: .88rem; }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 8px 22px rgba(160, 156, 10, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(160, 156, 10, .4); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-light:hover { background: #fff; color: var(--ink); }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid #ecea9a; padding: .2rem .75rem; border-radius: 99px; margin-bottom: .7rem; }
.chip--dark { background: var(--ink); color: #fff; border-color: var(--ink); margin: 0; white-space: nowrap; }

/* ── Navigation ── */
.nav-wrap { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1.4rem; max-width: var(--max); margin: 0 auto; position: relative; }
.nav-logo { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.nav-logo img { width: 46px; height: 46px; object-fit: contain; }
.nav-links { display: flex; gap: 1.2rem; white-space: nowrap; align-items: center; list-style: none; }
.nav-links a:not(.btn) { font-size: .92rem; font-weight: 500; color: var(--muted); padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: .6rem 1.4rem 1.2rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border: 0; padding-top: .9rem; }
  .nav-links a:not(.btn) { display: block; padding: .8rem 0; font-size: 1rem; border: 0; }
  .nav-links .btn { display: block; text-align: center; }
}

/* ── Hero ── */
.hero { position: relative; color: #fff; min-height: min(78vh, 680px); display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(25, 27, 18, .78) 0%, rgba(25, 27, 18, .45) 60%, rgba(25, 27, 18, .2) 100%), var(--hero) center / cover no-repeat; }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 10vw, 7rem) 1.4rem; width: 100%; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); max-width: 14ch; margin: .8rem 0 1rem; }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 56ch; color: rgba(255, 255, 255, .92); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.page-hero { background: var(--ink); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.4rem, 6vw, 4rem); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: var(--accent); opacity: .12; }
.page-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); margin: .5rem 0 .8rem; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 62ch; font-size: 1.08rem; }
.page-hero .eyebrow { color: var(--accent); }
.back { display: inline-block; color: var(--accent); font-size: .9rem; margin-bottom: 1rem; }
.back:hover { text-decoration: underline; }

/* ── Chiffres ── */
.stats { background: var(--accent); color: var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1.8rem; padding-bottom: 1.8rem; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.stat span { font-size: .9rem; font-weight: 500; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; gap: 1.2rem; } }

/* ── Cartes ── */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-media { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.card-body p { color: var(--muted); font-size: .97rem; flex: 1; }
.card-foot { margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--accent-deep); }
.info { background: var(--bg); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.6rem; }
.info h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.info p { color: var(--muted); }

/* ── Agenda ── */
.agenda { list-style: none; max-width: 860px; margin: 0 auto; display: grid; gap: .9rem; }
.agenda-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 1.2rem; align-items: center; background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.4rem; }
.agenda-date { font-weight: 700; color: var(--accent-deep); font-size: .95rem; text-transform: capitalize; }
.agenda-item h3 { font-size: 1.1rem; }
.agenda-item p { color: var(--muted); font-size: .92rem; }
.agenda-item.is-past { display: none; }
@media (max-width: 640px) { .agenda-item { grid-template-columns: 1fr; gap: .4rem; } }

/* ── Split / feature ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.split-media { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split p { color: var(--muted); margin-bottom: 1rem; }
.price-card { display: flex; gap: 1rem; align-items: center; background: var(--accent-soft); border: 1px solid #ecea9a; border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.4rem 0; }
.price-card strong { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; white-space: nowrap; }
.price-card span { color: var(--ink); font-size: .95rem; }
.price-hero { max-width: 640px; margin: 0 auto; background: #fff; border: 2px solid var(--accent); border-radius: 24px; padding: clamp(1.6rem, 5vw, 2.6rem); text-align: center; box-shadow: var(--shadow); }
.price-hero strong { font-family: var(--font-display); font-size: clamp(3rem, 9vw, 4.6rem); line-height: 1; display: block; }
.price-hero > p { color: var(--muted); margin: .8rem 0 1.2rem; }
.price-hero .small { font-size: .85rem; margin: 1.2rem 0 1.6rem; }
.ticks { list-style: none; text-align: left; display: inline-grid; gap: .5rem; }
.ticks li { padding-left: 1.7rem; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; color: var(--accent-deep); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.feature img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature--rev img { order: 2; }
.feature h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .6rem; }
.feature p { color: var(--muted); margin-bottom: .8rem; }
.feature .meta { color: var(--ink); margin-bottom: 1.2rem; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature--rev img { order: 0; } }

/* ── Bandeau d'appel ── */
.cta-band { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(1.8rem, 5vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: .4rem; }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 52ch; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ── Mosaïque & galerie ── */
.mosaic { display: grid; gap: .8rem; grid-template-columns: repeat(3, 1fr); }
.mosaic img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; transition: transform .3s; }
.mosaic a { display: block; overflow: hidden; border-radius: 12px; }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic--article { margin: 2rem 0; }
@media (max-width: 640px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery figure { break-inside: avoid; margin-bottom: 1rem; }
.gallery-btn { display: block; width: 100%; background: none; border: 0; padding: 0; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.gallery-btn img { width: 100%; height: auto; transition: transform .3s; }
.gallery-btn:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .82rem; color: var(--muted); padding: .4rem .2rem 0; }
.lightbox { border: 0; background: transparent; max-width: 95vw; max-height: 95vh; margin: auto; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); font-size: 1.5rem; cursor: pointer; line-height: 1; }

/* ── Programmes ── */
.subnav-wrap { position: sticky; top: 63px; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.subnav { display: flex; gap: .5rem; overflow-x: auto; padding-top: .7rem; padding-bottom: .7rem; scrollbar-width: thin; }
.subnav a { white-space: nowrap; font-size: .85rem; font-weight: 600; padding: .4rem .95rem; border-radius: 99px; background: var(--bg-alt); border: 1px solid var(--border); }
.subnav a:hover { background: var(--accent); border-color: var(--accent); }
.toolbar { display: flex; justify-content: flex-end; }
.programme h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.programme-meta { color: var(--muted); margin: .3rem 0 1rem; }
.programme-note { font-size: .88rem; color: var(--muted); background: var(--bg-alt); border-left: 4px solid var(--accent); padding: .8rem 1rem; border-radius: 0 10px 10px 0; margin-top: 1rem; }
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { background: var(--ink); color: #fff; text-align: left; padding: .75rem 1rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.table td { padding: .7rem 1rem; border-top: 1px solid var(--border); vertical-align: top; }
.table tbody tr:nth-child(even) { background: #fbfaf2; }
.table td[data-label="Date"] { white-space: nowrap; text-transform: capitalize; }
.table .row-special td { background: var(--accent-soft); font-style: italic; font-weight: 600; text-align: left; }
.table tr.is-next td { background: #fffd9a; }
.table tr.is-past { display: none; }
.show-past .table tr.is-past { display: table-row; opacity: .55; }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: .8rem 1rem; border-top: 1px solid var(--border); }
  .table tbody tr:first-child { border-top: 0; }
  .table td { border: 0; padding: .15rem 0; white-space: normal !important; }
  .table td:empty { display: none; }
  .table td[data-label]::before { content: attr(data-label) " : "; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-deep); }
  .show-past .table tr.is-past { display: block; }
}

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 5vw, 3rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.people { list-style: none; display: grid; gap: .8rem; }
.people li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
.people strong { display: block; font-size: 1.05rem; }
.people span { color: var(--muted); font-size: .88rem; }
.contact-cta { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.2rem); display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.contact-cta h3 { color: var(--accent); font-size: 1.4rem; }
.contact-cta p { color: rgba(255, 255, 255, .85); }
.contact-cta hr { width: 100%; border: 0; border-top: 1px solid rgba(255, 255, 255, .2); margin: .6rem 0; }

/* ── Articles ── */
.article { max-width: 820px; }
.article-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; box-shadow: var(--shadow); }

/* ── Pied de page ── */
.footer { background: var(--ink); color: #fff; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: flex; align-items: center; gap: .8rem; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .6rem; }
.footer-logo img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 12px; padding: 3px; }
.footer-text { color: rgba(255, 255, 255, .7); font-size: .92rem; margin-top: .5rem; }
.footer-text a:hover { color: var(--accent); }
.footer-links { list-style: none; display: grid; gap: .4rem; align-content: start; }
.footer-links a { color: rgba(255, 255, 255, .7); font-size: .92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; padding: 1.8rem 0 .4rem; font-size: .85rem; }
.footer-legal a { color: rgba(255, 255, 255, .6); }
.footer-legal a:hover { color: #fff; }
.footer-copy { text-align: center; color: rgba(255, 255, 255, .4); font-size: .8rem; margin-top: .6rem; }

/* ── Apparition au scroll ── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Pages de contenu (articles, mentions légales, confidentialité) ── */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: .4rem 0 1.4rem; }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.prose p { color: var(--ink); margin-bottom: .9rem; }
.prose a { color: var(--accent-deep); text-decoration: underline; }
.prose .legal-date { color: var(--muted); font-size: .9rem; margin-top: 2rem; }

/* ── Programmes en PDF ── */
.pdf-card { display: inline-flex; align-items: center; gap: 1rem; background: var(--accent); color: var(--ink); border-radius: var(--radius); padding: .9rem 1.4rem; margin: .2rem 0 1rem; box-shadow: 0 8px 22px rgba(160, 156, 10, .3); transition: transform .2s, box-shadow .2s; }
.pdf-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(160, 156, 10, .4); }
.pdf-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--ink); color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: .05em; }
.pdf-card strong { display: block; line-height: 1.2; }
.pdf-card small { color: rgba(35, 37, 29, .75); font-size: .82rem; }

.pdf-preview { display: block; max-width: 520px; margin: 0 0 1.2rem; }
.pdf-preview img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.pdf-preview span { display: inline-block; margin-top: .4rem; font-size: .85rem; font-weight: 600; color: var(--accent-deep); }

/* ── Vie du club, actions, aperçu des cartes ── */
.vie-list { list-style: none; max-width: 860px; margin: 0 auto; display: grid; gap: .9rem; }
.vie-item { display: grid; grid-template-columns: 170px 1fr; gap: 1.2rem; background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.4rem; }
.vie-item h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.vie-item p { color: var(--muted); font-size: .95rem; }
.link { display: inline-block; margin-top: .5rem; font-weight: 600; color: var(--accent-deep); text-decoration: underline; }
@media (max-width: 640px) { .vie-item { grid-template-columns: 1fr; gap: .3rem; } }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.lead { font-size: 1.15rem; color: var(--ink); margin-bottom: 1rem; }
.article .lead + p { color: var(--muted); }
/* Photos de cartes : cadrage haut pour ne pas couper les visages des groupes */
.card-media { aspect-ratio: 16 / 10; height: auto; object-position: center 25%; }
.split-media--portrait { aspect-ratio: 3 / 4; max-height: 560px; width: auto; justify-self: center; }

.btn-group { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.small-note { font-size: .85rem; color: rgba(255, 255, 255, .7); }
