:root {
  --blue: #2196f3;
  --blue-dark: #1976d2;
  --blue-light: #bbdefb;
  --blue-bg: #e3f2fd;
  --accent: #ffc107;
  --accent-dark: #ffa000;
  --text: #263238;
  --text-muted: #607d8b;
  --bg: #f4f6f8;
  --white: #ffffff;
  --border: #cfd8dc;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin-top: 0; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; color: var(--blue-dark); }
h3 { font-size: 1.2rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand small {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 0.15rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.5rem 0;
}

.site-nav a {
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.15s ease;
}

.site-nav a:hover { background-color: rgba(255, 255, 255, 0.15); text-decoration: none; }
.site-nav a.active { background-color: var(--bg); color: var(--blue-dark); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-bg) 100%);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.hero-inner { max-width: 800px; margin: 0 auto; }

.hero h1 {
  color: var(--blue-dark);
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-primary { background-color: var(--blue); color: var(--white); }
.btn-primary:hover { background-color: var(--blue-dark); }

.btn-accent { background-color: var(--accent); color: var(--text); }
.btn-accent:hover { background-color: var(--accent-dark); }

.btn-outline { background-color: transparent; color: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline:hover { background-color: var(--blue-dark); color: var(--white); }

/* ---------- Layout général ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section { padding: 2.5rem 0; }
.section + .section { border-top: 1px solid var(--border); }

.card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--blue-bg);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-dark);
  display: block;
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  display: block;
}

/* ---------- Highlight box ---------- */
.highlight {
  background: linear-gradient(135deg, var(--blue-bg) 0%, var(--white) 100%);
  border-left: 4px solid var(--blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.highlight h3 { margin-top: 0; color: var(--blue-dark); }

/* ---------- Timeline (histoire) ---------- */
.timeline { position: relative; padding-left: 2rem; margin: 2rem 0; }

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--blue-light);
}

.timeline-item { position: relative; margin-bottom: 1.75rem; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-light);
}

.timeline-year { font-weight: 700; color: var(--blue-dark); }

/* ---------- Events ---------- */
.event {
  display: flex;
  gap: 1.25rem;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  align-items: flex-start;
}

.event-date {
  flex-shrink: 0;
  width: 70px;
  text-align: center;
  padding: 0.5rem;
  background-color: var(--blue-bg);
  color: var(--blue-dark);
  border-radius: var(--radius);
}

.event-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.event-date .day { font-size: 1.5rem; font-weight: 700; display: block; }
.event-date .year { font-size: 0.8rem; color: var(--text-muted); }

.event-body h3 { margin-bottom: 0.25rem; }
.event-body p { margin: 0.25rem 0; color: var(--text-muted); font-size: 0.95rem; }

.event.past { opacity: 0.75; }
.event.past .event-date { background-color: var(--border); color: var(--text-muted); }

/* ---------- Form ---------- */
form { max-width: 600px; }

.form-row { margin-bottom: 1rem; }

label { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.95rem; }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--white);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

textarea { resize: vertical; min-height: 140px; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--blue-dark);
  color: var(--white);
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-inner h4 { color: var(--white); margin-top: 0; font-size: 1rem; }
.footer-inner a { color: var(--blue-light); }
.footer-inner p { margin: 0.35rem 0; font-size: 0.95rem; opacity: 0.9; }

.footer-bottom {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 2.5rem 1rem; }
  .brand { font-size: 1.2rem; }
  .brand small { font-size: 0.8rem; }
  .site-nav a { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
  .container { padding: 1.5rem 1rem; }
  .event { flex-direction: column; }
  .event-date { width: 100%; display: flex; gap: 0.5rem; align-items: center; justify-content: center; }
  .event-date .day { font-size: 1.2rem; }
}
