:root {
    --primary-blue: #1e3a8a;
    --light-blue: #2f56d9;
    --dark-blue: #14265c;
    --lighter-blue: #eef2ff;
    --accent-red: #e63946;
    --dark-red: #c62f3a;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --border-color: #e5e7eb;
    --footer-navy: #0f1b3d;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

/* ===== Navbar ===== */
.navbar-custom {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(15, 27, 61, 0.08);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand img {
    height: 48px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link-custom {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.nav-link-custom:hover {
    color: var(--accent-red);
}

.nav-link-custom.active {
    background: var(--accent-red);
    color: var(--white);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-outline-nav {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    padding: 0.5rem 1.3rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.btn-outline-nav:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-solid-red {
    border: 2px solid var(--accent-red);
    background: var(--accent-red);
    color: var(--white);
    padding: 0.5rem 1.3rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.btn-solid-red:hover {
    background: var(--dark-red);
    border-color: var(--dark-red);
    color: var(--white);
}

.navbar-toggler {
    display: none;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* ===== Hero ===== */
.hero-section {
    padding: 4.5rem 0;
    background: var(--white);
}

.hero-title {
    font-size: 3.1rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title span {
    display: block;
}

.hero-title .blue {
    color: var(--primary-blue);
}

.hero-title .red {
    color: var(--accent-red);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--white);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: var(--accent-red);
    color: var(--white);
}

.hero-illustration {
    max-width: 100%;
    height: auto;
}

/* ===== Bande avantages ===== */
.avantages-section {
    background: var(--primary-blue);
    padding: 3rem 0;
}

.avantage-item {
    text-align: center;
    color: var(--white);
}

.avantage-icon {
    width: 64px;
    height: 64px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.avantage-title {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.avantage-text {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 220px;
    margin: 0 auto;
}

/* ===== À propos ===== */
.about-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
}

.section-heading.centered {
    text-align: center;
}

.section-heading.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-text {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
}

.about-illustration {
    max-width: 100%;
    height: auto;
}

/* ===== Fonctionnalités ===== */
.fonctionnalites-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 16px rgba(15, 27, 61, 0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 27, 61, 0.12);
}

.feature-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.4rem;
    color: var(--white);
}

.feature-icon-circle.blue {
    background: var(--primary-blue);
}

.feature-icon-circle.red {
    background: var(--accent-red);
}

.feature-card-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.feature-card-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== Comment ça marche ===== */
.comment-section {
    padding: 5rem 0;
    background: var(--white);
}

.step-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.step-item {
    text-align: center;
    flex: 1;
    padding: 0 1rem;
    position: relative;
}

.step-connector {
    flex: 0 0 auto;
    width: 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 32px;
}

.step-connector .dots {
    width: 100%;
    border-top: 2px dotted var(--primary-blue);
}

.step-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: var(--white);
}

.step-icon-circle.blue {
    background: var(--primary-blue);
}

.step-icon-circle.red {
    background: var(--accent-red);
}

.step-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.step-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== CTA ===== */
.cta-section {
    background: var(--primary-blue);
    padding: 3rem 0;
}

.cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cta-title {
    color: var(--white);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0;
}

.btn-cta-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.btn-cta-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* ===== Footer ===== */
.footer-modern {
    background: var(--footer-navy);
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 1.5rem;
}

.footer-modern img {
    height: 40px;
    width: auto;
    margin-bottom: 0.75rem;
}

.footer-brand-name {
    color: var(--white);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.9rem;
    max-width: 260px;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.footer-social a:hover {
    background: var(--accent-red);
}

.footer-col-title {
    color: var(--white);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    margin-bottom: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.65rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        position: relative;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 8px 20px rgba(15, 27, 61, 0.1);
        padding: 1rem;
        display: none;
        z-index: 999;
    }

    .nav-menu.show {
        display: flex;
    }

    .navbar-actions {
        margin-top: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }

    .step-row {
        flex-direction: column;
    }

    .step-connector {
        display: none;
    }

    .step-item {
        margin-bottom: 2rem;
    }

    .cta-section .row {
        text-align: center;
    }

    .cta-section .d-flex.align-items-center {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-section {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-illustration {
        margin-top: 2rem;
    }
}
