/* --- 🌟 Conteneur global --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    width: 90%;
    margin: auto;
}
footer {
    background: #662843;
    color: white;
    padding: 20px;
    text-align: center;
}
/* 🌟 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;
    }
  }
  


/* --- 🏆 Section Réalisation (Image principale + Infos) --- */
#realisation-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 30px; /* 🔥 Espace sous la section */
}

/* --- 🖼️ Image principale à gauche --- */
.image-principale {
    max-width: 400px;
    max-height: 300px;
    overflow: hidden;
    border-radius: 10px;
}

.image-principale img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* --- 📜 Infos à droite --- */
.details-content {
    width: 45%;
    text-align: left;
}

.details-content h2 {
    color: #800000;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.details-content p {
    font-size: 1.2em;
    margin: 5px 0;
}

/* --- 🎨 Galerie d'images secondaires (Mosaïque améliorée) --- */
.gallery-container {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.gallery-container h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #800000;
}

/* --- 🖼️ Nouvelle galerie avec des images plus grandes --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 🔥 Ajustement automatique */
    gap: 15px;
    max-width: 1200px;
    margin: auto;
    justify-content: center;
}

/* --- 📷 Images de la galerie --- */
.gallery img {
    width: 100%;
    aspect-ratio: 5 / 4; /* ✅ Format paysage 5:4 */
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}


/* --- Effet Hover plus fluide et plus grand --- */
.gallery img:hover {
    transform: scale(1.2);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- 📱 Responsive : Meilleur affichage sur mobile --- */
@media (max-width: 900px) {
    #realisation-details {
        flex-direction: column;
        text-align: center;
    }

    .image-principale {
        width: 100%;
    }

    .details-content {
        width: 100%;
        text-align: center;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* 🔥 Images plus adaptées */
    }

    .gallery img {
        height: 150px;
    }
}
