/* Styles pour les Infos Travaux */

/* Section Infos Travaux sur la page d'accueil - reprend les styles des actualités */
#infos-travaux-container {
    display: flex;
    max-width: 100%;
    justify-content: center;
}

#infos-travaux-container .actu-content {
    max-width: 100%;
    position: relative;
    margin-bottom: 20px;
}

@media (min-width: 600px) {
    #infos-travaux-container .actu-content {
        width: 365px;
    }
    
    #infos-travaux-container .actu-content:first-child {
        margin-left: 15px;
        margin-right: 10px;
    }
}

@media (min-width: 900px) {
    #infos-travaux-container .actu-content {
        width: 490px;
        margin-right: 0;
        margin-left: 0;
    }
    
    #infos-travaux-container .actu-content:first-child {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (min-width: 1200px) {
    #infos-travaux-container .actu-content {
        width: 514px;
        margin-bottom: 0px;
    }
    
    #infos-travaux-container .actu-content:first-child {
        margin-left: 15px;
        margin-right: 81px;
    }
}

/* Styles pour les thumbnails des infos travaux sur l'accueil */
#infos-travaux-container .actu-content .thumbnail {
    width: 100%;
    height: 248px;
    background: #f2f2f2;
    overflow: hidden;
}

@media (min-width: 600px) {
    #infos-travaux-container .actu-content .thumbnail {
        height: 240px;
    }
}

@media (min-width: 900px) {
    #infos-travaux-container .actu-content .thumbnail {
        height: 324px;
    }
}

@media (min-width: 1200px) {
    #infos-travaux-container .actu-content .thumbnail {
        width: 514px;
        height: 340px;
    }
}

#infos-travaux-container .actu-content .thumbnail img {
    height: 100%;
    object-fit: cover;
}

/* Positionnement de la catégorie sur l'accueil */
#infos-travaux-container .actu-content .category {
    margin-top: -30px;
}

#infos-travaux-container .actu-content .category:before {
    content: '';
    height: 50px;
    width: 46px;
    display: block;
    margin: auto;
    margin-top: -55px;
    right: calc(50% - 24px);
    position: absolute;
}

#infos-travaux-container .actu-content .category p {
    background: #fff;
    font-size: 23px;
    font-size: 1.4375rem;
    font-family: "fredoka_oneregular";
    text-align: center;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 177px;
    padding-top: 5px;
    padding-bottom: 5px;
    position: relative;
}

/* Styles pour les métadonnées et contenu sur l'accueil - reprend les styles des actualités */
#infos-travaux-container .meta {
    font-weight: 100;
    font-size: 10px;
    font-size: 0.625rem;
}

#infos-travaux-container .meta span {
    display: inline-block;
    color: #e74c3c;
    margin-left: 30px;
    font-weight: bold;
}

#infos-travaux-container .content {
    padding: 0 25px;
    font-size: 13px;
    font-size: 0.8125rem;
    font-weight: 100;
}

@media (min-width: 900px) {
    #infos-travaux-container .content {
        padding: 0 50px;
        min-height: 210px;
    }
}

#infos-travaux-container .content a {
    font-size: 10px;
    font-size: 0.625rem;
    font-weight: 500;
    color: #595358;
    text-decoration: none;
}

#infos-travaux-container .content h2 {
    color: #595358;
    display: block;
    margin: 0;
    font-size: 23px;
    font-size: 1.4375rem;
}

/* Section mise en avant travaux - duplique la section mise-en-avant */
.home #mise-en-avant-travaux {
    background: url("../img/default-travaux.jpg");
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 50px;
}

@media (min-width: 900px) {
    .home #mise-en-avant-travaux {
        background-size: cover;
        height: 520px;
        margin-top: 60px;
    }
}

.home #mise-en-avant-travaux #mit-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

@media (min-width: 600px) {
    .home #mise-en-avant-travaux #mit-content {
        width: 514px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (min-width: 900px) {
    .home #mise-en-avant-travaux #mit-content {
        width: 500px;
        position: absolute;
        left: 0; /* Carte à gauche au lieu de droite */
        bottom: -25%;
    }
}

.home #mise-en-avant-travaux #mit-content .content {
    background: #fff;
    padding: 25px;
}

@media (min-width: 900px) {
    .home #mise-en-avant-travaux #mit-content .content {
        padding: 50px;
    }
}

.home #mise-en-avant-travaux #mit-content:before {
    content: '';
    height: 50px;
    width: 46px;
    position: absolute;
    top: 5px;
}

@media (min-width: 900px) {
    .home #mise-en-avant-travaux #mit-content:before {
        top: -50px;
    }
}

