
        :root {
            --bg-dark: #0b1420;
            --bg-surface: #0E1620;
            --bg-card: #121E2A;
            --bg-card-hover: #182838;
            --accent-blue: #00A3E0;
            --accent-blue-subtle: rgba(0, 163, 224, 0.12);
            --accent-orange: #E65F2B;
            --accent-green: #10B981;
            --accent-purple: #8B5CF6;
            --text-main: #E2E8F0;
            --text-muted: #94A3B8;
            --text-bright: #FFFFFF;
            --border-line: rgba(0, 163, 224, 0.25);
            --border-light: rgba(255, 255, 255, 0.08);
            --font-heading: 'Chakra Petch', sans-serif;
            --font-body: 'Inter', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

        body {
            background-color: var(--bg-dark);
            color: var(--text-main);
            font-family: var(--font-body);
            line-height: 1.6;
            overflow-x: hidden;
            background-image: 
                linear-gradient(rgba(0, 163, 224, 0.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 163, 224, 0.025) 1px, transparent 1px);
            background-size: 40px 40px;
        }

        h1, h2, h3, h4, h5, .brand-font { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.5px; }
        a { color: inherit; text-decoration: none; transition: all 0.3s ease; }

        /* Header & Navigation Mobile */
        header {
            position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
            background: rgba(10, 17, 24, 0.95); backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-line);
        }

        .nav-container {
            max-width: 1320px; margin: 0 auto;
            display: flex; justify-content: space-between; align-items: center;
            padding: 0.85rem 1.5rem;
            position: relative;
        }

        .logo-wrapper { display: flex; align-items: center; gap: 14px; cursor: pointer; }
        .logo-svg { height: 40px; width: auto; overflow: visible; }
        .logo-text-block {
            display: flex; flex-direction: column;
            border-left: 2px solid rgba(0, 163, 224, 0.4);
            padding-left: 12px;
        }
        .logo-title {
            font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700;
            color: var(--text-bright); letter-spacing: 1.5px; line-height: 1;
        }
        .logo-subtitle {
            font-family: var(--font-heading); font-size: 0.65rem; font-weight: 600;
            color: var(--accent-blue); letter-spacing: 2px; line-height: 1.3; margin-top: 2px;
        }

        /* Hamburger Menu */
        .menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            background: none;
            border: none;
            padding: 5px;
            z-index: 1001;
        }
        .menu-toggle span {
            display: block;
            width: 25px;
            height: 2px;
            background: var(--text-bright);
            transition: all 0.3s ease;
            border-radius: 2px;
        }
        .menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }
        .menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        .nav-links {
            display: flex; gap: 1.8rem; list-style: none;
            transition: all 0.3s ease;
        }
        .nav-links a {
            font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600;
            color: var(--text-muted); padding: 6px 0; text-transform: uppercase; position: relative;
        }
        .nav-links a:hover, .nav-links a.active { color: var(--text-bright); }
        .nav-links a::after {
            content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
            background-color: var(--accent-orange); transition: width 0.3s ease;
        }
        .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .language-switcher {
            display: flex; border: 1px solid var(--border-line); background: rgba(10, 17, 24, 0.8);
            border-radius: 4px; overflow: hidden;
        }
        .language-btn {
            border: 0; background: transparent; color: var(--text-muted);
            padding: 0.35rem 0.75rem; font-family: var(--font-heading);
            font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: 0.2s;
        }
        .language-btn.active { background: var(--accent-blue); color: var(--text-bright); }

        /* Buttons */
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            padding: 0.85rem 1.8rem; font-family: var(--font-heading);
            font-weight: 700; font-size: 0.88rem; text-transform: uppercase;
            letter-spacing: 1px; border: none; cursor: pointer; border-radius: 6px;
            transition: all 0.3s ease;
        }
        .btn-primary {
            background-color: var(--accent-orange); color: var(--text-bright);
            box-shadow: 0 4px 15px rgba(230, 95, 43, 0.35);
        }
        .btn-primary:hover {
            background-color: #d65321; transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(230, 95, 43, 0.5);
        }
        .btn-outline {
            background: transparent; color: var(--text-bright); border: 1px solid var(--accent-blue);
        }
        .btn-outline:hover { background: rgba(0, 163, 224, 0.12); color: var(--accent-blue); }

        /* SECTIONS — shared spacing for all pages. */
        section { padding: 5.5rem 1.5rem; max-width: 1320px; margin: 0 auto; }
        .section-header { margin-bottom: 3rem; }
        .section-tag {
            font-family: var(--font-heading); color: var(--accent-orange); font-size: 0.85rem;
            font-weight: 700; letter-spacing: 2px; margin-bottom: 0.5rem; display: block;
        }
        .section-title { font-size: 2.2rem; color: var(--text-bright); line-height: 1.2; }
        .section-subtitle { color: var(--text-muted); max-width: 760px; margin-top: 0.75rem; font-size: 0.95rem; }

        /* =====================================================================
           HOMEPAGE HERO + SLOW ENGINEERING BACKGROUND SLIDESHOW
           ---------------------------------------------------------------------
           Edit the image URLs in index.html (.hero-bg-slide elements).
           Images are always cropped/fitted to the full hero area with cover.
           The animation slowly pans and cross-fades each image, then loops.
        ====================================================================== */
        .hero-section {
            min-height: 90vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8rem 1.5rem 5rem;
            position: relative;
            max-width: 100%;
            overflow: hidden;
            isolation: isolate;
            background: var(--bg-dark);
        }
        .hero-bg-slideshow {
            position: absolute;
            inset: 0;
            z-index: -2;
            overflow: hidden;
            background: var(--bg-dark);
            /* Fallback: the first hero image remains visible even if animations are disabled. */
            background-image: var(--hero-fallback-image);
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }
        .hero-bg-slide {
            position: absolute;
            inset: -4%;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            opacity: 0;
            transform: scale(1.05);
            animation: heroSlide 32s ease-in-out infinite;
            will-change: opacity, transform, background-position;
        }
        .hero-bg-slide::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(7,12,18,.76) 0%, rgba(7,12,18,.68) 45%, rgba(7,12,18,.94) 100%);
        }
        .hero-bg-slide-1 { animation-delay: 0s; }
        /* Negative delays make sure a slide is already visible immediately on page load. */
        .hero-bg-slide-2 { animation-delay: -8s; }
        .hero-bg-slide-3 { animation-delay: -16s; }
        .hero-bg-slide-4 { animation-delay: -24s; }

        @keyframes heroSlide {
            0% { opacity: 0; transform: scale(1.06); background-position: 46% 50%; }
            5% { opacity: 1; }
            24% { opacity: 1; transform: scale(1.00); background-position: 54% 50%; }
            29% { opacity: 0; transform: scale(1.00); background-position: 58% 50%; }
            100% { opacity: 0; }
        }
        .hero-inner {
            max-width: 1080px;
            margin: 0 auto;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        .hero-content {
            width: 100%;
            max-width: 980px;
            padding: 0;
            border-left: 0;
        }
        .hero-badge {
            background: rgba(0, 163, 224, 0.14);
            border: 1px solid var(--accent-blue);
            color: var(--accent-blue);
            padding: 0.35rem 0.9rem;
            font-family: var(--font-heading);
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            display: inline-block;
            margin-bottom: 1.25rem;
            border-radius: 4px;
            backdrop-filter: blur(6px);
        }
        .hero-title {
            font-size: clamp(2.2rem, 5vw, 4.2rem);
            line-height: 1.1;
            color: var(--text-bright);
            margin-bottom: 1.25rem;
            text-wrap: balance;
            text-shadow: 0 4px 28px rgba(0,0,0,.45);
        }
        .hero-description {
            font-size: 1.05rem;
            color: #cbd5e1;
            margin: 0 auto 2rem;
            max-width: 760px;
            text-shadow: 0 2px 16px rgba(0,0,0,.6);
        }
        .hero-actions {
            display: flex;
            justify-content: center;
            gap: 1.25rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }
        .hero-stats {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 1rem;
            border-top: 0;
            padding-top: 0;
            max-width: 880px;
            margin: 0 auto;
        }
        .stat-card {
            background: rgba(18, 30, 42, 0.66);
            border: 1px solid rgba(255,255,255,.12);
            padding: 0.9rem 1rem;
            border-radius: 8px;
            backdrop-filter: blur(8px);
            box-shadow: 0 10px 30px rgba(0,0,0,.18);
        }
        .stat-num { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; line-height: 1; }
        .stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }

        /* The old oversized homepage logo card has intentionally been removed. */

        /* À Propos */
        .positioning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
        .experience-box {
            background: var(--bg-card); border: 1px solid var(--border-line); padding: 2.5rem;
            position: relative; border-radius: 0 10px 10px 0;
        }
        .experience-box::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent-orange); }
        .exp-number { font-family: var(--font-heading); font-size: 4.5rem; color: var(--accent-blue); line-height: 1; font-weight: 700; }

        /* Cycle Flow */
        .cycle-container { background: var(--bg-card); border: 1px solid var(--border-line); padding: 2.5rem 1.5rem; border-radius: 12px; margin-top: 1rem; }
        .cycle-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
        .cycle-step {
            background: var(--bg-dark); border: 1px solid var(--border-light); padding: 1.25rem 1rem;
            text-align: center; border-radius: 8px; transition: 0.3s;
        }
        .cycle-step:hover { border-color: var(--accent-blue); background: var(--bg-card-hover); }
        .cycle-step-num { font-family: var(--font-mono); color: var(--accent-blue); font-size: 0.75rem; font-weight: bold; margin-bottom: 6px; }

        /* =========================================================================
           CARTES DES DISCIPLINES AVEC PHOTOS D'ARRIÈRE-PLAN ET EFFET HOVER
        ========================================================================== */
        .discipline-card {
            background: var(--bg-card); border: 1px solid var(--border-light);
            border-radius: 16px; padding: 2.2rem; margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: all 0.4s ease;
            position: relative; overflow: hidden;
        }
        .discipline-card:hover { border-color: rgba(0, 163, 224, 0.6); transform: translateY(-2px); }

        /* Conteneur de l'image de fond */
        .card-bg-layer {
            position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; border-radius: 16px;
        }
        .card-bg-img {
            width: 100%; height: 100%; object-fit: cover;
            opacity: 0.16; filter: brightness(80%) contrast(120%);
            transform: scale(1.05); transition: transform 0.7s ease, opacity 0.7s ease;
        }
        .discipline-card:hover .card-bg-img,
        .sector-card:hover .card-bg-img {
            transform: scale(1); opacity: 0.28;
        }

        .card-bg-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(90deg, #121E2A 0%, rgba(18, 30, 42, 0.92) 50%, rgba(18, 30, 42, 0.78) 100%);
        }
        .card-content-layer {
            position: relative; z-index: 10;
        }

        .sub-box {
            background: rgba(10, 17, 24, 0.88); border: 1px solid var(--border-light);
            border-radius: 12px; padding: 1.5rem; transition: 0.3s;
            backdrop-filter: blur(8px);
        }
        .sub-box:hover { border-color: rgba(0, 163, 224, 0.45); }
        .sub-box h4 {
            font-size: 1.05rem; color: var(--text-bright); border-bottom: 1px solid rgba(255,255,255,0.08);
            padding-bottom: 0.6rem; margin-bottom: 0.85rem; display: flex; align-items: center; justify-content: space-between;
        }

        .item-list { list-style: none; }
        .item-list li {
            color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem;
            padding-left: 1.2rem; position: relative; line-height: 1.4; transition: color 0.2s;
        }
        .item-list li:hover { color: #FFF; }
        .item-list li::before {
            content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px;
            border-radius: 50%; background: var(--accent-blue);
        }
        .item-list.orange li::before { background: var(--accent-orange); }
        .item-list.green li::before { background: var(--accent-green); }
        .item-list.purple li::before { background: var(--accent-purple); }

        .tag-pill {
            font-family: var(--font-mono); font-size: 0.72rem; padding: 3px 8px;
            border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); background: rgba(10, 17, 24, 0.9);
            color: var(--text-muted); backdrop-filter: blur(4px);
        }

        /* Secteurs & Cartes */
        .sector-card {
            background: var(--bg-card); border: 1px solid var(--border-light);
            border-radius: 12px; padding: 2rem 1.5rem; text-align: center;
            position: relative; overflow: hidden; transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        }
        .sector-card:hover { border-color: rgba(0, 163, 224, 0.5); transform: translateY(-2px); }

        /* Formulaire & Contact */
        .contact-container {
            display: grid; grid-template-columns: 1fr 1.3fr; gap: 3.5rem;
            background: var(--bg-card); border: 1px solid var(--border-line); padding: 3rem; border-radius: 14px;
        }
        .form-control {
            width: 100%; padding: 0.85rem 1rem; background: var(--bg-dark);
            border: 1px solid var(--border-light); color: white; margin-bottom: 1rem;
            border-radius: 6px; font-family: var(--font-body); font-size: 0.9rem;
        }
        .form-control:focus { outline: none; border-color: var(--accent-blue); }

        /* Footer */
        footer { background: #060B0E; padding: 4.5rem 1.5rem 2rem; border-top: 1px solid var(--border-light); }
        .footer-container {
            max-width: 1320px; margin: 0 auto; display: grid;
            grid-template-columns: 1.5fr 1fr 1.5fr; gap: 3rem;
        }
        .footer-bottom {
            max-width: 1320px; margin: 3rem auto 0; padding-top: 1.5rem;
            text-align: center; color: var(--text-muted); font-size: 0.85rem;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            padding: 1rem 2rem;
            background: var(--bg-card);
            border: 1px solid var(--accent-blue);
            border-radius: 8px;
            color: var(--text-bright);
            font-family: var(--font-heading);
            font-size: 0.9rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.4s ease;
            z-index: 2000;
            backdrop-filter: blur(10px);
        }
        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        /* RESPONSIVE DESIGN — adjust these breakpoints if needed. */
        @media (max-width: 992px) {
            .hero-inner, .positioning-grid, .contact-container, .footer-container { grid-template-columns: 1fr; }
            .hero-section { min-height: 86vh; padding-top: 7rem; }
            .hero-title { font-size: 2.5rem; }
            
            .menu-toggle {
                display: flex;
            }

            .nav-links {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: rgba(10, 17, 24, 0.98);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 2rem;
                transform: translateX(100%);
                backdrop-filter: blur(20px);
                z-index: 999;
                padding: 2rem;
            }
            .nav-links.open {
                transform: translateX(0);
            }
            .nav-links a {
                font-size: 1.2rem;
                color: var(--text-main);
            }
            .nav-links a::after {
                bottom: -4px;
            }

            .header-actions {
                gap: 0.5rem;
            }
        }

        @media (max-width: 480px) {
            .hero-section { min-height: 84vh; padding-left: 1rem; padding-right: 1rem; }
            .hero-title { font-size: 1.9rem; }
            .hero-description { font-size: .95rem; }
            .hero-tagline { font-size: .85rem; }
            .hero-stats { grid-template-columns: 1fr; }
            .section-title { font-size: 1.6rem; }
            .discipline-card { padding: 1.5rem; }
            .contact-container { padding: 1.5rem; }
            .cycle-flow { grid-template-columns: 1fr 1fr; }
        }
    
/* ==========================================================================
   EGS MULTI-PAGE OVERRIDES
   Edit this section for the global visual identity.
   ========================================================================== */
:root {
    --accent-blue: #00A3E0;
    --accent-orange: #E65F2B;
    --accent-green: #10B981;
    --accent-purple: #8B5CF6;
}
html { scroll-behavior: auto; }
body { min-height: 100vh; }
.page-main { padding-top: 86px; min-height: calc(100vh - 86px); }
.page-main > section { min-height: auto; max-width: 1320px; }
.page-main > section.full-width { max-width: 100%; }

.page-hero {
    max-width: 1320px;
    margin: 0 auto;
    padding: 5.5rem 1.5rem 3rem;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--text-bright);
    line-height: 1.1;
    max-width: 900px;
}
.page-hero p {
    max-width: 820px;
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 1rem;
}
.page-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.page-link-card {
    display: block;
    padding: 1.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
}
.page-link-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}
.page-link-card strong {
    display: block;
    color: var(--text-bright);
    font-family: var(--font-heading);
    margin-bottom: .35rem;
}
.page-link-card span { color: var(--text-muted); font-size: .85rem; }

