

/* Cartes Actu */
.carte-actu {
    display: flex;
    flex-direction: column;
    
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);

    & a {
        text-decoration: none;
    }
}

.carte-actu-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categorie-actu {
    position: relative;
    top: -60px;
    width: fit-content;
    left: 10px;
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    padding: 4px 8px;
    font-size: .75rem;
    font-weight: bold;
    z-index: 10;
    border-radius: 2px;
    margin-left: 0 !important;
}

.carte-actu:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(153, 33, 33, 0.1);
    filter: brightness(1.03);
}

.texte-actu {
    display: flex;
    flex-direction: column;
    height: 300px;
    align-content: space-around;
    flex-wrap: wrap;
    justify-content: space-between;
width: 100%;
    & h3 {
        position: relative;
        top: -40px;
        margin-left: 0 !important;
    }

    & .wp-block-group {
        width: 100%;
    }
}

.titre-projet-carte {
    line-height: 32px;
}
.is-content-justification-space-between {
    display: flex;
    justify-content: space-between;
}

.fleche-card-home {
    position: relative;
    top: -5px;
}

.projet-titre-home{
    top: 0px!important;}

/* Cartes Événements */
.carte-event {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
    padding: 1.25rem;
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);

    & h3 {
        position: relative;
        top: -40px;
    }
}

.categorie-event {
    position: relative;
    top: -73px;
    left: 10px;
    width: fit-content;
    font-weight: 400;
    line-height: 1.375rem;
    letter-spacing: -.00813rem;
    z-index: 10;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    background-color: var(--wp--preset--color--white) !important;

    & a {
        text-decoration: none;
        color: var(--wp--preset--color--black);
    }
}

.carte-event:hover {
     transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(153, 33, 33, 0.1);
    filter: brightness(1.03);
}

.texte-event {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.event-preview {
    color: var(--wp--preset--color--accent-5, #777);
    font-family: "Open Sans";
    font-size: 1.125rem;
    line-height: 1.75rem;
}

/* Membres */
.colonne {
    display: flex;
    flex-direction: column;
    height: 310px !important;
}

.col-boutons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.addr-and-sub {
    align-items: flex-end;
}


/* Ressources */
.carte-ressource {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1rem;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.carte-ressource .wp-block-cover__inner-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.carte-ressource:hover {
      transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(153, 33, 33, 0.1);
    filter: brightness(1.03);
}

/* Badges */
.reserve-aux-membres,
.category-id-6,
.category-id-24 {
    background-color: var(--wp--preset--color--accent-2) !important;
    padding: 5px 10px;
    color: var(--wp--preset--color--white) !important;
    width: fit-content;

    & a {
        color: var(--wp--preset--color--white) !important;
    }
}

/* Share icon */
.share-icon {
    border: 2px solid var(--wp--preset--color--accent-2);
    text-align: center;
    padding: 0;
    font-size: clamp(14px, .875rem + ((1vw - 3.2px) * .392), 18px);
}

.share-icon:hover {
    background: var(--wp--preset--color--accent-3);
    color: var(--wp--preset--color--white) !important;
    transition: all .3s ease-in-out;
    border: 2px solid var(--wp--preset--color--accent-3);
}

.share-icon a {
    position: relative;
    color: var(--wp--preset--color--accent-2) !important;
    width: fit-content !important;
    border: none !important;
}

.share-icon:hover a {
    color: var(--wp--preset--color--white) !important;
}

.share-icon:hover a::before {
    color: var(--wp--preset--color--white) !important;
    background-image: url('../images/share-white.svg');
}

.share-icon a::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('../images/share-red.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 16px;
    left: -13px;
}

.social-box {
    margin-top: 20px;
}

.social-btn {
    display: flex;
    gap: 10px;
}

.sbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: none;
    background: #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: background .3s ease;
}

.sbtn:hover {
    background: #ddd;
}

/* Petits cas divers */
.quotat-message {
    background: var(--wp--preset--color--accent-2);
    padding: 5px 15px;
    color: var(--wp--preset--color--white);
}

.post-type-archive-video h3 {
    top: 0;
}

.titre_videos{
    min-height: 100px;
}

.titre_event_home {
    min-height: 170px;
   
}
.date-and-bout {
    width: 100%;
    justify-content: space-between;
}
.readmore_projets {
    position: absolute;
    bottom: 0px;
    right: 5px;
}
.wp-block-post-terms a[href*="home-page"] {
    display: none !important;
}

/*
carte modèle actualité*/
.carte-actu-article {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-bottom: 20px;
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);

    & a {
        text-decoration: none;
    }
}

.carte-actu-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categorie-actu-article {
    position: relative;
    top: -60px;
    width: fit-content;
    left: 10px;
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    padding: 4px 8px;
    font-size: .75rem;
    font-weight: bold;
    z-index: 10;
    border-radius: 2px;
    margin-left: 0 !important;
}

.carte-actu-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .1);
    filter: brightness(1.03);
}

.texte-actu-article {
    display: flex;
    flex-direction: column;
    height: auto;
    align-content: space-around;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
    

    & h3 {
        position: relative;
        top: -40px;
        margin-left: 0 !important;
    }

    & .wp-block-group {
        width: 100%;
    }
}

.carte-actu__meta{
    display: flex;
        justify-content: space-between;
            width: 100%;
                align-items: center;
}

.titre-projet-carte-article {
    line-height: 32px;
}

div#is-ajax-search-result-58 {
    background: red;
   
}

.boucle-trio h3{
            position: relative;
                top: -40px;
                margin-left: 0 !important;
                text-wrap: pretty;
                max-width: 80%;
}

/* COntact */
.img-mail ,
.img-tel {
    display: flex;
        align-items: center;
        align-content: center;
    
}


/*single-membre*/
.single-membre .wp-block-post-featured-image :where(img) {
    box-sizing: border-box;
    height: auto;
    max-width: max-content;
    vertical-align: bottom;
    
}

/* remouve the red overlay on image */
span.wp-block-post-featured-image__overlay
{
    opacity: 0!important;
    transition: all 500ms cubic-bezier(0.935, 1.650, 0.370, 0.800); /* custom */
}

.carte-ressource span{
    opacity: 0!important;
    transition: all 500ms cubic-bezier(0.935, 1.650, 0.370, 0.800); /* custom */
}
.carte-actu:hover span.wp-block-post-featured-image__overlay,
.card-actu:hover span.wp-block-post-featured-image__overlay,
.card-newsletter:hover span.wp-block-cover__background,
.carte-event:hover span.wp-block-post-featured-image__overlay,
.carte-ressource:hover span
{
   opacity: .4!important;
    transition: all 500ms cubic-bezier(0.935, 1.650, 0.370, 0.800); /* custom */
}
