/* La Maison du Vélo Marseille Blancarde — direction artistique v2
   Palette dérivée du logo existant, typographie éditoriale, mise en page
   pensée comme un site associatif "pro" plutôt qu'une suite de flyers. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette — verts/terracotta sobres tirés du logo, plus posés que les flyers */
  --green-900: #16382a;
  --green-700: #245c3f;
  --green-500: #3a7a56;
  --terracotta: #c1552f;
  --terracotta-dark: #a3421f;
  --gold: #cc9a4a;
  --ink: #211f1a;
  --paper: #faf8f3;
  --paper-alt: #f1ece1;
  --cream-card: #ffffff;
  --border: #e6dfd0;
  --shadow-sm: 0 1px 2px rgba(22, 56, 42, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(22, 56, 42, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(22, 56, 42, 0.35);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --max-width: 1180px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16.5px;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--terracotta); }

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ── Header ──────────────────────────────────── */

.site-header {
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 42px; width: auto; }

.nav-toggle { display: none; }

.nav-toggle-label {
  display: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  color: var(--green-900);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.6rem;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.05rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--green-900);
  border-bottom-color: var(--terracotta);
}

@media (max-width: 820px) {
  .nav-toggle-label { display: block; }

  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--border);
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }

  nav.main-nav ul { flex-direction: column; gap: 0; }
  nav.main-nav a { display: block; padding: 0.65rem 0.1rem; }
  .nav-toggle:checked ~ nav.main-nav { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* ── Hero ────────────────────────────────────── */

.hero {
  position: relative;
  color: #fff;
  min-height: min(78vh, 620px);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 30%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 56, 42, 0.35) 0%, rgba(22, 56, 42, 0.55) 55%, rgba(15, 36, 27, 0.92) 100%);
}

.hero-inner {
  position: relative;
  padding-block: 3.5rem 3rem;
  max-width: 46rem;
}

.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero p {
  max-width: 52ch;
  font-size: 1.08rem;
  opacity: 0.94;
  margin-bottom: 1.6rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.hero .address {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  font-size: 0.92rem;
  opacity: 0.9;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1rem;
}

/* ── Boutons ─────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--green-700);
  color: var(--green-900);
}
.btn-outline:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }

/* ── Sections ────────────────────────────────── */

section { padding-block: 3.5rem; }
.alt-bg { background: var(--paper-alt); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head .kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
}

.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ── Cartes événements ───────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--cream-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border);
}

a.card:hover, a.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
a.card:hover .card-media img { transform: scale(1.06); }

.card-date {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  background: var(--green-900);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.card-body { padding: 1.25rem 1.35rem 1.5rem; }
.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.card-body p { margin: 0; font-size: 0.93rem; color: #4a463c; }

/* ── Programme hebdomadaire (liste) ─────────────*/

.schedule-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.schedule-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.schedule-thumb {
  width: 88px; height: 66px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.schedule-thumb img { width: 100%; height: 100%; object-fit: cover; }

.schedule-info h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.schedule-info p { margin: 0; font-size: 0.88rem; color: #55503f; }

.schedule-when {
  text-align: right;
  font-size: 0.85rem;
  color: var(--green-900);
  font-weight: 700;
  white-space: nowrap;
}
.schedule-when small {
  display: block;
  font-weight: 500;
  color: #746f5e;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

@media (max-width: 640px) {
  .schedule-row { grid-template-columns: 64px 1fr; }
  .schedule-when { grid-column: 1 / -1; text-align: left; padding-left: 76px; margin-top: -0.4rem; }
  .schedule-thumb { width: 64px; height: 48px; }
}

/* ── Bandeau intro (qui sommes-nous) ────────────*/

.intro-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-band .kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.intro-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.intro-band p { color: #423e33; margin-bottom: 1rem; }

.intro-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.intro-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; }

@media (max-width: 860px) {
  .intro-band { grid-template-columns: 1fr; gap: 1.75rem; }
  .intro-figure { order: -1; }
}

/* ── Page événement ─────────────────────────── */

.event-hero {
  background: var(--green-900);
  color: #fff;
  padding-block: 2.75rem 2.25rem;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}
.breadcrumb:hover { color: #fff; }

.event-hero .card-date {
  position: static;
  display: inline-block;
  background: var(--terracotta);
  margin-bottom: 1rem;
}

.event-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  max-width: 30ch;
}

.event-body-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3rem;
  align-items: start;
  padding-block: 3rem;
}

.event-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: -5rem;
  border: 6px solid var(--paper);
}

.event-content p { margin: 0 0 1.1rem; color: #322f27; }
.event-content ul { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.event-content li { margin-bottom: 0.5rem; color: #322f27; }
.event-content h2 { font-size: 1.3rem; margin: 1.75rem 0 0.85rem; }

.callout {
  background: #fff7ec;
  border: 1px solid #ecd6ab;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.callout p { margin: 0 0 0.5rem; color: #4a3d20; }
.callout p:last-child { margin-bottom: 0; }

.event-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.event-side {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.event-side h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 0.9rem;
}
.event-side dl { margin: 0; }
.event-side dt { font-size: 0.78rem; color: #746f5e; margin-top: 0.9rem; }
.event-side dt:first-child { margin-top: 0; }
.event-side dd { margin: 0.15rem 0 0; font-weight: 600; color: var(--ink); }

@media (max-width: 900px) {
  .event-body-wrap { grid-template-columns: 1fr; }
  .event-figure { margin-top: -3.5rem; }
}

/* ── Footer ──────────────────────────────────── */

.site-footer {
  background: var(--green-900);
  color: #d9e2da;
  margin-top: 2rem;
  padding-block: 3rem 1.75rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a9c2ac;
  margin-bottom: 1rem;
}

.footer-logo-card {
  display: inline-block;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.footer-logo-card img { height: 34px; display: block; }
.footer-brand p { color: #b9c7ba; max-width: 32ch; }

.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav a {
  color: #d9e2da;
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}
.site-footer nav a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: #9db19f;
  font-size: 0.82rem;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
