/* Styles pour hero avec particules - Styles originaux avec image d'arrière-plan */

#hero,
.hero-particles-section {
    min-height: 100vh;
    background: linear-gradient(rgba(30,32,48,0.38), rgba(30,32,48,0.48)), url('/assets/images/contenu/arrière-plan-digita-unsplash.jpg') center center/cover no-repeat !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    position: relative;
    width: 100vw;
    z-index: 1;
    margin-bottom: 4.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18), 0 12px 28px -6px #FFD700cc;
    border-bottom: 4px solid #FFD700;
    border-radius: 0 0 2.5rem 2.5rem;
    overflow: visible;
    padding-top: 1.2rem;
}

@media (max-width: 767px) {
    #hero,
    .hero-particles-section {
        margin-bottom: 2rem;
        border-radius: 0 0 1.2rem 1.2rem;
    }
}

/* Texte des slides en blanc */
#hero .carousel-item h1,
#hero .carousel-item h2,
#hero .carousel-item p,
#hero .carousel-item .lead,
.hero-particles-section .carousel-item h1,
.hero-particles-section .carousel-item h2,
.hero-particles-section .carousel-item p,
.hero-particles-section .carousel-item .lead {
    color: #fff !important;
    text-shadow: 0 2px 10px #23252655;
}

#hero .carousel-item a.btn,
.hero-particles-section .carousel-item a.btn {
    box-shadow: 0 2px 8px #23252622;
}

/* Z-index pour les containers */
#hero .container-fluid,
#hero .w-100.position-relative,
.hero-particles-section .container-fluid,
.hero-particles-section .w-100.position-relative {
    z-index: 2;
    position: relative;
}

#hero canvas#heroParticles,
.hero-particles-section canvas#heroParticles {
    z-index: 0;
}

.hero-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    outline: none;
}

.hero-particles-container {
    width: 100vw;
    max-width: 100vw;
}

.hero-particles-row {
    border: none;
    box-shadow: none;
    outline: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 4vw !important;
    padding-right: 4vw !important;
}

.hero-text-column {
    min-width: 320px;
    border: none;
    box-shadow: none;
    outline: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hero-carousel {
    border: none;
    box-shadow: none;
    outline: none;
}

.hero-carousel-inner {
    border: none;
    box-shadow: none;
    outline: none;
}

.hero-slide-title {
    letter-spacing: 1.5px;
    font-size: 3.2rem;
    line-height: 1.13;
    margin-bottom: 1.1rem;
    color: #fff !important;
    text-shadow: 0 2px 10px #23252655;
}

.hero-slide-title-icon {
    color: #FFD700;
    font-size: 2.7rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.hero-highlight-gold {
    color: #FFD700;
}

.hero-highlight-blue {
    color: #2563eb;
}

.hero-highlight-gold-bold {
    color: #FFD700;
    font-weight: bold;
}

.hero-highlight-blue-bold {
    color: #2563eb;
    font-weight: bold;
}

.hero-slide-subtitle {
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
    color: #fff !important;
    text-shadow: 0 2px 10px #23252655;
}

.hero-slide-text {
    font-size: 1.13rem;
    margin-bottom: 1.2rem;
    color: #fff !important;
    text-shadow: 0 2px 10px #23252655;
}

.hero-btn-primary {
    background: #2563eb;
    border: none;
    font-size: 1.09rem;
}

.hero-btn-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: #232323;
    font-size: 1.5rem;
}

.hero-image-column {
    min-width: 320px;
    border: none;
    box-shadow: none;
    outline: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 48%;
}

.hero-logo-image {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    max-width: 420px;
    max-height: 60vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0 auto;
}

/* Animation flottante du logo */
.floating-logo {
    animation: floatLogo 3.8s ease-in-out infinite;
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-28px); }
    100% { transform: translateY(0px); }
}

/* Grille animée en overlay */
.grid-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
}

/* Transitions carousel */
.carousel-item {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: block;
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
    pointer-events: auto;
    position: relative;
}

.carousel-inner {
    position: relative;
    min-height: 320px;
}

/* Z-index pour les canvas */
.hero-particles-container {
    z-index: 2;
    position: relative;
}

#heroParticles {
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-slide-title {
        font-size: 2.2rem;
    }
    
    .hero-slide-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-slide-text {
        font-size: 1rem;
    }
}
