:root {
    --primary: #32A9DF;
    --green: #32AA50;
    --navy: #1B3F70;
    --navy-dark: #122B4D;
    --white: #FFFFFF;
    --light-bg: #F4F8FB;
    --text-color: #333333;
    --text-light: #555555;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    user-select: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--navy);
}

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

ul {
    list-style: none;
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-navy {
    background-color: var(--navy);
    color: var(--white);
}

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

/* --- Typography & Elements --- */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title.center {
    text-align: center;
}

.line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--green));
    margin-top: 15px;
    border-radius: 2px;
}

.center-line {
    margin: 15px auto 25px auto;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 15px rgba(50, 169, 223, 0.3);
}

.btn-primary:hover {
    background: #258cb8;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(50, 169, 223, 0.4);
}

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

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(10, 48, 78, 0.2);
}

.btn-nav {
    background: var(--green);
    color: var(--white);
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(50, 170, 80, 0.3);
}

.btn-nav:hover {
    background: #278f40;
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Top Bar --- */
.top-bar {
    background-color: #1B3F70;
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1001;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item a,
.top-bar-item span {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.top-bar-item a:hover {
    color: var(--primary);
}

.top-bar-item i {
    font-size: 1.1rem;
    color: var(--primary);
}

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

.top-bar-social {
    display: flex;
    gap: 15px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.top-bar-social a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.top-bar-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.top-bar-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.top-bar-lang a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.8rem;
}

.top-bar-lang a.active,
.top-bar-lang a:hover {
    color: var(--white);
}

.top-bar-lang span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
}

/* Responsive Top Bar */
.hero-logo-mobile {
    display: none;
}

@media (max-width: 992px) {

    .top-bar {
        padding: 5px 0;
    }
    
    .navbar {
        top: 31px; /* Matches new top-bar height: 5+5 + text ~31px */
    }

    .hero-logo-mobile {
        display: block !important;
        margin: 0 auto 15px auto !important;
        width: 60px !important;
        height: auto;
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    }
    
    .top-bar-left {
        display: flex;
        gap: 15px;
    }
    .top-bar-left .tb-text {
        display: none;
    }
    .top-bar-left i {
        font-size: 1.3rem;
    }

    .top-bar-container {
        justify-content: space-between;
    }

    .top-bar-social {
        border-right: none;
        padding-right: 0;
    }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 41px;
    /* Offset for top bar */
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 12px 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
    top: 0;
    /* Reset top for sticky effect */
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 32px;
    transition: var(--transition);
}

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

.nav-links a {
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    position: relative;
    color: var(--navy);
}

.navbar.scrolled .nav-links a {
    color: var(--navy);
}

.navbar.scrolled .nav-links a.btn-nav {
    color: var(--white);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* --- Mega Menu (Premium Glassmorphism Upgrade) --- */
.nav-item.has-dropdown {
    position: relative;
    perspective: 1500px;
    /* Enhanced 3D context */
}

.nav-item.has-dropdown>a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 25px);
    /* Detached 'floating' effect */
    left: 50%;
    transform: translateX(-50%) translateY(20px) rotateX(-12deg);
    transform-origin: top center;
    width: 880px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 2px solid rgba(27, 63, 112, 0.5);
    /* Navy glass border */
    border-bottom: 3px solid rgba(27, 63, 112, 0.2);
    border-radius: 40px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
    padding: 30px 20px;
}

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

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.mega-col {
    padding: 0 15px;
    position: relative;
}

/* Gradient Separators */
.mega-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1.5px;
    background: linear-gradient(to bottom, transparent, rgba(27, 63, 112, 0.3), transparent);
}

.mega-col h3 {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1B3F70;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.mega-col ul {
    list-style: none;
}

.mega-col ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Glowing Bullets */
.mega-col ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(50, 169, 223, 0.6);
    transition: transform 0.3s ease;
}

.mega-col ul li:hover::before {
    transform: scale(1.4);
}

.mega-col ul li a {
    font-size: 0.8rem;
    color: #2c4465 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.mega-col ul li a:hover {
    color: var(--primary) !important;
    transform: translateX(3px);
}

.mega-col ul li a::after {
    display: none !important;
}

/* Mobile Mega Menu Adjustments */
@media (max-width: 1150px) {
    .mega-menu {
        width: 95vw;
    }
}

@media (max-width: 992px) {

    .hero-logo-mobile {
        display: block !important;
        margin: 0 auto 15px auto !important;
        width: 60px !important;
        height: auto;
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    }
    
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        left: auto !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 5px 0 15px 15px;
        display: none;
        width: 100%;
        background: transparent;
        backdrop-filter: none;
    }

    .mega-col h3 {
        font-size: 0.75rem;
        color: var(--primary) !important;
        border-bottom: none;
        margin-top: 15px;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }

    .mega-col ul li {
        margin-bottom: 8px;
        padding-left: 10px;
    }

    .mega-col ul li::before {
        display: none; /* Remove blue dots in simple mobile design */
    }

    .mega-col ul li a {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 0.9rem !important;
        font-weight: 400 !important;
    }

    .mega-col ul li a:hover {
        color: var(--white) !important;
    }

    .nav-item.has-dropdown:hover .mega-menu {
        transform: none !important;
        opacity: 1;
        visibility: visible;
    }

    .nav-item.has-dropdown.active .mega-menu {
        display: block;
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
    }

    .mega-col {
        border-right: none;
        padding: 5px 0 5px 10px;
    }

    .mega-col:not(:last-child)::after {
        display: none;
    }

    .nav-links .nav-item.has-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links .nav-item.has-dropdown > a i {
        transition: transform 0.3s ease;
    }

    .nav-item.has-dropdown.active > a i {
        transform: rotate(180deg);
    }

    /* Ensure links stay white on the mobile sidebar even when navbar is scrolled */
    .navbar.scrolled .nav-links a:not(.btn) {
        color: var(--white) !important;
    }

    .navbar.scrolled .nav-links .mega-menu a {
        color: rgba(255, 255, 255, 0.8) !important;
    }
}


