/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0b1120;
    color: #ffffff;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    height: 100vh;
    width: 100vw;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* ===== VARIABLES ===== */
:root {
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
    --primary: #1c4be6;
    --primary-glow: rgba(129, 79, 255, 0.35);
    --secondary: #a78bfa;
    --text-muted: #94a3b8;
    --radius-card: 28px;
    --radius-pill: 60px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --toast-success: #10b981;
    --toast-error: #ef4444;
    --toast-warning: #f59e0b;
}

/* ===== BUTTON ===== */

button{
    font-family: 'Poppins';
}

/* ===== APP CONTAINER ===== */
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 50%, #14223b 0%, #0b1120 70%);
}

/* ===== SECTIONS (swipe horizontal) ===== */
.sections-container {
    flex: 1;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 12px;
    height: 100%;
}

.sections-container::-webkit-scrollbar {
    display: none;
}

.section {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 30px 28px 110px;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

/* Centrage pour la section home */
.section[data-section="home"] {
    justify-content: center;
}

/* ===== BOTTOM NAV (style iOS flottant) ===== */
.bottom-nav {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 26, 40, 0.78);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: 44px;
    padding: 6px 52px;
    display: flex;
    gap: 2px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    width: auto;
    max-width: 92vw;
    justify-content: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    color: #6b7a93;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.01em;
    gap: 2px;
    white-space: nowrap;
}

.nav-item i {
    font-size: 1.4rem;
    transition: transform 0.2s;
}

.nav-item span {
    font-size: 0.8rem;
    opacity: 0.7;
}

.nav-item.active {
    color: #fff;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 6px;
    animation: slideIn 0.25s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 20px;
        opacity: 1;
    }
}

.nav-item:hover:not(.active) {
    color: #cbd5e1;
    transform: translateY(-1px);
}

/* ===== LOGO & HERO ===== */
.logo-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    animation: fadeUp 0.7s ease;
}

.logo-icon {
    padding: 0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img{
    margin: 0;
    width: 150px;
}

.logo-badge {
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 16px;
    animation: fadeUp 0.7s ease 0.05s both;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 560px;
    margin-bottom: 32px;
    animation: fadeUp 0.7s ease 0.1s both;
    line-height: 1.6;
}

/* ===== DOC TYPES ===== */
.doc-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    animation: fadeUp 0.7s ease 0.15s both;
}

.doc-type-badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 22px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #d1d9e6;
    transition: all 0.25s;
    backdrop-filter: blur(4px);
    cursor: default;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-type-badge i {
    font-size: 0.9rem;
}

