/* ------------------------------------------------------------------
   Pages "Documentation 2026" : conventions fiscales, dispositions
   fiscales non codifiees et sous-pages thematiques.
   Charte : vert DGI #058222 / #356618, fond #e1f7cc.
   ------------------------------------------------------------------ */

.docs-wrap {
    text-align: left;
}
.docs-wrap[dir="rtl"] {
    text-align: right;
}

.docs-title {
    color: #058222;
    font-size: 1.45rem;
    font-weight: bold;
    margin: 0 0 6px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #058222;
}
.docs-wrap p.docs-intro {
    color: #555;
    font-size: 0.95rem;
    margin: 10px 0 18px 0;
    text-align: inherit;
}

/* Lien de retour / navigation */
.docs-back {
    display: inline-block;
    margin-bottom: 14px;
    color: #356618;
    font-weight: bold;
    font-size: 0.9rem;
}
.docs-back:hover {
    color: #66a143;
    text-decoration: none;
}

/* Sections (par type de texte) */
.docs-section {
    margin-top: 26px;
}
.docs-section-title {
    color: #356618;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    padding: 6px 10px;
    background: #e1f7cc;
    border-left: 4px solid #058222;
    border-radius: 3px;
}
.docs-wrap[dir="rtl"] .docs-section-title {
    border-left: none;
    border-right: 4px solid #058222;
}

/* Liste de documents */
.docs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.docs-list li.docs-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #dfe8d8;
    border-radius: 4px;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.docs-list li.docs-item:hover {
    border-color: #91c89e;
    box-shadow: 0 2px 6px rgba(5, 130, 34, 0.15);
}
.docs-item .docs-icon {
    flex: 0 0 auto;
    color: #d01c1f;
    font-size: 1.7rem;
    margin-right: 14px;
}
.docs-wrap[dir="rtl"] .docs-item .docs-icon {
    margin-right: 0;
    margin-left: 14px;
}
.docs-item .docs-text {
    flex: 1 1 auto;
    min-width: 0;
}
.docs-item .docs-text a.docs-link {
    color: #222;
    font-weight: bold;
    line-height: 1.3;
    display: block;
}
.docs-item .docs-text a.docs-link:hover {
    color: #058222;
    text-decoration: none;
}
.docs-item .docs-meta {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #777;
}
.docs-item .docs-meta .badge {
    font-size: 0.75rem;
    font-weight: bold;
    vertical-align: middle;
}
.docs-item .docs-meta .badge-year {
    background: #058222;
    color: #fff;
}
.docs-item .docs-meta .badge-type {
    background: #e1f7cc;
    color: #356618;
    border: 1px solid #b7dba3;
}
.docs-item .docs-meta .docs-lang {
    margin-left: 6px;
    font-style: italic;
}
.docs-wrap[dir="rtl"] .docs-item .docs-meta .docs-lang {
    margin-left: 0;
    margin-right: 6px;
}
.docs-item .docs-dl {
    flex: 0 0 auto;
    margin-left: 12px;
    white-space: nowrap;
}
.docs-wrap[dir="rtl"] .docs-item .docs-dl {
    margin-left: 0;
    margin-right: 12px;
}
.docs-item .docs-dl .btn {
    border-color: #058222;
    color: #058222;
}
.docs-item .docs-dl .btn:hover {
    background: #058222;
    color: #fff;
}

/* Cartes des thematiques (sous-pages) */
.docs-themes {
    margin-top: 10px;
}
.docs-theme-card {
    display: block;
    height: 100%;
    padding: 16px 14px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #dfe8d8;
    border-top: 4px solid #058222;
    border-radius: 4px;
    color: #222;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}
.docs-theme-card:hover {
    text-decoration: none;
    color: #222;
    box-shadow: 0 4px 12px rgba(5, 130, 34, 0.18);
    transform: translateY(-2px);
}
.docs-theme-card .docs-theme-icon {
    color: #058222;
    font-size: 1.9rem;
    margin-bottom: 8px;
}
.docs-theme-card .docs-theme-title {
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 6px;
}
.docs-theme-card .docs-theme-count {
    font-size: 0.8rem;
    color: #777;
}
.docs-theme-card .docs-theme-more {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #356618;
    font-weight: bold;
}

/* Navigation entre sous-pages (bas de page) */
.docs-siblings {
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px dashed #b7dba3;
}
.docs-siblings .docs-siblings-title {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 8px;
}
.docs-siblings a.badge {
    font-size: 0.8rem;
    font-weight: normal;
    padding: 6px 10px;
    margin: 0 6px 6px 0;
    background: #fff;
    color: #356618;
    border: 1px solid #91c89e;
}
.docs-wrap[dir="rtl"] .docs-siblings a.badge {
    margin: 0 0 6px 6px;
}
.docs-siblings a.badge:hover {
    background: #058222;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .docs-list li.docs-item {
        flex-wrap: wrap;
    }
    .docs-item .docs-dl {
        flex-basis: 100%;
        margin: 8px 0 0 0;
        text-align: right;
    }
    .docs-wrap[dir="rtl"] .docs-item .docs-dl {
        text-align: left;
        margin: 8px 0 0 0;
    }
}

/* Titre de groupe (ex. "Textes generaux") au-dessus des sections par type */
.docs-group-title {
    color: #058222;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 34px 0 4px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #b7dba3;
}