.hamburger {
    display: none;
    font-size: 1.6rem;
    color: var(--navy);
    cursor: pointer;
}

.navbar.scrolled .hamburger {
    color: var(--navy);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    color: var(--white);
    background: #ffffff;
    display: block;
    overflow: hidden;
}

.hero-media-bg {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-media-bg .native-video {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -280px;
    /* Déplacement vers le haut (~4 cm) */
}

.hero-media-bg .bg-image {
    width: 100%;
    font-size: 0;
    margin-top: -100px;
    /* To prevent 1px gap between video and image if rounded */
}

.hero-media-bg .bg-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 63, 112, 0.25);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 25vw;
    /* Places the text nicely over the video section */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: -1px;
    background: linear-gradient(to right, #FFFFFF, #e0f7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
        font-size: 1.2rem;
        color: var(--white);
        opacity: 1;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); /* Stronger shadow for readability */
        margin-bottom: 30px;
        font-weight: 400;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Hero Search Bar --- */
.hero-search {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-input-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.search-input-wrap input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-input-wrap input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
    outline: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.search-input-wrap i {
    position: absolute;
    left: 20px;
    font-size: 1.5rem;
    color: var(--white);
    pointer-events: none;
    z-index: 11;
}

.search-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Search Suggestions Premium --- */
.suggestions-list-premium {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: 420px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 10px;
}

.suggestions-list-premium.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--navy);
    margin: 2px 0;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(var(--primary-rgb, 10, 107, 219), 0.1);
    transform: translateX(5px);
}

.suggesti {
    width: 40px;
    height: 40px;
    background: rgba(10, 107, 219, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Force icon text to be perfectly centered inside the box */
.suggesti .s-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.3rem;
    line-height: 1;
    text-align: center;
}

.suggestion-item:hover .suggesti,
.suggestion-item.selected .suggesti {
    background: var(--primary);
    color: var(--white);
}

.suggestion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.suggestion-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--navy);
}

.suggestion-category {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 800;
}

.suggestions-list-premium::-webkit-scrollbar {
    width: 5px;
}

.suggestions-list-premium::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

position: relative;
width: 100%;
max-width: 600px;
display: flex;
align-items: center;
z-index: 10;
}

.search-input-wrap i {
    position: absolute;
    left: 20px;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    pointer-events: none;
}

.search-input-wrap input {
    width: 100%;
    padding: 14px 20px 14px 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: var(--white);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.search-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input-wrap input:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
}

.search-input-wrap input:focus {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.search-input-wrap:focus-within i {
    color: var(--white);
    transform: scale(1.1);
}

.hero-scroll {
    position: absolute;
    top: 40vw;
    /* Encore plus haut pour dégager le gobelet */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    display: block;
    position: relative;
    animation: mouse-float 2s ease-in-out infinite;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes mouse-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    /* Le bouton monte davantage */
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 32px;
        /* Il descend jusqu'à ce point dans le cadre */
        opacity: 0;
    }
}

/* --- Positioning Section --- */
.positioning-bg-container {
    position: relative;
    width: 100%;
    scroll-margin-top: -60px;
    /* Descend 2cm plus bas que le bord haut */
}

.positioning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 1rem;
    /* Rétablit la taille de police empêchant les textes de disparaître à cause du wrapper img */
}

.positioning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35%;
    /* Leaves a wide empty space in the middle so the cup remains visible */
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 20vw auto 0;
    /* Ajout d'une marge supérieure pour descendre le bloc de texte */
    color: var(--navy);
}

.intro-para {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.6;
}

.cycle-list {
    margin-top: 20px;
}

.inline-pills li {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    color: var(--text-color);
    border-left: 4px solid transparent;
}

.inline-pills li:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary);
}

.inline-pills i {
    font-size: 1.5rem;
    color: var(--primary);
}

.pos-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--green);
    transition: var(--transition);
}

.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.mini-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.mini-card .icon-wrap {
    width: auto;
    height: auto;
    margin-bottom: 5px;
    background: transparent;
    color: var(--green);
}

.mini-card .icon-wrap i {
    font-size: 1.6rem;
}

.mini-card h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--navy);
}

.mini-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-light);
}

/* --- Activities Section --- */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}

.activity-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    transition: all 0.4s ease;
    z-index: 2;
}

.activity-card:nth-child(1)::before {
    background: linear-gradient(90deg, var(--primary) 0%, #1a8cc3 100%);
}

.activity-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.activity-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--green) 0%, #1e7d38 100%);
}

.activity-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    background: #ffffff;
}

.activity-card:hover::before {
    height: 8px;
    filter: brightness(1.15);
}

