﻿/* ---------- COLOR / TYPO ---------- */

:root {
    --primary: #00e0d3; /* turquoise */
    --primary-600: #00cfc0;
    --accent-dark: #071422; /* deep charcoal */
    --muted: #6b6f76;
    --white: #ffffff;
    --glass: rgba(255,255,255,0.06);
    --soft: rgba(0,224,211,0.08);
    --radius-lg: 18px;
    --radius-md: 12px;
    --nav-height: 72px;
    --bg: #0b0f14;
    --surface: #ffffff;
    --accent: #e03131;
    --accent-2: #ff6b6b;
    --glass: rgba(255,255,255,0.04);
    --card-shadow: 0 10px 30px rgba(2,8,23,0.35);
    --radius: 14px;
    --max-width: 1180px;
    --hero-bg: url('Mystery_Shopping_Images/mystery.png');
    --bg: #0f1720;
    --card: #0b0f14;
    --glass-2: #0f1723;
    --glass-3: #0f1720;
    --glass-border: rgba(255,255,255,0.06);
    --shadow: 0 8px 30px rgba(2,6,23,0.45);
    color-scheme: dark;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: 'Poppins',system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
    color: var(--accent-dark);
    background: linear-gradient(180deg,#fbfeff 0%, #f3f9fb 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

/* ---------- HEADER ---------- */
header {
    position: fixed;
    top: 12px;
    left: 4%;
    right: 4%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 1400;
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.5));
    backdrop-filter: blur(8px) saturate(1.05);
    border-radius: 14px;
    padding: 8px 18px;
    box-shadow: 0 10px 30px rgba(2,6,12,0.06);
    border: 1px solid var(--glass-border);
    z-index: 99999; /* bump this above everything else (mobilePanel was 1500) */
}
.logo {
    display: flex;
    gap: .75rem;
    align-items: center;
    font-weight: 700;
    color: var(--accent-dark);
}

    .logo .mark {
        width: 70px;
        height: 70px;
        border-radius: 10px;
        /*        background: linear-gradient(135deg, var(--primary), var(--primary-600));*/
        box-shadow: 0 6px 22px rgba(0,224,211,0.18);
        display: grid;
        place-items: center;
        /*        color: #042226;
        font-weight: 700;
        font-size: 16px;*/
    }


/* Desktop nav container (align to center group) */
nav.desktop {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 1450;
}

    /* nav ul clean & accessible */
    nav.desktop ul {
        list-style: none;
        display: flex;
        gap: 18px;
        margin: 0;
        padding: 0;
        align-items: center;
    }

        /* each nav item */
        nav.desktop ul li.nav-item {
            position: relative;
        }

        /* parent links (common) */
        nav.desktop ul li a.parent-link,
        nav.desktop ul li a.simple-link {
            display: inline-block;
            padding: 10px 12px;
            border-radius: 8px;
            color: var(--text);
            font-weight: 600;
            transition: all .18s ease;
            font-size: .98rem;
            letter-spacing: .01em;
        }

            /* visible emphasis for home & contact */
.home :hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0,224,211,0.18);
    color: var(--primary-600);
}
            nav.desktop ul li a.simple-link.home {
                background: transparent;
                color: var(--primary);
            }

            nav.desktop ul li a.simple-link.contact {
                border: 1px solid rgba(7,20,34,0.06);
                padding: 8px 12px;
                background: linear-gradient(90deg, rgba(0,224,211,0.06), rgba(0,224,211,0.02));
                color: var(--accent-dark);
                box-shadow: 0 8px 20px rgba(0,224,211,0.06);
                border-radius: 999px;
                font-weight: 700;
            }

            nav.desktop ul li a.simple-link:hover,
            nav.desktop ul li a.parent-link:hover {
                transform: translateY(-2px);
                color: var(--primary-600);
                background: rgba(0,224,211,0.04);
            }

/* dropdown */

/* ---------- DROPDOWN FIX (FULLY STABLE) ---------- */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--accent-dark);
    cursor: pointer;
    font-size: .98rem;
    transition: color 0.2s ease;
}

    .dropdown-toggle::after {
        content: "▾";
        display: inline-block;
        margin-left: 6px;
        transition: transform 0.25s ease;
    }

/* Dropdown container */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* sits directly under the nav item */
    left: 0;
    background: #fff;
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 16px 40px rgba(2, 6, 12, 0.12);
    min-width: 220px;
    z-index: 9999;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none; /* prevents accidental hover until active */
}

