/* ===== VARIABLES GLOBALES ===== */
:root {
    --bg-dark: #050814;
    --bg-glass: rgba(5, 8, 20, 0.6);
    --bg-glass-light: rgba(15, 17, 26, 0.4);
    --accent-start: #8B5CF6;
    --accent-end: #3B82F6;
    --accent: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    --text: #e0e0ff;
    --text-light: #a0a0ff;
    --border: 1px solid rgba(139, 92, 246, 0.3);
    --shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
    --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.3);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.4, 1);
    --font-main: 'Poppins', 'Inter', sans-serif;
    --bg-dark: #1a1f36;
    --bg-card: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    --text-light: #e0e7ff;
    --text-dark: #c3cadc;
    --primary: #8b5cf6;
    --blue: #3b82f6;
    --green: #10b981;
    --violet: #8b5cf6;
    --orange: #f59e0b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    margin: 0 0 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin: 0 0 15px;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== PRELOADER ===== */
/* Preloader personnalisé */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.glow-large {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.8) 0%, transparent 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite alternate;
}

.logo-in-glow {
    width: 80px;
    height: auto;
    z-index: 2;
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.8;
    }
    to {
        transform: scale(1.2);
        opacity: 1;
    }
}


.loader {
    text-align: center;
}

.glow {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--accent-start) 0%, transparent 70%);
    animation: pulse 2s infinite alternate;
}

.fineas-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-start);
}

/* ===== HEADER FLOTTANT ===== */
.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-bottom: var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.floating-header .logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 5px var(--accent-start);
}

.floating-header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.floating-header nav a {
    padding: 8px 15px;
    border-radius: 6px;
    transition: var(--transition);
}

.floating-header nav a:hover {
    background: var(--bg-glass-light);
}

/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 10% 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1c2e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: pulse 8s infinite alternate;
    z-index: -1;
}

.hero-content {
    max-width: 50%;
    z-index: 2;
}

.hero-badge {
    background: var(--bg-glass-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-bottom: 20px;
    display: inline-block;
    border: var(--border);
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero-content span {
    font-weight: 800;
    display: block;
    margin-top: 10px;
}

.hero-trust {
    margin-top: 30px;
    font-size: 0.9em;
    color: var(--text-light);
}

.hero-cta {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}
/* Mockup 3D futuriste */
.mockup-dashboard {
    background: var(--bg-glass);
    border-radius: var(--radius);
    padding: 20px;
    border: var(--border);
    box-shadow: var(--shadow);
    max-width: 450px;
    margin: 0 auto;
    transform: perspective(1000px) rotateX(10deg) rotateY(8deg);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.4, 1);
    position: relative;
    overflow: hidden;
}

.mockup-dashboard:hover {
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.5),
    inset 0 0 25px rgba(139, 92, 246, 0.2),
    0 0 0 2px rgba(139, 92, 246, 0.3);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
}

.mockup-dashboard::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    z-index: -1;
    transition: transform 0.5s ease;
}

.mockup-dashboard:hover::before {
    transform: rotate(30deg) scale(1.2);
    opacity: 0.8;
}

.mockup-header {
    text-align: center;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 600;
}

.mockup-balance {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.mockup-chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}


/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary, .btn-big {
    padding: 14px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--accent-start);
    color: var(--accent-start);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
}

.btn-big {
    display: inline-block;
    margin-top: 20px;
    padding: 18px 35px;
    font-size: 1.2em;
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow);
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 10%;
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== STEPS ===== */
.steps {
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
    gap: 20px;
}

