/* =============================================
   DESIGN TOKENS — PALETTE OFFICIELLE
   ============================================= */
:root {
  --c-bg: #F6EED0;            /* Beige clair – fond du site */
  --c-text: #6a4e3e;          /* Marron foncé – textes, titres */
  --c-accent: #f5d08a;         /* Doré sable – accents, CTA */
  --c-accent-hover: #fce0a5;   /* Doré crème clair – hover des CTA */
  --c-white: #FFFFFF;          /* Blanc – cards, textes sur fond sombre */
  --gradient-dark: linear-gradient(135deg, #3d2b1f 0%, #6b4226 50%, #a07f50 100%);
}

/* --------- BASE --------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------- TOP BAR --------- */
.top-bar {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 20px;
  font-size: 12px;
  font-family: 'Kanit', sans-serif;
  display: flex;
  justify-content: flex-end;
}

.top-bar-links {
  display: flex;
  gap: 10px;
}

.top-bar-links a {
  color: rgb(106, 78, 62);
  text-decoration: none;
  padding: 2px 6px;
}

.top-bar-links a:hover {
  background-color: #f5deb3;
  color: rgb(241, 171, 113);
}

/* --------- HEADER --------- */
header {
  background: var(--c-bg);
  width: 100%;
  height: 5vh;
  display: flex;
  align-items: center;
  justify-items: center;
  font-size: 40px;
}

header a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 40px;
  text-align: center;
  width: 100%;
}

/* --------- LOGO ROTATION --------- */
#vero {
  display: block;
  background: var(--c-accent);
  width: 80px;
  height: 80px;
  transform: rotate(-35deg);
  border-radius: 40px;
  line-height: 80px;
  text-align: center;
  position: absolute;
  left: 50%;
  top: 30px;
  color: var(--c-bg);
}

/* --------- SLIDE --------- */
#slide {
  background: url(../images/globe.jpg) center center no-repeat;
  background-size: cover;
  width: 100%;
  height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  color: white;
  padding: 20px;
}
@media screen and (max-width: 768px) {
  #slide {
    background-position: center top;
    background-size: cover;
    height: 70vh; /* adapte si 95vh est trop grand sur mobile */
  }
}

/* Hero h1 uniquement (page d'accueil) — scopé pour ne pas leaker */
#slide h1 {
  color: var(--c-bg);
  font-size: clamp(42px, 12vw, 100px);
  margin-top: 30px;
}

#slide h1 + a {
  text-decoration: none;
  width: 300px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  background: var(--c-bg);
  color: rgb(0, 0, 0);
  display: block;
  border-radius: 10px;
  transition: .1s linear;
}

#slide h1 + a:hover {
  background: var(--c-accent);
  color: rgb(0, 0, 0);
}

/* --------- MAIN CONTENT --------- */
main {
  width: 100%;
}

/* --------- SECTION actions-row (inchangé) --------- */
.actions-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
}

.actions-row article {
  flex: 0 0 300px;
  background-color: var(--c-white);
  padding: 10px;
  box-shadow: 1px 1px 5px var(--c-accent);
  border-radius: 10px;
}

/* --------- ARTICLES (autres sections) --------- */
main section:not(.actions-row) {
  width: calc(100% - 4%);
  margin: 10px auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

main section:not(.actions-row) article {
  flex: 1 1 300px;
  padding: 10px;
  box-shadow: 1px 1px 5px var(--c-accent);
  background-color: var(--c-white);
  border-radius: 10px;
}

/* --------- ARTICLES IMAGES --------- */
article figure {
  width: 100%;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
}

article figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

/* --------- TEXTS --------- */
span {
  color: var(--c-accent);
}

h2 {
  margin: 20px 0;
  font-size: 24px;
}

/* --------- CITATIONS --------- */
.temoin {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 4px solid #d8b4a6;
  font-style: italic;
  color: #b39273;
  background-color: #f7e9d1;
  border-radius: 4px;
  box-sizing: border-box;
  max-width: 100%;
}

.temoin .auteur {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 600;
  color: #bd9d7e;
  font-size: 0.9em;
  text-align: right;
}

/* --------- SECTION SOURIS (Plan, Contact, Partenaires) --------- */
#souris {
  width: 100%;
  padding: 0 2%;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

#souris > div {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--c-bg);
  padding: 15px;
  min-width: 250px;
  overflow: hidden;
}

