:root {
    --primary: #ff4d6d; /* Rose Corail */
    --accent: #7209b7;  /* Violet Royal */
    --bg: #0b0b0e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --primary-glow: rgba(255, 77, 109, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: var(--bg); color: var(--text); line-height: 1.6; font-family: 'Plus Jakarta Sans', sans-serif;}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: 0.4s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-transform: none;
    letter-spacing: -1.5px;
    user-select: none;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.logo:hover { opacity: 0.8; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { text-decoration: none; color: white; font-weight: 500; }

/* Boutons */
button { cursor: pointer; border-radius: 12px; font-weight: 600; transition: 0.3s; }

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white; border: none; padding: 12px 24px;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 77, 109, 0.4); }
.btn-login { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white; padding: 10px 20px; }
.btn-outline { background: rgba(255,255,255,0.1); border: 1px solid white; color: white; padding: 12px 24px; }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex; align-items: center;
    padding: 0 8%;
    background: url('https://image.tmdb.org/t/p/original/m9Y9mS7f97v7S0Xj7o4D2vP9k6F.jpg') center/cover;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, var(--bg) 20%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 60%;
    padding-left: 8%;
    max-width: none;
}

.rating-badge { color: #ffd700; margin-bottom: 15px; font-weight: 600; }

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(255, 77, 109, 0.3);
}

.hero h1 span {
    display: block;
    color: var(--primary);
    margin-top: 10px;
}

.hero-btns { display: flex; gap: 20px; }

.hero-character {
    position: absolute;
    right: 5%;
    bottom: 0;
    height: 85vh;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(255, 77, 109, 0.4));
}

.hero-character img {
    height: 100%;
    width: auto;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 500px;
    opacity: 0.9;
}

/* Style de la Modale */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: 0.3s;
}

.modal-content {
    background: #111116;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: white; font-size: 2rem;
    cursor: pointer; opacity: 0.5;
}

.close-modal:hover { opacity: 1; }
.auth-header h2 { font-size: 1.8rem; margin: 20px 0 10px; }
.auth-header p { font-size: 0.9rem; opacity: 0.6; margin-bottom: 30px; }

/* Reviews Section */
.reviews-section { padding: 80px 8%; }
.section-header { margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }

.review-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}
.review-card:hover { border-color: var(--accent); }

.user-info { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.avatar { width: 45px; height: 45px; border-radius: 50%; background: var(--primary); }
.avatar.blue { background: #4cc9f0; }
.user-info h4 { font-size: 1rem; }
.user-info span { font-size: 0.8rem; opacity: 0.7; }

/* CTA Section */
.cta-section { padding: 80px 8%; text-align: center; }
.cta-box {
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    padding: 60px; border-radius: 30px; border: 1px solid var(--accent);
}
.btn-primary.large { margin-top: 30px; padding: 18px 40px; font-size: 1.1rem; }

/* Animation de fond */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 77, 109, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(114, 9, 183, 0.1) 0%, transparent 40%);
    z-index: -1;
    animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Section Features */
.features-section {
    padding: 60px 8%;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

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

.feature-item {
    background: rgba(26, 26, 31, 0.8);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 77, 109, 0.1);
}

.icon-circle {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-block;
    padding: 15px;
    background: rgba(255, 77, 109, 0.1);
    border-radius: 50%;
}

.feature-item h3 { margin-bottom: 10px; font-weight: 700; }
.feature-item p { font-size: 0.9rem; opacity: 0.7; }

/* ============================================================
   SECTION MOBILE (TÉLÉPHONE) - NOUVEAU CODE APPLIQUÉ
   ============================================================ */
@media (max-width: 768px) {
    /* 1. Navbar Mobile */
    .navbar {
        padding: 15px 5%;
        background: var(--bg); /* Fond plein sur mobile pour lisibilité */
    }

    .logo { font-size: 1.8rem; }
    .nav-right { gap: 8px; }
    .nav-link { display: none; } /* On cache "Découvrir" pour gagner de la place */
    
    .btn-login, .btn-primary { 
        padding: 8px 15px; 
        font-size: 0.85rem; 
        border-radius: 10px;
    }

    /* 2. Hero Mobile */
 .hero {
        flex-direction: column;
        height: auto;
        padding: 80px 5% 40px 5%; /* Réduit le padding pour remonter le contenu */
        text-align: center;
    }

    .hero-content {
        width: 100%;
        padding-left: 0;
        margin-bottom: 20px; /* Réduit l'espace avec l'image */
    }

    .hero h1 {
        font-size: 2.2rem; /* Réduit pour éviter que ça ne déborde */
        margin-bottom: 15px;
    }

    .hero-character {
        position: relative;
        height: 250px; /* Fixe une hauteur maximale pour l'image */
        width: 100%;
        margin-top: 10px;
    }

    .hero-character img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    .hero-btns {
        justify-content: center;
        gap: 10px;
    }
}

    /* 3. Sections & Grilles Mobile */
    .features-section { margin-top: 0; padding: 40px 5%; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }

    .reviews-section { padding: 40px 5%; }
    .reviews-grid { grid-template-columns: 1fr; }

    .cta-box { padding: 40px 20px; }
    .cta-box h2 { font-size: 1.5rem; }

    /* 4. Modale Mobile */
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
}

/* --- COMPLÉMENT CONNEXION / PROFIL (Stay) --- */

.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-small {
    width: 30px; height: 30px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}

.welcome-txt { font-size: 0.85rem; font-weight: 500; color: white; }

.btn-logout {
    background: none; border: none; color: white;
    font-size: 1.1rem; cursor: pointer; opacity: 0.6;
    transition: 0.3s; margin-left: 5px; display: flex; align-items: center;
}
.btn-logout:hover { opacity: 1; color: var(--primary); }

.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input {
    width: 100%; padding: 14px;
    background: #1a1a20; border: 1px solid #333;
    border-radius: 12px; color: white; outline: none; transition: 0.3s;
}
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(255, 77, 109, 0.2); }

.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; cursor: pointer; }
.auth-footer a:hover { text-decoration: underline; }