/* ============================================================
   Trekinit (ASBL) - Feuille de style principale
   Style minimaliste, mobile-first, bleu-vert profondeur de
   la Meuse, vert sauge, orange chaleureux pour les CTA.
   ============================================================ */

:root {
  /* Couleurs */
  --primary: #1B4B5A;
  --primary-dark: #143a46;
  --primary-light: #2a5d6e;
  --sage: #6B9080;
  --sage-light: #e8efeb;
  --sage-dark: #4f735f;
  --accent: #E8871E;
  --accent-dark: #c9730f;
  --bg: #f6f7f5;
  --white: #ffffff;
  --text: #2B2B2B;
  --text-light: #555e63;
  --border: #dfe5e1;
  --shadow: 0 4px 20px rgba(27, 75, 90, 0.08);

  /* Typographie */
  --font-head: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

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

p {
  margin-bottom: 1rem;
}

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

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
}

.brand:hover {
  color: #fff;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  list-style: none;
}

.nav-links a {
  color: #dce9e4;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.btn-donate {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.1s;
}

.btn-donate:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-donate.active {
  color: #fff;
}

/* ============================================================
   BOUTONS GÉNÉRIQUES
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

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

.btn-accent {
  background: var(--accent);
  color: #fff;
}

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

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-sage {
  background: var(--sage);
  color: #fff;
}

.btn-sage:hover {
  background: var(--sage-dark);
  color: #fff;
}

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

.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 60%, #2f6a77 100%);
  color: #fff;
  padding: 4.5rem 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.2rem;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #dce9e4;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-illu {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Bandeau secondaire sous hero */
.hero-strip {
  background: var(--sage);
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

.hero-strip p {
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--sage-light);
}

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

.section-head .eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-head p {
  color: var(--text-light);
}

/* Page hero (sous-pages) */
.page-hero {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 3.2rem 0;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: #dce9e4;
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================================
   CARTES VALEURS
   ============================================================ */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.card .icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.1rem;
  color: var(--accent);
}

.card h3 {
  color: var(--primary);
}

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

/* ============================================================
   STATISTIQUES
   ============================================================ */
.stats {
  background: var(--primary);
  color: #fff;
  padding: 3rem 0;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat span {
  color: #dce9e4;
  font-size: 0.95rem;
}

/* ============================================================
   CARTES ACTIVITÉS
   ============================================================ */
.activity-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.activity-card .illu {
  background: var(--sage-light);
  padding: 1.5rem;
}

.activity-card .content {
  padding: 1.5rem 1.6rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-card .content p {
  color: var(--text-light);
  flex: 1;
}

.tag {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  width: fit-content;
}

/* ============================================================
   CONTENU DE PAGE (about/mission/legal/etc.)
   ============================================================ */
.content-block {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.content-block h2 {
  border-left: 4px solid var(--accent);
  padding-left: 0.9rem;
}

.content-block ul,
.content-block ol {
  margin-left: 1.4rem;
  margin-bottom: 1rem;
}

.content-block li {
  margin-bottom: 0.5rem;
}

.content-block .sub {
  color: var(--text-light);
}

.quote-block {
  background: var(--sage-light);
  border-left: 5px solid var(--sage);
  padding: 1.5rem 1.8rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text);
}

/* Tableau info */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.info-table th {
  background: var(--sage-light);
  color: var(--primary);
  width: 32%;
  font-weight: 600;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1.1rem;
  background: var(--white);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--sage);
  border-color: transparent;
}

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

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.contact-details .detail {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.contact-details .detail svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}

.contact-details .detail b {
  display: block;
  color: var(--primary);
}

/* ============================================================
   DONATION / JOIN BOXES
   ============================================================ */
.highlight-box {
  background: var(--sage-light);
  border: 1px solid var(--sage);
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
}

.donate-steps {
  counter-reset: step;
}

.donate-steps .step {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.6rem;
}

.donate-steps .step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ============================================================
   CTA FINAL (bas de page)
   ============================================================ */
.cta-banner {
  background: linear-gradient(120deg, var(--sage) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 3.2rem 0;
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner p {
  color: #eaf2ee;
  max-width: 640px;
  margin: 0 auto 1.8rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-dark);
  color: #c4d6cf;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: #c4d6cf;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-about p {
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-contact p {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  transition: background 0.2s;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
}

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

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

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

/* ============================================================
   BANDEAU COOKIES
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 1rem 1.25rem;
  z-index: 200;
  display: none;
}

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

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.92rem;
}

.cookie-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-illu { margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0 0.5rem;
  }

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

  .nav-links .btn-donate {
    width: 100%;
    text-align: center;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
