﻿/* ---------- 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-dark: #0b0c10;
    --bg-milky: #FDFFF5;
    --accent: #ff004c;
    --text-light: #ffffff;
    --text-muted: #bbbbbb;
    --card-bg: #12141b;
    --radius: 16px;
}

* {
    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);
}

.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 */
            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 (sliding) ---------------- */
#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;
}

    /* When shown */
    #mobilePanel.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

/* mobile links */
    #mobilePanel a.mobile-link:hover {
        color: var(--primary);
    }
.mobile-link {
    display: block;
    padding: 12px;
    font-weight: 700;
    border-radius: 10px;
    color: var(--accent-dark)
}

.mobile-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: transparent;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

/* 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
    }


/* small helper to keep dropdown on top of other content */
main {
    padding-top: calc(var(--nav-height) + 24px)
}

/* rest of your styles ... (kept unchanged) */
/* ---------- HERO ---------- */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px 22px;
}

/* Header (kept minimal - body is main objective) */
header.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(6px);
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.75));
    border-bottom: 1px solid rgba(11,17,32,0.04);
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
    background: radial-gradient(circle at top left, var(--accent), var(--bg-dark) 60%);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(80px);
    animation: floatLight 10s infinite ease-in-out alternate;
}

@keyframes floatLight {
    from { transform: translateY(0); }
    to { transform: translateY(40px); }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    position: relative;
    animation: fadeInDown 1.2s ease;
}

.hero p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 750px;
    font-size: 1.2rem;
    line-height: 1.6;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1.5s ease;
}

/* Floating emoji symbols for liveliness */
.hero-symbols {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.3;
    animation: floatEmojis 6s ease-in-out infinite alternate;
}

@keyframes floatEmojis {
    from { transform: translate(-50%, 0); }
    to { transform: translate(-50%, -20px); }
}

/* Subtle fade animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* FAQ Section */
.faq-section {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

    .faq-section h2 {
        font-size: 2.5rem;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        background-clip: text;
        -webkit-background-clip: text; /* Needed for Chrome/Safari */
        -webkit-text-fill-color: transparent;
        color: transparent; /* Fallback for browsers that ignore the clip */
        margin-bottom: 1rem;
    }


    .faq-section p {
        color: var(--text-muted);
        margin-bottom: 3rem;
    }

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .accordion-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
    }

.accordion-header {
    cursor: pointer;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-weight: 600;
    position: relative;
}

    .accordion-header::after {
        content: "+";
        font-size: 1.5rem;
        color: var(--primary);
        transition: transform 0.3s;
    }

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
    color: var(--accent);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    padding: 0 2rem;
    color: var(--text-muted);
}

/* 👇 When the item is active, show the content */
.accordion-item.active .accordion-body {
    max-height: 600px; /* increase if content is taller */
    opacity: 1;
    padding: 16px;
}

/* Optional: animate the open header */
.accordion-item.active .accordion-header {
    background: rgba(255,255,255,0.08);
}

/* Floating Circle Image */
.faq-visual {
    position: relative;
    margin: 5rem auto 0;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 12s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.faq-visual img {
    width: 85%;
    height: 85%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .faq-section h2 {
        font-size: 2rem;
    }

    .accordion-header {
        padding: 1.2rem 1.5rem;
    }
}



/* Footer */
footer.sitefoot {
    margin-top: 56px;
    background: #0b1220;
    color: #dfe9f3;
    padding: 36px;
    border-radius: 16px;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
    align-items: start
}

    .footer-grid h4 {
        margin: 0 0 8px 0
    }

.socials {
    display: flex;
    gap: 10px;
    margin-top: 8px
}

/* small screens */
@media (max-width:980px) {
    .hero-grid, .about {
        grid-template-columns: 1fr
    }

    .infographic {
        order: 2
    }

    .container {
        padding: 28px 16px
    }

    .values-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    header.topbar .container {
        padding: 12px 16px
    }

    .hero {
        min-height: 360px;
        padding: 26px
    }

        .hero h1 {
            font-size: 28px
        }
}

@media (max-width:520px) {
    .values-grid {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 22px
    }

    .about .left {
        padding: 18px
    }

    .feature .icon {
        width: 40px;
        height: 40px
    }
}

/* Animations & reveal */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.2,1)
}

    .reveal.visible {
        opacity: 1;
        transform: none
    }

/* small utility */
.muted {
    color: var(--muted)
}

.kbd {
    background: var(--glass-2);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700
}

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;
}
