/* MASSERT SOFT – DoneEx-inspired style */
body {
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 14px;
    color: #444;
    background: #f4f4f4;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    margin-bottom: 15px;
    color: #333;
}
a { color: #5bb75b; }
a:hover { color: #4ca64c; }

.container { max-width: 1100px; }

/* ===== HEADER ===== */
#header-section {
    background: #1a1a1a;
    padding: 6px 0;
    border-bottom: 3px solid #5bb75b;
}

/* ===== NAVIGATION ===== */
#navigation {
    background: #222;
    border-bottom: 2px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}
#navigation .navbar {
    min-height: 36px;
}
#navigation .navbar-nav > li > a {
    color: #bbb;
    padding: 7px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.15s, color 0.15s;
}
#navigation .navbar-nav > li > a:hover {
    color: #fff;
    background: #111;
}
#navigation .navbar-nav > li > a.nav-link-success {
    color: #5bb75b;
}
#navigation .form-control {
    border: 1px solid #444;
    background: #2a2a2a;
    color: #ddd;
    font-size: 12px;
}
#navigation .form-control::placeholder { color: #777; font-size: 12px; }
#navigation .form-control:focus {
    border-color: #5bb75b;
    box-shadow: 0 0 0 0.2rem rgba(91,183,91,0.2);
    background: #333;
    color: #fff;
}