#souris > div > h2 {
  color: var(--c-accent);
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
}

#souris .plan-acces iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 10px;
}

#souris .contact p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  text-align: center;
}

/* Partenaires carousel inchangé */


.partenaires-carousel {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 40px;
  padding: 48px 0 24px;
  background: var(--c-bg);
}

.partenaires-carousel h2 {
  text-align: center;
  margin-bottom: 32px;
}

.partenaires-carousel .carousel-container {
  max-width: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  margin: 0 !important;
  background: transparent !important;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 60px;
}

.carousel-track {
  display: flex;
  gap: 20px; /* ✅ ESPACE MAÎTRISÉ */
  will-change: transform;
}

.carousel-item {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item img {
  height: 120px;
  width: auto;
  max-width: 100%;
  display: block;
}

/* Flèches */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 100;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Mobile */
@media (max-width: 768px) {
  .carousel-container {
    padding: 15px 35px;
  }

  .carousel-item {
    flex: 0 0 160px;
  }

  .carousel-item img {
    height: 70px;
  }
}


/* Responsive mobile */
@media (max-width: 768px) {
  .carousel-container {
    padding: 15px 35px;
  }

  .carousel-item {
    flex: 0 0 150px;
  }

  .carousel-item img {
    height: 65px;
  }

  .carousel-btn {
    font-size: 22px;
    padding: 8px 10px;
  }
}



/* --------- RESPONSIVE --------- */
@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 140px;
  }

  .carousel-item img {
    height: 65px;
  }
}

/* --------- RESPONSIVE : compléments mobile --------- */
@media (max-width: 600px) {
  #vero {
    position: static;
    transform: none;
    margin: 20px auto;
  }

  h1 {
    font-size: 40px;
    text-align: center;
  }

  h1 + a {
    width: 80%;
    max-width: 280px;
    margin: 15px auto 0;
    font-size: 16px;
  }

  .top-bar-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .actions-row {
    flex-direction: column;
    padding: 10px;
  }

  .actions-row article {
    flex: 1 1 100%;
    width: 100%;
  }

  main section:not(.actions-row) {
    flex-direction: column;
    gap: 20px;
  }

  main section:not(.actions-row) article {
    flex: 1 1 100%;
    width: 100%;
  }

  .engagement-options {
    flex-direction: column;
    align-items: center;
  }

  #planning {
    width: 100%;
    margin: 20px auto;
  }
}

/* --------- SECTION ENGAGEMENT --------- */
.engagement {
  background-color: var(--c-white);
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
  margin-top: 50px;
  border-radius: 10px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.engagement h2 {
  color: var(--c-accent);
  font-size: 28px;
  margin-bottom: 20px;
  font-family: "Kanit", sans-serif;
}

.engagement p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #444;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.engagement-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.btn-engage {
  background-color: var(--c-accent);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

.btn-engage:hover {
  background-color: var(--c-accent);
}

/* QR code discret dans la section engagement */
.mini-qrcode {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 11px;
  color: var(--c-accent);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.mini-qrcode:hover {
  opacity: 1;
}

.mini-qrcode img {
  width: 170px;
  height: 170px;
  border-radius: 4px;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.mini-qrcode img:hover {
  transform: scale(1.1);
}

/* --------- PLANNING --------- */
#planning {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: var(--c-white);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(172, 146, 82, 0.2);
  font-family: 'Montserrat', sans-serif;
  color: #4a423a;
}

#planning h2 {
  color: var(--c-text);
  font-family: 'Kanit', sans-serif;
}

#planning p em {
  font-style: italic;
  color: var(--c-text);
}

