/* === CONFIGURATION GÉNÉRALE === */
:root {
    --color-gold: #FFD700;
    --color-crimson-red: #B91C1C;
    --color-crimson-dark: #7F1D1D;
    --color-parchment-bg: #F3E9D2;
    --color-parchment-text: #4A2E2B;
    --color-parchment-border: #C6B38E;
    --color-dark-bg-primary: #0a0a0a;
    --color-dark-bg-secondary: #171717;
    --font-title: 'Cinzel', serif;
    --font-text: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
    height: 100%;
}

body {
    background-color: var(--color-dark-bg-primary);
    color: #fff;
    font-family: var(--font-text);
    margin: 0;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

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

.mb-12 {
    margin-bottom: 3rem;
}

/* === SECTION HERO === */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

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

.main-title {
    font-family: var(--font-title);
    font-size: 4.5rem; /* 7xl */
    color: var(--color-gold);
    text-shadow: 0 0 8px var(--color-gold), 0 0 12px #E65100;
}

.subtitle {
    font-size: 1.25rem; /* xl */
    margin-top: 1rem;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: var(--color-crimson-red);
    color: #fff;
    font-weight: bold;
    border-radius: 0.5rem;
    text-decoration: none;
    border: 2px solid var(--color-crimson-dark);
    box-shadow: 0 6px var(--color-crimson-dark);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
}

.cta-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px var(--color-crimson-dark);
}

/* === SECTIONS DE CONTENU === */
.content-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 3rem; /* 5xl */
    text-align: center;
    color: var(--color-gold);
    margin-bottom: 3rem;
}

.section-text {
    font-size: 1.125rem; /* lg */
    line-height: 1.75;
}

/* Style spécifique pour la section parchemin */
.parchment-bg {
    background-color: var(--color-parchment-bg);
    background-image: linear-gradient(rgba(243, 233, 210, 0.8), rgba(243, 233, 210, 0.8)), url('https://www.transparenttextures.com/patterns/old-paper.png');
    border-top: 4px solid var(--color-parchment-border);
    border-bottom: 4px solid var(--color-parchment-border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
    position: relative;
}

.parchment-title {
    color: var(--color-parchment-text);
}

.parchment-text {
    color: var(--color-parchment-text);
    font-family: var(--font-title);
    text-align: center;
}

/* Style pour les sections avec fond texturé */
.textured-bg {
    background-color: var(--color-dark-bg-secondary);
    background-image: url('https://www.transparenttextures.com/patterns/dark-stone.png');
    box-shadow: inset 0 0 20px rgba(0,0,0,0.7);
}

/* Séparateur de section */
.section-divider {
    height: 50px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    position: relative;
}
.section-divider::after {
    content: '⚜';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 215, 0, 0.2);
    font-size: 2rem;
}

/* === SECTION GAMEPLAY === */
.gameplay-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
}

@media (min-width: 768px) {
    .gameplay-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gameplay-card {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.875rem; /* 3xl */
    color: var(--color-crimson-red);
    margin-bottom: 1rem;
    text-align: center;
}

/* === SECTION MODÈLE 3D === */
.model-section {
    margin-top: 4rem;
    text-align: center;
}

.model-container {
    width: 100%;
    height: 24rem; /* 96 */
    max-width: 42rem; /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

model-viewer {
    background-color: transparent;
}

/* === SECTION MOTEUR (UNREAL) === */
.engine-logo {
    height: 6rem; /* h-24 */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.engine-example-image {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

/* === FOOTER === */
.site-footer {
    background-color: var(--color-dark-bg-primary);
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 4px solid rgba(255, 215, 0, 0.2);
    color: #6b7280; /* gray-500 */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-gold);
}
