/* Run Club Léman 74 — feuille de style commune */

:root {
  --navy: #1c2530;
  --denim: #3f6683;
  --cream: #f2ead9;
  --red: #b91c2b;
  --ink: #22303f;
  --muted: #667085;
  --bg: #faf7f0;
  --card: #ffffff;
  --border: #e4dcc9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--denim); }

img { max-width: 100%; }

.site-header {
  background: var(--navy);
  color: #fff;
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  line-height: 1.15;
}

.brand-text span {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: #c9d2dc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: #dfe6ec;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}

nav.main-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

nav.main-nav a.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.cta-btn, button.cta-btn {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 11px 26px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.cta-btn:hover { background: #9c1523; }

.cta-btn.secondary {
  background: transparent;
  border: 1.5px solid currentColor;
  color: inherit !important;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, #24374b 100%);
  color: #fff;
  padding: 64px 20px 84px;
  text-align: center;
}

.hero .wrap { max-width: 760px; margin: 0 auto; }

.hero img.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.hero p.lead {
  font-size: 1.1rem;
  color: #d6dee6;
  margin: 0 0 28px;
}

.hero .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Generic page header (non-home) */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.page-hero h1 { margin: 0 0 8px; font-size: 1.7rem; }
.page-hero p { margin: 0; color: #c9d2dc; }

main { max-width: 1040px; margin: -40px auto 0; padding: 0 20px 60px; position: relative; }

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 40px;
}

@media (max-width: 780px) {
  .card-row { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  main { margin-top: -20px; }
}

.info-card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(20,30,50,0.08);
}

.info-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.05rem;
}

.info-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

section.block {
  background: var(--card);
  border-radius: 16px;
  padding: 34px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(20,30,50,0.06);
}

section.block h2 {
  margin-top: 0;
  color: var(--navy);
  font-size: 1.35rem;
}

section.block.tinted {
  background: var(--cream);
}

.tag {
  display: inline-block;
  background: var(--cream);
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

table.bureau {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.bureau th, table.bureau td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

table.bureau th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.placeholder-box {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  background: #fffdf8;
}

.placeholder-box h3 {
  color: var(--navy);
  margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-item .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-weight: 800;
}

footer.site-footer {
  background: var(--navy);
  color: #c9d2dc;
  padding: 34px 20px;
  text-align: center;
  font-size: 0.86rem;
}

footer.site-footer a { color: #fff; }

footer.site-footer .foot-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 4px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.social-row a svg {
  width: 18px;
  height: 18px;
  fill: #dfe6ec;
  transition: fill 0.18s ease;
}

.social-row a:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.social-row a:hover svg { fill: #fff; }

.event-list { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }

.event-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.event-date {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.event-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.05rem; }
.event-card p { margin: 0 0 8px; color: var(--muted); font-size: 0.93rem; }
.event-card p:last-child { margin-bottom: 0; }
.event-card .members-note { color: var(--red); font-weight: 700; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* Calendrier des sorties */
.calendar-wrap { margin-top: 22px; }
.calendar-header {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-bottom: 14px;
}
.calendar-header .cal-month-label {
  font-weight: 700; color: var(--navy); font-size: 1.05rem;
  text-transform: capitalize; min-width: 170px; text-align: center;
}
.cal-nav {
  background: var(--cream); border: none; color: var(--navy);
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; line-height: 1;
}
.cal-nav:hover { background: var(--border); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-grid .cal-weekday {
  text-align: center; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  color: var(--muted); letter-spacing: 0.04em; padding-bottom: 4px;
}
.calendar-day {
  position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 0.9rem; color: var(--ink); background: #fff;
  border: 1px solid var(--border);
}
.calendar-day.empty { background: transparent; border: none; }
.calendar-day.today { border-color: var(--navy); font-weight: 700; }
.calendar-day.has-event { cursor: pointer; background: var(--cream); font-weight: 700; color: var(--navy); }
.calendar-day.has-event:hover { background: var(--border); }
.calendar-day.selected { background: var(--navy); color: #fff; }
.calendar-day .cal-dot {
  position: absolute; bottom: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}
.calendar-day.selected .cal-dot { background: #fff; }
.calendar-empty-note { text-align: center; color: var(--muted); font-size: 0.86rem; margin-top: 10px; }
@media (max-width: 520px) {
  .calendar-day { font-size: 0.8rem; }
  .calendar-header .cal-month-label { min-width: 140px; font-size: 0.95rem; }
}

.form-card { background: var(--card); border-radius: 16px; box-shadow: 0 1px 3px rgba(20,30,50,0.08); overflow: hidden; }
.form-body { padding: 20px 28px 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label.field-label { display: block; font-size: 0.88rem; font-weight: 600; margin: 14px 0 6px; color: var(--ink); }
label.field-label .req { color: var(--red); }
input[type="text"], input[type="date"], input[type="tel"], input[type="email"] {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; background: #fff; color: var(--ink);
}
select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 6px 0 4px; }
.choice { display: flex; align-items: center; gap: 8px; font-size: 0.93rem; }
.choice input { width: 16px; height: 16px; flex: none; }
.submit-zone { padding: 26px 28px 30px; text-align: center; background: var(--cream); }
.submit-note { margin-top: 14px; font-size: 0.82rem; color: var(--muted); max-width: 480px; margin: 14px auto 0; }
