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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 0.5rem 0;
    color: white;
    font-size: 0.9rem;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.certification-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.cert-icon {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #2a5298;
    font-weight: bold;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1001;
}

.logo img {
    max-height: 60px;
    width: auto;
}

/* Mobile Search Icon - Visible uniquement sur mobile */
.mobile-search-icon {
    display: none;
    background: #2c5aa0;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1001;
}

.mobile-search-icon:hover {
    background: #1e3c72;
    transform: scale(1.05);
}

/* Mobile Search - Initialement cachée */
.mobile-search {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1002;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-search.active {
    display: block;
}

.mobile-search.hidden {
    display: none;
}

.search-container-mobile {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    transition: all 0.3s ease;
    width: 100%;
}

.search-container-mobile:focus-within {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.mobile-search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    border-radius: 25px 0 0 25px;
    min-width: 0;
}

.mobile-search-input::placeholder {
    color: #999;
    font-style: italic;
}

.mobile-search-close {
    background: #dc3545;
    border: none;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    min-width: 50px;
}

.mobile-search-close:hover {
    background: #c82333;
}

.mobile-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.mobile-search-results.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Navigation Container */
.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.4rem;
    max-width: fit-content;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.2rem;
    transition: transform 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #2c5aa0;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

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

/* Recherche desktop uniquement */
.nav-search.desktop-only {
    position: relative;
    z-index: 1001;
}

.search-container-nav {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-width: 280px;
}

.search-container-nav:focus-within {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.nav-search-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
    border-radius: 25px 0 0 25px;
}

.nav-search-input::placeholder {
    color: #999;
    font-style: italic;
}

.nav-search-btn {
    background: #2c5aa0;
    border: none;
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-btn:hover {
    background: #1e3c72;
}

.search-icon {
    font-size: 1rem;
}

/* Dropdown des résultats de recherche */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.search-results-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results-list {
    padding: 0.5rem 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    font-size: 1.2rem;
    opacity: 0.7;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.2rem;
}

.search-result-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.search-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.search-result-tag {
    background: #f0f4ff;
    color: #2c5aa0;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.no-results-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Mega Dropdown Menu */
.mega-dropdown {
    position: relative;
}

.mega-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 600px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mega-dropdown:hover .mega-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-column h4 {
    color: #2c5aa0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f4ff;
}

.mega-column a {
    display: block;
    padding: 0.5rem 0;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding-left: 0.5rem;
}

.mega-column a:hover {
    background: #f0f4ff;
    color: #2c5aa0;
    padding-left: 1rem;
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #2c5aa0;
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Section Hero */
.hero {
    background: linear-gradient(rgba(44, 90, 160, 0.9), rgba(44, 90, 160, 0.9)), 
                url('img/industrie_gaz3.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    margin-top: 140px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: #2c5aa0;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.btn-secondary:hover {
    background: white;
    color: #2c5aa0;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #2c5aa0;
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Categories */
.categories {
    padding: 6rem 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.category-card.search-highlight {
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.3) !important;
    transform: translateY(-5px) scale(1.02) !important;
}

.category-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* .category-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.7), rgba(44, 90, 160, 0.4));
} */

.category-content {
    padding: 2rem;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.category-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.category-products {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-products span {
    background: #f0f4ff;
    color: #2c5aa0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.category-link:hover {
    gap: 1rem;
}

/* Section About */
.about {
    padding: 6rem 0;
    background: white;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 500px;
    background-image: url('img/industrial_gas.webp');
    background-size: cover;
    background-position: center;
}

/* Section Partners */
.partners {
    padding: 6rem 0;
    background: #f8f9fa;
}

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

.partner-item {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.partner-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Section CTA */
.cta {
    padding: 6rem 0;
    background: #2c5aa0;
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

footer::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 1000 400"><defs><pattern id="dots" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1000" height="400" fill="url(%23dots)"/></svg>');
}

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

.footer-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f093fb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

/* Contact Float Button */
.contact-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2c5aa0;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
}

.contact-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(44, 90, 160, 0.4);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-container {
        gap: 1rem;
    }
    
    .search-container-nav {
        min-width: 220px;
    }
    
    .nav-menu a {
        padding: 0.6rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.2rem;
    }
    
    .nav-menu a .nav-text {
        display: none;
    }
    
    .mega-dropdown-menu {
        min-width: 500px;
    }
}

@media (max-width: 950px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-container {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }
    
    .nav-menu {
        flex: 1;
        justify-content: center;
    }
    
    .nav-menu a .nav-text {
        display: inline;
        font-size: 0.75rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.4rem;
        gap: 0.2rem;
        flex-direction: column;
        text-align: center;
        min-width: 60px;
    }
    
    .search-container-nav {
        min-width: 200px;
    }
    
    .mega-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f0f4ff;
        margin-top: 0.5rem;
        border-radius: 8px;
        min-width: auto;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header-container {
        padding: 1rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .logo {
        flex: 0 0 auto;
        order: 1;
        transition: all 0.3s ease;
    }
    
    .logo.hidden {
        opacity: 0;
        transform: translateX(-100%);
        pointer-events: none;
    }
    
    /* Afficher l'icône de recherche mobile */
    .mobile-search-icon {
        display: flex;
        order: 2;
        flex: 0 0 auto;
    }
    
    /* Cacher la recherche desktop */
    .nav-search.desktop-only {
        display: none !important;
    }
    
    .mobile-toggle {
        display: flex;
        order: 3;
        flex: 0 0 auto;
    }
    
    .nav-container {
        gap: 0;
        order: 4;
        width: auto;
        margin-top: 0;
        justify-content: flex-end;
    }
    
    /* Quand la recherche mobile est active */
    .mobile-search.active {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        z-index: 1002;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        height: calc(100vh - 100px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-radius: 0;
        gap: 0.5rem;
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-width: none;
        justify-content: flex-start;
    }

    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }
    
    .nav-menu a {
        justify-content: flex-start;
        padding: 1.2rem 1rem;
        border-radius: 8px;
        font-size: 1.1rem;
        gap: 1rem;
        background: #f8f9fa;
        margin-bottom: 0.5rem;
        flex-direction: row;
        min-width: auto;
        text-align: left;
        width: 100%;
    }
    
    .nav-menu a .nav-text {
        display: inline;
        font-size: 1.1rem;
    }
    
    /* CORRECTION IMPORTANTE : Styles pour les sous-menus mobiles */
    .mega-dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: #f0f4ff !important;
        margin: 0.5rem 0 1rem 0 !important; /* Suppression de la marge gauche problématique */
        border-radius: 8px !important;
        min-width: auto !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 1rem !important;
        width: 100% !important; /* Utiliser toute la largeur disponible */
        left: 0 !important; /* Forcer l'alignement à gauche */
        right: 0 !important;
        display: none; /* Caché par défaut */
    }
    
    /* Quand le sous-menu est affiché */
    .mega-dropdown-menu[style*="display: block"] {
        display: grid !important;
    }
    
    .mega-column {
        width: 100%;
    }
    
    .mega-column h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: #2c5aa0;
        border-bottom: 1px solid #e0e7ff;
        padding-bottom: 0.5rem;
    }
    
    .mega-column a {
        padding: 0.8rem !important;
        margin: 0.2rem 0 !important;
        background: white !important;
        border-radius: 6px !important;
        font-size: 0.95rem !important;
        color: #555 !important;
        text-decoration: none !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border: 1px solid #e9ecef;
        transition: all 0.2s ease;
    }
    
    .mega-column a:hover {
        background: #2c5aa0 !important;
        color: white !important;
        transform: translateX(5px);
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        margin-top: 100px;
        height: calc(100vh - 100px);
        min-height: 500px;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        height: 400px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.8rem;
    }
    
    .mobile-search {
        margin: 0 0.5rem;
    }
    
    .search-container-mobile {
        min-width: auto;
    }
    
    .mobile-search-input {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .mobile-search-input::placeholder {
        font-size: 0.8rem;
    }
    
    .mobile-search-btn {
        padding: 0.5rem 0.8rem;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .category-card {
        padding: 1.5rem;
    }

    .contact-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ajustements supplémentaires pour les très petits écrans */
    .nav-menu {
        padding: 1rem;
    }
    
    .nav-menu a {
        padding: 1rem 0.8rem;
        font-size: 1rem;
    }
    
    .mega-dropdown-menu {
        margin: 0.3rem 0 0.8rem 0 !important;
        padding: 0.8rem !important;
    }
    
    .mega-column a {
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
    }
}

/* Touch device optimizations */
.touch-active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* Styles supplémentaires pour améliorer l'affichage des sous-menus */
@media (max-width: 768px) {
    /* Animation fluide pour l'ouverture/fermeture des sous-menus */
    .mega-dropdown-menu {
        transition: all 0.3s ease !important;
        overflow: hidden;
    }
    
    /* Amélioration de l'espacement vertical */
    .nav-menu li.mega-dropdown {
        margin-bottom: 0.5rem;
    }
    
    /* Séparateur visuel entre les sections */
    .nav-menu li:not(:last-child) {
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Style pour les liens principaux avec sous-menus */
    .mega-dropdown > a {
        position: relative;
    }
    
    .mega-dropdown > a .dropdown-arrow {
        transition: transform 0.3s ease;
    }
    
    /* Rotation de la flèche quand le menu est ouvert */
    .mega-dropdown > a[aria-expanded="true"] .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Correction pour éviter les débordements horizontaux */
@media (max-width: 768px) {
    .nav-menu,
    .mega-dropdown-menu,
    .mega-column {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Assurer que le contenu ne dépasse pas */
    .nav-menu * {
        max-width: 100%;
        word-wrap: break-word;
    }
}