/* ============================================================
   MUSIC VIBES ASBL — Feuille de style principale
   Palette :
   - Primaire  : #2E1F4D (violet indigo profond)
   - Secondaire: #3FC1C9 (turquoise vif)
   - Accent    : #E8397A (magenta vif)
   - Fond      : #F7F5FA (blanc cassé / gris très clair)
   - Texte     : #2B2B2B (gris anthracite)
   ============================================================ */

:root {
  --primary: #2E1F4D;
  --primary-dark: #221544;
  --primary-soft: #3B2A63;
  --secondary: #3FC1C9;
  --secondary-dark: #2FA6AD;
  --accent: #E8397A;
  --accent-dark: #D22D6B;
  --bg: #F7F5FA;
  --bg-soft: #EFECF4;
  --text: #2B2B2B;
  --text-light: #6B6B6B;
  --white: #FFFFFF;
  --border: #E4DFEC;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(46, 31, 77, 0.10);
  --shadow-lg: 0 16px 50px rgba(46, 31, 77, 0.18);
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typographie ---------- */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--primary);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-light);
}

.section {
  padding: 4rem 0;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary-dark);
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(232, 57, 122, 0.35);
}

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

.btn-secondary {
  background: var(--secondary);
  color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(63, 193, 201, 0.3);
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-primary-solid {
  background: var(--primary);
  color: var(--white);
}

.btn-primary-solid:hover {
  background: var(--primary-soft);
  color: var(--white);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(46, 31, 77, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.7rem 20px;
  gap: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--primary);
}

.brand .brand-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-menu > li > a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.nav-menu > li > a:hover {
  color: var(--primary);
  background: var(--bg-soft);
}

.nav-menu > li > a[aria-current="page"] {
  color: var(--primary);
  background: var(--bg-soft);
}

.nav-menu .btn-accent {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--primary);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-soft) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(63, 193, 201, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(232, 57, 122, 0.18) 0%, transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.1rem;
}

.hero h1 .accent-word {
  color: var(--secondary);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art svg {
  width: 100%;
  max-width: 460px;
  height: auto;
}

/* ---------- Trust bar / bande info ---------- */
.info-bar {
  background: var(--secondary);
  color: var(--primary-dark);
}

.info-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.info-bar-inner span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Values cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  font-size: 0.94rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ---------- Stats ---------- */
.stats-section {
  background: var(--primary);
  color: var(--white);
}

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

.stat-value {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.stat-note {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Two-column split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-art {
  display: flex;
  justify-content: center;
}

.split-art svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.split h2 {
  margin-bottom: 1rem;
}

.split ul.check-list {
  margin: 1.2rem 0;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32rem;
  width: 1.05rem;
  height: 1.05rem;
  background: var(--secondary);
  border-radius: 50%;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}

/* ---------- Programs ---------- */
.program-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.program-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.6rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.program-item .program-ic {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.program-item .program-ic svg {
  width: 26px;
  height: 26px;
}

.program-item h3 {
  font-size: 1.1rem;
}

.program-item p {
  font-size: 0.94rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.program-item .program-ic.turquoise { background: var(--secondary); color: var(--primary-dark); }
.program-item .program-ic.magenta { background: var(--accent); }
.program-item .program-ic.indigo { background: var(--primary); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #c81e5c 100%);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: 3.2rem 2rem;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 46rem;
  margin: 0.8rem auto 1.6rem;
}

.cta-banner .btn-outline {
  border-color: rgba(255, 255, 255, 0.9);
}

/* ---------- Page header (pages internes) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-soft) 100%);
  color: var(--white);
  padding: 4.5rem 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 44rem;
  margin: 0 auto;
}

.breadcrumb {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: var(--secondary);
}

/* ---------- Content prose (pages légales) ---------- */
.prose {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow);
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.4rem;
}

.prose p,
.prose li {
  font-size: 0.98rem;
  color: #3d3d3d;
}

.prose ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose .updated {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.92rem;
}

.prose table th,
.prose table td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.prose table th {
  background: var(--bg-soft);
  color: var(--primary);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.98rem;
  color: var(--text);
  background: #FDFCFE;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(63, 193, 201, 0.18);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
}

.form-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.form-info .info-box {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.form-info .info-box strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ---------- Map ---------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

#map {
  width: 100%;
  height: 380px;
}

.leaflet-popup-content a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Donation amounts ---------- */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.6rem 0;
}

.donation-option {
  text-align: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  font-weight: 700;
  color: var(--primary);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.donation-option:hover {
  border-color: var(--secondary);
}

/* ---------- Social icons ---------- */
.social-links {
  display: flex;
  gap: 0.7rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.social-links a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand .brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer-brand .brand-icon svg {
  width: 22px;
  height: 22px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

.site-footer ul li {
  margin-bottom: 0.45rem;
}

.site-footer ul a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.site-footer ul a:hover {
  color: var(--secondary);
}

.site-footer .footer-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-bottom .legal-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom .legal-links a:hover {
  color: var(--secondary);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-banner .btn {
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
}

.back-top.show {
  display: inline-flex;
}

.back-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    padding: 3.5rem 0;
  }

  .hero .lead {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem 0 0.4rem;
    border-top: 1px solid var(--border);
    margin-top: 0.6rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu > li > a {
    display: block;
    text-align: center;
    padding: 0.7rem;
  }

  .nav-menu .btn-accent {
    margin: 0.5rem 0 0;
    width: 100%;
  }

  .section {
    padding: 3rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .back-top,
  .cookie-banner {
    display: none !important;
  }

  body {
    background: var(--white);
  }
}