#planning a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: var(--c-accent);
  color: var(--c-white);
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

#planning a:hover {
  background-color: var(--c-accent);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--c-accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

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

/* --------- SECTION APPLICATION EN COURS --------- */
.app-coming {
  background-color: var(--c-white);
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
  margin: 50px auto;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  font-family: 'Montserrat', sans-serif;
}

.app-coming h2 {
  color: var(--c-accent);
  font-size: 28px;
  margin-bottom: 20px;
  font-family: 'Kanit', sans-serif;
}

.app-coming p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #444;
  line-height: 1.6;
}

.app-coming .suspense {
  font-style: italic;
  color: var(--c-accent);
  font-weight: bold;
}

.app-coming .btn-engage {
  margin-top: 15px;
}

/* --------- NOUVEAUX STYLES POUR LA GRILLE D’ACTIVITÉS --------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 10px;
}

.activity-card {
  background-color: var(--c-white);
  border-radius: 10px;
  box-shadow: 1px 1px 5px var(--c-accent);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.activity-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.activity-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid #d8b4a6;
  border-radius: 10px 10px 0 0;
}

.activity-card h2 {
  margin: 15px 10px 10px;
  font-size: 1.3rem;
}

.activity-card .voir-plus {
  margin: auto 10px 15px;
  padding: 10px 0;
  background-color: var(--c-accent);
  color: white;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.activity-card .voir-plus:hover {
  background-color: var(--c-accent);
}

/* Responsive */
@media (max-width: 900px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
}

.actions-row.two-columns {
  display: flex;
  gap: 40px;
  margin: 40px 0;
}

.actions-column {
  flex: 1;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 40px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
}

.actions-column h2 {
  font-weight: 500;
  margin-bottom: 15px;
}

.actions-column p {
  margin-bottom: 15px;
  line-height: 1.5;
}

.actions-column a.btn-engage {
  display: inline-block;
  padding: 10px 20px;
  background-color: #aa7f62ee;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}

.actions-column a.btn-engage:hover {
  background-color: #f5bc7b;
}

/* Responsive : empiler en dessous sur petit écran */
@media (max-width: 800px) {
  .actions-row.two-columns {
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .activity-card img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.stats-section {
  background-color: #f2f2f2;
  padding: 60px 20px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.stats-section h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #333;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.stat-box {
  background-color: white;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  width: 220px;
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.counter {
  font-size: 2.5em;
  font-weight: bold;
  color: #0099cc;
  display: block;
  margin-bottom: 10px;
}




/* 🌈 SECTION IMPACT ANIMÉE */
.impact-section {
  position: relative;
  overflow: hidden;
  color: var(--c-text);
  padding: 60px 20px;
  text-align: center;
  border-radius: 16px;
  max-width: 1100px;
  margin: 70px auto;
  background: var(--c-bg);
}

/* 🌊 Fond animé discret */
.impact-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  animation: float-bg 12s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes float-bg {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(5%, -5%) scale(1.05); }
}

.impact-section h2 {
  color: var(--c-text);
  font-size: 2.5rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.impact-section .intro {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--c-text);
  position: relative;
  z-index: 2;
}

/* 📊 Grille de chiffres clés */
.impact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.impact-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--c-accent);
  border-radius: 12px;
  padding: 25px;
  width: 230px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.impact-card h3 {
  font-size: 2.2rem;
  color: var(--c-text);
  font-weight: 800;
  margin-bottom: 10px;
}
.impact-card p {
  font-size: 1rem;
  color: var(--c-text);
}

/* Tableau */
.impact-table {
  margin: 40px auto;
  overflow-x: auto;
  max-width: 900px;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}
.impact-table table {
  width: 100%;
  border-collapse: collapse;
}
.impact-table th, .impact-table td {
  border: 1px solid var(--c-accent);
  padding: 10px 14px;
  text-align: center;
}
.impact-table th {
  background: var(--c-accent);
  color: var(--c-text);
  font-weight: 700;
}
.impact-table td {
  background: rgba(255,255,255,0.9);
  color: var(--c-text);
}

/* 🔒 Masquage des montants */
.impact-table .masked {
  color: transparent;
  position: relative;
}
.impact-table .masked::after {
  content: "— Données internes —";
  color: var(--c-accent);
  font-size: 0.9rem;
  font-style: italic;
}

/* Appel financeur */
.appel-financeurs {
  font-size: 1.1rem;
  color: var(--c-text);
  line-height: 1.6;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}
.appel-financeurs .btn-engage {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
}
.appel-financeurs .btn-engage:hover {
  background: #8b5738;
}

/* Ajustement HERO O' + slide sur smartphone */
@media (max-width: 768px) {

  /* Descendre le logo O' pour que la top-bar soit visible */
  #vero {
    position: absolute; /* important pour top / left */
    top: 100px;         /* ajuste la hauteur */
    left: 50%;
    transform: translateX(-50%) rotate(-35deg);
  }

  /* Slide descendu pour ne pas cacher la top-bar */
  #slide {
    padding-top: 180px; /* crée de l’espace sous la top-bar */
    height: 70vh;       /* adapte selon la taille écran */
    background-position: center top;
  }
}

