/* ============================================================
   La Grange Animée — styles
   Thème : village convivial, tons chauds & naturels
   ============================================================ */

:root {
  --orange:      #f7941d;   /* orange du logo (grange, "ANIMÉE") */
  --orange-dark: #e07d0a;
  --orange-soft: #fde8cf;   /* orange très clair (fonds, pastilles) */
  --ink:         #3f3f3f;   /* gris anthracite du logo */
  --ink-dark:    #2c2c2c;
  --paper:       #ffffff;   /* fond blanc (comme le logo) */
  --paper-2:     #faf6f0;   /* crème très léger */
  --paper-3:     #f3eee7;
  --white:       #ffffff;
  --muted:       #77716a;
  --shadow:      0 10px 30px rgba(63, 63, 63, .10);
  --radius:      18px;
  --maxw:        1120px;
  --font-title:  "Fraunces", Georgia, serif;
  --font-body:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Compense le header collant lors des sauts d'ancre (#agenda, #adhesion...) */
section[id], [id="haut"] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* Accessibilité : focus visible */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(247, 148, 29, .40); }
.btn-primary:hover { background: #b5522f; }
.btn-ghost { background: transparent; color: var(--ink-dark); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ===== En-tête ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .55rem; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 48px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink); font-weight: 500; }
.nav-menu a:hover { color: var(--orange-dark); text-decoration: none; }
.nav-cta { background: var(--orange); color: #fff !important; padding: .5rem 1.1rem; border-radius: 999px; }
.nav-cta:hover { background: var(--orange-dark); }

/* Sous-menu déroulant "Nos rendez-vous" */
.has-submenu { position: relative; }
.caret { font-size: .7em; }
.submenu {
  list-style: none; margin: 0; padding: .4rem 0;
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  border: 1px solid var(--paper-2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li { display: block; }
.submenu a { display: block; padding: .55rem 1.1rem; white-space: nowrap; font-weight: 500; }
.submenu a:hover { background: var(--orange-soft); color: var(--orange-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(247, 148, 29, .35), transparent 60%),
    linear-gradient(160deg, var(--ink-dark), var(--ink) 60%, #4a4a4a);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 60px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 60%);
}
.hero-inner {
  position: relative; max-width: var(--maxw);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero-content { max-width: 620px; }
.hero-cal { width: 100%; }
.hero-logo {
  height: clamp(90px, 16vw, 150px); width: auto; margin-bottom: 1.5rem;
  background: #fff; padding: 1rem 1.4rem; border-radius: 20px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .25);
}
.hero-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; opacity: .9; margin: 0 0 .5rem; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem); margin: 0;
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero-tagline { font-family: var(--font-title); font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--orange); margin: .3rem 0 1.2rem; }
.hero-lead { font-size: 1.15rem; max-width: 55ch; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-actions .btn-ghost:hover { background: #fff; color: var(--ink-dark); }

/* ===== Sections génériques ===== */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.7rem); }
.section-sub { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ===== Cartes événements ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--orange);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(42,38,34,.16); }
.card-icon { font-size: 2.5rem; line-height: 1; margin-bottom: .6rem; }
.card-tag { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; color: var(--muted); margin: 0 0 .3rem; }
.card h3 { font-size: 1.4rem; }
.card p { color: #4a443d; margin: .4rem 0 1rem; }
.card-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.card-meta li { background: var(--orange-soft); color: var(--orange-dark); font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }

.card-sport  { border-top-color: var(--orange); }
.card-esport { border-top-color: var(--ink); }
.card-oeno   { border-top-color: var(--orange-dark); }
.card-ludo   { border-top-color: var(--ink-dark); }
.card-culture { border-top-color: var(--orange); }

/* ===== À propos ===== */
.about { background: var(--paper-2); }
.about-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.about-text h2 { font-size: clamp(2rem, 4vw, 2.7rem); }
.about-text p { font-size: 1.08rem; }
.about-link { font-weight: 700; color: var(--orange-dark); }
.pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.pill { background: #fff; padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); }
.about-stats { display: grid; gap: 1rem; margin-top: 1.6rem; }
.stat { background: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); display: flex; align-items: baseline; gap: .8rem; }
.stat-num { font-family: var(--font-title); font-size: 2.2rem; font-weight: 700; color: var(--orange); }
.stat-label { color: var(--muted); font-weight: 500; }

/* ===== Calendrier mensuel ===== */
.cal { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; border-top: 5px solid var(--orange); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: .5rem; }
.cal-title { flex: 1; text-align: center; font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; color: var(--ink-dark); text-transform: capitalize; }
.cal-nav {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid #ddd2c1;
  background: var(--paper); color: var(--ink-dark); font-size: 1.3rem; line-height: 1;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cal-nav:hover:not(:disabled) { background: var(--orange); color: #fff; border-color: var(--orange); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-weekdays span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: .9rem; color: var(--ink); position: relative;
}
.cal-cell.empty { background: transparent; }
.cal-cell.day { background: var(--paper-2); }
.cal-cell.weekend { color: var(--muted); }
/* Jour avec événement (cliquable) */
.cal-event {
  background: var(--orange-soft); color: var(--orange-dark); font-weight: 700;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  font-family: inherit; font-size: .9rem;
  transition: transform .12s ease, border-color .12s ease;
}
.cal-event:hover { transform: scale(1.08); border-color: var(--orange); text-decoration: none; }
.cal-event.hl { background: var(--orange); color: #fff; }
/* Date du jour : anneau distinctif, compatible avec un jour normal ou un jour-événement */
.cal-cell.cal-today {
  box-shadow: 0 0 0 2px var(--orange-dark) inset;
  font-weight: 700;
}
.cal-cell.day.cal-today:not(.cal-event) { background: #fff; color: var(--orange-dark); }
.cal-event::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
/* Détail de l'événement sélectionné (utile surtout sur mobile, sans survol) */
.cal-selected {
  margin-top: .9rem; padding: .7rem .9rem; border-radius: 12px;
  background: var(--orange-soft); border: 1px solid var(--orange);
  display: flex; flex-direction: column; gap: .15rem;
}
.cal-sel-date { font-size: .78rem; font-weight: 600; color: var(--orange-dark); text-transform: capitalize; }
.cal-sel-label { font-family: var(--font-title); font-weight: 700; color: var(--ink-dark); }
.cal-sel-link { font-weight: 600; color: var(--orange-dark); font-size: .9rem; margin-top: .2rem; }
.cal-sel-hint { font-size: .8rem; color: var(--orange-dark); font-weight: 600; margin-top: .2rem; }
/* L'encart détail n'est utile que sur tactile : on le masque sur PC (survol dispo) */
@media (hover: hover) and (pointer: fine) {
  .cal-selected { display: none !important; }
}
.cal-hint { font-size: .78rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }
.cal-export { width: 100%; margin-top: .8rem; }

/* Modale de sélection des événements */
.cal-modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(44,44,44,.55);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.cal-modal {
  position: relative; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.3);
  width: 100%; max-width: 460px; max-height: 85vh; overflow-y: auto; padding: 1.8rem;
}
.cal-modal h3 { margin: 0 0 .3rem; font-size: 1.4rem; }
.cal-modal-sub { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.cal-modal-close {
  position: absolute; top: .8rem; right: 1rem; border: 0; background: none;
  font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.cal-modal-close:hover { color: var(--ink-dark); }
.cal-all { display: block; font-weight: 600; padding: .5rem 0; border-bottom: 1.5px solid var(--paper-2); margin-bottom: .4rem; }
.cal-modal-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.cal-modal-list li { border-bottom: 1px dashed #e4ddd2; }
.cal-modal-list label { display: flex; align-items: baseline; gap: .5rem; padding: .6rem 0; cursor: pointer; flex-wrap: wrap; }
.cal-ev-label { font-weight: 600; }
.cal-ev-date { width: 100%; margin-left: 1.6rem; font-size: .82rem; color: var(--muted); }
.cal-modal-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cal-modal-actions .btn { flex: 1; min-width: 150px; text-align: center; }
.cal-modal-hint { font-size: .78rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }

/* ===== Agenda / Calendrier de saison ===== */
.agenda-list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.agenda-toggle-wrap { text-align: center; margin: 0 0 1.2rem; }
.agenda-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1.5px solid var(--orange); color: var(--orange-dark);
  font: inherit; font-weight: 600; padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.agenda-toggle:hover { background: var(--orange); color: #fff; }
.agenda-toggle-caret { transition: transform .2s ease; }
.agenda-toggle.open .agenda-toggle-caret { transform: rotate(180deg); }
.agenda-empty { text-align: center; color: var(--muted); font-style: italic; margin: 1rem auto; max-width: 520px; }
.ag-row {
  display: grid; grid-template-columns: 76px 1fr; gap: 1.2rem; align-items: center;
  padding: .9rem 1rem; border-radius: 14px; transition: background .2s ease;
}
.ag-row:has(.ag-link) { display: block; padding: 0; }
.ag-row:has(.ag-link) .ag-link { padding: .9rem 1rem; border-radius: 14px; }
.ag-row + .ag-row { margin-top: .4rem; }
.ag-row:hover { background: var(--paper-2); }
.ag-link {
  display: grid; grid-template-columns: 76px 1fr; gap: 1.2rem; align-items: center;
  color: inherit; text-decoration: none; width: 100%;
}
.ag-link:hover { text-decoration: none; }
.ag-link .ag-info h3 { transition: color .15s ease; }
.ag-link:hover .ag-info h3 { color: var(--orange-dark); }
.ag-link .ag-info h3::after { content: " →"; opacity: 0; transition: opacity .15s ease; font-weight: 400; }
.ag-link:hover .ag-info h3::after { opacity: .7; }
.ag-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--paper-2); border-radius: 12px; padding: .5rem 0; min-height: 62px;
}
.ag-day { font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--ink-dark); }
.ag-month { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.ag-info h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.ag-cat { display: inline-block; font-size: .74rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }

/* Catégories */
.cat-ludo    { background: #ececec; color: var(--ink-dark); }
.cat-esport  { background: #e6e6e6; color: var(--ink-dark); }
.cat-sport   { background: var(--orange-soft); color: var(--orange-dark); }
.cat-oeno    { background: var(--orange-soft); color: var(--orange-dark); }
.cat-culture { background: var(--orange-soft); color: var(--orange-dark); }
.cat-asso    { background: #ded9d1; color: var(--ink-dark); }
.cat-pause   { background: #f0eded; color: var(--muted); }

/* Temps forts mis en avant */
.ag-highlight { background: linear-gradient(90deg, rgba(247,148,29,.14), rgba(247,148,29,.04)); border: 1px solid rgba(247,148,29,.35); }
.ag-highlight .ag-date { background: var(--orange); }
.ag-highlight .ag-day { color: #fff; }
.ag-highlight .ag-month { color: rgba(255,255,255,.9); }

/* Pause */
.ag-pause { opacity: .7; }
.ag-pause .ag-day { color: var(--muted); }

/* ===== Adhésion (HelloAsso) ===== */
.adhesion { background: var(--paper-2); }
.adhesion-card {
  max-width: 680px; margin: 0 auto; text-align: center;
  background: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem);
  box-shadow: var(--shadow); border-top: 6px solid var(--orange);
}
.adhesion-icon { font-size: 3rem; line-height: 1; margin-bottom: .5rem; }
.adhesion-card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.adhesion-card p { font-size: 1.08rem; color: #4a443d; max-width: 48ch; margin-inline: auto; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.15rem; margin: 1.2rem 0 .6rem; }
.adhesion-note { font-size: .9rem; color: var(--muted); margin: 0; }
.tarifs { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1.5rem 0 1rem; }
.tarif { background: var(--orange-soft); border-radius: 14px; padding: 1.1rem 1.6rem; min-width: 150px; }
.tarif-prix { display: block; font-family: var(--font-title); font-size: 2rem; font-weight: 700; color: var(--orange-dark); }
.tarif-unite { font-size: 1rem; font-weight: 600; }
.tarif-label { display: block; font-weight: 600; color: var(--ink-dark); font-size: .9rem; margin-top: .2rem; }
.tarif-avantage { font-size: .92rem; color: #4a443d; max-width: 46ch; margin: 0 auto 1rem; }

/* ===== Contact ===== */
.contact { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-text h2 { font-size: clamp(2rem, 4vw, 2.7rem); }
.contact-text p { font-size: 1.08rem; }
.contact-direct { font-weight: 600; }
.contact-form { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid #ddd2c1; border-radius: 12px;
  font: inherit; background: var(--paper); color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) { border-color: #c0392b; }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok  { color: var(--orange-dark); }
.form-status.err { color: #c0392b; }

/* ===== Pied de page ===== */
.site-footer { background: var(--ink-dark); color: #f3ede2; padding: 2.5rem 0; text-align: center; }
.footer-logo {
  height: 64px; width: auto; margin: 0 auto .8rem;
  background: #fff; padding: .7rem 1rem; border-radius: 14px;
}
.footer-note { margin: 0 0 .6rem; opacity: .85; }
.footer-copy { margin: 0; font-size: .85rem; opacity: .7; }

/* ===== Révélation au scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Pages événement (sous-pages) ===== */
.event-hero {
  position: relative; color: #fff; text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(160deg, var(--ink-dark), var(--ink) 65%, #4a4a4a);
  overflow: hidden;
}
.event-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 80% -10%, rgba(247,148,29,.35), transparent 60%);
}
.event-hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 50px;
  background: var(--paper); clip-path: polygon(0 100%, 100% 100%, 100% 30%, 0 100%);
}
.event-hero .container { position: relative; }
/* Hero avec photo en filigrane sous le dégradé sombre.
   Chaque page définit --hero-photo (ex. style="--hero-photo:url('../images/ag/ATE_01.jpg')"). */
.event-hero--photo {
  background:
    linear-gradient(160deg, rgba(30,28,26,.68), rgba(43,38,34,.62) 65%, rgba(74,74,74,.58)),
    var(--hero-photo) var(--hero-pos, center center)/cover no-repeat;
}
/* Compat : ancienne classe GL */
.event-hero--gl {
  background:
    linear-gradient(160deg, rgba(30,28,26,.68), rgba(43,38,34,.62) 65%, rgba(74,74,74,.58)),
    url("../images/ag/GLU_01.jpg") center center/cover no-repeat;
}
.event-emoji { font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1; }
/* Variante photo ronde à la place de l'emoji dans le hero */
.event-emoji-photo { display: inline-block; }
.event-emoji-photo img {
  width: clamp(80px, 14vw, 120px); height: clamp(80px, 14vw, 120px);
  object-fit: cover; border-radius: 50%;
  border: 4px solid #fff; box-shadow: var(--shadow);
}
.event-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: .3rem 0 .4rem; }
.event-cat { display: inline-block; background: var(--orange); color: #fff; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: .35rem 1rem; border-radius: 999px; }
.event-date-badge { font-family: var(--font-title); font-size: 1.25rem; margin-top: 1rem; color: var(--orange); }

.event-body { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.event-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; max-width: var(--maxw); margin: 0 auto; }
.event-content h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-top: 1.6rem; }
.event-content h2:first-child { margin-top: 0; }
.event-content p, .event-content li { font-size: 1.06rem; color: #45403a; }
.event-content ul { padding-left: 1.2rem; }
.event-content li { margin-bottom: .4rem; }

.event-aside { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border-top: 5px solid var(--orange); position: sticky; top: 92px; }
.event-aside h3 { font-size: 1.2rem; margin-top: 0; }
.info-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.info-list li { display: flex; gap: .6rem; padding: .5rem 0; border-bottom: 1px dashed #e4ddd2; font-size: .98rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list .info-ico { flex: 0 0 auto; }
.info-list .info-lbl { color: var(--muted); font-weight: 600; margin-right: .2rem; }

.event-back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; font-weight: 600; color: var(--ink-dark); }
.event-back:hover { color: var(--orange-dark); text-decoration: none; }

/* Plans de parcours (Grange Boucle) */
.course-plan { display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; text-decoration: none; color: var(--orange-dark); font-weight: 600; font-size: .9rem; margin: .6rem 0; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.course-plan img { width: 100%; max-width: 340px; border-radius: 12px; border: 1px solid var(--paper-2); box-shadow: var(--shadow); transition: transform .15s ease; }
.course-plan:hover img { transform: scale(1.02); }
.course-plan:hover { text-decoration: none; }
.course-plans { display: flex; flex-wrap: wrap; gap: 1rem; margin: .6rem 0; }
.course-plans .course-plan img { max-width: 200px; }

/* Section Résultats (Grange Boucle) — PDF en iframe */
.results { background: var(--paper-2); }
.results-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.results-tab {
  border: 1.5px solid var(--orange); background: #fff; color: var(--orange-dark);
  font: inherit; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.results-tab:hover { background: var(--orange-soft); }
.results-tab.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; max-width: 800px; margin: 0 auto 1rem; }
.results-search { flex: 1; min-width: 200px; padding: .6rem .9rem; border: 1.5px solid #ddd2c1; border-radius: 999px; font: inherit; }
.results-count { font-size: .85rem; color: var(--muted); font-weight: 600; }
.results-pdf-link { font-size: .85rem; font-weight: 600; color: var(--orange-dark); white-space: nowrap; }
.results-table-wrap { max-width: 800px; margin: 0 auto; max-height: 60vh; overflow-y: auto; border-radius: 12px; box-shadow: var(--shadow); background: #fff; }
.results-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.results-table thead th {
  position: sticky; top: 0; background: var(--ink); color: #fff; font-family: var(--font-body);
  font-weight: 600; text-align: left; padding: .6rem .8rem; font-size: .85rem;
}
.results-table td { padding: .5rem .8rem; border-bottom: 1px solid var(--paper-2); }
.results-table tbody tr:nth-child(odd) { background: var(--paper); }
.results-table tbody tr:hover { background: var(--orange-soft); }
.results-table td:first-child { font-weight: 700; color: var(--orange-dark); text-align: center; width: 40px; }

/* Bilan */
.bilan-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.bilan-item { display: grid; grid-template-columns: 90px 1fr; gap: 1.2rem; align-items: center; padding: 1rem 0; border-bottom: 1px dashed #e4ddd2; }
.bilan-item:last-child { border-bottom: 0; }
.bilan-nb { font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; color: var(--orange-dark); text-align: center; background: var(--orange-soft); border-radius: 12px; padding: .6rem .3rem; }
.bilan-item h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.bilan-item p { margin: 0; color: var(--muted); }

/* Bouton-titre ouvrant la galerie */
.bilan-gallery-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-title); font-weight: 700; font-size: 1.15rem;
  color: var(--ink-dark); text-align: left;
}
.bilan-gallery-btn:hover { color: var(--orange-dark); text-decoration: underline; }

/* Lightbox galerie */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(20,20,20,.9);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 90vw; max-height: 88vh; text-align: center; }
.lb-figure img { max-width: 90vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-figure figcaption { color: #fff; margin-top: .8rem; font-weight: 600; }
.lb-close {
  position: absolute; top: 1rem; right: 1.4rem; background: none; border: 0;
  color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 0; color: #fff;
  width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; cursor: pointer;
}
.lb-nav:hover { background: var(--orange); }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
@media (max-width: 620px) { .lb-nav { width: 42px; height: 42px; font-size: 1.5rem; } }

/* Historique des après-midi (Grange Ludique) */
.gl-history { margin: 1rem 0 1.5rem; }
.gl-date { border: 1.5px solid #e4ddd2; border-radius: 12px; margin-bottom: .6rem; overflow: hidden; background: #fff; }
.gl-date summary {
  cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; font-family: var(--font-title);
  font-size: 1.1rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.gl-date summary::-webkit-details-marker { display: none; }
.gl-date summary::after { content: "▸"; color: var(--orange-dark); transition: transform .2s ease; }
.gl-date[open] summary::after { transform: rotate(90deg); }
.gl-date[open] summary { border-bottom: 1px solid #f0e9dd; background: var(--orange-soft); }
.gl-badge { font-family: var(--font-body); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper-2); padding: .2rem .6rem; border-radius: 999px; margin-left: auto; }
.gl-body { padding: 1rem 1.1rem; }
.gl-todo { color: var(--muted); font-style: italic; margin: 0; }
.gl-games { margin: 0; padding-left: 1.2rem; }
.gl-games li { margin-bottom: .3rem; }

/* Carte d'un jeu joué */
.gl-game { display: flex; gap: 1rem; align-items: flex-start; }
.gl-game + .gl-game { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px dashed #e4ddd2; }
.gl-game-photo { flex: 0 0 auto; width: 110px; height: 110px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gl-game-photo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; display: block; }
.gl-game-info h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.gl-game-info p { margin: 0 0 .5rem; color: #4a443d; }
.gl-game-meta { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.gl-game-meta li { background: var(--paper-2); color: var(--ink-dark); font-size: .8rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }
.gl-game-link { font-weight: 600; color: var(--orange-dark); font-size: .92rem; }

/* Section communauté (QR code WhatsApp) */
.gl-community { background: var(--paper-2); }
.gl-community-inner { display: grid; grid-template-columns: 1.4fr auto; gap: 2.5rem; align-items: center; max-width: 900px; margin: 0 auto; }
.gl-community-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.gl-community-text p { font-size: 1.08rem; color: #45403a; }
.gl-community-hint { color: var(--muted); font-size: .95rem; }
.gl-community-qr { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.gl-community-qr img { width: 200px; height: 200px; border-radius: 14px; background: #fff; padding: .6rem; box-shadow: var(--shadow); }
.gl-community-qr span { font-weight: 600; font-size: .85rem; color: var(--muted); text-align: center; }
/* Bouton WhatsApp : visible mobile uniquement */
.gl-wa-btn { display: none; margin-top: 1rem; text-align: center; }
@media (max-width: 720px) {
  .gl-community-inner { grid-template-columns: 1fr; text-align: center; }
  .gl-community-qr { display: none; }        /* QR inutile sur mobile (on ne peut pas se scanner soi-même) */
  .gl-hint-desktop { display: none; }
  .gl-wa-btn { display: inline-block; }
}

.event-cta-band { background: var(--paper-2); text-align: center; padding: clamp(2.5rem, 6vw, 3.5rem) 0; }
.event-cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.event-cta-band p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.4rem; }

/* Carte d'accueil devenue lien */
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { text-decoration: none; }
.card-more { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--orange-dark); }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content { max-width: none; }
  .event-layout { grid-template-columns: 1fr; gap: 1.8rem; }
  /* Mobile : masquer la section des cartes "Nos rendez-vous" (doublon avec menu + agenda) */
  #evenements { display: none; }
  /* Header mobile plus haut (barre de nav sous le logo) : compenser les sauts d'ancre */
  section[id], [id="haut"] { scroll-margin-top: 130px; }
  .event-aside { position: static; }

  .nav-toggle { display: none; }
  /* Option 3 : barre de nav simplifiee TOUJOURS visible en mobile */
  .nav-menu {
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;
    justify-content: center; gap: .3rem .9rem;
    position: static; background: none; box-shadow: none; border: 0; padding: .3rem 0 0;
    width: 100%;
  }
  .nav-menu > li { border-top: 0; }
  .nav-menu > li > a { display: inline-block; padding: .35rem .2rem; font-size: .95rem; }
  .nav-cta { text-align: center; }
  /* Le hamburger pilote UNIQUEMENT le sous-menu des rendez-vous */
  .has-submenu > a .caret { display: inline; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: var(--paper-2); border-radius: 8px;
    padding: .2rem 0; margin: .2rem 0 .4rem; width: 100%;
    display: none;                     /* masque par defaut en mobile */
  }
  .submenu.open { display: block; }    /* ouvert via le hamburger */
  .submenu li { border-top: 0; }
  .submenu a { padding: .6rem .8rem; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}


/* ===== Événement annulé ===== */
.ag-badge-cancel {
  display: inline-block; margin-left: .4rem; padding: .05rem .45rem;
  background: #c0392b; color: #fff; border-radius: 999px;
  font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  vertical-align: middle;
}
.ag-row.ag-cancelled .ag-day,
.ag-row.ag-cancelled .ag-info h3 { text-decoration: line-through; color: var(--muted); }
.ag-row.ag-cancelled .ag-badge-cancel { text-decoration: none; }
.card.card-cancelled { opacity: .72; }
.card.card-cancelled h3 { text-decoration: line-through; }
.card.card-cancelled .ag-badge-cancel { text-decoration: none; }
.event-cancel-banner {
  display: inline-block; margin-top: .8rem; padding: .5rem 1rem;
  background: #c0392b; color: #fff; border-radius: 8px; font-weight: 700;
}
