/* =====================================================
   SPEEDBLOK - Landing Page Styles
   Structure inspirée Avia Enfold
   ===================================================== */

/* CSS Variables */
:root {
    --primary: #E85D04;
    --primary-dark: #D45003;
    --primary-light: #F97316;
    --secondary: #1F2937;
    --secondary-light: #374151;
    --background: #FFFFFF;
    --section-alt-bg: #F8FAFC;
    --section-dark-bg: #1F2937;
    --foreground: #111827;
    --foreground-muted: #6B7280;
    --foreground-light: #F9FAFB;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* =====================================================
   AVIA ENFOLD STYLE GRID SYSTEM
   ===================================================== */

.av_container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex_row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.flex_column {
    padding: 0 15px;
    width: 100%;
}

.flex_column.av_one_full {
    width: 100%;
}

.flex_column.av_one_half {
    width: 50%;
}

.flex_column.av_one_third {
    width: 33.333%;
}

.flex_column.av_two_thirds {
    width: 66.666%;
}

.flex_column.av_one_fourth {
    width: 25%;
}

.flex_column.av_three_fourths {
    width: 75%;
}

.flex_column.first {
    /* First column marker */
}

.align-center {
    align-items: center;
}

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

/* =====================================================
   HEADER
   ===================================================== */

.main-header {
    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);
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--foreground);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(232, 93, 4, 0.08);
}

.nav-link.nav-cta {
    background: var(--primary);
    color: white;
    margin-left: 8px;
}