/* Optionnel : pour écrans très petits <600px, réduire un peu le logo */
@media (max-width: 600px) {
  #vero {
    width: 50px;
    height: 50px;
    line-height: 50px;
    top: 100px;
    transform: translateX(-50%) rotate(-35deg);
  }
}

/* =============================================
   SITE NAVBAR — STRUCTURE SÉMANTIQUE
   <nav> > .nav-brand + <ul class="nav-links"> > <li> > <a>
   Liens à gauche, CTA à droite, padding vertical confortable
   ============================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 32px;
  min-height: 78px;
  background: rgba(255, 250, 241, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8dac5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.site-nav.scrolled {
  background: var(--c-white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

/* Brand */
.site-nav .nav-brand {
  font-family: 'Kanit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-text);
  text-decoration: none;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  line-height: 1;
}

.site-nav .nav-brand-o {
  color: var(--c-accent);
  font-weight: 700;
}

/* Liste de liens — à gauche, juste après le brand */
.site-nav .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-links li {
  display: flex;
}

.site-nav .nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b5c3e;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a:focus-visible {
  color: var(--c-accent);
}

.site-nav .nav-links a.active,
.site-nav .nav-dropdown-menu a.active {
  color: #000;
}

.site-nav .nav-dropdown-toggle.active {
  color: var(--c-text);
  font-weight: 700;
}

/* ── DROPDOWN S'ENGAGER ── */
.site-nav .nav-dropdown {
  position: relative;
}

.site-nav .nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b5c3e;
  background: none;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.site-nav .nav-dropdown-toggle:hover,
.site-nav .nav-dropdown.open .nav-dropdown-toggle {
  color: var(--c-accent);
}

.site-nav .nav-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.site-nav .nav-dropdown.open .nav-chevron {
  transform: rotate(-135deg) translateY(-2px);
}

.site-nav .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--c-white);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(58,45,32,0.18);
  border: 1px solid rgba(106,78,62,0.1);
  list-style: none;
  margin: 0;
  padding: 0px 0;
  width: max-content;
  z-index: 200;
}

.site-nav .nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.site-nav .nav-dropdown-menu li {
  display: block;
}

.site-nav .nav-dropdown-menu a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 18px;
  border-radius: 0;
  font-size: 0.875rem;
}

.site-nav .nav-dropdown-menu a:hover {
  background: rgba(245,208,138,0.25);
  color: var(--c-text);
}

/* CTA "Faire un don" — repoussé à droite avec margin-left: auto */
.site-nav .nav-cta {
  margin-left: auto;
  background: var(--c-accent);
  color: var(--c-text);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--c-accent-hover);
  color: var(--c-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58,45,32,0.25);
  outline: none;
}

