/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #050505; /* Noir profond */
    --text-color: #F4F4F4; /* Blanc cassé pour la lisibilité */
    --primary-color: #8E72A4; /* Le violet de ton logo Sil'Art */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', 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);
    line-height: 1.6;
    overflow-x: hidden; /* Empêche le scroll horizontal indésirable */
    -webkit-font-smoothing: antialiased;
}

/* --- BACKGROUND VIDÉO & CURSEUR --- */
.video-bg-container {
    position: fixed; /* Reste fixe au scroll */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Place tout ça en arrière-plan ! */
    overflow: hidden;
    background-color: var(--bg-color);
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recouvre tout l'écran sans déformer */
    opacity: 0.4; /* Très sobre et sombre */
}

/* Le voile pour assombrir et unifier */
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.7); /* Noir semi-transparent */
    z-index: 1;
}

/* --- CURSEUR & HALO --- */
/* On cache le curseur de base sur tout le site */
* {
    cursor: none !important; 
}

/* --- CURSEUR & HALO --- */
/* On cache le curseur de base sur tout le site */
* {
    cursor: none !important; 
}

/* La nouvelle flèche graphique et vectorielle */
.custom-cursor {
    position: fixed;
    top: 0; 
    left: 0;
    width: 32px; /* Taille généreuse pour un look "gras" */
    height: 32px;
    /* Flèche SVG dessinée en code (Violet Sil'Art avec bordure blanche) pour une netteté absolue */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L21 9L13 12L9 21L1 1Z' fill='%238E72A4' stroke='%23FFFFFF' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; /* Laisse passer les clics */
    z-index: 999999; /* Premier plan absolu sur TOUT le site */
    will-change: transform;
}

/* Le Halo interactif */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 350px; 
    height: 350px;
    background: radial-gradient(circle, rgba(142, 114, 164, 0.45) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* LE SECRET EST ICI : 0 le place AU-DESSUS de la vidéo (-1) mais EN DESSOUS de ton contenu (10) */
    z-index: 0; 
    will-change: transform;
}

/* On s'assure que le contenu passe bien AU-DESSUS du fond */
main, header, footer {
    position: relative;
    z-index: 10;
}

/* --- TYPOGRAPHIE GRASSE ET GRAPHIQUE --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

/* --- NAVIGATION --- */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* --- TITRES DES SECTIONS PROJETS --- */
.projects-section h2 {
    /* Utilisation de clamp : 3rem sur mobile, jusqu'à 5.5rem sur grand écran */
    font-size: clamp(3rem, 6vw, 5.5rem); 
    margin-bottom: 4rem;
    line-height: 1.1;
    letter-spacing: -1px; /* Resserre un peu les lettres pour un look plus "titraille" */
}

/* --- GRILLE DE PROJETS --- */
.projects-grid {
    display: grid;
    /* Crée des colonnes qui s'adaptent automatiquement à la taille de l'écran */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    aspect-ratio: 4/3; /* Format d'image moderne */
    background-color: #111; /* Couleur de fond si l'image ne charge pas */
    /* Animation fluide du conteneur au survol */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, filter 0.4s ease;
}

/* EFFETS AU SURVOL (HOVER) */
.project-card:hover {
    transform: translateY(-10px); /* Fait "léviter" la carte */
}

.project-card:hover .project-image {
    transform: scale(1.08); /* Zoom subtil sur l'image */
    filter: brightness(0.3); /* Assombrit l'image pour lire le texte */
}

/* TEXTE DU PROJET (Invisible par défaut) */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    background: linear-gradient(to top, rgba(5,5,5,0.95), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-card:hover .project-info {
    opacity: 1;
    transform: translateY(0);
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

