/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* HEADER */


.ct-header-text img {
    border-bottom: 2px solid #fff;
}

.ct-header-text img:hover {
    border-bottom: 2px solid #000;
}


/* TEMPLATE HEADER POSTS CATEGORIES */

.qwery-latest-category-post-header {
    width: 100%;
    height: 400px;
    background-color: #ffcd00;
    text-align: center;
}

.qwery-latest-category-post-header.color-14 {
    background-color: #00C8FF;
}

.qwery-latest-category-post-header.color-13 {
    background-color: #ffc8c8;
}

.qwery-latest-category-post-header.color-11 {
    background-color: #00fa6e;
}


.qwery-latest-category-post-header > .qwery-post-item-post-header-thumbnail {
    width: 880px;
    max-width: 100%;
    height: 100%;
    background-color: #fff;
    margin: 0 auto;
    padding: 0 20px;
}

.qwery-latest-category-post-header > .qwery-post-item-post-header-thumbnail > a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.qwery-latest-category-post-header > .qwery-post-item-post-header-thumbnail > a > img {
    object-fit: cover;
}

.qwery-post-header-item {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    max-width: 1290px;
}

.qwery-post-header-item > div {
    width: 100%;
    margin: 0 10px;
    border-bottom: 5px solid;
}

.qwery-post-header-item-title {
    min-width: 840px;
    padding: 40px 0px;
}

.qwery-post-header-item-title > h3 {
    line-height: 1.1;
}

.qwery-post-header-item-title-mobile {
    display: none;
}

.qwery-post-header-item-nav {
    padding: 40px 0px;
    font-weight: bold;
    font-size: 20px;
    width: 200px;
}

.qwery-post-header-item-nav > a {
    display: block;
    padding-bottom: 55px;
}

.qwery-post-header-item-nav.first > span {
    display: block;
    padding-bottom: 55px;
    text-align: left;
    cursor: default;
}

.qwery-post-header-item-nav.second > a {
    text-align: right;
    background-image: url(./images/R535_Picto_Verrouille.svg);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 60px;
}

.qwery-post-header-item-nav.second > a:hover span {
    transition: 0.1s border;
}

.qwery-post-header-item-nav.second > a:hover span {
    border-bottom: 4px solid #ffcd00;
}

.qwery-post-header-item-date {
    font-size: 30px;
    font-weight: bold;
}


.qwery-post-item-date::first-letter {
    text-transform: uppercase;
}


@media (max-width: 1080px) {

    .qwery-latest-category-post-header {
        height: 255px;
    }

    .qwery-latest-category-post-header > .qwery-post-item-post-header-thumbnail {
        width: 100%;
        max-width: 100%;
        padding: 0 25px;
    }

    .qwery-post-header-item > div {
        margin: 0;
    }

    .qwery-post-header-item-title-mobile {
        display: block;
        font-weight: bold;
        margin-bottom: 12px;
    }

    .qwery-post-header-item {
        display: flex;
        flex-direction: column;
        width: calc(100% - 50px);
        margin: 0 25px;
    }

    .qwery-post-header-item-title {
        width: 100%;
        min-width: 0;
        margin: 0 10px;
    }

    .qwery-post-header-item-nav.first {
        display: none;
    }

    .qwery-post-header-item-nav.second > a {
        text-align: left;
        background-position: 200px -15px;
        padding-bottom: 8px;
    }
}


/* TEMPLATE POSTS CATEGORIES */


.qwery-latest-category-posts {

}

.qwery-latest-category-posts > .qwery-post-item {

    display: flex;
    justify-content: space-between;
    border-bottom: 5px solid;
    margin-bottom: 30px;
    padding-bottom: 30px;

}

.qwery-latest-category-posts > .qwery-post-item:hover .qwery-post-item-post-thumbnail > a > img {
    transform: scale(1.1);
}

.qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-title {
    width: 50%;
}

.qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-title > h3 {
    font-size: 36px;
}

.qwery-post-item-date,
.qwery-post-item-lieu {
    font-size: 24px;
    margin-bottom: 12px;
}

.qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-categories {
    padding: 0px 16px;
}

.qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-categories .qwery-post-item-category {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    background-color: black;
    color: #fff;
    padding: 4px 10px;
    margin-bottom: 8px;
}

.qwery-post-item-link {
    display: block;
    font-weight: bold;
    font-size: 16px;
    padding: 20px 42px 20px 0;
    background-image: url(./images/R535_Picto_F_droite.svg);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: 30px;
    margin-top: 20px;

}

.qwery-post-item-link > span {
    padding: 0 0 6px 0;
    transition: ease 0.2s;
    border-bottom: 0px solid #000;
}

.qwery-post-item-link:hover > span {
    border-bottom: 4px solid #ffcd00;
}

.qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-post-thumbnail {
    position: relative;
    width: 390px;
    height: 220px;
}

.qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-post-thumbnail > a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-post-thumbnail > a > img {
    transition: ease 0.3s;
    object-fit: cover;
}


@media (max-width: 690px) {

    .qwery-latest-category-posts > .qwery-post-item {
        flex-direction: column;

    }

    .qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-title,
    .qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-categories,
    .qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-post-thumbnail {
        width: 100%;
    }

    .qwery-latest-category-posts > .qwery-post-item .qwery-post-item-post-thumbnail > a > img {
        height: 100%;
    }

    .qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-categories {
        padding: 0;
    }

    .qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-post-thumbnail {
        order: 1;
        margin-bottom: 20px;
        height: 200px;
    }

    .qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-title {
        order: 2;
    }

    .qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-categories {
        order: 3;
    }

    .qwery-post-item-link {
        text-align: right;
    }

}


/* BOUTON RECHERCHE */


button.ct-header-search svg.ct-icon {
    display: none;
}

#header button.ct-header-search {
    height: 60px;
    width: 60px;
    background-image: url(./images/R535_Picto_Loupe.svg) !important;
    background-repeat: no-repeat !important;
    background-position: center right !important;
    background-size: 58px !important;
    margin-left: 20px;
    border-bottom: 2px solid #fff !important;
}

#header button.ct-header-search:hover {
    border-bottom: 2px solid #000 !important;
}


/* BOUTON POUR REMONTER LA PAGE */

a.ct-back-to-top svg.ct-icon {
    display: none;
}

a.ct-back-to-top {
    height: 60px;
    width: 60px;
    background-image: url(./images/R535_Picto_F_Haut.svg) !important;
    background-repeat: no-repeat !important;
    background-position: center right !important;
    background-size: 58px !important;
    margin-left: 20px;
}


/* OFFRES EMPLOI */

.qwery-latest-offre-emploi {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 44px;
}

.qwery-latest-offre-emploi > .qwery-offre-emploi-item {
    width: 400px;
    margin-bottom: 80px;
    display: block;
    border-bottom: 5px solid;
    position: relative;
    padding-bottom: 60px;
}


.qwery-offre-emploi-item-post-thumbnail {
    margin-bottom: 20px;
}

.qwery-offre-emploi-item-title > h2 {
    transition: all 0.2s;
    display: inline;
    font-size: 28px;
    line-height: 1.2;
}


.qwery-offre-emploi-item-title > h2:hover {
    border-bottom: 4px solid #ffcd00;
}

.qwery-offre-emploi-item-link {
    display: block;
    font-weight: bold;
    font-size: 16px;
    padding: 20px 42px 20px 0;
    background-image: url(./images/R535_Picto_F_droite.svg);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: 30px;
    margin-top: 20px;
    text-align: right;
    position: absolute;
    bottom: 0px;
    right: 0px;

}

.qwery-offre-emploi-item-link > span {
    transition: ease 0.2s;
    border-bottom: 0px solid #000;
}

.qwery-offre-emploi-item-link:hover > span {
    border-bottom: 4px solid #ffcd00;
}

.qwery-offre-emploi-item-category {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    background-color: black;
    color: #fff;
    padding: 4px 10px;
    margin-bottom: 8px;
}

