/* =========================================
   1. RESET ET BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeInUp 1s ease-out forwards;
}

/* =========================================
   2. EN-TÊTE (HEADER) ET NAVIGATION
========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 70px;
    width: auto;
    max-width: 100%;
}

@keyframes textDance {
    0%   { transform: translateY(0) rotate(0deg); color: #333; }
    25%  { transform: translateY(-3px) translateX(-2px) rotate(-4deg); color: #e50914; }
    50%  { transform: translateY(2px) translateX(2px) rotate(4deg); color: #1ed760; }
    75%  { transform: translateY(-2px) translateX(0) rotate(-2deg); color: #25D366; }
    100% { transform: translateY(0) rotate(0deg); color: #333; }
}

.logo-text {
    font-size: 1.3rem; 
    font-weight: 400; 
    display: inline-block; 
    animation: textDance 5s infinite ease-in-out;
}

.menu-principal ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu-principal a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.menu-principal a i {
    font-size: 1.2rem;
    color: #555;
    transition: color 0.3s;
}

/* NEUTRALISATION TOTALE DES EFFETS ROUGES AU CLIC/TAP */
.nav-link:active,
.nav-link:focus {
    color: inherit !important;
    background-color: inherit !important;
    outline: none;
    box-shadow: none;
}

/* LIENS VISITÉS - PAS DE COULEUR SPÉCIALE */
.nav-link:visited {
    color: inherit;
}

/* LIEN ACTIF (FOND NOIR / TEXTE BLANC) */
.active-nav,
.active-nav i,
.active-nav span {
    background-color: black !important;
    color: white !important;
}

/* LE HOVER N'ÉCRASE PAS L'ÉTAT ACTIF */
.nav-link.active-nav:hover,
.nav-link.active-nav:hover i,
.nav-link.active-nav:hover span {
    background-color: black !important;
    color: white !important;
}

/* =========================================
   BOUTON WHATSAPP
========================================= */
@keyframes pulseShake {
    0%   { transform: scale(1); box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); }
    50%  { transform: scale(1.05) rotate(2deg); box-shadow: 0 0 20px rgba(37, 211, 102, 0.7); }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); }
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
}

.animated-btn {
    animation: pulseShake 2s infinite;
}

/* =========================================
   3. SECTION ACCUEIL (HERO SLIDER)
========================================= */
.hero {
    position: relative;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden; 
}

.bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; 
    transition: opacity 1.5s ease-in-out, transform 6s ease-out; 
    transform: scale(1) translateY(0);
}

.slide.active {
    opacity: 1; 
    transform: scale(1.08) translateY(-3%);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); 
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1; 
}

