/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

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

.bg-light {
    background-color: var(--bg-light);
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

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

.btn-outline:hover {
    border-color: var(--text-dark);
    background-color: var(--bg-light);
}

.btn-block {
    width: 100%;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

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

.navbar .btn-outline {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding: 10rem 0 6rem;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.02), transparent 40%);
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

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

.action-note {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

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

/* Hero Dashboard Mockup Stack */
.mockup-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    perspective: 1200px; /* Perspective globale pour la scène 3D */
    transform-style: preserve-3d;
    transform: translate(3rem, -4rem); /* Déplace uniquement les images vers la droite et le haut */
}

.mockup-window {
    position: absolute;
    width: 84%; /* Agrandissement pour une meilleure visibilité */
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); /* Effet fluide et léger rebond */
}

.mockup-back {
    bottom: -8%;
    right: -8%;
    z-index: 1;
    transform: rotateY(-10deg) rotateX(4deg) translateZ(-80px);
    opacity: 0.95;
}

.mockup-front {
    top: -6%; /* Remonté pour s'aligner avec la headline */
    left: 0%;
    z-index: 2;
    transform: rotateY(-10deg) rotateX(4deg) translateZ(40px);
}

.mockup-stack:hover .mockup-back {
    transform: rotateY(0deg) rotateX(0deg) translateZ(0) translate(15%, 15%);
    opacity: 1;
    z-index: 1;
}

.mockup-stack:hover .mockup-front {
    transform: rotateY(0deg) rotateX(0deg) translateZ(0) translate(-3%, -3%);
    z-index: 2;
}

.mockup-back:hover {
    z-index: 3 !important;
    opacity: 1 !important;
}

.mockup-front:hover {
    z-index: 3 !important;
}

.mockup-header {
    background-color: var(--bg-light);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 1.5rem;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #E2E8F0;
}

.dots span:nth-child(1) { background-color: #FF5F56; }
.dots span:nth-child(2) { background-color: #FFBD2E; }
.dots span:nth-child(3) { background-color: #27C93F; }

.mockup-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.mockup-body {
    display: flex;
    height: 400px;
}

.mockup-sidebar {
    width: 60px;
    background-color: #FAFAFA;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    gap: 1.5rem;
}

.nav-item {
    color: var(--text-muted);
    font-size: 1.25rem;
    opacity: 0.5;
}

.nav-item.active {
    color: var(--primary);
    opacity: 1;
}

.mockup-content {
    flex: 1;
    padding: 1.5rem;
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mockup-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.m-card {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.m-card.warning { border-color: var(--warning); }
.m-card.success { border-color: var(--success); }

.m-card-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.m-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mockup-list {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.m-list-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.875rem;
}

.m-list-item {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.m-item-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.m-item-text strong {
    font-size: 0.875rem;
    color: var(--text-dark);
}

.m-item-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.m-item-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 100px;
    font-weight: 500;
}

/* =========================================
   SECTIONS GENERAL
   ========================================= */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* =========================================
   PROBLEMS SECTION
   ========================================= */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.problem-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-box.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* =========================================
   SOLUTION SECTION
   ========================================= */
.features-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    color: var(--text-dark);
}

/* Mobile Mockup */
.mobile-mockup-container {
    display: flex;
    justify-content: center;
}

.mobile-mockup {
    width: 300px;
    height: 600px;
    background-color: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.mobile-screen {
    background-color: #F8FAFC;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    padding: 3rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.m-header {
    font-size: 1.25rem;
    font-weight: 700;
}

.m-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.m-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.m-card-mobile {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.m-card-mobile.active {
    border: 2px solid var(--primary);
    flex-direction: column;
}

.m-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 45px;
}

.m-details {
    display: flex;
    flex-direction: column;
}

.m-details strong {
    font-size: 0.875rem;
    color: var(--text-dark);
}

.m-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.m-btn-mobile {
    width: 100%;
    padding: 0.5rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Kanban Mockup */
.kanban-mockup {
    display: flex;
    gap: 1rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.02);
}

.kanban-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.k-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.k-title span {
    background: #E2E8F0;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
}

.k-card {
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    border-left: 3px solid transparent;
}

.k-card.highlight { border-left-color: var(--warning); }
.k-card.success { border-left-color: var(--success); }

/* =========================================
   HOW IT WORKS SECTION
   ========================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    text-align: center;
    z-index: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* =========================================
   BEFORE / AFTER SECTION
   ========================================= */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.comparison-side {
    padding: 3rem;
}

.comparison-side.before {
    background-color: #FAFAFA;
}

.comparison-side.after {
    background-color: #FFFFFF;
    border-left: 1px solid var(--border-color);
}

.comparison-header {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.before .comparison-header { color: var(--text-muted); }
.after .comparison-header { color: var(--primary); }

.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comparison-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
}

.before .comparison-list li i { color: var(--danger); }
.after .comparison-list li i { color: var(--success); }

/* =========================================
   AUTOMATIONS SECTION
   ========================================= */
.auto-box {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
    color: white;
}

.auto-box h2 {
    color: white;
}

.auto-box p {
    color: #94A3B8;
}

.badge-subtle {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.auto-features {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auto-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.auto-item i {
    font-size: 1.5rem;
    color: #38BDF8;
    margin-top: 0.2rem;
}

.auto-item strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.auto-item span {
    color: #94A3B8;
    font-size: 0.875rem;
}

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

.sparkle-icon {
    width: 120px;
    height: 120px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #38BDF8;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(56, 189, 248, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.auto-benefits-band {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.benefit-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.benefit-tag i {
    font-size: 1.5rem;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    background-color: var(--bg-light);
}

.cta-box {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.contact-form {
    margin-top: 2rem;
    text-align: left;
}

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

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

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.privacy-note {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: white;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

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

.footer-content .logo {
    justify-content: center;
}

.footer-content p {
    font-size: 0.875rem;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero-container, .feature-row, .auto-box {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-actions {
        align-items: center;
    }
    
    .feature-list {
        align-items: center;
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
    }
    
    .comparison-side.after {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .auto-box {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .comparison-side {
        padding: 2rem 1.5rem;
    }
    
    .feature-row.reverse {
        direction: ltr;
    }
}
