

/* Corps de la page */
body {
    font-family: 'Garamond', serif;
    background-image: url(../images/backgroundDarkFantaisy.png); /* Image de fond */
    background-position: top 100%;
    background-color: #3b0a45; /* Rouge sombre de fond */
    color: #d4af37; /* Couleur dorée pour le texte */
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-size: cover;
    background-attachment: fixed;
}

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

img {
    width: 60%;
    max-width: 800px;
    height: auto;
}

main {
    backdrop-filter: blur(5px);
    border-radius: 10px;
    border: solid 2px #732626;
    margin: 50px auto;
    max-width: 1600px;
    width: calc(100% - 100px);
}

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

/* 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: 0 20px;
}

/* Ajout de marges et de bordures aux éléments de contenu */
.container {
    margin: 20px auto; /* Auto margin horizontale pour centrer */
    padding: 40px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(54, 0, 0, 1), rgba(91, 6, 6, 0.8)); /* Dégradé rouge sombre très prononcé */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 1400px;
    width: 90%;
    /* Assurons-nous que le conteneur reste centré */
    display: block; /* Pour s'assurer que margin auto fonctionne correctement */
}

.fiche {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Titres avec effet de dégradé et ombre portée */
h1, h2, h3 {
    font-family: 'Garamond', serif;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.8),  
        0 0 25px rgba(255, 87, 34, 0.9), 
        0 0 50px rgba(255, 87, 34, 0.8), 
        0 0 100px rgba(255, 87, 34, 0.7);
    letter-spacing: 2px; 
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(54, 0, 0, 1), rgba(91, 6, 6, 0.8)); /* Dégradé prononcé du rouge sombre */
    -webkit-background-clip: text;
    background-clip: text;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7); 
}

/* Paragraphes avec effets et transitions */
p {
    font-size: 1.2em;
    line-height: 1.8;
    margin: 20px 0;
    color: #ccc;
    position: relative;
    padding: 10px;
    background: linear-gradient(135deg, rgba(54, 0, 0, 0.8), rgba(91, 6, 6, 0.6)); /* Dégradé rouge sombre plus prononcé */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: #d4af37 solid 2px;
}

/* Effet au survol des paragraphes */
p:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Atout et Inconvénient avec icônes stylisées */
.atout, .inconvenient {
        font-size: 1.2em;
        color: #f4c542;
        font-weight: bold;
        
        align-items: center;
        gap: 8px;
}

/* Icones à côté du texte */
.atout::before, .inconvenient::before {
    content: url('images/checkIcon.png');
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Style des boutons de navigation */
.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacement entre les boutons */
    margin-top: 30px;
}

