/* ===== PAGE D'ACCUEIL — GREI Investment ===== */

/* Hero carousel */
.hero-section.hero-home {
    min-height: auto;
    padding: 0;
    background: var(--hero-dark);
    background-attachment: scroll;
}

.hero-section.hero-home::before {
    display: none;
}

#heroCarousel {
    width: 100%;
    min-height: 88vh;
}

#heroCarousel .carousel-inner {
    min-height: 88vh;
    position: relative;
    overflow: hidden;
}

#heroCarousel .carousel-item {
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 6rem 0 4rem;
}

#heroCarousel .carousel-item.active {
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-slide--recyclage .hero-slide-bg {
    background:
        radial-gradient(ellipse 70% 55% at 75% 35%, rgba(13, 148, 136, 0.45), transparent 65%),
        radial-gradient(ellipse 50% 40% at 15% 80%, rgba(34, 197, 94, 0.2), transparent 60%),
        linear-gradient(145deg, #0a0f1a 0%, #0c1f1e 45%, #0a1628 100%);
}

.hero-slide--genie .hero-slide-bg {
    background:
        radial-gradient(ellipse 65% 50% at 70% 40%, rgba(14, 116, 144, 0.4), transparent 65%),
        radial-gradient(ellipse 45% 35% at 20% 75%, rgba(234, 179, 8, 0.12), transparent 55%),
        linear-gradient(145deg, #0a0f1a 0%, #0c1824 50%, #0a1a20 100%);
}

.hero-slide--agro .hero-slide-bg {
    background:
        radial-gradient(ellipse 70% 55% at 72% 38%, rgba(34, 197, 94, 0.4), transparent 65%),
        radial-gradient(ellipse 50% 40% at 18% 70%, rgba(13, 148, 136, 0.25), transparent 55%),
        linear-gradient(145deg, #0a0f1a 0%, #0a1a14 50%, #0c1a20 100%);
}

.hero-slide--conseil .hero-slide-bg {
    background:
        radial-gradient(ellipse 65% 50% at 68% 42%, rgba(234, 179, 8, 0.18), transparent 60%),
        radial-gradient(ellipse 55% 45% at 25% 65%, rgba(13, 148, 136, 0.3), transparent 55%),
        linear-gradient(145deg, #0a0f1a 0%, #12101a 50%, #0a1620 100%);
}

.hero-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}

#heroCarousel .carousel-item .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

#heroCarousel .row {
    min-height: 55vh;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    animation: slideInUp 0.8s ease-out both;
}

.hero-badge i {
    color: var(--accent-light);
    font-size: 0.75rem;
}

.text-highlight {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 50%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-image-frame {
    position: relative;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(14px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: slideInUp 1s ease-out 0.3s both;
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: var(--radius-full);
    opacity: 0.7;
}

.hero-image-frame img {
    display: block;
    max-height: 420px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

/* Carousel controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    opacity: 1;
    z-index: 20;
    transition: all var(--transition-normal);
}

#heroCarousel .carousel-control-prev {
    left: 24px;
}

#heroCarousel .carousel-control-next {
    right: 24px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-light);
    transform: translateY(-50%) scale(1.05);
}

#heroCarousel .carousel-indicators {
    position: absolute !important;
    bottom: 36px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 25 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
}

#heroCarousel .carousel-indicators button {
    width: 28px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background-color: rgba(255, 255, 255, 0.35) !important;
    border: none !important;
    margin: 0 !important;
    opacity: 1 !important;
    transition: all var(--transition-normal) !important;
}

#heroCarousel .carousel-indicators button.active {
    width: 44px !important;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-light)) !important;
}

/* Section labels */
.section-label {
    display: inline-block;
    padding: 0.35rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: var(--primary-50);
    border-radius: var(--radius-full);
}

/* Témoignages — avatars par défaut */
.default-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-primary);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.default-avatar:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.default-avatar i {
    color: var(--white);
    font-size: 32px;
}

.testimonial-card-modern .default-avatar {
    margin-bottom: 20px;
}

/* CTA final accueil */
.cta-home-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-home-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-home-section .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        min-height: auto;
    }

    #heroCarousel .carousel-item {
        padding: 5.5rem 0 3.5rem;
    }

    #heroCarousel .row {
        min-height: auto;
    }

    .hero-image-frame {
        margin-top: 2rem;
    }

    .hero-image-frame img {
        max-height: 280px;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 42px;
        height: 42px;
    }

    #heroCarousel .carousel-control-prev {
        left: 10px;
    }

    #heroCarousel .carousel-control-next {
        right: 10px;
    }

    #heroCarousel .carousel-indicators {
        bottom: 20px !important;
    }
}

@media (max-width: 576px) {
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 36px;
        height: 36px;
    }

    #heroCarousel .carousel-indicators {
        bottom: 14px !important;
    }
}
