body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Style de la bannière */
.banniere {
    width: 100%; /* La bannière s'adapte à la largeur du conteneur */
    height: auto;
    display: block;
    margin: 0 auto 20px auto; /* Centrer l'image et ajouter une marge inférieure */
    max-width: 800px; /* Limite la largeur pour qu'elle reste cohérente avec le reste du contenu */
    border-radius: 5px; /* Ajoute des coins arrondis pour un effet moderne */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ajoute une ombre légère pour un effet de profondeur */
}

/* Style du logo */
.logo {
    position: fixed;
    top: 20px;
    right: 30px; /* Change de 'left' à 'right' pour le placer à droite */
    width: 120px; /* Ajustez la taille du logo selon vos préférences */
    height: auto;
    z-index: 10; /* Assure que le logo reste au-dessus des autres éléments */
    background-color: transparent; /* Suppression de la couleur de fond */
    box-shadow: none; /* Suppression de l'ombre */
    border-radius: 0; /* Suppression des coins arrondis */
}

/* Conteneur pour le bouton centré */
.button-container {
    display: flex;
    justify-content: center; /* Centre le bouton horizontalement */
    margin: 20px 0; /* Ajoute de l'espace autour du bouton */
}

/* Style du bouton de retour à l'accueil */
.back-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #E74C3C; /* Couleur rouge vif du logo */
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px; /* Bouton arrondi pour un effet moderne */
    border: 2px solid #E74C3C;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre pour un effet de profondeur */
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: white; /* Inversion de la couleur de fond au survol */
    color: #E74C3C; /* Changement de la couleur du texte au survol */
    border-color: #E74C3C;
}

/* Style des titres et autres éléments */
h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-top: 30px; /* Ajuste la marge pour qu'elle soit en dessous de la bannière */
    text-transform: uppercase;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 5px;
}

h4 {
    color: #34495e;
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid #bdc3c7;
}

/* Style des paragraphes */
p {
    font-size: 1em;
    margin-bottom: 15px;
}

/* Listes stylisées */
ol, ul {
    margin: 20px 0;
    padding-left: 40px;
}

li {
    margin-bottom: 10px;
}

li p {
    margin-bottom: 5px;
}

/* Citations et emphases */
strong {
    color: #e74c3c;
}

/* Style pour les blocs de contenu */
blockquote {
    font-style: italic;
    color: #7f8c8d;
    border-left: 4px solid #e74c3c;
    padding-left: 15px;
    margin: 20px 0;
}

/* Hyperliens */
a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dotted #3498db;
}

a:hover {
    color: #e74c3c;
    border-bottom: 1px solid #e74c3c;
}

/* Style des images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Espacement supplémentaire pour la lisibilité */
section {
    margin-bottom: 40px;
}

/* Effets de transition et animation */
h3, h4, p, li, blockquote, a {
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Flexbox layout for images and text */
.img-text-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* Images aligned to the left or right */
.img-left {
    margin-right: 20px;
    width: 40%;
}

.img-right {
    margin-left: 20px;
    width: 40%;
}

/* Text will align based on image position */
.text-content {
    width: 55%;
    text-align: justify;
}

/* Correct alternation based on the .img-text-container index, not global child order */
.img-text-container:nth-of-type(odd) .text-content {
    order: 1;
}

.img-text-container:nth-of-type(odd) img {
    order: 2;
}

.img-text-container:nth-of-type(even) .text-content {
    order: 2;
}

.img-text-container:nth-of-type(even) img {
    order: 1;
}

/* Ensure that images stack properly on smaller screens */
@media screen and (max-width: 768px) {
    .img-text-container {
        flex-direction: column;
    }

    .img-left, .img-right, .text-content {
        width: 100%;
        margin: 0;
    }
}

/* Centrage du paragraphe */
p {
    text-align: justify;
    margin-bottom: 15px;
}