:root {
    --bg-color: #F3EFE0; /* Couleur crème de la capture */
    --text-color: #1a1a1a;
    --card-bg: #EAE5D3;
    --border-color: #1a1a1a;
    --accent: #FF5A5F;
    --font-head: 'Archivo Black', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Texture de fond granuleuse (facultatif mais stylé) */
.texture-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.4;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    z-index: -1;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-color);
    z-index: 100;
}

.nav-brand {
    font-family: var(--font-head);
    font-size: 1.5rem;
    padding: 1.5rem 2rem;
    background: #222; /* Fond noir pour le nom comme sur l'image */
    color: #fff;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    flex-grow: 1;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    padding: 1.5rem 3rem;
    border-right: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.nav-links a:hover { background: #fff; }

/* --- SCROLL WRAPPER --- */
.scroll-wrapper {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* IMPORTANT : Donne la profondeur 3D */
    perspective: 1500px; 
}

.gallery-track {
    display: flex;
    padding-left: 10vw; /* Espace au début */
    width: fit-content;
    height: 60vh;
    /* Permet aux enfants d'être en 3D */
    transform-style: preserve-3d; 
    will-change: transform;
}

/* --- LES CARTES 3D --- */
.card-container {
    /* Largeur de la carte + marges */
    width: 400px;
    height: 100%;
    margin-right: 100px;
    position: relative;
    /* On a besoin de ça pour tourner la carte proprement */
    transform-style: preserve-3d;
}

.card {
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 15px 15px 0px rgba(0,0,0,0.1); /* Ombre dure style BD */
    transition: transform 0.3s;
    backface-visibility: hidden; /* Cache le dos si on tourne trop */
}

/* Design interne de la carte (Basé sur l'image) */
.card-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.card-image {
    width: 100%;
    height: 200px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #000;
}

.card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.card:hover .card-image img { transform: scale(1.1); }

.card-content h2 {
    font-family: var(--font-head);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    padding: 10px 0;
}

.play-btn {
    background: #222;
    color: #fff;
    padding: 5px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
    transition: transform 0.2s;
}
.play-btn:hover { transform: scale(1.1); background: var(--accent); }

.desc {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.8;
}

/* Hint en bas */
.scroll-hint {
    position: fixed;
    bottom: 20px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-head);
    font-size: 1.2rem;
    text-transform: uppercase;
    animation: blink 2s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Mobile : On remet tout droit */
@media (max-width: 768px) {
    .scroll-wrapper { perspective: none; height: auto; overflow: visible; }
    .gallery-track { flex-direction: column; width: 100%; height: auto; transform: none !important; padding: 20px;}
    .card-container { width: 100%; height: auto; margin-bottom: 50px; margin-right: 0;}
    .card { height: auto; }
}