/*
 * Règles propres à la page d'accueil.
 *
 * Elles reprennent fidèlement l'ancien bloc CSS critique inline.
 * Les déclarations !important ci-dessous sont donc migrées, pas ajoutées.
 */

/* Aplat beige chaud sur le premier slide. */
.owl-carousel .owl-item:first-child .bg-primary {
    background-color: var(--quaternary) !important;
}

.owl-carousel .owl-item.border-radius-2,
.owl-carousel .owl-item .border-radius-2 {
    border-radius: 0 !important;
}

.btn-top-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: Poppins, Arial, sans-serif;
    text-decoration: none;
    border: 2px solid rgb(255 255 255 / 0.3);
    border-radius: 25px;
    background-color: #fff0;
    color: #fff;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn-top-bar:hover {
    border-color: #fff;
    background-color: rgb(255 255 255 / 0.1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
}

@media (max-width: 1400px) {
    .btn-top-bar {
        padding: 0.4rem 1rem;
        font-size: 0.8125rem;
    }
}

#black-top-bar {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1031;
    transition: top 0.3s ease;
}

@media (max-width: 991px) {
    #header .header-body {
        margin-top: var(--black-bar-height, 50px);
    }
}

@media (min-width: 992px) {
    html:not(.sticky-header-active) #header .header-body {
        padding-top: var(--black-bar-height, 50px) !important;
        top: 0 !important;
    }

    html.sticky-header-active #header .header-body {
        padding-top: 0 !important;
        transition: top 0.3s ease;
    }

    html.sticky-header-active.black-bar-visible #header .header-body {
        top: var(--black-bar-height, 50px) !important;
    }

    html.sticky-header-active.black-bar-hidden #header .header-body {
        top: 0 !important;
    }
}

.offcanvas-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.offcanvas-body {
    background-color: #fff;
}

.offcanvas-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    padding: 0.75rem 0;
    display: block;
}

.offcanvas-nav a:hover {
    color: var(--primary);
}

#offCanvasLogo img {
    max-width: 150px;
    height: auto;
}

.thumb-info-wrapper {
    height: 300px !important;
    overflow: hidden;
}

.thumb-info-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.thumb-info-content-inner {
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.thumb-info-content-inner > h3,
.thumb-info-content-inner > h4 {
    flex-shrink: 0;
}

.post .card-img-top {
    height: 200px;
}

.post .card-body {
    min-height: 240px;
}

.post .card-body .card-text {
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-height: 1.6;
}

.thumb-info-content-inner-hidden {
    flex-shrink: 0;
}

.post .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post .card-img-top {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.post .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.post .card-body h4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    min-height: 2.8em;
}

.post .card-body .card-text {
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.post .card-body .read-more {
    flex-shrink: 0;
    margin-top: auto;
}

@media (max-width: 991px) {
    .thumb-info-wrapper {
        height: 250px !important;
    }

    .thumb-info-content-inner {
        min-height: 240px;
    }

    .post .card-img-top {
        height: 200px;
    }

    .post .card-body {
        min-height: 240px;
    }

    .post .card-body .card-text {
        -webkit-line-clamp: 3;
    }
}

#header .header-nav-main nav > ul > li > a {
    text-transform: none !important;
}

@media (max-width: 991px) {
    .custom-el-1 > * {
        transform: translateY(30px);
        display: block !important;
    }
}

.custom-header-mobile-up {
    transform: translateY(-45px) !important;
    position: relative;
    z-index: 5;
}