.act-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.activity-card:hover .act-icon {
    transform: scale(1.15) translateY(-5px);
}

.activity-card h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.act-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.act-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: transform 0.3s ease, color 0.3s ease;
}

.activity-card:hover .act-list li {
    transform: translateX(8px);
}

/* Stagger list item animations on hover */
.activity-card:hover .act-list li:nth-child(1) { transition-delay: 0.05s; }
.activity-card:hover .act-list li:nth-child(2) { transition-delay: 0.10s; }
.activity-card:hover .act-list li:nth-child(3) { transition-delay: 0.15s; }
.activity-card:hover .act-list li:nth-child(4) { transition-delay: 0.20s; }

.act-list i {
    color: var(--green);
    flex-shrink: 0;
    font-size: 1.2rem;
    margin-top: 2px;
    transition: transform 0.3s ease;
}

.act-list li:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* --- Products Section --- */
.products-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 50px;
    overflow-x: auto;
    padding-bottom: 20px;
    /* Hide scrollbar for cleaner look, but keep functionality */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.products-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.product-card {
    position: relative;
    flex: 0 0 280px;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

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

.product-img {
    width: 100%;
    height: 100%;
}

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

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

/* Slideshow Animation for Cards */
.product-img.slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeCycle 25s infinite;
}

.product-img.slideshow .slide:nth-child(1) {
    animation-delay: 0s;
}

.product-img.slideshow .slide:nth-child(2) {
    animation-delay: 5s;
}

.product-img.slideshow .slide:nth-child(3) {
    animation-delay: 10s;
}

.product-img.slideshow .slide:nth-child(4) {
    animation-delay: 15s;
}

.product-img.slideshow .slide:nth-child(5) {
    animation-delay: 20s;
}

@keyframes fadeCycle {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* 3 images slideshow */
.product-img.slideshow-3 .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeCycle3 15s infinite;
}

.product-img.slideshow-3 .slide:nth-child(1) {
    animation-delay: 0s;
}

.product-img.slideshow-3 .slide:nth-child(2) {
    animation-delay: 5s;
}

.product-img.slideshow-3 .slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes fadeCycle3 {
    0% {
        opacity: 0;
    }

    8.33% {
        opacity: 1;
    }

    33.33% {
        opacity: 1;
    }

    41.66% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* 4 images slideshow */
.product-img.slideshow-4 .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeCycle4 20s infinite;
}

.product-img.slideshow-4 .slide:nth-child(1) {
    animation-delay: 0s;
}

.product-img.slideshow-4 .slide:nth-child(2) {
    animation-delay: 5s;
}

.product-img.slideshow-4 .slide:nth-child(3) {
    animation-delay: 10s;
}

.product-img.slideshow-4 .slide:nth-child(4) {
    animation-delay: 15s;
}

@keyframes fadeCycle4 {
    0% {
        opacity: 0;
    }

    6.25% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* 2 images slideshow */
.product-img.slideshow-2 .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeCycle2 10s infinite;
}

.product-img.slideshow-2 .slide:nth-child(1) {
    animation-delay: 0s;
}

.product-img.slideshow-2 .slide:nth-child(2) {
    animation-delay: 5s;
}

@keyframes fadeCycle2 {
    0% {
        opacity: 0;
    }

    12.5% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    62.5% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(27, 63, 112, 0.8) 100%);
    /* var(--navy) but semi-transparent */
}

.product-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.product-content h3 {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0;
    text-transform: uppercase;
    line-height: 1.1;
    transition: transform 0.4s ease;
    transform: translateY(20px);
}

.product-card:hover .product-content h3 {
    transform: translateY(0);
}

.product-details {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.product-details-inner {
    padding-top: 15px;
}

.product-card:hover .product-details {
    height: auto;
    opacity: 1;
    margin-top: 10px;
}

.product-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    background: var(--primary);
    border-radius: 30px;
}

.btn-small:hover {
    background: var(--white);
    color: var(--primary);
}

@media (max-width: 992px) {

    .hero-logo-mobile {
        display: block !important;
        margin: 0 auto 15px auto !important;
        width: 60px !important;
        height: auto;
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    }
    
    .products-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Media Section --- */
.media-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

.media-container {
    max-width: 900px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-image {
    text-align: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    padding: 20px;
}

.cup-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* --- Solutions Section --- */
.solutions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.sol-block {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sol-block:hover {
    box-shadow: var(--shadow-md);
}

.sol-info h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.sol-info h3 i {
    color: var(--primary);
    background: rgba(50, 169, 223, 0.1);
    padding: 10px;
    border-radius: 12px;
}

.sol-info p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(50, 169, 223, 0.1);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.simple-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.simple-list li:last-child {
    border-bottom: none;
}

/* --- Achievements Gallery V2 --- */
.realisation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.real-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
}

.real-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
    opacity: 0.85;
}

.real-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(18, 43, 77, 0.95) 0%, rgba(18, 43, 77, 0.6) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px 25px;
    transition: all 0.5s ease;
}

