/* Modèle de page classic */

.classic {
    margin-bottom: 50px;
    font-size: 1.6rem;
}


/* Contenu interne */

.classic__section {
    padding: 0 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.classic__container {
    display: flex;
    flex-direction: column;
    margin: 50px auto;
}

.classic__content {
    width: 100%;
}

.classic__section .title__content {
    color: var(--punchy-color);
}

.classic__subtitle {
    position: relative;
}

.classic__subtitle, .bottom-infos__title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--main-color);
    font-family: 'Raleway', sans-serif;
}

.classic__texte {
    margin: 20px 0;
}

.classic__texte img {
    width: 100%;
    height: auto;
}

.classic__texte p {
    margin: 10px 0;
}

.classic__texte img {
    margin: 20px auto;
    display: block;
}

.classic__photo {
    margin-top: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 300px;
}

/* Liste*/

ul, ol {
    list-style: none;
}

.classic ul li::before, .classic ol li::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 14px;
    transform: skewX(-20deg) translateY(1.5px);
    background-color: var(--main-color);
    margin-right: 12px;
}

.classic__section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.classic__texte ul > li, .classic__texte ol > li {
    margin-bottom: 7px;
}

/* Membres du conseil municipal */

.membres-cm, .membres-cmj {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    margin-top: 0;
}

.membres-cm__subtitle::before {
    content: "";
    width: 100%;
    display: block;
    margin-bottom: 50px;
    margin-top: 20px;
    height: 26px;
    background-image: url('https://saintgeorgesdubois17.com/wp-content/uploads/2021/06/Rectangle-penche-bleu-recadre-5.png');
}

.cm__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 0;
}

.cm {
    text-align: center;
    margin: 20px;
    width: 320px;
}

.cm__name {
    margin: -15px auto 5px;
}

.cm__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    max-width: 320px;
}

.cm__Maire {
    width: 100% !important;
}

/* Téléchargements et contacts en bas de page */

.bottom-infos {
    background-image: url('https://saintgeorgesdubois17.com/wp-content/uploads/2021/06/Rectangle-penche-bleu-recadre-5.png');
    padding: 40px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    background-repeat: repeat;
    margin-bottom: -50px;
}

.bottom-infos__container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.bottom-download__container, .bottom-contact__container {
    padding: 20px;
    background-color: #fff;
}

.bottom-contact__container {
    margin: 20px 0 0 0;
}

.bottom-infos__title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.bottom-infos a {
    color: var(--punchy-color);
    font-weight: 500;
    display: inline;
    border-bottom: 0;
}

.bottom-infos a:hover {
    font-weight: 600;
}

.bottom-infos__content {
    padding: 20px;
}

.bottom-download__link::before {
    background-color: var(--punchy-color) !important;
}

/*
.bottom-infos__content ul {
    list-style: disclosure-closed;
    color: var(--punchy-color);
    margin-left: 20px;
}
*/

.classic ul li::before {
    background-color: var(--punchy-color);
}

/* Ecran > 500px */
@media screen and (min-width: 500px) {
    
    /* Contenu interne */
    
    .classic__texte img {
        display: block;
        max-height: 500px;
        width: auto;
        margin: 20px auto;
    }
    
    /* Membres du conseil municipal */
    
    .cm {
        width: 290px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
}

/* Ecran > 650px */
@media screen and (min-width: 650px) {
    
    .classic__subtitle, .bottom-infos__title {
        font-size: 2.5rem;
    }
    
    .bottom-infos__container {
        display: flex;
    }
    
    .bottom-download__container {
        margin: 0 20px 0 0;
    }
    
    .bottom-contact__container {
        margin: 0 0 0 20px;
    }
    
    .bottom__container {
        width: 100%;
    }
    
}

/* Ecran > 800px */
@media screen and (min-width: 800px) {
    
    /* Contenu interne */
    
    .classic__container {
        flex-direction: row;
    }
    
    .classic__section > .classic__container:nth-child(2n+2) {
        flex-direction: row-reverse;
    }  
    
    .classic__content {
        padding: 0 30px 0 0;
    }
    
    .classic__photo {
        padding: 0 0 0 30px;
    }
}

/* Ecran > 1200px */
@media screen and (min-width: 1200px) {
    
/*
    .classic__section .classic__container:nth-child(3n+1) {
        background: green;
    }
*/

    .classic__section .classic__container:nth-child(2n+1) .classic__subtitle::before {
        content: "";
        display: block;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translate(-50%, -69%);
        background-image: url(/wp-content/uploads/2021/07/croix-bleux-tache-penche.png);
        width: 120px;
        height: 120px;
        background-size: contain;
        background-repeat: no-repeat;
        z-index: -1;
    }
    
}
