/* ============================================================
   STYLE.CSS - Feuille CSS principale du site
   Police heading : Plus Jakarta Sans
   Police body    : Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --primary:          hsl(224, 76%, 40%);
  --primary-dark:     hsl(224, 76%, 30%);
  --primary-light:    hsl(224, 76%, 95%);
  --primary-rgb:      30, 69, 200;

  --accent:           hsl(33, 85%, 67%);
  --accent-light:     hsl(349, 89%, 95%);

  --bg:               hsl(0, 0%, 100%);
  --bg-subtle:        hsl(210, 40%, 96%);
  --foreground:       hsl(213, 32%, 10%);
  --muted:            hsl(215, 16%, 47%);
  --border:           hsl(214, 32%, 91%);
  --card:             hsl(0, 0%, 100%);

  --font-heading:     'Plus Jakarta Sans', sans-serif;
  --font-body:        'Inter', sans-serif;

  --radius:           0.75rem;
  --radius-lg:        1rem;
  --radius-xl:        1.25rem;
  --nav-height:       64px;

  --shadow-sm:        0 1px 3px rgba(0,0,0,.08);
  --shadow:           0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:        0 10px 30px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* ── Layout helpers ── */
.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  text-decoration: none;
}

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

.btn-outline-white {
  background: rgba(255,255,255,.2);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover { background: rgba(255,255,255,.3); }

.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover { background: rgba(255,255,255,.9); }

.btn-lg { padding: .875rem 2rem; font-size: 1rem; }

/* ── Icon box ── */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.icon-box svg { width: 1.75rem; height: 1.75rem; }

/* ── Section header ── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: .75rem; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; }
.section-header p  { color: var(--muted); max-width: 36rem; margin-inline: auto; font-size: 1.0625rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 4px solid var(--primary);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.nav-logo {
  height: 4rem;
  width: 4rem;
  object-fit: contain;
  border-radius: .5rem;
}
.nav-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.01em;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  padding: .5rem .75rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-link:hover   { background: var(--primary-light); color: var(--primary); }
.nav-link.active  { background: var(--primary); color: #fff; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--foreground);
  border-radius: var(--radius);
  transition: background .15s;
}
.nav-toggle:hover { background: var(--bg-subtle); }
.nav-toggle svg   { width: 1.5rem; height: 1.5rem; display: block; }
.nav-toggle .icon-close { display: none; }

/* Mobile menu */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.97);
  padding: .75rem 1.5rem 1rem;
}
.nav-mobile .nav-link {
  display: block;
  padding: .6875rem .75rem;
  font-size: .9375rem;
}

/* Open state */
.navbar.open .nav-mobile      { display: block; }
.navbar.open .icon-open        { display: none; }
.navbar.open .icon-close       { display: block; }

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
  .nav-name   { display: none; }
}

.nav-news-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  line-height: 1;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}




/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--foreground);
  color: #fff;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-block: 3rem;
}

.footer-col h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; margin-bottom: .75rem; }
.footer-col h4 { font-family: var(--font-heading); font-weight: 600; margin-bottom: .75rem; }
.footer-col p  { color: rgba(255,255,255,.65); font-size: .875rem; line-height: 1.7; }

.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer-nav a:hover { color: #fff; }

.footer-info { display: flex; flex-direction: column; gap: .5rem; }

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}
.footer-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.footer-info p { font-size: .875rem; color: rgba(255,255,255,.65); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.4); }

.footer-legal {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}
.footer-legal a {
  color: rgba(255,255,255,.35);
  transition: color .15s;
}
.footer-legal a:hover { color: rgba(255,255,255,.75); }
.footer-legal span { opacity: .4; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   ACCUEIL — banner
   ============================================================ */
.banner {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: contain;
}
.banner-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /*background: linear-gradient(to right, rgba(13,24,41,.82) 0%, rgba(13,24,41,.5) 55%, transparent 100%); */
}

.banner-scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--primary);
  backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s;
  animation: bannerArrowBounce 1.8s ease-in-out infinite;
}
.banner-scroll-arrow:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.banner-scroll-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
}

@keyframes bannerArrowBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.banner-content {
  position: relative;
  z-index: 1;
  padding-block: 5rem;
  width: 100%;
}

.banner-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.banner-text {
  max-width: 38rem;
  flex-shrink: 0;
}
.banner-text h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
}
.banner-text p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.banner-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-logo img {
  width: clamp(440px, 20vw, 560px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}

@media (max-width: 1152px) {
  .banner-body {
    flex-direction: column-reverse;
    text-align: center;
  }
  .banner-logo img {
    width: 420px;
  }
  .banner-actions {
    justify-content: center;
  }
}
.banner-content h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
}
.banner-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
}
.banner-content p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  line-height: 1.75;
}
.banner-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Engagements ── */
.engagements-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.engagement-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-xl);
  transition: background .2s;
  background-image: url("/img/cinema.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--bg-subtle);
}
.engagement-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  background-color: hsl(210, 40%, 92%);
 }

