:root {
    --bg-light: #f5f5f5;
    --text-dark: #555555;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --border-radius-pill: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    min-height: 150vh; /* Permet de scroller pour l'animation même sans contenu supplémentaire */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Halftone / Noise Overlay mimicking the screenshot texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

/* Base Halftone dot pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: radial-gradient(#d0d0d0 1px, transparent 1px);
    background-size: 3px 3px;
}

/* Navigation */
.navbar {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 24px 12px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    pointer-events: none;
}

.nav-container {
    /* Liquid Glassmorphism */
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    
    width: 100%;
    max-width: 1000px;
    border-radius: var(--border-radius-pill);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 8px 32px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    pointer-events: auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-dark);
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.7;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.6;
}

/* Premium Language Switcher Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 100px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.lang-btn:hover {
    background: #ffffff;
    border-color: rgba(0,0,0,0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.globe-icon {
    opacity: 0.7;
}

.chevron-icon {
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    min-width: 140px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 8px;
    z-index: 200;
}

/* Invisible bridge so mouse doesn't lose hover between button and menu */
.lang-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown:hover .chevron-icon {
    transform: rotate(180deg);
}

.lang-option {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    text-align: left;
    display: block;
}

.lang-option:hover {
    background: #f5f5f5;
    color: #000;
}

.lang-option.active {
    font-weight: 700;
    color: #000;
    background: #f0f0f0;
}

/* Buttons */
.btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-pill);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-dark {
    background-color: #000000;
    color: #ffffff;
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.nav-btn {
    padding: 12px 24px;
    font-size: 15px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    min-height: 80vh;
    padding-top: 0px;
    position: relative;
    z-index: 10;
    pointer-events: none; /* Allows interacting with 3D model through empty space */
}

.hero > * {
    pointer-events: none; /* Keeps text from blocking 3D interaction */
}

.hero a, .btn {
    pointer-events: auto; /* Buttons and links stay clickable */
}

.hero-text {
    z-index: 20;
    margin-bottom: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 84px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: #4d4d4d;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 500;
    max-width: 650px;
    margin: 0 auto;
    color: #666666;
}

/* 3D Spline Background */
.spline-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.spline-background iframe {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
}

/* Mask to hide the Spline logo perfectly */
.hide-spline-logo {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 180px;
    height: 50px;
    background-color: var(--bg-light); /* Blends perfectly with the page and noise overlay */
    z-index: 5;
    pointer-events: none; /* Let clicks pass if needed, though there's nothing there */
    border-radius: 8px;
}

.hero-cta {
    position: relative;
    z-index: 20;
    margin-top: 40px;
    margin-bottom: 70px;
}

/* Trusted Section */
.trusted-section {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    z-index: 100;
    pointer-events: none;
}

.trusted-section > * {
    pointer-events: none;
}

.trusted-section .industry-item, .trusted-section a {
    pointer-events: auto; /* Keep industries hoverable */
}

.trusted-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.2px;
}

.industries-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.industry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: default;
}

.industry-item:hover {
    transform: translateY(-4px);
    color: #666;
}

