/* ============================
   🌱 ASSEMA - Design Professionnel et Moderne
   ============================ */

/* 🎨 PALETTE DE COULEURS ÉQUILIBRÉE ET LISIBLE */
:root {
  /* === COULEURS PRINCIPALES (Professionnelles) === */
  --vert-principal: #1B5E20;      /* Vert ASSEMA principal - plus profond et élégant */
  --vert-clair: #388E3C;          /* Vert clair pour les accents - plus riche */
  --vert-tendre: #66BB6A;         /* Vert très clair pour les fonds - plus doux */
  --vert-accent: #4CAF50;         /* Vert accent pour les éléments interactifs */
  
  /* === COULEURS D'ACCENT (Modérées) === */
  --orange-chaud: #F57C00;        /* Orange chaleureux mais plus sophistiqué */
  --orange-doux: #FFB74D;         /* Orange doux pour les fonds */
  --bleu-professionnel: #1976D2;  /* Bleu professionnel plus profond */
  --bleu-clair: #42A5F5;          /* Bleu clair pour les accents */
  --beige-naturel: #F8F6F0;       /* Beige naturel plus raffiné */
  --beige-chaud: #EFEBE9;         /* Beige chaud pour les contrastes */
  
  /* === COULEURS DE FOND (Lisibilité parfaite) === */
  --blanc-pure: #FFFFFF;          /* Blanc pur */
  --gris-tres-clair: #FAFAFA;     /* Gris très clair pour les sections */
  --gris-clair: #F5F5F5;          /* Gris clair pour les cartes */
  --gris-moyen: #EEEEEE;          /* Gris moyen pour les séparateurs */
  
  /* === COULEURS DE TEXTE (Contraste optimal) === */
  --texte-principal: #1A1A1A;     /* Noir profond pour le texte principal */
  --texte-secondaire: #424242;    /* Gris foncé pour le texte secondaire */
  --texte-discret: #757575;       /* Gris moyen pour les légendes */
  --texte-marque: #2E7D32;        /* Vert pour les textes marquants */
  
  /* === DÉGRADÉS SUBTILS ET MODERNES === */
  --gradient-vert: linear-gradient(135deg, var(--vert-principal) 0%, var(--vert-clair) 50%, var(--vert-accent) 100%);
  --gradient-vert-doux: linear-gradient(135deg, var(--vert-tendre) 0%, var(--beige-naturel) 100%);
  --gradient-orange: linear-gradient(135deg, var(--orange-chaud) 0%, var(--orange-doux) 100%);
  --gradient-bleu: linear-gradient(135deg, var(--bleu-professionnel) 0%, var(--bleu-clair) 100%);
  --gradient-beige: linear-gradient(135deg, var(--beige-naturel) 0%, var(--beige-chaud) 100%);
  
  /* === OMBRES PROFESSIONNELLES ET MODERNES === */
  --ombre-legere: 0 2px 8px rgba(0, 0, 0, 0.08);
  --ombre-moyenne: 0 4px 16px rgba(0, 0, 0, 0.12);
  --ombre-forte: 0 8px 24px rgba(0, 0, 0, 0.15);
  --ombre-verte: 0 4px 20px rgba(46, 125, 50, 0.15);
  --ombre-orange: 0 4px 20px rgba(245, 124, 0, 0.15);
  
  /* === BORDURES ET RAYONS MODERNES === */
  --border-radius-petit: 8px;
  --border-radius-moyen: 12px;
  --border-radius-grand: 16px;
  --border-radius-arrondi: 24px;
  --border-radius-circulaire: 50%;
}

/* Reset moderne et professionnel */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  background: var(--blanc-pure);
  color: var(--texte-principal);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================
   HEADER PROFESSIONNEL ET MODERNE
   ============================ */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--ombre-legere);
  position: sticky;
  top: 0;
  z-index: 1100;
  border-bottom: 2px solid var(--vert-principal);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header:hover {
  box-shadow: var(--ombre-moyenne);
  background: rgba(255, 255, 255, 0.98);
}

header nav a {
  color: var(--texte-principal);
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 16px;
  border-radius: var(--border-radius-moyen);
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-vert);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

header nav a:hover::after {
  width: 80%;
}

header nav a:hover {
  color: var(--vert-principal);
  transform: translateY(-2px);
  background: rgba(46, 125, 50, 0.05);
}

