.pv .toc {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem 2rem;
    margin: 2rem 0;
}

.pv .toc ul {
    list-style-type: none;
    padding-left: 0;
}

.pv .toc ul ul {
    padding-left: 1.5rem;
}

.pv .toc li {
    margin: 0.5rem 0;
}

.pv .toc a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.pv .toc a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Sommaire - Plus sobre */
.pv .sommaire {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 20px 30px;
    margin: 30px 0;
    box-shadow: none;
}

.pv .sommaire h1 {
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: 'Poynter Oldstyle Display', 'Playfair Display', Georgia, serif;
    text-transform: capitalize; /* Changement de uppercase à capitalize */
    letter-spacing: 1px;
}

.pv .sommaire h2 {
    margin: 8px 0;
    font-size: 1rem;
    font-weight: normal;
    text-transform: none; /* Ne pas transformer le texte */
}

/* Layout structurel - Content row */
.pv .content-row {
    display: flex;
    align-items: stretch; /* Change de flex-start à stretch pour que les colonnes s'étirent */
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.pv .text-column {
    flex: 3;
}

.pv .image-column {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.pv .content-row .image-column figure {
    height: 100%; /* Prend toute la hauteur disponible */
    margin: 0;
    display: flex;
    flex-direction: column;
}

.pv .content-row .image-column figure img {
    flex-grow: 1; /* L'image grandit pour remplir l'espace */
    object-fit: cover; /* L'image couvre l'espace tout en préservant son ratio */
    height: auto; /* La hauteur est automatique basée sur l'espace disponible */
    max-height: none; /* Pas de limite de hauteur maximale */
}

/* Pour l'image à gauche */
.pv .content-row.image-left {
    flex-direction: row-reverse;
}

/* Articles */
.pv .article, .pv .article-medium, .pv .article-short {
    margin: 1.5em auto;
    padding: 0 1rem;
    position: relative;
}

/* Styles pour les articles à colonnes */
@media (min-width: 1024px) {
    .pv .article:not(.article-short):not(.article-medium) {
        column-count: 3;
        column-rule: 1px solid #ddd;
        column-gap: 32px;
    }
    
    .pv .article-medium {
        column-count: 2;
        column-gap: 32px;
        column-rule: 1px solid #ddd; /* Ajout de la bordure entre les colonnes */
    }
    
    .pv .text-image-layout .text-side {
        flex: 3;
        column-count: 2;
        column-gap: 1.5rem;
        column-rule: 1px solid #ddd; /* Bordure entre colonnes */
    }
}

/* Nouvelle classe pour les textes à côté des images avec colonnes */
.pv .text-image-layout {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    break-inside: avoid;
    column-span: all;
}

.pv .text-image-layout .text-side {
    flex: 3;
    column-count: 2;
    column-gap: 1.5rem;
    column-rule: 1px solid #ddd; /* Bordure entre colonnes */
}

.pv .text-image-layout .image-side {
    flex: 1;
    align-self: flex-start;
}

/* Styles titres de style journal */
.pv .section-title {
    font-family: 'Poynter Oldstyle Display', 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin: 1.5em 0 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #333;
    column-span: all;
    text-transform: capitalize; /* Première lettre en majuscule */
}

.pv .subsection-title {
    font-family: 'Poynter Oldstyle Display', 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 1.2em 0 0.8em;
    column-span: all;
    color: #222;
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3em;
    text-transform: uppercase; /* Changé de capitalize à uppercase pour garder les majuscules */
}

.pv .chapter-title {
    font-family: 'Poynter Oldstyle Display', 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1em 0 0.8em;
    column-span: all;
    color: #333;
}

/* Paragraphes - Style journal */
.pv p {
    margin: 0 0 1.2em;
    text-align: justify;
    font-size: 1.05em;
    line-height: 1.7;
    hyphens: auto;
    font-family: 'Orpheus Pro', 'Source Serif Pro', Georgia, 'Times New Roman', Times, serif;
}

/* Images - Style plus sobre et classique */
.pv figure {
    margin: 0 0 1.2rem;
    break-inside: avoid;
    position: relative;
    background-color: transparent; /* Changement pour transparent */
    border: 1px solid #ddd;
    overflow: hidden;
    box-shadow: none;
    transition: none;
}

.pv figure:hover {
    transform: none;
    box-shadow: none;
}

.pv figure img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    transition: none;
}

.pv figcaption {
    padding: 8px;
    font-size: 0.75em;
    text-align: center;
    color: #fff; /* Changé pour blanc */
    background: rgba(0, 0, 0, 0.7); /* Fond semi-transparent noir */
    margin: 0;
    line-height: 1.4;
    font-style: italic;
    position: absolute; /* Position absolue */
    bottom: 0; /* Attaché au bas de l'image */
    left: 0;
    right: 0;
    max-height: 40%; /* Hauteur maximum */
    overflow: auto; /* Ajout de défilement si nécessaire */
    font-family: 'Futura PT', 'Arial', sans-serif;
}

/* Images intégrées dans le texte */
.pv .inline-image {
    float:none !important;
    /*float: right;*/
    /*max-width: 40%;*/
    max-height: 580px;
    margin: 0 0 15px 0px !important;
}

.pv .inline-image.left {
    float:none !important;
    /*float: right;*/
    /*max-width: 40%;*/
    margin: 0 0 15px 0px !important;
}

/* Grilles d'images */
.pv .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    background: transparent;
    padding: 0;
    column-span: all;
}

