@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --cream: #F7F4EE;
  --warm-dark: #2C2416;
  --terracotta: #C4623A;
  --sage: #5A7A5E;
  --gold: #D4A84B;
  --line: rgba(44,36,22,0.12);
  --muted: rgba(44,36,22,0.55);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--warm-dark); font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV DESKTOP ── */
nav { position: sticky; top: 0; z-index: 200; background: var(--cream); border-bottom: 1px solid var(--line); height: var(--nav-h); }

.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }

.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; flex-shrink: 0; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }

.nav-links a { font-size: 12px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.6; transition: opacity 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }

/* ── HAMBURGER ── */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; z-index: 210; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--warm-dark); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; transform-origin: center; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── OVERLAY ── */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(44,36,22,0.35); z-index: 190; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.nav-overlay.visible { opacity: 1; pointer-events: auto; }

/* ── NAV MOBILE ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-overlay { display: block; }

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(280px, 80vw);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: calc(var(--nav-h) + 1.5rem) 2rem 2rem;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 200;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(44,36,22,0.08);
  }

  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem 0; font-size: 14px; letter-spacing: 0.05em; opacity: 0.75; border-bottom: 1px solid var(--line); }
  .nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--terracotta); }
}

/* ── HERO ── */
.hero { padding: 5rem 2rem 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; border-bottom: 1px solid var(--line); max-width: 1100px; margin: 0 auto; }
.hero-eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta); font-weight: 500; margin-bottom: 1rem; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3rem; line-height: 1.15; margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero-sub { font-size: 15px; color: var(--muted); max-width: 380px; margin-bottom: 2rem; }
.hero-visual { aspect-ratio: 4/3; overflow: hidden; background: var(--sage); display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-placeholder { font-family: 'Playfair Display', serif; font-size: 5rem; color: rgba(255,255,255,0.15); }

/* ── BUTTONS ── */
.btn-primary { display: inline-block; background: var(--warm-dark); color: var(--cream); padding: 0.75rem 1.8rem; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; border: none; cursor: pointer; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.85; }
.btn-outline { display: inline-block; border: 1px solid var(--warm-dark); color: var(--warm-dark); padding: 0.6rem 1.4rem; font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; transition: all 0.2s; }
.btn-outline:hover { background: var(--warm-dark); color: var(--cream); }

/* ── SECTIONS ── */
.section { padding: 3.5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-white { background: white; }
.section-white .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; flex-wrap: wrap; gap: 0.5rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 600; }
.section-link { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); font-weight: 500; white-space: nowrap; }

/* ── AGENDA (style lemem) ── */
.agenda-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn { padding: 0.35rem 1rem; font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid var(--line); background: white; cursor: pointer; color: var(--muted); transition: all 0.15s; font-family: 'DM Sans', sans-serif; }
.filter-btn:hover { border-color: var(--warm-dark); color: var(--warm-dark); }
.filter-btn.active { background: var(--warm-dark); color: var(--cream); border-color: var(--warm-dark); }

.agenda-month { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; padding: 1.8rem 0 0.8rem; border-bottom: 2px solid var(--warm-dark); margin-bottom: 0; text-transform: capitalize; }

.agenda-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 1.5rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); transition: background 0.15s; cursor: default; }
.agenda-row:hover { background: rgba(196,98,58,0.03); }

.agenda-day { text-align: center; }
.agenda-day-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 600; line-height: 1; color: var(--terracotta); }
.agenda-day-label { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.agenda-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; line-height: 1.3; }
.agenda-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: center; }
.agenda-tag { font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; background: var(--cream); color: var(--sage); border: 1px solid rgba(90,122,94,0.25); }

.agenda-price-col { text-align: right; flex-shrink: 0; }
.agenda-price { font-size: 12px; font-weight: 500; color: var(--sage); white-space: nowrap; }

/* ── EVENTS grid (accueil) ── */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.event-card { border: 1px solid var(--line); padding: 1.4rem; background: white; transition: border-color 0.2s; }
.event-card:hover { border-color: var(--terracotta); }
.event-date { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); font-weight: 500; margin-bottom: 0.5rem; }
.event-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.event-location { font-size: 12px; color: var(--muted); }
.event-price { display: inline-block; margin-top: 0.8rem; font-size: 11px; background: var(--cream); padding: 2px 8px; color: var(--sage); font-weight: 500; }

/* ── ACTIVITIES ── */
.activities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.activity-card { padding: 1.5rem 1rem; text-align: center; border: 1px solid var(--line); background: var(--cream); transition: border-color 0.2s, transform 0.2s; }
.activity-card:hover { border-color: var(--terracotta); transform: translateY(-2px); }
.activity-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.activity-name { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.activity-meta { font-size: 11px; color: var(--muted); }

/* ── NEWS ── */
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.news-date-block { text-align: center; border: 1px solid var(--line); padding: 0.6rem 0.5rem; background: white; }
.news-day { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 600; line-height: 1; color: var(--terracotta); }
.news-month { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.news-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.news-excerpt { font-size: 13px; color: var(--muted); }

/* ── MEMBERS ── */
.members-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.member-card { text-align: center; padding: 2rem 1rem; border: 1px solid var(--line); background: white; }
.member-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--sage); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 500; margin: 0 auto 1rem; font-family: 'Playfair Display', serif; }
.member-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.2rem; }
.member-role { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--terracotta); font-weight: 500; margin-bottom: 0.5rem; }
.member-bio { font-size: 13px; color: var(--muted); }

/* ── PAGE HERO ── */
.page-hero { padding: 3rem 2rem; border-bottom: 1px solid var(--line); max-width: 1100px; margin: 0 auto; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); max-width: 500px; }

.empty-state { text-align: center; padding: 3rem; color: var(--muted); font-size: 14px; }

/* ── FOOTER ── */
footer { padding: 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 12px; color: var(--muted); max-width: 1100px; margin: 2rem auto 0; }

/* ══ TABLETTE ══ */
@media (max-width: 900px) {
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.5rem; }
}

/* ══ MOBILE ══ */
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; padding: 2.5rem 1.2rem 2rem; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 2rem 1.2rem; }
  .page-hero { padding: 2rem 1.2rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .events-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .members-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 70px 1fr; gap: 1rem; }
  footer { flex-direction: column; text-align: center; padding: 1.5rem 1.2rem; }

  .agenda-row { grid-template-columns: 55px 1fr; }
  .agenda-price-col { grid-column: 2; text-align: left; }
  .agenda-filters { gap: 0.4rem; }
  .filter-btn { font-size: 11px; padding: 0.3rem 0.7rem; }
}
