﻿/* Global Styles */
:root {
    --color-black-deep: #0F0F0F;
    --color-turquoise: #00FFC2;
    --color-white: #FFFFFF;
    --color-grey-dark: #333333; /* Ajout pour bouton secondaire */
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-black-deep);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative; /* Needed for fixed elements positioning context */
}

/* Typography Helpers */
.poppins-regular {
    font-weight: 400;
}

.poppins-semibold {
    font-weight: 600;
}

.poppins-extrabold {
    font-weight: 800;
}

h1, h2, h3 {
    font-weight: 800; /* Extra Bold for Titles */
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-turquoise);
    text-decoration: underline;
}

    a:hover {
        opacity: 0.8;
    }

/* Visually Hidden for Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* WebGL Background Canvas */
#webgl-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Behind all content */
    display: block;
}

/* Scrollable Sheet - Transparent container over WebGL */
.scrollable-sheet {
    position: relative; /* Allows z-index to work correctly with fixed canvas */
    z-index: 1; /* Above the canvas */
    background: rgba(15, 15, 15, 0.6); /* Slightly transparent dark background */
    /* backdrop-filter: blur(5px); /* Optional: add a blur effect */
    padding: 20px; /* Add some padding around content */
}

/* Sections */
section {
    padding: 80px 20px; /* Default padding for sections */
    max-width: 1200px; /* Max width for content */
    margin: 0 auto; /* Center sections */
    position: relative; /* For fade-in animations */
}

    section#intro-animation {
        padding: 0; /* No padding, controlled by flex centering */
    }


/* 1. Introduction Animation */
#intro-animation {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background-color: var(--color-black-deep);
    transition: background-color 1.5s ease-in, opacity 1.5s ease-in;

    opacity: 1;
    pointer-events: all;
    z-index: 10;
    position: relative;
}

#intro-animation.bg-transparent {
    background-color: transparent;
}

#intro-animation.fade-out {
    opacity: 0;
    pointer-events: none;
    /* Ne PAS mettre z-index: -1 ici immédiatement */
}

/* Classe finale pour désactiver la section */
#intro-animation.hidden {
    display: none;
}



.intro-content {
    position: relative;
    /* Use absolute positioning for scanned text layers */
    width: 100%;
    max-width: 600px; /* Limit max width of animated text area */
    margin: 0 auto;
    display: flex; /* Use flex for positioning logo/text */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-container {
    position: absolute; /* Position relative to .intro-content */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 1;
    transition: all 0.8s ease-in-out;
}

.logo-text {
    font-size: 64px; /* Initial size */
    color: var(--color-turquoise);
    letter-spacing: 0.1em;
}

/* Animation Classes (triggered by JS) */
.logo-container.缩小 {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.5;
}

.logo-container.monte {
    transform: translate(-50%, -300%); /* Adjust value as needed */
    opacity: 0; /* Fade out logo after animation */
}

.scanned-logo, .scanned-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--color-white);
    opacity: 0; /* Hidden initially */
    transform: translateY(-50px); /* Initial position before scan reveals */
}

.scanned-logo {
    font-size: 64px; /* Should match initial logo size */
    color: var(--color-white);
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
}

.scanned-description {
    font-size: 24px;
    top: 60%; /* Position below logo */
    transform: translate(-50%, -50%);
    left: 50%;
}

/* Scanning Effect (using clip-path as a possible method) */
/* This is a simplified representation. A real scanning bar effect
   requires animating clip-path or mask-image properties dynamically. */
/* JS will add classes like .scanning-vertical or .scanning-horizontal
   and update clip-path values */

.scanning-area .scanning-vertical {
    opacity: 1;
    /* Example clip-path animation (requires JS to update the percentage value) */
    /* clip-path: inset(0 0 0 N/100); where N goes from 100 to 0 */
    animation: revealVertical 1s linear forwards; /* Placeholder animation */
}

@keyframes revealVertical {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

.scanning-area .scanning-horizontal {
    opacity: 1;
    /* Example clip-path animation (requires JS to update the percentage value) */
    /* clip-path: inset(M/100 0 0 0); where M goes from 100 to 0 */
    animation: revealHorizontal 1s linear forwards; /* Placeholder animation */
}

@keyframes revealHorizontal {
    0% {
        clip-path: inset(100% 0 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* After scan animation, elements should be visible and potentially move up */
.scanned-logo.revealed, .scanned-description.revealed {
    opacity: 1;
    transition: transform 0.8s ease-in-out; /* Add transition for movement */
}

    .scanned-logo.revealed.monte, .scanned-description.revealed.monte {
        transform: translateY(-200px); /* Move up */
    }


.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    animation: pulse 1.5s infinite ease-in-out;
    opacity: 0; /* Hidden initially, shown after intro animation */
    transition: opacity 0.5s ease;
}

    .scroll-indicator.visible {
        opacity: 1;
    }

@keyframes pulse {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.5;
    }

    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}


/* 2. Hero Section */
#hero {
    text-align: center;
    padding-top: 100px; /* More padding after the intro */
}

    #hero h1 {
        font-size: 3em;
        margin-bottom: 0.2em;
    }

    #hero p {
        font-size: 1.2em;
        max-width: 800px;
        margin: 0 auto 40px auto;
    }

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px; /* XL Rounded */
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--color-turquoise);
    color: var(--color-black-deep);
    box-shadow: 0 5px 15px rgba(0, 255, 194, 0.3);
}

    .btn-primary:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 255, 194, 0.5);
    }

.btn-secondary {
    background-color: var(--color-grey-dark);
    color: var(--color-turquoise);
    border: 2px solid var(--color-turquoise);
}

    .btn-secondary:hover {
        background-color: var(--color-turquoise);
        color: var(--color-black-deep);
        box-shadow: 0 5px 15px rgba(0, 255, 194, 0.3);
    }


