* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode */
    --primary-light: #C8CBD0;
    --primary-medium: #9A9CAF;
    --primary-dark: #6B7280;
    --primary-darker: #4B5563;
    --primary-darkest: #374151;
    --text-dark: #1F2937;
    --bg-light: #F9FAFB;
    --accent: #8B5CF6;
    --surface: #FFFFFF;
    --header-bg: rgba(255, 255, 255, 0.8);
    --card-bg: #F9FAFB;
    --border-color: #E5E7EB;
    --footer-bg: #1F2937;
}

[data-theme="dark"] {
    /* Dark Mode */
    --primary-light: #4B5563;
    --primary-medium: #6B7280;
    --primary-dark: #9CA3AF;
    --primary-darker: #D1D5DB;
    --primary-darkest: #E5E7EB;
    --text-dark: #F9FAFB;
    --bg-light: #111827;
    --accent: #A78BFA;
    --surface: #1F2937;
    --header-bg: rgba(31, 41, 55, 0.8);
    --card-bg: #374151;
    --border-color: #4B5563;
    --footer-bg: #0F172A;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--surface) 100%);
    min-height: 100vh;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-dark);
    margin: 0 8px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 15px 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    display: block;
}




.logo:hover {
    scale: 110%;
    text-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--primary-darker);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-darker);
    transition: all 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    width: 60px;
    height: 32px;
}

.theme-toggle:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.theme-toggle-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.sun-icon,
.moon-icon {
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 2;
    filter: grayscale(0) !important;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0.5;
}

[data-theme="dark"] .sun-icon {
    opacity: 0.5;
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
}

.toggle-thumb {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--accent) 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

[data-theme="dark"] .toggle-thumb {
    left: calc(100% - 24px);
}

/* Hero Section */
.hero {
    padding: 140px 5% 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--accent) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.hero-visual {
    position: relative;
}

.video-frame {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-icon:hover {
    transform: scale(1.1);
    background: white;
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid var(--primary-darker);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.floating-element {
    position: absolute;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    bottom: -30px;
    left: -30px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Services Section */
.services {
    padding: 100px 5%;
    background: var(--surface);
}


.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    opacity: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Cards - Effets hover améliorés */
.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    opacity: 0;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.1) 0%,
            rgba(139, 92, 246, 0.05) 50%,
            transparent 100%);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02) rotateX(5deg);
    box-shadow:
        0 25px 50px rgba(139, 92, 246, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}

.service-card:hover::before {
    left: 100%;
}

/* Effet de brillance sur le bord */
.service-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
            var(--accent) 0%,
            transparent 20%,
            transparent 80%,
            var(--accent) 100%);
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover::after {
    opacity: 0.6;
}

/* Animation de l'icône au hover */
.service-card:hover .service-icon {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.service-card:hover .service-svg {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.3));
}

/* Effet de texte au hover */
.service-card:hover h3 {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-2px);
}

.service-card:hover p {
    color: var(--primary-darker);
    transform: translateY(-2px);
}

/* Transition pour tous les éléments enfants */
.service-card>* {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        color 0.4s ease,
        background 0.4s ease;
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--accent) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
}


.service-svg {
    width: 40px;
    height: 40px;
    stroke: white;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card p {
    color: var(--primary-dark);
    line-height: 1.6;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Adaptation pour le dark mode */
[data-theme="dark"] .service-card:hover {
    box-shadow:
        0 25px 50px rgba(139, 92, 246, 0.25),
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .service-card:hover .service-icon {
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
}

/* Contact Form */
.contact {
    padding: 100px 5%;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--surface) 100%);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}


.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--surface);
    color: var(--text-dark);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

/* Footer */
footer {
    padding: 40px 5%;
    background: var(--footer-bg);
    color: white;
    text-align: center;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--accent) 100%);
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.social-btn svg {
    width: 28px;
    height: 28px;
    color: white;
    transition: transform 0.3s ease;
}

.social-btn:hover svg {
    transform: scale(1.15) rotate(5deg);
}

.social-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-darker) 100%);
}


.social-btn::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.5s ease;
}

.social-btn:hover::after {
    transform: rotate(45deg) translate(100%, 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-20px);
}


.mobile-menu.active .mobile-menu-links li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
}

.mobile-menu-links li {
    margin: 30px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.active .mobile-menu-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-links a {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
    padding: 10px 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.mobile-menu-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--accent) 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-menu-links a:hover::before {
    width: 100%;
}

.mobile-menu-links a:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-dark);
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-close:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: rotate(90deg);
}

/* Animation du bouton menu */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Social links dans le menu mobile */
.mobile-social {
    position: absolute;
    bottom: 60px;
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.4s;
}

.mobile-menu.active .mobile-social {
    opacity: 1;
    transform: translateY(0);
}

.mobile-social .social-btn {
    width: 50px;
    height: 50px;
}

.mobile-social .social-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease 0.4s;
}

.mobile-menu.active .mobile-theme-toggle {
    opacity: 1;
    transform: translateY(0);
}

.theme-label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 40px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-icon {
    font-size: 80px;
    color: #10B981;
    margin-bottom: 30px;
}

