/* Import Google Font used in the app vibe */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Colors inspired by the App Screenshots */
    --primary-green: #388E3C; /* The "JOUER" button green */
    --primary-green-hover: #2E7D32;
    --secondary-brown: #5D4037; /* Wood/Dark UI elements */
    --bg-cream: #FDFBF7; /* App background color */
    --text-dark: #3E2723; /* Dark brown text */
    --text-light: #FAFAFA;
    --accent-teal: #4DB6AC; /* Map nodes color */
    
    /* Spacing & Layout */
    --container-width: 1100px;
    --border-radius: 16px;
    --card-shadow: 0 10px 30px rgba(62, 39, 35, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

/* --- Header --- */
header {
    background: transparent;
    padding: 1.5rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-brown);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--secondary-brown);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-green);
}

.container {
    max-width: var(--container-width);
    margin: auto;
    padding: 0 20px;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 140px 0 80px;
    position: relative;
    /* Subtle gradient background based on the map screenshot */
    background: linear-gradient(135deg, #FDFBF7 0%, #EFEBE9 100%);
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-brown);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #6D4C41;
}

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

.phone-mockup {
    width: 280px;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 8px solid #333;
    background: #000;
    overflow: hidden;
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

.phone-mockup img {
    width: 100%;
    display: block;
    height: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: var(--primary-green);
    color: var(--text-light);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(56, 142, 60, 0.3);
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--primary-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(56, 142, 60, 0.4);
}

/* --- Features Section --- */
.features-section {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--secondary-brown);
    margin-bottom: 60px;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature-card {
    flex: 1;
    background: var(--bg-cream);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: var(--card-shadow);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    color: var(--secondary-brown);
    margin-bottom: 15px;
}

/* --- Gallery/Screenshots --- */
.gallery-section {
    padding: 80px 0;
    text-align: center;
}

.gallery-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.screenshot-frame {
    width: 240px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-frame:hover {
    transform: scale(1.05);
}

/* --- Footer --- */
footer {
    background: var(--secondary-brown);
    color: #D7CCC8;
    padding: 60px 0 20px;
    text-align: center;
}

footer .footer-links {
    margin-bottom: 30px;
}

footer a {
    color: #FFF;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Legal Page Override --- */
.legal-content {
    background: #fff;
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-top: 120px; /* Space for fixed header */
    margin-bottom: 60px;
}

.legal-content h2 {
    color: var(--primary-green);
    border-bottom: 2px solid #EEE;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 60px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .features-grid {
        flex-direction: column;
    }

    .phone-mockup {
        width: 240px;
    }
}
