

/* Styles pour le menu déroulant */
.dropdown-content {
    display: none; /* Cache le menu déroulant par défaut */
    position: absolute;
    top: 100%; /* Positionne le menu en dessous de l'élément parent */
    left: 0;
    background-color: #f9f9f9;
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.btn-header {
    width: auto; 
    display: flex;
    justify-content: end;
}

.btn {
    color: black;
    background-color: rgb(49, 49, 186);
    border: 2px solid rgb(60, 60, 225);
    padding: 15px 30px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 5px 5px 30px rgb(0, 0, 0 , 0.1);
    transition: 0.5s;
}

.btn:hover {
    background-color: #f1f1f1;
    transform: rotate(5deg);
}

.btn i {
    margin-right: 5px;
}




.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 3px solid white;
    border-radius: 5px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    background-color: rgba(0,0,0,0.5);
    padding: 10px 15px;
    border-radius: 50%;
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}


       
.gallery-item img, 
.gallery-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

.video-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    background-color: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border: 3px solid white;
    border-radius: 5px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Styles pour le menu déroulant */
.dropdown-content {
    display: none; /* Cache le menu déroulant par défaut */
    position: absolute;
    top: 100%; /* Positionne le menu en dessous de l'élément parent */
    left: 0;
    background-color: #f9f9f9;
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.btn-header {
    width: auto; 
    display: flex;
    justify-content: end;
}

.btn {
    color: black;
    background-color: rgb(49, 49, 186);
    border: 2px solid rgb(60, 60, 225);
    padding: 15px 30px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 5px 5px 30px rgb(0, 0, 0 , 0.1);
    transition: 0.5s;
}
a {
    text-decoration: none !important;
}
.btn:hover {
    background-color: #f1f1f1;
    transform: rotate(5deg);
}

.btn i {
    margin-right: 5px;
}

#agence-3d-vr {
    padding: 60px 0;
    text-align: center;
}

#agence-3d-vr h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 1.5em;
}

#agence-3d-vr .lead {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 2em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2em;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 2.5em;
    color: #007bff; /* Couleur primaire - à adapter */
    margin-bottom: 15px;
    display: block;
}

.service-item h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 10px;
}

.service-item p {
    color: #555;
    line-height: 1.6;
}

/* Media query pour les écrans plus petits */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur les petits écrans */
    }
}

/* Styles pour le menu hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Styles responsifs */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 50%;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 99;
        box-shadow: -5px 0 10px rgba(0,0,0,0.1);
    }
    
    nav ul li {
        margin: 2rem 0;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    .btn-header {
        display: none;
    }
    
    .nav-active {
        transform: translateX(0);
    }
    
    /* Animation du hamburger en X */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .toggle .line2 {
        opacity: 0;
    }
    
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}