        :root {
            --accent: #6ab1cf;
            --accent-soft: rgba(106, 177, 207, 0.376); /*0.15 de a*/
            --bg: #ffffff;
            --card-bg: #f8fafc;
            --text-main: #0f172a;
            --text-sub: #64748b;
            --nav-bg: rgba(255, 255, 255, 0.85);
            --glass: rgba(255, 255, 255, 0.7);
        }

        [data-theme="dark"] {
            --bg: #020617;
            --card-bg: #0f172a;
            --text-main: #f1f5f9;
            --text-sub: #94a3b8;
            --nav-bg: rgba(2, 6, 23, 0.85);
            --glass: rgba(30, 41, 59, 0.7);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Space Grotesk', sans-serif;
        }

        body {
            background-color: var(--bg);
            color: var(--text-main);
            overflow-x: hidden;
            transition: background 0.5s ease;
        }

        /* --- Animations Affinity Style --- */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
        }

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

        /* --- Navigation --- */
        nav {
            position: fixed;
            top: 0; width: 100%;
            display: flex; justify-content: space-between; align-items: center;
            padding: 20px 8%;
            z-index: 1000;
        }

        .logo { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
        .nav-links { display: flex; gap: 30px; align-items: center; }
        .nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.9rem; }

        /* --- Toggle Switch Premium --- */
    .theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 70px;
}

.theme-switch input {
    display: none;
}

.slider {
    background: linear-gradient(135deg, #ffcf5f, #f9a825); /* Dégradé Soleil */
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 1.2rem;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 26px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.lang-switch-wrapper {
    display: flex;
    align-items: center;
}

.lang-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    cursor: pointer;
}

.lang-switch input { display: none; }

.lang-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    transition: 0.4s;
}

.lang-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    z-index: 1;
}

.lang-knob {
    position: absolute;
    height: 24px;
    width: 26px;
    left: 3px;
    background-color: var(--accent);
    border-radius: 50%;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation du glissement */
#lang-checkbox:checked + .lang-slider .lang-knob {
    transform: translateX(28px);
}
        /* État Dark Mode */
        input:checked + .slider {
            background: linear-gradient(135deg, #2b32b2, #1488cc);
        }

        input:checked + .slider:before {
            transform: translateX(36px);
        } 

        .slider .icon {
            z-index: 1;
            pointer-events: none;
        }
        /* --- Hero Section --- */
        .hero {
            height: 100vh;
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            text-align: center;
            background: radial-gradient(circle at top right, var(--accent-soft), transparent);
            padding: 0 20px;
        }

        .hero h1 {
            font-size: clamp(2.5rem, 8vw, 5rem); 
            line-height: 1.1; 
            margin-bottom: 20px;
            background: linear-gradient(90deg, var(--text-main), var(--accent));
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero p { font-size: 1.2rem; color: var(--text-sub); max-width: 600px; margin-bottom: 40px; }

        .cta-group { display: flex; gap: 15px; }
        .btn {
            padding: 14px 32px; border-radius: 50px; border: none;
            font-weight: 600; cursor: pointer; transition: 0.3s;
        }
        .btn-primary { background: var(--accent); color: white; }
        .btn-primary:hover { transform: scale(1.05); box-shadow: 0 10px 20px var(--accent-soft); }

        /* --- Stats Section --- */
        .stats {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px; padding: 100px 8%; background: var(--card-bg);
        }
        .stat-item h2 { font-size: 3rem; color: var(--accent); }

        /* --- Services Grid --- */
        .section-padding { padding: 120px 8%; }
        .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

        .feature-card {
            background: var(--glass);
            padding: 50px; border-radius: 30px;
            border: 1px solid var(--accent-soft);
            transition: 0.4s;
        }
        .feature-card:hover { border-color: var(--accent); background: var(--bg); }

        /* --- Portfolio Section --- */
        .portfolio-item {
            width: 100%; height: 400px; border-radius: 30px;
            background: var(--accent-soft); overflow: hidden;
            position: relative; margin-bottom: 30px;
        }
        .portfolio-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }

        /* --- Footer --- */
    footer {
        background: var(--card-bg); 
        color: var(--text-main);
        padding: 100px 8% 40px;
        border-top: 1px solid var(--accent-soft);
        margin-top: 50px;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr; 
        gap: 60px;
    }

    .footer-brand .logo {
        margin-bottom: 20px;
        display: block;
    }

    .footer-brand p {
        color: var(--text-sub);
        font-size: 1rem;
        max-width: 300px;
        margin-bottom: 25px;
    }

    .slogan-badge {
        display: inline-block;
        padding: 6px 15px;
        background: var(--accent-soft);
        color: var(--accent);
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 1px;
    }

    .footer-col h4 {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 25px;
        position: relative;
    }

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

    .footer-col ul li {
        margin-bottom: 15px;
    }

    .footer-col ul li a {
        text-decoration: none;
        color: var(--text-sub);
        font-size: 0.95rem;
        transition: var(--transition);
        display: inline-block;
    }

    .footer-col ul li a:hover {
        color: var(--accent);
        transform: translateX(5px); 
    }

    .footer-bottom {
        margin-top: 80px;
        padding-top: 30px;
        border-top: 1px solid var(--accent-soft);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-bottom p {
        color: var(--text-sub);
        font-size: 0.85rem;
    }

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

    .social-links a {
        color: var(--text-main);
        text-decoration: none;
        font-size: 1.2rem;
        transition: var(--transition);
    }

    .social-links a:hover {
        color: var(--accent);
    }

    /* Responsive */
    @media (max-width: 992px) {
        .footer-container {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 600px) {
        .footer-container {
            grid-template-columns: 1fr;
            gap: 40px;
        }
        .footer-bottom {
            flex-direction: column;
            text-align: center;
        }
    }
    .cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    border: 1px solid var(--accent);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
/* --- Bouton Hamburger --- */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation vers la croix (X) quand actif */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Menu Full Screen --- */
.full-menu {
    position: fixed;
    top: 0; right: 0;
    width: 100%; height: 100vh;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1500;
}

.full-menu.active {
    transform: translateX(0);
}

.full-menu .nav-links {
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.full-menu .nav-links a {
    font-size: 2rem;
    font-weight: 700;
    transition: 0.3s;
}

.menu-switches {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}