.pv .image-grid figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pv .image-grid img {
    flex: 1;
    height: 580px; /* Hauteur fixe réduite de 200px à 180px */
    object-fit: cover; /* Maintien du ratio avec rognage si nécessaire */
    max-height: 580px; /* Ajout d'une hauteur maximale pour s'assurer que l'image ne dépasse pas */
}

/* Image pleine largeur */
.pv figure.full-width {
    column-span: all;
    margin: 1.5rem 0 !important;
    max-width: 100%;
}

.pv figure.full-width img {
    max-height: 500px;
    object-fit: contain;
}

/* Ajustements pour les figures en pleine largeur */
.pv figure.full-width figcaption {
    max-height: 30%; /* Un peu moins haut pour les figures en pleine largeur */
}

/* Séparateurs - Style journal classique */
.pv .separator {
    height: 1px;
    background: #ddd;
    margin: 1.5rem 0;
    column-span: all;
}

/* Citations */
.pv blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: #f8f8f8;
    border-left: 4px solid #333;
    font-style: italic;
    font-size: 1.05em;
    line-height: 1.6;
    color: #333;
    column-span: all;
    break-inside: avoid;
    position: relative;
}

/* Container de légende */
.pv .caption-container {
    background: #f0f0f0;
    padding: 10px 15px;
    margin: 15px 0 20px;
    border-left: 3px solid #333;
    font-size: 0.9em;
    font-style: italic;
    color: #444;
    break-inside: avoid;
}

/* Listes */
.pv ul, .pv ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.pv li {
    margin-bottom: 0.4em;
    font-size: 1.05em;
    line-height: 1.6;
    font-family: 'Orpheus Pro', 'Source Serif Pro', Georgia, 'Times New Roman', Times, serif;
}

/* Espacement sections */
.pv .section {
    margin: 3em 0;
    clear: both;
    position: relative;
    padding-top: 1.5rem;
}

.pv .section:first-child {
    border-top: none;
    padding-top: 0;
}

/* Responsive design */
@media (max-width: 1023px) {
    /* Single column layout for all article types */
    .pv .article,
    .pv .article:not(.article-short),
    .pv .article-medium,
    .pv .article-short {
        column-count: 1;
        column-gap: 0;
    }
    
    .pv .text-image-layout .text-side {
        column-count: 1;
        column-gap: 0;
    }
    
    /* One image per row in image grids */
    .pv .image-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pv .image-grid img {
        height: auto;
        max-height: 580px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .pv .section-title {
        font-size: 1.8rem;
    }
    
    .pv .content-row, 
    .pv .content-row.image-left {
        flex-direction: column;
    }
    
    .pv .image-column {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pv .inline-image, 
    .pv .inline-image.left {
        float: none;
        max-width: 100%;
        margin: 1rem 0;
    }
    
    /* Remove redundant grid-template-columns definition */
    .pv .image-grid {
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .pv .image-grid {
        gap: 1rem;
    }
    
    .pv .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    
    .pv figure figcaption {
        font-size: 0.8em;
        padding: 6px;
    }
    
    .pv figcaption {
        padding: 6px;
        font-size: 0.75em;
        max-height: 50%; /* Plus de hauteur sur mobile */
    }
}

/* Pour les cas où l'image est plus petite que le texte */
@media (min-width: 768px) {
    .pv .content-row .text-column {
        display: flex;
        flex-direction: column;
    }
    
    .pv .content-row .text-column .article-short,
    .pv .content-row .text-column .article-medium {
        flex-grow: 1;
    }
}