.engagement-card .icon-box { margin-inline: auto; }
.engagement-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .75rem; }
.engagement-card p  { color: var(--muted); font-size: .9375rem; line-height: 1.7; }

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

/* ── CTA banner ── */
.cta-banner {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding-block: 5rem;
}
.cta-banner h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.8); font-size: 1.0625rem; margin-bottom: 2rem; }

/* ============================================================
   SEPARATEUR
   ============================================================  */

.section-divider {
  width: 80%;
  max-width: 40rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin-inline: auto;
}

/* ============================================================
   BANDEAU LOGOS (Carousel)
   ============================================================ */
.logo-carousel-section {
  background: var(--bg); /*var(--bg-subtle);*/
  padding-block: 3.5rem;
  overflow: hidden;
}
 
.logo-carousel-outer {
  position: relative;
  overflow: hidden;
  padding-block: .5rem;
}
 
/* Dégradés pour masquer les bords */
.logo-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 12rem;
  z-index: 2;
  pointer-events: none;
}
.logo-fade-left  { left:  0; background: linear-gradient(to right, var(--bg-subtle), transparent); }
.logo-fade-right { right: 0; background: linear-gradient(to left,  var(--bg-subtle), transparent); }
 
/* Piste de logos */
.logo-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  will-change: transform;
}
 
/* Chaque logo */
.logo-item {
  flex-shrink: 0;
  width: 16rem;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* état de base : discret */
  opacity: .35;
  transform: scale(0.82);
  will-change: opacity, transform;

}
.logo-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
 

/* ============================================================
   PARTENAIRES PAGE
   ============================================================ */
 /* ── Barre de filtres ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
 
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem 1.125rem;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight:700;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: background .18s, color .18s, transform .12s, box-shadow .18s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.filter-btn::before {
  content: '';
  display: inline-block;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--filter-color, #94a3b8);
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0);
  transition: opacity .18s, transform .18s;
}
.filter-btn:not(.active):hover {
  background: var(--bg);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}
.filter-btn:not(.active):hover::before {
  opacity: .6;
  transform: scale(1);
}
.filter-btn.active {
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transform: translateY(-1px);
}
.filter-btn.active::before {
  opacity: 1;
  transform: scale(1);
  background: rgba(255,255,255,.5);
}
 
/* ── Barre séparatrice ── */
.section-divider {
  width: 80%;
  max-width: 40rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin-inline: auto;
}
 
/* ── Grille ── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
 
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 3rem;
}
 
/* ── Carte partenaire ── */
.partner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.partner-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
 
/* En-tête coloré avec logo */
.partner-card-header {
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
 
.partner-logo-wrap {
  width: 5rem;
  height: 5rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.partner-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
 
/* Initiale affichée si pas de logo */
.partner-logo-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
}

.partner-badge {
  font-weight: bold;
}
 
.partner-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
 
.partner-card-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
 
.partner-meta {
  display: flex;
  align-items: center;
  gap: .375rem;
  color: var(--muted);
  font-size: .8125rem;
  margin-bottom: .75rem;
}
.partner-meta svg { width: .875rem; height: .875rem; flex-shrink: 0; }
 
.partner-offer {
  display: flex;
  align-items: flex-start;
  gap: .375rem;
  font-size: .875rem;
  color: var(--foreground);
  line-height: 1.6;
}
.partner-offer svg {
  width: .875rem;
  height: .875rem;
  flex-shrink: 0;
  margin-top: .2rem
}

.partner-contact-item {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--muted);
  margin-top: .5rem;
}
.partner-contact-item svg { width: .875rem; height: .875rem; flex-shrink: 0; }
.partner-contact-item a {
  color: var(--primary);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.partner-contact-item a:hover { text-decoration: underline; }
 
.partners-cta {
  text-align: center;
  margin-top: 4rem;
  color: var(--muted);
}
.partners-cta a { color: var(--primary); font-weight: 600; }
.partners-cta a:hover { text-decoration: underline; }
 
/* ── Liens réseaux sociaux ── */
.social-links {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  transition: background .15s, color .15s, transform .15s;
}
.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.social-link svg { width: 1.125rem; height: 1.125rem; }
 
/* Variante footer (fond sombre) */
.footer-col .social-links { margin-top: .875rem; }
.footer-col .social-link {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
}
.footer-col .social-link:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* ============================================================
   CARTE PAGE
   ============================================================ */
.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  height: 600px;
}
#map { height: 100%; width: 100%; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--muted);
}
.legend-dot {
  width: .75rem; height: .75rem;
  border-radius: 50%;
  flex-shrink: 0;
}

