/* assets/css/main.css */
/* VARIABLES COULEURS */
:root {
    --primary-red: #d32f2f;
    --primary-blue: #1976d2;
    --dark-red: #b71c1c;
    --dark-blue: #0d47a1;
    --light-gray: #f5f5f5;
    --text-dark: #212121;
    --text-light: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER STYLES */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo span:first-child {
    color: #ffeb3b;
}

/* Menu principal */
.main-menu {
    display: flex;
    gap: 1.5rem;
    transition: all 0.4s ease;
}

.main-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-menu a:hover, 
.main-menu a.active {
    color: white;
    border-bottom: 2px solid white;
}

/* Section droite */
.right-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-login {
    background: transparent;
    color: white;
    border: 1px solid white;
}

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

.lang-switcher button {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* HERO SECTION */
.hero {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(25, 118, 210, 0.7), rgba(211, 47, 47, 0.7)), 
                url('/MODERN_TV/assets/images/home.jpg') center/cover;
    display: flex;
    align-items: center;
    color: white;
    padding: 0 1rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.2rem);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    transition: all 0.3s;
}

.cta-button:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

/* FEATURES SECTION */
.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
}

.live-icon {
    background: var(--primary-blue);
    -webkit-mask: url('assets/icons/live.svg') center/contain no-repeat;
    mask: url('assets/icons/live.svg') center/contain no-repeat;
}

.vod-icon {
    background: var(--primary-red);
    -webkit-mask: url('assets/icons/vod.svg') center/contain no-repeat;
    mask: url('assets/icons/vod.svg') center/contain no-repeat;
}

.program-icon {
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));
    -webkit-mask: url('assets/icons/schedule.svg') center/contain no-repeat;
    mask: url('assets/icons/schedule.svg') center/contain no-repeat;
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* FOOTER */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Menu Hamburger (mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        z-index: 1000;
    }
    
    .main-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .right-section {
        position: fixed;
        bottom: 2rem;
        left: 0;
        right: 0;
        justify-content: center;
        z-index: 1001;
    }
    
    .lang-switcher {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .features {
        padding: 3rem 1rem;
    }
    
    .feature-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem;
    }
}