/* Variables de couleurs (Inspirées de la charte graphique de Match Memories) */
:root {
    --primary-color: #9BBBC0; /* Thème Primaire Clair (accent) */
    --bg-dark: #121D2D; /* Thème Primaire Foncé (fond principal) */
    --bg-card: #1A283C; /* Fond des cartes, légèrement plus clair que bg-dark */
    --text-main: #FFFFFF;
    --text-muted: #B0C4DE;
    --border-color: #2A3C55;
    --star-color: #FBC02D;
}

@font-face {
    font-family: "CoolveticaRg";
    src: url('https://matchmemories.fr/fonts/CoolveticaRg-Regular.ttf');
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Helvetica, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Typography */
h1, h2, h3 {
    font-family: "CoolveticaRg", 'Roboto', sans-serif;
    font-weight: normal;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h1 span {
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.store-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, border-color 0.2s;
    color: var(--text-main);
}

.store-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.store-btn i {
    font-size: 1.5rem;
}

/* Header */
.header {
    background-color: rgba(18, 29, 45, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-family: "CoolveticaRg", sans-serif;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a:not(.btn) {
    font-weight: 700;
    transition: color 0.3s;
}

.nav a:not(.btn):hover {
    color: var(--primary-color);
}

.lang-switcher {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang-switcher a {
    display: flex;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.5;
}

.lang-switcher a:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.lang-switcher a.active {
    opacity: 1;
}

.lang-switcher img {
    width: 24px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

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

/* Features */
.features {
    padding: 100px 0;
    background-color: #0E1622; /* Encore plus foncé */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Community */
.community {
    padding: 100px 0;
    text-align: center;
}

.community-content {
    max-width: 800px;
    margin: 0 auto;
}

.stats-preview {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-badge {
    background: linear-gradient(145deg, var(--bg-card) 0%, #0E1622 100%);
    padding: 20px 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-family: "CoolveticaRg", sans-serif;
    color: var(--star-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA */
.cta {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.cta h2 {
    color: var(--bg-dark);
}

.cta p {
    color: #1A283C;
}

.cta .store-btn {
    background-color: var(--bg-dark);
    color: var(--text-main);
    border-color: var(--bg-dark);
}

.cta .store-btn:hover {
    background-color: #0E1622;
}

/* Footer */
.footer {
    background-color: #0B111A;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

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

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social a {
    font-size: 1.5rem;
    margin-left: 15px;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }
    
    .store-buttons {
        justify-content: center;
    }

    h1 {
        font-size: 2.2rem;
    }

    .nav {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}