.home #mise-en-avant-travaux #mit-content .category {
    display: inline-block;
    margin: 0 auto;
    background: #fff;
    padding: 5px 45px;
    font-size: 23px;
    font-size: 1.4375rem;
    font-family: "fredoka_oneregular";
    margin-top: 10px;
    margin-bottom: -20px;
    z-index: 999;
    color: #e74c3c;
}

/* Styles pour le contenu de la mise en avant travaux */
.home #mise-en-avant-travaux .meta {
    font-weight: 100;
    font-size: 10px;
    font-size: 0.625rem;
}

.home #mise-en-avant-travaux .meta span {
    display: inline-block;
    color: #e74c3c;
    margin-left: 30px;
    font-weight: bold;
}

.home #mise-en-avant-travaux .content h2 {
    color: #595358;
    display: block;
    margin: 0;
    font-size: 23px;
    font-size: 1.4375rem;
}

.home #mise-en-avant-travaux .content a {
    font-size: 10px;
    font-size: 0.625rem;
    font-weight: 500;
    color: #595358;
    text-decoration: none;
}

/* Couleur spécifique pour les infos travaux */
.post-type-archive-infos-travaux .category[data-picto="travaux"],
.post-type-archive-infos-travaux .category-post[data-picto="travaux"],
.single-infos-travaux .category[data-picto="travaux"],
.single-infos-travaux .category-post[data-picto="travaux"],
#infos-travaux-container .category[data-picto="travaux"] {
    color: #e74c3c !important;
}

/* Page archive des infos travaux - reprend les styles des actualités */
.post-type-archive-infos-travaux .page-title {
    color: #e74c3c;
}

/* Styles pour la page d'archive - reprend exactement les styles des actualités */
.post-type-archive-infos-travaux .post {
    margin-bottom: 4rem;
}

.post-type-archive-infos-travaux .post-thumbnail {
    background-color: #f2f2f2;
    position: relative;
    min-height: 100px;
}

@media (min-width: 600px) {
    .post-type-archive-infos-travaux .post-thumbnail {
        min-height: 200px;
    }
}

@media (min-width: 1200px) {
    .post-type-archive-infos-travaux .post-thumbnail {
        width: 514px;
    }
}

.post-type-archive-infos-travaux .category-post {
    position: absolute;
    left: calc(50% - 88.5px);
    margin-top: -55px;
    width: 177px;
}

.post-type-archive-infos-travaux .category-post:before {
    content: '';
    height: 50px;
    width: 46px;
    display: block;
    margin: auto;
}

.post-type-archive-infos-travaux .category-post p {
    background: #fff;
    font-size: 23px;
    font-size: 1.4375rem;
    font-family: "fredoka_oneregular";
    margin-top: 5px;
    padding: 10px;
    text-align: center;
    margin-bottom: 1rem;
    color: #e74c3c;
}

/* Styles pour les titres et métadonnées - reprend les styles des actualités */
.post-type-archive-infos-travaux .post .entry-header .entry-meta {
    font-size: 15px;
    font-size: 0.9375rem;
    font-weight: 300;
}

.post-type-archive-infos-travaux .post .entry-header .entry-title {
    margin-top: 10px;
    text-align: left;
    font-family: "fredoka_oneregular";
    font-size: 23px;
    font-size: 1.4375rem;
    line-height: 29px;
}

.post-type-archive-infos-travaux .post a {
    color: #595358;
}

.post-type-archive-infos-travaux .post .entry-header .entry-meta span {
    display: inline-block;
    color: #e74c3c;
    margin-left: 30px;
    font-weight: bold;
}

/* Page single des infos travaux */
.single-infos-travaux .page-title {
    color: #e74c3c;
}

.single-infos-travaux .category-post[data-picto="travaux"] p {
    color: #e74c3c;
}

/* Pagination pour les infos travaux */
.post-type-archive-infos-travaux #pagination {
    margin-top: 2rem;
}

.post-type-archive-infos-travaux #pagination a {
    color: #e74c3c;
}

.post-type-archive-infos-travaux #pagination .current {
    color: #e74c3c;
    font-weight: bold;
}
.infos-travaux .entry-content .entry-title,
.infos-travaux .entry-content .entry-title a {
    text-align: start;
    color: #595358 !important;
    text-decoration: none;
    font-weight: 500;
    font-family: "fredoka_oneregular";
    font-size: 23px;
    line-height: 29px;
}
.infos-travaux .entry-content p {
    color: #595358;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    line-height: 1.5;    
    text-decoration: none;
    font-weight: 500;
}