/* =========================================================
   Créationade — feuille de style principale
   Palette extraite du logo de l'association :
   bleu #0058A6 · violet #B665D1 · jaune #FAE000
   ========================================================= */

:root {
  --blue: #0058A6;
  --blue-dark: #003E77;
  --blue-light: #E6F0FA;
  --purple: #B665D1;
  --purple-dark: #8B45A8;
  --purple-light: #F5E9FB;
  --yellow: #FAE000;
  --yellow-light: #FFF6D2;
  --pink: #E8368F;
  --pink-light: #FCE3F0;

  --bg: #FDFEFF;
  --bg-alt: #F3F7FC;
  --text: #1C2733;
  --text-light: #52606F;
  --white: #FFFFFF;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 62, 119, 0.10);
  --shadow-sm: 0 4px 14px rgba(0, 62, 119, 0.08);

  --container: 1180px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--blue-dark);
  line-height: 1.2;
  margin: 0 0 16px;
}

h2.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 8px;
}

.section-kicker {
  display: block;
  text-align: center;
  color: var(--purple-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  color: var(--text-light);
  font-size: 1.05rem;
}

section { padding: 88px 0; scroll-margin-top: 108px; }
section.alt { background: var(--bg-alt); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-light); }
.btn-purple { background: var(--purple); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-purple:hover { background: var(--purple-dark); }
.btn-ghost { background: transparent; color: var(--blue); border-color: currentColor; padding: 10px 20px; font-size: 0.92rem; }
.btn-ghost:hover { background: var(--blue-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(253, 254, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 62, 119, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-link img { height: 84px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--blue-light); }
.main-nav a.nav-cta {
  background: var(--purple);
  color: var(--white);
  margin-left: 6px;
}
.main-nav a.nav-cta:hover { background: var(--purple-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--blue-light); }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 80px;
  background: radial-gradient(circle at 85% 10%, rgba(250, 224, 0, 0.18), transparent 45%),
              linear-gradient(180deg, var(--blue-light) 0%, var(--bg) 75%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 52ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure {
  position: relative;
}
.hero-figure img {
  width: 100%;
  border-radius: 24px;
}

/* ---------- Le projet ---------- */
.projet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.projet-figure {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--purple-light) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.projet-figure img { width: 100%; max-width: 340px; }
.projet-text p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 18px; }
.projet-text p:last-child { margin-bottom: 0; }

/* ---------- Bandeau logo ---------- */
.logo-banner {
  padding: 56px 0;
  background: var(--purple-light);
  text-align: center;
  scroll-margin-top: 108px;
}
.logo-banner-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.logo-banner-img { height: 250px; width: auto; display: block; margin: 0 auto; }

/* ---------- Objectifs ---------- */
.objectifs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.objectif-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.objectif-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.objectif-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.objectif-icon svg { width: 40px; height: 40px; }
.objectif-icon img { width: 46px; height: 46px; object-fit: contain; }
.objectif-card.blue .objectif-icon { background: var(--blue-light); color: var(--blue); }
.objectif-card.purple .objectif-icon { background: var(--purple-light); color: var(--purple); }
.objectif-card.yellow .objectif-icon { background: var(--yellow-light); }
.objectif-card.pink .objectif-icon { background: var(--pink-light); }
.objectif-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.objectif-card p { color: var(--text-light); margin: 0; }

/* ---------- Inclusion ---------- */
.inclusion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}
.inclusion-text p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 16px; }
.inclusion-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.inclusion-figure figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 10px;
  font-style: italic;
}

.checklist-title { text-align: center; margin-bottom: 28px; font-size: 1.3rem; }
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.checklist .num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.checklist span.txt { color: var(--text-light); }

/* ---------- Témoignages ---------- */
.temoignage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.temoignage-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
}
.temoignage-quote {
  font-size: 3rem;
  color: var(--purple);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 6px;
}
.temoignage-card p.poeme {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  white-space: pre-line;
  margin-bottom: 20px;
}
.temoignage-author { font-weight: 700; color: var(--blue-dark); }
.temoignage-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Cartes actualités / événements ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-light); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-date {
  display: inline-flex;
  align-self: flex-start;
  background: var(--purple-light);
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
}
.card-body h3 { font-size: 1.15rem; margin-bottom: 0; }
.card-body p.card-lieu { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.card-body p.card-resume { color: var(--text-light); margin: 0; flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: 6px; }

.empty-state {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 56px 32px;
  box-shadow: var(--shadow-sm);
}
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { color: var(--text-light); margin-bottom: 22px; }

/* ---------- Soutenir ---------- */
.soutenir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.soutenir-card {
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
  box-shadow: var(--shadow);
}
.soutenir-card.don { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }
.soutenir-card.rejoindre { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%); }
.soutenir-card h3 { color: var(--white); font-size: 1.4rem; }
.soutenir-card p { opacity: 0.95; margin-bottom: 24px; }
.soutenir-card .btn { background: var(--white); color: var(--blue-dark); }
.soutenir-card.rejoindre .btn { color: var(--purple-dark); }
.soutenir-card .btn:hover { background: var(--yellow); }

/* ---------- Partenaires ---------- */
.partenaires-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}
.partenaire-logo {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.partenaire-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partenaire-logo img { height: 72px; width: auto; max-width: 260px; object-fit: contain; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand img {
  height: 64px;
  margin-bottom: 14px;
  background: var(--white);
  border-radius: 14px;
  padding: 8px 14px;
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.2s ease;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--blue-dark);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.modal-close:hover { background: var(--white); }
.modal-media { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 32px; }
.modal-content .card-date { margin-bottom: 12px; }
.modal-content h2 { font-size: 1.5rem; margin-bottom: 6px; }
.modal-content p.modal-lieu { color: var(--text-light); margin-bottom: 22px; font-size: 0.92rem; }
.modal-content p { color: var(--text-light); margin-bottom: 16px; }

body.modal-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 420px; margin: 0 auto; }
  .projet-grid { grid-template-columns: 1fr; }
  .projet-figure { order: -1; }
  .inclusion-grid { grid-template-columns: 1fr; }
  .temoignage-grid { grid-template-columns: 1fr; }
  .temoignage-figure { order: -1; max-width: 380px; margin: 0 auto; }
  .objectifs-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .soutenir-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .logo-banner { padding: 36px 0; }
  .logo-banner-circle { width: 220px; height: 220px; }
  .logo-banner-img { height: 150px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0,62,119,0.08);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 70vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .main-nav a { padding: 13px 14px; }
  .main-nav a.nav-cta { margin-left: 0; text-align: center; margin-top: 8px; }
  .objectifs-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .temoignage-card { padding: 28px 22px; }
  .modal-content { padding: 24px; }
}
