﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* -------------------- HEADER -------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 4vw;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
    backdrop-filter: blur(6px);
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #e50914;
}

.nav-links {
    display: flex;
    gap: 1rem;
    margin-right: 1.5rem;
    font-size: 0.9rem;
}

    .nav-links a {
        color: #f5f5f5;
        opacity: 0.85;
    }

        .nav-links a:hover {
            opacity: 1;
        }

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
}

.btn-primary {
    background-color: #e50914;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #f6121d;
    }

/* -------------------- HERO -------------------- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 6rem 6vw 3rem;
    background-image: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.9) 100%), url("https://images.pexels.com/photos/1181675/pexels-photo-1181675.jpeg?auto=compress&cs=tinysrgb&w=1600");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay-blur {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(229,9,20,0.18), transparent 55%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 720px;
    animation: fadeUp 1.1s ease-out both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 0.9rem;
    color: #f5f5f5;
    animation: pulse 2.5s infinite;
}

.hero-title {
    font-size: clamp(2.2rem, 4.2vw, 3.3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: #f0f0f0;
}

.hero-text {
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 1.7rem;
}

/* switch Apprendre / Créateurs */
.hero-toggle {
    display: inline-flex;
    background: rgba(0,0,0,0.7);
    border-radius: 999px;
    padding: 0.2rem;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 1.1rem;
}

    .hero-toggle button {
        border-radius: 999px;
        border: none;
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem;
        background: transparent;
        color: #ccc;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }

        .hero-toggle button.active {
            background: #e50914;
            color: #fff;
        }

.hero-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 520px;
}

.hero-input {
    flex: 1 1 220px;
    padding: 0.7rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.6);
    color: #fff;
    min-width: 140px;
}

    .hero-input::placeholder {
        color: #aaa;
    }

.hero-btn {
    flex: 0 0 auto;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
}

.hero-meta {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #c8c8c8;
}

    .hero-meta strong {
        color: #fff;
    }

/* -------------------- MAIN CONTENT -------------------- */
main {
    margin-top: -4rem;
}

.gradient-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 35%, #000 100%);
    padding-top: 2rem;
}

.section {
    padding: 1rem 4vw 2.3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
}

.section-title {
    font-size: 1.3rem;
}

.section-link {
    font-size: 0.9rem;
    color: #b3b3b3;
}

/* -------------------- CAROUSEL -------------------- */
.row {
    position: relative;
}

.row-inner {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
}

    .row-inner::-webkit-scrollbar {
        height: 6px;
    }

    .row-inner::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.25);
        border-radius: 3px;
    }

/* -------------------- CARTES -------------------- */
.category-card {
    flex: 0 0 260px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at top left, #272727, #111);
    position: relative;
    cursor: pointer;
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.25s ease, background 0.25s ease;
}

    .category-card.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .category-card:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 12px 25px rgba(0,0,0,0.9);
        background: radial-gradient(circle at top left, #333, #181818);
    }

    .category-card.creators {
        border: 1px solid rgba(229,9,20,0.35);
    }

.category-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.category-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.category-subtitle {
    font-size: 0.8rem;
    color: #d6d6d6;
    margin-bottom: 0.6rem;
}

.category-meta {
    font-size: 0.75rem;
    color: #a5a5a5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.category-tag {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.7rem;
}

.category-ribbon {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e50914;
}

/* flèches */
.row-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.6);
    width: 36px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    font-size: 1.4rem;
    border-radius: 3px;
}

.row-btn-left {
    left: -2px;
}

.row-btn-right {
    right: -2px;
}

.row-btn:hover {
    background: rgba(0,0,0,0.85);
}

/* -------------------- FOOTER -------------------- */
footer {
    padding: 2rem 4vw 3rem;
    color: #757575;
    font-size: 0.8rem;
}

    footer a {
        color: #757575;
    }

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

/* -------------------- ANIMATIONS KEYFRAMES -------------------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(229, 9, 20, 0.0);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 12px rgba(229, 9, 20, 0.35);
    }
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 4vw;
    }

    .hero {
        min-height: 70vh;
        padding: 5rem 5vw 2rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .row-btn {
        display: none; /* mobile : scroll au doigt */
    }

    .category-card {
        flex: 0 0 220px;
    }
}