.qwery-offre-emploi-item-structure {
    font-weight: bold;
    margin-top: 18px;
}


@media (max-width: 690px) {

    .qwery-latest-offre-emploi {
        display: flex;
        flex-direction: column;
    }

    .qwery-latest-offre-emploi > .qwery-offre-emploi-item {
        width: 100%;
        margin-bottom: 32px;
    }

    .cleaner-filter {
        display: block;
        margin-top: 16px;
    }
}


/* FILTRES */

.qwery-filters-header {
    display: flex;
    justify-content: space-between;
}

.qwery-filters-title {
    margin-bottom: 0px;
}

.qwery-filters {
    margin: 20px auto 100px;
}

.qwery-filters button:hover {
    color: #000;
}

.qwery-filters.qwery-filters-flexbox > form {
    display: flex;
    justify-content: space-between;
}

.qwery-filters.qwery-filters-flexbox > form > *:not(:first-child) {
    margin-left: 10px;
}

.qwery-filters select {
    width: 30%;
    background-color: #ffcd00;
    color: #000;
    border: 0;
    appearance: none;
    background-image: url(./images/R535_Picto_F_Bas.svg);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: 30px;
}

.qwery-filters select:active,
.qwery-filters select:focus {
    background-color: black;
    color: #fff;
}


.qwery-category-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    background-color: black;
    color: #fff;
    padding: 4px 10px;
    margin: 4px 12px 4px 0;
}

.qwery-category-tag:first-child {
    margin-left: 0px;
}

.qwery-category-tag:hover,
.qwery-category-tag.selected {
    background-color: #ffcd00;
    color: black
}

.cleaner-filter:after {
    content: " ";
    margin-left: 8px;
    padding-right: 40px;
    background-image: url(./images/R535_Picto_Croix.svg);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: 48px;
}


@media (max-width: 690px) {

    .qwery-filters.qwery-filters-flexbox > form {
        flex-direction: column;
    }

    .qwery-filters.qwery-filters-flexbox > form > select {
        width: 100%;
        margin-bottom: 8px;
    }

    .qwery-filters.qwery-filters-flexbox > form > *:not(:first-child) {
        margin-left: 0px;
    }

    .qwery-filters > .qwery-category-tag {

    }
}


/* PAGINATION */


.pagination {
    margin: 20px auto;
    text-align: center;
}


.pagination .page-numbers {
    padding: 6px;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
}

.pagination .page-numbers:hover {
    border: 2px solid black;
}

.pagination .page-numbers.current {
    background-color: black;
    border: 2px solid black;
    color: #fff;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    display: none;
}


/* ARCHIVE */

#page-archive {
    margin: 60px auto;
    width: 100%;
    max-width: 1280px;
}

#page-archive > h1 {
    font-size: 50px;
}


@media (max-width: 1080px) {

    .qwery-latest-category-posts > .qwery-post-item > .qwery-post-item-title > h3 {
        font-size: 30px;
    }

    .qwery-post-item-date,
    .qwery-post-item-lieu {
        font-size: 20px;
    }

    .qwery-post-item-date {
        margin-bottom: 0px;
    }

}


/* SURCHARGE UM */

.um input[type=submit].um-button:hover {
    background-color: #000 !important;
    color: #fff !important;
}

.um a.um-button {
    box-shadow: none !important;
}


#btn-login-footer > a {
    padding-left: 44px;
    background-image: url(./images/R535_Picto_Perso.svg);
    background-repeat: no-repeat;
    background-position: 4px 4px;
    background-size: 32px;
}


/* Veilles artistique */

.qwery-veilles-artistique-item {
    display: flex;
    background: #ffcd00;
    margin-bottom: 35px;
    flex-direction: row;
    justify-content: space-between;
    padding: 25px 35px 20px 35px;
}

.qwery-veilles-artistique-item-category {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    background-color: black;
    color: #fff;
    padding: 8px 14px;
    margin-bottom: 0px;
}


.qwery-veilles-artistique-item-link {
    display: inline-block;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 42px 10px 0;
    background-image: url(./images/R535_Picto_F_droite.svg);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: 30px;
}

