/* ============================================================
   RANDONNEURS BONDEVILLAIS — Notre-Dame-de-Bondeville (randonnée pédestre)
   Personnalise tout via les variables ci-dessous (--accent…)
   ============================================================ */
:root {
  --accent: #0b4a9e;        /* vert forêt */
  --accent-soft: #e8f0fb;
  --accent-deep: #08336f;
  --sun: #f2c14e;           /* jaune balisage */
  --sun-deep: #8a5a00;
  --sun-soft: #fdf3d8;
  --ink: #171a21;
  --muted: #575b66;
  --bg: #ffffff;
  --bg-alt: #f7f6f2;
  --border: #e4e2dc;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(23, 30, 55, 0.08);
  --shadow-hover: 0 20px 50px rgba(23, 30, 55, 0.16);
  --max: 1120px;
  --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; }
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; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 2px;
}
.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
.icon { flex: none; vertical-align: -0.2em; }
.muted { color: var(--muted); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }
.container--narrow { max-width: 780px; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0.5rem 0 0.7rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.center-cta { text-align: center; margin-top: 2rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 99px; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s; border: none;
  font-family: inherit; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(11, 74, 158, 0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11, 74, 158, 0.42); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost--light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost--light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 8px 24px rgba(242, 182, 50, 0.35); }
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(242, 182, 50, 0.5); }
.lien { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Bandeau d'annonce (modifiable dans l'admin) ── */
.bandeau { background: var(--accent-deep); color: #fff; font-size: .88rem; }
.bandeau-inner {
  max-width: var(--max); margin: 0 auto; padding: .55rem 1.4rem;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .3rem .7rem; text-align: center;
}
.bandeau .icon { color: var(--sun); }
.bandeau-lien { display: inline-flex; align-items: center; gap: .3rem; color: var(--sun); font-weight: 700; }
.bandeau-lien:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.4rem; max-width: var(--max); margin: 0 auto;
}
.nav-wrap { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.nav-logo-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.nav-links a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); display: block; }
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 0.6rem 1.4rem 1.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; padding-top: 1rem; }
  .nav-links li:last-child .btn-primary { display: flex; justify-content: center; width: 100%; }
}

/* ── Hero ── */
.hero {
  position: relative; text-align: center;
  padding: clamp(4rem, 12vw, 8rem) 1.4rem clamp(3.5rem, 9vw, 6rem);
  background: radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent),
              linear-gradient(180deg, #fff, var(--bg-alt));
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); max-width: 18ch; margin: 0.8rem auto 1rem; }
.hero p { font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--muted); max-width: 56ch; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ── Hero avec photo ── */
.hero--photo {
  background:
    linear-gradient(180deg, rgba(10, 18, 36, 0.72), rgba(10, 18, 36, 0.5)),
    var(--hero-img) center / cover no-repeat;
  color: #fff;
}
.hero--photo .eyebrow { color: var(--sun); }
.hero--photo h1 { color: #fff; }
.hero--photo p { color: rgba(255, 255, 255, 0.9); }

/* ── Hero de pages intérieures ── */
.page-hero {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6rem) 1.4rem;
  background:
    linear-gradient(180deg, rgba(10, 18, 36, 0.78), rgba(10, 18, 36, 0.58)),
    var(--hero-img) center / cover no-repeat;
  color: #fff;
}
.page-hero .eyebrow { color: var(--sun); }
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin: 0.7rem auto 0.9rem; max-width: 22ch; }
.page-hero p { color: rgba(255, 255, 255, 0.9); max-width: 62ch; margin: 0 auto; font-size: clamp(1rem, 2.2vw, 1.15rem); }

/* ── Cards grid ── */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-body p { color: var(--muted); font-size: 0.97rem; }
.icon-bubble {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem;
}
.icon-bubble--sun { background: var(--sun); color: var(--ink); }

/* ── About (split) ── */
.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 { aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-soft), #fff); box-shadow: var(--shadow); background-size: cover; background-position: center; }
.split-media--img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.split h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.split p { color: var(--muted); margin-bottom: 1rem; }

