/* Corps de la page */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Garamond', serif;
    background-image: url(../images/backgroundDarkFantaisy.png);
    color: #d4af37;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Header */
header {
    font-size: 1.8em;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 20px;
}

main {
    flex: 1; /* Permet de prendre tout l'espace restant */
    backdrop-filter: blur(5px);
    border-radius: 10px;
    border: solid 2px #732626;
    margin-left: 15px;
    margin-right: 15px;
}

/* Globalement, ajoutons une transition de base pour tous les éléments */
* {
    transition: all 0.3s ease-in-out;
}

/* Boutons */
button {
    background-color: #4a2c2a;
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 8px 16px;
    font-size: 1em;
    font-family: 'Garamond', serif;
    cursor: pointer;
    margin: 8px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    outline: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

/* Boutons au survol */
button:hover {
    background-color: #732626;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Boutons actifs */
button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Style spécifique pour les boutons ouvrant un nouvel onglet */
.button-new-tab {
    background-color: #2c2a4a;
    border-color: #b8860b;
}

.button-new-tab:hover {
    background-color: #262673;
}

/* Mise en page centrale avec flexbox pour un contenu plus équilibré */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 10px;
}

/* Ajout de marges et de bordures aux éléments de contenu */
.container {
    margin: 15px;
    padding: 20px;
    border-radius: 15px;
    background-color: #732626;
    width: 90%;
    max-width: 100%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Paragraphes */
p {
    font-size: 1em;
    line-height: 1.6;
    margin: 15px;
    color: #ccc;
}

/* Header (H1) */
h1 {
    font-size: 1.3em;
    font-family: 'Garamond', serif;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 87, 34, 0.9),
        0 0 30px rgba(255, 87, 34, 0.8),
        0 0 60px rgba(255, 87, 34, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(54, 0, 0, 0.85));
    -webkit-background-clip: text;
    background-clip: text;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
    margin-top: 10px;
}

/* Style pour les h2, avec les mêmes effets que le h1 */
h2 {
    font-size: 1.5em;
    font-family: 'Garamond', serif;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 87, 34, 0.9),
        0 0 30px rgba(255, 87, 34, 0.8),
        0 0 60px rgba(255, 87, 34, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(54, 0, 0, 0.85));
    -webkit-background-clip: text;
    background-clip: text;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
}

/* Ajouter un léger ombrage aux éléments de texte */
h3, p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Style spécifique pour la div contenant les boutons "Races" et "Classes" */
.races-classes-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

/* Footer toujours en bas */
footer {
    width: 100%;
    padding: 8px 0;
    color: #d4af37;
    text-align: center;
    font-size: 0.9em;
}

/* Media queries pour différentes tailles d'écran */

