:root {
    --primary: #1a2a5c;
    --primary-light: #2a407c;
    --accent: #f7b731;
    --accent-hover: #e5a620;
    --text-main: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.subtitle-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 183, 49, 0.3);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-large {
    font-size: 1.2rem;
    padding: 18px 36px;
}

header {
    background-color: var(--bg-white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.logo-img-footer {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10rem 5% 6rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    min-height: 100vh;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.25rem;
    margin: 1.5rem 0 2.5rem;
    opacity: 0.9;
    font-weight: 400;
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background-color: var(--bg-light);
    border-radius: 45px;
    border: 12px solid #111;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5%;
    gap: 4rem;
}

.section-light {
    background-color: var(--bg-white);
}

.section-dark {
    background-color: var(--bg-light);
}

.feature-text {
    flex: 1;
    max-width: 550px;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(26, 42, 92, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.badge-yellow {
    background-color: rgba(247, 183, 49, 0.2);
    color: #d49513;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background-color: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.visual-card {
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 450px;
}

.visual-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.progress-bar {
    height: 12px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
}

.stats {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dark-card {
    background: var(--primary);
    color: #fff;
    text-align: center;
}

.dark-card h3 {
    color: var(--accent);
}

.dark-card h2 {
    font-size: 3.5rem;
    margin: 1rem 0;
}

.dark-card p {
    opacity: 0.8;
    font-size: 1.1rem;
}

.testimonials-section {
    padding: 6rem 5% 8rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.stars {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
}

.avatar-1 {
    background-color: #f7b731;
}

.avatar-2 {
    background-color: #1a2a5c;
}

.avatar-3 {
    background-color: #20bf6b;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.download-section {
    padding: 4rem 5% 8rem;
    background: #fff;
    text-align: center;
}

.download-box {
    background: linear-gradient(135deg, var(--primary) 0%, #111b3d 100%);
    color: #fff;
    padding: 5rem 3rem;
    border-radius: 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(26, 42, 92, 0.2);
}

.download-box h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.download-box p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.apk-notice {
    font-size: 0.95rem;
    opacity: 0.6;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* --- Footer --- */
footer {
    background: var(--bg-light);
    padding: 5rem 5% 2rem;
    border-top: 1px solid #eaeaea;
}

/* Flexbox pour répartir uniformément avec le contact au centre */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1rem;
}

.footer-spacer {
    flex: 1;
    max-width: 350px;
    display: none;
}

/* Caché sur mobile, utile sur grand écran */

/* Bloc contact centré */
.footer-contact {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centre le contenu horizontalement */
    text-align: center;
}

.footer-contact h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Icônes SVG modernes */
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.icon svg {
    stroke: var(--accent);
    transition: stroke 0.3s ease;
}

.footer-contact a {
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-contact a:hover+.icon svg {
    stroke: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    color: var(--text-muted);
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        /* Empile les éléments verticalement */
        align-items: center;
        /* Centre les éléments horizontalement */
        text-align: center;
        /* Centre le texte */
        gap: 1rem;
        /* Ajoute un petit espace entre les éléments empilés */
    }
}
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-bottom {
    transform: translateY(50px);
}

.fade-left {
    transform: translateX(50px);
}

.fade-right {
    transform: translateX(-50px);
}

@media (min-width: 993px) {

    /* Affiche l'espaceur uniquement sur Desktop pour forcer le centrage absolu */
    .footer-spacer {
        display: block;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

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

    .hero-image {
        margin-top: 4rem;
        justify-content: center;
    }

    .feature-section {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    #epargne {
        flex-direction: column-reverse;
    }

    .feature-list li {
        text-align: left;
    }

    .nav-links {
        display: none;
    }

    /* Sur mobile, on empile tout de façon centrée */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}