header .cta-button {
  background: var(--gradient-vert);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--ombre-legere);
}

header .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--ombre-moyenne);
}

/* ============================
   HERO ATTRACTIF ET LISIBLE
   ============================ */
.hero {
  background: var(--gradient-vert);
  position: relative;
  color: white;
  text-align: center;
  padding: 120px 20px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  margin: 25px 0;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .btn {
  background: var(--gradient-orange);
  padding: 18px 36px;
  border-radius: var(--border-radius-arrondi);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--ombre-orange);
  text-decoration: none;
  animation: fadeInUp 1s ease-out 0.4s both;
  position: relative;
  overflow: hidden;
}

.hero .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.hero .btn:hover::before {
  left: 100%;
}

.hero .btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--ombre-forte);
}

/* ============================
   SECTIONS PROFESSIONNELLES
   ============================ */
section {
  padding: 80px 20px;
  position: relative;
}

section h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 50px;
  color: var(--texte-principal);
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--vert-principal);
  border-radius: 2px;
}

/* ============================
   CARTES MISSIONS PROFESSIONNELLES
   ============================ */
.missions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.missions .card {
  background: var(--blanc-pure);
  border-radius: var(--border-radius-grand);
  padding: 40px 25px;
  text-align: center;
  box-shadow: var(--ombre-legere);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--gris-moyen);
  position: relative;
  overflow: hidden;
}

.missions .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-vert);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.missions .card:hover::before {
  transform: scaleX(1);
}

.missions .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--ombre-verte);
  border-color: var(--vert-tendre);
}

.missions .card i {
  font-size: 3.5rem;
  color: var(--vert-principal);
  margin-bottom: 20px;
  display: block;
}

.missions .card h3 {
  font-size: 1.6rem;
  color: var(--texte-principal);
  margin-bottom: 15px;
  font-weight: 600;
}

.missions .card p {
  color: var(--texte-secondaire);
  line-height: 1.6;
  font-size: 1rem;
}

/* ============================
   ACTUALITÉS LISIBLES
   ============================ */
.news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.news .card {
  background: var(--blanc-pure);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--ombre-legere);
  transition: all 0.3s ease;
  border: none;
  position: relative;
}

.news .card::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange-chaud);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.news .card:hover::before {
  transform: scaleY(1);
}

.news .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre-moyenne);
}

.news .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news .card:hover img {
  transform: scale(1.03);
}

.news .card h3 {
  padding: 20px 20px 10px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--texte-principal);
}

.news .card p {
  padding: 0 20px 20px;
  color: var(--texte-secondaire);
  line-height: 1.5;
}

/* ============================
   MEMBRES PROFESSIONNELS
   ============================ */
.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.members .card {
  background: var(--blanc-pure);
  border-radius: 15px;
  padding: 25px 15px;
  text-align: center;
  box-shadow: var(--ombre-legere);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.members .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre-moyenne);
  border-color: var(--vert-tendre);
}

.members .card img {
  max-width: 100px;
  margin-bottom: 15px;
  border-radius: 50%;
  border: 3px solid var(--gris-clair);
  transition: all 0.3s ease;
}

.members .card:hover img {
  border-color: var(--vert-tendre);
  transform: scale(1.05);
}

.members .card h4 {
  color: var(--texte-principal);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.members .card p {
  color: var(--texte-secondaire);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ============================
   FOOTER PROFESSIONNEL ET MODERNE
   ============================ */
/* Le footer a été déplacé vers modern-footer.css pour un design plus moderne */

/* ============================
   ANIMATIONS PROFESSIONNELLES
   ============================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   STYLES COMPATIBILITÉ EXISTANTS
   ============================ */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--vert-principal);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--vert-clair);
  transform: scale(1.02);
}

/* ============================
   🎯 MENU BOOTSTRAP - ASSEMA
   ============================ */

/* Styles pour la navbar Bootstrap */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--vert-accent) !important;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin: 0 0.25rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--vert-accent) !important;
  transform: translateY(-2px);
}

/* Styles pour les dropdowns Bootstrap */
.dropdown-menu {
  border: 1px solid rgba(27, 94, 32, 0.15);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 200px;
}

.dropdown-item {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, var(--vert-tendre), var(--vert-accent));
  color: white;
  transform: translateX(5px);
}

