/* 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;
}
.team-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    color: #333;
    min-height: 100vh;
    padding: 40px 20px;
    overflow-x: hidden;
}



.team-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.team-description {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #5a6a7a;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    width: 300px;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(231, 76, 60, 0) 0%, rgba(231, 76, 60, 0.05) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member:nth-child(1) { transition-delay: 0.4s; }
.team-member:nth-child(2) { transition-delay: 0.6s; }
.team-member:nth-child(3) { transition-delay: 0.8s; }
.team-member:nth-child(4) { transition-delay: 1.0s; }

.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.team-member:hover::before {
    opacity: 1;
}

.member-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: grayscale(20%);
}

.team-member:hover .member-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.member-info {
    padding: 30px;
    position: relative;
    z-index: 2;
    background: white;
}

.member-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    transition: color 0.3s ease;
}

.team-member:hover .member-name {
    color: #e74c3c;
}

.member-position {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

.member-position::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.team-member:hover .member-position::after {
    width: 80px;
}
a {
    text-decoration: none !important;
}
.member-bio {
    color: #6c7a89;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

.team-member:hover .member-bio {
    color: #4a5967;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: #95a5a6;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.social-links a:hover {
    color: #e74c3c;
    transform: translateY(-5px) scale(1.2);
}

.animate {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #95a5a6;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-member {
    display: flex;
    gap: 40px;
    align-items: center;
}

.modal-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-info {
    flex: 1.5;
    text-align: left;
}

.modal-name {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.modal-position {
    font-size: 1.2rem;
    color: #3498db;
    margin-bottom: 20px;
    font-weight: 600;
}

.modal-bio {
    color: #6c7a89;
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-skills {
    margin-bottom: 30px;
}

.modal-skills h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill {
    background: #f1f5f9;
    color: #3498db;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .modal-member {
        flex-direction: column;
    }

    .modal-image {
        width: 70%;
        margin-bottom: 30px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .team-member {
        width: 100%;
        max-width: 350px;
    }
}

/* 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;
}

#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);
    }
}

/* ===== Correctifs menu hamburger mobile (bouton caché sur desktop, dropdown au tap, sur-couches par-dessus le contenu) ===== */
.mobile-only-btn {
    display: none;
}

@media screen and (max-width: 768px) {
    nav ul {
        width: 75%;
        max-width: 320px;
        padding-top: 100px;
        justify-content: flex-start;
        overflow-y: auto;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        text-align: center;
        box-shadow: none;
    }

    /* Le hover est désactivé au tactile : c'est le JS qui pilote via .dropdown-open */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.dropdown-open .dropdown-content {
        display: block;
    }

    .mobile-only-btn {
        display: block;
        margin-top: 20px;
    }
}

/* ===== Bouton retour visible ===== */
.back-button-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 20px;
    text-align: left;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.back-button:hover {
    color: #e74c3c;
    transform: translateX(-4px);
}

.back-button i {
    font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
    .back-button-wrapper {
        padding: 0 0 15px;
    }
}