/*********************************************************************
 * 1. VARIABLES & RESET
 *********************************************************************/
:root {
    --brand-blue: #003366;      /* Ton bleu marine fétiche */
    --brand-hover: #004a94;     /* Un bleu un peu plus clair pour le survol */
    --brand-light: #f4f7f9;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --border-grey: #e0e0e0;
    --white: #ffffff;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; }
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f0f2f5; 
    margin: 0;
    padding: 0;
}

/*********************************************************************
 * 2. HEADER & MENU (MODIFIÉ : MENU BLEU MARINE)
 *********************************************************************/
.site-header {
    background-color: var(--white) !important;
    text-align: center;
    border-top: 10px solid var(--brand-blue) !important;
    padding: 40px 0 0 0 !important;
}

.site-title {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(3rem, 8vw, 5rem) !important;
    margin: 0 !important;
    text-transform: uppercase;
    font-weight: 900;
}

.site-title a { color: var(--brand-blue) !important; text-decoration: none !important; }

/* LE MENU PASSE EN BLEU MARINE */
.nav-container-custom {
    background-color: var(--brand-blue) !important; /* Fond bleu marine */
    border-top: none !important;
    border-bottom: none !important;
    margin-top: 30px;
}

#overlay ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    background-color: var(--brand-blue) !important;
}

#overlay a {
    display: block;
    padding: 18px 25px;
    color: var(--white) !important; /* Texte en blanc */
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.3rem;
    transition: 0.3s;
}

#overlay a:hover { 
    background-color: var(--brand-hover) !important; /* Survol bleu plus clair */
}

/*********************************************************************
 * 3. GRILLE D'ARTICLES (HOME)
 *********************************************************************/
.site-main-grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    clear: both;
}

.article-featured-card {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-top: 5px solid var(--brand-blue);
    margin-bottom: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.featured-image { flex: 1.5; min-height: 300px; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-content { flex: 1; padding: 30px; }
.featured-title a { color: var(--brand-blue); text-decoration: none; font-size: 2.8rem; font-weight: 700; }

.articles-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    padding: 0;
    margin: 0;
}

.article-cell {
    background: var(--white);
    border: 1px solid var(--border-grey);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
}

.article-cell:hover {
    transform: translateY(-8px);
    border-color: var(--brand-blue);
    box-shadow: 0 10px 25px rgba(0,51,102,0.15);
}

.cell-image img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid var(--border-grey); }
.cell-body { padding: 20px; flex-grow: 1; }
.cell-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin: 10px 0; line-height: 1.3; }
.cell-title a { color: var(--text-dark); text-decoration: none; }
.article-cell:hover .cell-title a { color: var(--brand-blue); }

.article-meta { 
    color: var(--brand-blue); 
    font-weight: 800;
    text-transform: uppercase; 
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 10px; 
    display: block;
}

.cell-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: auto;
    color: var(--brand-blue);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

/*********************************************************************
 * 4. PAGINATION CENTRÉE ET HARMONISÉE
 *********************************************************************/
.pagination-container {
    width: 100%;
    margin: 60px 0;
    display: flex;
    justify-content: center;
    clear: both;
}

.site-pagination b, .site-pagination a, .site-pagination span {
    padding: 10px 18px;
    margin: 0 4px;
    border: 2px solid var(--brand-blue);
    text-decoration: none;
    color: var(--brand-blue);
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.site-pagination b, 
.site-pagination span.p_current, 
.site-pagination a:hover {
    background-color: var(--brand-blue) !important;
    color: var(--white) !important;
}

/*********************************************************************
 * 5. FOOTER
 *********************************************************************/
.site-footer {
    background-color: var(--brand-blue) !important;
    color: var(--white) !important;
    padding: 60px 0 40px 0 !important;
    margin-top: 60px;
}

.footer-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 900; text-transform: uppercase; }
.footer-links a, .footer-meta a { color: #fff; text-decoration: none; opacity: 0.8; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 850px) {
    .article-featured-card { flex-direction: column; }
    #overlay a { padding: 12px 15px !important; font-size: 1.1rem !important; }
}
/*********************************************************************
 * STYLE RUBRIQUES (FAÇON )
 *********************************************************************/

.category-section {
    margin-bottom: 60px;
    clear: both;
}

