/* Élan des cœurs — site vitrine. Couleurs reprises du logo et de la page de maintenance. */

:root {
  --bg: #fdfaf8;
  --surface: #ffffff;
  --navy: #264f65;
  --navy-deep: #1d3e50;
  --muted: #4f6b7a;
  --pink: #f1919b;
  --pink-soft: #fde9eb;
  --teal: #5fb8a0;
  --teal-soft: #e6f4ef;
  --line: #e9e1dc;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(38, 79, 101, 0.08);
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration-color: var(--pink); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy-deep);
}
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* --- En-tête ----------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px; padding-top: 8px; padding-bottom: 8px;
}
.brand img { width: 170px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: 10px;
  text-decoration: none; font-weight: 500;
}
.site-nav a:hover { background: var(--teal-soft); }
.site-nav a[aria-current="page"] { color: var(--navy-deep); box-shadow: inset 0 -2px 0 var(--pink); border-radius: 0; }

@media (max-width: 799px) {
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav .btn { margin-top: 8px; text-align: center; }
}
@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .brand img { width: 200px; }
}

/* --- Boutons ----------------------------------------------------------------- */

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff !important; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-pink { background: var(--pink); color: var(--navy-deep) !important; }
.btn-pink:hover { background: #ec7d89; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.site-nav .btn { padding: 10px 18px; }
.site-nav .btn:hover { background: var(--navy-deep); }

/* --- Sections ---------------------------------------------------------------- */

.section { padding: 56px 0; }
@media (min-width: 800px) { .section { padding: 88px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.rule { width: 48px; height: 3px; border: 0; border-radius: 2px; background: var(--pink); margin: 0 0 24px; }

/* --- Héros -------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(45rem 32rem at 10% 0%, rgba(95, 184, 160, 0.16), transparent 70%),
    radial-gradient(40rem 30rem at 95% 100%, rgba(241, 145, 155, 0.18), transparent 70%),
    var(--bg);
  padding: 48px 0 56px;
}
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero .tagline { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { max-width: 340px; margin: 0 auto; }
@media (min-width: 800px) {
  .hero { padding: 80px 0 96px; }
  .hero .wrap { grid-template-columns: 1.3fr 1fr; }
  .hero-art { max-width: 420px; }
}

.page-hero { padding: 48px 0 32px; background: radial-gradient(40rem 24rem at 10% 0%, rgba(95, 184, 160, 0.14), transparent 70%), var(--bg); }
@media (min-width: 800px) { .page-hero { padding: 72px 0 40px; } }

/* --- Grilles et cartes ---------------------------------------------------------- */

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-soft); color: var(--navy);
}
.card .icon svg { width: 26px; height: 26px; }
.card.pink .icon { background: var(--pink-soft); }

.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

.quote {
  border-left: 3px solid var(--pink); padding: 4px 0 4px 20px; margin: 0;
  font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--muted);
}

.people { list-style: none; padding: 0; margin: 0; }
.people li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.people li:last-child { border-bottom: 0; }
.people .role { color: var(--muted); }

.callout {
  border-radius: var(--radius); padding: 28px;
  background: linear-gradient(135deg, var(--teal-soft), var(--pink-soft));
  border: 1px solid var(--line);
}
.callout h2, .callout h3 { margin-bottom: 0.4em; }
.callout .actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 700;
}

/* --- Agenda ------------------------------------------------------------------- */

.events { display: grid; gap: 16px; }
.event {
  display: grid; gap: 16px; grid-template-columns: 72px 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.event-date {
  text-align: center; border-radius: 12px; background: var(--pink-soft);
  padding: 10px 4px; align-self: start; line-height: 1.1;
}
.event-date .day { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--navy-deep); }
.event-date .month { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.event h3 { margin-bottom: 0.3em; }
.event .meta { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.6em; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.event .btn { margin-top: 4px; padding: 10px 18px; }
.event .event-info { font-weight: 600; color: var(--navy-deep); }
.events-empty { color: var(--muted); }
.events-loading { color: var(--muted); font-style: italic; }

/* --- Pied de page --------------------------------------------------------------- */

.site-footer { background: var(--navy-deep); color: #dce8ee; padding: 48px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .grid { gap: 32px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; font-family: var(--sans); font-weight: 700; margin-bottom: 0.8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .tagline { font-family: var(--serif); font-style: italic; color: #fff; font-size: 1.1rem; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 32px; padding-top: 20px; font-size: 0.85rem; color: #a9c1cd; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
