:root {
    --primary-color: #8D6E63; /* Warm Wood Brown */
    --primary-light: #BCAAA4; /* Light Wood */
    --primary-dark: #4E342E; /* Dark Wood */
    --accent-red: #EF5350;
    --accent-blue: #42A5F5;
    --accent-green: #66BB6A;
    --accent-yellow: #FFEE58;
    --bg-color: #FAFAFA;
    --card-bg: #ffffff;
    --text-main: #2C3E50;
    --text-muted: #5D6D7E;
    --border-radius: 16px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

nav {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    display: block;
    padding: 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.lang-switch {
    position: absolute;
    right: 2rem;
    top: 1rem;
}

.lang-switch a {
    display: inline-block;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: none;
    text-decoration: none;
    font-weight: bold;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: white;
    border-bottom: none;
}

main {
    flex: 1;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* New Petits Chevaux Styles */
.hero-image-container {
    margin: 0 auto 2rem;
    max-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.compatibility-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.intro-box {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--text-main);
}

.commercial-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    box-shadow: var(--shadow-strong);
}

.price-tag {
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.details {
    font-size: 1rem;
    opacity: 0.9;
}

.app-store-badge {
    display: inline-block;
    vertical-align: middle;
}

.app-store-badge img {
    height: 52px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease, box-shadow 0.3s ease;
    display: block;
    border-radius: 8px;
}

.app-store-badge:hover img {
    transform: scale(1.05);
    filter: brightness(1.15);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.app-store-badge:active img {
    transform: scale(0.98);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

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

.feature-card h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.game-rules {
    background: #FFECB3; /* Light Yellow/Parchment */
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border-left: 8px solid #FFAB00;
    margin: 3rem 0;
}

.game-rules h3 {
    margin-top: 0;
    color: #BF360C;
}

.rules-content ul {
    list-style: none;
    padding: 0;
}

.rules-content li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: #4E342E;
}

.rules-content li::before {
    content: "🐴";
    position: absolute;
    left: 0;
}

.commercial-pitch {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin: 3rem 0;
}

.pitch-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.point {
    padding: 1rem;
    background: #F1F8E9;
    border-radius: 12px;
    color: #2E7D32;
}

.footer-summary {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px solid #ddd;
    font-style: italic;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .commercial-banner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .pitch-points {
        grid-template-columns: 1fr;
    }
}

#main-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    padding: 5rem 1rem;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#main-footer p {
    margin: 0.5rem 0;
    width: 100%;
    max-width: 900px; /* Aligns content with the main section */
    line-height: 1.6;
}

.footer-link {
    color: var(--primary-light);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-light);
    padding-bottom: 2px;
    font-weight: 600;
}

.footer-link:hover {
    color: white;
    border-bottom-style: solid;
}

#main-footer small {
    opacity: 0.6;
    margin-top: 1rem;
    display: block;
}