/* ===== Général ===== */
html {
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
}
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

/* S'assurer que tous les éléments héritent box-sizing */
*, *::before, *::after {
  box-sizing: inherit;
}
/* Supprimer les puces des menus et sous-menus */
nav ul, nav li {
  list-style: none;  /* enlève les puces */
  padding: 0;
  margin: 0;
}

body.light-theme {
  background-color: #fff;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  cursor: none;
  min-height: 100vh; /* s’assure que le body prend toute la hauteur */
  display: flex;
  flex-direction: column;
}
/* Splash screen */
#splash-screen {
  position: fixed;
  inset: 0;
  background: #0d1117; /* fond sombre */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.page-content {
  padding-top: 120px; /* même que la hauteur de la navbar */
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  color: #fff;
}

.splash-logo {
  width: 120px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

/* Curseur personnalisé */
#customCursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px; /* taille du curseur */
  height: 20px;
  background-color: #0727f3; /* couleur digitale */
  border-radius: 50%; /* cercle -> mettre 0% pour carré */
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease, width 0.2s ease, height 0.2s ease;
  z-index: 9999;
}

/* Hover menu effect */
.nav-link:hover ~ #customCursor {
  background-color: #ff0000; /* couleur du hover */
  width: 20px;
  height: 20px;
}

.nav-link.active {
  color: #FF0000;
  font-weight: 700;
}

