﻿#new-carousel {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    background: #000;
}

#new-carousel .item {
    height: 500px;
    width: 100%;
}

.new-main-bg {
    width: 1897px;
    height: 500px !important;
    display: block;
}

.new-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(*/
    /*        105deg,*/
    /*        rgba(8, 97, 173, 0.98),*/
    /*        #3379b7d5 30%,*/
    /*        rgba(0, 100, 180, 0.3) 60%,*/
    /*        transparent 85%*/
    /*);*/
    z-index: 1;
    pointer-events: none;
}

.new-custom-caption {
    position: absolute;
    top: 47% !important;
    left: 40px;
    z-index: 10;
    right: 10%;
    transform: translateY(-50%);
    text-align: left;
    padding: 0;
    bottom: auto !important;
    display: flex;
    flex-direction: column;
    gap: 39px;
}

.new-title {
    font-size: 65px;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    max-width: 1000px;
    height: 145px;
    display: -webkit-box;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0
}

.new-subtitle {
    font-size: 32px;
    letter-spacing: 2px;
    font-weight: 500;
    color: #fff;
    height: 40px;
    margin-bottom: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.new-button-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.new-btn-orange {
    background-color: #C98954;
    border-color: white;
    color: white !important;
    padding: 5px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none !important;
    display: inline-block;
    transition: 0.3s;
    font-size: 18px;
    min-width: 200px;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.new-btn-orange:hover {
    background-color: white;
    border-color: #ff9030 !important;
    color: #ff9030 !important;
    transform: translateY(-2px);
}

.new-btn-green {
    background-color: #3A8A82;
    border-color: white;
    color: white !important;
    padding: 5px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none !important;
    display: inline-block;
    transition: 0.3s;
    font-size: 18px;
    min-width: 200px;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.new-btn-green:hover {
    background-color: white;
    border-color: #4fa15f !important;
    color:#4fa15f !important;
    transform: translateY(-2px);
}

.new-btn-blue {
    background-color: white;
    border-color: #337ab7;
    color: #337ab7 !important;
    padding: 5px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none !important;
    display: inline-block;
    transition: 0.3s;
    font-size: 18px;
    min-width: 200px;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.new-btn-blue:hover {
    background-color: #337ab7;
    color: white !important;
    border-color: white !important;
    transform: translateY(-2px);
}


.new-divider-line {
    width: 40px;
    height: 2px;
    background: #fff;
    margin: 0 10px;
}

.new-btn-link-white {
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.new-btn-link-white:hover {
    opacity: 0.8;
}

/* Navigation */
.new-custom-nav-controls {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 10;
}

.new-nav-btn {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none !important;
}

.new-nav-btn:hover {
    background: #003366;
}

.new-custom-indicators {
    left: auto !important;
    right: 40px !important;
    width: auto !important;
    bottom: 30px !important;
    margin: 0;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

@media (max-width: 991px) {
    .new-title {
        font-size: 45px;
    }
}

@media (max-width: 767px) {
    #new-carousel, #new-carousel .item {
        height: 400px; /* On réduit un peu la hauteur sur mobile */
    }

    .new-custom-caption {
        left: 5%;
        right: 5%;
        text-align: center;
    }

    .new-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .new-button-group {
        justify-content: center;
    }

    .new-divider-line {
        display: none;
    }

    .new-custom-nav-controls {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
    }

    .new-custom-indicators {
        display: none;
    }
}