/* The magic part: Keep dropdown open while hovering anywhere in the area */
.nav-item.dropdown:hover > .dropdown-content,
.nav-item.dropdown:focus-within > .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-item.dropdown:hover > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown link styling */
.dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: var(--accent-dark);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: .95rem;
    transition: background 0.2s ease;
}

    .dropdown-content a:hover {
        background: rgba(0, 224, 211, 0.08);
        color: var(--primary-600);
    }


.nav-item button:active, a:active {
    color: #00e0d3; /* couleur quand on clique */
}

/* open state */
.nav-item.dropdown:hover > .dropdown .dropdown-content,
.nav-item.dropdown.open > .dropdown .dropdown-content {
    display: block;
    opacity: 1;
    background-color: white;
    transform: translateY(0) scale(1);
    pointer-events: auto; /* allow clicks */
}
/* ---------- Dropdown Hover Fix ---------- */
.nav-item.dropdown {
    position: relative;
}

    .nav-item.dropdown .dropdown-content {
        display: block;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px) scale(0.98);
        transition: all 0.22s ease;
    }

    .nav-item.dropdown:hover .dropdown-content {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

/* ---------- Arrow Animation ---------- */
.dropdown-toggle::after {
    content: "▾";
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}


/* actions */
.actions {
    display: flex;
    gap: 10px;
    align-items: center
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--accent-dark);
    padding: .55rem .85rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0,224,211,0.12);
    border: none;
    cursor: pointer;
    font-size: .95rem;
}

    .btn.ghost {
        background: transparent;
        border: 1px solid rgba(7,20,34,0.06);
        color: var(--accent-dark);
        padding: .48rem .75rem;
        font-weight: 700;
    }

/* hamburger button (mobile) */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(7,20,34,0.05);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

    .hamburger[aria-expanded="true"] {
        background: linear-gradient(90deg, rgba(0,224,211,0.08), rgba(0,224,211,0.03));
        transform: scale(0.98)
    }

    .hamburger .bar {
        width: 20px;
        height: 2px;
        background: var(--accent-dark);
        border-radius: 2px;
        display: block;
        position: relative
    }

        .hamburger .bar:after, .hamburger .bar:before {
            content: "";
            position: absolute;
            left: 0;
            width: 20px;
            height: 2px;
            background: var(--accent-dark);
            border-radius: 2px
        }

        .hamburger .bar:before {
            top: -6px
        }

        .hamburger .bar:after {
            top: 6px
        }


/* ---------- MOBILE PANEL FIX ---------- */
#mobilePanel {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-height);
    background: linear-gradient(180deg, #ffffff, #f8fdff);
    box-shadow: 0 26px 60px rgba(2, 6, 12, 0.12);
    border-radius: 0 0 14px 14px;
    padding: 18px;
    display: none;
    z-index: 1500;
    border-top: 1px solid rgba(7, 20, 34, 0.04);
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: transform 0.25s cubic-bezier(.2, .9, .2, 1), opacity 0.25s ease;
}

    #mobilePanel.show {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    /* Links inside */
    #mobilePanel a.mobile-link {
        display: block;
        padding: 12px;
        font-weight: 700;
        border-radius: 10px;
        color: var(--accent-dark);
    }

        #mobilePanel a.mobile-link:hover {
            color: var(--primary);
        }

.mobile-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: transparent;
    color: var(--accent-dark);
    border: none;
    font-weight: 700;
    cursor: pointer;
}

        #mobilePanel a.mobile-link:hover {
            color: var(--primary);
        }

    /* Collapsible section (like "Our Services") */
    #mobilePanel .mobile-dropdown {
        margin-top: 0.5rem;
        margin-left: 1rem;
        display: none;
    }

        #mobilePanel .mobile-dropdown a {
            font-size: 0.95rem;
            padding: 0.5rem 0;
            display: block;
            color: #333;
        }

            #mobilePanel .mobile-dropdown a:hover {
                color: var(--cyan);
            }

    /* Buttons */
    #mobilePanel .mobile-actions {
        margin-top: 1.5rem;
        display: flex;
        gap: 1rem;
    }

/* small screen: hide desktop nav, show hamburger */
@media (max-width:880px) {
    nav.desktop {
        display: none
    }

    .hamburger {
        display: flex
    }

    header {
        left: 8px;
        right: 8px
    }
}

