/* Conteneur centré par-dessus le carousel - Pixel Perfect */
#slides-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
}

/* Sur la page d'accueil, le slides-wrapper prend toute la hauteur */
#slides-wrapper.home-slides-wrapper {
    margin-bottom: 0;
}

.hero-overlay-container {
    position: absolute;
    top: 60%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 100;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    gap: 120px;
    padding: 24px;
    box-sizing: border-box;
    background: oklch(var(--bc) / 0.6);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    pointer-events: auto;
    width: 100%;
    max-width: 600px;
}

.hero-logo {
    position: relative;
    max-width: 120px;
    max-height: 120px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    z-index: 99; /* Inférieur au hero-overlay-container (100) pour rester dans le flux sur desktop */
}

.hero-logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hero-logo img {
    position: relative;
    height: auto;
    max-width: 312px;
    display: block;
    translate: 0 0;
}

.right-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    pointer-events: auto;
    position: relative;
    z-index: 101;
}

.hero-title-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero-title {
    color: oklch(var(--b1));
    font-family: Ubuntu;
    font-size: 18px;
    line-height: 27px;
    font-style: normal;
    font-weight: 500;
    margin: 0;
}

.hero-subtitle {
    color: oklch(var(--b1));
    font-family: Ubuntu;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    text-transform: uppercase;
    margin: 0;
}

/* Les boutons hero sont toujours en fit-content */
.hero-button-discover,
.hero-button-contact {
    width: fit-content !important;
}

/* ============================================
   MEDIA QUERIES - HERO OVERLAY RESPONSIVE
   ============================================ */
/* Tablette*/
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-overlay-container {
        gap: 90px;
    }
    .hero-logo {
        max-width: 100px;
        max-height: 100px;
    }
    .hero-logo img {
        max-width: 240px;
    }
    .hero-title {
        font-size: 16;
        line-height: 24px;
    }
    .hero-subtitle {
        font-size: 28px;
        line-height: 28px;
    }
}
/* Mobile */
@media (max-width: 640px) {
    .hero-overlay-container {
        flex-direction: column;
        gap: 24px;
        padding: 20px;
        transform: translateY(-80%);
    }

    /* Logo positionné complètement au-dessus du hero-overlay-container sur mobile */
    /* Le hero-logo est en position absolute par rapport au #slides-wrapper */
    .hero-logo {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translate(-50%, -200%);
        min-width: 120px;
        min-height: 120px;
        z-index: 102;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-logo a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .hero-logo img {
        max-width: 240px;
        translate: 0 0;
        position: relative;
        display: block;
    }

    .right-container {
        align-items: center;
        text-align: center;
        margin-top: 0;
    }

    .hero-title {
        font-size: 16px;
        line-height: 24px;
    }

    .hero-subtitle {
        font-size: 28px;
        line-height: 28px;
    }
}
