:root {
    --bg-dark: #0a0a0f;
    --text-light: #e0e0e0;
    --accent-blue: #007bff;
    --accent-yellow: #ffc107;
    --gradient-splus: linear-gradient(45deg, #007bff, #ffc107);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .logo img {
    height: 40px;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--accent-blue);
}

.auth-buttons .btn {
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.btn-login {
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-login:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

.btn-signup {
    background: var(--gradient-splus);
    color: var(--bg-dark);
    border: none;
}

.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('image/unnamed\ \(39\).png') no-repeat center center/cover;
    position: relative;
    padding-top: 80px;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-cta {
    background: var(--gradient-splus);
    color: var(--bg-dark);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
}

.channels-section, .features-section {
    padding: 60px 5%;
    text-align: center;
}

.channels-section h2, .features-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.channels-grid, .features-grid {
    display: grid;
    gap: 30px;
    justify-content: center;
}

.channels-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card {
    background-color: #1a1a2e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    background: var(--gradient-splus);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer {
    background-color: #12121e;
    padding: 40px 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-nav a, .social-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-nav a:hover, .social-links a:hover {
    color: var(--accent-blue);
}

.copyright {
    color: #888;
    font-size: 0.9rem;
}

/* Styles pour le bouton hamburger */
.hamburger-menu {
    display: none; /* Cacher le bouton par défaut */
    cursor: pointer;
    z-index: 1001; /* S'assurer qu'il est au-dessus du menu */
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: 0.4s;
}

/* Styles pour le menu de navigation */
.nav-menu {
    transition: transform 0.3s ease-in-out;
}

/* Rendre le bouton hamburger visible sur les petits écrans */
@media (max-width: 768px) {
    header {
        flex-direction: row; /* Rétablir l'alignement horizontal du header */
        justify-content: space-between;
        align-items: center;
    }
    
    .hamburger-menu {
        display: block; /* Afficher le bouton hamburger */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px; /* Cacher le menu en dehors de l'écran */
        width: 300px;
        height: 100vh;
        background-color: var(--bg-dark);
        padding-top: 80px;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        padding-left: 20px;
    }

    .nav-menu ul li {
        margin: 20px 0;
        width: 100%;
    }

    .nav-menu ul li a {
        font-size: 1.2rem;
    }

    .auth-buttons {
        display: none; /* Cacher les boutons sur mobile pour les déplacer dans le menu */
    }
}

/* Classe pour afficher le menu */
.nav-menu.active {
    transform: translateX(-300px); /* Faire glisser le menu pour le rendre visible */
}

/* Animation du bouton hamburger en croix */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Centrage vertical et horizontal de la section de formulaire */
.form-section {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center;    /* Centre horizontalement */
    height: calc(100vh - 80px); /* Ajuste la hauteur pour ne pas être caché par le header */
    max-width: 500px;
    margin: auto; /* Ancien mais toujours utile pour centrer l'ensemble sur la largeur */
    padding: 40px;
    background-color: #1a1a2e;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Ajustement pour le formulaire lui-même */
.form-section form {
    width: 100%;
    text-align: left; /* Aligner le texte des labels à gauche */
}

.channels-grid img{

    width: 180px;
    height: 120px;
    border-radius: 8px;
}

.channels-grid a{

    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    /* Le menu de navigation se réorganise */
    header {
        flex-direction: column;
        align-items: center;
        padding: 15px 5%;
    }

    header nav {
        margin-top: 15px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 5px 0;
    }

    .auth-buttons {
        margin-top: 15px;
    }

    /* Le texte de la section 'hero' est plus petit */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Les grilles se transforment en une seule colonne */
    .channels-grid, .features-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {
    header {
        padding: 10px 5%;
    }

    header .logo img {
        height: 30px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn-cta {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .channels-section h2, .features-section h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}