/*  =================================================
  ACCUEIL
  CARTE
*/
.article-card.horizontal {
  display: flex;
  align-items: stretch;
}

.article-card.horizontal .article-img {
  width: 300px;
  aspect-ratio: auto; /* important */
  height: auto;
  flex-shrink: 0;
}

.article-card.horizontal .article-img img {
  height: 100%;
}

.article-card.horizontal .article-body {
  flex: 1;
}

/* ============================================================
   ACTUALITES PAGE
   ============================================================ */
/* ── Bandeau vide actualités ── */
.actu-vide {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--border);
}
.actu-vide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.actu-vide-icon svg { width: 2rem; height: 2rem; }
.actu-vide h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.actu-vide p { color: var(--muted); font-size: .9375rem; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow .3s;
}
.article-card:hover { box-shadow: var(--shadow-lg); }

.article-badge-complet {
  background: #DC2626;
  color: #fff;
  font-family: var(--font-heading);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(220,38,38,.35);
  white-space: nowrap;
}

.article-img {
  overflow: hidden;
  background: var(--bg-subtle);
}
.article-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-subtle);
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.article-card:hover .article-img img { transform: scale(1.05); }

.article-body { padding: 1.5rem; }

.article-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: .75rem;
}
.article-date-left {
  display: flex;
  align-items: center;
  gap: .375rem;
}
.article-date-left svg {
  width: .875rem;
  height: .875rem;
  flex-shrink: 0;
}
.article-date svg { width: .875rem; height: .875rem; }

.article-body h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: .625rem;
  transition: color .15s;
}
.article-card:hover .article-body h2 { color: var(--primary); }

.article-body p { font-size: .875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }

.article-read {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap .2s;
}
.article-card:hover .article-read { gap: .5rem; }
.article-read svg { width: .875rem; height: .875rem; }

@media (max-width: 1024px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .articles-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.form-group label { font-size: .875rem; font-weight: 500; }

.form-group input,
.form-group textarea {
  padding: .625rem .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--foreground);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
}
.form-group textarea { resize: vertical; min-height: 9rem; }

.contact-info-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.contact-info-box h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  margin-bottom: 1.25rem;
}
.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--radius);
  background: var(--primary-light);
  flex-shrink: 0;
}
.contact-info-icon svg { width: 1.125rem; height: 1.125rem; color: var(--primary); }

.contact-info-text p:first-child { font-size: .8125rem; font-weight: 500; }
.contact-info-text p:last-child  { font-size: .875rem; color: var(--muted); }

/* Toast / success message */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #16a34a;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { transform: translateY(1rem); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
}

/* ============================================================
   A PROPOS PAGE
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
.story-grid h2       { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 1.5rem; }
.story-grid p        { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.story-grid p strong { color: var(--foreground); }
.story-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}
.story-img img { width: 100%; height: 100%; object-fit: contain; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}
.value-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: background .2s;
}
.value-card:hover { background: hsl(210, 40%, 92%); }
.value-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .75rem; }
.value-card p  { font-size: .875rem; color: var(--muted); line-height: 1.7; }

/* ── Équipe ── */
.team-section { margin-bottom: 5rem; }

.team-group { margin-bottom: 3rem; }

.team-group-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.team-group-header::before,
.team-group-header::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.team-group-label {
  font-family: var(--font-heading);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
  padding-inline: .75rem;
}
.team-group-label--secondary { color: var(--muted); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.team-grid--ca {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Carte membre Bureau */
.member-card {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-lg);
  transition: transform .2s, box-shadow .2s;
}
.member-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.member-card--primary {
  background: var(--primary-light);
  border: 1px solid hsl(224, 76%, 88%);
}
.member-card--secondary {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.member-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.member-avatar--secondary {
  background: var(--muted);
}

.member-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }

.member-role {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}
.member-role--secondary { color: var(--muted); }

.member-name {
  font-family: var(--font-heading);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-collectivite {
  font-size: .75rem;
  color: var(--muted);
}


.stats-banner {
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
}
.stats-banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 3rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-num   { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--accent); }
.stat-label { font-size: .875rem; color: rgba(255,255,255,.7); margin-top: .375rem; }

@media (max-width: 900px) {
  .story-grid  { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-banner { padding: 2.5rem 1.5rem; }
}
@media (max-width: 640px) {
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Leaflet popup override
   ============================================================ */
.leaflet-popup-content { font-family: var(--font-body); font-size: .875rem; }
.popup-name  { font-family: var(--font-heading); font-weight: 700; margin-bottom: .25rem; }
.popup-loc   { font-size: .75rem; color: var(--muted); margin-bottom: .375rem; }
.popup-offer { font-size: .8125rem; }