.hero h1 {
    font-size: 3.5rem;
    color: #ffffff; 
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.highlight { color: #e50914; }

.hero p {
    color: #e0e0e0; 
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-badges span {
    background: rgba(255, 255, 255, 0.1); 
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px); 
}

.hero-badges span i { color: #e50914; }

/* =========================================
   4. SECTION OFFRES (CARROUSEL DES CARTES)
========================================= */
.offres { padding: 80px 0; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: #111;
}

.carousel-container {
    display: flex;
    gap: 40px;
    padding: 20px 5%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar { display: none; }

.carte-produit {
    flex: 0 0 340px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.carte-produit:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.netflix .carte-header { background-color: #e50914; }
.spotify .carte-header { background-color: #1ed760; }

.carte-header {
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.carte-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.badge {
    background: rgba(255,255,255,0.25);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.carte-body { padding: 30px 25px; }

.produit-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.prix-bas {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.netflix .prix-bas { color: #e50914; }
.spotify .prix-bas { color: #1ed760; }
.apple-music .prix-bas { color: #555; }

/* CARTES "COMING SOON" GRISÉES */
.coming-soon {
    filter: none !important;
}
.coming-soon .carte-header,
.coming-soon .mini-slider-container,
.coming-soon .prix-bas,
.coming-soon .features {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.coming-soon:hover .carte-header,
.coming-soon:hover .mini-slider-container,
.coming-soon:hover .prix-bas,
.coming-soon:hover .features {
    opacity: 0.8;
}
.coming-soon .btn-preorder {
    filter: none !important;
    opacity: 1 !important;
}

.apple-music .carte-header { background-color: #fa243c; }
.apple-music .features li i { color: #555; }
.apple-music .btn-preorder { 
    background-color: #fa243c; 
    color: white; 
}
.apple-music .btn-preorder:hover { 
    background-color: #d11a2d; 
    transform: scale(1.02);
}

.features {
    list-style: none;
    margin-bottom: 30px;
}

.features li {
    margin-bottom: 15px;
    color: #444;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features li i {
    color: #25D366;
    font-size: 1.2rem;
}

.btn-commander {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.2s;
}

.netflix .btn-commander { background-color: #e50914; }
.netflix .btn-commander:hover { background-color: #b20710; transform: scale(1.02); }

.spotify .btn-commander { background-color: #1ed760; color: #111; }
.spotify .btn-commander:hover { background-color: #1aa34a; transform: scale(1.02); }

@keyframes softPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}
.animated-btn-soft {
    animation: softPulse 2.5s infinite ease-in-out;
}

.demande-speciale {
    text-align: center;
    margin-top: 30px;
    padding: 20px 5%;
}
.demande-speciale p {
    font-weight: 500;
    color: #666;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.btn-introuvable {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #111;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-introuvable:hover {
    background-color: #333;
}

/* =========================================
   5. MODE MOBILE FIRST (SMARTPHONES)
========================================= */
@media (max-width: 768px) {
    header {
        flex-direction: column; 
        padding: 15px 5% 10px;
    }
    
    .logo { 
        justify-content: center; 
        margin-bottom: 10px;
    }
    .logo img { 
        height: 50px; 
        width: auto;
    } 
    .logo-text { font-size: 1.1rem; } 

    .menu-principal {
        width: 100%;
        margin-top: 5px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    
    .menu-principal ul {
        display: flex;
        justify-content: space-between; 
        width: 100%;
        gap: 0;
    }
    
    .menu-principal li {
        flex: 1;
        text-align: center;
    }
    
    .menu-principal a {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.8rem;
        padding: 8px 4px;
    }
    
    .menu-principal a i {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    @keyframes bounceMobile {
        0%, 100% { transform: translateY(0); box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); }
        50% { transform: translateY(-15px); box-shadow: 0 15px 20px rgba(37, 211, 102, 0.5); }
    }

    .btn-whatsapp {
        position: fixed;
        bottom: 30px;
        left: 20px; 
        z-index: 9999; 
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        animation: bounceMobile 1.5s infinite ease-in-out !important; 
    }
    
    .btn-whatsapp span { display: none; }
    
    .btn-whatsapp i {
        font-size: 2.2rem;
        margin: 0;
    }

    .hero { min-height: 60vh; padding-top: 50px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }

    .carte-produit {
        flex: 0 0 85vw;
    }
}

/* =========================================
   6. NOUVELLES CARTES, DEEZER, VPN & JEUX VIDÉO
========================================= */
.prime .carte-header { background-color: #00A8E1; }
.prime .features li i { color: #555; }
.prime .btn-preorder { background-color: #00A8E1; color: white; }
.prime .btn-preorder:hover { background-color: #0082b3; transform: scale(1.02); }

.disney .carte-header { background-color: #113CCF; }
.disney .features li i { color: #555; }
.disney .btn-preorder { background-color: #113CCF; color: white; }
.disney .btn-preorder:hover { background-color: #0c2b99; transform: scale(1.02); }

.youtube .carte-header { background-color: #FF0000; }
.youtube .features li i { color: #555; }
.youtube .btn-preorder { background-color: #FF0000; color: white; }
.youtube .btn-preorder:hover { background-color: #cc0000; transform: scale(1.02); }

.deezer .carte-header { background-color: #A238FF; }
.deezer .features li i { color: #555; }
.deezer .btn-preorder { background-color: #A238FF; color: white; }
.deezer .btn-preorder:hover { background-color: #8A2BE2; transform: scale(1.02); }

.nordvpn .carte-header { background-color: #4687FF; }
.nordvpn .features li i { color: #555; }
.nordvpn .btn-preorder { background-color: #4687FF; color: white; }
.nordvpn .btn-preorder:hover { background-color: #0056b3; transform: scale(1.02); }

.jeux-video .carte-header { background-color: #FF4500; }
.jeux-video .features li i { color: #555; }
.jeux-video .btn-preorder { background-color: #FF4500; color: white; }
.jeux-video .btn-preorder:hover { background-color: #cc3700; transform: scale(1.02); }

.carte-large {
    flex: 0 0 420px;
}

@media (max-width: 768px) {
    .carte-large { flex: 0 0 90vw; }
}

.jeux-slider-container {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.slide-jeu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide-jeu.active {
    opacity: 1;
}

.coming-soon .slide-jeu {
    filter: grayscale(100%);
}