/* Styles pour les pages d'articles */



/* Navigation boutons */
.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 20px auto;
    padding: 10px 0;
}

.nav-button {
    padding: 15px 25px;
    border-radius: 30px;
    font-family: 'Red Hat Display', cursive;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text-light);
    transition: all 0.3s ease;
    text-align: center;
    outline: 1px solid var(--color-outline);
}

.prev-button {
    background-image: var(--color-purple);
}

.home-button {
    background-image: var(--color-green);
}

.next-button {
    background-image: var(--color-orange);
}

.nav-button:hover {
    transform: translateY(-3px);
    /*box-shadow: 0 4px 8px var(--color-shadow);*/
}

.nav-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Revenir aux couleurs de fond originales pour html et body */
html, body {
    background-color: var(--color-background); /* Couleur de fond par défaut du site (gris) */
}



/* Les boutons de navigation doivent être dans la même couleur que le header */
.article-navigation {
    background-color: var(--color-background);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    width: 80%; /* Même largeur que le contenu de l'article */
    margin: 0 auto;
}

/* Wrapper pour le contenu de l'article avec fond blanc */
.article-wrapper {
    background-color: #f7f7f7;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 100px;
    margin-top: 20px; /* Espace pour séparer des boutons */
}

/* Conteneur principal de l'article */
.article-container {
    width: 80%;
    margin: 0 auto;
    padding-bottom: 100px;
}

.article-content {
    /* Même couleur que le body, pas besoin de la redéfinir */
    border-radius: 10px;
    overflow: hidden;
    /* Suppression du box-shadow */
}

/* Média en pleine largeur */
.article-media {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.article-media iframe {
    width: 100%;
    height: 500px;
    display: block;
    border: none;
}

.article-media img {
    width: 100%;
    height: auto;
    display: block;
}

/* Titre et contenu */
.article-title {
    color: var(--color-text-dark);
    font-size: 2.5em;
    padding: 30px 40px 20px;
    margin: 0;
}

.article-description {
    padding: 0 40px 40px;
}

.article-description p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.article-description strong {
    color: var(--color-text-strong);
    font-weight: 600;
}

/* Métadonnées de l'article */
.article-meta {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactement 4 colonnes de largeur égale */
    gap: 20px;
}

.meta-section h3 {
    color: var(--color-aprop);
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.meta-section p {
    margin: 0;
    font-size: 0.95em;
}

/* Style pour les sections qui doivent prendre toute la largeur */
.meta-section.full-width {
    grid-column: 1 / -1; /* S'étend sur toutes les colonnes */
}

/* Responsive design */
@media screen and (max-width: 992px) {
    .article-title {
        font-size: 2.2em;
        padding: 25px 30px 15px;
    }
    
    .article-description {
        padding: 0 30px 30px;
    }
    
    .article-media iframe {
        height: 400px;
    }
    
    /* Passer à 2 colonnes en dessous de 992px */
    .article-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    
   /* header {
        height: 100%;
        transform: translateY(-100px);
    }
    
    .header-center {
        width: 85%;
        height:500px;
    }*/

    
    .article-navigation,
    .article-container {
        width: 90%;
    }
    
    .nav-button {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .article-title {
        font-size: 1.8em;
        padding: 20px 20px 10px;
    }
    
    .article-description {
        padding: 0 20px 20px;
    }
    
    /* Passer à 1 colonne en dessous de 768px */
    .article-meta {
        grid-template-columns: 1fr;
    }
    
    .article-media iframe {
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    /*header {
        height: 100%;
         transform: translateY(-100px);
    }
    
    .header-center {
        width: 90%;
        height:500px;
        
    }*/
    
    .article-navigation {
        /* Garde le flex-direction row pour maintenir les boutons sur une ligne */
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 5px;
    }
    
    .nav-button {
        /* Ajuste la taille et le padding pour que les boutons restent sur une ligne */
        font-size: 0.8em;
        padding: 10px 8px;
        white-space: nowrap;
        flex: 1;
    }
    
    /* Ajoutez ces styles à la fin de votre article-style.css */

/* Styles pour le header avec animation Rive */
header {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background-color: var(--color-background);
    display: flex;
    justify-content: center;
    align-items: center;
}


.header-center {
    width: 75%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 820px;
    position: relative;
}

#riveCanvas {
    
    display: block;
}

/* Image de secours */
.respimg {
    display: none;
    padding: 40px 20px;
    text-align: center;
}

.respimg svg {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}
