.doc-intro {
    padding: 20px 24px 10px;
    }
.doc-intro h1 {
    margin: 0 0 5px;
    color: var(--primary-color, #285447);
    }
.doc-intro p {
    margin: 0;
    color: var(--text-muted, #666);
    }
.doc-layout {
    display: grid;
    grid-template-columns: 240px minmax(0,1fr);
    gap: 24px;
    padding: 20px 24px 40px;
    align-items: start;
    }
.doc-sidebar {
    position: sticky;
    top: 16px;
    background: #f6f8f7;
    border: 1px solid #dce5e0;
    border-radius: 8px;
    padding: 16px;
    }
.doc-sidebar h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    }
.doc-sidebar a {
    display: block;
    padding: 8px;
    color: var(--primary-color, #285447);
    text-decoration: none;
    border-radius: 4px;
    }
.doc-sidebar a:hover, .doc-sidebar a.active {
    background: #e0eee6;
    }
.doc-content {
    min-width: 0;
    }
.doc-section {
    background: white;
    border: 1px solid #e1e7e3;
    border-radius: 8px;
    padding: 22px 28px;
    margin-bottom: 20px;
    scroll-margin-top: 20px;
    line-height: 1.65;
    }
.doc-section h2 {
    margin-top: 0;
    color: var(--primary-color, #285447);
    }
.doc-note {
    border-left: 4px solid #4caf50;
    padding: 12px 18px;
    background: #edf6ef;
    margin: 20px 0;
    }
.doc-note p {
    margin-bottom: 0;
    }
.doc-placeholder {
    border: 2px dashed #b7c8be;
    background: #f7f9f8;
    padding: 28px;
    text-align: center;
    color: #63776c;
    margin: 20px 0;
    }
.doc-section details {
    border-top: 1px solid #ddd;
    padding: 12px 0;
    }
.doc-section summary {
    cursor: pointer;
    font-weight: 600;
    }
@media(max-width: 850px) {
    .doc-layout {
        grid-template-columns: 1fr;
    padding: 14px;
    } .doc-sidebar { position: static;
    } .doc-section { padding: 18px;
    } }

/* =====================================
   Légende détaillée de la documentation
===================================== */

.documentation-legend {
    margin: 30px 0;
}

.doc-legend-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.doc-legend-section {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 25px;
}

.doc-legend-section h3 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.doc-legend-item {
    display: block;
    padding: 16px 0;
}

.doc-legend-item + .doc-legend-item {
    border-top: 1px solid #e5e5e5;
}

.doc-legend-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.doc-legend-heading h4 {
    margin: 0;
    font-size: 16px;
    color: #284b42;
}

.doc-legend-symbol {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-legend-symbol svg {
    width: 44px;
    height: 44px;
    display: block;
}


.doc-legend-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.doc-legend-introduction {
    margin: 12px 0 20px;
    padding: 12px 16px;
    background: #eef4f1;
    border-left: 3px solid #558574;
    border-radius: 4px;
}

.doc-legend-introduction h4 {
    margin: 0 0 6px;
    font-size: 15px;
}

.doc-legend-introduction p {
    margin: 0;
    line-height: 1.65;
}

/* Test d'alignement des symboles */

#documentation-legend .doc-legend-heading {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin: 0 0 8px !important;
}

#documentation-legend .doc-legend-symbol {
    display: flex !important;
    position: static !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}

#documentation-legend .doc-legend-symbol svg {
    display: block !important;
    position: static !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    transform: none !important;
}

#documentation-legend .doc-legend-heading h4 {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}




@media (max-width: 600px) {
    .doc-legend-section {
        padding: 15px;
    }

    .doc-legend-item {
        gap: 10px;
    }
}
