div#page {
    background-color: #fff;
}

#content{
    background-color:#0b9876 !important;
}

.ast-separate-container #primary{
    margin:0 0;
}

.entry-content h2, .entry-content h3{
    color:#ecffcf !important;
}

#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Largeur de la barre */
    height: 5px; /* Hauteur de la barre */
    background-color: #f3f3f3; /* Couleur de fond de la barre */
    z-index: 99; /* S'assure que la barre est au-dessus des autres éléments */
}

/* La barre de progression elle-même */
#progress-bar {
    height: 100%;
    width: 0; /* Largeur initiale à 0 */
    background: linear-gradient(to right, #0b9876, #00373d); /* Dégradé horizontal */
}

.ast-container{
    max-width:unset !important;
    padding:0;
    margin:auto
}

header,.entry-content{
    max-width: 1440px;
    margin:auto;
    padding: 0 5%;
    width:100%
}

article {
    padding: 0 !important;
    background-color: #00373d !important;
}

.heroBannerArticle{
    background-color:#0b9876;
    height:90vh;
    display:flex;
    flex-direction:column;
    justify-content: center;
}

.insideHeader, .insideHeaderExcerpt{
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;    
}

.entry-content[ast-blocks-layout]>* {
    max-width:1440px !important;
    margin-left: auto;
    margin-right: auto;
}

div.entry-header .entry-title {
    font-weight: 500;
    font-size: 32px;
    font-size: 2.2em;
    text-align: left;
    font-family: 'arial_blackregular';
    color:#ecffcf;
    margin-bottom: 0;
}

.theExcerpt{
    color:#fff;
    font-weight:600;
    margin-top:50px;
    margin-bottom: 50px;
}

p.tip {
    font-style: italic;
    color: #fff;
    font-size: 0.8em;
}

.wp-block-heading{
    font-family: 'arial_blackregular';
}

.hero_img {
    display: block;
    box-shadow: unset !important;
    max-width:80%;
    border-radius:25px;
    max-width: 570px;
}


.containerTitleCategory{
    display: flex;
    flex-direction: column;
    max-width: 50%;
}

.containerTitleCategory p:not(.tip){
    color:#fff;
    margin-top:30px;
}

.category-name {
    display: inline-block;
    background-color: #00373d;
    color: #fff;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 25px;
    margin-bottom: 10px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom:40px;
}

.containerLinkToWebsite{
    display: flex;
    justify-content: center;
}

.author-info {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
}

.author-avatar {
    border-radius: 50%; /* Rend l'avatar circulaire */
    width: 64px !important; /* Largeur de l'avatar */
    height: 64px; /* Hauteur de l'avatar */
    margin-right: 10px; /* Espace entre l'image et le texte */
}

.author-details {
    display: flex;
    flex-direction: column; /* Affiche le nom et la date en colonne */
    justify-content: space-between;
}

.author-name {
    font-weight: bold; /* Style pour le nom de l'auteur */
    color:#fff
}

.publication-date {
    font-size: 0.9em; /* Taille de la date de publication */
    color: #fff; /* Couleur de la date de publication */
}

#linkToNextAndPrevious{
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto; 
    margin-top:40px   
}

#linkToNextAndPrevious a{
    color:#ecffcf !important
}

.linkToWebsite{
    margin: auto;
    margin-top: 50px;
    display: block;
    text-align: center;
    background-color: #0b9876;
    padding: 10px 40px;
    border-radius: 25px;
    color: #fff;
    font-family: 'arial_blackregular';
    box-shadow: 5px 10px #00373d !important;
}

.linkToWebsite:hover{
    color: #fff;
    box-shadow: unset !important;
}

/* Barre de partage */
.social-share-bar {
    margin:auto;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 30px 5% 0 5%;
    max-width: 1440px !important;
    border-top: 3px solid #fff;
    text-align: center;
}

.social-share-bar p {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #00373d;
    font-family: 'arial_blackregular';
}

/* Icônes de réseaux sociaux */
.social-share-bar a {
    display: inline-block;
    margin: 0 10px;
    color: #00373d;
}

.social-share-bar i{
    font-size:3em;
}

/* Conteneur principal pour les articles liés */
.related-articles-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    margin-top: 40px;
    margin-bottom: 80px;
    border-top: 3px solid #fff;
}

.related-articles-container h2 {
    font-size: 1.8em;
    margin: 30px auto;
    color: #00373d;
    font-family: 'arial_blackregular';
    text-align: center;
}

/* Conteneur des articles */
.related-articles {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px; /* Espace entre les cartes */
}

/* Styles pour chaque carte */
.related-article-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 1 1 calc(33.333% - 20px); /* Trois cartes par ligne avec espace */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    max-width: 33%;
}

.related-article-card:hover {
    transform: translateY(-5px); /* Légère élévation au survol */
}

/* Rendre toute la carte cliquable */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%; /* Assure que toute la carte est cliquable */
}

/* Image de la carte */
.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contenu de la carte */
.card-content {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    margin: 0 0 10px;
    color: #00373d; /* Couleur personnalisée */
}

.card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/***************************************************************** MEDIA QUERY ****************************************************/

@media screen and (max-width:767px){
    .insideHeader, .insideHeaderExcerpt,#linkToNextAndPrevious{
        max-width: 1440px !important;
        width: 100% !important;
    }

    .insideHeader{
        flex-direction:column;
    }

    .containerTitleCategory{
        max-width: 100% !important;
        width:100% !important
    }

    .ast-separate-container #content .ast-container {
        padding-left: 0;
        padding-right: 0;
    }

    .related-articles {
        flex-direction: column;
    }
    
    .related-article-card{
        max-width:100%;
    }

    .insideHeader img {
        width: 100%;
    }

    .heroBannerArticle {
        justify-content: flex-start;
    }
    

}

@media screen and (max-width:1259px){
    .ast-builder-footer-grid-columns.site-primary-footer-inner-wrap.ast-builder-grid-row {
        flex-direction: column;
        display: flex;
        gap: 50px;
        align-items: center;
    }

}