/*
Theme Name: MontreTrail
Theme URI: https://montretrail.com
Author: MontreTrail Team
Author URI: https://montretrail.com
Description: Thème WordPress sur mesure pour montretrail.com - Magazine digital spécialisé montres GPS et trail, pensé mobile-first avec affiliation et newsletter intégrées
Version: 1.0.32
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: montretrail
Tags: blog, news, e-commerce, custom-menu, featured-images, threaded-comments, translation-ready, mobile-first, responsive-layout
*/

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs principales - Mode sombre permanent */
    --color-primary: #ff6b35;
    --color-secondary: #2c3e50;
    --color-accent: #a8dadc;
    --color-text: #f5f6fa;
    --color-text-light: #dfe6e9;
    --color-bg: #1a1a1a;
    --color-bg-light: #2d3436;
    --color-border: #4a4a4a;
    
    /* Typographie */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Manrope', 'Inter', sans-serif;
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Breakpoints */
    --mobile-max: 768px;
    --tablet-max: 1024px;
    --desktop-min: 1200px;
}

/* Mode sombre permanent - pas de media query nécessaire */

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TYPOGRAPHIE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-text);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.site-content {
    min-height: 60vh;
    padding: var(--space-md) 0;
}

/* Grid System - Mobile First */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--space-sm) * -1);
    gap: var(--space-md);
}

@media (min-width: 1024px) {
    .row {
        flex-wrap: nowrap;
        gap: 0; /* Pas d'espace entre colonnes pour optimiser la largeur réelle */
    }
}

.col {
    flex: 1;
    padding: 0 var(--space-sm);
}

.col-main {
    width: 100%;
}

.col-sidebar {
    width: 100%;
    margin-top: var(--space-lg);
}

@media (min-width: 1024px) {
    .col-main {
        width: 66.666%; /* 2/3 exact */
        flex: 0 0 66.666%;
    }
    
    .col-sidebar,
    .widget-area.col-sidebar {
        width: 360px; /* largeur fixe confortable sur desktop */
        flex: 0 0 360px;
        margin-top: 0;
    }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
}

.site-logo span {
    color: var(--color-primary);
}

/* Navigation */
.main-navigation {
    display: none;
    width: 100%;
}

.main-navigation.toggled {
    display: block;
}

.main-navigation ul {
    list-style: none;
    padding: var(--space-sm) 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: var(--space-xs) 0;
    color: var(--color-text);
    font-weight: 500;
}

.menu-toggle {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    .main-navigation {
        display: block !important;
        width: auto;
    }
    
    .main-navigation ul {
        display: flex;
        gap: var(--space-md);
        padding: 0;
    }
    
    .main-navigation a {
        padding: var(--space-xs);
    }
}

/* Search Bar */
.search-bar {
    margin: var(--space-sm) 0;
}

.search-bar input {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
}

/* ==========================================================================
   CONTENT BLOCKS
   ========================================================================== */

.content-block {
    background: #2d3436;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.content-block h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* Featured Article */
.featured-article {
    position: relative;
    margin-bottom: var(--space-lg);
}

.featured-article img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-content {
    padding: var(--space-md) 0;
}

.featured-content h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.btn {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-primary);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--color-primary);
    color: white;
}

/* Article List */
.article-list {
    list-style: none;
}

.article-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list a {
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.article-list a:hover {
    color: var(--color-primary);
}

/* Deals / Bons Plans */
.deal-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--color-bg-light);
    border-radius: 6px;
    margin-bottom: var(--space-xs);
}

.deal-icon {
    font-size: 1.5rem;
}

.deal-content {
    flex: 1;
}

.deal-title {
    font-weight: 600;
    color: var(--color-text);
}

.deal-price {
    color: var(--color-primary);
    font-weight: 700;
}

/* ==========================================================================
   NEWSLETTER STICKY
   ========================================================================== */

