body {
    background-color: #f9f9f9; /* Gris très clair */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.pagination {
    flex-wrap: wrap; row-gap: .5rem; 
}

.navbar-dark .nav-link.active { 
    color: var(--bs-primary) !important; 
}

.navbar-dark .navbar-brand.text-primary { 
    color: var(--bs-primary) !important; 
}

.footer-images img {
    max-height: 80px;
    width: 100%;
    object-fit: contain;
}

.main-logo {
    max-width: 100%;
    height: auto;
}

.v-spacer {
    flex-grow: 1;
}

.lettrine {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    float: left;
    margin-right: 0.1em;
    line-height: 1;
}

.header-images {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    position: relative;
}

.header-text {
    max-width: 60%;
}

.header-images img {
    max-height: 100px;
    width: auto;
}

.flag {
    height: 48px;
    transform-origin: center;
}

.rotate-left {
    transform: rotate(-11.333deg);
}

.rotate-right {
    transform: rotate(11.333deg);
}

@media (max-width: 768px) {
    .rotate-left {
        transform: rotate(0deg);
    }
    
    .rotate-right {
        transform: rotate(0deg);
    }
    
    .header-images {
        flex-direction: column;
    }
    
    .header-images img {
        max-height: 50px;
    }
    
    .header-text {
        max-width: 100%;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .header-text .lead, .header-text cite {
        font-size: 1rem;
    }
    
    .footer-images img {
        max-width: 100%;
        height: auto;
    }
}

@media (min-width: 768px) {
    .header-images .logo-left {
        margin-right: 30px;
    }
    
    .header-images .logo-right {
        margin-left: 30px;
    }
    
    .header-images img {
        margin: 0 10px;
    }
}

/* Page comptine */
.container {
    max-width: 1200px; /* Maximiser l'espace horizontal */
    flex-grow: 1; /* Assurer que le container prenne l'espace restant */
}

.media-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.media-container .player, .media-container .illustration {
    flex: 1;
    text-align: center;
}

.media-container .illustration img {
    max-width: 200px;
    height: auto;
}

.poetry-columns {
    display: flex;
    flex-wrap: wrap; /* Permet aux colonnes de s'ajuster sur une nouvelle ligne si nécessaire */
    justify-content: space-between;
}

.poetry-columns .poetry-col {
    display: flex;
    flex-direction: column; /* Disposer le contenu en colonne */
    align-items: center; /* Centrer horizontalement */
    margin: 0 auto; /* Centrer la colonne */
    width: 100%; /* Assurer que la colonne prend toute la largeur sur les petits écrans */
    margin-bottom: 20px; /* Ajouter de l'espace entre les colonnes */
}

@media (min-width: 768px) { /* Appliquer les styles pour les écrans moyens et plus grands */
    .poetry-columns .poetry-col {
        width: 48%; /* Deux colonnes de même largeur sur les écrans moyens et plus grands */
        margin-bottom: 0; /* Retirer l'espace entre les colonnes */
    }
}

.content-aligned {
    text-align: justify; /* Justifier le texte */
    margin-top: 20px; /* Ajouter de l'espacement entre le titre et le texte */
    max-width: 90%; /* Limiter la largeur du contenu */
    margin-left: auto; /* Centrer horizontalement */
    margin-right: auto; /* Centrer horizontalement */
}

.poetry-columns .poetry-col h3 {
    text-align: center;
}

footer {
    margin-top: auto; /* Pousser le footer en bas de page */
    width: 100%; /* Assurer que le footer prend toute la largeur de l'écran */
    padding-top: 10px; /* Ajouter du padding en haut du footer */
    background-color: #343a40; /* Fond sombre pour le footer */
}

.footer-img {
    max-height: 150px;
    /* Limite la hauteur des images */
    object-fit: contain;
    /* Maintient le ratio des images */
}
.footer-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* Assure que les images sont centrées verticalement */
}