/* Couleurs provisoires : à remplacer par celles du collectif. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2a2e;
  --muted: #5b6b70;
  --accent: #2f7d6d;
  --accent-text: #ffffff;
  --border: #e3e0d8;
  --max: 64rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a1c;
    --surface: #1c2427;
    --text: #e8ecec;
    --muted: #a3b1b4;
    --accent: #6cc4b0;
    --accent-text: #0e1a17;
    --border: #2c373a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem; z-index: 10; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem;
}
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand span, h1 span { color: var(--accent); }
nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus { color: var(--accent); }

/* Bandeau */
.hero { padding: 4rem 0 3rem; border-bottom: 1px solid var(--border); }
h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); line-height: 1.1; margin: 0 0 1rem; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 40rem; }
.button {
  display: inline-block; padding: .7rem 1.4rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600;
}

/* Sections */
main section:not(.hero) { padding-top: 3rem; padding-bottom: 1rem; }
h2 { font-size: 1.75rem; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 .25rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.cards li {
  background: var(--surface); border: 1px solid var(--border); border-radius: .75rem; padding: 1.25rem;
}
.cards p { margin: 0; color: var(--muted); }

.meeting {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: .75rem; padding: 1.5rem;
}
.meeting p { margin: 0 0 .75rem; }
.meeting p:last-child { margin-bottom: 0; color: var(--muted); }
.meeting .when { font-size: 1.5rem; line-height: 1.3; }
.meeting .when strong { color: var(--accent); }

.press { list-style: none; padding: 0; margin: 0; }
.press li { border-bottom: 1px solid var(--border); }
.press a { display: block; padding: .6rem 0; color: var(--text); text-decoration: none; }
.press li:first-child a { padding-top: 0; }
.press .outlet { font-size: 1.15rem; font-weight: 700; }
.press a > i, .press time { font-size: .9rem; color: var(--muted); }
.press time::before { content: "· "; }
.press .headline { display: block; margin-top: .1rem; font-size: .95rem; color: var(--accent); }
.press a:hover .headline, .press a:focus .headline { text-decoration: underline; }

.map { margin: 1rem 0 0; }
.map iframe {
  display: block; width: 100%; height: clamp(16rem, 60vw, 24rem); border: 1px solid var(--border); border-radius: .75rem;
}
.map figcaption { margin-top: .4rem; font-size: .9rem; color: var(--muted); }

/* Pied de page */
.site-footer { margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
