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

/* ================= VARIABLES ================= */
:root {
  --jaune: #f7c600;
  --noir: #111;
  --blanc: #fff;
}

/* ================= GLOBAL ================= */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--blanc);
  color: var(--noir);
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--noir);
  padding: 20px 40px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 40px;
  background-color: rgba(17,17,17,0.95);
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= LOGO ================= */
.logo img {
  height: 60px;
  transition: height 0.3s ease;
}

.header.scrolled .logo img {
  height: 45px;
}

/* ================= NAVIGATION ================= */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu li {
  position: relative;
}

.menu > li > a {
  color: var(--blanc);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 5px;
  display: block;
  transition: color 0.3s;
}

/* hover liens principaux */
.menu > li > a:hover {
  color: var(--jaune);
}

/* ================= SOUS-MENUS ================= */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--noir);
  list-style: none;
  min-width: 180px;
  display: none;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.submenu li a {
  color: var(--blanc);
  padding: 12px 15px;
  font-size: 14px;
  display: block;
  text-decoration: none;
}

/* hover sous-menu */
.submenu li a:hover {
  background-color: var(--jaune);
  color: var(--noir);
}

/* affichage desktop */
.dropdown:hover .submenu {
  display: block;
}

/* ================= BURGER ================= */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: var(--jaune);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: var(--noir);
    display: none;
    flex-direction: column;
  }

  .nav.active {
    display: flex;
  }

  .menu {
    flex-direction: column;
    gap: 0;
  }

  .menu > li > a {
    padding: 15px;
    border-top: 1px solid #222;
  }

  .submenu {
    position: static;
    display: none;
    box-shadow: none;
  }

  .dropdown.open .submenu {
    display: block;
  }
}

@media (max-width: 500px) {
  .header {
    padding: 10px 20px;
  }

  .logo img {
    height: 45px;
  }
}

/* ================= TITRE PAGE ================= */
h1 {
  margin-top: 140px;
  margin-bottom: 80px;
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--noir);
}

h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--jaune);
  margin: 20px auto 0;
}

h2 {
  margin: 50px 0 25px;
  font-size: 1.4rem;
  font-weight: 500;
  position: relative;
  padding-left: 40px;
  letter-spacing: 0.5px;
}

h2::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background-color: var(--jaune);
}

@media (max-width: 500px) {
  h2 {
    font-size: 1.2rem;
    margin: 35px 0 20px;
    padding-left: 32px;
  }

  h2::before {
    left: 10px;
  }
}

.governance-subtitle {
  text-align: center;        /* centre le texte */
  font-size: 1.2rem;         /* légèrement plus grand */
  max-width: 800px;          /* limite la largeur pour une meilleure lisibilité */
  margin: 0 auto 40px;       /* centre horizontalement et ajoute un margin-bottom */
  line-height: 1.6;          /* meilleure lisibilité */
  color: var(--noir);        /* reste cohérent avec le site */
}

/* ================= LIENS EQUIPEMENTS ================= */
.lien-equipement {
  margin-bottom: 30px;
}

.lien-equipement .btn-lien{
  display: block;
  margin-left: 20px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--noir);
}

.lien-equipement .btn-lien:hover {
  color: var(--jaune);
  text-decoration: underline;
}

/* ================= RESPONSABLES - MINI CARDS ================= */

.lien-equipement .responsable-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(247,198,0,0.08); /* fond jaune très léger */
  padding: 12px 15px;
  margin-bottom: 10px;
  border-left: 4px solid var(--jaune); /* barre jaune à gauche */
  border-radius: 8px;
  font-weight: 600;
  color: var(--noir);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.lien-equipement .responsable-card:hover {
  transform: translateX(5px); /* léger décalage au hover */
  background-color: rgba(247,198,0,0.15); /* fond légèrement plus visible */
}

/* MOBILE */
@media (max-width: 500px) {
  .lien-equipement .responsable-card {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}

/* ================= DESCRIPTION - TEXTE ================= */
.lien-equipement .texte-equipement {
  padding: 12px 20px;
  border-radius: 6px;
  margin: 15px auto 0; /* centré horizontalement avec margin top */
  font-size: 1.1rem;   /* légèrement plus gros */
  line-height: 1.6;
  max-width: 700px;    /* limite la largeur pour garder la lecture agréable */
  text-align: center;  /* centrage du texte */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ================= EFFET SUR LES BOUTONS LIEUX ================= */
.lien-equipement .btn-lien {
  position: relative;         /* nécessaire pour l’underline animée */
  color: var(--noir);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

/* Changement de couleur au survol */
.lien-equipement .btn-lien:hover {
  color: var(--jaune);
}

/* underline animée */
.lien-equipement .btn-lien::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;              /* espace entre le texte et la ligne */
  width: 0;
  height: 3px;
  background: var(--jaune);
  transition: width 0.3s ease;
}

/* au survol, underline pleine largeur */
.lien-equipement .btn-lien:hover::after {
  width: 100%;
}


/* ================= ICONES SOCIAUX ================= */

.social-icons {
  display: flex;
  gap: 15px;          /* espace entre les icônes */
  justify-content: center; /* centré horizontalement */
  margin-top: 20px;   /* ou à ajuster selon l'emplacement */
}

.social-icons a img {
  width: 32px;        /* taille des icônes */
  height: 32px;
  transition: transform 0.3s, opacity 0.3s;
}

.social-icons a:hover img {
  transform: scale(1.2); /* léger zoom au survol */
  opacity: 0.8;          /* effet visuel */
}

@media (max-width: 500px) {
  .social-icons a img {
    width: 24px;
    height: 24px;
  }
}
