:root {
    --primary: #A0522D; /* Terracotta */
    --secondary: #D4AF37; /* Or */
    --accent: #E2725B; /* Terre cuite claire */
    --bg-light: #FFFDD0; /* Crème */
    --bg-dark: #2C1B10; /* Brun profond */
    --text-dark: #1A1A1A;
    --text-light: #F5F5F5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, .logo {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
}

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

/* Header & Nav */
header {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

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

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

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

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

/* Hero Section */
#hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('image/image3.jpeg'); /* Fallback pattern if image not available */
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
    color: var(--secondary);
}

#hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 700px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s, background-color 0.3s;
    border: 2px solid var(--secondary);
}

.cta-button:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
}

/* Sections */
h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    color: var(--primary);
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 20px auto;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

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

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-left: 5px solid var(--secondary);
    border-radius: 0 10px 10px 0;
}

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

.feature-card ul {
    list-style: none;
}

.feature-card li {
    margin-bottom: 10px;
}

/* Gallery Placeholder */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: var(--primary);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border: 2px solid var(--secondary);
    font-weight: bold;
    color: white;
}

/* Card Display */
.card-display {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-card {
    width: 250px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: absolute;
    transition: transform 0.3s, z-index 0.3s;
}

.game-card:first-child {
    transform: rotate(-10deg) translateX(-40px);
    z-index: 1;
}

.game-card:last-child {
    transform: rotate(5deg) translateX(40px);
    z-index: 2;
}

.game-card:hover {
    transform: scale(1.1) rotate(0deg);
    z-index: 10;
}

/* Art Gallery Section */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: -30px auto 50px;
    font-size: 1.1rem;
    color: var(--secondary);
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.art-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 3px solid var(--secondary);
    background: var(--bg-dark);
    height: 300px;
}

.art-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.art-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--secondary);
    padding: 15px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.art-item:hover img {
    transform: scale(1.1);
}

.art-item:hover .art-caption {
    transform: translateY(0);
}

/* Gallery Update */
.gallery-item-img {
    background: white;
    padding: 10px;
    border: 2px solid var(--secondary);
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-item-img img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.gallery-item-img p {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 0.9rem;
}

.gallery-item-img:hover {
    transform: translateY(-10px);
}

/* Smartphone Mockup */
.app-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.smartphone {
    width: 280px;
    height: 550px;
    background: #333;
    border: 12px solid #444;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.smartphone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #444;
    border-radius: 0 0 15px 15px;
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--primary);
    color: white;
    padding: 40px 20px 15px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: bold;
}

.app-content {
    padding: 20px;
    text-align: center;
}

.badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--bg-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.app-content h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.app-content p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 30px;
}

.progress {
    border-top: 2px dashed var(--secondary);
    padding-top: 20px;
    font-weight: bold;
    color: var(--primary);
}

.app-features {
    list-style: none;
    margin: 30px 0;
}

.app-features li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.app-features li::before {
    content: '📱';
    position: absolute;
    left: 0;
    top: 0;
}

.app-status {
    color: var(--secondary);
    font-weight: bold;
    border: 1px solid var(--secondary);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
}

.screen.real-app {
    background: #000;
}

.screen.real-app img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* App Showcase Area */
.app-showcase {
    margin-top: 80px;
    text-align: center;
}

.app-showcase h3 {
    margin-bottom: 40px;
    color: var(--secondary);
}

.app-flow-img {
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 3px solid var(--secondary);
    transition: transform 0.3s;
}

.app-flow-img:hover {
    transform: scale(1.02);
}

.app-badges {
    margin-top: 30px;
}

/* Footer */
footer {
    background: #111;
    color: #888;
    text-align: center;
    padding: 50px 0;
    border-top: 5px solid var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        display: none; /* Simplification pour le mobile */
    }
}
