:root{
  --primary:#0f7a56;
  --accent: #f4b300;
  --dark: #0f1e16;
  --light: #f7faf8;
  --text: #1b2a22;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

img, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -40px; z-index: 100;
  background: #fff; border: 2px solid var(--primary); padding: 8px 12px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header / Nav */

header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #e5e7eb;
}

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 0;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.logo img { width: 40px; height: 40px; border-radius: 6px; }

/* 🔧 Ajout important : aligner verticalement tous les enfants (y compris le <div class="dropdown">) */
.nav-links {
  display: flex; gap: 0px; flex-wrap: wrap;
  align-items: center; /* NEW */
}

/* Style uni pour tous les liens de nav (y compris le .dropdown-toggle) */
.nav-links a {
  padding: 10px 12px; border-radius: 10px; font-weight: 600; color: #0f172a; text-decoration: none;
}
.nav-links a.active,
.nav-links a:hover { 
  background: transparent; /* Enlève l'ombre verte */
}

/* (Optionnel) S’assure que le wrapper dropdown s’aligne correctement */
.nav-links .dropdown { display: flex; align-items: center; }

/* Bouton burger */
.nav-toggle {
  display: none; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer;
}


.social-icons {
  margin-top: 20px;
}

.social-icon {
  margin-right: 15px;
  font-size: 24px;
  
}

.social-icon:hover {
  color: #007BFF;
}



/* Hero */

.affiche-annonce{
  position: relative;
  isolation: isolate;                 /* garantit que l’overlay reste interne */
  min-height: clamp(300px, 42vw, 560px);
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  color: #fff;
  background:
    radial-gradient(1200px 500px at 15% 15%, rgba(0,0,0,.35), transparent 60%),
    radial-gradient(1000px 500px at 85% 85%, rgba(0,0,0,.35), transparent 60%),
    #0b0f14;
  overflow: clip;
}

/* Image de fond via variable --bg */
.affiche-annonce::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);             /* évite les bordures blanches au redimensionnement */
  z-index: -2;
}

/* Voile sombre pour la lisibilité du texte */
.affiche-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(7,12,16,.55), rgba(7,12,16,.35) 45%, rgba(7,12,16,.7));
  z-index: -1;
}

/* Contenant du texte */
.affiche-container{
  width: min(1100px, 92vw);
  padding: clamp(1rem, 2.5vw, 2rem);
  backdrop-filter: blur(1px);
}

