@font-face {
    font-family: 'Nohemi';
    src: url('font/Nohemi-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Nohemi';
    src: url('font/Nohemi-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Empêche le header de cacher le titre lors du scroll */
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}




.header {
    width: 100%;
    padding: 8px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background-color: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    max-width: 1200px; /* Limite la largeur max pour rapprocher le logo */
    margin: 0 auto; /* Centre la navbar */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 80px; /* Plus d'espace horizontal */
    white-space: nowrap; /* Assure que tout tient sur une ligne */
}

.nav-links li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Dropdown Menu (Desktop) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 260px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

@media screen and (min-width: 901px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(15px); /* Décale légèrement vers le bas */
    }
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 24px;
    font-size: 13px;
    text-transform: none;
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: center;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-shadow: none;
}

.logo {
    width: 3.5rem;
    background: solid white;
}

/* About Section */
.about-section {
    padding: 120px 48px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px; /* Espace entre le contenu et le bouton */
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
}

.about-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

#logo-3d-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    cursor: default; /* Rendu interactif via le JS */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Au-dessus du texte */
}

#logo-3d-container canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
}

.about-me-background-text {
    position: absolute;
    font-family: 'Nohemi', sans-serif;
    font-size: clamp(50px, 8vw, 150px);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4); /* Légèrement transparent pour simuler l'arrière-plan */
    white-space: nowrap;
    z-index: 0;
    text-transform: uppercase;
    text-align: center;
    pointer-events: none; /* Ne bloque pas les interactions de la souris avec le canevas */
}

.about-text {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mask-text-container {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Ajustez l'espacement entre les lignes si besoin */
}

.line-mask {
    overflow: hidden;
}

.line-mask p {
    margin: 0;
    transform: translateY(100%);
    /* La transition sera ajoutée dynamiquement par JS pour chaque ligne */
}

.mask-text-container.in-view .line-mask p {
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    overflow: hidden; /* Masque le débordement de l'image parallax */
}

.hero-parallax-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-parallax-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
}

.hero-parallax-image {
    width: 100%;
    height: 120%; /* Légèrement plus grand pour laisser de la marge au déplacement */
    object-fit: cover;
    will-change: transform;
    top: -10%; /* Centre l'image verticalement avant le défilement */
    position: relative;
}



