.ec-body {
    margin: 0;
    background: #f4f7fb;
    color: #334155;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Header client --- */
.ec-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(2, 32, 71, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ec-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ec-logo {
    max-height: 48px;
    width: auto;
    display: block;
}

.ec-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    min-width: 0;
}

.ec-header-sep {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.ec-back-site-link {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.ec-back-site-link:hover {
    color: #005DB1;
    text-decoration: underline;
}

.ec-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.ec-header-user {
    text-align: right;
    font-size: 13px;
    line-height: 1.4;
}

.ec-header-user strong {
    display: block;
    color: #022047;
    font-weight: 600;
    font-size: 14px;
}

.ec-header-user span {
    color: #64748b;
}

.ec-back-link {
    color: #005DB1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.ec-back-link:hover {
    background: #e8f2fc;
    color: #005DB1;
    text-decoration: none;
}

/* --- Main --- */
.ec-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.ec-page {
    width: 100%;
}

.ec-layout {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.ec-sidebar {
    padding: 0 12px;
}

.ec-content {
    padding: 0 12px;
}

/* --- Sidebar panneau --- */
.ec-sidebar-panel {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(2, 32, 71, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

.ec-sidebar-profile {
    background: linear-gradient(135deg, #005DB1 0%, #022047 100%);
    color: #ffffff;
    padding: 24px 20px;
}

.ec-sidebar-profile h4 {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px;
    opacity: 0.8;
}

.ec-profile-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.ec-profile-meta {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 16px;
}

.ec-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ec-profile-link:hover,
.ec-profile-link:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.ec-sidebar-profile .btnCommander {
    display: block;
    width: 100%;
    text-align: center;
}

.ec-sidebar-nav {
    padding: 8px 0;
}

.ec-sidebar-nav h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    padding: 12px 20px 8px;
    margin: 0;
}

.ec-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ec-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.ec-nav-list li a:hover {
    background: #f4f7fb;
    color: #005DB1;
}

.ec-nav-list li a.currentA,
.ec-nav-list li a.ec-nav-active {
    background: #e8f2fc;
    color: #005DB1;
    border-left-color: #005DB1;
    font-weight: 600;
}

.ec-nav-list li a.ec-nav-external::after {
    content: '↗';
    font-size: 11px;
    margin-left: auto;
    opacity: 0.5;
}

.ec-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #005DB1;
}

.ec-nav-list li a.currentA .ec-nav-icon,
.ec-nav-list li a.ec-nav-active .ec-nav-icon {
    color: #FD0804;
}

/* --- Footer --- */
.ec-footer {
    background: linear-gradient(135deg, #022047 0%, #005DB1 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 24px 32px;
    margin-top: 0;
}

.ec-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.ec-footer-contact h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ec-footer-contact p {
    margin: 0 0 6px;
    font-size: 14px;
}

.ec-footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.ec-footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.ec-footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.ec-footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 8px;
}

@media (max-width: 991px) {
    .ec-sidebar,
    .ec-content,
    .pi-col-sm-3,
    .pi-col-sm-9 {
        width: 100% !important;
        float: none !important;
    }

    .ec-sidebar {
        margin-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .ec-main {
        padding: 20px 16px 32px;
    }

    .ec-header-inner {
        padding: 12px 16px;
    }

    .ec-logo {
        max-height: 40px;
    }

    .ec-header-sep {
        display: none;
    }

    .ec-header-left {
        gap: 12px;
    }
}
