:root {
    --parchemin: #F5E7C1;
    --encre: #3A2E1D;
    --sepia: #8B4513;
    --sepia-fonce: #5D4037;
    --ombre: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

body {
    background-color: var(--parchemin);
    color: var(--encre);
    font-family: 'Lora', serif;
    line-height: 1.6;
    background-image: url('/assets/img/texture-parchemin-subtile.png');
    background-attachment: fixed;
}

.parchemin-fond {
    position: relative;
    min-height: 100vh;
    border: 1px solid var(--sepia);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(245, 231, 193, 0.8);
}

header {
    background-color: rgba(245, 231, 193, 0.9);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--sepia);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--encre);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    transition: color 0.3s;
}

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

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    background-image: url('/assets/img/background-eldoria.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--parchemin);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 46, 29, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    background: rgba(245, 231, 193, 0.9);
    border: 1px solid var(--sepia);
    border-radius: 5px;
    box-shadow: var(--ombre);
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--sepia-fonce);
}

.encre-divider {
    width: 100px;
    height: 3px;
    background: var(--sepia);
    margin: 1rem auto;
}

.encre-divider.mini {
    width: 50px;
    margin: 0.5rem 0;
}

.btn-encre {
    display: inline-block;
    background: var(--sepia);
    color: var(--parchemin);
    padding: 12px 30px;
    border: none;
    border-radius: 2px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
    box-shadow: var(--ombre);
    margin-top: 1rem;
}

.btn-encre:hover {
    background: var(--sepia-fonce);
    transform: translateY(-2px);
}

.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 5rem 5%;
    gap: 2rem;
}

.feature {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 2rem;
    background: rgba(245, 231, 193, 0.7);
    border: 1px solid var(--sepia);
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icone {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border: 1px solid var(--sepia);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--parchemin);
}

.feature-icone img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.page-header {
    text-align: center;
    padding: 5rem 5% 3rem;
}

.page-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--sepia-fonce);
}

.universe-content, .game-content, .news, .contact-form {
    padding: 3rem 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.universe-card, .game-screenshot, .game-description, article {
    flex: 1;
    max-width: 400px;
    background: rgba(245, 231, 193, 0.7);
    padding: 2rem;
    border: 1px solid var(--sepia);
    border-radius: 5px;
}

.universe-card img, .game-screenshot img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 1rem;
    border: 1px solid var(--sepia);
}

article {
    margin-bottom: 2rem;
}

article h3 {
    font-family: 'Cinzel', serif;
    margin-bottom: 0.5rem;
    color: var(--sepia-fonce);
}

article time {
    color: var(--sepia);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

form input, form textarea {
    padding: 1rem;
    border: 1px solid var(--sepia);
    border-radius: 3px;
    background: rgba(245, 231, 193, 0.5);
    color: var(--encre);
    font-family: 'Lora', serif;
}

form input::placeholder, form textarea::placeholder {
    color: rgba(58, 46, 29, 0.7);
}

footer {
    text-align: center;
    padding: 3rem 5%;
    background: rgba(245, 231, 193, 0.9);
    border-top: 1px solid var(--sepia);
}

.footer-encre {
    max-width: 800px;
    margin: 0 auto;
}

.social {
    margin-top: 1rem;
}

.social a {
    margin: 0 0.5rem;
}

.social img {
    width: 30px;
    height: 30px;
    filter: sepia(100%) saturate(400%) hue-rotate(-50deg);
    transition: transform 0.3s;
}

.social img:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(245, 231, 193, 0.9);
        padding: 1rem;
    }
    nav ul li {
        margin: 0.5rem 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