/* La ligne horizontale avec le titre au milieu */
.category-header {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #003366; /* Ton bleu marine */
    line-height: 0.1em;
    margin: 40px 0 30px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.4rem;
}

/* Le ruban bleu incliné */
.category-header span {
    background-color: #003366; /* Ton bleu marine */
    color: #ffffff;
    padding: 10px 25px;
    display: inline-block;
    transform: skew(-15deg); /* L'effet incliné */
}

/* On remet le texte droit à l'intérieur du ruban incliné */
.category-header span {
    font-style: italic;
}

/* Ajustement de la grille pour ces sections */
.category-section .articles-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
}
/*********************************************************************
 * DESIGN DES RUBRIQUES & BOUTONS (STYLE PRESSE)
 *********************************************************************/

/* 1. Les titres de rubriques (Ruban bleu incliné) */
.category-header {
    width: 100%;
    text-align: center;
    border-bottom: 2px solid #003366;
    line-height: 0.1em;
    margin: 50px 0 30px;
    clear: both;
}

.category-header span {
    background-color: #003366;
    color: #ffffff;
    padding: 10px 25px;
    display: inline-block;
    transform: skew(-15deg); /* L'inclinaison */
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
}

/* 2. Le bouton "Lire l'article" */
.btn-read-more {
    display: inline-block;
    background-color: #003366; /* Bleu marine */
    color: #ffffff !important;
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 2px solid #003366;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Effet au survol du bouton */
.btn-read-more:hover {
    background-color: #ffffff;
    color: #003366 !important;
    transform: translateX(5px); /* Petit décalage vers la droite */
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

/* 3. Ajustement du bas de la carte article */
.cell-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
}

/* On s'assure que le titre de l'article est bien lisible */
.cell-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.article-cell:hover .cell-title a {
    color: #003366;
}
/*********************************************************************
 * HARMONISATION PAGE ARTICLE (SINGLE)
 *********************************************************************/

.post-single-container {
    max-width: 800px; /* Plus étroit pour une lecture confortable */
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-category-badge {
    color: #003366;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.article-main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin: 10px 0 20px;
    color: #1a1a1a;
}

.article-meta-top {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.meta-item { margin: 0 15px; }

.article-featured-image {
    margin: 30px -40px; /* Sort légèrement du cadre pour le style */
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.article-body-content {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #333;
}

.article-chapo {
    font-weight: 700;
    font-size: 2rem;
    color: #003366;
    margin-bottom: 30px;
    line-height: 1.6;
}

.article-full-text p {
    margin-bottom: 25px;
}

.article-footer {
    margin-top: 50px;
    padding-top: 20px;
}

.article-tags {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .post-single-container { padding: 20px; margin: 0; border: none; }
    .article-featured-image { margin: 20px -20px; }
}
/*********************************************************************
 * HARMONISATION COMMENTAIRES 
 *********************************************************************/

.comments-section {
    margin-top: 60px;
    border-top: 2px solid #eee;
    padding-top: 40px;
}

/* Titre "X Commentaires" */
.comments-count-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    color: #003366;
    font-size: 1.6rem;
    margin-bottom: 30px;
}

/* Liste des commentaires */
.comments-list-custom {
    list-style: none;
    padding: 0;
}

.comment-item-custom {
    margin-bottom: 25px;
}

.comment-bubble {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #003366;
    border-radius: 0 8px 8px 0;
}

.comment-meta-custom {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.comment-author-name {
    font-weight: 700;
    color: #003366;
    margin-right: 10px;
}

.comment-date-time {
    color: #888;
    font-style: italic;
}

.comment-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #333;
}

.comment-reply-link a {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #003366;
    text-decoration: none;
}

/* Formulaire */
.comment-form-container {
    background: #ffffff;
    padding: 30px;
    border: 2px solid #003366;
    margin-top: 50px;
    border-radius: 4px;
}

.comment-form-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    color: #003366;
    margin-bottom: 25px;
    text-align: center;
}

.custom-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #003366;
}

.custom-form textarea, 
.custom-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1.3rem;
}

.form-row-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.form-group-textarea { margin-bottom: 20px; }

/* Bouton Envoyer style "Lire l'article" */
.btn-submit-comment {
    background-color: #003366;
    color: #ffffff;
    border: 2px solid #003366;
    padding: 12px 30px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-top: 20px;
}

