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

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  text-align: center;
}

/* ===========================
   HEADER
=========================== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background-color: #273070;
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

header .logo img {
  height: 70px;
}

header .logo span {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

/* ===========================
   NAVIGATION
=========================== */
header nav {
  display: flex;
  align-items: center; 
  gap: 25px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

header nav a,
header nav .dropdown > a {
  color: #f3f3f3;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s;
  display: flex;
  align-items: center; /* flèche et texte alignés */
}

header nav a:hover {
  background-color: rgba(255,255,255,0.15);
}

/* ===========================
   DROPDOWN
=========================== */
header nav .dropdown {
  position: relative;
  cursor: pointer;
}

header nav .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 4px); /* espace sous le lien */
  left: 0;
  min-width: 180px;
  background-color: #273070;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  flex-direction: column;
}

header nav .dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #f3f3f3;
  font-size: 1.1rem;
}

header nav .dropdown-content a:hover {
  background-color: rgba(255,255,255,0.15);
}

/* Dropdown actif */
header nav .dropdown.active .dropdown-content {
  display: flex;
}

/* Flèche ▼ / ▲ */
header nav .dropdown > a::after {
  content: " ▼";
  font-size: 0.8rem;
  transition: transform 0.3s;
}

header nav .dropdown.active > a::after {
  content: " ▲";
}

/* ===========================
   BOUTON MOBILE
=========================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* ===========================
   HERO
=========================== */
.hero {
  height: 100vh;
  width: 100%;
  background-image: url('../images/Mandat/Groupe/2025.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  color: white;
  padding: 20px;
}

.hero-overlay h1 {
  font-size: 3rem;
}

.hero-overlay p {
  font-size: 1.5rem;
}

.hero-text h1{
  color :#273070
}

/* ===========================
   SECTION À PROPOS
=========================== */
.about {
  padding: 60px 20px;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-container h2 {
  font-size: 2rem;
  color: #273070;
  margin-bottom: 1rem;
}

.about-container p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ===========================
   FOOTER
=========================== */
footer {
  text-align: center;
  padding: 15px 20px;
  background-color: #273070;
  color: white;
  font-size: 0.9rem;
  border-top: 1px solid #444;
}

footer a {
  color: #f3f3f3;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s;
}

footer a:hover {
  background-color: rgba(255,255,255,0.15);
}

/* ===========================
   RESPONSIVE - MOBILE
=========================== */
@media (max-width: 768px) {
  header nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #273070;
    margin-top: 5px;
    border-radius: 6px;
    overflow: visible;
  }

  header nav.active {
    display: flex;
  }

  header nav a,
  header nav .dropdown-content a {
    padding: 10px 15px;
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  header nav .dropdown-content {
    display: none;
    flex-direction: column;
  }

  header nav .dropdown.active .dropdown-content {
    display: flex;
  }

  header nav a:hover,
  header nav .dropdown.active .dropdown-content a:hover {
    background-color: #444;
  }

  .hero-overlay h1 { font-size: 2rem; }
  .hero-overlay p { font-size: 1.1rem; }
  .about-container h2 { font-size: 1.5rem; }
  .about-container p { font-size: 1rem; }
  header nav .dropdown > a {font-size: 1rem;}
  header nav .dropdown > a::after {font-size: 0.7rem; }
}