/* Toggle mobile */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
  
  .nav-link {
    color: var(--texte-principal) !important;
    margin: 0.25rem 0;
  }
  
  .nav-link:hover {
    background: var(--vert-tendre) !important;
    color: white !important;
  }
}

.nav-links li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.nav-links a {
  color: var(--texte-principal);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--vert-principal);
  background: rgba(46, 125, 50, 0.1);
  transform: translateY(-1px);
}

/* ============================
   🎯 DROPDOWN MENUS - ASSEMA
   ============================ */

/* Conteneur dropdown */
.dropdown {
  position: relative !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Lien principal du dropdown */
.dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-petit);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.dropdown > a::after {
  content: "▼";
  font-size: 0.6rem;
  transition: all 0.3s ease;
  margin-left: 0.25rem;
  opacity: 0.8;
}

.dropdown:hover > a {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* Menu dropdown - Compact et vertical */
.dropdown-menu {
  display: none !important;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: var(--blanc-pure);
  min-width: 180px;
  max-width: 200px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-petit);
  z-index: 1000;
  border: 1px solid rgba(27, 94, 32, 0.15);
  padding: 0.5rem 0;
  backdrop-filter: blur(15px);
  overflow: hidden;
  list-style: none !important;
  margin: 0 !important;
}

/* Affichage au survol - Desktop */
.dropdown:hover .dropdown-menu {
  display: block !important;
  animation: fadeInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Affichage au clic pour mobile */
.dropdown.active .dropdown-menu {
  display: block !important;
  animation: fadeInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet hover pour le lien principal */
.dropdown:hover > a {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* État actif du dropdown */
.dropdown.active > a {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown.active > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* Animation d'apparition améliorée */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Éléments du dropdown */
.dropdown-menu li {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  list-style: none !important;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--texte-principal);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  text-align: left;
  line-height: 1.4;
}

.dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, var(--vert-tendre), var(--vert-accent));
  transition: width 0.3s ease;
  z-index: -1;
}

.dropdown-menu a:hover {
  color: var(--vert-principal);
  transform: translateX(5px);
  padding-left: 1.2rem;
  background: rgba(27, 94, 32, 0.05);
}

.dropdown-menu a:hover::before {
  width: 100%;
}

.dropdown-menu a:hover {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, var(--vert-tendre), var(--vert-accent));
}

/* Séparateur entre les sections */
.dropdown-menu li:not(:last-child) a {
  border-bottom: 1px solid rgba(27, 94, 32, 0.05);
}

/* Effet de brillance sur le dropdown */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.dropdown:hover .dropdown-menu::before {
  left: 100%;
}

/* Responsive dropdown */
@media (max-width: 768px) {
  .dropdown > a {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-petit);
    margin: 0.25rem 0;
  }
  
  .dropdown:hover > a {
    background: rgba(255, 255, 255, 0.2);
    transform: none;
    box-shadow: none;
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0 0 1rem;
    padding: 0.5rem 0;
    border-radius: var(--border-radius-petit);
    border-left: 3px solid var(--vert-principal);
    backdrop-filter: blur(10px);
  }
  
  .dropdown:hover .dropdown-menu,
  .dropdown.active .dropdown-menu {
    display: block;
    animation: slideInLeft 0.3s ease;
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .dropdown-menu a {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    background: transparent;
  }
  
  .dropdown-menu a::before {
    display: none;
  }
  
  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    color: var(--vert-accent);
    padding-left: 1.5rem;
  }
  
  .dropdown > a::after {
    content: "▶";
    font-size: 0.7rem;
  }
  
  .dropdown.active > a::after {
    transform: rotate(90deg);
  }
  
  .dropdown.active > a {
    background: rgba(255, 255, 255, 0.2);
    color: var(--vert-accent);
  }
}

/* ============================
   🎯 FOOTER SUBSECTIONS
   ============================ */

.footer-subsection-title {
  color: var(--vert-principal);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--gris-moyen);
}

.footer-subsection-title:first-of-type {
  margin-top: 0.5rem;
  border-top: none;
  padding-top: 0;
}

/* Menu mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--gradient-vert);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: var(--ombre-legere);
}

.mobile-menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: var(--ombre-moyenne);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 20px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 8px 0;
  }
  
  .missions {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .news {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .members {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  section {
    padding: 50px 20px;
  }
  
  section h2 {
    font-size: 2.2rem;
  }
}
