/* --- 🌟 Style Général de la Page --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

/* 🌟 NAVBAR FIX */
/* ✅ FIX position absolute */
header.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.9); /* fond semi-transparent */
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* ✅ logo size fix */
  .logo {
    height: 45px;
    max-height: 100%;
    object-fit: contain;
  }
  
  /* ✅ Ajustement des UL */
  .nav-links ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  
  .nav-links ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    padding: 8px 15px;
    transition: all 0.3s ease;
  }
  
  .nav-links ul li a:hover {
    color: #662843;
  }
  
  /* ✅ LIEN VALEURS SPECIAL */
  .nav-links ul li .btn-ancre {
    background: #662843;
    color: #fff;
    border-radius: 4px;
  }
  
  .nav-links ul li .btn-ancre:hover {
    background: #000;
    color: #fff;
  }
  
  /* ✅ DROPDOWN */
/* 🔧 Conteneur du dropdown */
.dropdown {
    position: relative;
    z-index: 1001; /* ✅ Assure que le menu passe au-dessus de tout */
  }
 
  /* 🔽 Menu déroulant caché de base */
  .nav-links ul .dropdown-menu {
    display: none;
    flex-direction: column;
    
    position: absolute;
    top: calc(100% + 10px); /* ✅ Juste sous la navbar */
    left: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    z-index: 1002;
  }
  
  .nav-links ul .dropdown:hover .dropdown-menu {
    display: flex;
  }
  
  /* ✅ Affichage au hover */
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  /* ✅ Style interne */
  .dropdown-menu li {
    padding: 8px 20px;
  }
  
  .dropdown-menu li a {
    display: block;
    color: #000;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .dropdown-menu li a:hover {
    background: #f5f5f5;
  }
  
  
  /* ✅ RÉSEAUX SOCIAUX */
  .social-icons a {
    background: #fff;
    color: #000;
    border-radius: 50%;
    padding: 6px 9px;
    margin-left: 5px;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
  }
  
  .social-icons a:hover {
    background: #662843;
    color: #fff;
  }
  
  /* ✅ MENU BURGER */
  .menu-toggle {
    display: none;
    font-size: 1.6em;
    color: #000;
    cursor: pointer;
  }
  
  /* ✅ RESPONSIVE */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
  
    .nav-links {
      position: absolute;
      top: 70px;
      left: 0;
      right: 0;
      background: white;
      display: none;
      flex-direction: column;
      text-align: center;
      gap: 20px;
      padding: 20px 0;
    }
  
    .nav-links.active {
      display: flex;
    }
  
    .nav-links ul {
      flex-direction: column;
      gap: 10px;
    }
  
    .dropdown-menu {
      position: static;
      box-shadow: none;
      background: #f0f0f0;
    }
  }
  


/* --- 🏆 Titre Principal --- */
#realisations h2 {
    padding-top: 100px;
    text-align: center;
    font-size: 2.5em;
    color: #662843; /* 🔥 Utilisation de la couleur principale du site */
    margin-bottom: 30px;
}

/* --- 🎨 Container des cartes --- */
.realisations-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centre les cartes */
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* --- 🃏 Style des Cartes --- */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 20px); /* Toujours 3 cartes par ligne */
    max-width: 400px;
    min-width: 300px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- 🖼️ Image des Cartes --- */
.card img {
    width: 100%;
    height: 200px; /* Taille fixe pour uniformiser les cartes */
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* --- 📜 Contenu des Cartes --- */
.card-content {
    padding: 20px;
    text-align: left;
}

.card-content h3 {
    margin: 0 0 10px;
    color: #662843; /* 🔥 Couleur du site */
    font-size: 1.3em;
}

.card-content p {
    margin: 0 0 15px;
    color: #555;
}

/* --- 🔗 Bouton "Voir plus" --- */
.btn {
    display: inline-block;
    text-decoration: none;
    background: #662843;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.btn:hover {
    background: #511f35;
}
footer {
    background: #662843;
    color: white;
    padding: 20px;
    text-align: center;
}
/* --- 📱 Responsive : 2 cartes par ligne sur tablette --- */
@media (max-width: 900px) {
    .card {
        width: calc(50% - 20px);
    }
}

/* --- 📱 Mobile : 1 carte par ligne --- */
@media (max-width: 600px) {
    .card {
        width: 100%;
    }
}