.title-wrapper {
    display: flex;
    flex-direction: column; /* Stack vertically so badge is underneath */
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.hero-section h1 {
    font-size: clamp(50px, 8vw, 120px);
    font-weight: 800; /* ExtraBold */
    line-height: 1.1;
    font-family: 'Nohemi', sans-serif;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.03em;
    margin: 0;
    text-align: left;
}

.subtitle-badge {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.about-text h2 {
    font-size: 28px;
    font-weight: 500; /* Medium */
    font-family: 'Nohemi', sans-serif;
    color: #ffffff;
    margin-bottom: 8px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
}

@keyframes arrowBounceSide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background-color: #ffffff;
    color: #050505;
    text-decoration: none;
    font-family: 'Nohemi', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    width: fit-content;
}

.btn-primary svg {
    opacity: 0;
    width: 0;
    margin-left: 0;
    transition: opacity 0.3s ease, width 0.3s ease, margin-left 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    background-color: #e0e0e0;
}

.btn-primary:hover svg {
    opacity: 1;
    width: 24px;
    margin-left: 12px;
    animation: arrowBounceSide 1s infinite ease-in-out;
}

/* Footer Parallax Reveal */
.footer-reveal-wrapper {
    position: relative;
    height: 100px;
    clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
}

.footer-reveal-inner {
    position: relative;
    height: calc(100vh + 100px);
    top: -100vh;
}

.footer.sticky-content {
    height: 100px;
    position: sticky;
    top: calc(100vh - 100px);
    width: 100%;
    padding: 0 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Hamburger Menu (Caché par défaut) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001; /* Toujours au-dessus du menu */
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Version Mobile / Tablette */
@media screen and (max-width: 900px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        gap: 40px;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li a {
        font-size: 24px;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: auto;
        display: none;
        margin-top: 20px;
    }
    
    .dropdown.active .dropdown-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .dropdown-menu li a {
        font-size: 18px; /* Plus petit que les liens principaux */
        color: rgba(255, 255, 255, 0.7);
        padding: 5px 0;
    }

    /* Animation du bouton hamburger -> Croix */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Autres ajustements responsive */
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .about-image-wrapper {
        justify-content: center;
    }
    
    .hero-section h1 {
        font-size: clamp(40px, 15vw, 80px);
    }
    
    .hero-section {
        padding: 0 24px;
    }
}

/* =========================================
   INFLUENCES SECTION (Floating Gallery)
   ========================================= */
.influences-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 0;
    overflow: hidden;
    background-color: #050505; /* Même couleur que le fond */
}

/* Scrolling Marquee Title */
.marquee-container {
    width: 100vw;
    display: flex;
    flex-direction: column;
    gap: 2vw; /* Espace entre les lignes */
    margin-bottom: 60px;
    margin-top: 20px;
    z-index: 10;
}

.marquee-slide {
    position: relative;
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.marquee-phrase {
    display: flex;
    gap: 5vw;
    align-items: center;
    padding: 0 2.5vw;
}

.marquee-phrase p {
    font-family: 'Nohemi', sans-serif;
    font-size: 7.5vw;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.marquee-img-wrapper {
    position: relative;
    height: 7.5vw;
    aspect-ratio: 4/2; /* Largeur double de la hauteur */
    border-radius: 9999px; /* Forme de pilule / arrondie */
    overflow: hidden;
}

.marquee-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 85vh; /* Plus d'espace pour disperser */
    margin: 0 auto;
    cursor: default;
}

/* Les plans qui bougeront avec le lerp */
.plane {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none; /* Laisse passer la souris pour le parallax global */
}

/* Positionnement "désorganisé" des cartes (Desktop) */
.plane1 .influ-card:nth-child(1) { position: absolute; top: 12%; left: 8%; }  /* Haut Gauche */
.plane1 .influ-card:nth-child(2) { position: absolute; bottom: 8%; right: 10%; } /* Bas Droite */

.plane2 .influ-card:nth-child(1) { position: absolute; top: 18%; right: 28%; } /* Haut Droite (milieu) */
.plane2 .influ-card:nth-child(2) { position: absolute; bottom: 20%; left: 22%; } /* Bas Gauche (milieu) */

.plane3 .influ-card:nth-child(1) { position: absolute; top: 35%; left: 45%; } /* Centre (flou derrière) */

/* Cartes d'influence */
.influ-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: auto; /* Permet le hover */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background-color: #111;
}

.influ-card:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 100;
}

/* Tailles différentes selon les plans pour simuler la profondeur */
.plane1 .influ-card { width: 320px; height: 420px; filter: brightness(1); }
.plane2 .influ-card { width: 240px; height: 320px; filter: brightness(0.7) blur(1px); }
.plane3 .influ-card { width: 180px; height: 240px; filter: brightness(0.5) blur(3px); }

/* Désactiver le flou au survol */
.influ-card:hover { filter: brightness(1) blur(0) !important; }

.influ-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.influ-card:hover img {
    transform: scale(1.1);
}

/* Infos au survol */
.influ-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, transparent 100%);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.influ-card:hover .influ-info {
    opacity: 1;
    transform: translateY(0);
}

.influ-info h3 {
    font-family: 'Nohemi', sans-serif;
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.influ-info p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 6; /* Limite le texte à 6 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Fallback */
@media screen and (max-width: 900px) {
    .influences-section {
        min-height: auto;
    }
    
    .gallery-container {
        height: auto;
        flex-direction: column;
        gap: 40px;
        padding: 0 24px;
        margin-top: 40px;
    }
    
    .plane {
        position: relative;
        top: 0;
        left: 0;
        transform: none !important;
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin: 0;
        height: auto;
    }
    
    /* Annuler le positionnement absolu sur mobile */
    .plane1 .influ-card:nth-child(1),
    .plane1 .influ-card:nth-child(2),
    .plane2 .influ-card:nth-child(1),
    .plane2 .influ-card:nth-child(2),
    .plane3 .influ-card:nth-child(1) {
        position: static;
    }
    
    .influ-card, .plane1 .influ-card, .plane2 .influ-card, .plane3 .influ-card {
        width: 100%;
        max-width: 400px;
        height: 400px;
        filter: none;
        margin: 0 auto;
    }
    
    .influ-info {
        opacity: 1;
        transform: none;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 100%);
    }
}

