body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Un bruit très léger pour lisser le dégradé */
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05; 
    pointer-events: none;
    z-index: 1;
}

@font-face {
    font-family: 'SpaceGrotesk';
    /* On pointe vers ton fichier dans le dossier fonts */
    src: url('fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900; /* Permet d'utiliser toutes les graisses de la version Variable */
    font-style: normal;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}

/* Palette : Black & Limestone */
:root {
    --bg-color: #0a0a0a;       /* Noir profond */
    --surface-color: #1a1a1a;  /* Gris calcaire sombre pour les cartes */
    --text-main: #e0e0e0;      /* Blanc cassé (moins mal aux yeux) */
    --text-muted: #888888;     /* Gris pour les textes secondaires */
    --accent: #444444;         /* Bordures minérales */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'SpaceGrotesk';
    /* On pointe vers ton fichier dans le dossier fonts */
    src: url('fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900; /* Permet d'utiliser toutes les graisses de la version Variable */
    font-style: normal;

    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Obligatoire pour que le dégradé remplisse l'écran */
    
    background-color: #181411; /* La couleur de fin qui continue à l'infini */
    background-image: linear-gradient(to bottom, #FECEAA 0%, #C45216 28%, #181411 100%);
    background-repeat: no-repeat;
    background-size: 100% 1080px; /* Le dégradé fait exactement 1080px de haut */
}

/* Navigation Sombre */
header {
    background: #000000;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--accent);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-weight: bold;
    letter-spacing: 2px;
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a, header nav div a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #fff;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    
}

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero p {
    color: var(--text-muted);
}

/* Grille de projets */
.gallery {
    padding: 50px 5%;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 3px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* --- LE SECRET DU DÉPLACEMENT DOUX --- */
html {
    scroll-behavior: smooth; /* Active le défilement fluide sur tout le site */
}

/* --- STYLE DE LA FLÈCHE --- */
.scroll-arrow {
    display: inline-block;
    margin-top: 30px;
    font-size: 2rem;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
    animation: bounce 2s infinite; /* On réutilise ton animation bounce */
}

.scroll-arrow:hover {
    color: #FECEAA; /* Change de couleur au survol (couleur de ton dégradé) */
    transform: scale(1.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}


/* le pourtour du form */

.beam-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 50px auto;
    padding: 2px; /* C'est l'épaisseur de ta bordure lumineuse */
    background: #1a1a1a; /* Couleur de fond par défaut */
    border-radius: 16px;
    overflow: hidden; /* Coupe le cercle qui dépasse pour ne laisser que le bord */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(196, 82, 22, 0.2);
}

/* Le trait lumineux qui tourne */
.beam-wrapper::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    /* Un trait très court (5% du cercle) */
    background: conic-gradient(from 0deg, #FECEAA 0%, transparent 5%);
    animation: rotate-beam 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Le formulaire qui "cache" le centre du cercle pour créer la bordure */
.beam-wrapper form {
    position: relative;
    z-index: 1; /* Passe au-dessus du rayon */
    background: #0a0a0a; /* Fond du formulaire (doit être opaque) */
    width: 100%;
    padding: 30px;
    border-radius: 14px; /* Un poil plus petit que le parent */
}

@keyframes rotate-beam {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Styles des champs pour le look "Crisp" --- */
.form-group { margin-bottom: 20px; text-align: left; }
label { color: #888; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

input, textarea {
    width: 100%;
    background: #141414;
    border: 1px solid #333;
    padding: 12px;
    color: white;
    border-radius: 8px;
    font-family: 'SpaceGrotesk', sans-serif;
    outline: none;
}

input:focus, textarea:focus { border-color: #C45216; }

button {
    width: 100%;
    padding: 15px;
    background: #C45216;
    border: none;
    color: white;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}