/* Variables et fondations */
:root {
    --cursor-size: 20px;
    --primary: #5D3AFF;
    --primary-dark: #4920FF;
    --secondary: #FF7D54;
    --accent: #00F0FF;
    --dark: #1A1A2E;
    --light: #F7F7FF;
    --gray-100: #F1F1F4;
    --gray-200: #E5E5E9;
    --gray-300: #D1D1D6;
    --gray-700: #4F4F59;
    --gray-800: #303038;
    --gradient-primary: linear-gradient(120deg, var(--primary), var(--accent));
    --gradient-secondary: linear-gradient(120deg, var(--secondary), var(--primary));
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: none;
}

/* Reset et fondations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.smooth-scroll {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.5;
    overflow-x: hidden;
}

body.loaded {
    overflow-x: hidden;
    overflow-y: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Curseur personnalisé */
.custom-cursor {
    width: calc(var(--cursor-size) / 2);
    height: calc(var(--cursor-size) / 2);
    border-radius: 50%;
    background-color: var(--primary);
    /* Supprimez mix-blend-mode: difference; ou remplacez-le par normal */
    mix-blend-mode: normal;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    opacity: 0.7;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s, transform 0.01s;
}

.cursor-expanded {
    width: 50px;
    height: 50px;
    opacity: 0.2;
    transition: all 0.2s ease-out;
}

/* Animation de chargement de page */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s, visibility 0.8s;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 2.5rem;
    color: white;
    position: relative;
}

.loader-logo:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    animation: line-fill 1.5s forwards;
}

@keyframes line-fill {
    to { width: 100%; }
}

.loader-logo span {
    color: var(--accent);
}

/* Barre de progression de défilement */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9999;
    opacity: 0.8;
    transition: width 0.1s;
}

/* Effets 3D */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.tilt-content {
    transform: translateZ(40px);
    will-change: transform;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    padding: 1.1rem 2rem;
    border-radius: 3rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    z-index: 1;
}

.btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(93, 58, 255, 0.4);
}

.btn-primary:hover:after {
    opacity: 1;
}

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

.btn-secondary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(93, 58, 255, 0.2);
}

.btn-secondary:hover:after {
    opacity: 1;
}

.btn-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(247, 247, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(209, 209, 214, 0.2);
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.logo-animated {
    position: relative;
    display: inline-block;
}

.logo-animated:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.logo:hover .logo-animated:after {
    transform: scaleX(1);
    transform-origin: left;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    overflow: hidden;
}

.nav-links li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.nav-links li a:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.9);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.mobile-menu-overlay.menu-active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background-color: var(--light);
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
    color: var(--primary-dark);
}

.mobile-menu-logo {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-nav-links li {
    text-align: center;
}

.mobile-nav-links li a {
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.mobile-nav-links li a:hover {
    color: var(--primary);
    transform: translateX(10px);
}

.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.mobile-nav-buttons .btn {
    width: 100%;
    justify-content: center;
}

.no-scroll {
    overflow: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 540px;
}

.hero-title {
    font-size: 3.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title .highlight {
    display: inline-block;
    position: relative;
}

.hero-title .highlight:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: -5px;
    right: -5px;
    height: 15px;
    background: rgba(0, 240, 255, 0.2);
    z-index: -1;
    transform: skewX(-10deg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.hero-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.hero-stats.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero-stat:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1.5rem;
    width: 1px;
    background: linear-gradient(to bottom, rgba(93, 58, 255, 0), rgba(93, 58, 255, 0.3), rgba(93, 58, 255, 0));
}

.hero-stat:first-child:before {
    display: none;
}

.hero-stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

.hero-image {
    position: relative;
    perspective: 1000px;
    opacity: 0;
    transform: translateX(30px) rotateY(-5deg);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.hero-image.visible {
    opacity: 1;
    transform: translateX(0) rotateY(-5deg);
}

.hero-img {
    width: 100%;
    border-radius: 12px;
    transform-style: preserve-3d;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(93, 58, 255, 0.2);
    border-radius: 50%;
}

/* Services Section */
.services {
    padding: 120px 0;
    position: relative;
    background-color: var(--light);
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(93, 58, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 6rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-subtitle-above {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle-above:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-700);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background-color: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 0.03;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gray-100), white);
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 30px rgba(93, 58, 255, 0.2);
}

.service-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
    transition: all 0.5s ease;
}

.service-card:hover .service-icon svg {
    color: white;
    transform: scale(1.2);
}

.service-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--primary);
}

