/* ==========================================================================
   'N Joy VZW — Feuille de style principale
   Design minimaliste et professionnel — associé à la vie associative locale
   ========================================================================== */

:root {
  --primary: #1F3A5F;
  --primary-dark: #162B47;
  --primary-light: #2E5284;
  --secondary: #E8735C;
  --secondary-dark: #D95B44;
  --accent: #F2B705;
  --accent-dark: #D9A004;
  --bg: #F7F7F5;
  --bg-alt: #FFFFFF;
  --text: #2B2B2B;
  --text-soft: #5A5A5A;
  --muted: #8A8A8A;
  --border: #E4E2DC;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(31, 58, 95, 0.08);
  --shadow-md: 0 6px 24px rgba(31, 58, 95, 0.10);
  --shadow-lg: 0 16px 40px rgba(31, 58, 95, 0.14);
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

img, svg { max-width: 100%; display: inline-block; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

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

ul { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }

strong { color: var(--primary-dark); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 2000;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  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-decoration: none;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

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

.btn-accent { background: var(--accent); color: var(--primary-dark); box-shadow: 0 4px 14px rgba(242, 183, 5, 0.35); }
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 6px 18px rgba(242, 183, 5, 0.45); }

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

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

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

.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4rem; }

/* --------------------------------------------------------------------------
   En-tête / Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
}
.logo:hover { text-decoration: none; }
.logo .logo-dot { color: var(--secondary); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.97rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a.nav-link:hover { background: rgba(31, 58, 95, 0.07); color: var(--primary); }

.nav-donate { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: var(--white);
  padding: 72px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 15%, rgba(242, 183, 5, 0.16) 0, transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(232, 115, 92, 0.18) 0, transparent 32%);
}
.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero h1 { color: var(--white); max-width: 640px; }
.hero h1 .highlight { color: var(--accent); }

.hero p.lead { font-size: 1.12rem; max-width: 600px; color: rgba(255,255,255,0.9); margin-bottom: 1.6rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-art { text-align: center; }
.hero-art svg { width: 100%; max-width: 460px; height: auto; }

.hero-strip {
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 56px;
  padding: 18px 0;
}
.hero-strip p { margin: 0; color: rgba(255,255,255,0.85); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tint { background: linear-gradient(180deg, #FDF6E8 0%, var(--bg) 100%); }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Cartes — Valeurs
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
}
.card-icon svg { width: 32px; height: 32px; }
.card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.card p { font-size: 0.95rem; color: var(--text-soft); margin: 0; }

.icon-blue { background: rgba(31, 58, 95, 0.09); }
.icon-coral { background: rgba(232, 115, 92, 0.12); }
.icon-gold { background: rgba(242, 183, 5, 0.16); }

/* --------------------------------------------------------------------------
   Statistiques
   -------------------------------------------------------------------------- */
.stats-band {
  background: var(--primary);
  color: var(--white);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat-value { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-label { color: rgba(255,255,255,0.88); font-size: 0.95rem; margin-top: 6px; }

/* --------------------------------------------------------------------------
   Bloc deux colonnes (illustration + texte)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media { text-align: center; }
.split-media svg { width: 100%; max-width: 420px; height: auto; }
.split-body h2 { margin-bottom: 16px; }
.split-body p { color: var(--text-soft); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(242, 183, 5, 0.25);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Activités — cartes horizontales
   -------------------------------------------------------------------------- */
.activity-list { display: grid; gap: 20px; }
.activity-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.activity-item svg { width: 100%; max-width: 120px; height: auto; }
.activity-item h3 { margin-bottom: 8px; }
.activity-item p { margin: 0; color: var(--text-soft); font-size: 0.96rem; }
.activity-item .num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Bandeau CTA
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, #FFC933 60%, #F2B705 100%);
  border-radius: 22px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--primary-dark); margin-bottom: 10px; }
.cta-band p { color: var(--primary-dark); opacity: 0.85; max-width: 620px; margin: 0 auto 1.4rem; }
.cta-band .btn-primary { box-shadow: 0 6px 18px rgba(31,58,95,0.35); }
.cta-band .btn-outline { border-color: var(--primary-dark); color: var(--primary-dark); }
.cta-band .btn-outline:hover { background: var(--primary-dark); color: var(--white); }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 640px;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--primary-dark); }
.form-row label .req { color: var(--secondary); }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(31,58,95,0.12);
  background: var(--white);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 5px; }

.form-note {
  font-size: 0.88rem;
  color: var(--text-soft);
  background: rgba(31,58,95,0.05);
  border-left: 3px solid var(--primary-light);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 16px;
}
.form-success {
  display: none;
  background: rgba(35, 142, 90, 0.12);
  border: 1px solid rgba(35, 142, 90, 0.4);
  color: #1E7A4D;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-weight: 500;
}
.form-success.visible { display: block; }

/* --------------------------------------------------------------------------
   Carte / Leaflet
   -------------------------------------------------------------------------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   Info boxes
   -------------------------------------------------------------------------- */
.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.info-box h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.info-box h3 svg { width: 26px; height: 26px; color: var(--secondary); flex-shrink: 0; }
.info-box p, .info-box li { color: var(--text-soft); }
.info-box ul { margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Page légale / contenu long
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(150deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 56px 0 48px;
}
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero p { color: rgba(255,255,255,0.85); margin: 10px 0 0; max-width: 720px; }
.page-hero .eyebrow { color: var(--accent); }

.legal-content { max-width: 820px; margin: 0 auto; padding: 56px 20px; }
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(242,183,5,0.5);
}
.legal-content h3 { margin-top: 1.4rem; font-size: 1.05rem; }
.legal-content p, .legal-content li { color: var(--text-soft); }
.legal-content .last-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.legal-content blockquote {
  margin: 1.2rem 0;
  padding: 16px 20px;
  background: var(--white);
  border-left: 4px solid var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* Timeline */
.timeline { position: relative; margin: 24px 0 0; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--secondary), var(--primary-light));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 22px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item .tl-date { font-weight: 700; color: var(--secondary); font-size: 0.92rem; }
.timeline-item .tl-title { font-weight: 700; color: var(--primary); }
.timeline-item p { color: var(--text-soft); margin: 4px 0 0; font-size: 0.95rem; }

/* Tableaux */
.data-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.95rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--primary); color: var(--white); font-weight: 600; }
.data-table tr:nth-child(even) td { background: var(--bg); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo { color: var(--white); }
.footer-brand p { font-size: 0.93rem; color: rgba(255,255,255,0.75); margin-top: 14px; }

.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.8); font-size: 0.93rem; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; fill: var(--white); }
.footer-social a:hover svg { fill: var(--primary-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.footer-bottom a { color: rgba(255,255,255,0.8); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal-links a { font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 20px 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a.nav-link { padding: 12px 14px; }
  .nav-donate { margin: 10px 0 0; text-align: center; }
  .section { padding: 56px 0; }
  .activity-item { grid-template-columns: 1fr; text-align: center; }
  .activity-item svg { margin: 0 auto; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { padding: 36px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover { transform: none; }
}