.success-message h3 {
    font-size: 32px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-message p {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

.form-visible {
    display: block;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .video-frame {
        height: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        width: 50px;
        height: 28px;
    }

    .toggle-thumb {
        width: 18px;
        height: 18px;
    }

    [data-theme="dark"] .toggle-thumb {
        left: calc(100% - 22px);
    }

    .sun-icon,
    .moon-icon {
        font-size: 12px;
    }

    .mobile-theme-toggle {
        top: 20px;
        left: 20px;
    }

    .mobile-menu-links a {
        font-size: 28px;
    }

    .hero {
        padding: 120px 5% 60px;
    }

    .section-title {
        font-size: 36px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* === ANIMATIONS SCROLL SIMPLES ET SÛRES === */

/* === ANIMATIONS SCROLL STYLÉES === */

.scroll-animation {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animations spécifiques pour différents éléments */
.hero-text h1.scroll-animation {
    transform: translateY(80px) scale(0.9);
}

.hero-text h1.scroll-animation.visible {
    transform: translateY(0) scale(1);
}

.service-card.scroll-animation {
    transform: translateY(60px) rotateX(10deg);
}

.service-card.scroll-animation.visible {
    transform: translateY(0) rotateX(0);
}

/* Délays échelonnés pour effet cascade */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/*Portfolio page*/


/*Fleche stylé*/

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    
    /* Animation d'entrée/sortie */
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border-right: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px var(--accent)) 
            drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
}

@keyframes floatDown {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(10px);
    }
}

.scroll-indicator:hover .scroll-arrow {
    border-color: #A78BFA;
    filter: drop-shadow(0 0 15px #A78BFA) 
            drop-shadow(0 0 25px rgba(167, 139, 250, 0.6))
            drop-shadow(0 0 35px rgba(167, 139, 250, 0.3));
    transform: rotate(45deg) scale(1.1);
    animation-play-state: paused;
}

/* Animation de disparition */
.scroll-indicator.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

/* Animation d'apparition */
.scroll-indicator.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border-right: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px var(--accent)) 
            drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
}

/* Animation fluide de descente */
@keyframes floatDown {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(10px);
    }
}

/* Effet hover */
.scroll-indicator:hover .scroll-arrow {
    border-color: #A78BFA;
    filter: drop-shadow(0 0 15px #A78BFA) 
            drop-shadow(0 0 25px rgba(167, 139, 250, 0.6))
            drop-shadow(0 0 35px rgba(167, 139, 250, 0.3));
    transform: rotate(45deg) scale(1.1);
    animation-play-state: paused;
}

/* Disparition */
.scroll-indicator.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}


/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 5% 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--accent) 100%);
    color: white;
    border-color: transparent;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 5% 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(20px);
    display: block;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-video {
    width: 100%;
    height: 200px;
    background: var(--primary-light);
    position: relative;
    overflow: hidden;
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.portfolio-content p {
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--primary-light);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.back-button {
    display: inline-block;
    margin: 0 5% 40px;
    padding: 12px 25px;
    background: var(--card-bg);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--accent) 100%);
    color: white;
    border-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 5% 60px;
    }
    
    .portfolio-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.portfolio-video {
    width: 100%;
    height: 200px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-content {
    padding: 20px;
}

.back-button {
    display: inline-block;
    margin: 20px 5%;
    padding: 10px 20px;
    background: var(--card-bg);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

/* Optimisation performance */
.scroll-animation {
    will-change: transform, opacity;
}

/* Selection */
::selection {
    background: var(--accent);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-medium);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}




/*Mentions Legal Page*/

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}


  /* Styles spécifiques pour la page mentions légales */
    .legal-container {
      max-width: 800px;
      margin: 120px auto 50px;
      padding: 0 20px;
      color: var(--text-color);
    }

    .legal-container h1 {
      text-align: center;
      margin-bottom: 50px;
      font-size: 2.5em;
    }

    .legal-section {
      margin-bottom: 40px;
      padding: 25px;
      background: var(--card-bg);
      border-radius: 15px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border-color);
    }

    .legal-section h2 {
      color: var(--accent-color);
      margin-bottom: 15px;
      font-size: 1.4em;
      border-bottom: 2px solid var(--accent-color);
      padding-bottom: 8px;
    }

    .legal-container a:not(.back-button) {
      color: rgb(184, 108, 241);
      text-decoration: none;
      font-weight: bold;
      transition: color 0.3s ease;
    }

    .legal-section h3 {
      color: var(--text-color);
      margin: 20px 0 10px 0;
      font-size: 1.1em;
    }

    .legal-section p {
      line-height: 1.7;
      margin-bottom: 15px;
    }

    .legal-section ul {
      padding-left: 20px;
      margin-bottom: 15px;
    }

    .legal-section li {
      margin-bottom: 8px;
      line-height: 1.6;
    }

    .back-button {
      display: inline-block;
      margin-top: 30px;
      padding: 12px 25px;
      background: var(--accent-color);
      color: white;
      text-decoration: none;
      border-radius: 8px;
      transition: all 0.3s ease;
    }

    .back-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    @media (max-width: 768px) {
      .legal-container {
        margin: 100px auto 30px;
      }

      .legal-container h1 {
        font-size: 2em;
        margin-bottom: 30px;
      }

      .legal-section {
        padding: 20px;
        margin-bottom: 25px;
      }
    }

/* Optimisation des transitions pour performance */
header,
.services,
.contact,
body,
footer,
.service-card,
.success-message {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}