/* small helper to keep dropdown on top of other content */
main {
    padding-top: calc(var(--nav-height) + 48px)
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--accent-dark);
    padding: .55rem .85rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,224,211,0.14);
    border: none;
    cursor: pointer;
}

    .btn.ghost {
        background: transparent;
        border: 1px solid rgba(7,20,34,0.06);
        color: var(--accent-dark);
        padding: .5rem .8rem
    }
/* Layout container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px;
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    border-radius: 18px;
    margin-bottom: 34px;
    margin-top: 60px;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(3,7,14,0.6), rgba(0,0,0,0.2)), var(--hero-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    will-change: transform;
    transition: transform 0.9s cubic-bezier(.2,.9,.2,1);
    filter: saturate(0.9) contrast(1);
    z-index: 0;
}

.hero:hover .hero__bg {
    transform: scale(1.07) translateY(-6px) rotate(-0.6deg);
}

.hero__glow {
    position: absolute;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(600px 200px at 10% 50%, rgba(255,107,107,0.08), transparent 20%), linear-gradient(90deg, rgba(255,0,0,0.06), rgba(255,255,255,0));
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
}

.hero__media {
    position: absolute;
    inset: 0;
    background-image: url('hero-market.jpg');
    background-size: cover;
    background-position: center center;
    transform-origin: center;
    transition: transform 0.6s ease;
    will-change: transform;
    filter: saturate(90%) contrast(1.05) brightness(.85);
}

/* Diagonal red overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(229,57,53,0.82) 0%, rgba(255,107,107,0.5) 35%, rgba(0,0,0,0.45) 80%);
    mix-blend-mode: multiply;
    pointer-events: none;
    transform: skewX(-12deg) translateX(-6%);
}

.hero__content {
    position: relative;
    z-index: 3;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.breadcrumbs {
    align-self: flex-end;
    background: rgba(255,255,255,0.9);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--bg);
    box-shadow: 0 6px 18px rgba(2,8,23,0.18);
}

.hero h1 {
    margin: 6px 0 0 0;
    font-size: clamp(1.6rem, 3.6vw, 3rem);
    color: #fff;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hero p.lead {
    margin: 0;
    color: var(--white);
    font-weight: 500;
    max-width: 70ch;
}

/* Two-column main grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 34px;
    align-items: start;
    max-width: var(--max-width);
    margin: 18px auto 72px;
    padding: 0 24px;
}

/* Left column content */
.content h2 {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    color: #000;
}

.content p {
    color: var(--muted);
    margin: 0 0 18px 0;
    max-width: 65ch;
}

/* Feature cards grid */
.features {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
    margin-top: 20px;
}

.card {
    background: linear-gradient(180deg,var(--glass-3), var(--glass-2));
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 6px 18px rgba(2,6,23,0.5);
    border: 1px solid var(--glass-border);
    transition: transform .32s cubic-bezier(.2,.9,.2,1), box-shadow .25s;
    transform-origin: center;
    position: relative;
    overflow: visible;
}

    .card:focus, .card:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 18px 40px rgba(3,8,20,0.65);
    }

    .card .icon {
        min-width: 48px;
        min-height: 48px;
        display: grid;
        place-items: center;
        background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.04);
    }

    .card h3 {
        margin: 0 0 6px 0;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
    }

    .card p {
        margin: 0;
        color: var(--muted);
        font-size: .95rem;
        line-height: 1.4;
    }

    /* Accent edge */
    .card::after {
        content: "";
        position: absolute;
        left: 0;
        top: 10%;
        bottom: 10%;
        width: 6px;
        background: linear-gradient(180deg,var(--accent),var(--accent-2));
        border-radius: 6px 0 0 6px;
        transform-origin: center;
        box-shadow: 0 2px 12px rgba(229,57,53,0.14);
    }

/* Sidebar */
.sidebar {
    position: relative;
    top: 0;
    align-self: start;
}

.cards {
    border-radius: 12px;
    padding: 18px;
    background: linear-gradient(180deg,#0b0f14,#07101a);
    color: #fff;
    box-shadow: 0 18px 40px rgba(3,9,23,0.14);
    margin-bottom: 18px;
    overflow: hidden;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.04);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
    font-size: 14px;
    color: rgba(255,255,255,0.95);
    text-decoration: none;
}

    .service-item:hover {
        transform: translateX(6px);
        background: rgba(255,255,255,0.06)
    }

.cta {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(135deg,var(--accent),var(--accent-2));
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(224,49,49,0.18);
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(90deg,var(--accent), var(--accent-2));
    color: white;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(229,57,53,0.18);
}

