/* Styles pour le slider avec effet de fondu */
.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 20s ease-out infinite alternate;
    z-index: 2;
}

/* Nouvelles animations */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Application de l'animation sur les textes */
.hero-text .hero-title {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* État initial masqué */
}

.hero-text .hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-text .hero-cta {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Amélioration de l'intégration de la photo du bâtiment */
.hero-image {
    position: relative;
    z-index: 2;
}

/* Conteneur des éléments décoratifs */
.building-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Cercles décoratifs flottants - repositionnés derrière la photo */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 174, 83, 0.2) 0%, rgba(132, 189, 0, 0.2) 100%);
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.deco-circle-1 {
    width: 250px;
    height: 250px;
    top: -30px;
    right: -40px;
    animation-delay: 0s;
}

.deco-circle-2 {
    width: 180px;
    height: 180px;
    bottom: -25px;
    left: 30px;
    animation-delay: 2s;
}

/* Formes géométriques décoratives - repositionnées derrière */
.deco-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 174, 83, 0.15) 0%, rgba(132, 189, 0, 0.15) 100%);
    border-radius: 20px;
    transform: rotate(45deg);
    z-index: 0;
}

.deco-shape-1 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: -30px;
    animation: rotate-slow 20s linear infinite;
}

.deco-shape-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 20px;
    animation: rotate-slow 15s linear infinite reverse;
}

/* Cadre de la photo avec effets */
.building-frame {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 10px rgba(255, 255, 255, 0.1),
        0 0 0 20px rgba(0, 174, 83, 0.1);
    background: linear-gradient(135deg, rgba(0, 174, 83, 0.2) 0%, rgba(132, 189, 0, 0.2) 100%);
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.building-frame:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35),
        0 0 0 10px rgba(255, 255, 255, 0.15),
        0 0 0 20px rgba(0, 174, 83, 0.15);
}

.building-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.8;
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(45deg);
    }

    to {
        transform: rotate(405deg);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .deco-circle-1 {
        width: 150px;
        height: 150px;
    }

    .deco-circle-2 {
        width: 100px;
        height: 100px;
    }

    .deco-shape-1,
    .deco-shape-2 {
        display: none;
    }
}

@media (max-width: 768px) {
    .building-decoration {
        display: none;
    }

    .building-frame {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

/* Styles pour le branding des menus */
.menu-branding {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 15px;
}

.menu-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-logo {
    max-width: 160px;
    height: auto;
    display: inline-block;
}

/* Mini Carousel pour le menu */
.partners-carousel-mini {
    overflow: hidden;
    position: relative;
    padding: 5px 0;
    width: 100%;
    background: transparent;
}

.partners-track-mini {
    display: flex;
    gap: 15px;
    animation: scroll-mini 20s linear infinite;
    width: max-content;
}

.partner-logo-mini {
    flex-shrink: 0;
    width: 70px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 5px;
}

.partner-logo-mini img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
}

@keyframes scroll-mini {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-85px * 8));
    }

    /* (70px width + 15px gap) * 8 items */
}

/* CORRECTIF URGENT : Forcer largeur 50/50 pour Banque/Assurances */
.volets-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 2rem;
}

.volet-card {
    width: 100% !important;
    min-width: 0 !important;
    /* CRUCIAL : Empêche l'élargissement par le contenu */
    box-sizing: border-box !important;
}

/* Contraintes pour le carrousel partenaires qui pousse la largeur */
.menu-branding,
.partners-carousel-mini {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 768px) {
    .volets-grid {
        grid-template-columns: 1fr !important;
    }
}