/* ==========================================================================
   HERO CARROUSEL — page d'accueil
   Inspiré du carrousel du projet « romi » (image pleine largeur + légende
   centrée), adapté à la charte CB Consulting (bleu nuit / or).
   ========================================================================== */

.hero-slider {
    position: relative;
    /* Neutralise le padding global appliqué aux <section> : le carrousel
       doit venir au contact de la barre de navigation */
    padding: 0;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: clamp(440px, 66vh, 620px);
}

.hero-slider .carousel-item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Voile dégradé : le texte reste lisible quelle que soit l'image */
.hero-slider .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
            rgba(0, 20, 40, 0.92) 0%,
            rgba(0, 20, 40, 0.68) 55%,
            rgba(0, 20, 40, 0.38) 100%);
}

.hero-slider .carousel-caption {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    padding: 0 1.5rem;
    z-index: 3;
}

.hero-slide-titre {
    font-size: clamp(1.75rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Le mot mis en avant dans les titres (JSON) passe en or */
.hero-slide-titre span,
.hero-accent {
    color: #d4af37;
}

.hero-slide-texte {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 760px;
    margin: 0 auto 2rem;
}

.hero-slide-texte strong {
    color: #d4af37;
}

.hero-slide-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.hero-slide-btn {
    display: inline-block;
    background-color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 4px;
    color: #001428;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.85rem 2rem;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.hero-slide-btn:hover,
.hero-slide-btn:focus {
    background-color: transparent;
    color: #d4af37;
    transform: translateY(-2px);
}

.hero-slide-btn--ligne {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.hero-slide-btn--ligne:hover,
.hero-slide-btn--ligne:focus {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #001428;
}

/* --- Indicateurs et flèches ---------------------------------------------- */
.hero-slider .carousel-indicators {
    bottom: 1.25rem;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border: 0;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.45;
}

.hero-slider .carousel-indicators .active {
    background-color: #d4af37;
    opacity: 1;
}

/* --- Bandeau de réassurance sous le carrousel ---------------------------- */
.hero-trust {
    background-color: #001428;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    padding: 0.7rem 0;
    text-align: center;
}

.hero-trust i {
    color: #d4af37;
    margin-right: 0.35rem;
}

.hero-trust-item + .hero-trust-item {
    margin-left: 1.25rem;
}

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .hero-slider .carousel-item {
        height: clamp(400px, 62vh, 540px);
    }

    .hero-slide-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-slide-btn {
        width: 100%;
    }

    .hero-slide-btn--ligne {
        margin-top: 0.6rem;
    }

    /* Les 3 mentions de réassurance restent sur UNE seule ligne (y compris en
       mobile) : flex sans retour à la ligne + police fluide qui rétrécit. */
    .hero-trust {
        font-size: clamp(0.58rem, 2.8vw, 0.7rem);
        padding: 0.5rem 0;
    }

    .hero-trust .container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .hero-trust-item {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        margin: 0;
    }

    .hero-trust-item + .hero-trust-item {
        margin-left: 0;
    }

    .hero-trust i {
        margin-right: 0.2rem;
    }
}
