/*
Theme Name: GigaNews
Author: Votre Nom
Version: 6.2
Description: Thème Magazine Pro avec Paywall et CPT.
Text Domain: giganews-theme
*/

/* =========================================
   TABLE DES MATIÈRES
   1. VARIABLES & RESET
   2. TYPOGRAPHIE & BASE
   3. HEADER (Logo, Pub, Ticker, Nav)
   4. HOME GRID (Bento & Cartes)
   5. SINGLE POST & SIDEBAR (Sticky)
   6. ARCHIVES & PAGINATION
   7. FOOTER
   8. UX ELEMENTS (Scroll, Progress, FAB)
   9. ESPACE MEMBRE (Login, Register)
   10. RESPONSIVE (Mobile Global & Menu Fix)
   11. SEARCH BAR
   12. COMMENTAIRES
   13. DASHBOARD
   14. ÉDITEUR FRONTEND
   15. PAYWALL
   ========================================= */


/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #cc0000;
    --primary-dark: #8a0000;
    --text-dark: #111;
    --text-light: #666;
    --bg-light: #f4f4f4;
    --white: #ffffff;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 50px -10px rgba(0,0,0,0.15);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }


/* =========================================
   2. TYPOGRAPHIE & BASE
   ========================================= */
body { 
    font-family: 'Roboto', sans-serif; 
    background: var(--bg-light); 
    color: #2c3e50;
    line-height: 1.7;
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    letter-spacing: -0.5px;
    font-family: 'Merriweather', serif;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.alignwide { max-width: 1400px; margin-left: auto; margin-right: auto; }
.site-main-fullwidth { width: 100%; overflow-x: hidden; }

/* Alertes génériques */
.alert-error { color: #cc0000; background: #ffe6e6; padding: 10px; border-radius: 4px; border: 1px solid #cc0000; }
.alert-success { color: #008000; background: #e6fffa; padding: 10px; border-radius: 4px; border: 1px solid #008000; }


/* =========================================
   3. HEADER COMPLET
   ========================================= */
header.site-header { 
    background: white; 
    margin-bottom: 20px;
    position: relative;
    z-index: 1000;
}

/* --- Top Bar (Noir fin) --- */
.top-bar {
    background: #1a1a1a; 
    color: #ccc;
    font-size: 0.85rem;
    padding: 0; 
    border-bottom: 1px solid #333;
}

.top-bar .flex-row {
    height: 40px; 
    align-items: center;
    display: flex; 
    justify-content: space-between;
}

.top-links a { color: #eee; margin-left: 15px; font-weight: bold; }
.top-date { font-weight: 500; letter-spacing: 0.5px; }

/* Actions Visiteurs */
.guest-actions { display: flex; align-items: center; gap: 15px; }
.top-link-login { color: #fff; text-decoration: none; font-weight: 600; transition: color 0.2s; display: flex; align-items: center; gap: 5px; }
.top-link-login:hover { color: var(--primary-color); }
.top-btn-register { background: var(--primary-color); color: white !important; padding: 4px 12px; border-radius: 4px; font-weight: bold; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.3s, transform 0.2s; }
.top-btn-register:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Actions Membres */
.member-actions { display: flex; align-items: center; gap: 15px; }
.user-pill { display: flex; align-items: center; gap: 8px; background: #333; padding: 3px 12px 3px 3px; border-radius: 20px; color: white !important; font-weight: 600; transition: background 0.2s; }
.user-pill:hover { background: #444; }
.user-pill img { border-radius: 50%; width: 24px; height: 24px; display: block; border: 1px solid #555; }
.logout-link { color: #ff6b6b !important; font-weight: bold; font-size: 1rem; padding: 0 5px; opacity: 0.7; transition: 0.2s; }
.logout-link:hover { opacity: 1; transform: scale(1.1); }

/* --- Main Branding (Logo + Pub) --- */
.main-branding { background: white; border-bottom: 1px solid #eee; }
.header-flex { display: flex; justify-content: space-between; align-items: center; min-height: 110px; padding: 10px 0; }
.site-branding-left { flex: 1; }
.brand-logo { font-family: 'Merriweather', serif; font-size: 3.5rem; font-weight: 900; color: black; letter-spacing: -2px; line-height: 1; }
.site-header-ad { flex: 0 0 auto; }
.site-header-ad img { max-height: 90px; width: auto; object-fit: contain; }

/* --- Breaking News Bar --- */
.breaking-news-bar { background: #111; color: white; height: 44px; line-height: 44px; border-bottom: 3px solid var(--primary-color); overflow: hidden; }
.breaking-flex { display: flex; height: 100%; align-items: center; }
.breaking-label { background: var(--primary-color); color: white; font-weight: 900; font-size: 0.8rem; padding: 0 20px; height: 100%; display: flex; align-items: center; text-transform: uppercase; white-space: nowrap; z-index: 2; }
.breaking-ticker-wrap { flex: 1; overflow: hidden; position: relative; background: #111; }
.breaking-ticker-move { display: inline-block; white-space: nowrap; padding-left: 100%; animation: ticker-scroll 60s linear infinite; }
.breaking-ticker-move:hover { animation-play-state: paused; }
.ticker-item { display: inline-block; margin-right: 40px; }
.ticker-item a { color: #fff; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; font-weight: 500; }
.ticker-item a:hover { color: var(--primary-color); }
.ticker-sep { color: var(--primary-color); margin-right: 10px; font-size: 0.8rem; }
@keyframes ticker-scroll { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }

/* --- Navigation Bar --- */
.main-nav-container { background: var(--primary-color); color: white; position: sticky; top: 0; z-index: 9999; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.main-navigation { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.menu-toggle { display: none; }
.main-menu { display: flex; height: 100%; align-items: center; }
.main-menu > li { height: 100%; display: flex; align-items: center; position: relative; }
.main-menu > li > a { color: white; font-weight: 700; padding: 0 20px; height: 100%; display: flex; align-items: center; text-transform: uppercase; font-size: 0.9rem; }
.main-menu > li:hover > a { background: rgba(0,0,0,0.2); }
.main-menu > li.menu-item-has-children > a::after { content: ''; display: inline-block; width: 6px; height: 6px; border-right: 2px solid rgba(255,255,255,0.7); border-bottom: 2px solid rgba(255,255,255,0.7); transform: rotate(45deg); margin-left: 10px; margin-bottom: 3px; transition: all 0.3s ease; }
.main-menu > li.menu-item-has-children:hover > a::after { transform: rotate(225deg); border-color: white; margin-bottom: -3px; }
.main-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: white; min-width: 220px; box-shadow: var(--shadow-soft); border-top: 3px solid var(--primary-color); z-index: 10000; }
.main-menu li:hover > .sub-menu { display: block; animation: fadeInMenu 0.3s ease; }
.main-menu .sub-menu li { width: 100%; border-bottom: 1px solid #eee; }
.main-menu .sub-menu a { color: var(--text-dark) !important; padding: 12px 20px; display: block; white-space: nowrap; text-transform: none; font-weight: normal; }
.main-menu .sub-menu a:hover { background: #f9f9f9; color: var(--primary-color) !important; padding-left: 25px; }
.mega-menu-container { position: absolute; top: 100%; left: 0; width: 600px; background: white; padding: 20px; box-shadow: var(--shadow-soft); border-top: 3px solid var(--primary-color); z-index: 10000; display: none; }
.main-menu li:hover .mega-menu-container { display: block; animation: fadeInMenu 0.3s ease; }
.mega-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.mega-thumb { height: 100px; background-size: cover; background-position: center; border-radius: 4px; margin-bottom: 10px; }
@keyframes fadeInMenu { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================
   4. HOME GRID (BENTO STYLE)
   ========================================= */
.magazine-grid { display: grid; gap: 20px; grid-template-columns: 1fr; grid-auto-rows: 250px; }
.post-item { position: relative; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; width: 100%; }
.post-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-item:hover img { transform: scale(1.05); }
.post-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.post-link-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }
.post-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9) 15%, transparent); color: white; z-index: 20; pointer-events: none; }
.post-content h2 { font-size: 1.1rem; margin: 0; line-height: 1.3; font-weight: 700; }
.hero-excerpt { display: none; }

@media (min-width: 900px) {
    .magazine-grid { grid-template-columns: repeat(3, 1fr); }
    .post-item:first-child { grid-column: span 2; grid-row: span 2; }
    .post-item:first-child h2 { font-size: 2.2rem; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
    .post-item:first-child .post-content { padding: 40px; background: linear-gradient(to top, rgba(0,0,0,0.95) 30%, transparent); }
    .post-item:first-child .hero-excerpt { display: block; font-size: 1.1rem; color: #ddd; margin-top: 10px; max-width: 90%; line-height: 1.5; }
}


/* =========================================
   5. SINGLE POST & SIDEBAR
   ========================================= */
.single-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .single-layout { grid-template-columns: 2fr 1fr; } }
.giganews-sidebar { position: sticky; top: 90px; z-index: 10; }
.widget { background: white; padding: 30px; margin-bottom: 30px; border-radius: var(--radius); box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.03); transition: transform 0.3s ease; }
.widget:hover { transform: translateY(-3px); }
.widget-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; margin-bottom: 25px; position: relative; padding-left: 15px; }
.widget-title::before { content: ''; position: absolute; left: 0; top: 2px; height: 15px; width: 4px; background: var(--primary-color); border-radius: 4px; }
.widget form[role="search"] { position: relative; display: flex; }
.widget input[type="search"] { width: 100%; padding: 15px 20px; border: 2px solid #f0f0f0; background: #fafafa; border-radius: 50px; font-size: 0.9rem; outline: none; transition: 0.3s; }
.widget input[type="search"]:focus { background: white; border-color: var(--primary-color); }
.widget button[type="submit"] { position: absolute; right: 5px; top: 5px; height: 40px; width: 40px; border-radius: 50%; background: var(--primary-color); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.trending-item { display: flex; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f4f4f4; transition: transform 0.2s; }
.trending-item:last-child { border: none; padding-bottom: 0; }
.trending-item:hover { transform: translateX(5px); }
.trending-rank { font-size: 3.5rem; font-weight: 900; color: #eee; font-family: 'Merriweather', serif; font-style: italic; line-height: 1; margin-right: 15px; min-width: 40px; text-align: center; }
.trending-item:hover .trending-rank { color: var(--primary-color); opacity: 0.3; }
.ad-widget { text-align: center; background: repeating-linear-gradient(45deg, #f9f9f9, #f9f9f9 10px, #f0f0f0 10px, #f0f0f0 20px); border: 1px dashed #ccc; color: #aaa; height: 250px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.related-posts-section { margin-top: 80px; padding-top: 40px; border-top: 1px solid #eee; }
.related-title { font-size: 1.5rem; margin-bottom: 30px; border-left: 4px solid var(--primary-color); padding-left: 15px; font-weight: 800; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.related-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: 0.3s; }
.related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.related-thumb-wrapper { height: 180px; overflow: hidden; position: relative; }
.related-thumb-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.related-card:hover img { transform: scale(1.1); }
.related-cat-tag { position: absolute; top: 10px; left: 10px; background: var(--primary-color); color: white; font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; font-weight: bold; }
.related-info { padding: 20px; }
.related-info h4 { font-size: 1.1rem; margin-bottom: 5px; font-weight: 700; }


/* =========================================
   6. ARCHIVES & PAGINATION
   ========================================= */
.category-grid-layout .post-item { min-height: auto !important; }
.giganews-pagination { margin: 50px 0; text-align: center; }
.giganews-pagination .page-numbers { display: inline-block; padding: 12px 18px; margin: 0 5px; background: white; border: 1px solid #ddd; border-radius: 4px; transition: 0.3s; }
.giganews-pagination .page-numbers.current { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.giganews-pagination a.page-numbers:hover { background: #111; color: white; border-color: #111; }


/* =========================================
   7. FOOTER
   ========================================= */
.site-footer { background: #111; color: white; margin-top: 60px; padding-top: 60px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 20px; color: white; }
.footer-links li { border-bottom: 1px solid #333; padding: 5px 0; }
.footer-links a:hover { padding-left: 5px; color: var(--primary-color); }
.site-info { background: black; text-align: center; padding: 20px; color: #888; }
.social-btn { display: inline-flex; width: 40px; height: 40px; background: #333; color: white; border-radius: 50%; align-items: center; justify-content: center; margin-right: 10px; transition: 0.3s; }
.social-btn:hover { background: var(--primary-color); transform: translateY(-3px); }


/* =========================================
   8. UX ELEMENTS
   ========================================= */
#reading-progress { position: fixed; top: 0; left: 0; width: 0%; height: 4px; background: var(--primary-color); z-index: 10000; }
#scroll-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--text-dark); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 999; cursor: pointer; }
#scroll-to-top.visible { opacity: 1; visibility: visible; }
#scroll-to-top:hover { background: var(--primary-color); transform: translateY(-5px); }


/* =========================================
   9. ESPACE MEMBRE (Login/Register)
   ========================================= */
.giganews-auth-form, #giganews-login { max-width: 400px; margin: 0 auto; background: white; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.giganews-auth-form input, #giganews-login input[type="text"], #giganews-login input[type="password"] { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 15px; }
.giganews-auth-form button, #giganews-login input[type="submit"] { width: 100%; background: var(--primary-color); color: white; border: none; padding: 12px; border-radius: 6px; font-weight: bold; cursor: pointer; margin-top: 10px; }
.register-split-container { display: flex; min-height: 80vh; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.1); margin: 40px auto; max-width: 1200px; }
.register-visual { flex: 1; background: linear-gradient(135deg, #111 0%, #333 100%); color: white; display: flex; align-items: center; justify-content: center; padding: 60px; }
.register-visual h1 { font-size: 3rem; color: white; line-height: 1.1; margin-bottom: 20px; }
.register-form-wrapper { flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.form-row { display: flex; gap: 20px; }
.form-group.half { flex: 1; }


/* =========================================
   10. RESPONSIVE (MOBILE PREMIUM & BRANDÉ)
   ========================================= */
.mobile-dropdown-toggle { display: none; } 

@media (max-width: 900px) {
    
    /* --- 1. NETTOYAGE HEADER --- */
    .site-header-ad, .breaking-label span, .top-date { display: none !important; }
    .header-flex { flex-direction: column; justify-content: center; padding: 15px 0; height: auto; }
    
    /* --- 2. BOUTON BURGER STYLISÉ --- */
    .menu-toggle { 
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.1); 
        border: 1px solid rgba(255,255,255,0.2); 
        font-size: 1.2rem; 
        color: white; 
        cursor: pointer; 
        padding: 8px 12px;
        border-radius: 6px;
        transition: 0.3s;
    }
    .menu-toggle:hover { background: var(--primary-color); border-color: var(--primary-color); }
    .menu-toggle.toggled { background: var(--primary-color); border-color: var(--primary-color); }
    
    /* --- 3. CONTENEUR MENU (LE TIROIR) --- */
    .main-menu { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; left: 0; width: 100%; 
        /* Dégradé sombre élégant */
        background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%); 
        height: auto; 
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
        padding: 0;
        z-index: 9999;
        border-top: 3px solid var(--primary-color); /* La touche Brand */
    }

    /* --- 4. ÉLÉMENTS DE LISTE --- */
    .main-menu li { 
        display: block; 
        width: 100%; 
        border-bottom: 1px solid rgba(255,255,255,0.05); /* Séparateur subtil */
        position: relative;
    }

    /* --- 5. LIEN PRINCIPAL (Parent) --- */
    .main-menu li a { 
        display: flex; 
        justify-content: space-between; 
        align-items: center;
        width: 100%; 
        padding: 18px 25px; /* Plus d'espace pour le doigt */
        color: #e0e0e0; 
        font-size: 1.05rem; 
        font-weight: 600;
        font-family: 'Merriweather', serif; /* Touche éditoriale */
        text-transform: none; 
        background: transparent;
        transition: all 0.3s ease;
    }
    
    /* Effet Active / Hover */
    .main-menu li:hover > a,
    .main-menu li.gn-open > a { 
        background: rgba(255,255,255,0.03); 
        color: var(--primary-color); 
        padding-left: 30px; /* Petit décalage dynamique */
    }

    /* --- 6. FLÈCHE ANIMÉE (Pure CSS) --- */
    .main-menu li.menu-item-has-children > a::after { 
        content: '›'; /* Chevron moderne */
        font-family: sans-serif;
        font-size: 1.5rem; 
        line-height: 1;
        opacity: 0.5; 
        transition: transform 0.3s, color 0.3s; 
        font-weight: 300;
    }

    /* Rotation quand ouvert */
    .main-menu li.gn-open > a::after { 
        transform: rotate(90deg); 
        color: var(--primary-color);
        opacity: 1;
    }

   /* --- 7. SOUS-MENUS (CORRECTION CONTRASTE) --- */
    .main-menu .sub-menu, 
    .main-menu .mega-menu-container { 
        display: none; 
        position: static; 
        width: 100%; 
        
        /* CORRECTION ICI : Un gris anthracite distinct du noir pur */
        background: #1e1e1e; 
        
        /* Ombre portée interne pour créer de la profondeur */
        box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.5); 
        
        border: none; 
        padding: 10px 0;
        margin: 0;
        
        /* La ligne verticale de marque reste pour guider l'œil */
        border-left: 4px solid var(--primary-color); 
    }

    /* Liens Sous-menu */
    .main-menu .sub-menu li { border-bottom: 1px solid rgba(255,255,255,0.02); } /* Séparateur très léger */
    
    .main-menu .sub-menu a { 
        padding: 14px 20px 14px 35px; /* Indentation */
        color: #ffffff !important; /* Gris clair pour le texte (lisible sur gris foncé) */
        font-size: 0.95rem;
        font-family: 'Roboto', sans-serif;
        font-weight: 400;
        letter-spacing: 0.3px;
    }
    
    .main-menu .sub-menu a:hover {
        background: #252525; /* Légèrement plus clair au survol */
        color: white !important;
        padding-left: 40px; /* Petite animation */
    }
    
    /* Layouts Login/Register */
    .register-split-container { flex-direction: column; }
    .register-visual, .register-form-wrapper { padding: 40px 20px; text-align: center; }
    .top-bar .flex-row { justify-content: center; }
}

@media (min-width: 901px) { .main-menu { display: flex !important; } }

/* =========================================
   11. SEARCH BAR MODERNE
   ========================================= */
.search-container-modern { position: relative; width: 100%; max-width: 350px; margin-left: auto; }
.search-form-styled { position: relative; display: flex; align-items: center; }
.search-field-modern { width: 100%; padding: 12px 50px 12px 20px; background-color: #f0f2f5; border: 2px solid transparent; border-radius: 50px; font-size: 0.95rem; color: #333; transition: all 0.3s; outline: none; }
.search-field-modern::placeholder { color: #999; font-weight: 500; }
.search-field-modern:focus { background-color: #ffffff; border-color: var(--primary-color); box-shadow: 0 5px 15px rgba(204, 0, 0, 0.15); width: 100%; }
.search-submit-modern { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); background: var(--primary-color); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s ease, background 0.2s; padding: 0; }
.search-submit-modern svg { stroke: white; width: 18px; height: 18px; }
.search-submit-modern:hover { background: var(--primary-dark); transform: translateY(-50%) scale(1.1); }
@media (max-width: 768px) { .search-container-modern { max-width: 90%; margin-top: 5px; } }


/* =========================================
   12. COMMENTAIRES
   ========================================= */
.giganews-comments-wrapper { background: white; padding: 40px; margin: 50px auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); max-width: 800px; }
.comments-title, .comment-reply-title { font-size: 1.5rem; font-family: 'Merriweather', serif; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; position: relative; }
.comments-title::after, .comment-reply-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 50px; height: 2px; background: var(--primary-color); }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-body { position: relative; padding-left: 70px; margin-bottom: 30px; }
.comment-body .avatar { position: absolute; left: 0; top: 5px; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #eee; }
.comment-meta { margin-bottom: 10px; font-size: 0.85rem; color: #999; }
.fn { font-style: normal; font-weight: 800; font-size: 1rem; color: var(--text-dark); margin-right: 10px; }
.comment-content p { font-size: 0.95rem; line-height: 1.6; color: #444; margin-bottom: 10px; }
.comment-reply-link { font-size: 0.75rem; font-weight: bold; text-transform: uppercase; color: var(--primary-color); border: 1px solid var(--primary-color); padding: 4px 12px; border-radius: 20px; transition: all 0.2s; }
.comment-reply-link:hover { background: var(--primary-color); color: white; text-decoration: none; }
.children { list-style: none; margin-left: 20px; border-left: 2px solid #eee; padding-left: 20px; }
.comment-respond { margin-top: 40px; background: #f9f9f9; padding: 30px; border-radius: var(--radius); }
.comment-form { display: grid; gap: 15px; }
.comment-notes { font-size: 0.8rem; color: #888; margin-bottom: 15px; }
.comment-form label { display: block; font-weight: bold; font-size: 0.85rem; margin-bottom: 5px; color: #555; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; background: white; font-family: inherit; transition: border 0.3s; }
.comment-form textarea { height: 120px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #666; }
.comment-form-cookies-consent input { width: auto !important; }
.form-submit .submit { background: var(--primary-color); color: white; border: none; padding: 12px 30px; font-size: 1rem; font-weight: bold; border-radius: 50px; cursor: pointer; transition: transform 0.2s, background 0.2s; margin-top: 10px; }
.form-submit .submit:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3); }


/* =========================================
   13. DASHBOARD
   ========================================= */
.dashboard-layout { display: flex; gap: 40px; align-items: flex-start; }
.dash-sidebar { flex: 0 0 280px; background: white; border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.user-brief { background: #222; color: white; padding: 30px 20px; text-align: center; }
.dash-avatar img { border-radius: 50%; border: 3px solid var(--primary-color); margin: 0 auto 15px auto; display: block; }
.user-brief h3 { color: white; margin: 0; font-size: 1.2rem; }
.user-role { font-size: 0.8rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.dash-nav { padding: 10px 0; }
.dash-nav a { display: block; padding: 15px 25px; color: var(--text-dark); font-weight: 500; transition: 0.2s; border-left: 4px solid transparent; }
.dash-nav a:hover { background: #f9f9f9; padding-left: 30px; }
.dash-nav a.active { background: #fff5f5; color: var(--primary-color); border-left-color: var(--primary-color); font-weight: bold; }
.dash-nav a.logout-link { color: #d63031; border-top: 1px solid #eee; margin-top: 10px; }
.dash-nav a.logout-link:hover { background: #ffe6e6; }
.dash-content { flex: 1; }
.dash-card { background: white; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-soft); margin-bottom: 30px; }
.welcome-card { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); color: white; }
.welcome-card h2 { color: white; margin-bottom: 10px; }
.welcome-card p { opacity: 0.9; font-size: 1.1rem; }
.dash-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat-box { background: white; padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow-soft); text-align: center; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 900; color: var(--primary-color); line-height: 1; }
.stat-label { color: #888; text-transform: uppercase; font-size: 0.8rem; font-weight: bold; }
.dash-form label { display: block; font-weight: bold; margin-bottom: 8px; color: #444; }
.dash-form input, .dash-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 20px; font-family: inherit; }
.dash-form textarea { height: 100px; resize: vertical; }
.btn-save { background: #111; color: white; padding: 15px 30px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-save:hover { background: var(--primary-color); }
.user-comments-list { list-style: none; }
.user-comments-list li { padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.user-comments-list .comment-date { font-size: 0.8rem; color: #999; display: block; margin-bottom: 5px; }
.user-comments-list .comment-text { font-style: italic; color: #333; margin-bottom: 5px; }
.user-comments-list .comment-link { font-size: 0.85rem; font-weight: bold; color: var(--primary-color); }
@media (max-width: 900px) { .dashboard-layout { flex-direction: column; } .dash-sidebar { width: 100%; } .dash-stats-grid { grid-template-columns: 1fr; } }


/* =========================================
   14. ÉDITEUR FRONTEND
   ========================================= */
.giganews-editor-container { max-width: 960px; margin: 50px auto; background: #ffffff; padding: 50px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: 1px solid #e5e5e5; }
.editor-row { margin-bottom: 25px; }
.giganews-title-field { width: 100%; padding: 15px 0; font-family: 'Merriweather', serif; font-size: 2.2rem; font-weight: 700; color: #111; border: none; border-bottom: 2px solid #eee; outline: none; background: transparent; transition: 0.3s; }
.giganews-title-field:focus { border-bottom-color: var(--primary-color); }
.giganews-title-field::placeholder { color: #ccc; font-weight: 300; }
div#wp-giganews_frontend_editor-wrap { border: 1px solid #ddd !important; border-radius: 8px !important; box-shadow: none !important; background-color: #fff !important; }
div#wp-giganews_frontend_editor-editor-tools { background-color: #f5f5f5 !important; border-bottom: 1px solid #ddd !important; padding: 10px !important; }
div#wp-giganews_frontend_editor-media-buttons { margin-bottom: 10px !important; }
div#wp-giganews_frontend_editor-media-buttons .button { background: #fff !important; border: 1px solid #ccc !important; color: #555 !important; border-radius: 4px !important; font-weight: 600 !important; text-transform: uppercase; font-size: 11px !important; box-shadow: none !important; transition: 0.2s; }
div#wp-giganews_frontend_editor-media-buttons .button:hover { border-color: var(--primary-color) !important; color: var(--primary-color) !important; }
textarea#giganews_frontend_editor { font-family: 'Roboto', sans-serif !important; font-size: 16px !important; line-height: 1.6 !important; color: #333 !important; background: #fff !important; border: none !important; padding: 20px !important; box-shadow: none !important; min-height: 400px !important; }
div#wp-giganews_frontend_editor-editor-container .mce-statusbar { border-top: 1px solid #eee !important; background: #f9f9f9 !important; }
.footer-row { text-align: right; margin-top: 30px; border-top: 1px solid #eee; padding-top: 20px; }
.giganews-publish-btn { background: var(--primary-color); color: white; font-size: 1.1rem; font-weight: bold; padding: 14px 40px; border: none; border-radius: 50px; cursor: pointer; box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3); transition: all 0.3s ease; }
.giganews-publish-btn:hover { background: #a00000; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(204, 0, 0, 0.4); }


/* =========================================
   15. PAYWALL
   ========================================= */
.gn-vip-overlay { position: relative; margin: 40px 0; background: transparent; overflow: hidden; }
.vip-content-blur { font-size: 1.15rem; line-height: 1.8; color: var(--text-grey); padding: 0; margin-bottom: 0; position: relative; -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%); mask-image: linear-gradient(to bottom, black 50%, transparent 100%); max-height: 250px; overflow: hidden; }
.vip-lock-box { position: relative; margin-top: -80px; z-index: 10; background: #ffffff; border-radius: 12px; padding: 50px 40px; text-align: center; box-shadow: 0 -10px 40px rgba(0,0,0,0.05); border: 1px solid var(--border-color); border-top: 4px solid var(--primary-color); max-width: 650px; margin-left: auto; margin-right: auto; }
.vip-badge { background: linear-gradient(45deg, #FFD700, #ffb347); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3); }
.lock-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; background: #fff5f5; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-left: auto; margin-right: auto; }
.vip-lock-box h3 { font-family: 'Merriweather', serif; font-size: 1.6rem; margin-bottom: 10px; color: #1a202c; }
.vip-lock-box p { font-size: 1.05rem; color: #718096; margin-bottom: 30px; line-height: 1.6; max-width: 90%; margin-left: auto; margin-right: auto; }
.vip-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.vip-actions a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 50px; font-weight: 700; font-size: 0.95rem; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-vip-login { background: white; color: #4a5568; border: 2px solid #e2e8f0; }
.btn-vip-login:hover { border-color: #cbd5e0; background: #f7fafc; color: #2d3748; transform: translateY(-2px); }
.btn-vip-sub { background: var(--primary-color); color: white !important; border: 2px solid var(--primary-color); box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3); }
.btn-vip-sub:hover { background: #000000; border-color: #000000; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
@media (max-width: 600px) { .vip-lock-box { padding: 30px 20px; } .vip-actions { flex-direction: column; gap: 10px; } .vip-actions a { width: 100%; justify-content: center; } }
/* =========================================
   ELEMENTOR SHORTCODE STYLES
   ========================================= */

/* GRILLE (Vertical) */
.gn-elementor-posts.gn-layout-grid {
    display: grid;
    gap: 30px;
}
.gn-elementor-posts.gn-layout-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gn-elementor-posts.gn-layout-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gn-elementor-posts.gn-layout-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* LISTE (Horizontal) */
.gn-elementor-posts.gn-layout-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.gn-elementor-posts.gn-layout-list .gn-ele-item {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.gn-elementor-posts.gn-layout-list .gn-ele-thumb {
    width: 35%;
    flex-shrink: 0;
}

/* Style de la carte commune */
.gn-ele-item { background: white; border-radius: 8px; overflow: hidden; transition: 0.3s; }
.gn-layout-grid .gn-ele-item { box-shadow: 0 5px 15px rgba(0,0,0,0.05); height: 100%; }
.gn-layout-grid .gn-ele-item:hover { transform: translateY(-5px); }

.gn-ele-thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; display: block; }
.gn-ele-content { padding: 20px; }
.gn-ele-date { font-size: 0.8rem; color: #999; display: block; margin-bottom: 5px; }
.gn-ele-title { font-size: 1.2rem; margin: 5px 0 10px 0; line-height: 1.3; }
.gn-ele-title a { color: #111; text-decoration: none; }
.gn-ele-readmore { font-size: 0.85rem; font-weight: bold; color: var(--primary-color); text-transform: uppercase; }

/* Responsive */
@media(max-width: 768px) {
    .gn-elementor-posts.gn-layout-grid { grid-template-columns: 1fr !important; }
    .gn-elementor-posts.gn-layout-list .gn-ele-item { flex-direction: column; }
    .gn-elementor-posts.gn-layout-list .gn-ele-thumb { width: 100%; }
}