/* --- style.css --- */
:root {
    --primary: #e63946;
    --bg: #121212;
    --card-bg: #1e1e1e;
    --text: #ffffff;
    --text-secondary: #aaaaaa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0; padding: 0;
    background-color: var(--bg); color: var(--text);
    display: flex; flex-direction: column; min-height: 100vh;
}

header {
    background-color: black; padding: 20px 40px;
    position: sticky; top: 0; z-index: 100;
    border-bottom: 3px solid var(--primary);
    display: flex; flex-direction: column; align-items: center; gap: 15px;
}

@media(min-width: 768px) { header { flex-direction: row; justify-content: space-between; } }

h1 { margin: 0; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 2px; }
h1 a { text-decoration: none; color: white; }
span.highlight { color: var(--primary); }

.search-container { position: relative; width: 100%; max-width: 400px; }
.search-input {
    width: 100%; padding: 12px 20px; border-radius: 25px;
    border: 2px solid #333; background-color: #222; color: white;
    font-size: 1rem; outline: none; transition: border-color 0.3s;
}
.search-input:focus { border-color: var(--primary); }

nav { display: flex; justify-content: center; background: #0a0a0a; padding: 15px; }
nav a {
    text-decoration: none; color: var(--text-secondary); font-size: 1rem;
    margin: 0 15px; text-transform: uppercase; font-weight: bold;
    padding-bottom: 5px; transition: color 0.3s;
}
nav a:hover, nav a.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

main { padding: 40px 20px; max-width: 1200px; margin: 0 auto; width: 100%; flex: 1; box-sizing: border-box; }

h2 { border-left: 5px solid var(--primary); padding-left: 15px; margin-bottom: 30px; margin-top: 40px; }

/* GRID SYSTEM */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }

.card {
    background-color: var(--card-bg); border-radius: 8px; overflow: hidden;
    transition: transform 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(230, 57, 70, 0.1); }

/* VIDEO THUMBNAILS */
.thumbnail-container {
    position: relative; width: 100%; padding-top: 56.25%;
    background-color: #000; cursor: pointer; overflow: hidden;
}
.thumbnail-container img, .thumbnail-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; border: none;
}
.play-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; background: rgba(0,0,0,0.7);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid white; pointer-events: none; transition: transform 0.2s; z-index: 2;
}
.thumbnail-container:hover .play-icon { background-color: var(--primary); transform: translate(-50%, -50%) scale(1.1); border-color: var(--primary); }
.play-icon::after { content: ''; display: block; width: 0; height: 0; border-left: 20px solid white; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }

.card-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-info h3 { margin: 0 0 10px 0; font-size: 1.1rem; line-height: 1.4; }
.tags { font-size: 0.8rem; color: var(--primary); text-transform: uppercase; font-weight: bold; margin-bottom: 5px;}

/* SPÉCIFIQUE MATOS */
.gear-list ul { list-style: none; padding: 0; margin: 0; }
.gear-list li { border-bottom: 1px solid #333; padding: 10px 0; display: flex; justify-content: space-between; }
.gear-list li strong { color: var(--primary); }

/* BOUTONS */
.btn-buy, .btn-action {
    display: block; width: 100%; text-align: center;
    background: var(--primary); color: white;
    padding: 10px; text-decoration: none; font-weight: bold;
    margin-top: 15px; border-radius: 4px; box-sizing: border-box;
}
.btn-buy:hover, .btn-action:hover { background: #ff4d5a; }

footer { text-align: center; padding: 40px; color: var(--text-secondary); font-size: 0.9rem; border-top: 1px solid #333; margin-top: auto; }
.no-results { text-align: center; padding: 50px; color: var(--text-secondary); font-size: 1.2rem; display: none; }