/* Bouton hamburger */
.site-nav .nav-toggle {
  display: none;
  background: none;
  border: 1px solid #d6c9b6;
  border-radius: 8px;
  font-size: 1.4rem;
  color: var(--c-text);
  cursor: pointer;
  padding: 6px 12px;
  line-height: 1;
  margin-left: auto;
}

/* Responsive — menu hamburger sous 900px */
@media (max-width: 900px) {
  .site-nav {
    gap: 16px;
    padding: 16px 20px;
    min-height: 72px;
  }

  .site-nav .nav-toggle {
    display: block;
  }

  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-white);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px 20px;
    border-bottom: 2px solid #e8dac5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    gap: 4px;
  }

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

  .site-nav .nav-links a {
    padding: 13px 14px;
    font-size: 1rem;
  }

  /* CTA passe en dernier dans le menu mobile */
  .site-nav .nav-cta {
    margin-left: 0;
    order: 99;
    align-self: center;
  }

  /* Dropdown en accordéon sur mobile */
  .site-nav .nav-dropdown {
    flex-direction: column;
    width: 100%;
  }

  .site-nav .nav-dropdown-toggle {
    width: 100%;
    padding: 13px 14px;
    font-size: 1rem;
    justify-content: space-between;
  }

  .site-nav .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-left: 2px solid rgba(106,78,62,0.2);
    margin-left: 14px;
    padding: 4px 0;
    background: transparent;
    min-width: unset;
  }

  .site-nav .nav-dropdown-menu a {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}

/* Décalage global pour la navbar fixe */
body {
  padding-top: 78px;
}
@media (max-width: 900px) {
  body { padding-top: 72px; }
}

/* Hero plein écran sous la navbar */
#slide {
  height: calc(100vh - 78px);
}
@media (max-width: 900px) {
  #slide { height: calc(100vh - 72px); }
}

/* =============================================
   HARMONISATION COULEURS — applique la palette
   sur les éléments transversaux du site
   ============================================= */

