/* ===================== 
   VALLABREGUES COLORS
   ===================== */
/*
    --- 1st theme
    #D1D700 (vert)
    #84294E (violet)
    #535A68 (gris)

    --- 2nd theme
    #0570B3 (bleu)
    #F7E91E (jaune)
*/

h1 {
    margin: 0 0 20px;
}

.legal h3 {
    margin-top: 0; 
    color: #D1D700;
}

h4.page-subtitle {
    position: relative;
    color: #84294E;
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-left: 18px;
}

h4.page-subtitle:before {
    top: 6px;
    left: 0px;
    content: ' ';
    height: 12px;
    display: block;
    width: 12px;
    background-color: #D1D700;
    position: absolute;
}

section ul {
    list-style-type: none;
}

section ul li {
    position: relative;
}

section ul li:before {
    top: 6px;
    left: -20px;
    content: ' ';
    height: 10px;
    display: block;
    width: 10px;
    background-color: #D1D700;
    position: absolute;
}

.container-row.empty-text {
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

p.event-date {
    font-size: 22px;
    margin-top: -15px;
    font-weight: bold;
}

article .article-content {
    max-width: 768px;
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 2 1 auto;
    -ms-flex: 2 1 auto;
    flex: 2 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
}

article .article-illustration img {
    max-width: 100%;
    margin-bottom: 20px;
    max-height: 768px;
}

article p {
    margin: 0 0 15px;
    line-height: 23px;
}

article aside.attachments {
    padding-top: 5px;
}

article aside.attachments ul li.attachment:not(:last-child) {
    margin-bottom: 5px;
}

article aside.attachments i {
    color: #84294E;
}

article aside.attachments a {
    text-decoration: underline!important;
}

article aside.images {
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
}

article aside.images ul li.image {
    margin-bottom: 5px;
    overflow: hidden;
}

article aside.images ul li.image:last-child {
    margin-bottom: 0px;
}

article aside.images,
article aside.images img.thumb {
    max-width: 300px;
}

article span.address {
    position: relative;
    margin-left: 22px;
}

article span.address:before {
    position: absolute;
    left: -22px;
    content: "\f3c5";
    font-family: "Font Awesome 5 Free";
    color: #84294E;
    font-weight: 600;
    font-size: 15px;
}

article span.phone {
    position: relative;
    margin-left: 22px;
}

article span.phone:before {
    position: absolute;
    left: -22px;
    content: "\f879";
    font-family: "Font Awesome 5 Free";
    color: #84294E;
    font-weight: 600;
    font-size: 15px;
}

article span.mail {
    position: relative;
    margin-left: 22px;
}

article span.mail:before {
    position: absolute;
    left: -22px;
    content: "\f1fa";
    font-family: "Font Awesome 5 Free";
    color: #84294E;
    font-weight: 600;
    font-size: 15px;
}

article .article-text a {
    text-decoration: underline;
}

article span.website {
    position: relative;
    margin-left: 22px;
}

article span.website:before {
    position: absolute;
    left: -22px;
    content: "\f015";
    font-family: "Font Awesome 5 Free";
    color: #84294E;
    font-weight: 600;
    font-size: 15px;
}

a.error-link {
    color: #D1D700;
    text-decoration: underline;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* LAPTOP L */
@media only screen and (max-width: 1440px) {
    article aside.images,
    article aside.images img.thumb {
        max-width: 250px;
    }
}

/* LAPTOP M */
@media only screen and (max-width: 1280px) {
    article .article-content {
        max-width: calc(100% - 300px);
    }

    article .article-text {
        max-width: 768px;
    }

    article aside.images, article aside.images img.thumb {
        max-width: 275px;
    }
}

/* LAPTOP S */
@media only screen and (max-width: 1024px) {
    article .article-content {
        max-width: 768px;
    }

    article aside.images {
        width: 768px;
        max-width: inherit;
        margin-top: 20px;
    }

    article aside.images img.thumb {
        max-width: 300px;
    }

    article .container-row {
        max-width: 100%;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
    }

    article aside ul.container-column {
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-align-content: stretch;
        -ms-flex-line-pack: stretch;
        align-content: stretch;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
}

/* TABLET */
@media only screen and (max-width: 768px) {
    article h1 {
        font-size: 1.8em;
    }

    p.event-date {
        font-size: 1.3em;
    }
}