.step {
    flex: 1;
    padding: 30px 20px;
    border-radius: var(--radius);
    background: var(--bg-glass-light);
    text-align: center;
    border: var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.step-icon {
    font-size: 2em;
    margin-bottom: 15px;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.features .card {
    background: var(--bg-glass-light);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: var(--border);
    transition: var(--transition);
}

.features .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    font-size: 2em;
    margin-bottom: 15px;
}

/* ===== AI SECTION ===== */
.ai {
    text-align: center;
    background: linear-gradient(135deg, #1a1c2e, var(--bg-dark));
    border-radius: var(--radius);
    margin: 0 5%;
    padding: 80px 20px;
    border: var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.ai-badge {
    background: var(--bg-glass-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-bottom: 20px;
    display: inline-block;
    border: var(--border);
}

.ai h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.ai p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.ai-visual {
    margin-top: 40px;
}

.hologram {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    animation: rotate 8s linear infinite;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial {
    background: var(--bg-glass-light);
    border-radius: var(--radius);
    padding: 30px;
    font-style: italic;
    box-shadow: var(--shadow);
    border: var(--border);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.testimonial-avatar {
    font-size: 2em;
    margin-bottom: 15px;
}

.testimonial span {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    font-style: normal;
    color: var(--accent-start);
}

/* ===== FINAL CTA ===== */
.cta-final {
    text-align: center;
    background: var(--accent);
    padding: 100px 20px;
    color: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: 0 5%;
    box-shadow: var(--shadow-glow);
}

.cta-final h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-final p {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    font-size: 2.5em;
    font-weight: 700;
    display: block;
}

.countdown-label {
    font-size: 0.9em;
    opacity: 0.8;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-dark);
    padding: 40px 5% 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-top: var(--border);
    padding-top: 20px;
}

.footer-links, .footer-social {
    display: flex;
    gap: 20px;
}

.footer-links a, .footer-social a {
    padding: 8px 15px;
    border-radius: 6px;
    transition: var(--transition);
}

.footer-links a:hover, .footer-social a:hover {
    background: var(--bg-glass-light);
}


/* Conteneur général */
.schema-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Schéma d'équilibre */
.balance-schema {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin: 30px 0;
}

/* Cartes "Comptes" et "Cases" */
.accounts-card, .cases-card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 22px;
    min-width: 300px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.accounts-card:hover, .cases-card:hover {
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
    transform: translateY(-3px);
}

.accounts-card h3, .cases-card h3 {
    color: white;
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 8px;
    position: relative;
    display: inline-block;
}

.accounts-card h3::after, .cases-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* Catégories */
.category {
    margin-bottom: 16px;
}

.cat-title {
    font-size: 0.75em;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    opacity: 0.9;
}

.cat-title.blue { color: var(--blue); }
.cat-title.green { color: var(--green); }
.cat-title.violet { color: var(--violet); }
.cat-title.orange { color: var(--orange); }

/* Items (comptes/cases) */
.item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-size: 0.9em;
}

.item:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: var(--border-glow);
}

.item span:nth-child(2) {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.85em;
}

/* Total */
.total {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: right;
    font-size: 0.95em;
    color: var(--text-light);
}

.total strong {
    color: var(--primary);
    font-weight: 600;
}

/* Signe "=" */
.equal-sign {
    font-size: 2.8em;
    font-weight: 300;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% { text-shadow: 0 0 4px rgba(139, 92, 246, 0.3); }
    100% { text-shadow: 0 0 8px rgba(139, 92, 246, 0.5); }
}

/* Légende */
.schema-caption {
    color: var(--text-dark);
    font-style: italic;
    margin-top: 20px;
    font-size: 0.85em;
    opacity: 0.8;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 850px) {
    .balance-schema {
        flex-direction: column;
        gap: 40px;
    }

    .accounts-card, .cases-card {
        min-width: auto;
        width: 100%;
    }
}


/* Header avec texte dégradé */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 30px;
}

.logo-text {
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(90deg, #8B5CF6, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

/* CSS intégré pour les ajustements spécifiques (inchangé) */
.hero-content h1 { font-size: 3.2em; line-height: 1.2; }
.hero-content p { font-size: 1.2em; margin-bottom: 30px; }
.comparison-table { width: 100%; margin: 40px 0; border-collapse: collapse; background: var(--bg-glass-light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.comparison-table th, .comparison-table td { padding: 15px; text-align: center; border-bottom: var(--border); }
.comparison-table th { background: rgba(139, 92, 246, 0.2); font-weight: 600; }
.comparison-table tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.mockup-dashboard { background: var(--bg-glass); border-radius: var(--radius); padding: 20px; border: var(--border); box-shadow: var(--shadow); max-width: 500px; margin: 0 auto; }
.feature-icon { font-size: 2em; margin-bottom: 15px; color: var(--accent-start); }


/* ===== ANIMATIONS ===== */
@keyframes pulse {
    from { transform: scale(1); opacity: 0.6; }
    to { transform: scale(1.3); opacity: 0.9; }
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateX(8deg) rotateY(-6deg) translateY(0); }
    50% { transform: perspective(1000px) rotateX(8deg) rotateY(-6deg) translateY(-10px); }
}

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

/* ===== RESPONSIVE ===== */
/* ===== Responsive Mobile (<768px) ===== */
@media (max-width: 768px) {

    /* Header */
    .floating-header {
        padding: 12px 5%;
    }
    .floating-header .logo-text {
        font-size: 1.2em;
    }
    .floating-header nav a {
        padding: 5px 10px;
        font-size: .9rem;
        border-radius: 6px;
        transition: var(--transition);
    }

    .comparison{
        display: none;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 5% 40px;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .hero-content h1 {
        font-size: 2em;
        line-height: 1.3;
    }
    .hero-content p {
        font-size: 1em;
    }
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    .hero-visual {
        max-width: 100%;
        transform: none;
    }
    .mockup-dashboard {
        transform: none;
        max-width: 100%;
    }
    .mockup-chart-container canvas {
        height: 120px !important;
    }

    /* Steps */
    .steps {
        flex-direction: column;
        gap: 20px;
    }
    .step {
        padding: 20px 15px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    .features .card {
        padding: 20px 15px;
    }

    /* Comparison table */
    .comparison-table {
        font-size: 0.85rem;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 10px 6px;
    }
    .comparison-table thead {
        display: none; /* plus lisible mobile */
    }
    .comparison-table tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid rgba(255,255,255,.1);
        padding: 10px 0;
    }
    .comparison-table td {
        text-align: left;
    }

    /* Schema */
    .balance-schema {
        flex-direction: column;
        gap: 30px;
    }
    .accounts-card, .cases-card {
        width: 100%;
        min-width: unset;
    }
    .equal-sign {
        font-size: 2em;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial {
        padding: 20px;
    }

    /* CTA Final */
    .cta-final {
        padding: 60px 15px;
    }
    .cta-final h2 {
        font-size: 1.8em;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer-links, .footer-social {
        flex-direction: column;
        gap: 10px;
    }

    /* General paddings */
    section {
        padding: 50px 5%;
    }
}