.newsletter-sticky {
    position: fixed;
    bottom: -300px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-top: 3px solid var(--color-primary);
    padding: var(--space-md);
    text-align: center;
    transition: bottom 0.4s ease;
    z-index: 999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.newsletter-sticky.visible {
    bottom: 0;
}

.newsletter-sticky p {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.newsletter-sticky form {
    display: flex;
    gap: var(--space-xs);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-sticky input {
    flex: 1;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.9rem;
}

.newsletter-sticky button {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-sticky button:hover {
    background: var(--color-primary);
}

.newsletter-close {
    position: absolute;
    right: var(--space-sm);
    top: var(--space-sm);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

/* ==========================================================================
   SINGLE POST STYLES
   ========================================================================== */

.single-header {
    margin-bottom: var(--space-lg);
}

/* Masquer les titres en double dans le contenu */
.single .entry-content h1:first-of-type,
.single .entry-content h2:first-of-type,
.single .entry-content h3:first-of-type {
    display: none;
}

.post-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.post-category {
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: var(--space-md);
}

/* Info Box / Encadré */
.info-box {
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: 4px;
}

/* Product Card / Fiche Technique */
.product-card {
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: var(--space-md);
    margin: var(--space-lg) 0;
}

.product-rating {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: var(--space-sm) 0;
}

.product-specs {
    list-style: none;
}

.product-specs li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border);
}

.product-specs li:last-child {
    border-bottom: none;
}

/* Pros / Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

@media (min-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr 1fr;
    }
}

.pros, .cons {
    padding: var(--space-md);
    border-radius: 8px;
}

.pros {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.cons {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.pros h3, .cons h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.pros ul, .cons ul {
    list-style: none;
}

.pros li::before {
    content: "• ";
    color: #28a745;
    font-weight: bold;
    margin-right: var(--space-xs);
}

.cons li::before {
    content: "• ";
    color: #dc3545;
    font-weight: bold;
    margin-right: var(--space-xs);
}

/* ==========================================================================
   COMPARATOR / COMPARATEUR
   ========================================================================== */

/* Comparator Filters */
.comparator-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: var(--color-bg-light);
    border-radius: 8px;
}

@media (min-width: 768px) {
    .comparator-filters {
        grid-template-columns: repeat(3, 1fr) auto;
        align-items: end;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.filter-group select,
.filter-group input {
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:hover,
.filter-group input:hover {
    border-color: var(--color-primary);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Encadré comparatif express (cartouche orange) */
.gau-comparatif-express {
    background: transparent;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
}

.gau-comparatif-express strong {
    color: #ff6b35;
    font-weight: 600;
}

.gau-comparatif-express p {
    margin: 8px 0 0 0;
    color: #ff6b35;
    line-height: 1.8;
    white-space: pre-line;
}

.gau-comparatif-express {
    background: transparent;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
    white-space: pre-line;
}

.gau-comparatif-express h4 {
    color: #ff6b35;
    margin: 10px 0 5px 0;
    font-size: 15px;
    font-weight: 600;
}

.gau-comparatif-express ul {
    margin: 8px 0;
    padding-left: 20px;
}

.gau-comparatif-express li {
    margin-bottom: 8px;
    color: #ff6b35;
    display: block;
}

/* Tableau comparaison */
.gau-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

.gau-comparison-table thead,
.gau-comparison-table tbody,
.gau-comparison-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.gau-comparison-table th,
.gau-comparison-table td {
    border: 1px solid #ff6b35;
    padding: 12px;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
}

.gau-comparison-table th {
    background: #2c3e50;
    font-weight: 600;
    color: #ff6b35;
}

.gau-comparison-table td {
    background: #1a1a1a;
    color: #ff6b35;
}

/* Optimisation mobile - réduire police et ajuster colonnes */
@media screen and (max-width: 768px) {
    .gau-comparison-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }
    
    .gau-comparison-table th,
    .gau-comparison-table td {
        padding: 8px 6px;
        min-width: 80px;
    }
    
    /* Colonnes spécifiques pour mobile */
    .gau-comparison-table th:nth-child(1),
    .gau-comparison-table td:nth-child(1) {
        width: 25%; /* Modèle */
        min-width: 100px;
    }
    
    .gau-comparison-table th:nth-child(2),
    .gau-comparison-table td:nth-child(2) {
        width: 35%; /* Robustesse */
        min-width: 120px;
    }
    
    .gau-comparison-table th:nth-child(3),
    .gau-comparison-table td:nth-child(3) {
        width: 25%; /* Autonomie */
        min-width: 100px;
    }
    
    .gau-comparison-table th:nth-child(4),
    .gau-comparison-table td:nth-child(4) {
        width: 15%; /* Prix */
        min-width: 80px;
        font-weight: 600;
        color: #ff6b35;
    }
    
    /* Masquer la colonne GPS sur mobile (si elle existe) */
    .gau-comparison-table th:nth-child(5),
    .gau-comparison-table td:nth-child(5) {
        display: none;
    }
}

/* Pour les très petits écrans */
@media screen and (max-width: 480px) {
    .gau-comparison-table {
        font-size: 11px;
    }
    
    .gau-comparison-table th,
    .gau-comparison-table td {
        padding: 6px 4px;
    }
    
    .gau-comparison-table th:nth-child(1),
    .gau-comparison-table td:nth-child(1) {
        width: 30%;
        min-width: 90px;
    }
    
    .gau-comparison-table th:nth-child(2),
    .gau-comparison-table td:nth-child(2) {
        width: 40%;
        min-width: 110px;
    }
    
    .gau-comparison-table th:nth-child(3),
    .gau-comparison-table td:nth-child(3) {
        width: 20%;
        min-width: 80px;
    }
    
    .gau-comparison-table th:nth-child(4),
    .gau-comparison-table td:nth-child(4) {
        width: 10%;
        min-width: 70px;
    }
}

/* Page Description */
.page-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

/* Affiliate Links Section */
.affiliate-links {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff8c5a 100%);
    color: white;
    padding: var(--space-lg);
    border-radius: 8px;
    margin: var(--space-lg) 0;
    text-align: center;
}

.affiliate-links h3 {
    color: white;
    margin-bottom: var(--space-md);
}

.affiliate-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.affiliate-btn {
    background: white;
    color: var(--color-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.affiliate-btn:hover {
    transform: translateY(-2px);
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Newsletter Block */
.newsletter-block {
    background: var(--color-bg-light);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: center;
    margin: var(--space-xl) 0;
}

.newsletter-block h3 {
    margin-bottom: var(--space-sm);
}

.newsletter-block form {
    display: flex;
    gap: var(--space-sm);
    max-width: 500px;
    margin: var(--space-md) auto 0;
}

.newsletter-block input {
    flex: 1;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.newsletter-block button {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Related Posts */
.related-posts {
    margin: var(--space-xl) 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-post-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.related-post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: var(--space-md);
}

.related-post-content h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--color-secondary);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

/* Supprimer les puces des listes dans les widgets */
.widget ul {
    list-style: none;
    padding-left: 0;
}

.widget li {
    list-style: none;
}

/* Styles pour les listes de widgets */
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: var(--space-xs);
    padding: 0;
    border-bottom: 1px solid var(--color-border);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list li a {
    color: var(--color-text);
    text-decoration: none;
    display: block;
    padding: var(--space-sm) 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
}

.widget-list li a:hover {
    color: var(--color-primary);
    padding-left: var(--space-xs);
}

/* Amélioration de la sidebar */
.col-sidebar {
    min-width: 0; /* Permet au contenu de se rétrécir si nécessaire */
}

.col-sidebar .content-block {
    margin-bottom: var(--space-lg);
    width: 100%;
    max-width: 100%; /* Assure que les blocs utilisent toute la largeur disponible */
}

.col-sidebar .content-block h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

/* Styles pour le formulaire de recherche dans la sidebar */
.col-sidebar .search-form {
    display: flex;
    gap: var(--space-xs);
}

.col-sidebar .search-form input[type="search"] {
    flex: 1;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.9rem;
}

.col-sidebar .search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.col-sidebar .search-form button {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.col-sidebar .search-form button:hover {
    background: #e55a2b;
}

/* Styles pour les compteurs de catégories */
.category-count {
    color: var(--color-text-light);
    font-size: 0.8rem;
    font-weight: normal;
}

/* Styles pour le nuage de tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag-item {
    display: inline-block;
}

.tag-item a {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-light);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 16px;
    font-size: 0.8rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.tag-item a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

/* Assurer que tous les éléments de la sidebar utilisent la largeur complète */
.col-sidebar .widget-list,
.col-sidebar .tag-cloud,
.col-sidebar .search-form {
    width: 100%;
}

/* Styles spécifiques pour les blocs de bons plans */
.deal-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.deal-item:last-child {
    border-bottom: none;
}

.deal-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.deal-content {
    flex: 1;
    min-width: 0;
}

.deal-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.deal-price {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Styles pour les articles de catégories sur la homepage */
.category-articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* ==========================================================================
   STYLES DYNAMIQUES DE COMPARAISON
   ========================================================================== */

/* Styles par défaut (actuels) - Sombre Orange */
.gau-comparison-table.style-dark-orange th {
    background: #2c3e50;
    color: #ff6b35;
}

.gau-comparison-table.style-dark-orange td {
    background: #1a1a1a;
    color: #ff6b35;
}

.gau-comparatif-express.style-orange-border {
    background: transparent;
    border: 2px solid #ff6b35;
    color: #ff6b35;
}

/* Style Clair Bleu */
.gau-comparison-table.style-light-blue {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.gau-comparison-table.style-light-blue th {
    background: #007bff;
    color: white;
    font-weight: 600;
}

.gau-comparison-table.style-light-blue td {
    background: white;
    color: #333;
    border-color: #dee2e6;
}

.gau-comparison-table.style-light-blue tr:nth-child(even) td {
    background: #f8f9fa;
}

.gau-comparatif-express.style-blue-gradient {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.gau-comparatif-express.style-blue-gradient strong,
.gau-comparatif-express.style-blue-gradient h4 {
    color: white;
}

/* Style Minimal Gris */
.gau-comparison-table.style-minimal-gray {
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gau-comparison-table.style-minimal-gray th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
    border-bottom: 2px solid #dee2e6;
}

.gau-comparison-table.style-minimal-gray td {
    background: white;
    color: #495057;
    border-color: #e9ecef;
}

.gau-comparison-table.style-minimal-gray tr:hover td {
    background: #f8f9fa;
}

.gau-comparatif-express.style-green-card {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gau-comparatif-express.style-green-card strong,
.gau-comparatif-express.style-green-card h4 {
    color: #155724;
}

/* Style Coloré */
.gau-comparison-table.style-colorful th:nth-child(1) {
    background: #ff6b35;
    color: white;
}

.gau-comparison-table.style-colorful th:nth-child(2) {
    background: #4ecdc4;
    color: white;
}

.gau-comparison-table.style-colorful th:nth-child(3) {
    background: #45b7d1;
    color: white;
}

.gau-comparison-table.style-colorful th:nth-child(4) {
    background: #96ceb4;
    color: white;
}

.gau-comparison-table.style-colorful td {
    background: white;
    color: #333;
    border-color: #e9ecef;
}

.gau-comparison-table.style-colorful tr:nth-child(even) td {
    background: #f8f9fa;
}

.gau-comparatif-express.style-purple-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.gau-comparatif-express.style-purple-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.gau-comparatif-express.style-purple-modern strong,
.gau-comparatif-express.style-purple-modern h4 {
    color: white;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .category-articles {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

.category-article {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.category-article:hover {
    transform: translateY(-2px);
}

.article-thumbnail {
    position: relative;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-article:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-content {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    margin: 0 0 var(--space-sm) 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.article-content h3 a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: var(--color-primary);
}

.article-excerpt {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.article-excerpt p {
    margin: 0;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    display: block;
    padding: var(--space-xs) 0;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE IMAGES
   ========================================================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

/* ==========================================================================
   SOCIAL SHARE BUTTONS
   ========================================================================== */

.social-share {
    margin: var(--space-lg) 0 var(--space-md) 0;
    clear: both;
}

.social-share h3 {
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.social-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Couleurs spécifiques par plateforme */
.social-btn.facebook {
    background: #1877f2;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.pinterest {
    background: #e60023;
}

/* Responsive - icônes plus petites sur mobile */
@media (max-width: 767px) {
    .social-btn {
        width: 36px;
        height: 36px;
    }
    
    .social-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .social-buttons {
        gap: var(--space-xs);
    }
}

@media print {
    .newsletter-sticky,
    .affiliate-links,
    .newsletter-block,
    .site-header,
    .site-footer {
        display: none;
    }
}