.real-content {
    width: 100%;
    transform: translateY(15px);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.real-content h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.real-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.real-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.real-card:hover img {
    transform: scale(1.1);
    opacity: 0.5;
}

.real-card:hover .real-overlay {
    height: 100%;
    background: linear-gradient(to top, rgba(18, 43, 77, 0.95) 0%, rgba(50, 169, 223, 0.8) 100%);
}

.real-card:hover .real-content {
    transform: translateY(0);
}

.real-card:hover .real-btn {
    opacity: 1;
}

.real-card:hover .real-btn i {
    transform: translateX(5px);
}

/* --- Split Layout Section (Vision) --- */
.layout-split {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.split-side {
    flex: 1;
    min-width: 300px;
    padding: 100px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision-side {
    position: relative;
    overflow: hidden;
}

.vision-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><circle cx="50" cy="50" r="40" fill="%23fff"/></svg>') repeat;
}

.side-content {
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.vision-list li {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.vision-list i {
    font-size: 1.5rem;
    color: var(--primary);
}

.objective-box {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    backdrop-filter: blur(5px);
}

.objective-box h4 {
    margin-bottom: 10px;
}

.objective-box p {
    font-size: 1.2rem;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.strength-item {
    text-align: center;
}

.icon-round {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
    color: var(--navy);
    transition: var(--transition);
}

.strength-item:hover .icon-round {
    background: var(--navy);
    color: var(--white);
    transform: rotateY(180deg);
}

.strength-item h4 {
    font-size: 1rem;
}

.process-flow {
    margin-top: 50px;
    padding: 30px;
    background: var(--light-bg);
}

.flow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary);
}

/* --- Footer --- */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    background: white;
    /* to make logo clearly visible */
    border-radius: 8px;
    padding: 5px;
}

.footer-logo p {
    color: #bbb;
    max-width: 300px;
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links ul li a {
    color: #bbb;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

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

/* --- Services Circular Section --- */
.services-wheel-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 60px auto 40px;
    border-radius: 50%;
}

.wheel-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    /* Slightly larger for better readability */
    height: 280px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.4), 0 20px 50px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.core-content h4 {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.core-content p {
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.wheel-quadrants {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Background shadow to keep the unified circle effect without overflow hidden */
.wheel-quadrants::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.quadrant {
    position: absolute;
    width: 50%;
    height: 50%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.q-study {
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    border-top-left-radius: 100% 100%;
}

.q-fabrication {
    top: 0;
    right: 0;
    background: linear-gradient(225deg, #0ea5e9, #0369a1);
    border-top-right-radius: 100% 100%;
}

.q-installation {
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, #0284c7, #0c4a6e);
    border-bottom-left-radius: 100% 100%;
}

.q-maintenance {
    bottom: 0;
    right: 0;
    background: linear-gradient(315deg, #10b981, #065f46);
    border-bottom-right-radius: 100% 100%;
}

.q-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.quadrant:hover .q-wrap {
    transform: scale(1.08) rotate(2deg);
    /* Effet 3D dynamique */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    z-index: 20;
}

.quadrant:hover {
    z-index: 15;
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.2);
}

/* Assombrir les autres quartiers quand on survole le cercle ! */
.wheel-quadrants:hover .quadrant:not(:hover) .q-wrap {
    filter: brightness(0.8) grayscale(20%);
}

.q-icon {
    font-size: 3.5rem;
    margin-bottom: 0;
    color: var(--white);
    transition: var(--transition);
}

/* Centrage parfaitement équilibré pour chaque icône */
.q-study .q-icon {
    transform: translate(12px, 12px);
    /* Écarte légèrement du blanc central TL */
}

.q-fabrication .q-icon {
    transform: translate(-12px, 12px);
    /* Écarte légèrement du blanc central TR */
}

.q-installation .q-icon {
    transform: translate(12px, -12px);
    /* Écarte légèrement du blanc central BL */
}

.q-maintenance .q-icon {
    transform: translate(-12px, -12px);
    /* Écarte légèrement du blanc central BR */
}

/* Animations de survol synchronisées */
.q-study:hover .q-icon {
    transform: translate(12px, 12px) scale(1.15);
}

.q-fabrication:hover .q-icon {
    transform: translate(-12px, 12px) scale(1.15);
}

.q-installation:hover .q-icon {
    transform: translate(12px, -12px) scale(1.15);
}

.q-maintenance:hover .q-icon {
    transform: translate(-12px, -12px) scale(1.15);
}

.quadrant h3 {
    display: none;
}

.quadrant p {
    position: absolute;
    width: 260px;
    background: var(--white);
    color: var(--navy);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 20;
    pointer-events: none;
}

.quadrant:hover p {
    opacity: 1;
    visibility: visible;
}

.quadrant p::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Placement et forme exactes avec Espacements (Gaps via translation de bloc) */
.q-study {
    top: 0;
    left: 0;
    transform: translate(-2px, -2px);
}

.q-study p {
    bottom: 85%;
    right: 85%;
    transform: translate(-20px, -20px);
}

.q-study:hover p {
    transform: translate(0, 0);
}

.q-study p::after {
    bottom: -12px;
    right: 25px;
    border-width: 12px 12px 0 0;
    border-color: var(--white) transparent transparent transparent;
}

.q-study .q-wrap {
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    border-radius: 100% 0 0 0;
}

.q-fabrication {
    top: 0;
    right: 0;
    padding: 0 0 4px 4px;
}

.q-fabrication p {
    bottom: 85%;
    left: 85%;
    transform: translate(20px, -20px);
}

.q-fabrication:hover p {
    transform: translate(0, 0);
}

.q-fabrication p::after {
    bottom: -12px;
    left: 25px;
    border-width: 12px 0 0 12px;
    border-color: var(--white) transparent transparent transparent;
}

.q-fabrication {
    top: 0;
    right: 0;
    transform: translate(2px, -2px);
}

.q-fabrication .q-wrap {
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a8cc3 100%);
    border-radius: 0 100% 0 0;
}

.q-installation {
    bottom: 0;
    left: 0;
    transform: translate(-2px, 2px);
}

.q-installation p {
    top: 85%;
    right: 85%;
    transform: translate(-20px, 20px);
}

.q-installation:hover p {
    transform: translate(0, 0);
}

.q-installation p::after {
    top: -12px;
    right: 25px;
    border-width: 0 12px 12px 0;
    border-color: transparent var(--white) transparent transparent;
}

.q-installation .q-wrap {
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #185a8a 0%, #2b7bc3 100%);
    border-radius: 0 0 0 100%;
}

.q-maintenance {
    bottom: 0;
    right: 0;
    transform: translate(2px, 2px);
}

.q-maintenance p {
    top: 85%;
    left: 85%;
    transform: translate(20px, 20px);
}

.q-maintenance:hover p {
    transform: translate(0, 0);
}

.q-maintenance p::after {
    top: -12px;
    left: 25px;
    border-width: 0 0 12px 12px;
    border-color: transparent transparent var(--white) transparent;
}

.q-maintenance .q-wrap {
    align-items: center;
    justify-content: center;
    padding: 80px;
    background: linear-gradient(135deg, var(--green) 0%, #1e7d38 100%);
    border-radius: 0 0 100% 0;
}

@media (max-width: 800px) {
    .services-wheel-container {
        width: 100%;
        height: auto;
        border-radius: 0;
        margin: 20px 0;
    }

    .wheel-core {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: auto;
        border-radius: var(--border-radius);
        margin-bottom: 20px;
        padding: 25px;
    }

    .core-content h4 {
        font-size: 1.2rem;
    }

    .wheel-quadrants {
        display: flex;
        flex-direction: column;
        gap: 15px;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
    }

    .wheel-quadrants::before {
        display: none;
    }

    .quadrant {
        position: relative;
        width: 100%;
        height: auto;
        padding: 0 !important;
        margin-bottom: 20px;
    }

    .q-wrap {
        padding: 30px !important;
        align-items: flex-start !important;
        text-align: left !important;
        border-radius: var(--border-radius) !important;
        background: var(--navy);
        /* Default fallback */
    }

    .q-study .q-wrap {
        background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    }

    .q-fabrication .q-wrap {
        background: linear-gradient(135deg, var(--primary) 0%, #1a8cc3 100%);
    }

    .q-installation .q-wrap {
        background: linear-gradient(135deg, #185a8a 0%, #2b7bc3 100%);
    }

    .q-maintenance .q-wrap {
        background: linear-gradient(135deg, var(--green) 0%, #1e7d38 100%);
    }

    .q-study,
    .q-fabrication,
    .q-installation,
    .q-maintenance {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .quadrant p {
        position: relative;
        width: 100%;
        bottom: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
        background: transparent;
        color: rgba(255, 255, 255, 0.9);
    }

    .quadrant p::after {
        display: none;
    }
}

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

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

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* --- Responsive --- */
@media (max-width: 992px) {

    .hero-logo-mobile {
        display: block !important;
        margin: 0 auto 15px auto !important;
        width: 60px !important;
        height: auto;
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    }
    

    .activities-grid,
    .solutions-content {
        grid-template-columns: 1fr;
    }

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

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

    .layout-split {
        flex-direction: column;
    }

    .flow-steps {
        flex-direction: column;
        gap: 10px;
    }

    .flow-steps i {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: var(--navy);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        overflow-y: auto;
        overflow-x: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--white) !important;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active {
        color: var(--white);
    }

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

    #activities,
    #solutions,
    #services {
        scroll-margin-top: -70px;
    }

    .hero .subtitle {
        font-size: 1.2rem;
        color: var(--white);
        opacity: 1;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); /* Stronger shadow for readability */
        margin-bottom: 30px;
        font-weight: 400;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .positioning-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .strengths-grid,
    .realisation-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Nos Solutions V2 (Visual Grid) --- */
.solutions-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.sol-card-v2 {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.sol-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.sol-card-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sol-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.sol-card-v2:hover .sol-card-img img {
    transform: scale(1.08);
}

.sol-card-content {
    padding: 25px;
    text-align: left;
}

.sol-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 184, 156, 0.1);
    border-radius: 50px;
}

.sol-card-content h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 0;
    line-height: 1.4;
}

@media (max-width: 850px) {
    .solutions-visual-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Swiper 3D Coverflow Domain Slider --- */
#domains {
    position: relative;
    width: 100%;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle farthest-corner at 10% 20%, var(--navy) 0%, var(--primary-dark) 90%);
    overflow: hidden;
    padding: 100px 0;
}

.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 80px;
}

.swiper-slide {
    width: 320px;
    height: 450px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    filter: blur(2px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: flex-start;
    transition: all 0.5s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.swiper-slide-active {
    filter: blur(0px);
    border: 2px solid var(--primary);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

.swiper-slide span {
    text-transform: uppercase;
    color: #fff;
    background: var(--primary);
    padding: 8px 20px 8px 30px;
    display: inline-block;
    border-radius: 0 25px 25px 0px;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

.swiper-slide h2 {
    color: #fff;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 15px;
    padding: 0 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.swiper-slide p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    display: flex;
    align-items: center;
    padding: 0 30px 40px 30px;
    font-weight: 400;
}

.swiper-slide i {
    color: var(--primary);
    font-size: 1.4rem;
    margin-right: 10px;
}

/* Background Images moved to inline styles in index.html for reliability */

.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right {
    background-image: none;
}

/* --- Partners Section --- */
.partners-slider-container {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    background: var(--light-bg);
}

.partners-slider-container::before,
.partners-slider-container::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.partners-slider-container::before {
    left: 0;
    top: 0;
    background: linear-gradient(to right, var(--light-bg), transparent);
}

.partners-slider-container::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, var(--light-bg), transparent);
}

.logo-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: scroll-marquee 40s linear infinite;
    gap: 60px;
    align-items: center;
}

.logo-slide {
    flex: 0 0 auto;
    width: 220px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-slide img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.logo-slide:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.15);
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Adjustments for Partners */
@media (max-width: 768px) {
    .partners-slider-container {
        padding: 40px 0;
    }

    .logo-slide {
        width: 170px;
        height: 100px;
    }

    .logo-slide img {
        max-height: 80px;
    }

    .logo-track {
        gap: 30px;
    }

    .partners-slider-container::before,
    .partners-slider-container::after {
        width: 60px;
    }
}


/* --- Order Form Section --- */
#order-form {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.order-container {
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.order-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 30px;
}

.order-header .pre-title {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.order-header h2 {
    font-size: 2.2rem;
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 10px;
}

.order-intro {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.contact-fast {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-box i {
    font-size: 1.4rem;
    color: var(--primary);
}

.contact-box:hover {
    color: var(--primary);
}

/* Form Styles */
.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #F8FAFC;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(50, 169, 223, 0.1);
    outline: none;
}

/* Custom Checkbox/Radio Grid */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 5px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: #F8FAFC;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1.5px solid #E2E8F0;
    transition: var(--transition);
}

.option-item:hover {
    background: #F1F5F9;
    border-color: var(--primary);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.option-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-input {
    width: 100%;
    padding: 30px;
    border: 2px dashed #CBD5E0;
    border-radius: 12px;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-input:hover {
    border-color: var(--primary);
    background: #F1F5F9;
}

/* Submit Button */
.form-submit-container {
    text-align: center;
    margin-top: 20px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    color: var(--white);
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(50, 169, 223, 0.3);
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(50, 169, 223, 0.4);
    filter: brightness(1.1);
}

.btn-submit i {
    font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .order-container {
        padding: 40px 20px;
        width: 95%;
    }

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

    .full-width {
        grid-column: span 1;
    }

    .order-header h2 {
        font-size: 2rem;
    }

    .contact-fast {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* --- Captcha Styling --- */
.captcha-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.captcha-display-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-display {
    background: #1e293b;
    color: #32a9df;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 5px;
    user-select: none;
    text-decoration: line-through;
    text-transform: uppercase;
    font-style: italic;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    border: 2px solid #334155;
}

.captcha-refresh {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    color: var(--primary);
    transform: rotate(180deg);
}

.captcha-input-group {
    flex: 1;
    min-width: 150px;
}

.captcha-input-group input {
    width: 100%;
    padding: 12px 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-submit-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    color: var(--white);
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(50, 169, 223, 0.3);
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(50, 169, 223, 0.4);
    filter: brightness(1.1);
}

.btn-submit i {
    font-size: 1.4rem;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
}

.toast {
    background: var(--white);
    padding: 16px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 320px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--green);
}

.toast.active {
    transform: translateX(0);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(50, 170, 80, 0.1);
    color: var(--green);
    font-size: 1.5rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
    font-family: 'Outfit', sans-serif;
}

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

.toast.error {
    border-left-color: #ff4d4f;
}

.toast.error .toast-icon {
    background: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
}

/* --- Privacy & Security Elements --- */
.form-privacy-container {
    margin: 30px 0;
    padding: 20px;
    background: #F1F5F9;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.privacy-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
}

.privacy-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--primary);
    cursor: pointer;
}

.privacy-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.privacy-text a {
    color: var(--primary);
    text-decoration: underline;
}

/* Validation Feedback (Dynamic) */
.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #ff4d4f;
    background-color: rgba(255, 77, 79, 0.02);
}

.error-message {
    color: #ff4d4f;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
}

/* --- Lightbox Modal Gallery --- */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 1;
}

.gallery-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9)
    }

    to {
        transform: scale(1)
    }
}

#galleryCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.gallery-prev,
.gallery-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 2001;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

@media only screen and (max-width: 700px) {
    .gallery-modal-content {
        width: 100%;
    }

    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .gallery-prev {
        left: 10px;
    }

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

/* --- Footer Modern V2 --- */
.footer-modern {
    background: #061A28;
    /* Deep dark blue */
    color: #fff;
    padding: 80px 0 0 0;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
}

.footer-col p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #fff;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col.contact-col ul li,
.footer-col.links-col ul li {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col.contact-col ul li a,
.footer-col.links-col ul li a {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.footer-col.contact-col ul li a:hover,
.footer-col.links-col ul li a:hover {
    color: var(--primary);
}

.footer-col .dot {
    color: #64748b;
    font-size: 1.2rem;
    line-height: 1;
}

.map-item {
    margin-bottom: 20px;
}

.map-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #e2e8f0;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    height: 120px;
    background: #0f172a;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: left;
    position: relative;
    z-index: 2;
}

.footer-bottom-bar p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.footer-giant-text {
    text-align: center;
    width: 100%;
    overflow: hidden;
    line-height: 0.7;
    margin-top: 10px;
    user-select: none;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.footer-giant-text span {
    font-size: 14vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    white-space: nowrap;
}



@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-giant-text span {
        font-size: 18vw;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-giant-text span {
        font-size: 20vw;
    }
}

/* --- Product Detail Pages --- */
.product-detail-header {
    margin-top: 150px;
    text-align: center;
    padding: 0 20px;
}

.product-detail-header h1 {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-detail-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.product-detail-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
}

.product-detail-showcase .img-wrapper {
    max-width: 500px;
    width: 100%;
}

.product-detail-showcase .img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-detail-specs {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    min-width: 300px;
}

.product-detail-specs h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-detail-specs ul {
    list-style: none;
    padding: 0;
}

.product-detail-specs ul li {
    padding: 8px 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    background: #fff;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-weight: 500;
    text-transform: uppercase;
}

.product-detail-specs ul li::before {
    content: "▪";
    color: var(--text-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.product-detail-actions {
    text-align: center;
    margin-bottom: 70px;
}

.product-detail-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.product-detail-socials a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.product-detail-socials a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.product-detail-actions .btn-primary {
    border-radius: 4px;
    padding: 12px 30px;
    width: 100%;
    max-width: 350px;
    background: #00b4ff;
    font-weight: 500;
    text-transform: none;
}

.product-detail-actions .btn-primary:hover {
    background: #009ce0;
}

.product-related {
    margin-bottom: 100px;
}

.product-related-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.product-related-header span:first-child {
    color: #42b2e8;
    font-size: 2rem;
    font-weight: 300;
}

.product-related-header span:last-child {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 300;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}

.related-item {
    text-align: center;
}

.related-item .img-box {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-item .img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-item h5 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .product-detail-showcase {
        flex-direction: column;
    }
}

/* --- Premium Product Detail --- */
.premium-product-page {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #eef6ff 100%);
    overflow-x: hidden;
}

.product-hero {
    position: relative;
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(50, 169, 223, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(50, 170, 80, 0.05), transparent);
    text-align: center;
    margin-bottom: 50px;
}

.product-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--navy), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.product-hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.product-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.product-img-card {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.product-img-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.12);
}

.product-img-card img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.specs-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.specs-glass-card h4 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.specs-glass-card h4::before {
    content: '';
    width: 30px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.feature-list-premium {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-weight: 500;
    color: var(--navy);
    cursor: default;
}

.feature-item-premium:hover {
    background: var(--white);
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.feature-item-premium i {
    font-size: 1.4rem;
    color: var(--primary);
}

.premium-actions {
    margin: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cta-floating {
    padding: 20px 50px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 40px;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, var(--primary), #00d2ff);
    color: white;
    box-shadow: 0 10px 20px rgba(50, 169, 223, 0.4);
    animation: pulse-glow 2s infinite;
    text-decoration: none;
    display: inline-block;
}

@keyframes pulse-glow {
    0% { transform: scale(1); box-shadow: 0 10px 20px rgba(50, 169, 223, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 20px 40px rgba(50, 169, 223, 0.6); }
    100% { transform: scale(1); box-shadow: 0 10px 20px rgba(50, 169, 223, 0.4); }
}

.cta-floating:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 60px rgba(50, 169, 223, 0.7);
    color: white;
    animation-play-state: paused;
}

.premium-social-links {
    display: flex;
    gap: 20px;
}

.premium-social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--navy);
    font-size: 1.4rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.premium-social-links a:hover {
    background: var(--navy);
    color: white;
    transform: translateY(-3px);
}

.related-premium-section {
    padding: 80px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.related-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.related-premium-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid transparent;
}

.related-premium-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.related-premium-card .img-box {
    margin-bottom: 25px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-premium-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-premium-card h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
}

/* Scroll Revel Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {

    .hero-logo-mobile {
        display: block !important;
        margin: 0 auto 15px auto !important;
        width: 60px !important;
        height: auto;
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    }
    
    .product-showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-hero {
        padding: 120px 0 60px;
    }
}

/* --- Clean Up Google Translate UI --- */
body {
    top: 0 !important;
}

iframe.skiptranslate, .goog-te-banner-frame {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* --- Services Background Illustration --- */
.services-bg-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1400px;
    height: auto;
    object-fit: cover;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
    user-select: none;
}

/* --- CSS Fixes for Gallery Navigation --- */

.gallery-modal {
    z-index: 10000 !important;
}

.gallery-modal-content {
    z-index: 10001 !important;
    position: relative;
    pointer-events: none;
    /* Let clicks pass to buttons if they overlap, though they shouldn't */
}

.gallery-prev,
.gallery-next,
.close-modal {
    z-index: 10005 !important;
    pointer-events: auto !important;
}

.gallery-prev {
    left: 20px !important;
}

.gallery-next {
    right: 20px !important;
}

.close-modal {
    top: 20px !important;
    right: 20px !important;
}

/* Ensure the protection still works globally but doesn't break the UI */
img {
    pointer-events: none;
    /* Theoretical protection against right-click/drag */
}

.gallery-modal button {
    pointer-events: auto !important;
}

/* --- Mobile Fixes (Video, Auto-Active Cards) --- */
@media (max-width: 992px) {

    .hero-logo-mobile {
        display: block !important;
        margin: 0 auto 15px auto !important;
        width: 60px !important;
        height: auto;
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    }

    .logo img {
        height: 48px;
    }
    
    .hero-search {
        padding: 0 20px;
    }
    
    
    

    /* Auto activate product cards on scroll (since they have .active from intersection observer) */
    .product-card.active .product-details {
        height: auto;
        opacity: 1;
        margin-top: 10px;
    }
    .product-card.active .product-content h3 {
        transform: translateY(0);
    }
    .product-card.active .product-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(27, 63, 112, 0.8) 100%);
    }
    
    /* Reveal Mega-Menu links smoothly */
    .mega-menu-content {
        padding-bottom: 30px;
    }
}


/* --- Mobile Hero Layout Real Fix --- */
@media (max-width: 992px) {

    .hero-logo-mobile {
        display: block !important;
        margin: 0 auto 15px auto !important;
        width: 60px !important;
        height: auto;
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    }
    
    /* HERO BACKGROUND */
    .hero {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .hero-media-bg {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh !important;
        z-index: 1;
    }
    
    .hero-media-bg .native-video {
        width: 100%;
        height: 160% !important; /* Increased height to allow more shifting */
        object-fit: cover !important;
        margin-top: 0 !important;
        position: absolute;
        top: -35% !important; /* Shifting significantly up to bring the water over the text */
        left: 0;
    }
    
    /* OVERLAY & CONTENT */
    .hero-overlay {
        z-index: 2;
    }

    .hero-content {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 3;
        padding-top: 100px; /* Increased padding to move text lower into the water */
    }
    
    
    
    .hero-content h1 {
        font-size: 2.8rem;
        background: linear-gradient(to bottom, #FFFFFF, #e0f7ff);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: none !important;
        filter: none !important;
        font-weight: 800;
        margin-bottom: 10px;
    }
     /* Replaced old -> */ .old-hero-h1 {
        font-size: 2.8rem;
    }
    
    .hero-scroll {
        position: relative !important;
        top: auto !important;
        margin-top: 20px;
    }

    /* POSITIONING PILLS (EAU ENTRANTE ETC) */
    .hero-media-bg .bg-image {
        position: relative !important;
        margin-top: 100vh !important;
        height: auto;
    }
    
    .hero-media-bg .bg-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
    }
    
    .positioning-overlay {
        position: relative !important;
        z-index: 1;
        height: auto !important;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .positioning-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin: 0 auto !important;
        width: 90%;
    }
    
    .pos-cards {
        margin-top: 20px;
    }

    /* SERVICES REDESIGN */
    /* LUXURY SERVICES REDESIGN - Colored & Complete */
    .services-wheel-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 10px 0;
    }

    .wheel-core { display: none !important; }

    .wheel-quadrants {
        display: flex;
        flex-direction: column;
        gap: 20px;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .quadrant {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        padding: 25px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        display: block !important;
    }

    /* Beautiful Tints for each service block */
    .quadrant.q-study { 
        background: linear-gradient(135deg, #f0f7ff 0%, #e1effe 100%) !important;
        border-left: 6px solid var(--navy) !important; 
    }
    .quadrant.q-fabrication { 
        background: linear-gradient(135deg, #f0faff 0%, #e0f2fe 100%) !important;
        border-left: 6px solid var(--primary) !important; 
    }
    .quadrant.q-installation { 
        background: linear-gradient(135deg, #f0f5ff 0%, #e0eaff 100%) !important;
        border-left: 6px solid #185a8a !important; 
    }
    .quadrant.q-maintenance { 
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
        border-left: 6px solid var(--green) !important; 
    }

    .q-wrap {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 0 !important;
        background: none !important;
        border-radius: 0 !important;
        margin-bottom: 10px !important;
    }

    .q-icon {
        font-size: 2.2rem !important;
        margin: 0 !important;
        transform: none !important;
        background: var(--white);
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    /* Categorized Icon Colors */
    .q-study .q-icon { color: var(--navy) !important; }
    .q-fabrication .q-icon { color: var(--primary) !important; }
    .q-installation .q-icon { color: #185a8a !important; }
    .q-maintenance .q-icon { color: var(--green) !important; }

    .quadrant h3 {
        display: block !important;
        font-size: 1.4rem !important;
        margin: 0 !important;
        color: var(--navy) !important;
        font-weight: 700;
        text-align: left !important;
    }

    /* RESTORING THE DESCRIPTION TEXT (data-desc) */
    .quadrant::after {
        content: attr(data-desc) !important;
        display: block !important;
        color: var(--text-color) !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-top: 12px !important;
        text-align: left !important;
        font-weight: 400 !important;
        opacity: 0.9 !important;
    }

    /* Hide any old residual styling for p tags we tried to target */
    .quadrant p { display: none !important; }
    
}