.doc-type-badge:hover {
    background: rgba(79, 124, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== BUTTONS ===== */
.cta-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.7s ease 0.2s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #5b6ef7);
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 32px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 36px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ===== FEATURES ===== */

.section.features .section-title{

    position: sticky;
    width: 100%;
    top: -20px;
    padding: 10px;
    z-index: 2;
    background-color: #0601195f;
    backdrop-filter: blur(15px);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    margin-top: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 600px;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 20px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-card);
    padding: 28px 22px;
    text-align: center;
    transition: all 0.35s ease;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(79, 124, 255, 0.25);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon i {
    font-size: 26px;
    color: #fff;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== ABOUT SECTION ===== */
.footer-links {
    display: flex;
    gap: 28px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #6b7a93;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

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

.about-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 400px;
    text-align: center;
    line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeTo {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ===== TOAST NOTIFICATION ===== */
#toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    max-width: 90vw;
}

.toast {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeTo 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;

    justify-content: center;
}

.toast.success {
    background: var(--toast-success);
}

.toast.error {
    background: var(--toast-error);
}

.toast.warning {
    background: var(--toast-warning);
}

.toast i {
    font-size: 1rem;
}

.toast.hiding {
    animation: slideOut 0.3s ease forwards;
}

/* ===== MODALS (glassmorphism) ===== */
.premium-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.premium-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: hsla(219, 100%, 4%, 0.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    background: #141f33;
    border-radius: 32px;
    width: 440px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
    animation: modalSlide 0.3s ease;
    padding: 10px 0 20px 0;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px 24px 14px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.modal-body {
    padding: 16px 24px 8px;
}

.input-group {
    margin-bottom: 14px;
}

.input-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.input-group input {
    width: 100%;
    padding: 20px 16px;
    background: #0a121f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    font-size: 0.9rem;
    color: #fff;
    transition: all 0.25s;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-group input.error {
    border-color: var(--toast-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.modal-footer {
    padding: 8px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.modal-footer .btn-content {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
}


.btn-modal {
    width: 90%;
    max-width: 250px;
    padding: 20px 28px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    flex: 1;
    text-align: center;
}

.btn-modal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}


.btn-modal-primary {
    background: linear-gradient(135deg, var(--primary), #5b6ef7);
    color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-modal-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-modal-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-modal-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-divider {
    text-align: center;
    position: relative;
    margin: 16px 0 12px;
    color: #4a5a72;
    font-size: 0.75rem;
}

.modal-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.modal-divider span {
    background: #141f33;
    padding: 0 14px;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn {

    flex: 1;
    padding: 20px 10px;
    background: #0a121f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;

}

.social-btn i{

    font-size: 1.3rem;

}

.social-btn:hover {
    background: #141f33;
    border-color: rgba(255, 255, 255, 0.12);
}

.switch-modal {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.switch-modal a {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

/* ===== SLIDER STEPS ===== */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    gap: 8px;
}

.step {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7a93;
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.step.completed {
    background: #10b981;
    color: #fff;
}

.step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.step-line.completed {
    background: #10b981;
}

.steps-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.steps-container {
    display: flex;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
    will-change: transform;

}

.step-content {
    flex: 0 0 100%;
    width: 100%;
    height: 50vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 8px 2px;
}

.sliding {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
}

/* Account types */
.account-types {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.account-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #0a121f;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-option:hover {
    background: #111d30;
    border-color: rgba(79, 124, 255, 0.2);
}

.account-option.selected {
    background: rgba(79, 124, 255, 0.12);
    border-color: var(--primary);
}

.account-option-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-option-icon i {
    font-size: 1.1rem;
    color: #fff;
}

.account-option-info {
    flex: 1;
}

.account-option-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.account-option-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.account-option-check {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.account-option-check i {
    font-size: 1.1rem;
    color: var(--primary);
}

.account-option.selected .account-option-check {
    opacity: 1;
}

#prevStepBtn {
    display: none;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .section {
        padding: 24px 20px 100px;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.7rem;
    }
    .section {
        padding: 16px 16px 90px;
    }
    .section[data-section="home"] {
        padding-top: 30px;
    }
    .bottom-nav {
        bottom: 20px;
        padding: 10px 58px;
        border-radius: 36px;
        gap: 10px;
    }
    .nav-item {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .nav-item span {
        display: none;
    }
    .nav-item i {
        font-size: 1.2rem;
    }
    .nav-item.active::after {
        bottom: 0;
        width: 16px;
        height: 2.5px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-bottom: 30px;
    }
    .feature-card {
        padding: 20px 16px;
    }
    .modal-container {
        border-radius: 24px;
        width: 100%;
        margin: 0 8px;
    }
    .modal-body {
        padding: 12px 16px 4px;
    }
    .modal-footer {
        padding: 6px 16px 16px;
    }
    .btn-modal {
        padding: 20px;
        font-size: 0.85rem;
    }
    .doc-type-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .cta-buttons.home{
        
        width: 80%;
        
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-outline {
        padding: 18px 12px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    .cta-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .logo-text {
        font-size: 2rem;
    }

    .logo-icon {
        padding: 0;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-icon img{
        width: 100px;
    }

    .section-title {
        font-size: 1.7rem;
    }
    .about-text {
        font-size: 0.8rem;
        padding: 0 8px;
    }
    .footer-links {
        gap: 16px;
    }
    .footer-links a {
        font-size: 0.7rem;
    }
    .step {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .step-line {
        width: 24px;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-description {
        font-size: 0.9rem;
    }
    /* ===== DOC TYPES ===== */
    .doc-types {
        display: flex;
    }
    .bottom-nav {
        padding: 10px 50px;
    }
    .nav-item {
        padding: 8px 10px;
    }

    .nav-item i {
        font-size: 1.7rem;
    }
    .modal-header h3{
        font-size: 1.1rem;
        color: #e9ecff;
    }
    .account-option-desc {
        display: none;
    }
}


/* ===== SCROLLBAR STYLING (webkit) ===== */
.section::-webkit-scrollbar {
    width: 3px;
}
.section::-webkit-scrollbar-track {
    background: transparent;
}
.section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
        
