/* =========================================================
   SCÈNE — TAVERNE
   ========================================================= */
html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: url("/images/scene/taverne-fond.png") center top no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow-anchor: none;
}

.scene-taverne {
    min-height: 100vh;

    font-family: "IM Fell English", serif;
    color: #f2e6cf;
}

.taverne-scene {
    position: relative;
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    padding: 5vh 1rem;
}

/* Filtre très léger */
.taverne-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            rgba(0,0,0,0.08) 0%,
            rgba(0,0,0,0.25) 80%,
            rgba(0,0,0,0.45) 100%
        );
    z-index: 1;
    pointer-events: none;
}

/* Contenu */
.taverne-contenu {
    position: relative;
    z-index: 2;

    max-width: 840px;
    width: 100%;
    padding: 1.6rem 2rem 3rem;

    background: rgba(35,22,14,0.6);
    border: 1px solid #6e4b2a;

    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    text-align: center;
}

.taverne-contenu h1 {
    font-family: "Uncial Antiqua", serif;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.taverne-contenu .intro {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Navigation rapide entre sections */
.taverne-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.taverne-nav a {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid #6e4b2a;
    background: rgba(0,0,0,0.25);
    color: #f2e6cf;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.taverne-nav a:hover {
    background: rgba(0,0,0,0.5);
}

/* Sections */
.taverne-section {
    margin-top: 2.5rem;
    text-align: left;
    scroll-margin-top: 1.5rem;
}

.section-titre {
    font-family: "Uncial Antiqua", serif;
    font-size: 1.4rem;
    text-align: center;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #6e4b2a;
}

.section-soustexte {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
    margin-bottom: 1rem;
}

.section-soustexte a {
    color: #d8b98a;
}

.lien-form {
    display: inline;
}

.lien-form button {
    background: none;
    border: none;
    padding: 0;
    color: #d8b98a;
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

/* Créations Unity */
.jeux-unity-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.jeu-unity-carte {
    border: 1px solid #6e4b2a;
    background: rgba(0,0,0,0.25);
    padding: 1rem;
}

.jeu-unity-carte h3 {
    font-family: "Uncial Antiqua", serif;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.jeu-unity-carte p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

.jeu-unity-image {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    border: 1px solid #6e4b2a;
}

/* Chat */
.chat-messages {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #6e4b2a;
    background: rgba(0,0,0,0.3);
    padding: 0.8rem;
    margin-bottom: 0.8rem;
}

.chat-message {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.chat-pseudo {
    font-weight: bold;
    color: #d8b98a;
}

.chat-heure {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-left: 0.5rem;
}

.chat-texte {
    margin: 0.2rem 0 0;
    line-height: 1.4;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
}

.chat-form input {
    flex: 1;
    padding: 0.5rem;
    background: #1b120c;
    color: #e6dcc8;
    border: 1px solid #6e4b2a;
    font-family: inherit;
}

.chat-form button {
    padding: 0.5rem 1rem;
    border: 1px solid #6e4b2a;
    background: linear-gradient(#1a120c, #0f0b08);
    color: #f2e6cf;
    cursor: pointer;
}

.chat-erreur {
    color: #ff6b6b;
    font-size: 0.85rem;
    min-height: 1.2em;
}

/* Actions */
.actions {
    margin-top: 2.5rem;
}

.btn-retour {
    display: inline-block;
    padding: 0.6rem 1.4rem;

    border: 1px solid #6e4b2a;
    background: linear-gradient(#1a120c, #0f0b08);

    color: #f2e6cf;
    letter-spacing: 1px;
    font-size: 0.75rem;

    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-retour:hover {
    background: linear-gradient(#2b1f16, #1a120c);
    transform: translateY(-2px);
}
