/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  background-color: #f4f6f8;
  color: #333;
  min-height: 100vh;
}

/* ----------------------------- */
/* HEADER MODERNE */
/* ----------------------------- */

.site-header {
  width: 100%;
  background-color: #003d82;
  color: white;
  padding: 0 1.5rem;
  /* Pas de marge verticale interne */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 75px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-left a {
  display: block;
  flex-shrink: 0;
}

.header-logo {
  height: 70px;
  width: auto;
  min-width: 200px;
  max-width: 250px;
  object-fit: contain;
  display: block;
}

/* MENU */
.header-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.header-nav ul li a {
  color: #dce6f5;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  transition: 0.2s;
  white-space: nowrap;
  font-weight: 500;
}

.header-nav ul li a:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.header-nav ul li a.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  font-weight: 700;
  border-bottom: 2px solid rgba(255,255,255,0.8);
}

.nav-separator {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0.2rem;
  user-select: none;
}

/* ----------------------------- */
/* MENU DÉROULANT PRESTATIONS    */
/* ----------------------------- */
.header-nav ul li.has-dropdown {
  position: relative;
}

.header-nav ul li.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.75rem;
  opacity: 0.8;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #002f6c;
  border-radius: 6px;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 2000;
  overflow: hidden;
  flex-direction: column;
}

.header-nav ul li.has-dropdown:hover .dropdown-menu,
.header-nav ul li.has-dropdown:focus-within .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.2rem !important;
  color: #dce6f5 !important;
  text-decoration: none;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  background: transparent !important;
  border-radius: 0 !important;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-left-color: #4da6ff;
}

.dropdown-menu a .drop-icon {
  font-size: 1rem;
  margin-right: 6px;
}

.btn-nav {
  background-color: white !important;
  color: #003d82 !important;
  border-radius: 20px !important;
  padding: 0.4rem 1rem !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
}

.btn-nav:hover {
  background-color: #f4f6f8 !important;
  transform: translateY(-1px);
}

/* Bouton Quitter */
.btn-quit {
  background: transparent !important;
  color: rgba(255,255,255,0.85) !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  border-radius: 20px !important;
  padding: 0.35rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  margin-left: 0.3rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.btn-quit:hover {
  background: rgba(255,255,255,0.18) !important;
  color: white !important;
  transform: translateY(-1px);
}

/* ----------------------------- */
/* CONTENU */
/* ----------------------------- */

.main-content {
  padding: 2rem 3rem;
}

.page-header h1 {
  font-size: 2rem;
  color: #003d82;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

.content-section {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-section h2 {
  color: #003d82;
  margin-bottom: 0.8rem;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.text-center-block {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.text-center-block p.section-subtitle {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #555;
}

.content-section p strong {
  color: #003d82;
}

.content-section ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.content-section ul li {
  margin-bottom: 0.4rem;
}

/* ----------------------------- */
/* HERO SECTION & BUTTONS */
/* ----------------------------- */

.hero-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: linear-gradient(135deg, #001f4d 0%, #003d82 60%, #0056b3 100%);
  padding: 2rem 4rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-content .highlight,
.mission-hero .text .highlight {
  color: #e63946;
  /* Rouge dynamique */
}

.hero-content p {
  font-size: 1rem;
  color: #e8f0fb;
  margin-bottom: 0;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: #003d82;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 61, 130, 0.2);
}

.btn-primary:hover {
  background: #002855;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 61, 130, 0.3);
}

.btn-secondary {
  background: white;
  color: #003d82;
  border: 2px solid #003d82;
}

.btn-secondary:hover {
  background: #f4f6f8;
  transform: translateY(-2px);
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  width: min(380px, 100%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

/* Règle universelle : le conteneur est fixe, l'image s'adapte */
.img-16-9 {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.img-16-9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ----------------------------- */
/* SECTION TITRES & CARTES */
/* ----------------------------- */

.section-title {
  color: #003d82;
  margin-bottom: 2rem;
  font-size: 2rem;
  text-align: center;
}

.features-section {
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  color: #003d82;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}


/* ----------------------------- */
/* FOOTER */
/* ----------------------------- */

.footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #e9eef3;
  color: #333;
  font-size: 0.9rem;
  margin-top: 2rem;
  border-top: 1px solid #d0d7de;
}

.footer a {
  color: #003d82;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

/* ----------------------------- */
/* RESPONSIVE SMARTPHONE */
/* ----------------------------- */

/* ========= HAMBURGER BUTTON ========= */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* ========= MOBILE ========= */
@media screen and (max-width: 768px) {

  .hamburger {
    display: flex !important;
  }

  .site-header {
    flex-wrap: wrap !important;
    padding: 0 1rem !important;
    min-height: 65px !important;
    align-items: center !important;
  }

  .header-left {
    flex: 1 !important;
  }

  .header-logo {
    height: 60px !important;
    width: auto !important;
    min-width: 150px;
    display: block !important;
  }

  /* NAV hidden by default on mobile */
  .header-nav {
    display: none !important;
    width: 100% !important;
    background: #003d82 !important;
    order: 3 !important;
  }

  .header-nav.open {
    display: block !important;
  }

  .header-nav ul {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
  }

  .header-nav ul li {
    width: 100% !important;
  }

  .header-nav ul li a {
    display: block !important;
    padding: 13px 20px !important;
    font-size: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    white-space: normal !important;
  }

  .nav-separator {
    display: none !important;
  }

  .btn-nav {
    margin: 10px 20px !important;
    border-radius: 6px !important;
    text-align: center !important;
  }

  /* Hero */
  .hero-section {
    flex-direction: column !important;
    padding: 20px 15px !important;
    text-align: center !important;
  }

  .hero-content h1 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
  }

  .hero-content p {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
  }

  .hero-image img {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    margin: 0 auto !important;
  }

  .main-content {
    padding: 1rem !important;
  }
}