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

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ===========================
   HEADER
   =========================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 30, 50, 0.95);
    padding: 15px 50px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav, .desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a, .desktop-nav > a, .desktop-nav .nav-item > a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

nav a:hover, .desktop-nav > a:hover, .desktop-nav .nav-item > a:hover {
    color: #0066cc;
}

/* Mega Menu */
.nav-item {
    position: relative;
}

.has-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: rgba(20, 40, 60, 0.98);
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
    margin-top: 15px;
}

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

.mega-menu-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.mega-menu-column h4 {
    color: #999;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu-column.highlight h4 {
    color: white;
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column ul li {
    margin-bottom: 0;
}

.mega-menu-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mega-menu-column ul li a:hover {
    color: white;
    padding-left: 10px;
    background: rgba(0, 102, 204, 0.1);
}

.mega-menu-column ul li a span {
    opacity: 0.5;
    font-size: 18px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

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

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

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(10, 30, 50, 0.98);
    backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 30px 0;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    padding: 20px 40px;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav a::after {
    content: '›';
    font-size: 24px;
    font-weight: 300;
    opacity: 0.6;
    transition: all 0.3s;
}

.mobile-nav a:hover {
    background: rgba(0, 102, 204, 0.15);
    padding-left: 50px;
}

.mobile-nav a:hover::after {
    opacity: 1;
    transform: translateX(5px);
}

/* ===========================
   LANGUAGE SELECTOR
   =========================== */
.language-selector {
    position: relative;
}

.language-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.language-btn:hover {
    border-color: #0066cc;
    background: rgba(0, 102, 204, 0.1);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(10, 30, 50, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
}

.language-selector:hover .language-dropdown,
.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.language-option:hover {
    background: #0066cc;
}

.language-option.active {
    background: rgba(0, 102, 204, 0.3);
}

/* ===========================
   HERO GALLERY
   =========================== */
.hero-gallery {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.gallery-slides {
    height: 100%;
    position: relative;
}

.gallery-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.7) 0%, rgba(42, 82, 152, 0.7) 100%);
}

/* Slide backgrounds with gradient overlays */
.slide-1 {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8) 0%, rgba(42, 82, 152, 0.8) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%230066cc" width="1200" height="800"/><path fill="%23004499" d="M0 400 Q300 200 600 400 T1200 400 V800 H0Z"/></svg>');
}

.slide-2 {
    background: linear-gradient(135deg, rgba(42, 82, 152, 0.8) 0%, rgba(30, 60, 114, 0.8) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%231e3c72" width="1200" height="800"/><circle fill="%232a5298" cx="200" cy="200" r="150" opacity="0.3"/><circle fill="%230066cc" cx="1000" cy="600" r="200" opacity="0.3"/></svg>');
}

.slide-3 {
    background: linear-gradient(135deg, rgba(0, 68, 153, 0.8) 0%, rgba(0, 102, 204, 0.8) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23004499" width="1200" height="800"/><rect fill="%230066cc" x="100" y="100" width="400" height="300" opacity="0.2"/><rect fill="%232a5298" x="700" y="400" width="400" height="300" opacity="0.2"/></svg>');
}

.slide-4 {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.8) 0%, rgba(30, 60, 114, 0.8) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%230066cc" width="1200" height="800"/><polygon fill="%231e3c72" points="0,0 600,400 0,800" opacity="0.3"/><polygon fill="%232a5298" points="1200,0 600,400 1200,800" opacity="0.3"/></svg>');
}

.slide-5 {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8) 0%, rgba(0, 68, 153, 0.8) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%231e3c72" width="1200" height="800"/><path fill="%230066cc" d="M0 0 L600 0 L1200 400 L600 800 L0 800 L600 400 Z" opacity="0.3"/></svg>');
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
    width: 90%;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content p {
    font-size: 16px;
    margin: 0 auto 30px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #1e3c72;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow.prev {
    left: 30px;
}

.gallery-arrow.next {
    right: 30px;
}

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

/* ===========================
   GROUPE UNIQUE SECTION
   =========================== */
.groupe-unique {
    background: #f5f5f5;
    padding: 100px 50px;
}

.groupe-container {
    max-width: 1400px;
    margin: 0 auto;
}

.groupe-title {
    font-size: 42px;
    font-weight: bold;
    color: #2a5298;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 3px;
}

.groupe-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.groupe-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.groupe-image {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.groupe-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.image-label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    background: #2a5298;
    color: white;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    z-index: 10;
}

.groupe-text h3 {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 30px;
    color: #333;
}

.groupe-text .highlight {
    color: #00bcd4;
}

.groupe-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.btn-savoir-plus {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #2a5298;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border-radius: 3px;
    transition: all 0.3s;
}

.btn-savoir-plus:hover {
    background: #0066cc;
    transform: translateX(5px);
}

/* Responsive pour Groupe Unique */
@media (max-width: 968px) {
    .groupe-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .groupe-image img {
        height: 400px;
    }
    
    .groupe-title {
        font-size: 32px;
    }
    
    .groupe-text h3 {
        font-size: 24px;
    }
}

/* ===========================
   PRODUCTS GRID
   =========================== */
.products {
    padding: 80px 50px;
    background: #f5f5f5;
}

.products-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.products-title {
    font-size: 42px;
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 25px;
    letter-spacing: 3px;
}

.products-intro {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 250px;
    background: #003366;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 30px;
    color: white;
}

.product-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.product-btn {
    padding: 8px 20px;
    background: white;
    color: #0066cc;
    text-decoration: none;
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.3s;
}

.product-btn:hover {
    background: #ffa500;
    color: white;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
    padding: 80px 50px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    text-align: center;
}

.services-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0066cc;
    margin-bottom: 20px;
}

.services h2 {
    font-size: 48px;
    color: white;
    margin-bottom: 30px;
}

.services-intro {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.service-card h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===========================
   SERVICE LOCATOR
   =========================== */
.service-locator {
    padding: 80px 50px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%231e3c72" width="1200" height="800"/></svg>');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
}

.service-locator-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #0066cc;
}

.service-locator h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-locator p {
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* ===========================
   FOOTER
   =========================== */
footer {
    background: #001133;
    color: white;
    padding: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #0066cc;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #888;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 42px;
    }

    .services h2, .service-locator h2 {
        font-size: 32px;
    }

    header {
        padding: 15px 20px;
    }

    nav, .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .gallery-arrow.prev {
        left: 10px;
    }

    .gallery-arrow.next {
        right: 10px;
    }
}