.btn {
    text-decoration: none;
    background-color: #4a2c2a;
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 12px 24px;
    font-size: 1.1em;
    font-family: 'Garamond', serif;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

/* Effet au survol */
.btn:hover {
    background-color: #732626;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Style pour la div "Capacités" */
.capaciteNiv {
    margin: 40px auto; /* Centrage avec auto margin */
    background: rgba(54, 0, 0, 0.7); /* Fond sombre avec opacité */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid #d4af37;
    max-width: 1400px;
    width: 90%; /* Largeur identique au container pour la cohérence */
}

/* Titre "Capacités" */
.capaciteNiv h2 {
    font-size: 2em;
    font-weight: bold;
    color: #f4c542;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
}

/* Style pour la nouvelle div "Sang infernal" */
.capacite {
    background: rgba(91, 6, 6, 0.8); /* Dégradé similaire à celui des autres éléments */
    color: #d4af37;
    border-radius: 8px;
    padding: 20px;
    margin: 30px auto; /* Centrage avec auto margin */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid #d4af37;
    text-align: left;
    max-width: 100%; /* S'assurer que ça ne dépasse pas le parent */
}

.capacite h2 {
    font-size: 1.5em;
    font-weight: bold;
    color: #f4c542;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.capacite ul {
    list-style-type: none;
    padding: 0;
}

.capacite ul li {
    font-size: 1.2em;
    line-height: 1.8;
    margin: 10px 0;
}

/* Footer */
footer {
    font-size: 1em;
    color: #d4af37;
    padding: 20px;
    background-color: #732626;
    text-align: center;
    border-top: #d4af37 solid 3px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
    width: 100%;
}

/* Responsive design : réduire la taille des éléments sur les petits écrans */
/* Petits écrans mobiles */
@media (max-width: 480px) {
    body {
        background-size: cover;
    }
    
    main {
        margin: 20px auto;
        width: calc(100% - 40px);
    }
    
    .container {
        margin: 20px auto; /* Centrage maintenu */
        padding: 20px;
        width: 90%;
    }
    
    header {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    img {
        width: 50%;
    }
    
    button, .btn {
        font-size: 0.9em;
        padding: 8px 16px;
        width: 100%;
        margin-bottom: 10px;
    }
    
    p {
        font-size: 1em;
        padding: 8px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .fiche {
        display: flex;
        flex-direction: column;
    }
    
    .capacite h2 {
        font-size: 1.3em;
    }
    
    .capacite ul li {
        font-size: 1em;
    }
    
    .capaciteNiv {
        width: 90%;
        margin: 20px auto;
    }
}

/* Tablettes et petits écrans */
@media (min-width: 481px) {
    .container {
        margin: 20px auto; /* Centrage maintenu */
        padding: 30px;
        width: 90%;
    }
    
    header {
        font-size: 2em;
    }
    
    img {
        width: 50%;
    }
    
    .navigation-buttons {
        flex-wrap: wrap;
    }
    
    .fiche {
        display: flex;
        flex-direction: column;
    }
    
    button, .btn {
        font-size: 1em;
        padding: 10px 18px;
    }
    
    .capaciteNiv {
        width: 90%;
        margin: 30px auto;
    }
}

/* Écrans moyens */
@media (min-width: 769px) {
    body {
        background-size: cover;
    }

    .container {
        margin: 20px auto; /* Centrage maintenu */
        width: 90%;
        max-width: 800px; /* Limitation de largeur pour centrage optimal */
    }

    header {
        font-size: 2em;
    }

    img {
        width: 50%;
    }
    
    button, .btn {
        font-size: 1em;
        padding: 10px 18px;
    }

    p {
        font-size: 1em;
    }

    .atout, .inconvenient {
        font-size: 1em;
    }
    
    .fiche {
        display: flex;
        flex-direction: column;
    }
    
    .capaciteNiv {
        max-width: 800px;
        margin: 40px auto;
    }
}

/* Écrans large */
@media (min-width: 981px) {
    .container {
        max-width: 900px;
        margin: 20px auto; /* Centrage maintenu */
    }
    
    main {
        max-width: 1000px;
        margin: 50px auto; /* Centrage maintenu */
    }
    
    .fiche {
        display: flex;
        flex-direction: row;
    }
    
    img {
        width: 65%;
    }

    .atout, .inconvenient {
        font-size: 1.2em;
    }
    
    .capaciteNiv {
        max-width: 900px;
    }
}

/* Très grands écrans */
@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
        margin: 20px auto; /* Centrage maintenu */
        width: 80%; /* Réduction de la largeur sur grands écrans pour meilleur rendu */
    }
    
    main {
        max-width: 1400px;
        margin: 60px auto; /* Centrage maintenu */
    }

    img {
        width: 70%;
    }
    
    h1 {
        font-size: 3em;
    }
    
    p {
        font-size: 1.3em;
    }
    
    .fiche {
        display: flex;
        flex-direction: row;
    }
    
    .capaciteNiv {
        max-width: 1200px;
        width: 80%;
    }
}

/* Écrans extra larges */
@media (min-width: 1601px) {
    .container {
        max-width: 1600px;
        padding: 60px;
        margin: 30px auto; /* Centrage maintenu */
        width: 75%; /* Réduction de la largeur pour grands écrans */
    }
    
    main {
        max-width: 1800px;
        margin: 80px auto; /* Centrage maintenu */
        width: 80%;
    }
    
    h1 {
        font-size: 3.5em;
    }
    
    h2 {
        font-size: 2.5em;
    }
    
    h3 {
        font-size: 2em;
    }
    
    p {
        font-size: 1.4em;
        line-height: 2;
    }
    
    .capacite ul li {
        font-size: 1.3em;
    }
    
    .btn {
        font-size: 1.2em;
        padding: 15px 30px;
    }
    
    .capaciteNiv {
        max-width: 1600px;
        padding: 40px;
        width: 75%; /* Alignement cohérent avec le container */
        margin: 40px auto;
    }
    
    .fiche {
        display: flex;
        flex-direction: row;
    }
    
    img {
        width: 90%;
    }
}



