/* Réduire la largeur du contenu et ajouter un fond noir marqué sur les côtés */
body {
    font-family: Arial, sans-serif;
    background-color: #111; /* Fond noir pour le body */
    color: #fff;
    margin: 0;
    padding: 0;
    text-align: left;
    overflow-x: hidden;
}

/* Limiter la largeur du contenu avec un fond noir marqué */
.content {
    padding: 50px 15px; /* Réduit le padding horizontal */
    background: #111; /* Fond noir pour le contenu principal */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px; /* Réduit la largeur encore plus */
    margin: 0 auto; /* Centre le contenu */
    line-height: 1.8; /* Augmente l'espacement entre les lignes pour plus de lisibilité */
}

/* Container pour les articles */
.articles {
    flex: 1;
    padding-right: 15px;
    padding-left: 15px;
}

/* Article */
.article {
    background: #333;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    text-align: justify;
}

/* Limiter l'image dans l'article */
.article img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Titres des articles */
.article h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #00bcd4;
}

/* Paragraphes dans l'article */
.article p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Parallax background image */
.parallax {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    animation: parallaxAnimation 25s infinite ease-in-out;
    background-color: #111; /* Fond noir pour la parallax */
}

.parallax h1 {
    font-size: 3em;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    border-radius: 10px;
    color: #fff;
}

/* Limiter la largeur de la sidebar */
.sidebar {
    width: 250px;
    background: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes parallaxAnimation {
    0% {
        background-position: center 0;
    }
    50% {
        background-position: center 30%;
    }
    100% {
        background-position: center 0;
    }
}

/* Header */
header {
    background-color: rgba(30, 30, 30, 0.1);
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 1s ease-out;
}

/* Espacement de la navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00bcd4;
}

/* Articles spécifiques */
body.article-1 .parallax {
    background: url('image/article1-1.jpg') no-repeat center center/cover;
}

body.article-2 .parallax {
    background: url('image/article2-2.jpg') no-repeat center center/cover;
}

body.article-3 .parallax {
    background: url('image/article3-1.jpg') no-repeat center center/cover;
}

body.article-4 .parallax {
    background: url('image/photo4.png') no-repeat center center/cover;
}

body.article-5 .parallax {
    background: url('image/photo5.jpg') no-repeat center center/cover;
}

body.article-6 .parallax {
    background: url('image/photo6.jpg') no-repeat center center/cover;
}



/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes parallaxAnimation {
    0% {
        background-position: center 0;
    }
    50% {
        background-position: center 30%;
    }
    100% {
        background-position: center 0;
    }
}

/* Header */
header {
    background-color: rgba(30, 30, 30, 0.1);
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 1s ease-out;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00bcd4;
}

/* Parallax */
.parallax {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    animation: parallaxAnimation 25s infinite ease-in-out;
}

.parallax h1 {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    font-size: 2.5em;
    transition: transform 0.3s ease-in-out;
}

.parallax h1:hover {
    transform: scale(1.05);
}

.creature-image {
    width: 200px; /* Ajuste selon tes préférences */
    height: 200px; /* Même hauteur pour toutes */
    object-fit: cover; /* Coupe l'image pour la remplir sans déformation */
    border-radius: 10px; /* Coins arrondis */
}