.nav-link.nav-cta:hover {
    background: var(--primary-dark);
    color: white;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.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-secondary {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
}

.btn-full {
    width: 100%;
}

/* =====================================================
   SECTION DIVIDERS
   ===================================================== */

.wave-divider,
.slant-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg,
.slant-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

.wave-divider.wave-inverted svg {
    transform: scaleX(-1);
}

.slant-divider.slant-up svg {
    transform: scaleY(1);
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero-section {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--background) 0%, var(--section-alt-bg) 100%);
    position: relative;
}
.hero-section.no-bottom {
    padding: 160px 0 0;
}
.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(232, 93, 4, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--foreground-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

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

.stat-label {
    font-size: 0.9rem;
    color: var(--foreground-muted);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* =====================================================
   SECTION STYLES
   ===================================================== */

section {
    position: relative;
}

.section-alt {
    background: var(--section-alt-bg);
}

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

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

.section-header.light .section-title,
.section-header.light .section-description {
    color: var(--foreground-light);
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(232, 93, 4, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
}

.section-title .highlight {
    color: var(--primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--foreground-muted);
    line-height: 1.7;
}

/* =====================================================
   SYSTEM SECTION
   ===================================================== */

.system-section {
    padding: 100px 0 80px;
}

.system-section.no-bottom {
    padding: 100px 0 0;
}
.system-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.system-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(232, 93, 4, 0.1);
    color: var(--primary);
    border-radius: var(--radius);
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 0.95rem;
    color: var(--foreground-muted);
    line-height: 1.6;
}

/* =====================================================
   ADVANTAGES SECTION
   ===================================================== */

.advantages-section {
    padding: 100px 0 80px;
}
.advantages-section.no-bottom {
    padding: 100px 0 0;
}
.advantages-grid {
    gap: 30px 0;
}

.advantage-card {
    padding: 32px;
    background: var(--section-alt-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: 100%;
    transition: var(--transition);
}

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

.advantage-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 16px;
}

.advantage-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 0.95rem;
    color: var(--foreground-muted);
    line-height: 1.6;
}

/* =====================================================
   PROCESS SECTION
   ===================================================== */

.process-section {
    padding: 100px 0 80px;
}
.process-section.no-bottom {
    padding: 100px 0 0;
}
.process-schema {
    text-align: center;
    margin-bottom: 60px;
}

.process-schema img {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
  	width: 100%;
}

.process-steps {
    margin-bottom: 60px;
}

.process-step {
    text-align: center;
    padding: 24px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground-light);
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.process-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* =====================================================
   REALISATIONS SECTION
   ===================================================== */

.realisations-section {
    padding: 100px 0 80px;
}
.realisations-section.no-bottom {
    padding: 100px 0 0;
}
.realisation-showcase {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 60px;
}

.realisation-showcase img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.realisation-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.realisation-info {
    color: white;
}

.realisation-type {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 12px;
}

.realisation-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.realisation-info p {
    font-size: 1rem;
    opacity: 0.9;
}

.realisation-stats {
    gap: 30px 0;
}

.stat-block {
    text-align: center;
    padding: 32px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 0.95rem;
    color: var(--foreground-muted);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */

.contact-section {
    padding: 100px 0;
}

.contact-info {
    padding-right: 40px;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--foreground-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--foreground);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* Contact Form */
.contact-form {
    background: var(--section-alt-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--foreground);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--foreground-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--foreground-muted);
    text-align: center;
}

/* =====================================================
   FOOTER
   ===================================================== */

.main-footer {
    background: var(--secondary);
    color: var(--foreground-light);
    padding: 80px 0 0;
}

.footer-content {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--foreground-light);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

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

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .flex_column.av_one_half,
    .flex_column.av_one_third,
    .flex_column.av_one_fourth {
        width: 50%;
    }

    .hero-title {
        font-size: 2.8rem;
    }

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

@media (max-width: 768px) {
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 16px;
        text-align: center;
        border-radius: 0;
    }

    .nav-link.nav-cta {
        margin: 16px 0 0;
        border-radius: var(--radius);
    }

    .burger-menu {
        display: flex;
    }

    /* Grid */
    .flex_column.av_one_half,
    .flex_column.av_one_third,
    .flex_column.av_two_thirds,
    .flex_column.av_one_fourth,
    .flex_column.av_three_fourths {
        width: 100%;
    }

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

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-item {
        flex: 1 1 calc(33% - 16px);
        text-align: center;
    }

    .hero-image {
        margin-top: 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

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

    .system-section,
    .advantages-section,
    .process-section,
    .realisations-section,
    .contact-section {
        padding: 80px 0 60px;
    }

    .system-image {
        margin-bottom: 40px;
    }

    /* Process */
    .process-steps .flex_column {
        width: 50%;
    }

    /* Realisations */
    .realisation-showcase img {
        height: 300px;
    }

    .realisation-stats .flex_column {
        width: 50%;
        margin-bottom: 20px;
    }

    /* Contact */
    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .contact-form {
        padding: 24px;
    }

    /* Footer */
    .footer-content .flex_column {
        margin-bottom: 40px;
    }

    .footer-brand {
        max-width: 100%;
    }
}

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

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

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

    .process-steps .flex_column {
        width: 100%;
    }

    .realisation-stats .flex_column {
        width: 100%;
    }

    .stat-block {
        padding: 24px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .advantage-card {
        padding: 24px;
    }

    .advantage-number {
        font-size: 2rem;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

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

.hero-content,
.hero-image,
.feature-item,
.advantage-card,
.process-step,
.stat-block {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animations */
.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

.advantage-card { opacity: 0; }
.advantages-grid .flex_column:nth-child(1) .advantage-card { animation-delay: 0.1s; }
.advantages-grid .flex_column:nth-child(2) .advantage-card { animation-delay: 0.15s; }
.advantages-grid .flex_column:nth-child(3) .advantage-card { animation-delay: 0.2s; }
.advantages-grid .flex_column:nth-child(4) .advantage-card { animation-delay: 0.25s; }
.advantages-grid .flex_column:nth-child(5) .advantage-card { animation-delay: 0.3s; }
.advantages-grid .flex_column:nth-child(6) .advantage-card { animation-delay: 0.35s; }

.process-step { opacity: 0; }
.process-steps .flex_column:nth-child(1) .process-step { animation-delay: 0.1s; }
.process-steps .flex_column:nth-child(2) .process-step { animation-delay: 0.2s; }
.process-steps .flex_column:nth-child(3) .process-step { animation-delay: 0.3s; }
.process-steps .flex_column:nth-child(4) .process-step { animation-delay: 0.4s; }

/* Intersection Observer will trigger these */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
