/* ==========================================================================
   SECTION GUIDES & CONSEILS - COMPATIBLE AVEC VOTRE STYLE GLOBAL
   ========================================================================== */

/* 1. Sécurisation des typographies sans écraser le global */
.page-guides-list, 
.page-guide-single,
.page-guides-list button,
.page-guide-single button,
.page-guides-list a,
.page-guide-single a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
}

/* BANNIÈRE EN-TÊTE INDEX */
.guides-hero-banner {
    background-color: #0b0c08;
    padding: 140px 24px 80px 24px;
    text-align: center;
}

.guides-pretitle {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #8da84e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.guides-hero-banner h1 {
    font-family: 'Cinzel', serif;
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 500;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.guides-hero-banner p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #cccccc;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* LE CONTENEUR DE LA GRILLE */
.guides-grid-container {
    background-color: #fcfbfa;
    padding: 80px 24px;
}

.guides-grid-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* LA CARTE ARTICLE (ISOLÉE POUR ÉVITER LES CONFLITS) */
.guide-card-item {
    background: #ffffff;
    border: 1px solid #eae8e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.guide-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}

.guide-card-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-item-image-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    background-color: #0b0c08;
    overflow: hidden;
}

.guide-item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.guide-card-item:hover .guide-item-image-wrapper img {
    transform: scale(1.04);
}

.guide-item-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(26, 27, 21, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CONTENU DE LA CARTE */
.guide-item-content {
    padding: 25px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.guide-item-date {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #888888;
    font-size: 11px;
    margin-bottom: 10px;
}

/* Ciblage ultra-précis pour éviter que le global n'écrase la taille */
.guide-item-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #1a1b15 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-card-item:hover h3 {
    color: #8da84e !important;
}

.guide-item-content p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #666666;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 64px;
}

.guide-item-more {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #8da84e;
    font-size: 13px;
    font-weight: 700;
    margin-top: auto;
    text-decoration: none;
}

/* ==========================================================================
   PAGE ARTICLE UNIQUE (`article.php`) - CORRECTIF SUPERPOSITION
   ========================================================================== */

   .page-guide-single {
    background-color: #fcfbfa;
    /* On augmente le padding-top à 160px pour pousser tout le bloc 
       en dessous de votre header fixed qui fait environ 105px de haut */
    padding: 160px 24px 100px 24px;
    box-sizing: border-box;
}

.guide-single-container {
    max-width: 850px; /* Largeur recentrée parfaite pour le confort de lecture */
    margin: 0 auto;
}

/* Fil d'ariane aligné et aéré */
.breadcrumb {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: #888888;
    margin-bottom: 35px;
    text-align: left;
}

.breadcrumb a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #8da84e;
}

/* Structure de l'en-tête de l'article */
.article-single-header {
    text-align: left;
    margin-bottom: 45px;
}

.article-single-cat {
    display: inline-block;
    color: #8da84e;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

/* Ajustement du titre principal */
.article-single-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem; /* Légèrement réduit pour éviter les gros blocs sur 3 lignes */
    color: #1a1b15;
    line-height: 1.3;
    margin: 0 0 20px 0;
    font-weight: 500;
}

/* Ligne d'informations (Auteur, date) */
.article-meta {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: #777777;
    border-bottom: 1px solid #eae8e5; /* Petite ligne de séparation élégante */
    padding-bottom: 20px;
    margin-bottom: 35px;
}

.article-author {
    color: #1a1b15;
    font-weight: 600;
}

/* Conteneur de la grande image de couverture */
.article-main-cover {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.article-main-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Corps du texte de l'article */
.article-single-body {
    text-align: left;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #333333;
    font-size: 16px;
    line-height: 1.8;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .guides-grid-main, 
    .article-see-also .guides-grid-main { 
        grid-template-columns: 1fr; 
        max-width: 450px; 
    }
    .article-single-header h1 { font-size: 2rem; }
    .article-main-cover { height: 280px; }
}

@media (max-width: 600px) {
    .breadcrumb {
        display: none;
    }
    .guides-hero-banner h1 { font-size: 2rem; }
    .page-guide-single { padding: 120px 16px 60px 16px; }
}

/* ======================================
   STYLISATION DES TABLEAUX (STYLE ÉDEN)
====================================== */
.article-single-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    background-color: #ffffff;
    border: 1px solid #eae8e5;
    border-radius: 8px;
    overflow: hidden; /* Permet d'arrondir les angles proprement */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* En-tête du tableau */
.article-single-body table th {
    font-family: 'Cinzel', serif;
    background-color: #1a1b15; /* Rappel du ton sombre du header/boutons */
    color: #ffffff;
    text-align: left;
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
}

/* Cellules du corps */
.article-single-body table td {
    padding: 16px 20px;
    color: #444444;
    line-height: 1.6;
    border-bottom: 1px solid #eae8e5;
    vertical-align: middle;
}

/* Lignes alternées (effet "Zebra" subtil pour la lisibilité) */
.article-single-body table tbody tr:nth-child(even) {
    background-color: #fcfbfa; /* Fond très clair uniforme avec le site */
}

/* Effet au survol d'une ligne */
.article-single-body table tbody tr:hover {
    background-color: rgba(141, 168, 78, 0.05); /* Léger reflet vert Éden */
    transition: background-color 0.2s ease;
}

/* Première colonne légèrement mise en valeur */
.article-single-body table td:first-child {
    font-weight: 600;
    color: #1a1b15;
    width: 30%; /* Ajustement de la largeur pour équilibrer Matériau / Particularité */
}

/* Gestion de la dernière ligne pour éviter la bordure double avec le conteneur */
.article-single-body table tbody tr:last-child td {
    border-bottom: none;
}

/* 📱 Optimisation Responsive pour Mobile */
@media screen and (max-width: 600px) {
    .article-single-body table {
        display: block;
        width: 100%;
        overflow-x: auto; /* Permet un scroll horizontal fluide si le texte est long */
        -webkit-overflow-scrolling: touch;
        margin: 25px 0;
        font-size: 13px;
    }
    
    .article-single-body table th,
    .article-single-body table td {
        padding: 12px 14px;
    }
}