/* --- NOUVEAU THÈME : CRIMSON PERFORMANCE (SOMBRE & AGRESSIF) --- */

/* 1. Reset Global & Verrouillage Scrollbar */
html {
    overflow-y: scroll; /* Évite le décalage du header */
    scroll-behavior: smooth;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;

    /* FOND DE PAGE : Un dégradé très sombre et profond
       Il part d'un noir pur pour s'éclaircir très légèrement vers un rouge très sombre
       au centre, donnant une impression de profondeur mystérieuse. */
    background: radial-gradient(circle, #1a1a1a 0%, #000000 100%) no-repeat fixed !important;

    color: #e0e0e0 !important; /* Texte gris très clair pour la lisibilité sans fatiguer */
    font-family: 'Open Sans', sans-serif;
}

main {
    flex: 1;
    margin-top: 110px; /* Espace pour le header fixe */
    padding: 60px 5%; /* Espace pour faire respirer le contenu */
}

/* 2. LE HEADER : Noir Profond et Mystérieux */
header {
    /* Un dégradé subtil de noir vers un gris anthracite très foncé
       Le Crimson Red est utilisé pour la ligne de base et les accents */
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%) !important;

    /* On garde la ligne rouge écarlate que tu aimes */
    border-bottom: 3px solid #e74c3c !important;

    width: 100%;
    height: 110px;
    min-height: 110px;
    max-height: 110px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.navbar {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0;
}

/* Le Logo : On l'agrandit pour qu'il soit la star */
.nav-left img {
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0px 8px 15px rgba(0,0,0,0.6));
}

/* Liens du Menu : Blanc pur pour claquer sur le rouge */
.nav-links a {
    color: #ffffff !important;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ffd7d7 !important; /* Rose très clair au survol */
    transform: translateY(-2px);
}

.nav-links a::after {
    background-color: #ffffff !important; /* Barre sous le lien blanche */
}

/* 3. LES CARTES (Services, Infos, etc.) : Style "Atelier Mécanique" */
.info-card, .info-box, .card, .form-wrapper {
    background: linear-gradient(145deg, #1e232a 0%, #111418 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important; /* Bordure quasi invisible pour la définition */
    border-radius: 12px !important;

    /* Ombre très douce et sombre pour les soulever du fond */
    box-shadow: 10px 10px 25px rgba(0,0,0,0.4), -5px -5px 15px rgba(255,255,255,0.01) !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
    padding: 30px;
}

/* Titres internes des cartes (Mécanique, Électronique, etc.) */
.info-card h3, .card h3 {
    color: #e74c3c !important; /* Titres en rouge Levin */
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.card-icon {
    font-size: 3rem;
    color: #e74c3c;
}

/* Effet au survol des cartes */
.info-card:hover, .info-box:hover, .card:hover {
    transform: translateX(12px) !important;
    border-left: 10px solid #e74c3c !important; /* Barre rouge Crimson sur le côté */
    background: #1c2128 !important; /* Fond légèrement plus clair */
}

/* 4. LE FORMULAIRE : On nettoie les champs sombres */
.form-wrapper h1, .form-wrapper p, .form-group label {
    color: #ffffff !important;
}

.form-wrapper input, .form-wrapper textarea, .form-select {
    background: #0d1014 !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
}

.form-wrapper input:focus, .form-wrapper textarea:focus {
    border-color: #e74c3c !important;
    background: #111418 !important;
}

/* Titres de sections internes (1. 2. 3.) */
.form-section-title {
    color: #e74c3c;
    text-shadow: none;
}

/* 5. TITRES DE SECTIONS : Blanc et Rouge Levin */
.section-title, .page-title, .sub-title {
    color: #ffffff !important;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    font-size: 2.8rem;
}

.section-title span, .page-title span, .sub-title span {
    color: #e74c3c !important; /* Le nom Levin devient rouge Crimson */
}

/* Ligne rouge sous les titres */
.red-line-center, .red-line {
    background: #e74c3c !important;
}

/* 6. BOUTONS : Crimson Dégradé */
.btn-primary, .btn-submit {
    background: linear-gradient(135deg, #ff414d 0%, #dc143c 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4) !important;
    transition: 0.3s ease !important;
}

.btn-secondary {
    border: 2px solid #e74c3c !important; /* Bordure Rouge Levin */
    color: #e74c3c !important;
}

.btn-primary:hover, .btn-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-3px) scale(1.02);
}

.btn-secondary:hover {
    background: #e74c3c !important;
    color: white !important;
}

/* 7. FOOTER : Noir Profond */
footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%) !important;
    color: #888;
    border-top: 3px solid #e74c3c;
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

/* --- SECTION CARTE GOOGLE MAPS --- */
.map-section {
    padding: 60px 5%;
    background: transparent; /* Laisse voir le dégradé du body */
    text-align: center;
}

.map-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden; /* Pour arrondir les coins de la carte */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Optionnel : un filtre pour assombrir légèrement la carte et mieux l'intégrer */
    filter: grayscale(0.2) contrast(1.1);
}

.map-container iframe {
    display: block;
}

.map-info {
    margin-top: 20px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.map-info p {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(220, 20, 60, 0.1); /* Fond léger Crimson */
    border-radius: 30px;
    border: 1px solid #dc143c;
}

