/* EkyConso - Site vitrine */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #007AFF;
    --green: #34C759;
    --orange: #FF9500;
    --violet: #AF52DE;
    --bg: #F2F2F7;
    --text: #1C1C1E;
    --text-secondary: #636366;
    --white: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navigation */
.navbar {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.navbar-brand img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
}

.navbar-links {
    display: flex;
    gap: 1.5rem;
}

.navbar-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.navbar-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, #005EC4 100%);
    color: var(--white);
}

.hero img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: -3rem auto 3rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--primary);
    transition: transform 0.2s;
    overflow: hidden;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card.green { border-top-color: var(--green); }
.feature-card.orange { border-top-color: var(--orange); }
.feature-card.violet { border-top-color: var(--violet); }

.feature-card .feature-img {
    width: 140px;
    height: 140px;
    max-width: 140px;
    max-height: 140px;
    object-fit: cover;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: block;
}

.feature-card img {
    max-width: 100%;
    height: auto;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA */
.cta {
    text-align: center;
    padding: 3rem 2rem 4rem;
}

.cta h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    background: var(--text);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.store-btn:hover {
    opacity: 0.85;
    text-decoration: none;
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #E5E5EA;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Legal pages */
.legal {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.legal h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.legal .updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.legal p,
.legal ul {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal ul {
    padding-left: 1.5rem;
}

.legal li {
    margin-bottom: 0.4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem 3rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -2rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .legal {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }
}
