/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1E6EFF;
    --dark-text: #1a1a1a;
    --gray-text: #5a5a5a;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --card-bg: #f8f9fb;
    --purple-accent: #b8a4e8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 15px 0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 70px;
    width: auto;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--dark-text);
    display: block;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 110, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.hero-logo {
    height: 150px;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--dark-text);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
    font-size: 1rem;
    color: var(--gray-text);
    margin-bottom: 32px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-text a {
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 110, 255, 0.25);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-btn:hover {
    background: #1557d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 110, 255, 0.35);
}

.hero-image {
    animation: slideInRight 0.8s ease-out;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Why Section */
.why-section {
    padding: 80px 0;
    background: var(--white);
}

.why-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 60px;
    color: var(--dark-text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 110, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    background: var(--white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--dark-text);
    font-weight: 600;
    line-height: 1.5;
}

/* Application Section */
.application-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.application-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 60px;
    color: var(--dark-text);
    line-height: 1.3;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.app-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.app-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, #1557d8 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.app-card:hover::after {
    transform: scaleX(1);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.app-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 24px;
    transition: transform 0.4s ease;
    border-radius: 8px;
}

.app-card:hover img {
    transform: scale(1.05);
}

.app-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.4;
}

.application-section .cta-btn {
    display: block;
    margin: 0 auto;
}

.application-section a {
    text-decoration: none;
    border-bottom: none;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--white);
}

.stats-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--primary-blue);
    line-height: 1.4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--light-bg);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
    background: var(--white);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(-5deg);
}

.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.stat-card p {
    font-size: 0.95rem;
    color: var(--dark-text);
    font-weight: 600;
    line-height: 1.5;
}

/* Features Detail Section */
.features-detail {
    padding: 80px 0;
    background: var(--light-bg);
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-text h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 40px;
    color: var(--dark-text);
    line-height: 1.3;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 1rem;
    color: var(--dark-text);
}

.check-icon {
    color: var(--primary-blue);
    font-weight: 900;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.phone-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-slider img {
    max-width: 280px;
    height: auto;
    display: block;
    border-radius: 7%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.phone-slider img:hover {
    animation-play-state: paused;
}

.slider-btn {
    position: absolute;
    background: var(--white);
    border: 2px solid #e0e0e0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--gray-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 110, 255, 0.3);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn.prev {
    left: -25px;
}

.slider-btn.next {
    right: -25px;
}

/* Experience Section */
.experience-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #2b2d35 0%, #1a1c24 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.experience-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.experience-section .container {
    position: relative;
    z-index: 1;
}

.experience-section h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.experience-section p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.cta-logo {
    height: 130px;
    margin-bottom: 30px;
    animation: scaleIn 0.8s ease-out;
    transition: transform 0.3s ease;
}

.cta-logo:hover {
    transform: scale(1.05);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--dark-text);
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1rem;
    color: var(--gray-text);
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: 30px 0 30px;
    background: var(--white);
    border-top: 1px solid #e5e5e5;
}

.footer .container {
    /* Align footer container width with .footer-separator (max-width: 1200px) */
    max-width: 1200px;
    align-items: center;
    padding-left: 0; /* remove left offset so content centers with separator */
    padding-right: 0;
}

.footer-content {
    display: grid;
    /* colonnes plus équilibrées pour mieux étaler les infos */
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 30px;
    /* allow each column to align independently (left / center / right) */
    justify-items: stretch;
}

.footer-logo {
    height: 70px;
    margin-bottom: 20px;
}

.footer-dev {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-top: 10px;
}

.footer-dev strong {
    color: var(--dark-text);
    font-weight: 700;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.footer-info p {
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.footer-info a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #1557d8;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* align the content to the right edge of the column */
    align-items: flex-end;
}

.footer-right-extras {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.store-badge img {
    height: 44px;
    width: auto;
}

/* Per-column text alignment for desktop */
.footer-left { text-align: left; }
.footer-center { text-align: center; }
.footer-right { text-align: right; }

.footer-bottom {
    padding-top: 20px;
    /* border removed: separator element will provide the line above this block */
    border-top: none;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Separator line placed between footer content and footer-bottom links */
.footer-separator {
    width: 100%;
    max-width: 1200px; /* match main container width */
    height: 1px;
    background: #e5e5e5;
    margin: 18px auto; /* space above/below */
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.footer-social a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image,
    .features-phone {
        text-align: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-center {
        grid-template-columns: 1fr;
    }

    .footer-right {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .why-section h2,
    .application-section h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .slider-btn.prev {
        left: -20px;
    }

    .slider-btn.next {
        right: -20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-center {
        grid-template-columns: 1fr;
    }
}
