/* ==========================================
   CSS Variables & Reset
   ========================================== */
:root {
    --primary: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #FEE2E2;
    --secondary: #1E293B;
    --text: #1E293B;
    --text-light: #64748B;
    --bg: #FFFFFF;
    --bg-gray: #F8FAFC;
    --border: #E2E8F0;
    --success: #10B981;
    --gradient: linear-gradient(135deg, #DC2626 0%, #F97316 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-white:hover {
    background: var(--bg-gray);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.3);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-arrow {
    transition: transform 0.2s;
}

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

.play-icon {
    font-size: 0.8em;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 1.8rem;
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
}

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

.nav-buttons {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--bg-gray) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Dashboard Preview */
.hero-image {
    position: relative;
    z-index: 2;
}

.dashboard-preview {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.preview-dots span:first-child {
    background: #EF4444;
}

.preview-dots span:nth-child(2) {
    background: #F59E0B;
}

.preview-dots span:last-child {
    background: #22C55E;
}

.preview-title {
    font-size: 0.875rem;
    color: var(--text-light);
}

.preview-content {
    display: flex;
    min-height: 300px;
}

.preview-sidebar {
    width: 60px;
    background: var(--secondary);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-menu-item {
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.preview-menu-item.active {
    background: var(--primary);
}

.preview-main {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.preview-card {
    height: 80px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    animation: pulse 2s infinite;
}

.preview-chart {
    grid-column: 1 / -1;
    height: 100px;
    background: linear-gradient(90deg, var(--bg-gray) 60%, var(--primary-light) 100%);
    border-radius: var(--radius);
}

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

/* ==========================================
   Logos Section
   ========================================== */
.logos-section {
    padding: 60px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.logos-title {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.logo-item:hover {
    opacity: 1;
}

/* ==========================================
   Section Styles
   ========================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

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

/* ==========================================
   Features Section
   ========================================== */
.features-section {
    padding: 100px 0;
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* ==========================================
   Pricing Section
   ========================================== */
.pricing-section {
    padding: 100px 0;
    background: var(--bg-gray);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label.active {
    color: var(--text);
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--border);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: var(--shadow-sm);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

.discount-badge {
    background: var(--success);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    align-items: start;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 2px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.free {
    border-color: var(--success);
    background: #F0FDFA;
}

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

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.pricing-price {
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

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

.pricing-card.free .price-amount {
    color: var(--success);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

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

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

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

.pricing-features .check {
    color: var(--success);
    font-weight: bold;
}

.pricing-features .cross {
    color: var(--text-light);
}

.pricing-features li.disabled {
    color: var(--text-light);
}

.pricing-note {
    text-align: center;
    margin-top: 48px;
    color: var(--text-light);
}

/* ==========================================
   Testimonials Section
   ========================================== */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
}

.testimonial-stars {
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

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

.author-name {
    font-weight: 600;
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: 100px 0;
    background: var(--gradient);
    color: white;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.contact-method a {
    font-weight: 600;
    color: var(--primary);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: white;
    -webkit-text-fill-color: initial;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

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

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

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* ==========================================
   Responsive Design
   ========================================== */

/* ---- 1024px : Tablette paysage ---- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.popular {
        transform: none;
    }

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

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

/* ---- 900px : Petite tablette ---- */
@media (max-width: 900px) {
    .features-section,
    .pricing-section,
    .testimonials-section,
    .cta-section,
    .contact-section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* ---- 768px : Tablette portrait / Mobile ---- */
@media (max-width: 768px) {
    /* Navigation principale masquée */
    .nav-links,
    .nav-buttons {
        display: none;
    }

    /* Menu mobile déroulant */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 0.5rem 1.5rem 1.5rem;
        gap: 0;
        border-bottom: 2px solid var(--border);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        z-index: 998;
    }

    .nav-links.active a {
        display: flex;
        align-items: center;
        padding: 1rem 0;
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--text);
        border-bottom: 1px solid var(--border);
        min-height: 44px;
    }

    .nav-links.active a:last-child {
        border-bottom: none;
    }

    /* Bouton hamburger visible */
    .mobile-menu-btn {
        display: flex;
    }

    /* Hamburger → X animation */
    .mobile-menu-btn span {
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero */
    .hero {
        padding: 120px 0 60px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    /* Sections */
    .features-section,
    .pricing-section,
    .testimonials-section,
    .cta-section,
    .contact-section {
        padding: 60px 0;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 360px;
        margin: 0 auto;
    }

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

    /* Contact */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.75rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer {
        padding: 60px 0 32px;
    }

    .logos-section {
        padding: 40px 0;
    }

    .logos-grid {
        gap: 28px;
    }
}

/* ---- 640px : Grand mobile ---- */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-buttons {
        gap: 10px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 24px;
    }

    .pricing-card {
        padding: 28px 24px;
    }

    .footer-grid {
        gap: 24px;
    }

    .hero-stats {
        gap: 16px;
    }
}

/* ---- 480px : Mobile standard ---- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        height: 64px;
    }

    .nav-links.active {
        top: 64px;
    }

    .hero {
        padding: 100px 0 48px;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

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

    .stat-number {
        font-size: 1.6rem;
    }

    .features-section,
    .pricing-section,
    .testimonials-section,
    .cta-section,
    .contact-section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .logos-grid {
        gap: 20px;
    }

    .logo-item {
        font-size: 0.95rem;
    }
}

/* ---- 380px : Très petit mobile ---- */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .btn-large {
        font-size: 0.95rem;
        padding: 14px 20px;
    }

    .pricing-card {
        padding: 24px 16px;
    }
}