.btn-submit-comment:hover {
    background-color: #ffffff;
    color: #003366;
}

.reply-indicator {
    background: #fff3cd;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
}

@media (max-width: 600px) {
    .form-row-inputs { grid-template-columns: 1fr; }
}
/* 1. Correction couleur catégorie en blanc dans le ruban */
.category-header span, 
.category-header span a {
    color: #ffffff !important; /* Force le blanc */
    text-decoration: none !important;
}

/* 2. Mise en page des Tags (Sujets liés) */
.article-tags-container {
    margin-top: 40px;
    padding: 20px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 4px;
}

.tags-label {
    display: block;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    color: #003366;
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Style des badges de tags */
.tag-badge {
    background: #e9ecef;
    color: #495057 !important;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.tag-badge:hover {
    background: #003366;
    color: #ffffff !important;
    border-color: #003366;
}

/* Séparateur discret avant commentaires */
.section-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #eee;
}
/* --- CORRECTION COULEUR CATÉGORIE DANS LE RUBAN --- */
.category-header span, 
.category-header span a {
    color: #ffffff !important; /* Texte en blanc */
    text-decoration: none !important;
}

/* --- DESIGN DES TAGS (BADGES) --- */
.article-tags-wrapper {
    margin-top: 50px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #eee;
}

.tags-title {
    display: block;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: #003366;
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Style des étiquettes (badges) */
.tag-item {
    background: #ffffff;
    color: #003366 !important;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #003366;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #003366;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,51,102,0.1);
}

/* Séparateur discret */
.post-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #eee;
}
/* --- PAGINATION STYLE PRESSE --- */
.site-pagination {
    margin: 50px 0;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.site-pagination .p_page, 
.site-pagination .p_current, 
.site-pagination .p_next, 
.site-pagination .p_prev {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 2px solid #003366;
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s;
}

.site-pagination .p_current, 
.site-pagination .p_page:hover {
    background-color: #003366;
    color: #ffffff !important;
}

/* Style du lien RSS en bas de page */
.archives-rss {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: 20px;
}

.archives-rss a {
    color: #cc0000;
    font-weight: bold;
    text-decoration: none;
}
/* Style pour la description de la catégorie sous le titre */
.categorie-description-custom {
    max-width: 800px;
    margin: -10px auto 40px;
    text-align: center;
    font-size: 1.4rem;
    font-style: italic;
    color: #666;
    line-height: 1.6;
}

/* On force le texte blanc pour le titre de catégorie dans le ruban */
.category-header span {
    color: #ffffff !important;
}

/* Espacement du flux RSS en bas */
.archives-rss {
    text-align: center;
    padding: 20px;
    font-size: 1.1rem;
}

.archives-rss a {
    color: #cc0000;
    text-decoration: none;
    font-weight: bold;
}
/* Style spécifique pour les pages statiques */
.static-page-container {
    min-height: 60vh; /* Assure que la page n'est pas trop courte */
}

.static-footer-action {
    text-align: center;
    margin-top: 30px;
}

/* On réutilise le style de bouton pour le retour à l'accueil */
.static-footer-action .btn-read-more {
    background-color: transparent;
    color: #003366 !important;
    border: 2px solid #003366;
}

.static-footer-action .btn-read-more:hover {
    background-color: #003366;
    color: #ffffff !important;
}
/* --- NOUVELLE GRILLE DU FOOTER --- */
.footer-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr; /* 3 colonnes équilibrées */
    gap: 40px;
    padding: 60px 20px;
    align-items: start;
}

.footer-column h4 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.footer-column p, 
.footer-column li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-column a {
    color: #ffffff;
    text-decoration: underline;
}

/* Style spécifique pour l'alerte rouge */
.footer-satire-warning {
    color: #ff4d4d !important;
    font-weight: bold;
    font-size: 0.85rem !important;
    margin-top: 20px;
    line-height: 1.3;
}

/* Bandeau noir tout en bas */
.footer-bottom-bar {
    background: #001a33;
    color: #888;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    border-top: 1px solid #003366;
}

.back-to-top {
    display: block;
    margin-top: 10px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold;
}

/* Version Mobile : on empile les colonnes */
@media (max-width: 900px) {
    .footer-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}