.service-description {
    color: var(--gray-700);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.service-link span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover span {
    transform: translateX(-5px);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Portfolio Section */
.portfolio {
    padding: 150px 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 30%, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.portfolio-filter {
    padding: 0.7rem 2rem;
    border-radius: 30px;
    background: white;
    border: none;
    color: var(--gray-700);
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.portfolio-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-filter:hover, 
.portfolio-filter.active {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(93, 58, 255, 0.2);
}

.portfolio-filter:hover::before, 
.portfolio-filter.active::before {
    opacity: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    background: white;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
    animation: fadeInUp 0.5s ease forwards;
}

.portfolio-item.visible {
    opacity: 1;
    transform: scale(1);
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.portfolio-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.5));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 3;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-title {
    transform: translateY(0);
}

.portfolio-category {
    color: var(--gray-300);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.5s ease 0.1s;
}

.portfolio-item:hover .portfolio-category {
    transform: translateY(0);
}

.portfolio-actions {
    display: flex;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease 0.2s, opacity 0.5s ease 0.2s;
}

.portfolio-item:hover .portfolio-actions {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    background-color: var(--accent);
    color: var(--dark);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.portfolio-btn:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-btn i {
    transition: transform 0.3s ease;
}

.portfolio-btn:hover i {
    transform: translateX(4px);
}

.portfolio-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: var(--gray-100);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(93, 58, 255, 0.2);
}

.portfolio-description {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.portfolio-cta {
    text-align: center;
    margin-top: 3rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Process Section */
.process {
    padding: 150px 0;
    background-color: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 70%, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.process .section-header {
    margin-bottom: 8rem;
}

.process .section-title,
.process .section-subtitle {
    color: white;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.process-item {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-number {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.process-number::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.process-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: white;
}

.process-description {
    color: var(--gray-300);
    font-size: 1.1rem;
    line-height: 1.7;
}

.process-arrow {
    position: absolute;
    top: 3rem;
    right: -1.5rem;
    left: auto;
    width: 3rem;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
    z-index: 1;
}

.process-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.process-item:last-child .process-arrow {
    display: none;
}

/* Testimonials */
.testimonials {
    padding: 150px 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 60%, rgba(255, 125, 84, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.testimonials .section-header {
    margin-bottom: 6rem;
}

.testimonials-slider {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background-color: white;
    border-radius: 20px;
    padding: 3.5rem 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-secondary);
    border-radius: 10px 10px 0 0;
}

.testimonial-content {
    position: relative;
}

.testimonial-quote {
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    opacity: 0.05;
    font-family: serif;
    line-height: 1;
    color: var(--primary);
}

.testimonial-rating {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--gray-800);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--gray-200);
    padding-top: 1.75rem;
}

.testimonial-logo {
    width: 100px;
    height: 60px;
    object-fit: contain;
    padding: 6px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-logo {
    transform: scale(1.1);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-position {
    font-size: 0.95rem;
    color: var(--gray-700);
}

/* Call to Action */
.cta {
    padding: 180px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.cta-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-text {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.cta-text.visible {
    opacity: 0.9;
    transform: translateY(0);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.cta-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta .btn-secondary:hover {
    border-color: var(--accent);
}

.cta-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI0MDAiIHZpZXdCb3g9IjAgMCAxNDQwIDQwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMjAwLjVDMjQwIDE2NC41IDQ4MCAyMTYuNSA3MjAgMjQ4LjVDOTYwIDI4MC41IDEyMDAgMjMyLjUgMTQ0MCAxOTYuNVY0MDBIMFYyMDAuNVoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcikiLz4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhciIgeDE9IjcyMCIgeTE9IjIwMCIgeDI9IjcyMCIgeTI9IjQwMCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSJ3aGl0ZSIgc3RvcC1vcGFjaXR5PSIwLjEiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSJ3aGl0ZSIgc3RvcC1vcGFjaXR5PSIwIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.7;
    z-index: 0;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 120px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle at 80% 80%, rgba(93, 58, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 2rem;
    display: inline-block;
}

.footer-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-description {
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 400px;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(93, 58, 255, 0.2);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.2);
}

.footer-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--gray-300);
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-contact-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--gray-300);
    align-items: flex-start;
}

.footer-contact-item svg {
    margin-top: 0.25rem;
    color: var(--accent);
}

.footer-contact-item span {
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-copyright {
    color: var(--gray-300);
    font-size: 0.95rem;
}

.footer-legal {
    display: flex;
    gap: 2.5rem;
}

.footer-legal a {
    color: var(--gray-300);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Isotope et utilitaires */
.isotope:after {
    content: '';
    display: block;
    clear: both;
}

.portfolio-item.isotope-hidden {
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.25rem;
    }
    
    .services-grid, 
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-item {
        width: calc(33.33% - 2rem);
    }
}

@media (max-width: 1024px) {
    .process-grid, 
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-arrow {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .hero-stat-number {
        font-size: 2.5rem;
    }
    
    .portfolio-item {
        width: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto !important; /* Désactiver le curseur personnalisé sur mobile */
    }
    
    .custom-cursor {
        display: none !important;
    }
    
    .header-container {
        height: 70px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links, 
    .nav-buttons {
        display: none;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons, 
    .hero-stats {
        justify-content: center;
    }
    
    .hero-stat:before {
        display: none;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2.75rem;
    }

    .services-grid, 
    .process-grid, 
    .testimonials-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        text-align: center;
    }
    
    .portfolio-filter {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .portfolio-item {
        width: 100%;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }
    
    .portfolio-image-container {
        height: 220px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .portfolio-image-container {
        height: 200px;
    }
}