/* Import des polices typées Viking */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Uncial+Antiqua&display=swap');

body {
    background:
        radial-gradient(circle at center, rgba(20, 30, 40, 0.7) 0%, #05080a 100%),
        url('https://cdn.discordapp.com/attachments/1487207034242732135/1513997588825899158/file_0000000019487243b557357b9339b7c1.png?ex=6a29c3a1&is=6a287221&hm=e7fef3408b7a8d354b028fa258668b41161dc00f6dc306bb8f7da8a9a67a166b');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    color: #c0c6d1;
    /* Gris acier clair */
    font-family: 'Uncial Antiqua', cursive;
}

.card {
    background-color: rgba(10, 15, 20, 0.9);
    /* Fond bleu nuit très sombre */
    border: 3px solid #4a5d6e;
    /* Gris pierre bleuté */
    outline: 8px double #d4af37;
    /* Or vieilli pour le contraste */
    outline-offset: -12px;
    padding: 50px 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), inset 0 0 100px rgba(0, 0, 0, 0.8);
    position: relative;
}

h1 {
    font-family: 'Cinzel', serif;
    color: #e6c870;
    /* Or éclatant */
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px #000;
}

.subtitle {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 0.9rem;
    color: #a82e2e;
    /* Rouge sang pour contraste viking */
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.lore {
    border-top: 2px solid #a82e2e;
    border-bottom: 2px solid #a82e2e;
    padding: 25px 0;
    margin-bottom: 30px;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
    background: rgba(168, 46, 46, 0.05);
    /* Légère teinte rouge */
}

.btn {
    padding: 12px 20px;
    font-family: 'Cinzel', serif;
    text-decoration: none;
    font-weight: bold;
    color: #d4af37;
    border: 2px solid #d4af37;
    background: transparent;
    transition: 0.4s;
    border-radius: 2px;
    /* Coins plus droits, style viking */
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn:hover {
    background: #a82e2e;
    /* Devient rouge sang au survol */
    border-color: #a82e2e;
    color: #fff;
    box-shadow: 0 0 15px #a82e2e;
}

.rules {
    margin-top: 30px;
}

.rules-tags span {
    border-radius: 4px;
    background: #1a2530;
    border: 1px solid #4a5d6e;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: #c0c6d1;
}

.upload-zone {
    margin: 30px 0;
    padding: 40px;
    border: 2px dashed #d4af37;
    cursor: pointer;
}

input[type="file"] {
    display: none;
}

.upload-btn {
    display: block;
    color: #e6c870;
    font-family: 'Cinzel', serif;
    cursor: pointer;
}

.upload-btn:hover {
    /* background-color: #a0512d00; */
    transform: scale(1.02);
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.3); */
}

input[type="file"] {
    display: none;
}

.back-link {
    display: block;
    margin-top: 20px;
    color: #4a5d6e;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Cinzel', serif;
}

.back-link:hover {
    color: #d4af37;
}

.gallery-card {
    max-width: 800px;
    /* Plus large pour la galerie */
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.photo-placeholder {
    aspect-ratio: 1 / 1;
    background: #1a2530;
    border: 2px solid #4a5d6e;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a5d6e;
    font-family: 'Uncial Antiqua', cursive;
    transition: 0.3s;
}

.photo-placeholder:hover {
    border-color: #d4af37;
    color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-back {
    display: block;
    margin-top: 30px;
    color: #888;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-back:hover {
    color: #e6c870;
}

/* Grille de la galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #8b4513;
    transition: 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
    cursor: zoom-in;
}