.nav-link {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
/* Traits */
.nav-link::before,
.nav-link::after {
  content: '';
  position: absolute;
  height: 5px;
  width: 0;
  bottom: 0;
  background-color: linear-gradient(90deg, #0727f3, #ff0000); /* couleur des traits */
  transition: all 0.3s ease;
}

.nav-link::before {
  left: 0;
}

.nav-link::after {
  right: 0;
}

/* Au hover ou actif */
.nav-link:hover::before,
.nav-link:hover::after,
.nav-link.active::before,
.nav-link.active::after {
  width: 50%;
    color: #ff0000; /* bleu digital */
  text-shadow: 0 0 5px #0727f3, 0 0 10px #0727f3;
}


.nav-link:hover::before {
  width: 100%;
}


/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
}

/* Logo vertical */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img { height: 50px; object-fit: contain; }
.tricolor-bar { display: flex; flex-direction: column; height: 70px; margin-left: 5px; }
.bar { flex: 1; width: 6px; transition: all 0.3s ease; }
.bar.blue { background-color: #0727f3; }
.bar.yellow { background-color: #FFD700; }
.bar.red { background-color: #FF0000; }

.logo-text { display: flex; flex-direction: column; font-weight: 700; font-size: 0.9rem; color: #002147; line-height: 1.2; }


/* ===== Sous-menu ===== */
.nav-menu li {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 5px;
  padding: 10px 0;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.submenu li {
  padding: 8px 20px;
}

.submenu a {
  color: #000;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.submenu a:hover {
  color: #FF0000;
}

/* Affichage avec transition */
.nav-menu li:hover > .submenu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Menu horizontal / mobile */
.nav-menu {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  color: #000;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background-color: #0727f3;
  transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #FFD700; }
.nav-link.active { color: #FF0000; }

/* Bouton toggle mobile */
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; transition: transform 0.3s; }
.menu-toggle:hover { transform: rotate(90deg); }

/* Hero */

.hero {
  margin-top: 120px; /* même hauteur que navbar */
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 120px); /* pleine page moins navbar */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}
.hero {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
              url('../images/background/b2.jpg') center/cover no-repeat;
  animation: bgMove 20s infinite alternate;
}
#heroParticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* ne bloque pas les clics */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2; /* le contenu reste au-dessus des particules */
}

@keyframes bgMove {
  0% { background-position: center top; }
  50% { background-position: center center; }
  100% { background-position: center bottom; }
}
.hero-title {
  font-size: clamp(1.3rem, 3vw, 3rem);
  font-weight: 700;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;   /* permet de passer en colonne si pas assez de place */
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.hero-buttons .btn {
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #fff;
  text-align: center;
  min-width: 180px;  /* taille uniforme */
}
/* Effet au survol */
.hero-buttons .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
/* Rouge */
.btn-red {
  background: #e63946;
  border: none;
}
.btn-red:hover {
  background: #c92d3a;
}

/* Jaune */
.btn-yellow {
  background: #f1c40f;
  border: none;
  color: #333; /* pour meilleure lisibilité */
}
.btn-yellow:hover {
  background: #d4ac0d;
  color: #000;
}

/* Bleu */
.btn-blue {
  background: #3498db;
  border: none;
}
.btn-blue:hover {
  background: #217dbb;
}
.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,255,255,0.5);
}

/* Notification ticker */
.notification-ticker {
  position: relative;
  overflow: hidden;
  height: 50px;
  width: 80%;
  margin: 30px auto 0;
}

.ticker-item {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  animation: ticker 9s linear infinite;
}

/* Stagger via delay */
.ticker-item:nth-child(1) { animation-delay: 0s; }
.ticker-item:nth-child(2) { animation-delay: 3s; }
.ticker-item:nth-child(3) { animation-delay: 6s; }

@keyframes ticker {
  0% { top: 100%; opacity: 0; }
  10% { top: 0; opacity: 1; }
  30% { top: 0; opacity: 1; }
  40% { top: -100%; opacity: 0; }
  100% { top: -100%; opacity: 0; }
}

/* Canvas particules */
#heroParticles {
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index: 0;
}

/* Section features sous le titre */
.hero-features {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

/* Carte individuelle */
.feature-card {
  background: rgba(255, 255, 255, 0.12); /* effet semi-transparent sur la bannière */
  border-radius: 15px;
  padding: 20px;
  max-width: 250px;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(6px); /* effet verre */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation au survol */
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* Titre de la carte */
.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #FFD700; /* un accent doré */
}

/* Texte */
.feature-card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* mission */
.missions {
  background: #f8f9fa;
}
.section-title-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 30px;
  gap: 5px;
}
.section-title-bar .bar {
  width: 10px;  /* longueur réduite */
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.section-title-bar .bar.blue { background-color: #0727f3; }
.section-title-bar .bar.yellow { background-color: #FFD700; }
.section-title-bar .bar.red { background-color: #FF0000; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #002147;
}

.section-intro {
  font-size: 1.1rem;
  color: #555;
  max-width: 900px;
  margin: 0 auto;
  text-align: justify; /* justification */
}

.mission-card {
  background: #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.mission-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.mission-icon i {
  padding: 15px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
}


/* evenement récent  */

/* Section Événement récent */
.recent-event {
  background-color: #FFD700; /* fond sobre */
  padding: 60px 20px;
}

.recent-event .section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.recent-event .section-title-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 10px auto 20px;
}

.recent-event .section-title-bar .bar {
  width: 15px;
  height: 3px;
  border-radius: 2px;
}

.recent-event .bar.blue { background-color: #0727f3; }
.recent-event .bar.yellow { background-color: #FFD700; }
.recent-event .bar.red { background-color: #FF0000; }

.recent-event .event-text {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 20px;
  text-align: justify;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards 0.2s;
}

/* Image du Gouverneur */
.recent-event .event-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Bouton de téléchargement */
.recent-event .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 5px;
  background-color: #0727f3; /* couleur unique */
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.recent-event .btn-download:hover {
  background-color: #0550c1;
  transform: translateY(-2px);
}

/* article à la une  */
.articles-une .tricolor-bar-vertical {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 8px;
}
/* Carte article */
.article-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* Image zoom sur hover */
.article-img-wrapper {
  overflow: hidden;
}

.article-img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.article-card:hover .article-img {
  transform: scale(1.05);
}

/* Bouton lire article */
.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0727f3;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.btn-read i {
  font-size: 1.2em;
}

.btn-read:hover {
  color: #FFD700;
}
.article-card .btn-outline-primary {
  background: transparent;
  border: 1px solid #0727f3;
  color: #0727f3;
  font-weight: 600;
  transition: all 0.3s;
}


.articles-une .tricolor-bar-vertical .bar {
  flex: 1;
}

.articles-une .tricolor-bar-vertical .blue { background-color: #0727f3; }
.articles-une .tricolor-bar-vertical .yellow { background-color: #FFD700; }
.articles-une .tricolor-bar-vertical .red { background-color: #FF0000; }

.articles-une .card-title {
  font-size: 1.1rem;
}

.articles-une .btn-primary {
  background-color: #0727f3;
  border: none;
}

.articles-une .btn-primary:hover {
  background-color: #0551c0;
}

.btn-all-articles {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  background-color: #0727f3;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.btn-all-articles i {
  font-size: 1.2em;
}

.btn-all-articles:hover {
  background-color: #FFD700;
  color: #0727f3;
}

/* footer stye */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@600;700&display=swap');

.footer {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}
.footer .container {
  padding-left: 20px;  /* même que bootstrap container */
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #FFD700;
}

.logo-footer {
  display: flex;
  align-items: flex-start;
}
.logo-footer img.logo-img {
  height: 60px; /* ajuster pour être même taille que navbar */
}



.tricolor-bar-vertical {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  height: 50px; /* même hauteur que logo */
}

.tricolor-bar-vertical .bar {
  flex: 1;
  width: 6px;
}

.tricolor-bar-vertical .blue { background-color: #0727f3; }
.tricolor-bar-vertical .yellow { background-color: #FFD700; }
.tricolor-bar-vertical .red { background-color: #FF0000; }

.logo-text-footer span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.contact-info h5, .newsletter h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-info p {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-info i {
  color: #0727f3;
}

.newsletter input {
  flex: 1;
}

.social-icons a {
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  transform: scale(1.3);
  color: #FFD700;
}

.footer hr {
  border-color: rgba(255,255,255,0.2);
}

.footer p {
  font-size: 0.95rem;
}
/* Responsive */
@media (max-width: 768px) {
  .recent-event .container {
    flex-direction: column;
    text-align: center;
  }
  .recent-event .event-content {
    text-align: center;
  }
}


/* ===== Responsive ===== */
@media (max-width: 1250px) {
  .menu-toggle { display: block; }
  .hero{
    padding: 50px;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-menu.active { display: flex; }
  .nav-menu li { padding: 10px 20px; }
  .logo-img { height: 50px }
  .tricolor-bar { height: 50px; }
  .logo-text { font-size: 0.7rem; }
  .navbar-container { justify-content: space-between; align-items: center; flex-wrap: nowrap; }
  .submenu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding-left: 20px;
    display: none;
    opacity: 1;
    transform: translateY(0);
  }

  .submenu li {
    padding: 8px 0;
  }

  .nav-menu li.open > .submenu {
    display: flex;
    flex-direction: column;
  }
}
