/* ============================================================
   HERO SECTION — BE HIVE EVENTS
============================================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--color-teal-dark, #123d3a);
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms ease, visibility 900ms ease;
    will-change: opacity;
}

.hero-bg-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.hero-slider-controls {
    position: absolute;
    right: clamp(18px, 4vw, 64px);
    bottom: clamp(72px, 9vh, 118px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: width 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.hero-slider-dot.is-active {
    width: 28px;
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.hero-slider-dot:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(27, 94, 90, 0.95) 0%,
        rgba(27, 94, 90, 0.75) 50%,
        rgba(27, 94, 90, 0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 100px 2rem 60px;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Colonne texte */
.hero-text-col {}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 150, 46, 0.15);
    border: 1px solid rgba(184, 150, 46, 0.4);
    border-radius: 50px;
    padding: 8px 18px;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-gold);
    animation: none;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: none;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: none;
}

.hero-title .text-gold { color: var(--color-gold); }

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    animation: none;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: none;
}

.hero-contact-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    animation: none;
}

.hero-contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-contact-link:hover { color: var(--color-gold); }

/* Colonne KPIs */
.hero-kpis-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    animation: none;
}

.hero-kpi-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.hero-kpi-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.hero-kpi-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.hero-kpi-value {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.hero-kpi-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: none;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: none;
}

/* PAGE HERO (intérieur) */
.page-hero {
    position: relative;
    background: var(--color-teal);
    padding: calc(var(--header-height) + 60px) 0 60px;
    min-height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.page-hero-content h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 0;
}

.page-hero.service-detail-hero,
.page-hero.realisation-hero {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-kpis-col {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    .hero-kpi-card { padding: 1rem; }
    .hero-kpi-value { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100svh;
        align-items: center;
    }
    .hero-content { padding: calc(var(--header-height, 72px) + 42px) 1rem 86px; }
    .hero-title { font-size: 2.5rem; }
    .hero-kpis-col { grid-template-columns: repeat(2, 1fr); }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .page-hero { min-height: 280px; }

    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-buttons,
    .hero-contact-quick,
    .hero-kpis-col {
        opacity: 1;
        visibility: visible;
        transform: none;
        animation: none;
    }

    .hero-background,
    .hero-overlay,
    .hero-slider-controls,
    .hero-section::before,
    .hero-section::after {
        pointer-events: none;
    }

    .hero-slider-controls {
        right: 1rem;
        bottom: 1.25rem;
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .hero-kpis-col { grid-template-columns: repeat(2, 1fr); }
    .hero-kpi-value { font-size: 1.6rem; }
}

/* HERO STATIC FIRST PAINT
   Keeps the hero visible immediately and prevents the transparent opening state. */
.hero-section,
.hero-section .hero-background,
.hero-section .hero-content,
.hero-section .hero-grid,
.hero-section .hero-text-col,
.hero-section .hero-bg-image,
.hero-section .hero-video,
.hero-section .hero-overlay,
.hero-section .hero-badge,
.hero-section .hero-title,
.hero-section .hero-subtitle,
.hero-section .hero-buttons,
.hero-section .hero-contact-quick,
.hero-section .hero-kpis-col {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
}

.hero-section .hero-content,
.hero-section .hero-grid,
.hero-section .hero-text-col,
.hero-section .hero-badge,
.hero-section .hero-title,
.hero-section .hero-subtitle,
.hero-section .hero-buttons,
.hero-section .hero-contact-quick,
.hero-section .hero-kpis-col {
    transform: none !important;
}

.hero-section .hero-badge-dot,
.hero-section .hero-scroll-indicator,
.hero-section .scroll-wheel {
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
}

.hero-section .hero-bg-slide {
    transition: opacity 900ms ease, visibility 900ms ease !important;
    will-change: opacity !important;
}

.hero-section .hero-bg-slide:not(.is-active) {
    opacity: 0 !important;
    visibility: hidden !important;
}

.hero-section .hero-bg-slide.is-active {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-slide,
    .hero-section .hero-bg-slide {
        transition: none !important;
    }
}