/* Hero h1 : titre sur image sombre → blanc */
#slide h1,
#slide h1 span {
  color: var(--c-white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Hero CTA Faire un don */
#slide h1 + a,
#slide .hero-btn {
  background: var(--c-accent);
  color: var(--c-text);
  font-weight: 700;
}
#slide h1 + a:hover,
#slide .hero-btn:hover {
  background: var(--c-accent-hover);
  color: var(--c-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Cards / articles */
.activity-card,
.actions-row article,
main section:not(.actions-row) article,
.impact-card {
  background-color: var(--c-white);
  border: 1px solid rgba(106, 78, 62, 0.08);
  box-shadow: 0 2px 10px rgba(106, 78, 62, 0.08);
}

/* Boutons CTA secondaires (voir plus, btn-engage, btn) */
.activity-card .voir-plus,
.btn-engage,
.btn {
  background-color: var(--c-accent);
  color: var(--c-text);
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.activity-card .voir-plus:hover,
.btn-engage:hover,
.btn:hover {
  background: var(--c-accent-hover);
  color: var(--c-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58,45,32,0.2);
}

/* Titres généraux */
h2, h3, h4 {
  color: var(--c-text);
}

/* Section impact (NOTRE MISSION) */
.impact-section {
  color: var(--c-text);
}
.impact-section h2,
.impact-section h3 {
  color: var(--c-text);
}
.impact-section .intro,
.impact-section .impact-card p {
  color: var(--c-text);
}

/* Section actions-heading (NOS ACTIONS) */
main section.actions-heading h2 {
  color: var(--c-text);
}

/* Engagement / planning / app-coming — boutons */
.engagement {
  background: var(--c-white);
  color: var(--c-text);
}
.engagement h2,
#planning,
#planning h2,
.app-coming {
  color: var(--c-text);
}
.app-coming {
  background: var(--c-white);
}
.app-coming h2,
.engagement h2 {
  color: var(--c-text);
}

/* Footer du site (footer global) */
body > footer,
main + footer {
  color: var(--c-text);
}
.footer-links a,
.footer-copy {
  color: var(--c-text) !important;
}
.footer-links a:hover {
  color: var(--c-accent) !important;
}

/* Stats colors override */
.stats-section,
.stats-section h2 {
  color: var(--c-text);
}
.counter {
  color: var(--c-text);
}

/* =============================================
   FLÈCHES CAROUSEL — design moderne et élégant
   ============================================= */
.partenaires-carousel .carousel-btn,
.carousel-container .carousel-btn {
  background: var(--c-white);
  color: var(--c-text);
  border: 1px solid rgba(106, 78, 62, 0.15);
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(106, 78, 62, 0.15);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.partenaires-carousel .carousel-btn:hover,
.carousel-container .carousel-btn:hover,
.partenaires-carousel .carousel-btn:focus-visible,
.carousel-container .carousel-btn:focus-visible {
  background: var(--c-accent);
  color: var(--c-text);
  border-color: var(--c-accent);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 22px rgba(106, 78, 62, 0.25);
  outline: none;
}

.partenaires-carousel .carousel-btn:active,
.carousel-container .carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

/* Décale légèrement les flèches vers l'intérieur du conteneur */
.partenaires-carousel .carousel-btn.prev,
.carousel-container .carousel-btn.prev { left: 14px; }
.partenaires-carousel .carousel-btn.next,
.carousel-container .carousel-btn.next { right: 14px; }

/* Sur mobile : un peu plus petits */
@media (max-width: 768px) {
  .partenaires-carousel .carousel-btn,
  .carousel-container .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .partenaires-carousel .carousel-btn.prev,
  .carousel-container .carousel-btn.prev { left: 6px; }
  .partenaires-carousel .carousel-btn.next,
  .carousel-container .carousel-btn.next { right: 6px; }
}

/* Top-bar (si encore utilisée) — couleur texte */
.top-bar-links a {
  color: var(--c-text);
}
.top-bar-links a:hover {
  background-color: var(--c-accent);
  color: var(--c-text);
}

/* Hero h1 + a override : la cascade fait que la règle au-dessus #slide h1 + a est plus spécifique */

/* =============================================
   SITE FOOTER — partagé sur toutes les pages
   ============================================= */
.site-footer {
  background: var(--gradient-dark);
  color: var(--c-white);
  padding: 64px 24px 28px;
  width: 100%;
  margin-top: 80px;
  position: relative;
  z-index: 5;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.site-footer-logo {
  font-family: 'Kanit', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--c-white);
  text-decoration: none;
  letter-spacing: 0.5px;
  line-height: 1;
}
.site-footer-logo strong {
  color: var(--c-accent);
}
.site-footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 320px;
  text-align: center;
  margin: 0;
}

.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.site-footer-col h4 {
  color: var(--c-accent);
  font-family: 'Kanit', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin: 0 0 18px;
}
.site-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer-col li {
  margin-bottom: 8px;
}
.site-footer-col a,
.site-footer-col p {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.65;
  transition: color 0.2s ease;
  margin: 0 0 6px;
}
.site-footer-col a:hover,
.site-footer-col a:focus-visible {
  color: var(--c-accent);
  outline: none;
}

.site-footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer-bottom span {
  letter-spacing: 0.3px;
}

/* Responsive footer */
@media (max-width: 860px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 600px) {
  .site-footer { padding: 48px 20px 24px; }
  .site-footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .site-footer-bottom {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
  }
}

/* =============================================
   HARMONISATION GLOBALE — cohérence inter-pages
   (calquée sur le style de la page d'accueil)
   ============================================= */

/* ------ TITRES ------ */
/* Les titres de section reprennent le style "NOTRE MISSION" / "NOS ACTIONS" */
body main h1:not(.hero-title):not(.brand),
body main h2:not(.brand),
body main .section-title {
  font-family: 'Kanit', sans-serif !important;
  color: var(--c-text) !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
}
body main h2.section-heading,
body main .section-eyebrow + h2,
body section h2.title {
  text-transform: uppercase;
}

/* Sous-titres / titres internes (h3) */
body main h3,
body main h4 {
  font-family: 'Kanit', sans-serif !important;
  color: var(--c-text) !important;
  font-weight: 700 !important;
}

/* Headers de page (.accueil-link h1 etc.) */
body > header h1,
body header h1 {
  font-family: 'Kanit', sans-serif !important;
  color: var(--c-text) !important;
  font-weight: 700 !important;
}

/* ------ BOUTONS — STYLE UNIFIÉ (style page d'accueil) ------ */
/* Touche tous les boutons "action" : formulaires, .btn, .btn-engage, .join-btn, etc. */
body main button[type="submit"],
body main form button,
body main .btn,
body main .btn-engage,
body main .join-btn,
body main a.btn-engage,
body main a.btn,
body main .voir-plus,
body main .activity-card .voir-plus,
body main .dons-buttons a {
  display: inline-block;
  background: var(--c-accent) !important;
  color: var(--c-text) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.95rem;
  padding: 12px 26px !important;
  border: none !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(106, 78, 62, 0.15);
}

body main button[type="submit"]:hover,
body main form button:hover,
body main .btn:hover,
body main .btn-engage:hover,
body main .join-btn:hover,
body main a.btn-engage:hover,
body main a.btn:hover,
body main .voir-plus:hover,
body main .activity-card .voir-plus:hover,
body main .dons-buttons a:hover,
body main button[type="submit"]:focus-visible,
body main form button:focus-visible {
  background: var(--c-accent-hover) !important;
  color: var(--c-text) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(106, 78, 62, 0.22) !important;
  outline: none;
}

/* Bouton sombre (sur fond clair) — réservé aux CTA principaux comme dons */
body main .btn-cta,
body main .btn-don-principal {
  background: var(--gradient-dark) !important;
  color: var(--c-white) !important;
  font-weight: 600 !important;
}
body main .btn-cta:hover,
body main .btn-don-principal:hover {
  /* Hover doux : on garde le même gradient sombre, juste un poil plus lumineux */
  filter: brightness(1.1);
  box-shadow: 0 14px 36px -10px rgba(58, 45, 32, 0.55) !important;
}

/* ------ TEXTES & LIENS ------ */
body main p,
body main label,
body main li {
  color: var(--c-text);
  font-family: 'Montserrat', sans-serif;
}

body main a:not(.btn):not(.btn-engage):not(.btn-cta):not(.voir-plus):not(.nav-cta):not(.dons-buttons a):not(.site-footer a):not(.nav-brand) {
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
body main a:not(.btn):not(.btn-engage):not(.btn-cta):not(.voir-plus):not(.nav-cta):not(.dons-buttons a):not(.site-footer a):not(.nav-brand):hover {
  color: var(--c-text);
  text-decoration: underline;
}

/* Exception : pas de soulignement sur les cards "Nos actions" / cartes cliquables */
body main .activity-card a,
body main .activity-card a:hover {
  text-decoration: none !important;
  color: inherit;
}

/* ------ FORMULAIRES — cohérence ------ */
body main form label {
  color: var(--c-text) !important;
  font-weight: 600;
}
body main form input[type="text"],
body main form input[type="email"],
body main form input[type="tel"],
body main form select,
body main form textarea {
  border: 1px solid rgba(106, 78, 62, 0.25) !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  font-family: 'Montserrat', sans-serif !important;
  color: var(--c-text) !important;
  background: var(--c-white) !important;
  font-size: 0.95rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body main form input:focus,
body main form select:focus,
body main form textarea:focus {
  border-color: var(--c-accent) !important;
  box-shadow: 0 0 0 3px rgba(245, 208, 138, 0.25) !important;
  outline: none;
}

/* =============================================
   PAGES ACTIONS — HARMONISATION IDENTITÉ
   (maraude, opartage, cafesolidaire, ovisite,
    orecup, jardin-partage, ovie, onumerique,
    overtdemain)
   ============================================= */

/* On force le fond et la typo identitaires (peu importe le thème de la page) */
html body {
  background: var(--c-bg) !important;
  color: var(--c-text) !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  padding-bottom: 0 !important;
}

/* Titre principal des pages actions */
html body > h1:not(.hero-title),
html body main > h1:not(.hero-title),
html body main h1:first-of-type:not(.hero-title) {
  font-family: 'Kanit', sans-serif !important;
  color: var(--c-text) !important;
  font-weight: 800 !important;
  font-size: clamp(2rem, 4vw, 2.8rem) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin: 24px auto 28px !important;
  text-shadow: none !important;
  background: transparent !important;
}

/* Textes d'intro et description */
html body .intro-text,
html body .description-text {
  font-family: 'Montserrat', sans-serif !important;
  color: var(--c-text) !important;
  background: transparent !important;
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* Citations dans les actions */
html body .quote {
  font-family: 'Kanit', sans-serif !important;
  font-style: italic;
  color: var(--c-text) !important;
  background: var(--c-white) !important;
  border-left: 4px solid var(--c-accent) !important;
  padding: 22px 28px;
  max-width: 760px;
  margin: 28px auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(106, 78, 62, 0.08);
  line-height: 1.6;
  font-size: 1.05rem;
}
html body .quote strong {
  font-style: normal;
  color: var(--c-text);
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  opacity: 0.85;
}

/* Carousel des actions */
html body .carousel-container {
  background: var(--c-white) !important;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(106, 78, 62, 0.15) !important;
  border: 1px solid rgba(106, 78, 62, 0.08);
  max-width: 900px;
  margin: 32px auto;
}

html body .caption {
  background: rgba(58, 45, 32, 0.85) !important;
  color: var(--c-white) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600;
}

/* Boutons "flèche" du carousel des actions — ronds avec couleurs de la palette */
html body .carousel-container .carousel-btn {
  background: var(--c-white) !important;
  color: var(--c-text) !important;
  border: 1px solid rgba(106, 78, 62, 0.15) !important;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(106, 78, 62, 0.18) !important;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
html body .carousel-container .carousel-btn:hover {
  background: var(--c-accent) !important;
  color: var(--c-text) !important;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 22px rgba(106, 78, 62, 0.28) !important;
}

/* Bouton "Rejoignez-nous" / join-btn → style identitaire */
html body .join-btn {
  display: inline-block;
  background: var(--c-accent) !important;
  color: var(--c-text) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 14px 32px !important;
  border: none !important;
  border-radius: 999px !important;
  cursor: pointer;
  margin: 28px auto !important;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(106, 78, 62, 0.18) !important;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
html body .join-btn:hover {
  background: var(--c-accent-hover) !important;
  color: var(--c-text) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(106, 78, 62, 0.25) !important;
}

/* Masque les anciens liens "home-link" flottants (remplacés par la navbar) */
html body a.home-link {
  display: none !important;
}

/* =============================================
   FIX — Nav et footer TOUJOURS pleine largeur écran
   (Les CSS des pages actions ont du padding sur le
   body, du flex + align-items:center, etc., qui
   contraignent les enfants. On utilise la technique
   100vw pour casser ce padding et toucher les bords
   du viewport.)
   ============================================= */

/* Évite le scroll horizontal créé par les 100vw ci-dessous */
html, html body {
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  html, html body { overflow-x: hidden; }
}

/* NAVBAR : fixe et pleine largeur viewport */
html body > nav.site-nav,
html body nav.site-nav {
  width: 100vw !important;
  max-width: 100vw !important;
  left: 0 !important;
  right: auto !important;
  margin: 0 !important;
}

/* FOOTER : sort du padding/contraintes du body via 100vw + centrage
   + sticky footer (collé en bas si le contenu est court) */
html body > footer.site-footer,
html body footer.site-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50% !important;
  transform: translateX(-50%);
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: auto !important;       /* pousse le footer en bas du flex column */
  margin-bottom: 0 !important;
  align-self: stretch;
  box-sizing: border-box;
}