/* --- VARIABLES ET CONFIGURATION --- */
:root {
    --bg-color: #0f171a;
    --card-bg: #1a2529;
    --card-border: #35444a;
    --text-primary: #ffffff;
    --text-secondary: #a1b1b9;
    --accent-color: #ffffff;
    --glow: 0 0 20px rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

/* --- PERSONNALISATION DE LA BARRE DE DÉFILEMENT (Scrollbar) --- */
::-webkit-scrollbar {
    width: 6px; /* Largeur fine */
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #35444a;
    border-radius: 10px;
    transition: 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #35444a var(--bg-color);
}

/* --- BASE --- */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- SOCIAL BAR --- */
.social-bar {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 20px;
    z-index: 1000;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-item:hover {
    color: var(--text-primary);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

/* --- HEADER --- */
header {
    text-align: center;
    padding: 50px 20px 20px;
    width: 100%;
    position: relative;
}

.main-logo {
    max-width: 100px;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.main-logo:hover { transform: scale(1.05); }

.site-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin-top: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* --- NAVIGATION --- */
.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin: 40px 0;
}

.btn-home {
    background: white;
    color: black;
    border: none;
    padding: 14px 60px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-home:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,255,255,0.4); }

.filter-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 12px 25px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.filter-btn:hover, .filter-btn.active {
    border-color: white;
    color: white;
    background: rgba(255,255,255,0.1);
}

/* --- SECTIONS --- */
#home-section {
    max-width: 800px;
    text-align: center;
    padding: 0 20px 60px;
    animation: fadeIn 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 35px;
    display: block;
    text-transform: uppercase;
}

.intro-box {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

#shop-section {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    padding-bottom: 80px;
    animation: fadeIn 0.5s ease-in-out;
}

/* --- CARDS --- */
.mod-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.mod-card:hover {
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--card-border);
}

.card-body { padding: 20px; }
.card-title { 
    font-family: 'Orbitron', sans-serif; 
    margin: 0; 
    font-size: 1.1rem; 
    letter-spacing: 1px;
}

/* --- MODALE --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(8px);
    scrollbar-gutter: stable; /* Évite le saut de mise en page */
}

.modal-content {
    background-color: var(--card-bg);
    margin: 2% auto;
    width: 90%;
    max-width: 1000px;
    border-radius: 15px;
    position: relative;
    border: 1px solid var(--card-border);
    overflow: hidden; /* Important pour les arrondis */
}

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 100;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.slider-container {
    width: 100%;
    height: 500px;
    position: relative;
    background: #000;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-track img {
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s;
    z-index: 10;
}

.slider-btn:hover { background: white; color: black; }
.prev { left: 0; border-radius: 0 5px 5px 0; }
.next { right: 0; border-radius: 5px 0 0 5px; }

.modal-info-box { padding: 40px; }
.modal-title-main {
    font-family: 'Orbitron';
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-desc-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
    white-space: pre-wrap;
}

.video-section {
    background: rgba(255,255,255,0.05);
    padding: 20px 25px;
    border-radius: 8px;
}

.video-section h4 {
    margin: 0 0 10px 0;
    font-family: 'Orbitron';
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
}

.video-section a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.video-section a:hover { text-decoration: underline; }

/* --- ANIMATIONS --- */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .social-bar { 
        position: static; 
        justify-content: center; 
        margin-bottom: 20px;
    }
    .slider-container { height: 300px; }
    .site-title { font-size: 1.5rem; letter-spacing: 2px; }
    .modal-content { margin: 0; width: 100%; border-radius: 0; min-height: 100vh; }
}