/* Critical render path CSS */
:root {
    --primary-color: #536de6;
    --secondary-color: #3b4cb8;
    --accent-color: #6b7ef6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2937;
    margin: 0;
    padding: 0;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

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

@media screen and (max-width: 768px) {
    #top-book-demo-button {
        display: none;
    }
}

/* Non-critical CSS moved below */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.narrow-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Font fallback - using system fonts for better performance */

/* Logo visibility control */
@media screen and (min-width: 1024px) {
    /* Show full logo in nav, hide small logo */
    nav .logo-full {
        display: block !important;
    }
    nav .logo-small {
        display: none !important;
    }
}
@media screen and (max-width: 1023px) {
    /* Hide full logo in nav, show small logo */
    nav .logo-full {
        display: none !important;
    }
    nav .logo-small {
        display: block !important;
    }
}

/* Hero section layout - ensure side-by-side above 1024px */
@media screen and (min-width: 1024px) {
    .hero-flex-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
    }
    .hero-flex-container > div:first-child {
        width: 50% !important;
        flex-shrink: 0 !important;
        padding-right: 2rem !important;
    }
    .hero-flex-container > div:last-child {
        width: 50% !important;
        flex-shrink: 0 !important;
        align-self: center !important;
        margin-top: 0 !important;
    }
}

@media screen and (max-width: 768px) {
    nav img {
        /* Target the logo specifically in the nav */
        height: 32px; /* Reduce height on smaller screens */
        width: auto;
    }

    .flex.items-center.space-x-4 a {
        /* Adjust spacing for buttons on the right */
        font-size: 14px; /* Optionally shrink the font size for "Se connecter" */
    }

    #top-title {
        font-size: 1.75rem; /* Reduce the font size for mobile screens */
        line-height: 2rem; /* Adjust the line height */
    }
}

#cookie-banner {
    transform: translateY(1rem);
    opacity: 0;
}
#cookie-banner.translate-y-0 {
    transform: translateY(0);
    opacity: 1;
}
