/* Règles pour masquer la version mobile sur desktop */
@media screen and (min-width: 1201px) {
    .mobile-version {
        display: none !important;
    }
    .desktop-version {
        display: block !important;
    }
}

/* Règles pour masquer la version desktop sur mobile */
@media screen and (max-width: 1200px) {
    .desktop-version {
        display: none !important;
    }
    .mobile-version {
        display: block !important;
    }
    body {
        overflow-y: auto !important;
    }
}


/* Reset et styles de base */
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

/* BARRE DE NAVIGATION */
.navbar {
    background: #fff;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    border-bottom: 2px solid black;
}

#navbar__logo {
    color: #000;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__item {
    height: 80px;
}

.navbar__links {
    color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}

.navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 10px 20px;
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 4px;
    background: #000;
    color: white;
}

.button:hover {
    background: #d1d1d1;
    transition: all 0.3s ease;
}

/* Conteneur principal des bulles */
.bulles-container {
    position: relative;
    width: 100%;
    height: 90vh;
    background-color: #fff;
    transition: transform 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.bulles-wrapper {
    position: relative;
    width: 1200px;
    height: 90vh;
    margin: 0 auto;
}

.bulles-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    z-index: 0;
}

.bulles-container.zooming {
    transform: scale(4);
}

.bulles-container.hidden {
    display: none;
}

/* SVG pour les connexions */
.connexions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Styles communs aux bulles */
.bulle {
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    user-select: none;
    font-weight: bold;
    z-index: 1;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.bulle:hover {
    transform: scale(1.1);
    z-index: 10;
}

.bulle:hover .bulle-tooltip {
    opacity: 1;
    visibility: visible;
}

.bulle-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bulle-text {
    text-align: center;
    padding: 10px;
    color: inherit;
    font-size: inherit;
    z-index: 2;
}

.bulle-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 5;
    padding: 0;
    box-sizing: border-box;
}

/* Styles pour le slider dans les tooltips */
.tooltip-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tooltip-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip-slide.active {
    opacity: 1;
}

.tooltip-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-slide {
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.text-slide p {
    margin: 0;
    color: white;
    font-size: 70%;
    text-align: center;
    padding: 0 10px;
}

/* Animation pour les bulles principales */
@keyframes float-principale {
    0%, 100% { margin-left: 0; margin-top: 0; }
    25% { margin-left: 2px; margin-top: -5px; }
    50% { margin-left: -1px; margin-top: 3px; }
    75% { margin-left: 1px; margin-top: -2px; }
}

.principale {
    background-color: #000;
    color: white;
    animation: float-principale 8s ease-in-out infinite;
}

/* Animation pour les petites bulles */
@keyframes float-petite {
    0%, 100% { margin-left: 0; margin-top: 0; }
    20% { margin-left: 3px; margin-top: -8px; }
    40% { margin-left: -4px; margin-top: 5px; }
    60% { margin-left: 2px; margin-top: -6px; }
    80% { margin-left: -1px; margin-top: 3px; }
}

.petite {
    background-color: white;
    color: black;
    border: 1.8px solid black;
    animation: float-petite 6s ease-in-out infinite;
    font-weight: 400;
}

/* Positionnement et tailles initiales des bulles */
.bulles-wrapper #bulle1 { top: 7%; left: 40%; width: 250px; height: 250px; font-size: larger; }
.bulles-wrapper #bulle2 { top: 42%; left: 15%; width: 200px; height: 200px; font-size: large; }
.bulles-wrapper #bulle3 { top: 62%; left: 55%; width: 150px; height: 150px; font-size: medium; }
.bulles-wrapper #bulle4 { top: 38%; left: 65%; width: 100px; height: 100px; font-size: small; }
.bulles-wrapper #bulle5 { top: 32%; left: 10%; width: 120px; height: 120px; font-size: smaller; }
.bulles-wrapper #bulle6 { top: 57%; left: 75%; width: 75px; height: 75px; font-size: smaller; }

.bulles-wrapper #projet1 { top: 42%; left: 35%; width: 150px; height: 150px; font-size: larger; text-align: center; }
.bulles-wrapper #projet2 { top: 77%; left: 45%; width: 150px; height: 150px; font-size: medium; text-align: center; }
.bulles-wrapper #projet3 { top: 67%; left: 45%; width: 80px; height: 80px; font-size: medium; text-align: center; }
.bulles-wrapper #projet4 { top: 27%; left: 30%; width: 100px; height: 100px; font-size: 10px; text-align: center; }
.bulles-wrapper #projet5 { top: 17%; left: 27%; width: 80px; height: 80px; font-size: small; text-align: center; }
.bulles-wrapper #projet6 { top: 8%; left: 30%; width: 80px; height: 80px; font-size: small; text-align: center; }
.bulles-wrapper #projet7 { top: 14%; left: 67%; width: 100px; height: 100px; font-size: 12px; text-align: center; }
.bulles-wrapper #projet8 { top: 5%; left: 65%; width: 80px; height: 80px; font-size: 11px; text-align: center; }
.bulles-wrapper #projet9 { top: 27%; left: 62%; width: 80px; height: 80px; font-size: small; text-align: center; }
.bulles-wrapper #projet10 { top: 47%; left: 70%; width: 80px; height: 80px; font-size: 10px; text-align: center; }
.bulles-wrapper #projet11 { top: 35%; left: 82%; width: 70px; height: 70px; font-size: small; text-align: center; }
.bulles-wrapper #projet12 { top: 76%; left: 84%; width: 70px; height: 70px; font-size: 9px; text-align: center; }

/* Conteneur de zoom */
.zoom-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 97%;
    background-color: white;
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    box-sizing: border-box;
    margin-top: 50px;
    background-color: #f9f9f9;
}

.zoom-content {
    width: 100%;
    height: 100%;
    max-width: 90%;
    background-color: #f9f9f9;
    border-radius: 0px;
    margin-left: 110px;
    margin-top: 10px;
    animation: zoomIn 0.5s ease forwards;
}

/* Bouton de retour */
.back-button {
    position: sticky;
    top: 50px;
    left: 20px;
    padding: 10px 15px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1010;
    font-weight: bold;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #d1d1d1;
}

/* Animations de zoom */
@keyframes zoomIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Styles pour l'interface des projets */
.main__container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.main__container h2 {
    font-weight: 600;
    padding: 30px 20px;
    box-sizing: border-box;
    height: 100px;
    position: sticky;
    top: 30px;
    z-index: 10;
    background-color: #f9f9f9;
}

.main__content {
    display: flex;
    flex-direction: row;
    width: 90%;
    height: 100%;
    gap: 10%;
}

.project__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: justify;
    color: #757575;
    width: 30%;
    padding: 20px;
    position: sticky;
    top: 140px;
    align-self: flex-start;
    height: fit-content;
}

.project__img {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: auto;
    max-width: 600px;
    cursor: pointer;
    object-fit: cover;
    gap: 40px;
    margin-bottom: 15px;
    padding: 30px;
}

.project__img img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.project__img img:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.project__spec img.enlarged {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 75vh;
    z-index: 1002;
    object-fit: contain;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
}

.overlay.active {
    display: flex;
}







/* Styles pour la grille des projets dans les bulles principales */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 250px));
    gap: 30px;
    padding: 0px;
    position: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 0;
}

.project-card {
    position: relative;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.project-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Style pour le contenu zoomé des bulles principales */
.zoom-content.main-bubble {
    width: 100%;
    max-width: 1200px;
    padding: 30px 50px;
    box-sizing: border-box;
}

.main-bubble h1 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #000;
}

/* Animation pour l'apparition de la grille */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }
