/* =================================== */
/* COMPONENT: HERO SECTION - NOUVEAU   */
/* =================================== */

.hero-section {
    /* Option 1: Image de fond (décommentez pour activer) */
    /* background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../images/Photo ITW DUO.jpg');*/
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    /* Option 2: Fond blanc simple (commentez les lignes ci-dessus et décommentez celle-ci) */
    /* background: white; */

    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    text-align: center;
}

/* Bulle décorative */
.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 80%;
    background: var(--bubble-color);
    border-radius: 30px;
    z-index: 1;
    opacity: 0.7;
    transform: translate(-50%, -50%);
}

/* Bulle blanche pour la page Réalisations */
.hero-section-realisations::before {
    background: white;
    opacity: 0.6;
}

/* Préserver les proportions de l'image sur la page réalisations */
.hero-section-realisations.hero-section-with-bg {
    background-attachment: scroll; /* Fixed ne fonctionne pas bien sur mobile */
    background-position: center center;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bee-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--bee-yellow);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #43494e;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Hero title sub */
.hero-title-sub {
    color: var(--bee-dark);
}

/* Hero large icon */
.hero-icon-large {
    font-size: 8rem;
    color: var(--white);
}

/* Nouveaux boutons hero */
.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-hero {
    background: white;
    color: var(--bee-dark);
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-hero:hover {
    background: linear-gradient(135deg, #F8EF9C 0%, #A98243 100%);
    color: var(--bee-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 172, 0, 0.3);
}

.btn-hero.btn-primary {
    background: var(--bee-yellow);
    color: var(--bee-dark);
}

.btn-hero.btn-gold {
    /* btn couleur or gradient F8EF9C a A98243 */
    background: linear-gradient(135deg, #F8EF9C 0%, #A98243 100%);
    color: var(--bee-dark);
    border: none;
}

.btn-hero.btn-gold:hover {
    background: linear-gradient(135deg, #F8EF9C 0%, #A98243 100%);
    border: none;
}

/* Hero image/icon - nouveau design */
.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-icon-container {
    width: 350px;
    height: 350px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Card optionnelle */
.hero-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.hero-card h4 {
    color: var(--bee-yellow);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-card p {
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* Custom background helper */
.hero-section-with-bg {
    background-size: cover;
    background-position: center;
}

/* Overlay with custom opacity (opacity set inline via Twig variable) */
.hero-overlay-custom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Hero container with proper z-index */
.hero-container-content {
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: var(--spacing-xl) 0;
        min-height: 60vh;
        background-attachment: scroll; /* Désactiver fixed sur mobile */
    }

    /* Réalisations : préserver les proportions de l'image */
    .hero-section-realisations.hero-section-with-bg {
        min-height: 50vh;
        background-size: cover;
        background-position: center top;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-icon-container {
        width: 280px;
        height: 280px;
    }

    .hero-icon-large {
        font-size: 6rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
    }

    .btn-hero {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .hero-section::before {
        width: 85%;
        height: 70%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: var(--spacing-lg) 1rem;
        min-height: 50vh;
    }

    /* Réalisations : ajustement pour petits écrans */
    .hero-section-realisations.hero-section-with-bg {
        min-height: 45vh;
        background-position: center center;
    }

    .hero-title {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        padding: 0 1rem;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .hero-icon-container {
        width: 220px;
        height: 220px;
    }

    .hero-icon-large {
        font-size: 4rem;
    }

    .hero-section::before {
        width: 90%;
        height: 65%;
        transform: translate(-50%, -50%);
    }

    .hero-container-content {
        padding: 0 0.5rem;
    }
}
