/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
}

/* Variables CSS pour la cohérence des couleurs */
:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2a2a2a;
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --text-light: #e0e0e0;
    --text-gray: #a0a0a0;
    --border-gray: #404040;
}

/* Navigation */
.navbar {
    background-color: var(--secondary-dark);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo h1 {
    color: var(--accent-red);
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-red);
}

/* Bouton d'action (CTA) dans le menu */
.nav-menu .cta-button {
    background-color: var(--accent-red);
    color: #ffffff !important; /* Force le texte en blanc */
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.2);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-menu .cta-button:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 38, 38, 0.3);
    color: #ffffff !important;
}

/* Petit ajustement pour que ça soit beau sur mobile */
.mobile-menu .cta-button {
    display: inline-block;
    margin: 0.5rem auto;
    width: auto;
}

.hero-btn {
    display: inline-block;
    background-color: var(--accent-red);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px; /* Bords arrondis modernes */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-3px) scale(1.05); /* Légère animation vers le haut */
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
    color: #ffffff;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--secondary-dark);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.mobile-menu li {
    text-align: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
}

.desktop-menu {
    display: flex !important;
}

/* S'assurer que le menu mobile est caché sur desktop */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .desktop-menu {
        display: flex !important;
    }
}

/* Contenu principal */
main {
    margin-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.badge {
    height: 60px;
    width: auto;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    background: transparent;
}

.badge:hover {
    transform: scale(1.1);
}

/* Section Services */
.services {
    padding: 4rem 0;
    background-color: var(--secondary-dark);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-red);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--primary-dark);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-gray);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Section Contact */
.contact {
    padding: 4rem 0;
    background-color: var(--primary-dark);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-red);
}

.contact-layout {
    margin-top: 2rem;
}

.locations-title {
    font-size: 1.8rem !important;
    margin-bottom: 2rem !important;
    color: var(--text-light) !important;
    border-bottom: 2px solid var(--accent-red) !important;
    padding-bottom: 0.5rem !important;
    width: 100% !important;
    background: none !important;
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.map-container-full {
    background-color: var(--secondary-dark);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
    width: 100%;
}

.map-container-full iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

.location h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.location-card {
    background-color: var(--primary-dark);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-card:hover {
    border-color: var(--accent-red);
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.location-card.active {
    border-color: var(--accent-red);
    background-color: var(--secondary-dark);
    border-left: 4px solid var(--accent-red);
}

.location-card h4 {
    color: var(--accent-red);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.location-card h4 .fa-map-pin {
    float: right;
    color: var(--text-gray);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.location-card:hover h4 .fa-map-pin,
.location-card.active h4 .fa-map-pin {
    color: var(--accent-red);
    opacity: 1;
}

.location-card p {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.location-card i {
    color: var(--accent-red);
    margin-right: 0.5rem;
}

.location-card a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-card a:hover {
    color: var(--accent-red);
}

.map-container {
    background-color: var(--secondary-dark);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
    height: fit-content;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 8px;
}

.contact-details {
    background-color: var(--secondary-dark);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
}

.contact-details h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.contact-details i {
    color: var(--accent-red);
    margin-right: 0.5rem;
}

.contact-details a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-red);
}

.badges {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-badge {
    height: 50px;
    width: auto;
    opacity: 1;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    background: transparent;
}

.emergency {
    background-color: var(--secondary-dark);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border: 2px solid var(--accent-red);
}

.emergency h4 {
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.emergency p {
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--secondary-dark);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.6;
}

footer .footer-section a,
footer .footer-section a:link,
footer .footer-section a:visited {
    color: var(--text-gray) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

footer .footer-section a:hover,
footer .footer-section a:focus {
    color: var(--accent-red) !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
    color: var(--text-gray);
}

/* Responsive Design - Menu mobile */
@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        position: relative;
    }
    
    /* Masquer le menu desktop */
    .desktop-menu {
        display: none !important;
    }
    
    /* Afficher le bouton hamburger */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Le menu mobile reste caché par défaut */
    .mobile-menu {
        display: none;
    }
    
    /* Classe pour afficher le menu mobile (sera activée par JavaScript) */
    .mobile-menu.active {
        display: flex !important;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
	
	.locations-grid {
    grid-template-columns: 1fr;
	}
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .services,
    .contact {
        padding: 2rem 0;
    }
    
    .service-card,
    .location-card {
        padding: 1rem;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .map-container-full {
        padding: 1rem;
    }
    
    .map-container-full iframe {
        height: 300px;
    }
}