.industry-label {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* ==================== PAGE System ==================== */
.page {
    display: none;
    width: 100%;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page.active {
    display: flex;
    opacity: 1;
}

.nav-active {
    opacity: 0.5 !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==================== Content Pages (Solutions & Pricing) ==================== */
.content-page {
    width: 100%;
    max-width: 800px;
    padding: 60px 24px 120px 24px;
    position: relative;
    z-index: 10;
}

.content-hero {
    text-align: center;
    margin-bottom: 60px;
}

.content-hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: #3a3a3a;
}

.content-hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

.content-body {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.content-section {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}

.content-section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #3a3a3a;
    letter-spacing: -0.5px;
}

.content-section-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.content-section-text strong {
    color: #333;
    font-weight: 700;
}

.content-cta-section {
    text-align: center;
    background: #000;
    border: none;
    padding: 60px 40px;
}

.content-cta-section .content-section-title {
    color: #fff;
}

.content-cta-section .btn-dark {
    background: #fff;
    color: #000;
    margin-top: 20px;
}

.content-cta-section .btn-dark:hover {
    background: #f0f0f0;
}

/* ==================== Pricing ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 0 24px 120px;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.pricing-card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.pricing-card-featured {
    background: #000;
    border: 1px solid #222;
    color: #fff;
}

.pricing-card-featured .plan-name,
.pricing-card-featured .plan-desc,
.pricing-card-featured .plan-features li {
    color: rgba(255,255,255,0.85);
}

.pricing-card-featured .price-amount {
    color: #fff !important;
}

.pricing-card-featured .price-period {
    color: rgba(255,255,255,0.5) !important;
}

.pricing-card-featured .btn-dark {
    background: #fff;
    color: #000;
}

.pricing-card-featured .btn-dark:hover {
    background: #e8e8e8;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #fff;
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pricing-card-header {
    margin-bottom: 28px;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #3a3a3a;
}

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

.price-amount {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.price-period {
    font-size: 16px;
    color: #888;
}

.plan-desc {
    font-size: 15px;
    color: #777;
    line-height: 1.4;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan-features li {
    font-size: 15px;
    color: #555;
    padding-left: 24px;
    position: relative;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #000;
}

.pricing-card-featured .plan-features li::before {
    color: #fff;
}

.btn-plan {
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

/* ==================== Demo Form ==================== */
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    color: #333;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(0,0,0,0.3);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

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

.form-group select {
    cursor: pointer;
}

.btn-submit {
    margin-top: 8px;
    width: 100%;
    border: none;
}

/* Success State */
.form-success {
    text-align: center;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.form-success h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.form-success p {
    font-size: 16px;
    color: #666;
    margin-bottom: 28px;
}

/* ==================== Padlock Button ==================== */
.padlock-btn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 999;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.3;
    color: #888;
    transition: opacity 0.3s ease;
}

.padlock-btn:hover {
    opacity: 0.7;
}

/* Padlock Modal */
.padlock-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.padlock-modal.visible {
    opacity: 1;
    visibility: visible;
}

.padlock-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 260px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.padlock-modal-content p {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.padlock-modal-content input {
    font-family: var(--font-body);
    font-size: 24px;
    text-align: center;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    outline: none;
    letter-spacing: 6px;
    transition: border-color 0.3s;
}

.padlock-modal-content input:focus {
    border-color: #000;
}

/* ==================== Admin Panel ==================== */
.admin-submissions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-empty {
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 40px 0;
}

.admin-card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-card-header strong {
    font-size: 16px;
    color: #222;
}

.admin-date {
    font-size: 13px;
    color: #999;
}

.admin-card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-card-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.admin-card-body strong {
    color: #333;
}

/* ==================== Responsive ==================== */
@media (max-width: 1100px) {
    .industries-grid {
        justify-content: center;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .nav-container {
        padding: 12px 24px;
        max-width: calc(100% - 48px);
    }
    
    .hero-title {
        font-size: 56px;
        padding: 0 20px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        padding: 0 24px;
    }

    .content-hero-title {
        font-size: 40px;
    }

    .content-section {
        padding: 28px;
    }

    .content-section-title {
        font-size: 26px;
    }

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

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        border-radius: 24px;
        max-width: 100%;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 42px;
        line-height: 1.1;
    }
    
    .trusted-section {
        bottom: 10px;
    }
    
    .trusted-title {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .industries-grid {
        justify-content: flex-start;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100vw;
        padding: 0 20px 10px 20px;
        gap: 24px;
    }
    
    .industry-label {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .industry-icon {
        width: 22px;
        height: 22px;
    }

    .content-hero-title {
        font-size: 32px;
    }

    .content-hero-subtitle {
        font-size: 16px;
    }

    .content-section-title {
        font-size: 22px;
    }

    .content-section-text {
        font-size: 15px;
    }

    .pricing-grid {
        padding: 0 16px 100px;
    }
    
    .pricing-card {
        padding: 28px 20px;
    }

    .price-amount {
        font-size: 36px;
    }
}