/* Très petits écrans (smartphones) */
@media (min-width: 500px) {
    header {
        font-size: 2em;
        margin-bottom: 25px;
    }
    
    main {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    button {
        padding: 10px 18px;
        font-size: 1.05em;
        margin: 9px;
    }
    
    .container {
        margin: 18px;
        padding: 25px;
    }
    
    p {
        font-size: 1.1em;
        line-height: 1.7;
        margin: 18px;
    }
    
    h1 {
        font-size: 1.4em;
        margin-bottom: 25px;
    }
    
    h2 {
        font-size: 1.6em;
        margin-bottom: 18px;
    }
    
    .races-classes-buttons {
        flex-direction: row;
        gap: 15px;
    }
    
    footer {
        padding: 9px 0;
        font-size: 0.95em;
    }
}

/* Écrans moyens (tablettes) */
@media (min-width: 768px) {
    header {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    
    main {
        margin-left: 25px;
        margin-right: 25px;
    }
    
    button {
        padding: 12px 22px;
        font-size: 1.1em;
        margin: 10px;
    }
    
    .container {
        margin: 20px;
        padding: 30px;
        max-width: 700px;
        width: 85%;
    }
    
    p {
        font-size: 1.15em;
        line-height: 1.75;
        margin: 20px;
    }
    
    h1 {
        font-size: 1.45em;
        letter-spacing: 1.5px;
        margin-bottom: 30px;
    }
    
    h2 {
        font-size: 1.7em;
        margin-bottom: 20px;
    }
    
    .races-classes-buttons {
        gap: 18px;
    }
    
    footer {
        padding: 10px 0;
        font-size: 1em;
    }
}

/* Grands écrans (ordinateurs portables) */
@media (min-width: 992px) {
    header {
        font-size: 2.3em;
        margin-bottom: 35px;
    }
    
    main {
        margin-left: 28px;
        margin-right: 28px;
    }
    
    button {
        padding: 12px 24px;
        font-size: 1.15em;
    }
    
    .container {
        padding: 35px;
        max-width: 850px;
        width: 80%;
    }
    
    p {
        font-size: 1.2em;
        line-height: 1.8;
    }
    
    h1 {
        font-size: 1.5em;
        letter-spacing: 2px;
        margin-bottom: 35px;
        text-shadow: 
            3px 3px 6px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(255, 87, 34, 0.9),
            0 0 40px rgba(255, 87, 34, 0.8),
            0 0 80px rgba(255, 87, 34, 0.7);
        padding: 10px;
    }
    
    h2 {
        font-size: 1.8em;
        letter-spacing: 1.8px;
        margin-bottom: 22px;
        text-shadow: 
            3px 3px 6px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(255, 87, 34, 0.9),
            0 0 40px rgba(255, 87, 34, 0.8),
            0 0 80px rgba(255, 87, 34, 0.7);
    }
    
    .races-classes-buttons {
        gap: 20px;
    }
}

/* Très grands écrans (ordinateurs de bureau) */
@media (min-width: 1199px) {
    header {
        font-size: 2.4em;
        margin-bottom: 40px;
    }
    
    main {
        margin-left: 30px;
        margin-right: 30px;
    }
    
    button {
        padding: 12px 26px;
        font-size: 1.2em;
    }
    
    .container {
        padding: 40px;
        max-width: 1000px;
        width: 75%;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    }
    
    p {
        font-size: 1.25em;
    }
    
    h1 {
        font-size: 1.6em;
        margin-bottom: 40px;
    }
    
    h2 {
        font-size: 2em;
        margin-bottom: 25px;
    }
    
    .races-classes-buttons {
        gap: 25px;
    }
}

/* Écrans extra-larges */
@media (min-width: 1400px) {
    header {
        font-size: 2.5em;
        margin-bottom: 45px;
    }
    
    main {
        margin-left: 35px;
        margin-right: 35px;
    }
    
    button {
        padding: 14px 28px;
        font-size: 1.25em;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.35);
    }
    
    button:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
    }
    
    .container {
        padding: 50px;
        max-width: 1200px;
        width: 70%;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
    
    p {
        font-size: 1.3em;
        line-height: 1.9;
        margin: 25px;
    }
    
    h1 {
        font-size: 1.7em;
        letter-spacing: 2.5px;
        margin-bottom: 45px;
        text-shadow: 
            4px 4px 8px rgba(0, 0, 0, 0.8),
            0 0 30px rgba(255, 87, 34, 0.9),
            0 0 60px rgba(255, 87, 34, 0.8),
            0 0 120px rgba(255, 87, 34, 0.7);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    }
    
    h2 {
        font-size: 2.2em;
        letter-spacing: 2.2px;
        margin-bottom: 30px;
        text-shadow: 
            4px 4px 8px rgba(0, 0, 0, 0.8),
            0 0 30px rgba(255, 87, 34, 0.9),
            0 0 60px rgba(255, 87, 34, 0.8),
            0 0 120px rgba(255, 87, 34, 0.7);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    }
    
    .races-classes-buttons {
        gap: 30px;
    }
}