/*fil actu*/
.fixed-size-image {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    border-radius: 15px !important;
    background-color: #f5f5f5;
}

.fixed-size-image[src=""] {
    display: none;
}
.carousel-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 5px;
    max-width: 70%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.carousel-overlay h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.carousel-overlay p {
    margin: 0;
    font-size: 20px;
    flex: 1;
}

.carousel-overlay .btn-plus {
    font-size: 16px;
    padding: 5px 10px;
    text-transform: uppercase;
    color: white;
    border: 1px solid transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-left: 20px;
}

.carousel-overlay .btn-plus i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.carousel-overlay .btn-plus:hover {
    transform: scale(1.1);
}

.carousel-overlay .btn-plus:hover i {
    transform: rotate(90deg);
}


.row.flex-nowrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.row.flex-nowrap::-webkit-scrollbar {
    height: 8px;
}

.row.flex-nowrap::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.row.flex-nowrap::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
}

.col-lg-4.flex-shrink-0 {
    flex: 0 0 auto;
    max-width: 300px;
}
.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-img {
    height: 150px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.row.flex-nowrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.row.flex-nowrap::-webkit-scrollbar {
    height: 8px;
}

.row.flex-nowrap::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.row.flex-nowrap::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
}
.bg-primary {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-contact {
    max-height: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 0.5rem;
}
.image-container {
    height: 100%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.custom-img {
    height: 100%;
    width: 120%;
    object-fit: cover;
    display: block;
}

.form-recherche {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hover-card:hover {
    background-color: #eeeeee !important;
    transition: background-color 0.3s ease;
}

.hover-button:hover {
    background-color: #CEAB5D !important;
    color: white !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.row.flex-nowrap {
    scroll-snap-type: x mandatory;
}

.row.flex-nowrap > div {
    scroll-snap-align: center;
}

.container.mb-8 {
    overflow: hidden;
}

.container-contact p {
    font-size: 12px;
    margin-bottom: 10px;
    margin-top: 10px;
}
.nav-link {
    border-top: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-item.dropdown:hover > .nav-link,
.nav-item:hover > .nav-link {
    border-top: 3px solid var(--menu-border-color, #CEAB5D);
}


#nav-menu-links {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hover-with-left-border:hover {
    position: relative;
    padding-left: 1.5rem;
}

.hover-with-left-border:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    background-color: var(--hover-left-border-color, #CEAB5D);
    border-radius: 3px;
    transition: background-color 0.3s ease, height 0.3s ease;
}


.form-select {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.container-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-item {
    flex-grow: 1;
}

.btn.search {
    flex-shrink: 0;
    white-space: nowrap;
}

.container-question-reponse {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.container-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.container-search label {
    white-space: nowrap;
    margin-right: 10px;
}

.container-search input {
    flex: 1;
    min-width: 200px;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
}

.contact-info p,
.contact-info a {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    text-align: center;
    font-size: 1rem;
}

.contact-info a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: inherit;
    text-decoration: none;
}

/*partenaires modal */
.partenaires .show {
    background-color: unset!important;
    display: flex !important;
}
.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.modal {
    top: 80px !important;
    justify-content: center;
}

.show-modal {
    display: flex;
    background-color: unset;
}

.modal-dialog {
    margin: auto;
}
/*/*/

/* homepage */
@media (min-width: 768px) and (max-width: 992px) {
    .blocks-home {
        width: 50% !important;
    }
}
@media (max-width: 768px) {
    .contact-info p,
    .contact-info a {
        font-size: 0.875rem;
    }

    /*partenaire*/
    .partnerships {
        text-align: center !important;
    }

    .partnerships .cta {
        margin: auto !important;
    }
}


@media (max-width: 672px) {
    .news-container {
        width: 100% !important;
    }
}



@media (max-width: 600px) {
    .carousel-overlay {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 10px;
        border-radius: 3px;
        max-width: 90%;
    }

    .carousel-overlay h4 {
        font-size: 16px;
        margin: 0 0 5px 0;
    }

    .carousel-overlay p {
        font-size: 14px;
    }

    .carousel-overlay .btn-plus {
        font-size: 14px;
        width: 35px;
        height: 35px;
        margin-left: 10px;
    }

    .carousel-overlay .btn-plus i {
        font-size: 14px;
    }
}


@media (max-width: 576px) {
    /*partenaires */
    .partenaire-card {
        width: 80% !important;
        margin: auto;
    }

    .modal-dialog {
        max-width: 90%;
    }

    .modal-content {
        max-width: 100%;
        font-size: 0.9rem;
        padding: 10px;
    }

    .modal-header {
        padding: 10px 15px;
    }

    .modal-header img {
        max-width: 40px;
        margin-right: 10px;
        border-radius: 5px;
    }

    .modal-body {
        max-height: 60vh;
        overflow-y: auto;
    }

    .modal-footer {
        padding: 10px 15px;
    }
}