/* 3. Proposition de valeur rapide */
#value-prop {
    opacity: 0; /* Initial state for fade-in */
    transform: translateY(50px); /* Initial state for slide-up */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    text-align: center;
}

    #value-prop.visible {
        opacity: 1;
        transform: translateY(0);
    }

.value-items {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap; /* Allow items to wrap */
}

.value-item {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, basis */
    max-width: 350px;
    text-align: center;
}

    .value-item .icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .value-item h3 {
        font-size: 1.3em;
        margin-bottom: 0.5em;
    }

/* 4. Mockup animé ou mini-démo */
#mockup-demo {
    text-align: center;
}

.mockup-container {
    margin-top: 40px;
    /* Style for the mockup area */
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent background */
    border: 1px solid var(--color-turquoise);
    border-radius: 10px;
    padding: 20px;
    min-height: 400px; /* Placeholder height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-mockup img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


/* 5. Call to Action Early Adopters */
#early-adopters {
    text-align: center;
}

#early-adopter-form {
    max-width: 600px;
    margin: 40px auto 20px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--color-grey-dark);
}

.form-group {
    text-align: left; /* Align labels/inputs */
}

#early-adopter-form input[type="text"],
#early-adopter-form input[type="email"],
#early-adopter-form select {
    width: 100%;
    padding: 12px;
    background-color: var(--color-black-deep);
    border: 1px solid var(--color-grey-dark);
    border-radius: 5px;
    color: var(--color-white);
    font-size: 1em;
}

#early-adopter-form input::placeholder,
#early-adopter-form select {
    color: #aaa; /* Lighter grey placeholder */
}

    #early-adopter-form select option {
        background-color: var(--color-black-deep); /* Style options background */
        color: var(--color-white);
    }


#early-adopter-form .btn-primary {
    margin-top: 10px;
    align-self: center; /* Center the submit button */
    width: auto; /* Adjust button width based on content */
}

#thank-you-message {
    margin-top: 20px;
    font-size: 1.2em;
    color: var(--color-turquoise);
    background-color: rgba(0, 255, 194, 0.1);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--color-turquoise);
}

.hidden {
    display: none;
}


/* 6. Mini-section Investisseurs */
#investors {
    text-align: center;
    padding-top: 40px; /* Less padding than other sections */
    padding-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
}

    #investors p {
        max-width: 700px;
        margin: 0 auto 20px auto;
    }

/* 7. Roadmap visuelle */
#roadmap {
    text-align: center;
}

.timeline {
    display: flex;
    align-items: center; /* Align dots and lines vertically */
    justify-content: space-between; /* Distribute items along the line */
    position: relative;
    margin-top: 60px;
    padding: 0 20px; /* Ensure spacing from section edge */
}

.timeline-line {
    flex-grow: 1; /* Make the line fill space */
    height: 2px;
    background-color: var(--color-turquoise);
    position: relative;
    z-index: 0;
    margin: 0 20px; /* Space between dots and line */
}

.milestone {
    position: relative;
    z-index: 1; /* Above the line */
    text-align: center;
    cursor: pointer;
    flex-shrink: 0; /* Prevent shrinking */
    width: 150px; /* Give milestones a base width */
}

.milestone-dot {
    width: 20px;
    height: 20px;
    background-color: var(--color-turquoise);
    border-radius: 50%;
    border: 3px solid var(--color-black-deep); /* Border to stand out from line */
    margin: 0 auto 15px auto;
    transition: all 0.3s ease;
}

.milestone:hover .milestone-dot {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--color-turquoise);
}

.milestone-content h3 {
    font-size: 1.1em;
    margin-bottom: 0.3em;
    color: var(--color-white);
}

.milestone-content p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* Optional: Highlight active milestone */
.milestone.active .milestone-dot {
    background-color: var(--color-white);
    border-color: var(--color-turquoise);
}


/* 8. Footer */
footer {
    background-color: rgba(0, 0, 0, 0.5); /* Slightly darker/more opaque than sheet */
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 1; /* Ensure it's above the canvas */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5em;
    color: var(--color-turquoise);
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 15px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9em;
}

    .footer-links a:hover {
        color: var(--color-turquoise);
        text-decoration: underline;
    }

.footer-copyright {
    margin-top: 20px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5em;
    }

    #hero p {
        font-size: 1em;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 80%; /* Make buttons wider on mobile */
        max-width: 300px;
    }

    .value-items {
        flex-direction: column;
        align-items: center;
    }

    .value-item {
        flex: none; /* Disable flex grow/shrink */
        width: 90%;
        max-width: 400px;
    }

    .timeline {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin-top: 40px;
    }

    .timeline-line {
        width: 2px; /* Vertical line on mobile */
        height: 80px; /* Height between milestones */
        margin: 20px 0;
        flex-grow: 0; /* Disable grow */
    }

    .milestone {
        width: 90%; /* Take up more width */
        text-align: left; /* Align text left */
        display: flex; /* Use flex to align dot and content */
        align-items: center;
        gap: 15px;
    }

    .milestone-dot {
        margin: 0; /* Remove auto margin */
        flex-shrink: 0; /* Prevent dot from shrinking */
    }

    .milestone-content {
        flex-grow: 1;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
    }

    .scanned-logo {
        font-size: 48px; /* Adjust font size for mobile */
    }

    .scanned-description {
        font-size: 18px;
    }

    .logo-text {
        font-size: 48px; /* Adjust font size for mobile */
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2em;
    }

    .scanned-logo {
        font-size: 36px;
    }

    .scanned-description {
        font-size: 16px;
    }

    .logo-text {
        font-size: 36px;
    }
}
