/* Variables CSS pour faciliter les changements de thème */
:root {
    --primary-color: #00d2ff; /* Bleu électrique */
    --secondary-color: #0056b3;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-main: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.text-electric {
    color: var(--primary-color);
}

/* ===== HEADER & NAVIGATION ===== */
.navbar {
    background-color: var(--dark-bg);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Animation de soulignement sur le menu */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Bouton Menu Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: url('https://source.unsplash.com/random/1920x1080/?electric+vehicle+racing,motorsport') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Assombrit l'image pour lire le texte */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-2px);
}

/* ===== CONTENU PRINCIPAL ===== */
.content {
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark-bg);
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.content-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.content-card h3 {
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.extended-text {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.extended-text p {
    margin-bottom: 15px;
}

/* ===== FOOTER (AVEC RNA) ===== */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.site-footer h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.site-footer a:hover {
    color: var(--primary-color);
}

.rna-number {
    font-size: 1.1rem;
    color: var(--primary-color);
    background: rgba(0, 210, 255, 0.1);
    padding: 10px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid var(--primary-color);
}

.footer-bottom {
    background-color: #111;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #888;
}

/* ===== RESPONSIVE DESIGN (MOBILES & TABLETTES) ===== */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .nav-links.active {
        max-height: 300px;
        padding: 20px 0;
    }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
    }

    .nav-links a {
        display: block;
        padding: 10px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}