/* Titre principal */
.affiche-container h1{
  margin:.75rem 0 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

/* Empêche le retour à la ligne sur un segment précis */
.nowrap{ white-space: nowrap; }

/* Accessibilité – réduit les animations pour ceux qui les limitent */
@media (prefers-reduced-motion: reduce){
  .affiche-annonce, .badge, .affiche-container h1{ transition: none; }
}

/* Sections */
.section { padding: 60px 0; background: #fff; }
.section.alt { background: var(--light); }
.section h2 { margin: 0 0 16px 0; font-size: 30px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.stat .num {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
}

.stat .label {
  opacity: .8;
}

#stats-title {
  text-align: center;
}

/* Responsive design pour tablettes et mobiles */
@media (max-width: 1024px) {
  .stats {
    display: block; /* Supprime la grille et fait défiler les éléments verticalement */
  }
}

@media (max-width: 768px) {
  .stats {
    display: block; /* Affichage en bloc pour les petits écrans */
  }

  .stat {
    margin-bottom: 15px; /* Ajoute un espacement vertical entre les éléments */
  }

  .stat .num {
    font-size: 32px; /* Réduit la taille de la police sur petits écrans */
  }

  .stat .label {
    font-size: 14px; /* Ajuste la taille de la police sur les petits écrans */
  }
}

/* Mot ministre */

 .mot-ministre-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .mot-ministre {
    line-height: 1.7;
    font-size: 1rem;
    color: #111;
  }

  .mot-ministre .photo-droite {
    float: right; /* place la photo à droite dans la même colonne */
    width: min(50%, 500px); /* largeur max de la photo */
    margin: 0 0 1rem 1.25rem; /* espace entre l’image et le texte */
  }

  .mot-ministre .photo-droite img {
    width: 100%;
    height: 550px;
    display: block;
    border-radius: 12px;
  }

  .mot-ministre .photo-droite figcaption {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #333;
  }

  .titre-section {
    margin-bottom: 1rem;
    color: rgba(28, 102, 75, 1); /* couleur d’origine */
    font-size: 1.5rem;
  }

  /* Responsive : Ajustements pour les petits écrans (mobile) */
  @media (max-width: 768px) {
    .mot-ministre .photo-droite {
      float: none; /* Annule le float pour éviter un rendu trop serré */
      width: 100%; /* La photo prend toute la largeur */
      margin: 0 0 1rem 0; /* Espacement de bas */
    }

    .mot-ministre .photo-droite img {
      width: 100%; /* Ajuste la largeur de l'image */
      height: 300px; /* Hauteur plus petite sur mobile */
      display: block;
      border-radius: 12px;
    }

    .mot-ministre .photo-droite figcaption {
      text-align: center;
      font-size: 0.9rem;
      margin-top: 0.5rem;
      color: #333;
    }

    .titre-section {
      margin-bottom: 1rem;
      color: rgba(28, 102, 75, 1);
      font-size: 1.5rem;
    }
  }

  /* Responsive : Ajustements pour les très petits écrans (portrait mobile) */
  @media (max-width: 480px) {
    .mot-ministre {
      font-size: 0.9rem; /* Réduction de la taille de texte pour les petits écrans */
    }

    .mot-ministre .photo-droite img {
      height: auto; /* Ajuste la hauteur de l'image */
    }
  }

/* Partners */
.partenaires-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centre les éléments horizontalement */
  align-items: center; /* Centre les éléments verticalement */
  gap: 3rem; /* Ajuste l'espacement entre le titre et les logos */
}

.titre-partenaires {
  text-align: center; /* Centre le texte à l'intérieur de l'élément */
  flex: 1 1 100%; /* Assure que le titre prend toute la largeur de la ligne */
}

.logos {
  display: flex;
  justify-content: center; /* Centre les logos */
  gap: 1rem; /* Espacement entre les logos */
}

.partner-logo {
  width: 100px; /* Ajuste la taille des logos */
  height: 100px;
  background-size: cover;
  background-position: center;
}

/* PARTENAIRES – bandeau de logos alignés sur le bas du titre */
.partenaires .logos { gap: clamp(.5rem, 1.2vw, 1rem); }

.partner-logo{
  display: block;
  width: clamp(72px, 20vw, 150px);
  height: clamp(40px, 10vw, 150px);
  background: no-repeat center / contain var(--logo);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  opacity: .95;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.partner-logo:hover{
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}



/* Titre PARTENAIRES — style élégant */
.titre-partenaires{
  /* belle typo de titrage (fonctionne même sans Google Fonts) */
  font-family: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.1;

  /* look */
  color: var(--text);
  text-transform: uppercase;          /* mets en minuscules si tu préfères */
  letter-spacing: .06em;
  display: inline-block;
  position: relative;
  padding: .05em .2em .35em;

  /* léger surlignage derrière le texte */
  background-image: linear-gradient(180deg, transparent 60%, rgba(24,169,87,.18) 0);
  background-repeat: no-repeat;
}

/* barre d’accent dégradée sous le titre */
.titre-partenaires::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: clamp(64px, 12vw, 140px);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: .95;
}

/* ajustements mobiles */
@media (max-width: 576px){
  .titre-partenaires{ letter-spacing: .04em; }
  .titre-partenaires::after{ height: 4px; bottom: -6px; }
}


/* Footer */

footer.site-footer { background: var(--dark); color: #cbd5e1; padding: 30px 0; margin-top: 40px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
footer h4 { color: #fff; margin-top: 0; }
footer a { color: #cbd5e1; }
.badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 12px; background: rgba(244,179,0,.12); color: #6b4a00; font-weight: 700; }
.small { font-size: 14px; }
hr.sep { border: 0; border-top: 1px solid #e5e7eb; margin: 20px 0; }


/* Spécifiques "Actualités & Publications" (vidéos responsives) */
.section.alt .grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.section.alt .card .media { display: none; } /* vignette vide -> masquée */
.section.alt .card iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0;
}

/* Focus visible accessible */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* Réactif */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding: 10px 0; }
  .nav-links.open { display: flex; }

  .hero-slider { height: 360px; }
  .grid .card { grid-column: span 12; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .partners { grid-template-columns: repeat(3,1fr); }
  footer .cols { grid-template-columns: 1fr; }
}

/* Nav : jamais de soulignement */
.site-header .nav-links a,
.site-header .nav-links a:visited,
.site-header .nav-links a:hover,
.site-header .nav-links a:focus {
  text-decoration: none;
}
