/*

Theme Name: CRHA - Elementor Child

Theme URI: https://github.com/

Description: Theme dédié au site CRHA

Author: Jeremy Clerc

Author URI: https://www.jeremyclerc.fr

Template: hello-elementor

Version: 1.0.1

*/


/* Gestion de page full theme custom */
.crha_containter {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

.crha_content {
    background-color: #fff;
    max-width: 1100px;
    width: 100%;
    padding: 3rem 2rem 7rem 2rem;
}

/* TITLE */
.crhah_main_title {
    display: flex;
    justify-content:space-between;
    align-items: center;
}

.crhah_main_title h1 {
    text-transform: uppercase;
    font-size: 2.4rem;
}



/* BOUTONS */
.btn {
    border : 2px solid #000;
    font-weight: 600;
    padding: 5px 10px;
    margin: 0;
    position: relative;
    transition-duration: 0ms !important;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.57) !important;
    line-height: 2.2rem;
}

.btn a span, .btn a span span {
    color: inherit !important;
}

.btn:hover {
    top: 1px;
    left: 1px;
    box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.8);
}

.btn:active {
    top: 4px;
    left: 4px;
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);
}

.btn.niv1,
.btn.niv1:visited {
    color: #000 !important;
    background-color: #fff !important;
    border-color: #000 !important;
}

.btn.niv1-invert,
.btn.niv1-invert:visited {
    color: #FFF !important;
    background-color: #000 !important;
    border-color: #000 !important;
}

.btn.niv2,
.btn.niv2:visited {
    color: #BF0404 !important;
    background-color: #fff !important;
    border-color: #BF0404 !important;
}

.btn.niv2-invert,
.btn.niv2-invert:visited {
    color: #FFF !important;
    background-color: #BF0404 !important;
    border-color: #BF0404 !important;
}

/* HOME */
.cta_home div {
    display: flex;
    row-gap: 20px;
    position: relative;
    transition-duration: 0ms;
}

.cta_home a {
    padding: 5px 15px;
    font-size: 1.1rem;
}

/* PROGRAMME */

.crha_programme {

}
/* FILTRES */

#filtres-evenements input[type=submit] {
    display: none;
}
.crhah_filtres {
    margin : 30px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    column-gap: 20px;
}

.bc_filtres_droite {
    display: flex;
    flex-direction: row;
    justify-content: end;
    column-gap: 20px;
    width: 50%;
}

.crha_bc_filtre {
    display: flex;
    flex-direction: column;
    row-gap: 0px;
    width: 50%;
}

.crha_bc_filtre h5 {
    font-size: 0.9rem;
}

#selecteur_date {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

#selecteur_date a {
    border: 1px solid #000;
    border-right-width: 0px;
    padding: 9px 15px;
    background-color: #fff;
    color: #000;
    display: block;
    font-weight: 400;
    text-transform: uppercase;
}
#selecteur_date li:last-child a {
        border-right-width: 1px;
}

#selecteur_date a:hover {
    color: #BF0404;
    border-color: #BF0404;
}
#selecteur_date .selected {
    background-color: #BF0404;
    color: #fff;
    font-weight: 600;
}

#selecteur_date .selected:hover {
    background-color: #BF0404;
    color: #fff;
}

/* SLECTEUR Format / lieux */
.ms-wrapper { 
    position: relative; 
    display: inline-block; 
    width: 100%;
}

