/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
    overflow-x: hidden;
}

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

/* Background Elements */
.bg-gradient {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 25% 25%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    z-index: -2;
    animation: gradientFloat 20s ease-in-out infinite;
}

@keyframes gradientFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #fafafa;
}

.bg-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            rgba(120, 119, 198, 0.15) 0%,
            rgba(255, 107, 107, 0.1) 25%,
            transparent 50%,
            rgba(120, 119, 198, 0.08) 75%,
            rgba(255, 107, 107, 0.12) 100%
        ),
        linear-gradient(
            45deg,
            transparent 0%,
            rgba(255, 107, 107, 0.06) 30%,
            rgba(120, 119, 198, 0.04) 60%,
            transparent 100%
        );
    animation: colorShift 18s ease-in-out infinite;
    mix-blend-mode: multiply;
}

.bg-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(120, 119, 198, 0.25) 0%, rgba(120, 119, 198, 0.05) 40%, transparent 70%),
        radial-gradient(ellipse at 85% 80%, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.04) 35%, transparent 65%),
        radial-gradient(ellipse at 50% 10%, rgba(120, 119, 198, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 90%, rgba(255, 107, 107, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(120, 119, 198, 0.12) 0%, transparent 45%);
    background-size: 600px 400px, 500px 600px, 400px 300px, 350px 450px, 450px 350px;
    animation: floatingColors 22s ease-in-out infinite;
    mix-blend-mode: screen;
}

/* Overlay coloré supplémentaire */
.bg-gradient {
    background:
        radial-gradient(circle at 30% 40%, rgba(120, 119, 198, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(255, 107, 107, 0.06) 0%, transparent 50%),
        linear-gradient(
            125deg,
            rgba(120, 119, 198, 0.03) 0%,
            transparent 30%,
            rgba(255, 107, 107, 0.04) 70%,
            transparent 100%
        );
    mix-blend-mode: soft-light;
}

@keyframes colorShift {
    0%, 100% {
        background:
            linear-gradient(
                135deg,
                rgba(120, 119, 198, 0.15) 0%,
                rgba(255, 107, 107, 0.1) 25%,
                transparent 50%,
                rgba(120, 119, 198, 0.08) 75%,
                rgba(255, 107, 107, 0.12) 100%
            ),
            linear-gradient(
                45deg,
                transparent 0%,
                rgba(255, 107, 107, 0.06) 30%,
                rgba(120, 119, 198, 0.04) 60%,
                transparent 100%
            );
    }
    50% {
        background:
            linear-gradient(
                315deg,
                rgba(255, 107, 107, 0.18) 0%,
                rgba(120, 119, 198, 0.12) 25%,
                transparent 50%,
                rgba(255, 107, 107, 0.1) 75%,
                rgba(120, 119, 198, 0.14) 100%
            ),
            linear-gradient(
                225deg,
                transparent 0%,
                rgba(120, 119, 198, 0.08) 30%,
                rgba(255, 107, 107, 0.06) 60%,
                transparent 100%
            );
    }
}

@keyframes floatingColors {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        background-position: 15% 20%, 85% 80%, 50% 10%, 20% 90%, 80% 30%;
        opacity: 1;
    }
    25% {
        transform: translate(30px, -20px) rotate(1deg) scale(1.05);
        background-position: 20% 25%, 80% 75%, 45% 15%, 25% 85%, 75% 35%;
        opacity: 0.8;
    }
    50% {
        transform: translate(-15px, 25px) rotate(-0.5deg) scale(0.95);
        background-position: 10% 30%, 90% 70%, 55% 5%, 15% 95%, 85% 25%;
        opacity: 0.9;
    }
    75% {
        transform: translate(20px, 10px) rotate(0.8deg) scale(1.02);
        background-position: 18% 18%, 82% 82%, 48% 12%, 22% 88%, 78% 32%;
        opacity: 0.85;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7877c6, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 5px rgba(120, 119, 198, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(120, 119, 198, 0.6)); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.highlight {
    background: linear-gradient(135deg, #7877c6, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #7877c6, #ff6b6b);
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite alternate;
}

@keyframes underlineGlow {
    0% { opacity: 0.5; transform: scaleX(0.8); }
    100% { opacity: 1; transform: scaleX(1); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #7877c6, #ff6b6b);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(120, 119, 198, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(120, 119, 198, 0.4);
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-primary:hover .cta-arrow {
    transform: translateX(4px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-1 {
    width: 200px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation: float1 6s ease-in-out infinite;
}

.card-2 {
    width: 180px;
    height: 140px;
    top: 50%;
    right: 5%;
    animation: float2 8s ease-in-out infinite 2s;
}

.card-3 {
    width: 160px;
    height: 100px;
    bottom: 25%;
    left: 25%;
    animation: float3 7s ease-in-out infinite 1s;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(1deg); }
}

.card-header {
    width: 60%;
    height: 12px;
    background: linear-gradient(135deg, #7877c6, #ff6b6b);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.card-content {
    width: 80%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.card-content:last-child {
    width: 60%;
}

/* Value Section */
.value-section {
    padding: 8rem 0 12rem 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.value-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(120, 119, 198, 0.2);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #7877c6, #ff6b6b);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(120, 119, 198, 0.3);
}

.value-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.value-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.cta-large {
    font-size: 1.3rem;
    padding: 1.5rem 3rem;
    margin-bottom: 2rem;
}

.alternative-contact {
    margin-top: 2rem;
    opacity: 0.8;
}

.alternative-contact p {
    color: #666;
    font-size: 1rem;
}

.email-link {
    color: #7877c6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #7877c6, #ff6b6b);
    transition: width 0.3s ease;
}

.email-link:hover::after {
    width: 100%;
}

.email-link:hover {
    color: #ff6b6b;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="fade-up"] {
    animation: fadeInUp 0.8s ease forwards;
}

[data-aos-delay="100"] { animation-delay: 0.1s; }
[data-aos-delay="200"] { animation-delay: 0.2s; }
[data-aos-delay="300"] { animation-delay: 0.3s; }
[data-aos-delay="400"] { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
    }

    .logo {
        order: 1;
    }

    .hero-visual {
        height: 200px;
        order: 2;
        margin: 0.5rem 0 2.5rem 0;
    }

    .hero-title {
        order: 3;
    }

    .hero-subtitle {
        order: 4;
    }

    .cta-primary {
        order: 5;
        align-self: center;
    }

    .card-1, .card-2, .card-3 {
        transform: scale(0.7);
    }

    .value-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 1rem 0;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .value-section {
        padding: 2rem 0 4rem 0;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-item {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-large {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        height: 200px;
    }

    .card-1, .card-2, .card-3 {
        transform: scale(0.6);
    }

    .value-item {
        padding: 1rem;
    }

    .value-icon {
        width: 48px;
        height: 48px;
    }

    .value-item h3 {
        font-size: 1.2rem;
    }

    .alternative-contact p {
        font-size: 0.9rem;
    }
}

/* Performance optimizations */
.value-item,
.card,
.cta-primary {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}