.qwery-veilles-artistique-item-col-1 {
    width: 40%;
}

.qwery-veilles-artistique-item-col-1 > h4 {
    margin-bottom: 8px;
}

.qwery-veilles-artistique-item-nom_de_la_compagnie {
    font-size: 26px;
    margin-bottom: 12px;
}

.qwery-veilles-artistique-item-col-2 {
    width: 30%;
}


.qwery-veilles-artistique-item-structure {
    font-size: 22px;
}

.qwery-veilles-artistique-item-resume {
    font-size: 22px;
    margin-bottom: 25px;
}

.qwery-veilles-artistique-item-link > span {
    transition: ease 0.2s;
    border-bottom: 0px solid #000;
}

.qwery-veilles-artistique-item-link:hover > span {
    border-bottom: 4px solid #000;
}

.qwery-veilles-artistique-item-post-thumbnail {
    width: 190px;
    margin-top: -25px;
    margin-right: -25px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.qwery-veilles-artistique-item-taxonomy-thumbnail {
    width: 100px;
}


@media (max-width: 690px) {

    .qwery-veilles-artistique-item {
        flex-direction: column;

    }

    .qwery-veilles-artistique-item-col-1,
    .qwery-veilles-artistique-item-col-2,
    .qwery-veilles-artistique-item-col-3 {
        width: 100%;
    }

    .qwery-veilles-artistique-item-col-2 {
        margin-top: 20px;
    }

    .qwery-veilles-artistique-item-post-thumbnail {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 30px;
    }

    .qwery-veilles-artistique-item-post-thumbnail > img {
        max-width: 50% !important;
    }

}

/* Ajout agenda */

.qwery-add-agenda {
    width: 250px;
}

.qwery-agenda-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    max-width: 260px;
}

.qwery-title-block-agenda,
.qwery-text-block-agenda {
    color: #000;
    font-family: 'Outfit', sans-serif;
}

.qwery-title-block-agenda {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 20px !important;
}

.qwery-text-block-agenda {
    font-weight: 600;
    margin-left: 8px;
    line-height: 1;
    font-size: 14px;
}

.qwery-agenda-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 172px;
    padding: 7px 12px 5px;
    background: #fff;
    color: #000;
    border: 1px solid #f2f2f2;
    border-radius: 3px;
    text-decoration: none;
    font-size: 15px;
    box-shadow: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.qwery-agenda-btn:hover {
    background-color: var(--e-global-color-blocksy_palette_1);
    color: #fff;
}

/* Banière dynamique Homepage */
.qwery-flash-banner-wrapper {
    background: black;
    overflow: hidden;
    padding: 22px 0;
}

.qwery-flash-separator {
    align-self: center;
    width: 20px;
    height: 2px;
    background-color: white;
    margin: 0 10px;
    flex-shrink: 0;
}

.qwery-flash-banner {
    position: relative;
    width: 100%;
}

.qwery-flash-marquee {
    overflow: hidden;
    width: 100%;
}

.qwery-flash-track {
    display: flex;
    width: max-content;
    animation: scroll-left 20s linear infinite;
}

.qwery-flash-item {
    flex: 0 0 60vw; /* 1 élément par vue sur mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size:26px;
    text-decoration: none;
    padding: 0 20px;
}

.qwery-flash-item:hover {
    color: #FFCD00 !important;
}

/* Tablette : 2 éléments par écran */
@media (min-width: 769px) and (max-width: 1024px) {
    .qwery-flash-item {
        flex: 0 0 50vw;
    }
}

/* Desktop : 3 éléments par écran */
@media (min-width: 1025px) {
    .qwery-flash-item {
        flex: 0 0 33.333vw;
    }
}

@media (max-width: 768px) {
    .qwery-flash-track {
        animation-duration: 30s; /* plus lent sur mobile */
    }
}

.qwery-flash-icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    object-fit: contain;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause au survol */
.qwery-flash-marquee:hover .qwery-flash-track {
    animation-play-state: paused;
}