/* ── News ── */
.tag { display: inline-block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 0.2rem 0.7rem; border-radius: 99px; margin-bottom: 0.6rem; }
.news-card { display: block; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; border-top: 4px solid var(--sun); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-card-body { padding: 1.4rem; }
.news-card-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.news-card-body time { font-size: 0.82rem; color: var(--muted); }
.news-excerpt { color: var(--muted); font-size: .95rem; margin: .3rem 0 .8rem; }
.actu { padding: 2.2rem 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.actu:first-child { padding-top: 0; }
.actu:last-child { border-bottom: none; }
.actu h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-bottom: .3rem; }
.actu time { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.actu-body p { margin-bottom: .9rem; }
.actu-body a { color: var(--accent); text-decoration: underline; }

/* ── Galerie ── */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--accent-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem 0.8rem;
  background: linear-gradient(0deg, rgba(10,18,36,0.85), transparent);
  color: #fff; font-size: 0.88rem;
}

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3rem); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1rem; margin: 1rem 0 0.2rem; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: var(--muted); }
.contact-form { display: grid; gap: 0.8rem; align-content: start; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 0.85rem 1rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg); color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-form .btn { justify-content: center; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); scroll-margin-top: 90px; }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ── Bande d'appel à l'action ── */
.section--cta { background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 56ch; }
.cta-note { margin-top: .6rem; font-size: .9rem; color: var(--sun) !important; font-weight: 600; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ── Footer ── */
.footer { background: var(--ink); color: #fff; padding: 2.5rem 0 1.5rem; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.3rem; }
.footer-logo-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.footer-tag { color: rgba(255,255,255,.55); font-size: .9rem; margin-top: .3rem; }
.footer-contact { color: rgba(255,255,255,.6); font-size: .88rem; margin-top: .8rem; }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-links { display: flex; gap: 1.4rem; list-style: none; flex-wrap: wrap; align-content: flex-start; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-credits { max-width: 860px; margin: .6rem auto 0; padding: 0 1.4rem; text-align: center; color: rgba(255,255,255,.4); font-size: .74rem; line-height: 1.5; }
.footer-copy { text-align: center; color: rgba(255,255,255,0.4); font-size: 0.8rem; margin-top: 1rem; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 0.9rem; }
.social-icon { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.social-icon:hover { color: #fff; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center;
  padding: 1.2rem 0 .4rem; font-size: .85rem;
}
.footer-legal a { color: rgba(255,255,255,.6); }
.footer-legal a:hover { color: #fff; }

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

/* ── Pages de contenu (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); text-decoration: underline; }
.prose .legal-date { color: var(--muted); font-size: .9rem; margin-top: 2rem; }

/* ============================================================
   PROGRAMME DES RANDONNÉES
   ============================================================ */

/* Pastille de date (calculée toute seule depuis la date saisie dans l'admin) */
.date-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; padding: .45rem .5rem .5rem; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-deep); line-height: 1;
  text-transform: uppercase; text-align: center;
}
.date-badge .dow { font-size: .62rem; letter-spacing: .12em; font-weight: 700; color: var(--accent); }
.date-badge .dnum { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin: .18rem 0 .12rem; }
.date-badge .mon { font-size: .62rem; letter-spacing: .1em; font-weight: 600; color: var(--muted); }

/* Niveaux / étiquettes */
.niveau {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .18rem .6rem; border-radius: 99px; background: var(--bg-alt); color: var(--muted);
}
.niveau--facile { background: #dff1e5; color: #1b6a39; }
.niveau--moyen { background: #fdeccb; color: #85560a; }
.niveau--difficile { background: #fbdcd8; color: #a1291c; }
.niveau--evenement { background: var(--sun); color: var(--ink); }
.niveau--avenir { background: #e8ebe9; color: #4a5750; }
.chip { display: inline-block; font-weight: 700; padding: .2rem .7rem; border: 1px solid var(--border); border-radius: 99px; background: #fff; white-space: nowrap; }
.sortie-alerte { display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem; padding: .2rem .65rem; border-radius: 8px; background: #fbdcd8; color: #8f2317; font-weight: 700; font-size: .85rem; }

/* Départ + consignes */
.depart-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.6rem; align-items: stretch; }
@media (max-width: 860px) { .depart-grid { grid-template-columns: 1fr; } }
.depart-card { background: linear-gradient(145deg, var(--accent-deep), var(--accent)); color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; }
.depart-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--sun); }
.depart-lieu { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 600; line-height: 1.1; margin: .4rem 0 .5rem; }
.depart-detail { color: rgba(255,255,255,.88); }
.depart-lien { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; font-weight: 700; color: var(--sun); }
.depart-lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.consignes { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 2rem; box-shadow: var(--shadow); }
.consignes h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.consignes ul { list-style: none; display: grid; gap: .7rem; }
.consigne { display: flex; gap: .8rem; align-items: flex-start; font-size: .96rem; color: var(--muted); }
.consigne .icon { color: var(--accent); margin-top: .15rem; }
.consigne--important { background: var(--sun-soft); border-left: 4px solid var(--sun); border-radius: 8px; padding: .7rem .9rem; color: var(--ink); font-weight: 600; }
.consigne--important .icon { color: var(--sun-deep); }

/* PDF du programme (import direct, sans saisie sortie par sortie) : une carte cliquable
   plutôt qu'un lecteur PDF intégré — le lecteur natif du téléphone/navigateur est bien
   meilleur que n'importe quel <object> intégré, surtout sur iPhone. */
.pdf-card {
  display: flex; align-items: center; gap: 1.1rem; max-width: 520px; margin: 0 auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pdf-card:hover, .pdf-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.pdf-card-icon {
  flex: none; width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--accent-deep), var(--accent)); color: #fff;
}
.pdf-card-body { flex: 1; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.pdf-card-body strong { font-size: 1.08rem; }
.pdf-card-meta { font-size: .85rem; color: var(--muted); }
.pdf-card-open { flex: none; color: var(--accent); }
.pdf-download { text-align: center; margin-top: 1rem; }
.pdf-download a { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; }
.pdf-download a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Tableau du programme */
.programme-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg); }
.programme { width: 100%; min-width: 860px; border-collapse: collapse; }
.programme thead th {
  background: var(--accent-deep); color: #fff; text-align: left;
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: .9rem 1rem;
}
.programme .mois-row th {
  background: var(--accent-soft); color: var(--accent-deep); text-align: left;
  font-family: var(--font-display); font-size: 1.1rem; text-transform: capitalize; padding: .75rem 1rem;
  border-top: 1px solid var(--border);
}
.programme td { padding: .9rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: .95rem; }
.programme tbody tr.sortie:last-child td { border-bottom: none; }
.programme .c-date { width: 92px; }
.programme .c-heure { width: 88px; white-space: nowrap; font-weight: 600; }
.programme .c-km { width: 150px; }
.programme .c-km strong { display: block; font-size: 1.05rem; }
.programme .c-km .niveau { margin-top: .3rem; }
.programme .denivele { display: block; margin-top: .3rem; font-size: .8rem; color: var(--muted); }
.programme .acc-liste { list-style: none; display: grid; gap: .2rem; }
.programme .acc-tel { display: block; font-size: .85rem; color: var(--accent); font-weight: 600; }
.programme .c-lieu { min-width: 200px; }
.programme .lieu-nom { display: block; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .02em; }
.programme .lieu-precision { display: block; color: var(--muted); font-size: .9rem; }
.programme .lieu-note { display: block; margin-top: .3rem; font-size: .85rem; color: var(--muted); }
.programme .c-covoit { width: 110px; }
.programme .info-note { display: block; margin-top: .4rem; color: var(--ink); }
.programme tr.sortie--evenement { background: var(--sun-soft); }
.programme tr.sortie--evenement .date-badge { background: var(--sun); color: var(--ink); }
.programme tr.sortie--evenement .date-badge .dow, .programme tr.sortie--evenement .date-badge .mon { color: var(--ink); }
.programme tr.sortie--avenir { background: #f6f7f6; }
.programme tr.is-next { box-shadow: inset 5px 0 0 var(--sun); background: #fffaf0; }
.programme tr.is-next .date-badge { background: var(--accent); color: #fff; }
.programme tr.is-next .date-badge .dow, .programme tr.is-next .date-badge .mon { color: rgba(255,255,255,.85); }
.programme tr.is-past { opacity: .5; }
.programme-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 1.4rem; }
.programme-note { color: var(--muted); font-size: .92rem; max-width: 60ch; }

/* Prochaines randonnées (accueil) */
.prochaines { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sortie-mini {
  display: flex; gap: 1.1rem; align-items: flex-start; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.sortie-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.sortie-mini h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; font-family: var(--font); font-weight: 700; }
.sortie-precision { color: var(--muted); font-size: .9rem; }
.sortie-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; margin-top: .55rem; font-size: .9rem; color: var(--muted); }
.sortie-meta > span:not(.niveau) { display: inline-flex; align-items: center; gap: .3rem; }
.sortie-noms { margin-top: .5rem; font-size: .88rem; color: var(--muted); }
.sortie-mini--evenement .date-badge { background: var(--sun); color: var(--ink); }
.sortie-mini--evenement .date-badge .dow, .sortie-mini--evenement .date-badge .mon { color: var(--ink); }

.demo-note { display: inline-block; max-width: 56ch; margin: 0 auto 1.6rem !important; padding: .7rem 1rem; border-radius: 10px; background: var(--sun-soft); color: var(--ink) !important; font-size: .95rem !important; }

/* Tableau : version téléphone (chaque sortie devient une carte) */
@media (max-width: 860px) {
  .programme-wrap { overflow: visible; border: none; box-shadow: none; background: transparent; }
  .programme, .programme tbody { display: block; min-width: 0; }
  .programme thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .programme .mois-row, .programme .mois-row th { display: block; }
  .programme .mois-row th { border-radius: 10px; margin: 1.4rem 0 .8rem; border: none; }
  .programme tbody:first-of-type .mois-row th { margin-top: 0; }
  .programme tr.sortie {
    display: grid; grid-template-columns: 72px 1fr auto; column-gap: 1rem; row-gap: .6rem;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem; margin-bottom: .8rem; box-shadow: var(--shadow);
  }
  .programme tr.sortie--evenement { background: var(--sun-soft); }
  .programme tr.sortie--avenir { background: #f6f7f6; }
  .programme tr.is-next { box-shadow: inset 5px 0 0 var(--sun), var(--shadow); }
  .programme td { display: block; padding: 0; border: none; width: auto !important; min-width: 0 !important; }
  .programme td[data-label]::before {
    content: attr(data-label); display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
    font-weight: 700; color: var(--muted); margin-bottom: .1rem;
  }
  /* Disposition d'une carte : date à gauche ; lieu, puis départ + covoiturage, puis distance, puis accompagnateurs */
  .programme .c-date { grid-column: 1; grid-row: 1 / span 4; }
  .programme .c-lieu { grid-column: 2 / span 2; grid-row: 1; }
  .programme .c-heure { grid-column: 2; grid-row: 2; }
  .programme .c-covoit { grid-column: 3; grid-row: 2; justify-self: end; text-align: right; }
  .programme .c-km, .programme .c-info { grid-column: 2 / span 2; grid-row: 3; }
  .programme .c-acc { grid-column: 2 / span 2; grid-row: 4; }
  .programme .c-date::before, .programme .c-lieu::before, .programme .c-km::before, .programme .c-acc::before, .programme .c-info::before { display: none !important; }
  .programme .c-km strong { display: inline; margin-right: .5rem; }
  .programme .c-km .niveau, .programme .c-km .denivele { display: inline-block; margin-top: 0; margin-right: .5rem; }
  .programme .acc-liste { gap: 0; }
  .programme .c-acc .muted { display: none; }
}
@media (max-width: 600px) {
  .bandeau-inner { padding: .45rem 1rem; font-size: .82rem; }
  .bandeau-inner > .icon { display: none; }
}

/* ── Impression du programme (bouton "Imprimer") ── */
@media print {
  @page { margin: 1.2cm; }
  .bandeau, .nav-wrap, .footer, .skip-link, .programme-actions .btn, .depart-lien, .hero, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .section, .section--alt, .section--tight { padding: .6rem 0; background: none; }
  .page-hero { background: none !important; color: #000; padding: 0 0 .6rem; text-align: left; }
  .page-hero h1 { font-size: 1.6rem; margin: 0; max-width: none; }
  .page-hero p, .page-hero .eyebrow { color: #000; }
  .depart-card { background: none; color: #000; border: 2px solid #000; box-shadow: none; padding: .8rem 1rem; }
  .depart-kicker, .depart-detail { color: #000; }
  .depart-grid { grid-template-columns: 1fr; gap: .8rem; }
  .consignes { box-shadow: none; padding: .8rem 1rem; }
  .programme-wrap { overflow: visible; box-shadow: none; border: 1px solid #000; }
  .programme { min-width: 0; font-size: 10pt; }
  .programme thead th { background: #ddd !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .programme tr { break-inside: avoid; }
  .programme tr.is-past { opacity: 1; }
  .programme tr.is-next { box-shadow: none; background: none; }
  .programme tr.is-next .date-badge { background: var(--accent-soft); color: var(--accent-deep); }
  .programme .mois-row th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============ Randonneurs Bondevillais ============ */
:root { --red: #9b0f1f; --max: 1220px; }
.btn-sun { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(155,15,31,.35); }
.btn-sun:hover { box-shadow: 0 14px 34px rgba(155,15,31,.45); }
.eyebrow { color: var(--red); }
.nav-wrap { background: #fff; }
.nav { padding: .4rem 1.4rem; gap: 1rem; }
.nav-logo-img { width: auto; height: 74px; border-radius: 0; }
.nav-links { gap: 1.1rem; }
.nav-links a[aria-current="page"] { color: var(--red); font-weight: 700; }
.nav-links a.nav-adherents { color: var(--accent); font-weight: 700; white-space: nowrap; }
.nav-links a.btn { padding: .55rem 1.1rem; white-space: nowrap; }
@media (max-width: 1180px) {
  .nav-burger { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; gap: 0; padding: .6rem 1.4rem 1.2rem; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: .6rem 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border: none; padding-top: 1rem; }
  .nav-links li:last-child .btn-primary { display: flex; justify-content: center; width: 100%; }
}
.hero--accueil { padding-top: clamp(2rem, 5vw, 3.5rem); }
.hero-logo { background: #fff; border-radius: 18px; padding: .8rem 1.2rem; width: min(560px, 100%); margin: 0 auto 1.6rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.hero-logo img { width: 100%; }
.hero--accueil h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); max-width: 24ch; }
.ffr-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 2rem; padding: 1.2rem 1.4rem; background: #fff; text-align: center; font-weight: 600; }
.ffr-band img { width: 230px; }
.footer-logos { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.footer-logos img { height: 78px; width: auto; background: #fff; border-radius: 10px; padding: .35rem .6rem; }
.note-haut { margin: 0 0 1.5rem; }
.demo-note { margin: 0 !important; }
.sortie-mini.is-past { opacity: .5; }
.sortie-mini h3 { font-size: 1.05rem; }
.blocs { display: grid; gap: 1.4rem; }
.bloc { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); background: #fff; min-width: 0; }
.bloc h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.bloc h3 { font-size: 1.05rem; margin-top: .8rem; }
.bloc--accent { background: var(--accent-soft); }
.bloc dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1.5rem; padding: .65rem 0; border-top: 1px solid var(--border); }
.bloc dt { font-weight: 600; }
.bloc dt small { display: block; font-weight: 400; color: var(--muted); }
.bloc dd { color: var(--muted); }
.docs { list-style: none; display: grid; gap: .7rem; }
.doc { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.doc:hover { border-color: var(--accent); }
.doc-type { flex: none; width: 52px; text-align: center; font-size: .72rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 6px; padding: .25rem 0; }
.doc-dl { margin-left: auto; color: var(--accent); font-weight: 600; font-size: .85rem; }
.porte { display: grid; gap: 1rem; max-width: 420px; margin: 0 auto; }
.porte label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
.porte input { font: inherit; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 10px; }
.porte .btn { justify-content: center; }
.erreur { color: var(--red); font-weight: 700; }
.aide-mail { position: fixed; z-index: 300; right: 14px; bottom: 14px; width: min(360px, calc(100vw - 28px)); background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 1.1rem 1.2rem; }
.aide-adresse { margin: .3rem 0 .8rem; font-weight: 600; color: var(--accent); overflow-wrap: anywhere; user-select: all; }
.aide-actions { display: grid; gap: .5rem; }
.aide-actions .btn { justify-content: center; padding: .6rem 1rem; }
.aide-fermer { position: absolute; top: .4rem; right: .6rem; border: none; background: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); }

.hero--accueil { background: linear-gradient(160deg, #08336f, #0b4a9e); color: #fff; }
.hero--accueil p { color: rgba(255,255,255,.9); }
.hero--accueil h1 { color: #fff; }
.hero-grille { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-image { width: 100%; max-height: 680px; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
@media (max-width: 860px) { .hero-grille { grid-template-columns: 1fr; } }

.sortie-precision { white-space: pre-line; margin-top: .4rem; }
.sortie-mini > div { min-width: 0; }
.legende { max-width: 80ch; margin: 0 auto 1.5rem; text-align: center; color: var(--muted); font-size: .95rem; }
.infos { padding-left: 1.2rem; display: grid; gap: .5rem; color: var(--muted); }
#prive .gallery { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.planning { max-width: 560px; margin: 0 auto; display: grid; justify-items: center; gap: .9rem; text-align: center; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem 1.4rem; }
.planning h3 { font-size: 1.35rem; }
.planning-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }

.aide-texte { font-size: .88rem; color: var(--muted); margin: -.4rem 0 .8rem; }
.aide-direct { text-align: center; font-size: .85rem; color: var(--muted); text-decoration: underline; }
.depart-liens { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
