/* --- Mise en page globale (spécifique à l'accueil) --- */
section {
    padding: 120px 24px;
    text-align: center;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* --- SECTION 1 : HÉRO --- */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

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

.hero-intro {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary-indigo);
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(42px, 2.5vw + 1rem, 68px);
    font-weight: 900;
    color: var(--text-main);
    margin: 0;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 0.25vw + 0.8rem, 1.2rem);
    line-height: 1.6;
    max-width: 750px;
    margin: 0;
}

.hero-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.input-field { /* Spécificité pour le formulaire hero */
    width: 280px;
}

/* --- SLIDER DE LOGOS --- */
.logo-slider {
    height: clamp(50px, 8vw, 70px);
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    position: relative;
    margin-top: 4rem;
}

.logo-track {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    position: relative;
}

.logo-track li {
    height: 100%;
    width: clamp(150px, 20vw, 220px);
    position: absolute;
    left: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: autoRun 20s linear infinite;
    animation-delay: calc((20s / 7) * (var(--position) - 1) - 20s);
}

.logo-track li img {
    max-height: clamp(30px, 5vw, 40px);
    max-width: clamp(120px, 18vw, 180px);
    object-fit: contain;
    border-radius: 8px;
}

@keyframes autoRun {
    from { left: 100%; }
    to { left: -220px; }
}

/* --- Titres de Section --- */
.section-title {
    font-family: var(--font-title);
    font-size: clamp(32px, 2vw + 1rem, 50px);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

/* --- SECTION 2 : BÉNÉFICES --- */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    max-width: 900px;
    margin: 4rem auto 0;
}

.feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    text-align: left;
}

.feature-item-reverse {
    grid-template-columns: 1fr auto;
}

.feature-item-reverse .feature-text {
    order: -1;
}

.feature-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background-color: var(--bg-main);
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
}

.feature-icon img {
    width: 58px;
    height: 58px;
}

.feature-text h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
}

.feature-text p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --- SECTION 3 : COMMENT ÇA MARCHE ? --- */
#how-it-works .section-title {
    margin-bottom: 4rem;
}

.stepper-box {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    box-sizing: border-box;
}

.stepper-step {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.stepper-step:last-child { margin-bottom: 0; }

.stepper-line {
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -2rem;
    width: 2px;
    background-color: #e2e8f0;
    z-index: 1;
}

.stepper-step:last-child .stepper-line { display: none; }

.stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    z-index: 2;
    font-family: var(--font-body);
    font-weight: 600;
    flex-shrink: 0;
}

.stepper-completed .stepper-circle { background-color: #0f172a; color: white; }
.stepper-title { font-weight: 600; margin-bottom: 0.25rem; font-family: var(--font-body); color: #0f172a;}
.stepper-status {
    font-size: 0.8125rem;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 0.25rem;
    font-family: var(--font-body);
    background-color: #dcfce7; color: #166534;
}
.stepper-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* --- SECTION 4: PREVIEW --- */
.visual-placeholder {
    border: 1px dashed var(--border-light);
    border-radius: 1rem;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
}

/* --- SECTION 5 : FINAL CTA --- */
.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-main);
    border-radius: 24px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    border: 1px solid var(--border-light);
}

.instant-access-text {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 0;
}

.reassurance-text {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* --- SECTION RESPONSIVE --- */
@media (max-width: 768px) {
    section { padding: 5rem 1.25rem; }
    
    #hero {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 5rem;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .hero-form { flex-direction: column; align-items: stretch; width: 90%; }
    .input-field { width: 100%; }
    
    .feature-item, .feature-item-reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .feature-icon-wrapper { margin: 0 auto; }
    .feature-item-reverse .feature-text { order: 0; }

    .cta-box {
        padding: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stepper-box { padding: 1.5rem; }
    .hero-form {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
        box-sizing: border-box;
    }
    .cta-box {
        padding: 2rem 1.5rem;
    }
}