/* =====================================================
   VARIABLES & RESET
===================================================== */
:root {
    /* Couleurs principales */
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --primary-light: #DBEAFE;
    --secondary-color: #10B981;
    --secondary-hover: #059669;
    
    /* Couleurs de texte */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    
    /* Couleurs de fond */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-dark: #111827;
    
    /* Couleurs de statut */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Empêcher le scroll horizontal */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Empêcher le scroll horizontal */
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

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

@media (min-width: 640px) {
    .btn-large {
        font-size: 1.125rem;
    }
}

@media (max-width: 639px) {
    .hero-cta .btn-large {
        width: 100%;
        justify-content: center;
    }
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* =====================================================
   NAVIGATION
===================================================== */
.navbar {
    position: sticky;
    top: 0;
    background: #37517E;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    background: #37517E;
    padding: 8px;
    border-radius: 8px;
}

.logo i {
    font-size: 1.75rem;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-links a:not(.btn-primary):not(.btn-secondary):hover {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Boutons dans la navbar */
.navbar .btn-primary {
    background: white;
    color: #37517E;
}

.navbar .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #37517E;
}

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

.navbar .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* =====================================================
   HERO SECTION - MOBILE FIRST
===================================================== */
.hero {
    padding: 0 0 4rem;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
}

/* Desktop version */
@media (min-width: 1024px) {
    .hero {
        padding: 8rem 0 6rem !important;
    }
    
    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .hero::before {
        width: 50%;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    margin: 0 auto 2rem;
}

@media (max-width: 639px) {
    .badge {
        font-size: 0.8125rem;
        padding: 0.4rem 0.875rem;
    }
}

.badge i {
    color: #F59E0B;
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 100%;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        max-width: 90%;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-features {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (min-width: 1024px) {
    .hero-features {
        justify-content: flex-start;
        gap: 2rem;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* Hero Screenshot Preview */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.screenshot-preview {
    position: relative;
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.screenshot-img.floating {
    animation: float 3s ease-in-out infinite;
}

.screenshot-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.screenshot-badge i {
    color: var(--success-color);
    font-size: 1rem;
}

/* =====================================================
   SOCIAL PROOF
===================================================== */
.social-proof {
    padding: 3rem 0;
    background: #37527E;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
}

/* Desktop only: Add background image with overlay */
@media (min-width: 1024px) {
    .social-proof::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../img/social-proof-bg.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.6;
        z-index: 0;
        pointer-events: none;
    }
    
    /* Blue overlay */
    .social-proof::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #37527E;
        opacity: 0.40;
        z-index: 0;
        pointer-events: none;
    }
    
    .social-proof > * {
        position: relative;
        z-index: 1;
    }
}

.social-proof-text {
    text-align: center;
    font-size: 1.25rem;
    color: white !important;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.social-proof-text span {
    color: white !important;
}

.social-proof-text strong {
    color: white !important;
    font-weight: 800;
}

.professions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.professions span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.professions i {
    color: white;
}

/* =====================================================
   PROBLEM/SOLUTION SECTION
===================================================== */
.problem-solution {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.comparison {
    /* Grid seulement sur desktop */
}

@media (min-width: 768px) {
    .comparison {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.comparison-side {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.comparison-side:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.comparison-side.before {
    border-top: 4px solid var(--error-color);
}

.comparison-side.after {
    border-top: 4px solid var(--success-color);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comparison-header i {
    font-size: 2rem;
}

.comparison-side.before .comparison-header i {
    color: var(--error-color);
}

.comparison-side.after .comparison-header i {
    color: var(--success-color);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list i {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.comparison-side.before .comparison-list i {
    color: var(--error-color);
}

.comparison-side.after .comparison-list i {
    color: var(--success-color);
}

/* Swipe mobile pour comparaison */
.comparison-wrapper {
    position: relative;
}

.comparison-dots {
    display: none; /* Caché par défaut (desktop) */
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.comparison-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: all var(--transition-base);
}

.comparison-dots .dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 5px;
}

.swipe-hint {
    display: none; /* Caché par défaut (desktop) */
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.swipe-hint i {
    font-size: 1.25rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* =====================================================
   HOW IT WORKS
===================================================== */
.how-it-works {
    padding: 6rem 0;
    background: white;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    left: calc(50% + 25px);
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-base);
}

.step:hover .step-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.step-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: color var(--transition-base);
}

.step:hover .step-icon i {
    color: white;
}

.step h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step p {
    color: var(--text-secondary);
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

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

/* =====================================================
   FEATURES SECTION
===================================================== */
.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

/* Desktop: Center the 7th card (Support Dédié) below the others */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid .feature-card:nth-child(7) {
        grid-column: 2 / 3;
    }
}

.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   DEMO SECTION
===================================================== */
.demo-section {
    padding: 6rem 0;
    background: white;
}

.demo-content {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.demo-text h2 {
    margin-bottom: 1rem;
}

.demo-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.demo-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.demo-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    text-align: center;
}

.demo-features i {
    color: var(--success-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.demo-video {
    position: relative;
}

.demo-screenshot {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.demo-screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-badge-demo {
    position: absolute;
    top: -3rem; /* Au-dessus de l'image */
    left: 50%; /* Centré horizontalement */
    transform: translateX(-50%); /* Centrage parfait */
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap; /* Pas de retour à la ligne */
}

.screenshot-badge-demo i {
    font-size: 1rem;
}

/* =====================================================
   TUTORIALS SECTION
===================================================== */
.tutorials {
    padding: 6rem 0;
    background: white;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.tutorial-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tutorial-video {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.tutorial-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tutorial-content {
    padding: 2rem;
}

.tutorial-content h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tutorial-content h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.tutorial-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tutorial-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tutorial-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tutorial-meta i {
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .tutorials-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonials {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars i {
    color: #F59E0B;
    font-size: 1.125rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.author-info strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =====================================================
   PRICING SECTION
===================================================== */
.pricing {
    padding: 6rem 0;
    background: white;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-cards-two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto 2rem;
}

@media (max-width: 767px) {
    .pricing-cards-two {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.pricing-economy {
    text-align: center;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pricing-economy i {
    color: var(--success-color);
}

.pricing-header {
    text-align: center !important;
    margin-bottom: 1.5rem;
    width: 100%;
}

.pricing-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem !important;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.pricing-card.featured .pricing-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pricing-card .pricing-header h3,
.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center !important;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pricing-card .pricing-header p,
.pricing-header p {
    color: var(--text-secondary);
    text-align: center !important;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pricing-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.price-period {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

.price-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.9375rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--success-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pricing-note i {
    color: var(--success-color);
}

/* Boutons CTA dans les pricing cards - Plus voyants */
.pricing-card .btn-secondary,
.pricing-card .btn-primary {
    font-size: 1.0625rem;
    font-weight: 700;
    padding: 1rem 2rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.pricing-card .btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    animation: pulse-shadow 2s infinite;
}

.pricing-card .btn-secondary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.7);
    transform: translateY(-3px) scale(1.02);
}

@keyframes pulse-shadow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.7);
    }
}

/* =====================================================
   FAQ SECTION
===================================================== */
.faq {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

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

/* =====================================================
   FINAL CTA
===================================================== */
.final-cta {
    padding: 6rem 0;
    background: #37527E;
    color: white;
    position: relative;
}

/* Background image with overlay - Desktop AND Mobile */
.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/social-proof-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

/* Blue overlay */
.final-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #37527E;
    opacity: 0.40;
    z-index: 0;
    pointer-events: none;
}

.final-cta > * {
    position: relative;
    z-index: 1;
}

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

.cta-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.cta-content > p {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

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

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

.final-cta .btn-primary:hover {
    background: var(--primary-light);
}

.final-cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.final-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-note {
    color: white;
    font-size: 0.875rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    background: transparent;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================================================
   DEMO INVOICE PREVIEW
===================================================== */
.demo-invoice-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.invoice-preview-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
    padding-top: 3.5rem; /* Espace pour la bulle au-dessus */
}

.invoice-preview-img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 
                0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
}

.invoice-preview-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25), 
                0 15px 35px rgba(0, 0, 0, 0.18);
}

/* Old animation container (kept for legacy) */
.demo-screenshot-container {
    position: relative;
    min-height: 600px;
}

.demo-screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-screenshot.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    position: relative;
}

/* Invoice Preview */
.invoice-preview {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--primary-color);
}

.invoice-logo h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin: 0;
    font-weight: 800;
}

.invoice-date {
    text-align: right;
    color: var(--text-primary);
    line-height: 1.6;
}

.invoice-date strong {
    color: var(--primary-color);
    font-weight: 700;
}

.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.invoice-from,
.invoice-to {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    line-height: 1.8;
}

.invoice-from strong,
.invoice-to strong {
    color: var(--primary-color);
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.5rem;
}

.invoice-from small,
.invoice-to small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Invoice Table */
.invoice-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.invoice-table thead {
    background: var(--primary-color);
    color: white;
}

.invoice-table th,
.invoice-table td {
    padding: 1.25rem;
    text-align: left;
}

.invoice-table th {
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.invoice-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
}

.invoice-table tbody td {
    color: var(--text-primary);
    vertical-align: top;
}

.invoice-table tbody td strong {
    color: var(--primary-color);
    font-weight: 600;
}

.invoice-table .amount {
    text-align: right;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.invoice-table tfoot {
    background: var(--bg-secondary);
}

.invoice-table tfoot th {
    color: var(--text-primary);
    font-size: 1.25rem;
    padding: 1.5rem 1.25rem;
}

.invoice-table tfoot .amount {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
}

/* Invoice Footer */
.invoice-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #E5E7EB;
}

.invoice-notice {
    background: #FEF3C7;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #92400E;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.invoice-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.invoice-signature {
    text-align: right;
    padding-top: 2rem;
}

.invoice-signature p {
    color: var(--text-primary);
    font-weight: 600;
}

.invoice-signature strong {
    color: var(--primary-color);
}

/* Badge Final */
.badge-final {
    background: var(--secondary-color) !important;
}

.badge-final i {
    color: white;
}

/* Demo Controls */
.demo-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.demo-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.demo-btn i {
    font-size: 1.125rem;
}

/* Responsive Invoice */
@media (max-width: 768px) {
    .invoice-preview {
        padding: 2rem 1.5rem;
    }
    
    .invoice-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .invoice-date {
        text-align: left;
    }
    
    .invoice-parties {
        grid-template-columns: 1fr;
    }
    
    .invoice-table th,
    .invoice-table td {
        padding: 0.875rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .demo-controls {
        flex-direction: column;
    }
    
    .demo-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   BLOG PAGE
===================================================== */
.blog-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

/* Blog Categories */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text-secondary);
    border: 2px solid #E5E7EB;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

/* Featured Article */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 1.5rem;
    margin-bottom: 4rem;
    color: white;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.featured-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-content .article-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.featured-content .article-meta {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

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

.featured-content .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image .article-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.article-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    opacity: 1;
    transform: translateY(0);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.article-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.article-image .article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.category-facturation {
    background: #3B82F6;
}

.category-gestion {
    background: #10B981;
}

.category-legal {
    background: #8B5CF6;
}

.category-conseils {
    background: #F59E0B;
}

.article-content {
    padding: 2rem;
}

.article-content h3 {
    color: var(--text-primary);
    font-size: 1.375rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.article-link:hover {
    gap: 0.75rem;
}

.article-link i {
    transition: transform var(--transition-fast);
}

.article-link:hover i {
    transform: translateX(4px);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    text-align: center;
    color: white;
}

.newsletter-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form .btn-primary {
    background: white;
    color: var(--primary-color);
    flex-shrink: 0;
}

.newsletter-form .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* CTA Final */
.cta-final {
    position: relative;
    background: var(--bg-secondary);
    padding: 5rem 0;
    overflow: hidden;
}

/* Image médicale en arrière-plan pour .cta-final */
.cta-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/social-proof-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6; /* 60% de visibilité de l'image médicale */
    z-index: 1;
}

/* Overlay bleu #37527E pour .cta-final */
.cta-final::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #37527E;
    opacity: 0.40; /* 40% d'opacité de l'overlay bleu */
    z-index: 2;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 3; /* Contenu au-dessus de l'image et de l'overlay */
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content > p {
    color: white !important;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
    font-weight: 500 !important;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

.cta-note {
    color: white !important;
    font-size: 0.875rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    font-weight: 500 !important;
}

.cta-note i {
    color: white !important;
}

/* Responsive Blog */
@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        font-size: 0.8125rem;
        padding: 0.625rem 1rem;
    }
    
    .featured-article {
        padding: 2rem;
    }
    
    .featured-content h2 {
        font-size: 1.75rem;
    }
    
    .featured-content .article-excerpt {
        display: none; /* Masquer la description sur mobile pour réduire la taille de la carte */
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn-primary {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-note {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* =====================================================
   PAGE HEADER (Used in all pages)
===================================================== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    color: white;
}

.page-header-content h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.header-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

/* Demo Features Badges - Style identique aux badges hero */
.demo-features-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-badge i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

@media (max-width: 767px) {
    .demo-features-badges {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2rem;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .header-features {
        flex-direction: column;
        gap: 1rem;
    }
}

/* =====================================================
   PRICING PAGE
===================================================== */
.pricing-page {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price .period {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.pricing-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.price-detail {
    color: var(--primary-color);
    font-weight: 600;
}

.pricing-features {
    margin: 2rem 0;
}

.pricing-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pricing-features .feature-item i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.pricing-note {
    text-align: center;
    margin-top: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Payment Form */
.payment-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-xl);
}

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

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
}

.form-section {
    margin-bottom: 3rem;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.form-section h3 i {
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.selected-plan {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.plan-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-name i {
    color: var(--primary-color);
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.plan-description {
    color: var(--text-secondary);
}

.payment-info-box {
    background: #EFF6FF;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    gap: 1rem;
}

.payment-info-box i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.payment-info-box strong {
    display: block;
    margin-bottom: 0.25rem;
}

.form-actions {
    margin-top: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.checkbox-label span {
    color: var(--text-secondary);
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-note i {
    color: var(--secondary-color);
}

/* Reassurance Section */
.reassurance-section {
    margin-top: 4rem;
    text-align: center;
}

.reassurance-section h2 {
    margin-bottom: 3rem;
}

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

.reassurance-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.reassurance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reassurance-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.reassurance-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.reassurance-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.reassurance-card p {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   LOGIN PAGE
===================================================== */
.login-section {
    min-height: calc(100vh - 80px);
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.login-form-container {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.login-form label i {
    color: var(--primary-color);
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--text-primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E5E7EB;
    z-index: 0;
}

.form-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.login-security {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.login-security i {
    color: var(--secondary-color);
}

/* Login Benefits */
.login-benefits {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 1rem;
    color: white;
}

.benefits-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.benefits-intro {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.benefits-list {
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: white;
}

.benefit-text h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.benefit-text p {
    color: rgba(255, 255, 255, 0.85);
}

.social-proof-mini {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.25rem;
}

.avatar:first-child {
    margin-left: 0;
}

.social-proof-text strong {
    display: block;
    color: white;
}

.social-proof-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Help Section */
.help-section {
    max-width: 1100px;
    margin: 4rem auto 0;
    padding: 3rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.help-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.help-section h3 i {
    color: var(--primary-color);
}

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

.help-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
}

.help-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.help-card h4 {
    margin-bottom: 0.75rem;
}

.help-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }
    
    .login-benefits {
        order: 2; /* Passe après le formulaire (était -1) */
        padding: 1.5rem; /* Réduit de 3rem à 1.5rem pour éviter le débordement */
    }
    
    .login-form-container {
        order: 1; /* Passe en premier (card "Bon retour" en haut) */
        padding: 1.5rem; /* Réduit de 2rem à 1.5rem pour éviter l'overflow sur petits écrans */
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .benefit-item {
        gap: 1rem; /* Réduit de 1.5rem à 1rem */
        margin-bottom: 1.5rem; /* Réduit de 2rem à 1.5rem */
    }
    
    .benefit-icon {
        width: 45px; /* Réduit de 50px à 45px */
        height: 45px;
    }
    
    .benefit-text h3 {
        font-size: 1rem; /* Réduit de 1.125rem à 1rem */
    }
    
    .benefit-text p {
        font-size: 0.875rem; /* Légèrement plus petit sur mobile */
    }
    
    .benefits-content h2 {
        font-size: 1.5rem; /* Ajusté pour mobile */
    }
}

/* =====================================================
   LEGAL PAGES (Privacy Policy & Legal Mentions)
===================================================== */
.legal-header {
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
}

.legal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.legal-icon i {
    font-size: 2.5rem;
    color: white;
}

.legal-subtitle {
    font-size: 1.125rem !important;
    margin-bottom: 0.5rem !important;
}

.legal-date {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem !important;
}

.legal-content {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.legal-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.legal-toc {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.legal-toc h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-toc h3 i {
    color: var(--primary-color);
}

.toc-nav {
    display: flex;
    flex-direction: column;
}

.toc-link {
    padding: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.toc-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.toc-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.legal-help {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    color: white;
    text-align: center;
}

.legal-help i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.legal-help h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.legal-help p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Main Content */
.legal-main {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.legal-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-secondary);
}

.legal-section h2 i {
    color: var(--primary-color);
}

.legal-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.legal-text {
    color: var(--text-primary);
}

.legal-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.legal-text ul,
.legal-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-text li {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.legal-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.legal-text a:hover {
    text-decoration: underline;
}

/* Info Boxes */
.info-box,
.warning-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.info-box {
    background: #EFF6FF;
    border-left: 4px solid var(--primary-color);
}

.warning-box {
    background: #FEF3C7;
    border-left: 4px solid var(--warning-color);
}

.info-box i,
.warning-box i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-box i {
    color: var(--primary-color);
}

.warning-box i {
    color: var(--warning-color);
}

.info-box strong,
.warning-box strong {
    display: block;
    margin-bottom: 0.5rem;
}

.info-box p,
.warning-box p {
    margin-bottom: 0;
}

/* Info Cards */
.info-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-label i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.info-value {
    color: var(--text-secondary);
}

/* Usage Grid */
.usage-grid,
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.usage-card,
.security-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.usage-card i,
.security-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.usage-card h4,
.security-item h4 {
    margin-bottom: 0.75rem;
}

.usage-card p,
.security-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Legal Table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: 0.5rem;
    overflow: hidden;
}

.legal-table thead {
    background: var(--primary-color);
    color: white;
}

.legal-table th,
.legal-table td {
    padding: 1rem;
    text-align: left;
}

.legal-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
}

.legal-table tbody tr:last-child {
    border-bottom: none;
}

.legal-table tbody tr:hover {
    background: var(--bg-secondary);
}

.legal-table td {
    color: var(--text-primary);
}

/* Rights List */
.rights-list {
    margin: 2rem 0;
}

.right-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
}

.right-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.right-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.right-content h4 {
    margin-bottom: 0.5rem;
}

.right-content p {
    margin-bottom: 0;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h4 {
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Pricing Comparison */
.pricing-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.pricing-item h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pricing-item ul {
    list-style: none;
    padding: 0;
}

.pricing-item li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-item li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Legal CTA */
.legal-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    color: white;
    margin-top: 3rem;
}

.legal-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.legal-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
    }
    
    .legal-sidebar {
        position: static;
    }
    
    .legal-toc {
        max-width: 100%;
    }
    
    .toc-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .toc-link {
        flex: 1 1 auto;
        min-width: 150px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .legal-main {
        padding: 2rem 1.5rem;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .usage-grid,
    .security-grid,
    .contact-grid,
    .pricing-comparison {
        grid-template-columns: 1fr;
    }
    
    .legal-table {
        font-size: 0.875rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.75rem 0.5rem;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */
@media (max-width: 1023px) and (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .demo-content {
        margin-bottom: 2.5rem;
    }
    
    .demo-invoice-preview {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .invoice-preview-wrapper {
        position: relative;
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: var(--shadow-xl);
        padding-top: 3rem; /* Espace pour la bulle sur mobile */
    }
    
    .demo-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 600px;
    }
    
    .invoice-preview-img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .screenshot-badge-demo {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        top: -2.5rem; /* Au-dessus de l'image sur mobile */
        left: 50%; /* Centré */
        transform: translateX(-50%); /* Centrage parfait */
        white-space: nowrap; /* Une seule ligne */
    }
    
    .comparison {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .comparison-side {
        padding: 1.5rem;
    }
    
    .comparison-header h3 {
        font-size: 1rem;
    }
    
    .comparison-list li {
        padding: 0.75rem 0;
        font-size: 0.875rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 1.25rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    section {
        padding: 3rem 0;
    }
    
    .nav-links {
        display: flex; /* Toujours en flex sur mobile */
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #37517E;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden; /* Caché mais en flex */
        transition: all var(--transition-base);
        pointer-events: none;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible; /* Visible quand actif */
        pointer-events: all;
    }
    
    .navbar .nav-links a {
        color: white;
    }
    
    .navbar .nav-links .btn-primary {
        background: white;
        color: #37517E;
    }
    
    .navbar .nav-links .btn-secondary {
        background: transparent;
        border: 2px solid white;
        color: white;
    }
    
    .mobile-menu-btn {
        display: block !important;
        position: relative !important;
        z-index: 1001 !important;
    }

    .steps {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .step {
        text-align: center;
    }
    
    .step-number {
        position: absolute;
        top: 0;
        left: calc(50% + 20px);
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 1.5rem;
    }
    
    .step-icon i {
        font-size: 2rem;
    }
    
    .step h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .step p {
        font-size: 0.95rem;
    }
    
    .step-arrow {
        display: flex; /* Afficher sur mobile */
        justify-content: center;
        align-items: center;
        width: 100%;
        font-size: 2rem;
        color: var(--primary-color);
        margin: 1rem 0; /* Espacement vertical */
    }
    
    /* Désactiver les effets hover sur mobile (pas de souris) */
    .step:hover .step-icon {
        background: var(--primary-light);
        transform: none;
    }
    
    .step:hover .step-icon i {
        color: var(--primary-color);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem; /* Padding supplémentaire pour éviter le débordement */
    }
    
    .footer .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .footer-section {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
    
    .footer-section p,
    .footer-section h4,
    .footer-section ul li a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    /* Swipe mobile pour comparaison */
    .comparison {
        display: flex !important;
        grid-template-columns: none !important; /* Forcer suppression du grid */
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        gap: 0.5rem;
        padding: 0 5%;
        margin: 0 -5%;
    }
    
    .comparison::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .comparison-side {
        flex: 0 0 90%;
        min-width: 90%;
        max-width: 90%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
    
    .comparison-dots {
        display: flex;
    }
    
    .swipe-hint {
        display: flex;
    }
    
    /* Wrapper pour permettre l'overflow */
    .comparison-wrapper {
        overflow: hidden;
        margin: 0 -1.25rem;
        padding: 0 1.25rem;
    }
    
    /* Demo Section Mobile */
    .demo-section .section-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .demo-section .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .demo-section .section-header p {
        font-size: 1rem;
        color: var(--text-secondary);
    }
    
    .demo-content {
        margin-bottom: 2rem;
    }
    
    .demo-invoice-preview {
        width: 100%;
        max-width: 100%;
    }
    
    .invoice-preview-wrapper {
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: var(--shadow-xl);
    }
    
    .invoice-preview-img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .demo-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .demo-features li {
        padding: 1rem;
        font-size: 0.95rem;
        text-align: left;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .professions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 0.9375rem;
        padding: 0.875rem 1.25rem;
    }
    
    .screenshot-badge {
        font-size: 0.8125rem;
        padding: 0.625rem 1.25rem;
        bottom: 1rem;
    }
}