.guide-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 auto;
}

.sommaire {
    flex: 0 0 25%;
    max-width: 25%;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
}

.sommaire h2 {
    margin-top: 0;
}

.sommaire ul {
    list-style: none;
    padding-left: 0;
}

.sommaire ul li {
    margin-bottom: 10px;
}

.sommaire ul ul {
    padding-left: 15px;
    list-style: none;
}

.sommaire a {
    text-decoration: none;
    color: var(--Bleu3);
}

.sommaire .active {
    font-weight: bold;
    color: var(--Vert2);
    background-color: var(--Gris2);
    padding: 3px 5px;
    border-radius: 8px;
}

.sommaire a:hover {
    text-decoration: underline;
}

.contenu {
    flex: 1 1 auto;
    min-width: 0;
}

.contenu p {
    line-height: 1.6;
    margin: 15px 0;
}

.illustration {
    margin: 20px 0;
    width: 100%;
    clear: both;
    position: relative;
}

.image-wrapper {
    position: relative;
}

.illustration.left {
    float: left;
    margin-right: 15px;
    width: 50%;
}

.illustration.right {
    float: right;
    margin-left: 15px;
    width: 50%;
}

.illustration.centre {
    text-align: center;
    width: 50%;
    margin: 0 auto;
    clear: both;
}

.illustration.full {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    clear: both;
}

.illustration img {
    width: 100%;
    border-radius: 5px;
    display: block;
}

.illustration .legende {
    font-size: 0.85rem;
    text-align: center;
    color: #666;
    margin-top: 5px;
}

.credit {
    position: absolute;
    bottom: 2px;
    font-size: 0.7rem;
    opacity: 0.6;
    color: #aaa;
    padding: 2px 5px;
    border-radius: 3px;
}

.illustration:hover .credit {
    background: rgba(255, 255, 255, 0.8);
    /* Optionnel : fond semi-transparent pour lisibilité */
    color: #666;

}

.credit.left {
    left: 10px;
}

.credit.right {
    right: 10px;
}

.chapitre-navigation {
    margin-top: 40px;
}

.chapitre-links {
    display: flex;
    justify-content: space-between;
}

.chapitre-previous {
    text-align: left;
    flex: 1;
    color: var(--Bleu3);
    text-decoration: none;
    padding-right: 10px;
}

.chapitre-next {
    text-align: right;
    flex: 1;
    color: var(--Bleu3);
    text-decoration: none;
    padding-left: 10px;
}

.chapitre-previous:hover,
.chapitre-next:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .guide-layout {
        flex-direction: column;
    }

    .sommaire {
        flex-basis: auto;
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .contenu {
        width: 100%;
    }

    .illustration.left,
    .illustration.right {
        float: none;
        margin: 10px auto;
        max-width: 100%;
    }
}

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

figure.table table {
    font-style: italic;
    color: var(--Vert3);
    border: solid 1px var(--Bleu3);
}

figure.table td {
    text-align: center;
    border: none;
}

.texte-article {
    text-align: justify;
}