* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1f71b8;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --dark-text: #2c3e50;
    --gradient-start: #1f71b8;
    --gradient-end: #4a90e2;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Particle Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 5% 80px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-highlight {
    color: var(--primary-blue);
    font-size: 3.8rem;
}

.scramble-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #666;
    max-width: 800px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 0 20px rgba(31, 113, 184, 0.4);
    position: relative;
}

.btn-primary::after {
    content: attr(data-phone);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

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

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(31, 113, 184, 0.6), 0 0 60px rgba(31, 113, 184, 0.4);
    transform: translateY(-2px);
}

.btn-primary:hover span {
    opacity: 0;
}

.btn-primary span {
    transition: opacity 0.3s ease;
}

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

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 0 20px rgba(31, 113, 184, 0.4);
}

/* Sections */
section {
    padding: 100px 5%;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

/* Tous les secteurs */
.sectors {
    background: var(--white);
    text-align: center;
}

.sectors-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* Carrousel */
.carousel-section {
    background: var(--light-gray);
    padding: 120px 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    animation: scroll 50s linear infinite;
    will-change: transform;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-4584px);
    }
}

/* Assurer que la boucle est vraiment infinie */
.carousel-track::before,
.carousel-track::after {
    content: '';
}

.carousel-card {
    min-width: 350px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.carousel-card.hovered {
    transform: translateY(-10px);
    background: rgba(31, 113, 184, 0.1);
    box-shadow: 0 12px 40px rgba(31, 113, 184, 0.3);
}

.carousel-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.carousel-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Duplicate cards for infinite scroll */
.carousel-track::after {
    content: '';
}

/* Pourquoi Trust-Up */
.differentiation {
    background: var(--white);
}

.differentiation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.diff-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--light-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(31, 113, 184, 0.15);
}

.diff-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.diff-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.diff-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact */
.contact {
    background: var(--light-gray);
    text-align: center;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    text-shadow: 0 0 10px rgba(31, 113, 184, 0.5);
}

/* FAQ Section */
.faq {
    background: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-text);
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    color: var(--primary-blue);
    background: rgba(31, 113, 184, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Animations au scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hero-highlight {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

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

    .carousel-card {
        min-width: 280px;
    }

    .differentiation-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-highlight {
        font-size: 2.2rem;
    }

    .carousel-card {
        min-width: 250px;
        padding: 1.5rem;
    }
}