.ms-trigger {
    padding: 9px 32px 9px 12px;
    border: 1px solid #000;
    border-radius: 0px;
    background: #fff;
    cursor: pointer;
    /*user-select: none;*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}
.ms-trigger::after { content: '▾'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.ms-trigger.open::after { content: '▴'; }

.ms-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 100;
    padding: 6px 0;
}
.ms-dropdown.open { display: block; }

.ms-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 1rem;
}
.ms-option:hover { background: #f5f5f5; }
.ms-option.checked { font-weight: 500; }

.resutlat-vide {
    display: flex;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 80px 0;
}

/* Liste evenement du programme */
.liste-elements h2 {
    border-bottom: 1px solid #000;
    color : #000;
    padding: 10px 0;
    margin: 20px 0;
}

.liste-elements .event {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    column-gap: 20px;
    margin-bottom: 40px;
}



.liste-elements .event .infos {
    width: 20%;
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

.liste-elements .event .infos p {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 5px;
    padding: 5px 10px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    border: 0px solid #000;
    color: #000;
    margin: 0;
}

.liste-elements .event .infos .format {
    border-color:#3B985E;
    color: #3B985E;
    font-weight: 600;
    border-top-width: 1px;
}

.liste-elements .event .detail-event {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    width: 80%;
    padding-bottom: 40px;
    border-bottom : 1px solid #ddd;
}

.liste-elements .list-event .event:last-child .detail-event {
    border-bottom-width: 0px;
}

.liste-elements .event .detail-event h3 {
    padding: 0;
    margin: 0;
}

.liste-elements .event .detail-event h3 a {
    text-decoration: none;
}

.liste-elements .event .detail-event h3 a i {
    visibility: hidden;
    margin-left: 10px;
}

.liste-elements .event .detail-event h3 a:hover i {
    visibility: visible;
}

.liste-elements .event .detail-event a {
    color: #54595F;
    font-weight: 600;
    text-decoration: underline;
}

.liste-elements .event .detail-event a:hover {
    text-decoration: none;
}

.liste-elements .event .detail-event .localisation {
    color: #BF0404;
    font-weight: 600;
    margin: 0;
}

.intervenants {
    list-style-type: none;
    padding: 0;
    display: flex;
    column-gap: 10px;
}
.intervenants a {
    text-decoration: none;
    display: flex;
    align-items: center;
    column-gap: 4px;
}

.intervenants a img {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: 2px solid #3B985E;
}

.intervenants i {
    font-size: 3em;
}


.crha_infos_format_acces {
    display: flex;
}

.crhah_infos_acces {
    margin: 0px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* SPEC badge single */
.crhah_infos_acces .badge_event {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 5px;
    color: #000;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    padding : 10px 0px;

}

.crhah_infos_acces .crha_date_heure {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}
.crhah_infos_acces .crha_date_heure span {
    color: #000;
}

span.badge_event.lieux {
    color:#BF0404;
}

.crha_infos_format_acces {
    display: flex;
    flex-direction: row;
    column-gap: 10px;

}
.crha_infos_format_acces span.badge_event {
    background-color: #f0f0f0;
    font-size: 0.9rem;
    padding: 10px 15px;
}

.crha_infos_format_acces span.badge_event.format {
    color: #3B985E;
}

.crha_infos_format_acces span.badge_event.acces {
    color: #000;
}



.crha_titre_h3 {
    font-weight: 600;
    font-size: 2rem;
}
.mt10 {
    margin-top: 10px;
}
.mt20 {
    margin-top: 20px;
}
.mt50 {
    margin-top: 50px;
}

.mb50 {
    margin-bottom: 50px;
}

/* BLOC ALLER PLUS LOIN */
.crha_liens_actions_nav {
    display: flex;
    flex-direction: row;
    column-gap: 20px;
}

/* LISTE DES INTERVENANTES */

.intervenants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.intervenant {
    text-align: center;
    cursor: pointer;
    position: relative;
}

.intervenant:hover img {
    transform: scale(1.05);
}

.intervenant img {
    transition: transform 0.3s ease;
}

.intervenant a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.intervenant-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    margin-bottom: 0px;
    border: 4px solid #3B985E;
    position: relative;
}

.intervenant-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intervenant .etiquette {
    background-color: #3B985E;
    color: #fff;
    padding: 3px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    top: 68%;
}

.intervenant-nom {
    line-height: 1.2;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 20px;
}

/* INTERVENANT UNIQUE */
.crha_intervenant_unique {
    display: flex;
    flex-direction: row;
    column-gap: 20px;
    align-items: flex-start;
}

.crha_intervenant_unique .portrait {
    display: flex;
    min-width: 250px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 4px solid #3B985E;
}

.crha_intervenant_unique .portrait img {
   width: 250px;
    object-fit: cover;
}

.crha_intervenant_unique .infos .intervenant-nom {
    font-size: 1.8rem;
}

.crha_intervenant_unique .infos .fonction {
    font-size: 1.4rem;
}

.crha_intervenant_unique h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.crha_intervenant_unique .sites_web {
    padding-left: 0px;
    list-style-type: none;
}

.crha_intervenant_evenements ul {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

/* Facebook FEED */
#cff .cff-shared-link, 
#cff.cff-default-styles .cff-author {
    display: none;
}

/* Styles à appliquer lorsque la largeur de l'écran est en dessous de 768px */
@media (max-width: 768px) {
    
    .crha_content {
        padding: 2rem 1rem 6rem 1.5rem ;
    }
    .crhah_main_title {
        flex-direction: column;
    }

    .crhah_filtres {
        flex-direction: column;
        margin-top: 10px;
        margin-bottom: 40px;
    }

    .bc_filtres_droite {
        flex-direction: column;
        width: 100%;
    }

    #selecteur_date {
        flex-direction: column;
    }

    #selecteur_date a {
        border-width: 1px;
        border-bottom-width: 0px;
    }

    #selecteur_date li:last-child a {
        border-bottom-width: 1px;
    }

    .crha_bc_filtre {
        width: 100%;
    }

    .liste-elements .event {
        flex-direction: column;
        row-gap: 10px;
        font-size: 1rem;
    }

    .liste-elements .event .detail-event {
        width: 100%;
    }

    .liste-elements .event .detail-event h3 {
        font-size: 1.3rem;
    }

   .liste-elements .event .infos {
        width: 100%;
        display: flex;
        flex-direction: row;
        column-gap: 20px;
    }

    .liste-elements .event .infos p,
    .liste-elements .event .infos p.format {
        border-width: 0px;
        padding: 0;
    }

    .crhah_infos_acces {
        row-gap: 0px;
    }

    .crhah_infos_acces .crha_date_heure {
        flex-direction: column;
        row-gap: 0px;
        margin-bottom: 5px;
    }

    .crhah_infos_acces .crha_date_heure .badge_event {
        padding: 5px 10px;
    }

    .crha_infos_lieux .badge_event {
        display: block;
        padding: 5px 10px;
    }

    .crha_liens_actions_nav {
        flex-direction: column;
        row-gap: 10px;
    }

    .crhah_main_title h1 {
        font-size: 1.35rem;
    }

    .crha_liens_actions_nav a {
        text-align: center;
    }

    /* INTERVENANT UNIQUE */
    .crha_intervenant_unique {
        flex-direction: column;
        row-gap: 0px;
        justify-content: center;
        align-items: center;
    }

    .crha_intervenant_unique .portrait {
        margin-bottom: 0;
    }
    .crha_intervenant_unique .portrait img {
        width: 100%;
    }

    .crha_intervenant_unique .infos .intervenant-nom, 
    .crha_intervenant_unique .infos .fonction {
        text-align: center;
    }
    .crha_intervenant_evenements ul li a {
        display: block;
    }
}
    /* Styles à appliquer lorsque la largeur de l'écran est en dessous de 768px */
@media (max-width: 376px) {
    .intervenant .etiquette {
        top: 80%;
    }
}