* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}
body {
  background: #f4f7fc;
  color: #1e2a3a;
}
a {
  text-decoration: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER / NAV ===== */
header {
  background: #0b1a2e;
  color: white;
  padding: 12px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  position: relative;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.logo-placeholder {
  width: 52px;
  height: 52px;
  background: #2a4b6e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffd966;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.15;
  text-transform: uppercase;
  color: #ffffff;
}
.brand span {
  color: #ffd966;
}
.brand .brand-line {
  display: block;
}
.brand .brand-line:last-child {
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: #ffd966;
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  margin-left: auto;
  z-index: 110;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 4px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  transition: 0.3s;
}
nav ul li a {
  color: #f0f4fa;
  font-weight: 500;
  transition: 0.3s;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav ul li a:hover, nav ul li a.active {
  border-bottom-color: #ffd966;
  color: #ffd966;
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 900px) {
  .brand {
    font-size: 0.95rem;
  }
  .brand .brand-line:last-child {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  nav ul {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    width: 260px;
    background: #0b1a2e;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    transition: max-height 0.4s ease, padding 0.3s ease;
    border-radius: 18px;
    border: 1px solid #1f3750;
  }
  nav ul.open {
    max-height: 420px;
    padding: 10px 0;
  }
  nav ul li {
    width: 100%;
    text-align: left;
    padding: 0;
    border-bottom: 1px solid #1f3750;
  }
  nav ul li:last-child {
    border-bottom: none;
  }
  nav ul li a {
    display: block;
    padding: 14px 24px;
    border-bottom: none;
  }
  nav ul li a:hover,
  nav ul li a.active {
    background: #14263d;
    border-bottom: none;
  }
  .brand {
    font-size: 0.9rem;
  }
  .brand .brand-line:last-child {
    font-size: 0.65rem;
    letter-spacing: 1.2px;
  }
  .logo-placeholder {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 400px) {
  .brand {
    font-size: 0.8rem;
  }
  .brand .brand-line:last-child {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }
  nav ul {
    width: 220px;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128C7E;
}

/* BANNER */
.banner {
  background: url('image/ap.png') center/cover no-repeat;
  color: white;
  padding: 60px 0;
  margin-bottom: 20px;
  border-radius: 0 0 40px 40px;
  box-shadow: inset 0 -8px 20px rgba(0,0,0,0.2);
}
.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.banner-text {
  background: #00000071;
  text-align: center;
  border-radius: 80px;
  padding: 20px 30px;
  flex: 1 1 300px;
}
.banner-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.banner-text h1 i {
  color: #ffd966;
}
.banner-text p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  font-weight: bold;
}
.banner-image {
  background: rgba(255,215,0,0.08);
  padding: 20px;
  border-radius: 30px;
  border: 1px dashed #ffd966;
  width: 320px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ffd966;
  flex-shrink: 0;
}
.banner-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
@media (max-width: 700px) {
  .banner-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .banner-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    padding: 16px;
  }
  .banner-text h1 {
    font-size: 2rem;
  }
}

/* ALERTE URGENTE */
.alerte-urgente {
  background: #ffd966;
  color: #0b1a2e;
  padding: 18px 20px;
  border-radius: 40px;
  margin: 10px 0 30px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 50px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(255, 217, 102, 0.3);
  border: 1px solid #f0c74a;
}
.alerte-urgente i {
  margin-right: 10px;
  color: #b22222;
}
.alerte-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.alerte-item .badge-urgent {
  background: #b22222;
  color: white;
  font-size: 0.7rem;
  padding: 2px 12px;
  border-radius: 30px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 600px) {
  .alerte-urgente {
    flex-direction: column;
    gap: 12px;
    border-radius: 28px;
    padding: 20px;
    text-align: center;
  }
}

/* sections */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #0b1a2e;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background: #ffd966;
  border-radius: 4px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin: 40px 0;
}
.card {
  background: white;
  padding: 24px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.4s ease;
  border: 1px solid #e9eef3;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: #ffd966;
}
.card i {
  font-size: 2.4rem;
  color: #1d3a5a;
  margin-bottom: 16px;
}
.card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.card p {
  color: #3e4f5e;
  line-height: 1.5;
}
.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  background: white;
  padding: 28px 30px;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.02);
}
.values-list span {
  background: #eef3f9;
  padding: 8px 22px;
  border-radius: 40px;
  font-weight: 500;
  color: #0b1a2e;
  border-left: 4px solid #ffd966;
}
.btn {
  display: inline-block;
  background: #0b1a2e;
  color: white;
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: #ffd966;
  color: #0b1a2e;
}
footer {
  background: #0b1a2e;
  color: #b8c9dd;
  padding: 40px 0 20px;
  margin-top: 50px;
  border-radius: 40px 40px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 {
  color: white;
  margin-bottom: 16px;
}
.footer-grid i {
  margin-right: 8px;
  color: #ffd966;
}
.copyright {
  border-top: 1px solid #263b50;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}
/* pages hidden by default */
.page {
  display: none;
  animation: fadeUp 0.5s ease;
}
.page.active {
  display: block;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* contact info */
.contact-block {
  background: white;
  border-radius: 28px;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.04);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1rem;
}
.contact-item i {
  width: 44px;
  height: 44px;
  background: #eef3f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1a2e;
  font-size: 1.2rem;
}
.badge {
  background: #ffd966;
  color: #0b1a2e;
  padding: 4px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 8px;
}
/* small fix */
.logo-placeholder img {
  border-radius: 50%;
  object-fit: cover;
}
.banner-image img {
  max-width: 100%;
  height: auto;
}

/* ===== AFFICHE PRINCIPALE (après la bannière) ===== */
.affiche-principale {
  margin: 10px 0 30px;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border: 4px solid #ffd966;
  position: relative;
  transition: 0.3s ease;
}
.affiche-principale:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
}
.affiche-principale img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 520px;
}
.affiche-caption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: #0b1a2e;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
}
.affiche-caption i {
  font-size: 1.6rem;
  color: #ffd966;
  flex-shrink: 0;
}
.affiche-caption strong {
  color: #ffd966;
}

