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

:root {
    --primary-color: #2C3E50;
    --secondary-color: #E67E22;
    --accent-color: #3498DB;
    --text-color: #2C3E50;
    --text-light: #5D6D7E;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --bleu-pro: #005f87; /* Ligne 6 : Bleu professionnel */
    --orange-cta: #e67e00; /* Ligne 7 : Orange énergique */
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Nouvelles variables pour le logo */
    --header-bg: #34495E;
    --logo-bg: rgba(255,255,255,0.12);
    --logo-border: rgba(255,255,255,0.2);
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

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

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--header-bg) 100%);
    color: var(--white);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1002;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.8rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    max-width: calc(100% - 70px);
    box-sizing: border-box;
}

.logo:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.logo img {
    height: 40px;
    width: auto;
    filter: brightness(1.1) contrast(1.1);
}

.logo h1 {
    display: none;
}

/* ===== NAVIGATION AVEC SOUS-MENUS ===== */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Flèche dropdown */
.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 0.3rem;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Menus déroulants */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-color);
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    border: 1px solid rgba(255,255,255,0.1);
    
    /* Correction pour éviter le débordement */
    max-height: 80vh;
    overflow-y: auto;
}

/* Menu déroulant aligné à droite pour les derniers éléments */
.dropdown-menu-right {
    left: auto;
    right: 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    font-size: 0.95rem;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--secondary-color);
    color: white;
    padding-left: 2rem;
}

/* Correction pour écrans étroits */
@media (max-width: 1200px) {
    .dropdown-menu {
        left: auto;
        right: 0;
        min-width: 200px;
    }
}

