/*
Theme Name:   Sullivan Enfant
Template:     sullivan
Author:       Catalyst Webdesign
Version:      1.0
Description:  Thème enfant de Sullivan
*/

.button {
    font-size: 12px;
    text-decoration: none !important;
    white-space: nowrap;
}

.button:hover {
    text-decoration: underline !important;
    background-color: #0671B8;
    color: white;
}

a:hover,
.site-nav a:hover {
    color: #0671B8;
}

svg:hover path {
    fill: #0671B8;
}

main {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding-bottom: 0 !important;
}

.wrapper {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 100px 0;
}

.site-header .custom-logo-link img {
    max-width: 200px;
    margin: 0 auto 30px auto !important;
}

.nowrap {
    white-space: nowrap;
}

.banniere {
    width: 100%;
    height: 400px;
}

#site-content {
    padding-top: 0 !important;
}

.home .entry-content,
.page-template-revuedepresse .entry-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: flex-start;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}



.entry-content section {
    width: 70%;
}

.entry-content aside {
    width: 30%;
    text-align: center;
    padding: 30px;
    border-left: 1px solid black;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media screen and (max-width: 1000px) {
    .entry-content {
        flex-direction: column;
    }

    .entry-content section {
        width: 100%;
    }

    .entry-content aside {
        width: 100%;
        border-left: 0;
        border-top: 1px solid black;
    }
}

.entry-content aside h2 {
    text-align: center;
}

.entry-content aside h3 {
    font-size: 20px;
    margin-top: 0;
}

.entry-content aside .comptesrendus {
    display: flex;
    gap: 10px;
}

.entry-content aside select {
    font-size: 12px;
    font-weight: 300;
    padding: 5px 30px 5px 10px;
}

.coord {
    font-size: 15px;
}

.coord,
    .coord * {
        text-align: center;
    }

.coord .icones {
        justify-content: center;
    }


.coord .icones {
    display: flex;
    gap: 20px;
}

#site-footer .coord {
    width: 1280px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 0;
}

#site-footer .coord .icones {
    margin-top: 20px;
}


.entry-content aside .resam img {
    display: inline;
    width: 150px;
}

/* Conteneur principal des années */
.annees-container {
    display: flex;
    flex-wrap: wrap;
    /* Les blocs années passent à la ligne si manque de place */
    gap: 50px;
    width: 100%;
    box-sizing: border-box;
}

/* Chaque bloc année */
.annees {
    display: inline-flex;
    /* Largeur auto selon contenu */
    flex-direction: column;
    width: auto;
    padding: 0 30px 30px 30px;
    background: #f7f7f7;
}

/* Titre de l'année */
.annees h3 {
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    font-size: 1.2em;
    border-bottom: 1px solid #ddd;
    color: #777;
}

/* Grille des images */
.revue-grid {
    display: grid;
    /* On utilisera jQuery pour ajuster le nombre de colonnes */
    gap: 30px;
}

/* Chaque item de la revue */
.revue-item {
    max-width: 200px;
    width: 100%;
}

.revue-item div.img {
    background-size: contain;
    background-position: top center;
    width: 200px;
    height: 300px;
    background-repeat: no-repeat;
}


.blog .split .content,
.blog .post-content-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0
}

.header-search,
.blog aside.sidebar,
.blog .post-meta,
.mobile-search-form {
    display: none !important;
}

.home .revuedepresse {
    margin-bottom: 20px;
}

.home .news {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.home .news .revuedepresse h3,
.home .news .actus h3 {
    font-size: 22px;
    font-weight: 600;
}

.home .news .revuedepresse h4,
.home .news .actus h4 {
    font-size: 18px;
    font-weight: 600;
}

.home .news .revuedepresse,
.home .news .actus {
    width: 50%;
}

.home .news .revuedepresse .button {
    margin-top: 30px;
}

@media screen and (max-width: 1000px) {

    .home .news .revuedepresse h3,
    .home .news .actus h3 {
        text-align: center;
    }

    .home .news {
        flex-direction: column;
        align-items: center;
    }

    .home .news .revuedepresse,
    .home .news .actus {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.home .overlay{
    position: fixed;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    background:rgba(0,0,0,0.8);
    z-index: 99999;
    display: none;
}

.home .popup{
    position: absolute;
    width: auto;
    height: auto;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:white;
    padding:50px;
    z-index: 999999;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:10px;
}

.home .overlay .fermer{
    position: absolute;
    width: 30px;
    height: 30px;
    top:5px;
    right:5px;
    border-radius: 50%;
    background:black;
    color:white;
   cursor:pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 15px;
    transition: .5s;
    font-weight: bold;
}

.home .overlay .fermer:hover{
    transform:rotate(180deg);
}
