@media (max-width: 1100px) {
    .nav-item.has-dropdown .dropdown {
        display: none !important;
    }
    .nav-item.has-dropdown .nav-icon {
        display: none !important;
    }
}

:root {
    --border-radius: 6px;
}

/* Global Header Fix */
/* Global Header Fix: Stable for Subpages */
.header {
    padding: 15px 0 !important;
    background-color: #5e6c9a !important; /* Default solid for subpages */
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease !important;
}


/* Scrolled state: applied to all pages */
.header.scrolled {
    background-color: #5e6c9a !important;
    padding: 12px 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

.header .nav-link,
.header .lang-switcher,
.header .menu-toggle .bar {
    color: var(--color-white) !important;
}

/* --- High Visibility Hover/Active States (Hero & Scrolled) --- */
.nav-link:hover,
.nav-link.active {
    color: var(--color-white) !important;
    opacity: 1 !important;
}

.nav-link::after {
    background-color: var(--color-white) !important;
    height: 2px !important;
}

.header.scrolled .menu-toggle .bar {
    background-color: var(--color-white) !important;
}

/* Global Rounding */
.btn, 
.expertise-card, 
.dropdown, 
.close-drawer, 
.drawer-socials a, 
.secteur-card, 
.featured-content-box, 
.footer-card, 
.svc-tab-btn,
.svc-panel,
.svc-image-wrapper,
.hero-text-card,
.about-image-card,
.contact-card,
.form-control,
.lang-switcher,
.nav-link {
    border-radius: var(--border-radius) !important;
}

/* Override Clip-Paths */
.hero-text-card,
.svc-image-wrapper,
.value-card {
    clip-path: none !important;
}

.text-accent {
    color: var(--color-accent) !important;
}

.partner-img {
    filter: none !important;
    opacity: 1 !important;
}

.hero-text-card {
    max-width: 750px !important;
}

.drawer-logo {
    height: 40px !important;
    width: auto !important;
    max-width: 150px !important;
}

/* --- Minimalist Hero Redesign --- */
.hero-slider-section {
    height: 80vh !important;
    min-height: 600px !important;
}

.hero-minimal-content {
    position: relative;
    max-width: 900px;
    z-index: 5;
    animation: fadeInMinimal 1.2s ease-out forwards;
}

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

/* Slider Navigation Buttons Redesign */
.slider-nav-btn {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    color: var(--color-white) !important;
    font-size: 1rem !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.slider-nav-btn:hover {
    background: var(--color-white) !important;
    color: var(--color-primary) !important;
    border-color: var(--color-white) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.prev-btn { left: 40px !important; }
.next-btn { right: 40px !important; }

.hero-text-card.minimal {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-align: left !important;
}

.hero-text-card.minimal .hero-title {
    font-size: 4rem !important;
    color: var(--color-white) !important;
    margin-bottom: 30px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -1px;
}

.hero-text-card.minimal .hero-desc {
    font-size: 1.25rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 45px !important;
    max-width: 650px;
    line-height: 1.7 !important;
    font-weight: 400;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.3) 100%) !important;
}

/* Glass CTA Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 16px 40px !important;
    border-radius: var(--border-radius) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    transition: all 0.4s ease;
}

.btn-glass:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* --- Mobile Drawer Redesign: Clean White --- */
@media (max-width: 1100px) {
    .nav {
        background: #606c9b !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .drawer-logo {
        filter: none !important; /* Restore original color */
        height: 38px !important;
    }

    .close-drawer {
        background: transparent !important;
        border: none !important;
        color: rgba(255, 255, 255, 0.7) !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 1.5rem !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .close-drawer:hover {
        color: var(--color-white) !important;
        transform: rotate(90deg) scale(1.1) !important;
    }

    .nav-link {
        color: var(--color-white) !important;
        font-weight: 600 !important;
        padding: 16px 30px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-left: none !important;
    }

    .nav-link:hover, 
    .nav-link.active {
        color: var(--color-white) !important;
        background-color: rgba(255, 255, 255, 0.05) !important;
    }

    .nav-link::before {
        color: var(--color-white) !important;
        opacity: 0.8 !important;
    }

    .drawer-footer {
        background-color: rgba(0, 0, 0, 0.1) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding: 25px 30px !important;
    }

    .drawer-contact a {
        color: rgba(255, 255, 255, 0.8) !important;
        font-weight: 500 !important;
    }

    .drawer-socials a {
        background-color: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: var(--color-white) !important;
        border-radius: 50% !important;
    }

    .drawer-socials a:hover {
        background-color: var(--color-accent) !important;
        color: var(--color-white) !important;
        border-color: transparent !important;
    }
}

/* --- Mobile Hero Alignment Fix --- */
@media (max-width: 768px) {
    .hero-slider-section {
        height: 100vh !important;
        height: 100svh !important;
        min-height: 550px !important;
    }

    .hero-minimal-content {
        padding-top: 40px !important; /* Reduced offset */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
    }

    .hero-text-card.minimal {
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 30px !important;
        width: 100% !important;
        text-align: left !important; /* Text aligned to left */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .hero-text-card.minimal .hero-title {
        color: var(--color-white) !important;
        font-size: 2.1rem !important; /* Reduced for better fit on same line */
        line-height: 1.1 !important;
        margin-bottom: 15px !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }

    .hero-text-card.minimal .hero-desc {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 1.05rem !important;
        line-height: 1.5 !important;
        margin-bottom: 40px !important;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3) !important;
    }

    .hero-buttons {
        display: flex !important;
        justify-content: center !important; /* Button stays centered */
        width: 100% !important;
    }

    .btn-glass {
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: var(--color-white) !important;
        padding: 15px 30px !important;
    }
}

/* --- Mobile Section Overlap: Hero & Qui Sommes-Nous --- */
@media (max-width: 768px) {
    .featured-project#qui-sommes-nous {
        margin-top: -120px !important; /* Pull up section onto hero */
        position: relative !important;
        z-index: 10 !important;
        background: none !important;
        padding-top: 0 !important;
    }

    .featured-wrapper {
        border-radius: 8px 8px 0 0 !important;
        overflow: hidden !important;
        box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.2) !important;
        background-color: var(--color-white) !important;
    }

    .featured-content-box {
        padding: 40px 25px !important;
        margin: 0 !important;
        width: 100% !important;
        background: var(--color-white) !important;
    }

    .hero-minimal-content {
        padding-bottom: 140px !important; /* Add space for the overlap */
    }
}

