/* ==========================================
   COMPONENTS.CSS - TVSpeedy Clean Theme
   ========================================== */

/* ==========================================
   LOGO CSS - Global (toutes pages)
   ========================================== */
.logo-css {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon-svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.logo-icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-brand {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-brand .logo-accent {
    color: var(--accent-primary);
}

.footer-logo-css .logo-brand {
    color: white;
}

.footer-logo-css .logo-brand .logo-accent {
    color: var(--accent-primary);
}

/* Footer logo - taille contrôlée */
.footer-logo-css {
    margin-bottom: 16px;
}

.footer-logo-css .logo-icon-svg {
    width: 34px;
    height: 34px;
}

.footer-about .footer-logo-css + .footer-description {
    margin-top: 0;
}

/* ==========================================
   HEADER
   ========================================== */
.welcome-bar {
    background: var(--gradient-primary);
    padding: 8px 0;
    color: white;
    font-size: 13px;
    text-align: center;
}

.welcome-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.welcome-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
}

.welcome-close:hover { opacity: 1; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 32px;
    width: auto;
}

.main-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu .active a {
    color: var(--text-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
    transition: width 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu .active a::after {
    width: 100%;
}

.desktop-nav,
.header-cta {
    display: none;
}

.header-cta .btn {
    padding: 10px 24px;
    font-size: 13px;
    border-radius: var(--radius-full);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   MOBILE NAV
   ========================================== */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 24px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}

.mobile-nav-panel.active { right: 0; }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-close {
    background: var(--bg-light);
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-nav-close:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.mobile-nav-menu li { margin-bottom: 4px; }

.mobile-nav-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-nav-menu a:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.mobile-cta {
    margin-top: 24px;
    width: 100%;
    text-align: center;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--bg-footer);
    color: rgba(255, 255, 255, 0.8);
    padding: 64px 0 0;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-about .footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-about .logo-img {
    height: 40px;
    width: auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.footer-logo .logo-text { color: white; }

.footer-description {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: rgba(255,255,255,0.6);
}

.footer-social a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-title {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 24px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.footer-links { padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
}

.trust-item i,
.trust-item svg {
    color: var(--accent-primary);
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 4px;
    line-height: 1.6;
}

.footer-disclaimer {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.25) !important;
}

/* ==========================================
   WHATSAPP FLOAT & STICKY
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: 998;
    transition: var(--transition);
    overflow: visible;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-tooltip { display: none; }

.whatsapp-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    background: #25d366;
    padding: 14px 20px;
    z-index: 999;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
}

.whatsapp-mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.whatsapp-mobile-bar i { font-size: 22px; }

body { padding-bottom: 65px; }

.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 997;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ==========================================
   RESPONSIVE - Tablet
   ========================================== */
@media (min-width: 768px) {
    .welcome-bar { font-size: 14px; }
    .header-inner { padding: 16px 0; }
    .logo-icon-svg { width: 38px; height: 38px; }
    .logo-brand { font-size: 23px; }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
    
    .footer-logo,
    .footer-social { justify-content: flex-start; }
    
    .footer-title::after {
        left: 0;
        transform: none;
    }
    
    .footer-trust { gap: 32px; }
    .trust-item { font-size: 14px; }
    
    body { padding-bottom: 0; }
    .whatsapp-mobile-bar { display: none; }
    
    .whatsapp-float {
        display: flex;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .scroll-to-top {
        bottom: 100px;
        right: 30px;
    }
}

/* ==========================================
   RESPONSIVE - Desktop
   ========================================== */
@media (min-width: 992px) {
    .desktop-nav,
    .header-cta { display: flex; }
    .mobile-menu-toggle { display: none; }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 48px;
    }
    
    .site-footer { padding: 80px 0 0; }
    
    .whatsapp-tooltip {
        display: block;
        position: absolute;
        right: 68px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--text-primary);
        color: white;
        padding: 8px 14px;
        border-radius: var(--radius-sm);
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        box-shadow: var(--shadow-md);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        pointer-events: none;
    }
    
    .whatsapp-tooltip::after {
        content: '';
        position: absolute;
        right: -6px;
        top: 50%;
        transform: translateY(-50%);
        border: 6px solid transparent;
        border-left-color: var(--text-primary);
    }
    
    .whatsapp-float:hover .whatsapp-tooltip {
        opacity: 1;
        visibility: visible;
    }
}