/* Variables CSS */
:root {
    --primary: #3f51b5;
    --primary-dark: #303f9f;
    --primary-light: #7986cb;
    --secondary: #f44336;
    --secondary-dark: #d32f2f;
    --secondary-light: #ef5350;
    --accent: #4caf50;
    --text-primary: #212121;
    --text-secondary: #757575;
    --background: #ffffff;
    --background-alt: #f5f5f5;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 4px 12px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: white;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Header et Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    backdrop-filter: blur(5px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

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

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

.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 10rem 1.5rem 6rem;
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%237986cb' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.cta-button.primary {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.cta-button.primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

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

.cta-button.secondary:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: white;
}

/* Features Section */
.features-section {
    padding: 6rem 1.5rem;
    background-color: var(--background);
}

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

.feature-card {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 1.5rem;
    background-color: var(--background-alt);
}

.steps {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.step {
    display: flex;
    margin-bottom: 3rem;
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cta-center {
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 1.5rem;
    background-color: var(--background);
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.testimonial {
    background-color: var(--background-alt);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.3;
    line-height: 0.5;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.author-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rating {
    color: #ffb400;
}

.star {
    display: inline-block;
    margin-right: -4px;
}

.star.half {
    position: relative;
    overflow: hidden;
    width: 0.5em;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 1.5rem;
    background-color: var(--background-alt);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    background-color: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    transition: var(--transition);
}

.accordion-header.active {
    color: var(--primary);
}

.accordion-header.active::after {
    content: '-';
    transform: rotate(90deg);
}

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

.accordion-content.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* CTA Section */
.cta-section {
    padding: 6rem 1.5rem;
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: white;
}

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

.cta-content h2 {
    color: white;
}

.cta-content h2::after {
    background: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: #212121;
    color: white;
    padding: 4rem 1.5rem 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.footer-logo {
    flex-basis: 300px;
}

.footer-logo p {
    margin-top: 1rem;
    color: #bdbdbd;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column ul li a {
    color: #bdbdbd;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #bdbdbd;
}

.keywords {
    font-size: 0.75rem;
    color: #757575;
    margin-top: 1rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .hero-section {
        padding: 8rem 1.5rem 5rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin: 0 0 1rem 0;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .testimonial {
        min-width: 100%;
    }
}