@media (max-width: 700px) {
  .affiche-principale {
    border-width: 3px;
    border-radius: 20px;
  }
  .affiche-caption {
    flex-direction: column;
    text-align: center;
    padding: 16px 18px;
    font-size: 0.92rem;
  }
  .affiche-caption i {
    font-size: 1.4rem;
  }
}

/* Sous-menu Extensions */
.has-submenu {
  position: relative;
}
.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0b1a2e;
  min-width: 200px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 8px 0;
  z-index: 1000;
  border: 1px solid #1f3750;
}
.has-submenu:hover .submenu {
  display: block;
}
.has-submenu .submenu li {
  width: 100%;
  text-align: left;
  border-bottom: none;
}
.has-submenu .submenu li a {
  display: block;
  padding: 10px 20px;
  color: #f0f4fa;
  font-size: 0.9rem;
}
.has-submenu .submenu li a:hover {
  background: #14263d;
  color: #ffd966;
  border-bottom: none;
}

/* ===== SOUS-MENU EXTENSIONS (mobile) ===== */
@media (max-width: 768px) {
  .has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }
  .has-submenu > a .fa-chevron-down {
    transition: transform 0.3s ease;
  }
  .has-submenu.open > a .fa-chevron-down {
    transform: rotate(180deg);
  }
  .has-submenu .submenu {
    position: static;
    display: block;
    background: #14263d;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0 12px;
    max-height: 0;
    overflow: hidden;
    border-radius: 10px;
    transition: max-height 0.35s ease, padding 0.3s ease, margin 0.3s ease;
  }
  .has-submenu.open .submenu {
    max-height: 300px;
    padding: 6px 0;
    margin-bottom: 8px;
  }
  .has-submenu .submenu li {
    border-bottom: none;
    width: 100%;
    text-align: left;
  }
  .has-submenu .submenu li a {
    display: block;
    padding: 10px 24px 10px 36px;
    font-size: 0.85rem;
    color: #f0f4fa;
    border-bottom: none;
  }
  .has-submenu .submenu li a:hover {
    background: #1f3750;
    color: #ffd966;
    border-bottom: none;
  }
}

/* ============================================
   ===== MODAL PROFIL DIRIGEANT (GLOBAL) =====
   ============================================ */
.profil-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 26, 46, 0.92);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}
.profil-modal.show {
  display: flex;
}
.profil-modal-content {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  animation: zoomIn 0.3s ease;
  text-align: center;
  overflow: hidden;
  margin: auto;
}
.profil-modal-photo {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #e9eef3;
}
.profil-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.profil-modal-body {
  padding: 24px 26px 28px;
}
.profil-modal-body h2 {
  font-size: 1.4rem;
  color: #0b1a2e;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.profil-modal-body .role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffd966;
  color: #0b1a2e;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}
.profil-modal-body .role i {
  font-size: 0.85rem;
}
.profil-modal-body p {
  font-size: 0.95rem;
  color: #3e4f5e;
  line-height: 1.65;
  margin: 0 auto 20px;
  max-width: 360px;
}
.profil-modal-body .profil-contact {
  padding-top: 20px;
  border-top: 1px solid #edf2f7;
}
.profil-modal-body .profil-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: 0.3s;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}
.profil-modal-body .profil-contact a:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.4);
}
/* Croix de fermeture — bien à l'intérieur */
.profil-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(11, 26, 46, 0.75);
  color: #ffd966;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  transition: 0.3s;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.profil-modal-close:hover {
  background: #ffd966;
  color: #0b1a2e;
  transform: rotate(90deg);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 500px) {
  .profil-modal {
    padding: 16px;
  }
  .profil-modal-content {
    max-width: 100%;
    border-radius: 20px;
  }
  .profil-modal-photo {
    height: 220px;
  }
  .profil-modal-body {
    padding: 20px 20px 24px;
  }
  .profil-modal-body h2 {
    font-size: 1.2rem;
  }
  .profil-modal-body p {
    font-size: 0.9rem;
  }
}