/* ==================== */
/* GALERIE FUTURISTE */
/* ==================== */

.futuristic-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    /* Hauteur uniforme pour toutes les lignes */
}

.futuristic-gallery .gallery-item {
    /* 3 colonnes fixes : (largeur totale - 2 gaps) / 3 */
    flex: 0 0 calc((100% - 20px) / 3) !important;
    max-width: calc((100% - 20px) / 3) !important;
}

/* ==================== */
/* HERO SECTION TYPEWRITER EFFECT */
/* ==================== */

.profession-text {
    display: inline-block;
    position: relative;
}

.profession-text::after {
    content: '|';
    position: absolute;
    right: -0.3em;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Laissez la grille gérer automatiquement le nombre de colonnes en fonction de l'espace */

.gallery-item {
    /* Carré parfait : hauteur = largeur */
    aspect-ratio: 1 / 1;
    position: relative;
    perspective: 1000px;
}

.image-frame,
.image-container,
.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-frame {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.gallery-item:hover .image-frame {
    transform: rotateY(10deg) rotateX(5deg) scale(1.05) !important;
}

.image-container {
    border-radius: 10px;
    overflow: hidden;
    z-index: 2;
}

.carousel-image {
    background-size: cover;
    background-position: center center;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-image.active {
    opacity: 1;
    z-index: 2;
}

.neon-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 15px;
    background: linear-gradient(45deg, #ff00cc, #3333ff, #00ccff, #ff00cc);
    background-size: 400% 400%;
    z-index: 1;
    animation: neonGlow 3s ease infinite;
    filter: blur(5px);
    opacity: 0.7;
}

.holographic-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 3;
    mix-blend-mode: overlay;
    border-radius: 10px;
}

.particle-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: 10px;
    overflow: hidden;
}

.particle-effect::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle fill='%23ffffff' cx='50' cy='50' r='1'/%3E%3Ccircle fill='%23ffffff' cx='150' cy='100' r='0.8'/%3E%3Ccircle fill='%23ffffff' cx='100' cy='150' r='1.2'/%3E%3C/svg%3E");
    opacity: 0.3;
    animation: particlesMove 20s linear infinite;
}

@keyframes neonGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes particlesMove {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-100%) translateX(-50%);
    }
}


/* Les classes Bootstrap gèrent l'affichage conditionnel */