/* =========================================
   LIGHTBOX (Influences Fullscreen)
   ========================================= */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background-color: #111;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1) translateY(0);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-lightbox:hover {
    color: #fff;
    transform: scale(1.1);
}

.lightbox-body {
    display: flex;
    flex-direction: row;
    height: 70vh;
    max-height: 800px;
}

.lightbox-image-container {
    flex: 1.2;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-text {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lightbox-text h3 {
    font-family: 'Nohemi', sans-serif;
    font-size: 40px;
    margin-bottom: 20px;
    color: #fff;
}

.lightbox-text p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

@media screen and (max-width: 900px) {
    .lightbox-body {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .lightbox-image-container {
        height: 300px;
        flex: none;
    }
    
    .lightbox-text {
        padding: 30px 20px;
    }
    
    .lightbox-text h3 {
        font-size: 30px;
    }
}

/* Animations au scroll (Scroll Reveal) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   PROJECTS SECTION (Double Image Hover)
   ========================================= */

.projects-section {
    padding: 80px 48px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Nohemi', sans-serif;
    color: #ffffff;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.double-gallery {
    display: flex;
    width: 100%;
    gap: 20px; /* Ajoute un espace entre les deux images */
    height: 45vw; /* Hauteur relative à la largeur de l'écran pour garder l'aspect */
    max-height: 600px;
    min-height: 350px;
}

.image-container {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    overflow: hidden;
    /* On va animer la width via JS, mais on ajoute un flex-shrink pour éviter qu'elles débordent de la flexbox s'il y a un décalage, 
       Wait, dans l'exemple original de Double Image, les pourcentages s'additionnent à 100%. Avec gap, 50% + 50% + 20px = dépassement.
       On va enlever le gap pour avoir un fonctionnement strict de 100% comme dans l'exemple, ou utiliser calc.
       Utilisons le code exact de l'exemple React en ajustant pour flex. */
}

.double-gallery {
    gap: 0;
}

.image-container {
    padding: 0 10px; /* On simule le gap avec du padding interne */
}

.stretchy-wrapper {
    position: relative;
    width: 100%;
    height: 80%;
    overflow: hidden;
    border-radius: 8px; /* Pour un look plus fini */
}

.stretchy-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-container:hover .stretchy-wrapper img {
    transform: scale(1.05); /* Effet de zoom au survol */
}

/* Règle spécifique pour maintenir l'effet de zoom au survol pour l'image Rentacost qui est déjà aggrandie */
.image-container:hover .stretchy-wrapper img.logo-scale-rentacost {
    transform: scale(1.9) !important;
}

.image-container .body {
    height: 20%;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.image-container .body h3 {
    font-size: 20px;
    font-weight: 600;
    font-family: 'Nohemi', sans-serif;
    color: #ffffff;
    margin: 0;
}

.image-container .body p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}


/* =========================================
   PROJECT MODAL & CAROUSEL
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -20px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.carousel-track {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Affiche l'image en entier sans la couper */
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.carousel-slide img.zoomed {
    transform: scale(2.5);
    cursor: zoom-out;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 5;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.modal-info {
    height: 30%;
    padding: 30px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#modal-title {
    font-size: 28px;
    font-family: 'Nohemi', sans-serif;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   CONTACT FORM
   ========================================= */

.contact-section {
    padding: 100px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    margin-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.form-status {
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-align: center;
}

.form-status.success {
    color: #4ade80;
}

.form-status.error {
    color: #f87171;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .double-gallery {
        flex-direction: column;
        height: auto;
        max-height: none;
        gap: 30px;
    }
    
    .image-container {
        width: 100% !important; /* Désactive l'effet de largeur au survol sur mobile */
        height: 400px;
        padding: 0;
    }
    
    .projects-section {
        padding: 40px 24px;
    }

    .modal-container {
        width: 100%;
        height: 100%;
        padding: 20px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
    }
}