/* =========================
   DS FORAGE - ULTRA FINAL FUSED + NETFLIX UI
   (SAFE VERSION - NO DELETION OF FEATURES)
========================= */

:root {
    --primary: #2753b4;
    --secondary: #0ea5e9;
    --dark: #0f172a;
    --card: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --radius: 12px;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background: var(--dark);
    color: var(--text);
    line-height: 1.5;
}

/* ================= HEADER (GLASS + FIX) ================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 10000;

    background: rgba(11,18,32,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1f2937;
}

/* ================= LOGO ================= */
.logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

/* ================= NAV ================= */
.nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    transition: all 0.4s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
}

.nav-list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

/* ================= USER ================= */
.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

#userBtn {
    background: transparent;
    border: 1px solid #334155;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 45px;
    background: var(--card);
    border-radius: var(--radius);
    padding: 10px;
    display: none;
    flex-direction: column;
    min-width: 160px;
    z-index: 99999;
    border: 1px solid rgba(255,255,255,0.08);
    animation: fadeIn 0.25s ease;
}

.dropdown-menu.show {
    display: flex;
}

/* ================= BURGER ================= */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: white;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* ================= HERO (NETFLIX STYLE) ================= */
.hero {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;

    border-radius: 18px;
    background: linear-gradient(135deg, #0b1220, #111827);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

.hero p {
    opacity: 0.85;
    margin-top: 10px;
}

/* ================= BUTTON ================= */
.btn {
    background: var(--primary);
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    display: inline-block;

    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(14,165,233,0.3);
}

/* ================= GRID (FIX IMAGES) ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* ================= IMAGES (ANTI CUT FINAL FIX) ================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain !important;
}

.grid img,
.card img {
    width: 100%;
    transition: transform 0.4s ease, filter 0.4s ease;
    border-radius: 14px;
}

.grid img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* ================= VIDEO FIX ================= */
video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.video-16x9 {
    aspect-ratio: 16 / 9;
}

.video-9x16 {
    aspect-ratio: 9 / 16;
}

/* ================= CAROUSEL (FIX + NETFLIX FEEL) ================= */
.carousel {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: max-content;
    animation: railMove 25s linear infinite;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 auto;
    width: 280px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.carousel-item:hover {
    transform: scale(1.05);
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 14px;
    transition: transform 0.4s ease;
}

.carousel-item img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #1f2937;
    color: var(--muted);
}

/* ================= WHATSAPP ================= */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 12px 16px;
    border-radius: 50px;

    box-shadow: 0 10px 25px rgba(37,211,102,0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ================= ANIMATIONS ================= */
@keyframes railMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .burger {
        display: flex;
    }

    .nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #0b1220;
        flex-direction: column;
        padding: 20px;
        z-index: 15000;
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .carousel-item {
        width: 220px;
    }

    .carousel-item img {
        height: 220px;
    }
}
/* SLIDER PRO */
.slider-pro {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    border-radius: 12px;
}

.slider-img-pro {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

/* boutons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.slider-btn.left {
    left: 10px;
}

.slider-btn.right {
    right: 10px;
}
body {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url("/static/images/mon-background.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
