/**
 * ActusWord.com - Styles Modernes 2026
 * Bannière et Menu Navigation Modernisés
 */

/* Import de la police moderne */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --accent-orange: #ff6b35;
    --dark-gradient-start: #1a1a1a;
    --dark-gradient-end: #2d2d2d;
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

/* ===========================================
   BANNIÈRE MODERNE - Style Actualité
   =========================================== */
.hero-banner {
    background: linear-gradient(135deg, var(--dark-gradient-start) 0%, var(--dark-gradient-end) 100%);
    padding: 40px 0;
    position: relative;
    max-height: 200px;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-banner .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    padding: 20px 0;
}

.hero-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.hero-accent-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange) 0%, #ff8c5a 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* ===========================================
   MENU NAVIGATION STICKY
   =========================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.site-header.scrolled {
    box-shadow: var(--shadow-medium);
}

.site-header.scrolled .header-top {
    height: 60px;
    padding: 8px 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 12px 0;
    gap: 30px;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.site-header.scrolled .logo img {
    height: 35px;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    transition: font-size 0.3s ease;
}

.site-header.scrolled .logo-text {
    font-size: 1.2rem;
}

/* ===========================================
   NAVIGATION PRINCIPALE
   =========================================== */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
}

.nav-item.active .nav-link {
    background-color: var(--primary-color);
    color: #ffffff;
}

.nav-icon {
    font-size: 1.1rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-item.has-mega-menu:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===========================================
   MEGA MENU DROPDOWN
   =========================================== */
.mega-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    min-width: 500px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid var(--border-color);
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

.nav-item.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    top: calc(100% + 8px);
}

.mega-menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mega-menu-header {
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 12px;
}

.mega-menu-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.mega-menu-header p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mega-menu-item:hover {
    background-color: rgba(37, 99, 235, 0.05);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.mega-item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(255, 107, 53, 0.1));
    border-radius: 8px;
}

.mega-item-content strong {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.mega-item-content small {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* ===========================================
   FIL D'ARIANE (BREADCRUMB)
   =========================================== */
.breadcrumb-wrapper {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* ===========================================
   ACTIONS HEADER (Search, Mobile Menu)
   =========================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toggle,
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===========================================
   BARRE DE RECHERCHE
   =========================================== */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.search-bar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-bar-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-icon {
    color: var(--text-light);
}

#searchInput {
    flex: 1;
    border: none;
    background: none;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
}

#searchInput::placeholder {
    color: var(--text-light);
}

.search-submit-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit-btn:hover {
    background: var(--secondary-color);
    transform: translateX(2px);
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.search-close:hover {
    color: var(--error-color);
    transform: rotate(90deg);
}

/* ===========================================
   RESPONSIVE - MOBILE
   =========================================== */
@media (max-width: 992px) {
    /* Bannière responsive */
    .hero-banner {
        padding: 30px 0;
        max-height: 160px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    /* Menu mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow-strong);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
    }
    
    /* Mega menu mobile */
    .mega-menu {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        padding: 16px;
        box-shadow: none;
        border: 1px solid var(--border-color);
        background: var(--bg-light);
    }
    
    .mega-menu::before {
        display: none;
    }
    
    .nav-item.has-mega-menu .mega-menu {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-item.has-mega-menu.active .mega-menu {
        opacity: 1;
        max-height: 1000px;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
    
    /* Overlay pour fermer le menu */
    .menu-overlay {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    /* Bannière très petite sur mobile */
    .hero-banner {
        padding: 20px 0;
        max-height: 140px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .site-header.scrolled .header-top {
        height: 55px;
    }
    
    .header-top {
        height: 70px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .site-header.scrolled .logo img {
        height: 28px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .search-bar-content {
        padding: 0 16px;
    }
    
    .breadcrumb-wrapper {
        padding: 8px 0;
    }
}

/* ===========================================
   ANIMATIONS ET TRANSITIONS
   =========================================== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu {
    animation: slideInDown 0.3s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
    background: linear-gradient(135deg, var(--dark-gradient-start) 0%, var(--dark-gradient-end) 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange) 0%, #ff8c5a 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-description {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-left: 4px;
}

.footer-newsletter-text {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-submit {
    padding: 12px 20px;
    background: var(--accent-orange);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.newsletter-submit:hover {
    background: #ff8c5a;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-copyright,
.footer-credits {
    color: #b0b0b0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
}