.btnS {
    display: inline-block;
    background: var(--primary);
    color: var(--accent-dark);
    padding: .55rem .85rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,224,211,0.14);
    border: none;
    cursor: pointer;
}

/* ---------- BUTTON HOVER / CLICK ANIMATIONS ---------- */
.btnS {
    transition: all 0.25s cubic-bezier(.25,.8,.25,1);
}

    .btnS:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 12px 28px rgba(0,224,211,0.18);
    }

    .btnS:active {
        transform: translateY(0px) scale(0.98);
        box-shadow: 0 6px 18px rgba(0,224,211,0.12);
    }

/* Floating thumbnails (enforcement actions) */
.thumbs {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin-top: 18px;
}

    .thumbs img {
        width: 100%;
        height: 62px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.03);
    }

/* Small utilities */
.muted {
    color: var(--muted);
    font-size: .95rem;
}

/* Reveal animations: initial state */
.reveal {
    opacity: 0;
    transform: translateY(18px) scale(.995);
    transition: all .7s cubic-bezier(.16,.98,.28,1);
    will-change: transform,opacity
}

    .reveal.in-view {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* Floating decorative shapes */
.float-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: .06;
    mix-blend-mode: screen;
    filter: blur(10px);
    transform: translateZ(0);
}

.s1 {
    width: 160px;
    height: 160px;
    right: -30px;
    top: -30px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, transparent 50%);
}

.s2 {
    width: 110px;
    height: 110px;
    left: -40px;
    bottom: -40px;
    background: radial-gradient(circle at 70% 30%, #e53935, transparent 50%);
}

/* Responsive */
@media (max-width: 980px) {
    .main-grid {
        grid-template-columns: 1fr;
        padding: 0 18px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 200px;
        margin-bottom: 22px;
    }
}

@media (max-width:480px) {
    .container {
        width: 100%;
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 18px 14px;
    }

    .hero__content {
        padding: 20px;
    }
}

/*FOOTER*/
footer {
    margin-top: 36px;
    padding: 36px 4%;
    background: linear-gradient(180deg,#04181d 0%,#031217 100%);
    color: #cfeee9;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.ft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 22px;
    align-items: start
}

.ft-logo {
    display: flex;
    gap: 12px;
    align-items: center
}

    .ft-logo .mark {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        /*        background: linear-gradient(135deg,var(--primary),var(--primary-600));*/
        display: grid;
        place-items: center;
        /*        font-weight: 800;*/
        /*        color: #042226*/
    }

.ft-links a {
    display: block;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
    font-weight: 600
}

.small {
    font-size: .88rem;
    color: rgba(255,255,255,0.6);
    margin-top: 18px
}

/* ---------- NAV ACTIVE LINK ---------- */
nav.desktop a.active,
nav.desktop a.simple-link:hover,
nav.desktop a.parent-link:hover {
    background: linear-gradient(90deg, var(--primary), var(--primary-600));
    color: #042226;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 22px rgba(0,224,211,0.18);
}

/* ---------- BUTTON HOVER / CLICK ANIMATIONS ---------- */
.btn {
    transition: all 0.25s cubic-bezier(.25,.8,.25,1);
}

    .btn:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 12px 28px rgba(0,224,211,0.18);
    }

    .btn:active {
        transform: translateY(0px) scale(0.98);
        box-shadow: 0 6px 18px rgba(0,224,211,0.12);
    }



/* Floating action */
.fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    border: 0;
    padding: 10px 16px;
    margin-top: 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, var(--primary), var(--primary));
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

@media (max-width:1100px) {
    .hero {
        grid-template-columns: 1fr 360px
    }

    .slide {
        grid-template-columns: 1fr 360px
    }

    .about {
        grid-template-columns: 1fr 340px
    }
}

@media (max-width:880px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-left: 6%;
        padding-right: 6%
    }

    .hero-visual {
        order: 3
    }

    .glass-card {
        max-width: 100%
    }

    .about {
        grid-template-columns: 1fr;
        text-align: left
    }

    .slide {
        grid-template-columns: 1fr;
        padding: 18px
    }

        .slide .info {
            order: 2;
            margin-top: 12px
        }

        .slide .media {
            order: 1
        }

    .contact-grid {
        grid-template-columns: 1fr
    }

    .ft-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width:520px) {
    .hero h1 {
        font-size: 1.6rem
    }

    .glass-card img {
        display: none
    }
}

/* --- FIX: empêche le débordement horizontal --- */
body {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
}
