/* assets/css/style.css */

/* --- VARIABLES DE COULEURS (Carbone, Titane, Rouge Racing) --- */
:root {
    --bg-carbon: #0D0D0F;
    --bg-surface: #1A1A1E;
    --text-main: #E2E2E2;
    --text-muted: #8A8A93;
    --titanium: #A5A5A5;
    --racing-red: #D91828;
    --red-hover: #B0101E;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-tech: 'Roboto Mono', monospace;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-carbon);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- UTILITAIRES --- */
.text-red { color: var(--racing-red); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* --- HEADER & NAVIGATION --- */
.main-header {
    background-color: rgba(13, 13, 15, 0.95);
    border-bottom: 1px solid rgba(165, 165, 165, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo .dot { color: var(--racing-red); }

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-list a {
    color: var(--titanium);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--text-main);
}

/* --- BOUTONS --- */
.btn-contact {
    border: 1px solid var(--titanium);
    padding: 8px 16px;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-tech);
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-red {
    background-color: var(--racing-red);
    color: #fff;
    border: 1px solid var(--racing-red);
}

.btn-red:hover {
    background-color: var(--red-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--titanium);
}

.btn-outline:hover {
    border-color: var(--text-main);
}

/* --- HERO SECTION --- */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #1A1A1E 0%, #0D0D0F 100%);
    border-bottom: 1px solid rgba(165, 165, 165, 0.1);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.subtitle {
    font-family: var(--font-tech);
    color: var(--titanium);
    font-size: 1.2rem;
}

/* --- CARTES CATEGORIES --- */
.categories {
    margin-top: -50px; /* Effet de chevauchement moderne */
    margin-bottom: 80px;
}

.card {
    background-color: var(--bg-surface);
    padding: 40px;
    border: 1px solid rgba(165, 165, 165, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .nav-list { display: none; } /* Menu burger à intégrer dans le JS plus tard */
    .hero-content h1 { font-size: 2.5rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .categories { margin-top: 40px; }
}

/* --- EN-TÊTES DE PAGES --- */
.page-header { padding: 80px 0 40px; text-align: center; border-bottom: 1px solid rgba(165, 165, 165, 0.1); margin-bottom: 50px; }
.dark-header { background-color: #08080a; }
.tech-font { font-family: var(--font-tech); font-size: 0.9rem; letter-spacing: 2px; }

/* --- GRILLES PRODUITS --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 80px; }
.product-card { background-color: var(--bg-surface); border: 1px solid rgba(165, 165, 165, 0.1); display: flex; flex-direction: column; }
.product-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.product-title { font-size: 1.2rem; margin-bottom: 10px; }
.product-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.price { font-family: var(--font-tech); font-weight: 700; font-size: 1.2rem; }
.tech-specs { list-style: none; margin-bottom: 20px; font-size: 0.9rem; }
.tech-specs span { color: var(--titanium); }

/* --- FORMULAIRE CONTACT --- */
.form-wrapper { max-width: 700px; margin: 0 auto 80px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--titanium); font-family: var(--font-tech); font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; background-color: #0D0D0F; border: 1px solid rgba(165, 165, 165, 0.2); color: var(--text-main); font-family: inherit; border-radius: 2px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--racing-red); }
.alert { padding: 15px; margin-bottom: 20px; font-weight: 700; }
.success { background-color: rgba(46, 204, 113, 0.1); color: #2ecc71; border-left: 4px solid #2ecc71; }
.error { background-color: rgba(231, 76, 60, 0.1); color: #e74c3c; border-left: 4px solid #e74c3c; }

/* --- FOOTER --- */
.main-footer { background-color: #08080a; border-top: 1px solid rgba(165, 165, 165, 0.1); padding: 60px 0 20px; margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 40px; }
.footer-links h4 { font-family: var(--font-tech); margin-bottom: 15px; color: var(--titanium); }
.footer-links ul { list-style: none; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-main); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 20px; color: var(--text-muted); font-size: 0.8rem; }