/* ============================================================
   Organisation pages — shared styles
   (organigramme, conseil_gestion, presidence, secretariat,
    directions, services, structures)
   ============================================================ */

/* ---- Page title (replaces breadcrumb + sec-title2) ---- */
.org-page-title {
    background: #f4f8f5;
    border-bottom: 3px solid #0e8640;
    padding: 28px 0 22px;
}
.org-page-title-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.org-page-title-inner i {
    font-size: 1.9rem;
    color: #0e8640;
    flex-shrink: 0;
}
.org-page-title-inner h1 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ---- Intro box ---- */
.org-intro-box {
    background: linear-gradient(135deg, #f8fff9 0%, #eafff0 100%);
    border-left: 5px solid #0e8640;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.org-intro-box .org-intro-icon {
    font-size: 2.2rem;
    color: #0e8640;
    flex-shrink: 0;
    margin-top: 3px;
}
.org-intro-box p         { margin: 0; color: #444; font-size: 15px; line-height: 1.75; }
.org-intro-box strong    { color: #0e8640; }

/* ---- Accordion ---- */
.org-accordion {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.org-accordion .card {
    border: none;
    border-left: 4px solid #e0e0e0;
    border-bottom: 1px solid #f2f2f2;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    transition: border-left-color .2s;
}
.org-accordion .card:last-child { border-bottom: none; }
.org-accordion .card-header {
    background: #fff;
    border: none;
    padding: 0;
}
.org-accordion .card-header a,
.org-accordion .card-header a.collapsible-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px !important;
    color: #222 !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: background .2s, color .2s;
    gap: 12px;
    position: static !important;
}
.org-accordion .card-header a::before,
.org-accordion .card-header a.collapsible-link::before {
    display: none !important;
}
.org-accordion .card-header a::after,
.org-accordion .card-header a.collapsible-link::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: #0e8640;
    transition: transform .3s;
    flex-shrink: 0;
    position: static !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    right: auto !important;
    transform: none;
}
.org-accordion .card-header a[aria-expanded="true"],
.org-accordion .card-header a.collapsible-link[aria-expanded="true"] {
    background: linear-gradient(135deg, #f0faf3 0%, #e6f7eb 100%);
    color: #0e8640 !important;
}
.org-accordion .card-header a[aria-expanded="true"]::after,
.org-accordion .card-header a.collapsible-link[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
.org-accordion .card-header a:hover,
.org-accordion .card-header a.collapsible-link:hover {
    background: #f8fdf9;
    color: #0e8640 !important;
}
.org-accordion .card:has(.collapse.show) {
    border-left-color: #0e8640;
}
.org-accordion .card-body {
    padding: 24px 24px 20px !important;
    background: #fafafa;
}
.org-accordion .card-body .row {
    justify-content: center;
}

/* Person card */
.org-person-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: #fff;
    border: 1.5px solid #e4f2eb;
    border-radius: 8px;
    margin-bottom: 10px;
}
.org-person-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e44b 0%, #0e8640 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.org-person-avatar i { color: #fff; font-size: 1.1rem; }
.org-person-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}
.org-person-info span { font-size: 12.5px; color: #777; }

/* Missions button */
.org-missions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #0e8640;
    color: #0e8640 !important;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: background .2s, color .2s;
}
.org-missions-btn:hover { background: #0e8640; color: #fff !important; }

/* ---- Sticky sidebar ---- */
@media (min-width: 992px) {
    .org-sidebar-sticky { position: sticky; top: 24px; }
}

/* ---- PDF card (organigramme only) ---- */
.org-pdf-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(14,134,64,.10), 0 1px 4px rgba(0,0,0,.07);
    overflow: hidden;
    margin-bottom: 24px;
}
.org-pdf-card-header {
    background: linear-gradient(250deg, #00e44b 19%, #0e8640 100%);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.org-pdf-card-header i    { font-size: 1.5rem; color: #fff; }
.org-pdf-card-header span { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .3px; }
.org-pdf-card-body        { padding: 0; background: #f5f5f5; }
.org-pdf-card-body iframe { display: block; width: 100%; height: 720px; border: none; }

/* ---- Download bar (organigramme only) ---- */
.org-download-section {
    background: #f8fff9;
    border: 1.5px dashed #0e8640;
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.org-download-section .org-dl-text   { display: flex; align-items: center; gap: 14px; }
.org-download-section .org-dl-text i { font-size: 2.2rem; color: #0e8640; }
.org-dl-info strong { display: block; font-size: 15px; font-weight: 700; color: #222; margin-bottom: 2px; }
.org-dl-info small  { color: #888; font-size: 12.5px; }

.org-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(250deg, #00e44b 19%, #0e8640 100%);
    color: #fff !important;
    padding: 12px 26px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none !important;
    transition: opacity .25s, transform .2s;
    box-shadow: 0 3px 10px rgba(14,134,64,.25);
    white-space: nowrap;
}
.org-dl-btn:hover { opacity: .88; transform: translateY(-2px); color: #fff !important; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .org-page-header-inner h1   { font-size: 1.4rem; }
    .org-page-header-inner i    { font-size: 1.8rem; }
    .org-intro-box              { flex-direction: column; gap: 10px; }
    .org-intro-box .org-intro-icon { font-size: 1.8rem; }
    .org-pdf-card-body iframe   { height: 420px; }
    .org-download-section       { flex-direction: column; text-align: center; align-items: center; }
    .org-download-section .org-dl-text { flex-direction: column; text-align: center; }
}