/* ===================== 
   VALLABREGUES COLORS
   ===================== */
/*
    --- 1st theme
    #D1D700 (vert)
    #84294E (violet)
    #535A68 (gris)

    --- 2nd theme
    #0570B3 (bleu)
    #F7E91E (jaune)
*/

/* ===================== 
   FILTER
   ===================== */

div.filter {
    position: relative;
}

/* Trick to add a chevron in a Select list */
div.filter:after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #F2EAE7; 
    position: absolute;
    right: 15px;
    top: 0px;
    height: 50px;
    padding-top: 15px;
    padding-left: 15px;
    pointer-events: none;
}

div.filter select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 15px;
    margin-bottom: 30px;
    letter-spacing: 0.4px;
    color: #F2EAE7;
    background-color: #535A68;
    border-left: 10px solid #84294E;   
    border: 1px solid rgba(0, 0, 0, 0.2);
    outline: none;
}

div.filter:hover:after {
    color: #D1D700;
}

select::-ms-expand {
    display: none;
}

/* ===================== 
   LIST PAGE STYLES
   ===================== */

h1 {
    margin: 0 0 20px;
    border-bottom: 1px solid #84294E;
}

nav h2 {
    color: #fff;
    font-size: 14px;
    margin: 0;
    padding: 10px 2px 15px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    background-color: rgba(0, 0, 0, 0.2);
}

article h3 {
    margin: 0 0 15px;
    font-size: 22px;
    color: #84294E;
    line-height: 28px;
}

.container.container-row {
    -webkit-justify-content: flex-start!important;
    -ms-flex-pack: start!important;
    justify-content: flex-start!important;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

nav.sub-menu {
    width: 200px;
    margin-right: 30px;
    background-color: #535A68;
    color: #fff;
    border-top: 10px solid rgba(0, 0, 0, 0.2);
    border-bottom: 10px solid rgba(0, 0, 0, 0.2);
}

nav.sub-menu ul {
    padding: 0;
    margin: 0;
}

nav.sub-menu ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

nav.sub-menu ul li a {
    text-decoration: none;
    color: #fff;
    display: block;
    font-size: 13px;
    line-height: 21px;
    text-align: center;
    padding: 5px 2px;
}

nav.sub-menu ul li.selected a,
nav.sub-menu ul li a:hover {
    color: #D1D700;
}

#page-list {
    flex: 1;
    min-height: 100px;
}

article {
    min-height: 150px;
    margin-bottom: 25px;
}

article:last-child {
    margin-bottom: 0px;
}

article.container-row {
    -webkit-justify-content: flex-start!important;
    -ms-flex-pack: start!important;
    justify-content: flex-start!important;
}

p.event-date {
    font-size: 18px;
    margin-top: -15px;
    font-weight: bold;
}

.item-thumb,
.thumb {
    width: 230px;
    height: 150px;
}

.item-thumb {
    margin-right: 20px;
    background-color: #e3e7ed;
}

.item-details {
    flex: 1;
}

.item-content span.activity {
    color: #D1D700;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 800;
    display: none; /* permet de filtrer par activité */
}

.item-content p {
    font-size: 15px;
    margin: 0;
}

.thumb {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* LAPTOP M */
@media only screen and (max-width: 1280px) {
    .item-thumb,
    .thumb {
        width: 205px;
        height: 135px;
    }
}

/* LAPTOP S */
@media only screen and (max-width: 1024px) {
    nav.sub-menu {
        width: 185px;
        margin-right: 20px;
    }

    article {
        min-height: 105px;
    }

    article h3 {
        font-size: 19px;
        margin: -6px 0 10px;
    }

    p.event-date {
        font-size: 16px;
        margin-top: -13px;
    }

    article .item-content {
        font-size: 14px;
    }
    
    .item-thumb,
    .thumb {
        width: 160px;
        height: 105px;
    }

    .item-thumb {
        margin-right: 15px;
    }
}

/* TABLET */
@media only screen and (max-width: 768px) {
    section h1 {
        font-size: 1.8em;
    }

    .container.container-row {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    nav.sub-menu {
        width: 100%;
        margin-right: 0px;
        margin-bottom: 20px;
        border-left: 10px solid rgba(0, 0, 0, 0.2);
        border-right: 10px solid rgba(0, 0, 0, 0.2);
        border-top: none;
        border-bottom: none;
    }

    nav.sub-menu h2 {
        display: none;
    }

    nav.sub-menu ul li {
        padding: 2px 5px;
        display: inline-block;
        border-right: 1px solid rgba(0, 0, 0, 0.2);
        border-bottom: none;
    }

    div.filter:after {
        height: 40px;
        top: -5px;
    }

    div.filter select {
        height: 40px;
        font-size: 15px;
    }

    article {
        min-height: 80px;
    }

    article h3 {
        font-size: 18px;
        margin: -6px 0 5px;
    }

    p.event-date {
        font-size: 15px;
        margin-top: -8px;
    }

    article .item-content {
        font-size: 13px;
    }

    .item-thumb,
    .thumb {
        width: 120px;
        height: 80px;
    }
}

/* MOBILE */
@media only screen and (max-width: 500px) {
    article .item-content {
        word-break: break-all;
        max-height: 72px;
        overflow: hidden;
    }
}