/* ===== MAIN CONTENT ===== */
.main-content { background: #fff; padding: 20px; margin-bottom: 15px; }

/* ===== SIDEBAR ===== */
.sidebar-box {
    background: #fff;
    padding: 18px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sidebar-box h3 {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #5bb75b;
    color: #333;
    padding-left: 0;
}
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box ul li {
    font-size: 13px;
    line-height: 2em;
    padding: 2px 0;
    border-bottom: 1px dotted #eee;
}
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a { color: #0088cc; text-decoration: none; }
.sidebar-box ul li a:hover { color: #005580; text-decoration: underline; }

/* ===== BUTTONS ===== */
.btn {
    border-radius: 2px;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 13px;
    transition: all 0.15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-success { background: #5bb75b; border-color: #5bb75b; color: #fff; }
.btn-success:hover { background: #4ca64c; border-color: #4ca64c; color: #fff; }
.btn-success .bi { color: #fff; }
.btn-outline-success { color: #5bb75b; border-color: #5bb75b; background: transparent; }
.btn-outline-success .bi { color: #5bb75b; }
.btn-outline-success:hover { background: #5bb75b; border-color: #5bb75b; color: #fff; }
.btn-outline-success:hover .bi { color: #fff; }
.btn-info .bi { color: #fff; }
.btn-warning .bi { color: #fff; }
.btn-danger .bi { color: #fff; }
.btn-primary { background: #0088cc; border-color: #0088cc; }
.btn-primary:hover { background: #0077b3; border-color: #0077b3; }
.btn-outline-light { color: #ddd; border-color: #555; }
.btn-outline-light:hover { background: #5bb75b; border-color: #5bb75b; color: #fff; }
.btn-outline-dark { color: #555; border-color: #ccc; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-outline-dark:hover { background: #5bb75b; border-color: #5bb75b; color: #fff; }
.btn-outline-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-sm { font-size: 12px; padding: 4px 10px; }
.btn-lg { font-size: 14px; padding: 10px 24px; }

/* ===== ICONS ===== */
.bi { font-size: 1.1em; vertical-align: -0.125em; }
.entry-title .bi { font-size: 1.2em; vertical-align: -0.15em; }
.sidebar-box h3 .bi { font-size: 1.15em; vertical-align: -0.15em; opacity: 0.85; }
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    color: #fff;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.icon-box-green { background: #5bb75b; }
.icon-box-blue { background: #0088cc; }
.icon-box-dark { background: #333; }
.icon-box-orange { background: #f0ad4e; }
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    color: #5bb75b;
    background: rgba(91,183,91,0.1);
    margin-right: 8px;
    flex-shrink: 0;
}
.sidebar-box ul li a .bi {
    font-size: 0.95em;
    opacity: 0.7;
    margin-right: 4px;
}
.sidebar-box ul li a:hover .bi { opacity: 1; }
#navigation .nav-link .bi { font-size: 0.95em; margin-right: 3px; }
.navbar-toggler .bi { font-size: 1.2em; }
.feature-icon + strong,
.feature-icon + b {
    margin-right: 4px;
}
article.page ul li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

/* ===== PRODUCT CARDS ===== */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}
.card-body { padding: 18px; }
.card-title { font-size: 1.1em; margin-bottom: 8px; color: #333; }
.card .btn { border-radius: 2px; }

/* ===== TABLES ===== */
.table { font-size: 13px; }
.table th {
    font-weight: 600;
    background: #f5f5f5;
    border-bottom: 2px solid #5bb75b;
    color: #333;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.3px;
}
.table td, .table th { padding: 8px 12px; vertical-align: middle; }
.table tbody tr:hover { background: #fafafa; }

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: 2px;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 13px;
    border: 1px solid #d0d0d0;
    padding: 7px 10px;
}
.form-control:focus {
    border-color: #5bb75b;
    box-shadow: 0 0 0 2px rgba(91,183,91,0.15);
}
.form-label { font-size: 13px; font-weight: 600; color: #555; margin-bottom: 4px; }

/* ===== WELL ===== */
.well {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 22px;
    margin: 20px 0;
    text-align: center;
}

/* ===== BADGE ===== */
.badge { font-weight: 400; border-radius: 2px; }
.panier-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    font-size: 0.6rem;
}

/* ===== PAGE ARTICLE ===== */
article.page {
    background: #fff;
    padding: 24px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
article.page p { font-size: 1em; line-height: 1.6em; }
article.page li { font-size: 1em; line-height: 1.7em; margin-bottom: 4px; }
.entry-title {
    margin-top: 0;
    font-size: 1.5em;
    color: #222;
    padding-bottom: 12px;
    border-bottom: 2px solid #5bb75b;
    margin-bottom: 18px;
}

/* ===== FOOTER ===== */
#footer-section {
    background: #1a1a1a;
    border-top: 3px solid #5bb75b;
    color: #999;
    padding: 18px 0;
    margin-top: 30px;
    font-size: 12px;
}
#footer-section a { color: #888; text-decoration: none; }
#footer-section a:hover { color: #5bb75b; }

/* ===== MODAL ===== */
.modal-content { border-radius: 3px; border: none; }
.modal-header {
    background: #222;
    color: #fff;
    border-radius: 3px 3px 0 0;
    padding: 12px 16px;
}
.modal-header .btn-close { filter: brightness(0) invert(1); }
.modal-body { padding: 16px; }
.modal-footer { padding: 12px 16px; }

/* ===== ALERT ===== */
.alert { border-radius: 2px; font-size: 13px; border: none; }

/* ===== DROPDOWN ===== */
.dropdown-menu { border-radius: 2px; font-size: 13px; border: 1px solid #ddd; box-shadow: 0 3px 8px rgba(0,0,0,0.1); }
.dropdown-item:active { background: #5bb75b; }

/* ===== LIST GROUP ===== */
.list-group-item { border-radius: 0 !important; font-size: 13px; padding: 10px 14px; }

/* ===== LIVRAISON FORM ===== */
.checkout-form { background: #fafafa; padding: 20px; border: 1px solid #e8e8e8; border-radius: 2px; }

/* ===== OAUTH BUTTONS ===== */
.btn-outline-dark { border-color: #d0d0d0; }
.btn-outline-dark:hover { background: #f5f5f5; color: #333; border-color: #bbb; }

/* ===== SEPARATOR ===== */
hr { border-top: 1px solid #e8e8e8; }

/* ===== TOAST ===== */
.toast { font-size: 13px; }

/* ===== BACK TO TOP ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #5bb75b;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#backToTop:hover {
    background: #4ca64c;
    transform: translateY(-3px);
}

/* ===== PAGE LOADING OVERLAY ===== */
#pageLoader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}
#pageLoader.active { display: flex; }
#pageLoader .loader-content {
    text-align: center;
}
#pageLoader .loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #5bb75b;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 12px;
}
#pageLoader .loader-text {
    font-size: 13px;
    color: #777;
    font-family: Tahoma, sans-serif;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    height: 240px;
    border-radius: 4px;
}
.skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 3px; }
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-title { height: 20px; width: 70%; margin-bottom: 12px; }
.skeleton-btn { height: 36px; border-radius: 3px; margin-top: 10px; }

/* ===== BUTTON LOADING ===== */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    top: 50%;
    left: 50%;
    margin-top: -7px;
    margin-left: -7px;
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #5bb75b;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-size: 14px;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .entry-title { font-size: 1.3em; }
    article.page { padding: 14px; }
    .sidebar-box { padding: 14px; }
    #navigation .navbar-nav > li > a { padding: 8px 12px; font-size: 12px; }
    #navigation form { margin-top: 8px; margin-bottom: 4px; }
}
