/* Variables */
:root {
  --primary-color: #2c5530;
  --secondary-color: #4a7856;
  --accent-color: #8ba888;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
}

/* General Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 300px;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.95) !important;
  height: 76px;
}

.navbar-brand img {
  height: 50px;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text-color) !important;
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.2s ease;
  transform: translateY(0);
  text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-link.active {
  color: var(--primary-color) !important;
}

/* Styles spécifiques pour le logo dans les headers avec effet de scroll */
.navbar-scroll-effect .navbar-brand {
  /* Permet au logo de prendre toute la hauteur sans être centré verticalement par flexbox par défaut de navbar-brand */
  display: block; /* ou inline-block, à tester */
  padding-top: 0; /* Annuler le padding qui pourrait centrer */
  padding-bottom: 0;
  margin-right: 1rem; /* Garder une marge pour le texte de la marque si présent */
}

.navbar-scroll-effect .navbar-brand img {
  height: 200px; /* Hauteur initiale gérée par JS via style inline, mais on peut la spécifier ici sans !important */
  /* La transition de hauteur est déjà sur le style inline */
  /* Pour le débordement, on s'assure qu'il n'y a pas de contraintes de largeur excessives */
  width: auto; /* Laisser la largeur s'ajuster au ratio de la hauteur */
  max-width: none; /* Annuler une éventuelle max-width */
  /* Pour s'assurer qu'il est au-dessus du menu secondaire s'il déborde */
  position: relative;
  z-index: 10;
}

.navbar-scroll-effect.navbar-expanded {
  min-height: 200px; /* Assure que la barre est assez haute pour le grand logo */
}

/* Ajustement de la navbar principale pour accommoder un grand logo et le débordement */
.navbar-scroll-effect.navbar {
  /* Retirer la hauteur fixe pour qu'elle s'adapte au contenu (logo + liens) */
  height: auto;
  /* Les paddings internes peuvent être ajustés si besoin, mais ceux du HTML (15px) sont déjà là */
  /* padding-top: 15px; */
  /* padding-bottom: 15px; */
  /* Important pour que le logo qui déborde soit visible */
  overflow: visible;
}

/* Le menu secondaire doit commencer après la navbar principale */
/* Le padding-top: 240px; est déjà dans le HTML des headers V5, V7, V8 pour .secondary-nav */
/* Assurons-nous que le .secondary-nav lui-même n'est pas fixe pour ces cas */
/* On peut supprimer la règle .navbar-scroll-effect + .secondary-nav si .secondary-nav est toujours fixed */

/* Secondary Navigation */
.secondary-nav {
  background-color: var(--dark-bg);
  padding: 0.5rem 0;
  position: fixed;
  width: 100%;
  z-index: 1035;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.secondary-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.2s ease;
  transform: translateY(0);
  text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.secondary-nav .nav-link:hover,
.secondary-nav .nav-link.active {
  color: #fff !important;
  transform: translateY(-3px);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.secondary-nav .dropdown-menu {
  background-color: var(--dark-bg);
  border: none;
}

.secondary-nav .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
}

.secondary-nav .dropdown-item:hover {
  background-color: #495057;
  color: #fff;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 0;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section .row {
  min-height: calc(100vh - 120px);
  align-items: center;
}

.hero-section .col-lg-6:first-child {
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  backdrop-filter: blur(5px);
}

/* Styles pour le texte sur l'image de fond de la page d'accueil */
.hero-section .col-lg-8 > h2,
.hero-section .col-lg-8 > h3,
.hero-section .col-lg-8 > p {
  color: #fff;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
}

.hero-section h1 {
  color: var(--primary-color);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section h2 {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-section .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* About Section */
.feature-box {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  background-color: var(--light-bg);
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-box i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* Services Section */
.card {
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
}

footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color);
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-section .col-lg-6:first-child {
    margin: 2rem;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section h2 {
    font-size: 1.75rem;
  }

  .feature-box {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .navbar-brand img {
    height: 100px !important;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section h2 {
    font-size: 1.5rem;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.rounded {
  border-radius: 0.5rem !important;
}

/* Styles pour la nouvelle navigation par année */
.year-navigation-container {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1.5rem !important;
}

.year-navigation-container h5 {
  color: var(--primary-color, #007bff);
  font-weight: 500;
}

.year-navigation-container .btn-group .btn {
  margin: 0 0.25rem; /* Ajoute un petit espace entre les boutons Précédent/Suivant */
}

#resetGalleryButton {
  display: block; /* Pour le centrer avec margin auto */
  margin-left: auto;
  margin-right: auto;
  max-width: 300px; /* Évite qu'il soit trop large sur grand écran */
}

.service-card .list-group-item {
  background-color: transparent;
  border-color: rgba(0, 0, 0, 0.08);
}

/* =================================
    Footer
   ================================= */