.site-logo { display: block; width: auto; height: 48px; object-fit: contain; }
.logo-wrapper .site-logo { height: 46px; }
.footer-logo .site-logo { height: 58px; margin-bottom: .8rem; }
.logo-image-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-links a.active::after { width: 100%; }
.form-status {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border: 1px solid var(--border-line);
    border-radius: 6px;
    color: var(--text-muted);
    display: none;
}
.form-status.show { display: block; }
footer { margin-top: 0; }
@media (max-width: 992px) {
    .page-links-grid { grid-template-columns: 1fr; }
    .page-hero { padding-top: 4rem; }
}


/* ============================================================================
   SERVICE PAGE HERO IMAGES
   ---------------------------------------------------------------------------
   Each service page has one .service-hero-image. Replace only its src URL.
   object-fit: cover makes any replacement image fit the same frame cleanly.
   ============================================================================ */
.service-hero-media {
    width: 100%;
    margin: 0 0 2.5rem;
    border: 1px solid var(--border-line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
}
.service-hero-image {
    display: block;
    width: 100%;
    height: clamp(220px, 34vw, 430px);
    object-fit: cover;
    object-position: center;
    filter: brightness(.72) saturate(.92);
    transition: transform .7s ease, filter .4s ease;
}
.service-hero-media:hover .service-hero-image {
    transform: scale(1.025);
    filter: brightness(.82) saturate(1);
}

/* ============================================================================
   SERVICES DROPDOWN
   ---------------------------------------------------------------------------
   The "Nos Domaines" header item is a real button. Clicking it opens the
   domain list. Each item links to its own service detail page.
   Modify the menu labels/links in each HTML header; modify the visual style here.
   ============================================================================ */
.nav-dropdown { position: relative; list-style: none; }
.nav-dropdown-toggle {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    padding: 6px 0;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--text-bright); }
.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width .3s ease;
}
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle.active::after,
.nav-dropdown.open .nav-dropdown-toggle::after { width: 100%; }
.dropdown-chevron { font-size: .95rem; line-height: 1; transition: transform .2s ease; }
.nav-dropdown.open .dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: min(360px, 92vw);
    padding: .55rem;
    background: rgba(10, 17, 24, .98);
    border: 1px solid var(--border-line);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 1100;
}
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: .72rem .85rem;
    border-radius: 7px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.3;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    color: var(--text-bright);
    background: rgba(0,163,224,.10);
}
.nav-dropdown-menu a.active { border-left: 2px solid var(--accent-blue); }

