/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  GeneratePress Child Theme - magazinehomme.fr
 Author:       wp-sites-builder
 Template:     generatepress
 Version:      1.1.0
*/

/* ==========================================================================
   1. EN-TÊTE & NAVIGATION SOMBRE (Toutes les pages & mobile)
   ========================================================================== */
.site-header {
    background-color: #ffffff !important;
}

.main-navigation, 
.main-navigation .main-nav ul li a,
.navigation-search input[type="search"] {
    background-color: #111827 !important;
    color: #ffffff !important;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: #3b82f6 !important;
    background-color: transparent !important;
}

/* ==========================================================================
   2. GRAND HERO LUXE (Home uniquement)
   ========================================================================== */
.home-hero-banner-wrapper {
    width: 100%;
    background-color: #0b0f17;
    margin: 0 0 35px 0;
    padding: 0;
}
.home-hero-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 480px;
    background: linear-gradient(90deg, rgba(11, 15, 23, 0.95) 0%, rgba(11, 15, 23, 0.75) 50%, rgba(11, 15, 23, 0.3) 100%), 
                url('/wp-content/uploads/hero-luxe-homme.jpg') center right / cover no-repeat;
    border-radius: 0;
    display: flex;
    align-items: center;
    padding: 60px 40px;
    box-sizing: border-box;
}
.home-hero-content {
    max-width: 580px;
}
.hero-badge {
    display: inline-block;
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.home-hero-content h1 {
    color: #ffffff !important;
    font-size: clamp(32px, 4vw, 46px) !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.03em;
}
.home-hero-content p {
    color: #cbd5e1 !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
    margin-bottom: 28px !important;
}
.hero-newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
}
.hero-newsletter-form input[type="email"] {
    flex: 1;
    padding: 13px 16px !important;
    border-radius: 6px !important;
    border: 1px solid #334155 !important;
    background-color: rgba(15, 23, 42, 0.85) !important;
    color: #ffffff !important;
    font-size: 15px !important;
}
.hero-newsletter-form button {
    padding: 13px 24px !important;
    border-radius: 6px !important;
    border: none !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease;
}
.hero-newsletter-form button:hover {
    background-color: #1d4ed8 !important;
}

@media (max-width: 768px) {
    .home-hero-banner-inner {
        min-height: 380px;
        padding: 40px 20px;
        background: linear-gradient(180deg, rgba(11, 15, 23, 0.95) 0%, rgba(11, 15, 23, 0.85) 100%), 
                    url('/wp-content/uploads/hero-luxe-homme.jpg') center center / cover no-repeat;
    }
    .hero-newsletter-form {
        flex-direction: column;
    }
}

/* ==========================================================================
   3. IMAGES ARTICLES & FLUSH SINGLE POST (Correctifs formats)
   ========================================================================== */
/* Formats images sur la grille home & archives */
.post-image img, 
.wp-block-post-featured-image img {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
}

/* Single Post image bord-à-bord (100% flush haut-gauche-droite) */
.single .inside-article {
    padding-top: 0 !important;
    overflow: hidden;
}
.single .inside-article .post-image {
    margin-left: -40px !important;
    margin-right: -40px !important;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
}
.single .inside-article .post-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
}
@media (max-width: 768px) {
    .single .inside-article .post-image {
        margin-left: -20px !important;
        margin-right: -20px !important;
    }
}

/* ==========================================================================
   4. SIDEBAR & WIDGET "À PROPOS"
   ========================================================================== */
.sidebar .widget {
    box-sizing: border-box !important;
    width: 100% !important;
}
.sidebar .widget:first-child {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    padding: 24px !important;
    border-radius: 8px !important;
}
.sidebar .widget:first-child h4 {
    color: #0f172a !important;
}

/* ==========================================================================
   5. PIED DE PAGE DARK 100% WIDTH & SÉPARATION LIGNES BLEUES
   ========================================================================== */
.site-footer {
    width: 100% !important;
    background-color: #111827 !important;
    color: #9ca3af !important;
}
.site-footer .footer-widgets-container,
.site-footer .inside-footer-widgets {
    background-color: #111827 !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.site-footer a {
    color: #d1d5db !important;
}
.site-footer a:hover {
    color: #3b82f6 !important;
}

/* Ligne Logo full-width au-dessus */
.footer-logo-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 40px 20px 40px;
    border-bottom: 1px solid #1f2937;
    box-sizing: border-box;
}
.footer-logo-brand {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -0.04em;
    color: #ffffff !important;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}
.footer-logo-brand span {
    color: #3b82f6;
}

/* Alignement des 2 colonnes du footer & ligne bleue sous les titres uniquement */
.footer-widgets .widget-title,
.footer-widgets h4 {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
    border-bottom: 2px solid #1e73be !important;
    padding-bottom: 6px !important;
}