/* Correction pour mode split screen */
@media (max-width: 900px) {
    .dropdown-menu {
        position: fixed;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        max-width: 90vw;
        width: auto;
    }
    
    .nav-item:hover .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* Correction pour les derniers éléments du menu */
.nav-list li:nth-last-child(-n+2) .dropdown-menu {
    left: auto;
    right: 0;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 6px;
    z-index: 1003;
    box-sizing: border-box;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav.active {
        max-height: 600px;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 1.5rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        margin: 0;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-item:hover .dropdown-menu,
    .nav-item.active .dropdown-menu {
        max-height: 300px;
    }
    
    .dropdown-menu a {
        padding-left: 3rem;
    }
}

/* ===== BOUTON URGENCE NAVIGATION ===== */
.nav-item.urgence .nav-link.urgence-btn {
    background: #e74c3c !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
    border: 2px solid #e74c3c;
    transition: all 0.3s ease;
    margin-left: 1rem;
    text-decoration: none;
}

.nav-item.urgence .nav-link.urgence-btn:hover {
    background: #c0392b !important;
    border-color: #c0392b;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Animation pulse pour attirer l'attention */
.nav-item.urgence .nav-link.urgence-btn {
    animation: urgence-pulse 2s infinite;
}

@keyframes urgence-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Version mobile du bouton urgence */
@media (max-width: 768px) {
    .nav-item.urgence .nav-link.urgence-btn {
        margin-left: 0;
        margin: 1rem;
        display: block;
        text-align: center;
        width: calc(100% - 2rem);
        border-radius: 8px;
        background: #e74c3c !important;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 50%, rgba(52, 152, 219, 0.6) 70%), 
                url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
    background: #D35400;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.service-card p {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications {
    padding: 5rem 0;
    text-align: center;
}

.certifications-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.certifications-logos img {
    height: 80px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(100%);
}

.certifications-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* ===== STATS SECTION ===== */
.stats {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

/* ===== FORMULAIRES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #E74C3C;
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #27AE60;
}

.error-message {
    color: #E74C3C;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===== SECTION CONTACT ===== */
.contact {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 0;
}

.contact h2,
.contact h3,
.contact h4 {
    color: var(--white);
}

.contact p {
    color: rgba(255,255,255,0.9);
}

/* Conteneur du formulaire avec fond blanc */
.contact .form-container,
.contact form {
    background: var(--white);
    color: var(--text-color);
    padding: 3rem;
    border-radius: 15px;
}

.contact .form-container h3 {
    color: var(--primary-color);
}

/* Boutons dans la section contact */
.contact .btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
}

.contact .btn-primary:hover {
    background: #D35400;
}

/* Liens dans la section contact */
.contact a {
    color: var(--white);
    text-decoration: none;
}

.contact a:hover {
    color: var(--secondary-color);
}

/* Conteneurs avec fond semi-transparent */
.contact .info-container {
    background: rgba(255,255,255,0.1);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.contact .info-container h3,
.contact .info-container h4 {
    color: var(--white);
}

/* ===== UTILITAIRES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* ===== RESPONSIVE BASE ===== */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
}


/* Ajout au fichier css/style.css - Navigation complète */

/* Reset navigation */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Flèche dropdown */
.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 0.3rem;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Menus déroulants */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-color);
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    font-size: 0.95rem;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--secondary-color);
    color: white;
    padding-left: 2rem;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.2rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== RESPONSIVE BASE ===== */
@media (max-width: 768px) {
    /* ===== TYPOGRAPHIE MOBILE ===== */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
    .header .container { width: 100%; max-width: 100vw; }
    .logo img { height: 50px; }
    .mobile-menu-toggle span { width: 30px; height: 4px; } 
    
    .header .container {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .nav {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* ===== NAVIGATION MOBILE ===== */
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1001;
    }
    
    .navbar-container {
    display: flex;
    flex-direction: column;
    padding: 0; /* Ligne 45 - Reset padding */
    width: 100vw; /* Ligne 46 - Nouveau */
    margin-left: calc(-50vw + 50%); /* Ligne 47 - Centrage parfait */
    overflow-x: hidden; /* Ligne 48 - Sécurité */
    }

    .navbar-brand {
        margin: 0 auto 12px auto; /* Centrage */
        max-width: 80%; /* Limite la largeur */
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 1000;
    }
    
    .nav.active {
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
        border-radius: 0;
    }
    
    /* Bouton urgence en mobile */
    .nav-item.urgence .nav-link {
        background: #e74c3c;
        margin: 1rem;
        border-radius: 8px;
        text-align: center;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        margin: 0;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-item:hover .dropdown-menu,
    .nav-item.active .dropdown-menu {
        max-height: 300px;
    }
    
    .dropdown-menu a {
        padding-left: 3rem;
    }
    
    /* ===== LOGO MOBILE ===== */
    .logo {
        padding: 0.6rem 0.8rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* ===== SECTIONS MOBILE ===== */
    .section {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* ===== SERVICES MOBILE ===== */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* ===== CONTACT SECTION MOBILE ===== */
    .contact {
        padding: 3rem 0;
    }
    
    .contact .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Formulaire contact mobile */
    .contact form {
        padding: 1.5rem !important;
        margin: 0 !important;
    }
    
    .contact form input,
    .contact form select,
    .contact form textarea {
        padding: 10px 12px !important;
        margin-bottom: 1rem !important;
        font-size: 16px !important; /* Évite le zoom iOS */
    }
    
    .contact form > div {
        margin-bottom: 1rem !important;
    }
    
    /* Grille nom/prénom en colonne sur mobile */
    .contact form div[style*="grid-template-columns"],
    .contact form .form-grid {
        display: block !important;
    }
    
    .contact form div[style*="grid-template-columns"] input {
        margin-bottom: 1rem;
    }
    
    /* Conteneurs d'info contact mobile */
    .contact .info-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* ===== APPELS D'OFFRES MOBILE ===== */
    .appels-offres .container > div {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* ===== TARIFS MOBILE ===== */
    .tarifs .container > div {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* ===== ZONE INTERVENTION MOBILE ===== */
    .zone-intervention .container > div {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* ===== FOOTER MOBILE ===== */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1rem;
    }
    
    /* ===== BOUTONS MOBILE ===== */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* ===== STATS MOBILE ===== */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    /* ===== CERTIFICATIONS MOBILE ===== */
    .certifications-logos {
        gap: 1.5rem;
    }
    
    .certifications-logos img {
        height: 60px;
    }
    
    /* ===== FORMULAIRES GÉNÉRAUX MOBILE ===== */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Évite le zoom iOS */
    }
    
    /* ===== CORRECTIONS DÉBORDEMENT ===== */
    .hero {
        background-attachment: scroll; /* Meilleure performance mobile */
    }
    
    /* Éviter le débordement horizontal */
    * {
        max-width: 100%;
    }
    
    /* Images responsives */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ===== RESPONSIVE TRÈS PETIT ÉCRAN ===== */
@media (max-width: 480px) {
    .header .container { width: 100%; max-width: 100vw; }
    .logo img { height: 50px; }
    .mobile-menu-toggle span { width: 30px; height: 4px; }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .contact form {
        padding: 1rem !important;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumbs */
.breadcrumbs-section {
    background: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}
/* ===== ANIMATIONS CSS ===== */

/* Keyframes de base */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0.8);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(230, 126, 34, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Classes d'animation avec délais */
.animate-left-1 {
    animation: slideInLeft 0.8s ease-out 0.5s both;
}

.animate-left-2 {
    animation: slideInLeft 0.8s ease-out 1s both;
}

.animate-left-3 {
    animation: slideInLeft 0.8s ease-out 1.5s both;
}

.animate-left-4 {
    animation: slideInLeft 0.8s ease-out 2s both;
}

.animate-left-5 {
    animation: slideInLeft 0.8s ease-out 2.5s both;
}

.animate-right-1 {
    animation: slideInRight 0.8s ease-out 0.5s both;
}

.animate-right-2 {
    animation: slideInRight 0.8s ease-out 1s both;
}

.animate-right-3 {
    animation: slideInRight 0.8s ease-out 1.5s both;
}

.animate-fade-1 {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.animate-fade-2 {
    animation: fadeInUp 0.6s ease-out 1s both;
}

.animate-fade-3 {
    animation: fadeInUp 0.6s ease-out 1.5s both;
}

.animate-fade-4 {
    animation: fadeInUp 0.6s ease-out 2s both;
}

.animate-scale-1 {
    animation: scaleIn 0.6s ease-out 0.5s both;
}

.animate-scale-2 {
    animation: scaleIn 0.6s ease-out 1s both;
}

.animate-scale-3 {
    animation: scaleIn 0.6s ease-out 1.5s both;
}

.animate-bounce-1 {
    animation: bounceIn 0.8s ease-out 0.5s both;
}

.animate-bounce-2 {
    animation: bounceIn 0.8s ease-out 1s both;
}

.animate-bounce-3 {
    animation: bounceIn 0.8s ease-out 1.5s both;
}

/* Animations spécifiques aux éléments */
.header {
    animation: slideInDown 0.8s ease-out 0.2s both;
}

.nav li:nth-child(1) { animation: slideInLeft 0.6s ease-out 0.8s both; }
.nav li:nth-child(2) { animation: slideInLeft 0.6s ease-out 1s both; }
.nav li:nth-child(3) { animation: slideInLeft 0.6s ease-out 1.2s both; }
.nav li:nth-child(4) { animation: slideInLeft 0.6s ease-out 1.4s both; }
.nav li:nth-child(5) { animation: slideInLeft 0.6s ease-out 1.6s both; }
.nav li:nth-child(6) { animation: slideInLeft 0.6s ease-out 1.8s both; }

.hero-content h2 {
    animation: slideInLeft 1s ease-out 1.5s both;
}

.hero-content p {
    animation: slideInLeft 0.8s ease-out 2s both;
}

.hero-buttons .btn:first-child {
    animation: slideInLeft 0.6s ease-out 2.5s both;
}

.hero-buttons .btn:last-child {
    animation: slideInLeft 0.6s ease-out 2.7s both;
}

.service-card:nth-child(1) {
    animation: slideInLeft 0.8s ease-out 0.5s both;
}

.service-card:nth-child(2) {
    animation: slideInLeft 0.8s ease-out 1s both;
}

.service-card:nth-child(3) {
    animation: slideInLeft 0.8s ease-out 1.5s both;
}

.certifications-logos img:nth-child(1) {
    animation: scaleIn 0.6s ease-out 0.5s both;
}

.certifications-logos img:nth-child(2) {
    animation: scaleIn 0.6s ease-out 1s both;
}

.certifications-logos img:nth-child(3) {
    animation: scaleIn 0.6s ease-out 1.5s both;
}

.certifications-logos img:nth-child(4) {
    animation: scaleIn 0.6s ease-out 2s both;
}

.footer-section:nth-child(1) {
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

.footer-section:nth-child(2) {
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

.footer-section:nth-child(3) {
    animation: slideInLeft 0.8s ease-out 0.9s both;
}

.footer-bottom {
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

/* Animations au scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.scroll-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.scroll-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scroll-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animations hover avancées */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Animations continues */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Animations de chargement */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Animations de texte */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--secondary-color);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--secondary-color); }
}

/* Optimisations performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Animations responsives */
@media (max-width: 768px) {
    .animate-left-1,
    .animate-left-2,
    .animate-left-3,
    .animate-left-4,
    .animate-left-5 {
        animation-delay: 0.2s;
        animation-duration: 0.6s;
    }
    
    .hero-content h2,
    .hero-content p {
        animation-delay: 0.5s;
        animation-duration: 0.6s;
    }
}