/* --- Footer Logo Visibility --- */
.footer-logo img, 
.footer-brand img {
    filter: none !important;
    opacity: 1 !important;
    height: 45px !important;
    width: auto !important;
}

/* --- Mobile CTA Adjustments --- */
@media (max-width: 768px) {
    .cta-banner-section {
        text-align: left !important;
    }
    .cta-banner-content {
        text-align: left !important;
        margin: 0 !important;
    }
    .cta-banner-btn,
    .cta-banner-text {
        display: none !important;
    }
    .cta-banner-action {
        align-items: flex-start !important;
    }

    /* Section Titles */
    .section-title,
    .featured-content-box h2,
    .svc-text-content h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
}

/* --- Language Switcher Refinement --- */
.lang-switcher {
    padding: 6px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: var(--color-white) !important;
}

.lang-switcher:active {
    transform: scale(0.95) !important;
    background: rgba(255, 255, 255, 0.25) !important;
}

/* --- Background Image for Qui Sommes-Nous --- */
.featured-project#qui-sommes-nous {
    position: relative !important;
    background: none !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    padding-top: 120px !important;
}

@media (max-width: 768px) {
    .featured-project#qui-sommes-nous {
        margin-top: -120px !important;
        padding-top: 0 !important;
    }
}

.featured-project#qui-sommes-nous::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../img/call.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    opacity: 0.46 !important;
    z-index: 0 !important;
}

.featured-project#qui-sommes-nous .featured-wrapper {
    position: relative !important;
    z-index: 1 !important;
}

.header.scrolled .lang-switcher {
    border-color: rgba(255, 255, 255, 0.3) !important;
}



/* --- Subpages Hero Optimization (Global) --- */
.legal-hero,
.contact-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 250px !important;
    padding: 40px 20px !important;
    margin-top: 80px !important; /* Header offset */
}

.legal-hero h1,
.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.legal-hero p,
.contact-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Subpages Hero Optimization (Mobile) --- */

@media (max-width: 768px) {
    .legal-hero,
    .contact-hero {
        padding: 30px 20px !important;
        min-height: 200px !important;
    }

    .legal-hero h1,
    .contact-hero h1 {
        font-size: 2.1rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        color: var(--color-white) !important;
    }

    .legal-hero p,
    .contact-hero p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        padding: 0 15px !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* Legal Content Typography */
    .legal-content h2 {
        font-size: 1.4rem !important;
    }
    
    .legal-card {
        padding: 20px !important;
    }

    .legal-card h3 {
        font-size: 1.15rem !important;
    }

    .legal-card strong {
        min-width: unset !important;
    }

    .legal-update-date {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
}