@media (max-width: 992px) {
    .nav-dropdown { width: 100%; text-align: center; }
    .nav-dropdown-toggle {
        font-size: 1.2rem;
        color: var(--text-main);
        padding: 4px 0;
    }
    .nav-dropdown-menu {
        position: static;
        width: min(460px, 100%);
        margin: .5rem auto 0;
        transform: none;
        max-height: 0;
        overflow: hidden;
        padding: 0 .55rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: max-height .25s ease, opacity .2s ease, visibility .2s ease, padding .2s ease;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        transform: none;
        max-height: 520px;
        padding: .55rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-dropdown-menu a { font-size: .88rem; padding: .7rem .85rem; text-align: left; }
}


/* Respect accessibility settings for visitors who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .hero-bg-slide { animation: none; opacity: 0; transform: none; }
    .hero-bg-slide-1 { opacity: 1; }
    .service-hero-image { transition: none; }
}

/* Instrumentation & ICSS: use the supplied image as the section background, unchanged. */
.page-hero:has(.section-title[data-i18n="Instrumentation, Contrôle-Commande & ICSS"]) {
    max-width: 100%;
    min-height: 620px;
    padding: 7rem 5vw 4rem;
    background-image: url("../images/instrumentation-icss.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 0;
}

.page-hero:has(.section-title[data-i18n="Instrumentation, Contrôle-Commande & ICSS"]) .section-header,
.page-hero:has(.section-title[data-i18n="Instrumentation, Contrôle-Commande & ICSS"]) > .btn {
    position: relative;
    z-index: 1;
}


/* EGS — Instrumentation / ICSS hero: original user-provided image only */
.instrumentation-hero {
    width: 100%;
    max-width: none;
    min-height: 560px;
    box-sizing: border-box;
    padding: 7rem max(1.5rem, calc((100vw - 1320px) / 2)) 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-image: url("../images/instrumentation-icss-hero.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.instrumentation-hero .section-header,
.instrumentation-hero .section-title,
.instrumentation-hero .section-subtitle,
.instrumentation-hero .section-tag,
.instrumentation-hero .btn {
    position: relative;
    z-index: 1;
}
.instrumentation-hero .section-title {
    color: #fff;
    max-width: 850px;
    text-shadow: 0 2px 8px rgba(0,0,0,.55);
}
.instrumentation-hero .section-subtitle {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.instrumentation-hero .section-tag {
    color: var(--accent-orange);
    text-shadow: 0 2px 5px rgba(0,0,0,.65);
}
.instrumentation-hero .btn {
    color: #fff;
    border-color: rgba(255,255,255,.8);
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
@media (max-width: 768px) {
    .instrumentation-hero {
        min-height: 520px;
        padding: 6rem 1.25rem 4rem;
        background-position: center center;
    }
}

/* EGS service domain heroes: use the original user-provided image as the background only. */
.mechanical-hero,
.cybersecurity-hero,
.electrical-hero {
    width: 100%;
    max-width: none;
    min-height: 560px;
    box-sizing: border-box;
    padding: 7rem max(1.5rem, calc((100vw - 1320px) / 2)) 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.mechanical-hero { background-image: url("../images/mec.png"); }
.cybersecurity-hero { background-image: url("../images/OIP.png"); }
.electrical-hero { background-image: url("../images/elc.png"); }

.mechanical-hero .section-header,
.mechanical-hero .section-title,
.mechanical-hero .section-subtitle,
.mechanical-hero .section-tag,
.mechanical-hero .btn,
.cybersecurity-hero .section-header,
.cybersecurity-hero .section-title,
.cybersecurity-hero .section-subtitle,
.cybersecurity-hero .section-tag,
.cybersecurity-hero .btn,
.electrical-hero .section-header,
.electrical-hero .section-title,
.electrical-hero .section-subtitle,
.electrical-hero .section-tag,
.electrical-hero .btn {
    position: relative;
    z-index: 1;
}
.mechanical-hero .section-title,
.cybersecurity-hero .section-title,
.electrical-hero .section-title {
    color: #fff;
    max-width: 850px;
    text-shadow: 0 2px 8px rgba(0,0,0,.55);
}
.mechanical-hero .section-subtitle,
.cybersecurity-hero .section-subtitle,
.electrical-hero .section-subtitle {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.mechanical-hero .section-tag,
.cybersecurity-hero .section-tag,
.electrical-hero .section-tag {
    color: var(--accent-orange);
    text-shadow: 0 2px 5px rgba(0,0,0,.65);
}
.mechanical-hero .btn,
.cybersecurity-hero .btn,
.electrical-hero .btn {
    color: #fff;
    border-color: rgba(255,255,255,.8);
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
@media (max-width: 768px) {
    .mechanical-hero,
    .cybersecurity-hero,
    .electrical-hero {
        min-height: 520px;
        padding: 6rem 1.25rem 4rem;
        background-position: center center;
    }
}


/* ============================================================
   EGS READABILITY ENHANCEMENT
   CSS ONLY — CONTENT / IMAGES / ANIMATIONS UNCHANGED
   ============================================================ */

body {
    line-height: 1.7;
}

.nav-links {
    align-items: center;
}

.nav-links a,
.nav-dropdown-toggle {
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.language-switcher {
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.language-btn {
    min-width: 42px;
}

.hero-bg-slide::after {
    background: linear-gradient(
        180deg,
        rgba(7,12,18,.82) 0%,
        rgba(7,12,18,.70) 45%,
        rgba(7,12,18,.90) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-description {
    line-height: 1.75;
}

.stat-card {
    box-shadow: 0 12px 32px rgba(0,0,0,.24);
}

.stat-label {
    line-height: 1.45;
}

.section-title {
    text-shadow: 0 2px 14px rgba(0,0,0,.22);
}

.section-subtitle {
    line-height: 1.7;
}

.page-link-card,
.service-card,
.sector-card,
.info-card,
.contact-card {
    line-height: 1.6;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .hero-title {
        line-height: 1.14;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.65;
    }

    .section-subtitle {
        line-height: 1.65;
    }
}


/* ============================================================
   EGS COMMERCIAL PRESENTATION — VISUAL HIERARCHY
   ============================================================ */
.commercial-section { padding: 5rem 0; }
.commercial-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.2rem; margin-top:2rem; }
.markets-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.commercial-card { position:relative; padding:1.7rem; background:var(--bg-card); border:1px solid var(--border-light); border-radius:12px; min-height:150px; box-sizing:border-box; transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease; }
.commercial-card:hover { transform:translateY(-4px); box-shadow:0 14px 34px rgba(0,0,0,.22); }
.commercial-card h3 { margin:.4rem 0 .7rem; color:#fff; font-size:1.1rem; }
.commercial-card p { margin:0; color:var(--text-muted); line-height:1.7; }
.commercial-index { font-family:'JetBrains Mono',monospace; color:var(--accent-orange); font-size:.78rem; letter-spacing:.08em; }
.commercial-steps { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.8rem; margin-top:2rem; }
.commercial-steps > div { padding:1.25rem 1rem; background:rgba(255,255,255,.025); border:1px solid var(--border-light); border-radius:10px; min-width:0; }
.commercial-steps span { display:block; font-family:'JetBrains Mono',monospace; color:var(--accent-orange); font-size:.75rem; margin-bottom:.8rem; }
.commercial-steps strong { display:block; color:#fff; font-size:.95rem; margin-bottom:.5rem; }
.commercial-steps small { display:block; color:var(--text-muted); line-height:1.5; font-size:.78rem; }
.question-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-top:2rem; }
.question-card { display:flex; gap:1rem; align-items:flex-start; padding:1.35rem 1.5rem; background:var(--bg-card); border:1px solid var(--border-light); border-radius:10px; }
.question-card span { flex:0 0 auto; font-family:'JetBrains Mono',monospace; color:var(--accent-orange); font-size:.8rem; }
.question-card p { margin:0; color:var(--text-muted); line-height:1.65; }
@media(max-width:900px){ .commercial-grid,.markets-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.commercial-steps{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(max-width:600px){ .commercial-section{padding:3.5rem 0;}.commercial-grid,.markets-grid,.question-grid{grid-template-columns:1fr;}.commercial-steps{grid-template-columns:repeat(2,minmax(0,1fr));} }


/* EGS — INDEX.HTML ONLY: HERO LIGHT BACKGROUND / CLEARER PHOTOS
   All other pages keep the original dark background.
   The section below the Hero and the footer remain unchanged. */
body[data-page="home"] .hero-section,
body[data-page="home"] .hero-bg-slideshow {
    background-color: #e9edf0;
}

body[data-page="home"] .hero-bg-slide::after {
    background: linear-gradient(
        180deg,
        rgba(8, 14, 20, 0.32) 0%,
        rgba(8, 14, 20, 0.58) 22%,
        rgba(8, 14, 20, 0.66) 55%,
        rgba(8, 14, 20, 0.58) 78%,
        rgba(8, 14, 20, 0.70) 100%
    );
}
