.hero-section {
    position: relative;
    background: none;
    min-height: 0;
    padding-top: 40px; /* Espace pour le breadcrumb */
}

.hero-section.with-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section .hero-background {
    position: relative;
    height: 225px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-section .col-lg-6:nth-child(2) {
    animation-delay: 0.2s;
}

/* Animations */
.hero-section .container > .row > div {
    animation: fadeInUp 0.8s ease-out;
}

.hero-section .hero-title-multiline {
    font-size: 3rem;
}

.hero-section .hero-title-line {
    display: table;
    position: relative;
    background-color: rgba(var(--color-orange-vif), var(--bs-bg-opacity));
    margin-bottom: 0 !important;
    padding: .25rem 2rem .25rem 0;
    margin-bottom: .2rem;
}

.hero-section .hero-title-line:before {
    background-color: rgba(var(--color-orange-vif), var(--bs-bg-opacity));
}
.hero-section .hero-title-line.bg-rose:before {
    background-color: rgba(var(--color-rose), var(--bs-bg-opacity));
}
.hero-section .hero-title-line.bg-orange:before {
    background-color: rgba(var(--color-orange), var(--bs-bg-opacity));
}
.hero-section .hero-title-line.bg-orange-vif:before {
    background-color: rgba(var(--color-orange-vif), var(--bs-bg-opacity));
}
.hero-section .hero-h2 {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--color-poivre), var(--bs-bg-opacity));
    padding: .7rem 1.8rem .7rem 0;
    font-size: 1.1rem;
    margin-bottom: 0 !important;
}
.hero-section .hero-h2.bg-rose {
    --bs-bg-opacity: .20;
    background-color: rgba(var(--color-rose), var(--bs-bg-opacity));
}
.hero-section .hero-h2.bg-orange {
    --bs-bg-opacity: .20;
    background-color: rgba(var(--color-orange), var(--bs-bg-opacity));
}
.hero-section .hero-h2.bg-orange-vif {
    --bs-bg-opacity: .20;
    background-color: rgba(var(--color-orange-vif), var(--bs-bg-opacity));
}
.hero-section .hero-h2:before {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--color-poivre), var(--bs-bg-opacity));
}
.hero-section .hero-h2.bg-rose:before {
    --bs-bg-opacity: .20;
    background-color: rgba(var(--color-rose), var(--bs-bg-opacity));
}
.hero-section .hero-h2.bg-orange:before {
    --bs-bg-opacity: .20;
    background-color: rgba(var(--color-orange), var(--bs-bg-opacity));
}
.hero-section .hero-h2.bg-orange-vif:before {
    --bs-bg-opacity: .20;
    background-color: rgba(var(--color-orange-vif), var(--bs-bg-opacity));
}
.hero-section .hero-title-line:before,
.hero-section .hero-h2:before {
    content: "";
    position: absolute;
    width: 500px;
    left: -500px;
    height: 100%;
    top: 0;
}
@media (max-width: 1399px) {
    .hero-section .hero-background {
        max-height: 265px;
        min-height: 200px;
        height: auto;
        overflow: visible;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 100px 15px 30px 15px;
    }

    .hero-section .hero-background {
        max-height: 265px;
        min-height: 200px;
        height: auto;
        overflow: visible;
        margin-top: 40px;
    }

    .hero-section .hero-title-multiline {
        font-size: 2rem; /* Réduction de la taille du titre */
    }

    .hero-section .hero-title-line {
        font-size: 2rem;
        padding: .75rem 1rem .6rem 0; /* Padding légèrement augmenté */
        margin-bottom: .25rem; /* Espacement léger entre les lignes */
    }

    /* Première ligne : espacement amélioré */
    .hero-section .hero-title-line:first-child {
        padding-bottom: .5rem;
    }

    /* Seconde ligne : espacement amélioré */
    .hero-section .hero-title-line:last-child {
        padding-top: .5rem;
    }

    .hero-section .hero-title-line:before {
        width: 300px; /* Réduction de l'extension du background */
        left: -300px;
    }
}

/* Classe pour espacement des lettres */
.hero-description-tight-spacing {
    letter-spacing: -0.01rem;
}

/* Classe pour le sous-titre hero avec background adaptatif */
.hero-section .hero-subtitle-line {
    display: table;
    position: relative;
    background-color: rgba(var(--color-rose), var(--bs-bg-opacity));
    --bs-bg-opacity: 1;
    margin-bottom: 0 !important;
    padding: .5rem 1.5rem .5rem 0;
    font-size: 1.1rem;
}

.hero-section .hero-subtitle-line:before {
    content: "";
    position: absolute;
    width: 500px;
    left: -500px;
    height: 100%;
    top: 0;
    background-color: rgba(var(--color-rose), var(--bs-bg-opacity));
}

/* Variantes de couleur pour le sous-titre */
.hero-section .hero-subtitle-line.bg-orange {
    background-color: rgba(var(--color-orange), var(--bs-bg-opacity));
}
.hero-section .hero-subtitle-line.bg-orange:before {
    background-color: rgba(var(--color-orange), var(--bs-bg-opacity));
}

.hero-section .hero-subtitle-line.bg-orange-vif {
    background-color: rgba(var(--color-orange-vif), var(--bs-bg-opacity));
}
.hero-section .hero-subtitle-line.bg-orange-vif:before {
    background-color: rgba(var(--color-orange-vif), var(--bs-bg-opacity));
}

.hero-section .hero-subtitle-line.bg-poivre {
    background-color: rgba(var(--color-poivre), var(--bs-bg-opacity));
}
.hero-section .hero-subtitle-line.bg-poivre:before {
    background-color: rgba(var(--color-poivre), var(--bs-bg-opacity));
}

@media (max-width: 768px) {
    .hero-section .hero-subtitle-line {
        font-size: 0.9rem;
        padding: .4rem 1rem .4rem 0;
    }
    
    .hero-section .hero-subtitle-line:before {
        width: 300px;
        left: -300px;
    }
}

/* Comment ça marche Section avec fond */
.comment-ca-marche-with-bg,
.comment-ca-marche-with-bg-second {
    background-image: url("../../../images/svg/courbes-hce-faf1790ad26ce04e230c8dd6bfbc4fa5.svg");
    background-size: contain;
    background-repeat: no-repeat;
}
.comment-ca-marche-with-bg {
    background-position: center 80%;
}
.comment-ca-marche-with-bg-second {
    background-position: center 35%;
}