/* =========================================================
   1. HERO PRINCIPAL (Commun / index.php)
========================================================= */
.guide-hero {
    padding: 170px 0 60px;
    background: linear-gradient(180deg, #050505 0%, #0b0b0b 100%);
}
.guide-hero-container {
    text-align: center;
}
.guide-subtitle {
    display: inline-block;
    color: #c6a46a;
    text-transform: uppercase;
    letter-spacing: .35em;
    font-size: .7em;
    margin-bottom: 10px;
}
.guide-hero h1 {
    font-family: var(--font-title);
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: .95;
    font-weight: 400;
    margin: 15px 0;
}
.guide-hero p.hero-lead {
    font-size: 1.15em;
    line-height: 2;
    color: rgba(255,255,255,.72);
    margin: 0;
}

/* =========================================================
   2. TITRES GLOBAUX
========================================================= */
.section-title {
    margin-bottom: 40px;
}
.section-title.center {
    text-align: center;
}
.section-title span {
    display: inline-block;
    color: #c6a46a;
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .7em;
    margin-bottom: 5px;
}
.section-title h2 {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

/* =========================================================
   3. NOUVEAU LAYOUT PARFAITEMENT ÉQUILIBRÉ 50/50 (index.php)
========================================================= */
.guide-main-content {
    padding: 0;
    background: #0b0b0b;
}

.main-grid-layout-balanced {
    display: flex;
    justify-content: space-between;
    gap: 60px; /* Espace fixe et élégant entre les colonnes */
    align-items: start;
}

.main-column-articles,
.main-column-faq {
    flex: 1; /* Chaque colonne prend exactement 50% de l'espace disponible moins le gap */
    min-width: 0; /* Empêche les débordements de texte */
}

/* Système d'affichage progressif "Voir Plus" */
.hidden-item {
    display: none !important;
}

.btn-load-more {
    background: transparent;
    border: 1px solid rgba(198, 164, 106, 0.25);
    color: #c6a46a;
    padding: 14px 24px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    margin-top: 25px;
    transition: 0.3s;
    width: 100%;
}
.btn-load-more:hover {
    background: rgba(198, 164, 106, 0.08);
    border-color: #c6a46a;
}

/* =========================================================
   4. CARTES GUIDES HORIZONTALES EDITORIALES (index.php)
========================================================= */
.articles-list-compact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-card-horizontal {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guide-card-horizontal:hover {
    transform: translateX(4px);
    border-color: rgba(198, 164, 106, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.guide-card-horizontal .guide-thumb {
    width: 100px;
    min-width: 100px;
    height: 100px;
    overflow: hidden;
}

.guide-card-horizontal .guide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-card-horizontal .guide-details {
    flex: 1;
    min-width: 0;
}

.guide-card-horizontal .guide-tag {
    display: inline-block;
    color: #c6a46a;
    font-size: 0.68em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.guide-card-horizontal h3 {
    font-family: var(--font-title);
    font-size: 1.2em;
    line-height: 1.2;
    margin: 0 0 6px 0;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-card-horizontal p.resume {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88em;
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-card-horizontal .guide-link {
    color: #c6a46a;
    font-size: 0.75em;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* =========================================================
   5. BLOC FAQ COMPACTE (index.php)
========================================================= */
.faq-list-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-list-compact details {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    padding: 20px 24px;
    transition: all 0.3s;
}

.faq-list-compact details[open] {
    border-color: rgba(198, 164, 106, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

.faq-list-compact summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.faq-list-compact summary::-webkit-details-marker {
    display: none;
}

.faq-list-compact summary h4 {
    font-family: var(--font-title);
    font-size: 1.2em;
    margin: 0;
    color: #c6a46a;
    font-weight: 400;
    line-height: 1.2;
    padding-right: 15px;
}

.faq-list-compact .faq-icon {
    color: #c6a46a;
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.faq-list-compact details[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-list-compact .faq-answer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.88em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   6. SECTION REVIEWS (SLIDER PREMIUM - index.php)
========================================================= */
.reviews {
    padding: 50px 0;
    background: #050505;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.reviews .subtitle {
    color: #c6a46a;
    text-transform: uppercase;
    letter-spacing: .3em;
    font-size: .75em;
    margin-bottom: 40px;
}

.reviews-slider {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
    max-width: 750px;
    width: 100%;
}

.review.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.review .stars {
    color: #caa76d;
    margin-bottom: 15px;
    letter-spacing: 4px;
    font-size: 0.85rem;
}

.review blockquote {
    font-family: var(--font-title);
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    font-style: italic;
    font-weight: 300;
}

.review .author {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.review .review-tag {
    color: #c6a46a;
    font-size: 0.85em;
    margin-left: 6px;
    border: 1px solid rgba(198, 164, 106, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
}

.reviews-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.reviews-dots button:hover {
    background: rgba(198, 164, 106, 0.5);
}

.reviews-dots button.active {
    background: #c6a46a;
    transform: scale(1.3);
}

/* =========================================================
   7. PAGE ARTICLE UNIQUE (article.php - Intact et préservé)
========================================================= */
.guide-article-page {
    padding: 180px 0 120px;
    background: #050505;
}
.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 70px;
    align-items: start;
}
.guide-article {
    min-width: 0;
}
.guide-date {
    color: #c6a46a;
    text-transform: uppercase;
    letter-spacing: .35em;
    font-size: .7em;
}
.guide-article h1 {
    font-family: var(--font-title);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: .92;
    font-weight: 400;
    margin: 5px 0;
}
.guide-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 45px;
}
.guide-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}
.guide-author span {
    color: rgba(255,255,255,.82);
    font-size: .95rem;
}
.guide-cover {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 60px;
}

/* Contenu textuel de l'article */
.guide-content {
    color: rgba(255,255,255,.78);
    line-height: 2;
}
.guide-content h2 {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 400;
    margin: 40px 0 20px;
}
.guide-content h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    line-height: 1.1;
    margin: 30px 0 15px;
    font-weight: 400;
}
.guide-content p {
    font-size: 1em;
    margin-bottom: 25px;
}
.guide-content strong {
    color: #fff;
}
.guide-content a {
    color: #c6a46a;
    text-decoration: underline;
}
.guide-content ul {
    padding-left: 20px;
    margin-bottom: 30px;
}
.guide-content li {
    margin-bottom: 12px;
}

/* Sidebar de la page article */
.guide-sidebar {
    position: sticky;
    top: 120px;
}
.guide-sidebar h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 400;
}
.guide-recent {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.recent-card {
    display: flex;
    gap: 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    padding: 18px;
    cursor: pointer;
    transition: .35s;
}
.recent-card:hover {
    transform: translateY(-4px);
    border-color: rgba(198,164,106,.18);
}
.recent-thumb {
    width: 90px;
    min-width: 90px;
    height: 90px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}
.recent-content {
    flex: 1;
}
.recent-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 400;
}
.recent-resume {
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    font-size: .92rem;
}

/* Tableaux éditoriaux d'articles */
.guide-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.guide-content table {
    width: 100%;
    border-collapse: collapse;
    line-height: 1.6;
    text-align: left;
    background: rgba(255, 255, 255, 0.01);  
    margin: 15px 0 0;
}
.guide-content th {
    font-family: var(--font-title);
    font-weight: 400;
    color: #c6a46a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.guide-content td {
    padding: 18px 24px;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}
.guide-content tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}
.guide-content tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease;
}

/* =========================================================
   8. SECTION CTA ET BOUTON ULTRA-PREMIUM (Commun)
========================================================= */
.guide-cta {
    padding: 0 0 50px 0;
    text-align: center;
    background: #050505;
    position: relative;
    overflow: hidden;
}

/* Petite lueur d'ambiance en arrière-plan du CTA */
.guide-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(198, 164, 106, 0.03) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.guide-cta .container {
    position: relative;
    z-index: 2;
}

.guide-cta h2 {
    font-family: var(--font-title);
    font-size: clamp(3rem, 5vw, 4.8rem);
    margin: 0 0 20px 0;
    font-weight: 400;
    color: #fff;
}

.guide-cta p {
    margin-bottom: 45px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.15em;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Refonte Premium du bouton .btn-secondary pour l'appel à l'action principal */
.guide-cta .btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 42px;
    font-size: 0.95rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 600;
    color: #000;
    background: linear-gradient(180deg, #e0c08a 0%, #c6a46a 45%, #9a733f 100%);
    border: none;
    box-shadow: 0 12px 35px rgba(198, 164, 106, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.guide-cta .btn-secondary:hover {
    background: linear-gradient(0deg, #c6a46a 100%, #e0c08a 0%);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(198, 164, 106, 0.35);
    letter-spacing: .25em; /* Léger effet d'expansion raffiné du texte */
}

/* Décoration subtile : un éclat brillant au survol */
.guide-cta .btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.guide-cta .btn-secondary:hover::after {
    transform: translateX(100%);
}


/* =========================================================
   9. RESPONSIVE DESIGN COMPLET
========================================================= */

/* Mode Tablette & Laptop intermédiaire */
@media screen and (max-width: 1024px) {
    .main-grid-layout-balanced {
        gap: 40px; /* Réduction du gap pour laisser respirer le contenu */
    }
    .guide-card-horizontal h3 {
        font-size: 1.25rem;
    }
}

/* Mode Tablette Portrait (Bascule en colonne pour l'index et l'article) */
@media screen and (max-width: 992px) {
    .main-grid-layout-balanced {
        flex-direction: column;
        gap: 60px;
    }
    .main-column-articles,
    .main-column-faq {
        width: 100%;
    }
    .guide-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .guide-sidebar {
        position: relative;
        top: 0;
    }
}

/* Écrans Mobiles */
@media screen and (max-width: 680px) {
    .guide-hero {
        padding: 140px 0 40px;
    }
    .guide-article-page {
        padding: 140px 0 80px;
    }
    .guide-card-horizontal {
        flex-direction: column; /* L'image s'aligne au-dessus sur mobile */
        gap: 15px;
    }
    .guide-card-horizontal .guide-thumb {
        width: 100%;
        height: 150px;
    }
    .faq-list-compact details {
        padding: 18px 20px;
    }
    .faq-list-compact summary h4 {
        font-size: 1.2rem;
    }
    .review blockquote {
        font-size: 1.25rem;
    }
    .guide-article h1 {
        font-size: 3rem;
    }
    .guide-content h2 {
        font-size: 2.3rem;
    }
    .guide-content th, 
    .guide-content td {
        padding: 14px 16px;
        font-size: 0.88rem;
    }
    .guide-cta {
        padding: 100px 0;
    }
    .guide-cta .btn-secondary {
        width: 100%; /* Le bouton prend toute la largeur sur mobile pour faciliter le clic au pouce */
        padding: 16px 20px;
    }
}