/* X-Large devices (large desktops, less than 1400px) */
@media (max-width: 1399.98px) {
    .post-section .post .post-preview {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3/2;
    }
    .sidebar .sidebar-title .sidebar-title-wrapper h2 {
        bottom: 24px;
    }
    .outro, .outro .filigram, .outro .filigram img {
        max-width: 100%;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .post.fiche-auteur .author-name h1 {
        transform: rotate(-90deg) translateY(55px) translateX(50%);;
        line-height: 0.8;
        width: 250px;
        position: absolute;
        top: 300px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) { 
    .sidebar .sidebar-title .sidebar-title-wrapper {
        transform: rotate(-90deg) translateY(-36px);
        width: auto;
    }
    .intro .filigram img,
    .intro .gimmick img {
        position: relative;
        bottom: auto;
        left: auto;
        top: auto;
    }
    .ad-display-placeholder.full-banner {
        height: 100px;
    }
    .ad-display-placeholder.full-banner,
    .ad-display-placeholder.sidebar-banner {
        width: 100%;
    }
    .post-section .section-title {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .category .intro .gimmick img {
        position: absolute;
        bottom: -163px;
        left: -28px;
        max-width: 100px;
    }
    .section-title h2 {
        font-size: 30px;
    }
    .intro .see-more-link, 
    .post-section .see-more-link {
        padding-right: 35px;
    }
    .intro .see-more-link::after, 
    .post-section .see-more-link::after {
        position: absolute;
        top: 5px;
    }
    .post-section .head-section {
        margin-bottom: 0;
    }
    .event-type-agenda {
        position: relative;
        transform: none;
        margin-bottom: 10px;
    }
    .sidebar .sidebar-title .sidebar-title-wrapper h2 {
        bottom: 8px;
    }
    .logo {
        height: 50px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) { 
    .logo-section {
        flex-direction: column;
    }
    .login-menu .btn.btn-primary svg,
    .login-menu .btn.btn-secondary svg {
        display: none !important;
    }
    .secondary__header__menu li a {
        font-size: 10px;
        padding: 7px;
    }
    .logo {
        height: 40px;
    }
    .intro {
        margin-bottom: 20px;
    }
    .intro .blog-title h1 {
        font-size: 20px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .intro .filigram img {
        left: -20px;
        width: 70px;
    }
    .intro a.see-more-link, .post-section a.see-more-link {
        top: auto;
        padding-right: 20px;
    }
    .intro .see-more-link::after, .post-section .see-more-link::after {
        width: 25px;
        height: 25px;
        position: absolute;
        top: 0;
        display: block;
        line-height: 25px;
    }
    .sidebar .sidebar-title .sidebar-title-wrapper {
        transform: rotate(-90deg) translateY(-6px)
    }
    .btn.btn-tertiary.hidden-mobile {
        padding: 10px 0;
        min-width: auto;
        border: 0px;
        font-size: 22px;
    }
    .btn .fa-chevron-down {
        font-size: 20px;
        margin-left: 15px;
    }
    .btn svg, .btn svg#Calque_2 {
        width: 50%;
        width: fit-content;
        margin-top: 18px;
    }
    a.btn svg#Calque_2 {
        width: 100%;
    }
    .btn.btn-border {
        min-width: fit-content;
        max-width: 55px;
    }
    .btn .btn-text {
        width: fit-content;
    }
    #menu-principal {
        flex-wrap: nowrap;
        overflow-x: auto;
        height: 50px;
    }
    .site__header__menu::after {
        position: absolute;
        transform: translateY(50px);
        bottom: auto;
    }
    #menu-principal li a {
        white-space: nowrap;
    }
    .post-section h2 {
        font-family: Poppins-Bold;
        font-size: 20px;
    }
    .post-section.gimmick h2 {
        left: auto;
    }
    .post-section.gimmick h2::after {
        left: -15px;
    }
    .category .intro .gimmick img {
        bottom: -119px;
        left: -20px;
        max-width: 70px;
    }
    .post .post-title {
        font-size: 15px;
    }
    footer .outro {
        text-align: center;
        margin-bottom: 40px;
    }
    footer .outro .footer-logo, 
    footer .outro .btn.btn-secondary {
        margin: auto;
    }
    .footer__menu {
        text-align: center;
    }
    footer .footer-section-title {
        text-align: center;
    }
    .footer__menu .footer-section-logo::after, 
    footer .footer-section-title::after {
        margin: 7px auto;
    }
    .footer__menu .menu-item .nav-link { 
        text-align: center;
        margin: auto;
    }
    .footer-siege-social p {
        margin: auto;
    }
    .btn {
        min-width: 110px;
    }
    .intro a.see-more-link,
    .post-section a.see-more-link {
        font-size: 14px;
    }
    .search-result {
        display: flex;
        flex-direction: column-reverse;
    }
    #searchForm, #searchEventForm {
        height: 0;
        overflow: hidden;
        width: 100%;
    }
    .search-result select,
    .search-result .search-box,
    .search-result .search-box input,
    #searchForm .form-group,
    #searchForm .form-group input,
    #searchEventForm .form-group,
    #searchEventForm .form-group input {
        width: 100%;
    }
    .sidebar-content::before {
        left: 0;
    }
    .sep {
        margin: 20px 0;
    }
    .sidebar .sidebar-title {
        height: 50%;
    }
    .agenda .post-date,
     .breves .post-date {
        font-size: 12px;
        width: 120px;
    }
    .breves .post-date::before, 
    .agenda .post-date::before {
        transform: translateX(100px);
        height: calc(100% + 16px);
    }
    .breves .event, .agenda .event {
        position: relative;
    }
    .search-form.mobile,
    .search-form.mobile .search-box {
        width: 100%;
    }
    .mobile .input-search {
        width: 100%;
        border-radius: 0px;
        background-color: transparent;
        border-bottom: 2px solid var(--main-color);
        transition: all 500ms cubic-bezier(0, 0.110, 0.35, 2);
    }
    .main-content .post-section {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    .sidebar {
        padding-bottom: 25px;
    }
}

/* X-Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) { 
    .intro .filigram img {
        left: -20px;
        width: 70px;
        max-width: calc(100% + 20px);
        bottom: -28px;
    }
    .outro .footer-description {
        padding-right: 0;
    }
    .post.fiche-auteur .author-name {
        padding-top: 0;
    }
    .post.fiche-auteur .author-name h1 {
        transform: rotate(-90deg) translateY(55px) translateX(50%);;
        line-height: 0.8;
        width: 250px;
        position: absolute;
        top: 300px;
    }
    .post.fiche-auteur h2 {
        margin-top: 5px;
    }
    .post.fiche-auteur .post-tags {
        padding-bottom: 5px;
    }
    .post.fiche-auteur .post__content {
        padding-top: 5px !important;
    }
}