/* =======================================================
   DigiNetCompta
   Style principal
======================================================= */


/* =======================================================
   VARIABLES ET COULEURS
======================================================= */

:root {

    --primary: #109191;

    --primary-dark: #0B7070;

    --primary-light: #E7F5F5;

    --primary-hover: #0D7F7F;

    --secondary: #6c757d;

    --success: #198754;

    --danger: #dc3545;

    --warning: #ffc107;

    --dark: #212529;

    --light: #f8f9fa;

    --white: #ffffff;

}


/* =======================================================
   BODY
======================================================= */

body {

    font-family: 'Poppins', sans-serif;

    background: #f8f9fa;

    color: #343a40;

    line-height: 1.6;

}


/* =======================================================
   LIENS
======================================================= */

a {

    text-decoration: none;

    transition: all 0.3s ease;

}

a:hover {

    text-decoration: none;

}


/* =======================================================
   COULEURS BOOTSTRAP PERSONNALISÉES
======================================================= */

.text-primary {

    color: var(--primary) !important;

}

.bg-primary {

    background-color: var(--primary) !important;

}

.border-primary {

    border-color: var(--primary) !important;

}


/* =======================================================
   NAVBAR
======================================================= */

.navbar {

    background: #ffffff;

    padding: 15px 0;

    box-shadow: 0 0 0 0.15rem rgba(16, 145, 145, 0.20);

}

.navbar-brand {

    font-size: 1.6rem;

    font-weight: 700;

    color: var(--primary) !important;

}

.navbar-brand:hover {

    color: var(--primary-dark) !important;

}

.nav-link {

    font-weight: 500;

    color: #444;

    margin: 0 8px;

    transition: all 0.3s ease;

}

.nav-link:hover {

    color: var(--primary) !important;

}

.nav-link.active {

    color: var(--primary) !important;

}


/* =======================================================
   HERO
======================================================= */

.hero {

    padding: 90px 0;

    background: linear-gradient(
        135deg,
        #f8fffe,
        var(--primary-light)
    );

}

.hero h1 {

    font-size: 3rem;

    font-weight: 700;

    margin-bottom: 20px;

}

.hero p {

    font-size: 1.2rem;

    color: #666;

}

.hero .btn {

    margin-top: 20px;

    margin-right: 10px;

}


/* =======================================================
   BOUTONS
======================================================= */

.btn {

    border-radius: 8px;

    transition: all 0.3s ease;

}

.btn-primary {

    background-color: var(--primary);

    border-color: var(--primary);

    color: #ffffff;

}

.btn-primary:hover,
.btn-primary:focus {

    background-color: var(--primary-dark);

    border-color: var(--primary-dark);

    color: #ffffff;

    transform: translateY(-2px);

}

.btn-outline-primary {

    color: var(--primary);

    border-color: var(--primary);

}

.btn-outline-primary:hover,
.btn-outline-primary:focus {

    background-color: var(--primary);

    border-color: var(--primary);

    color: #ffffff;

    transform: translateY(-2px);

}


/* =======================================================
   CARTES
======================================================= */

.card {

    border: none;

    border-radius: 15px;

    transition: all 0.3s ease;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

}

.card:hover {

    transform: translateY(-6px);

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);

}

.card img {

    border-radius: 15px 15px 0 0;

}


/* =======================================================
   ICON BOX
======================================================= */

.icon-box {

    width: 70px;

    height: 70px;

    border-radius: 50%;

    background: var(--primary-light);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

    color: var(--primary);

    margin: auto;

}


/* =======================================================
   STATISTIQUES
======================================================= */

.stats {

    background: #ffffff;

    border-radius: 15px;

    padding: 30px;

    text-align: center;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    transition: all 0.3s ease;

}

.stats:hover {

    transform: translateY(-5px);

    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);

}

.stats h2 {

    font-weight: 700;

    color: var(--primary);

}

.stats p {

    margin: 0;

    color: #777;

}


/* =======================================================
   BADGES
======================================================= */

.badge.bg-primary {

    background-color: var(--primary) !important;

}


/* =======================================================
   PAGINATION
======================================================= */

.page-link {

    color: var(--primary);

}

.page-link:hover {

    color: var(--primary-dark);

    background-color: var(--primary-light);

}

.page-item.active .page-link {

    background-color: var(--primary);

    border-color: var(--primary);

}


/* =======================================================
   FORMULAIRES
======================================================= */

.form-control {

    border-radius: 8px;

    box-shadow: none;

}

.form-control:focus {

    border-color: var(--primary);

    box-shadow: 0 0 0 0.15rem rgba(29, 196, 185, 0.20);

}

.form-select {

    border-radius: 8px;

}

.form-select:focus {

    border-color: var(--primary);

    box-shadow: 0 0 0 0.15rem rgba(29, 196, 185, 0.20);

}


/* =======================================================
   INPUT GROUP
======================================================= */

.input-group-text {

    border-radius: 8px 0 0 8px;

}


/* =======================================================
   ALERTES
======================================================= */

.alert {

    border-radius: 10px;

}


/* =======================================================
   FOOTER
======================================================= */

footer {

    background: #212529;

    color: #ffffff;

}

footer h4 i,
footer p i {

    color: var(--primary) !important;

}

footer h5 {

    margin-bottom: 20px;

}

.footer-link {

    color: #ced4da;

    display: block;

    padding: 6px 0;

    transition: all 0.3s ease;

}

.footer-link:hover {

    color: var(--primary);

    padding-left: 8px;

}


/* =======================================================
   LOADER
======================================================= */

#loader {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: #ffffff;

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 99999;

}


/* =======================================================
   RETOUR EN HAUT
======================================================= */

#backToTop {

    position: fixed;

    bottom: 25px;

    right: 25px;

    display: none;

    width: 45px;

    height: 45px;

    border-radius: 50%;

    background-color: var(--primary);

    border-color: var(--primary);

    z-index: 9999;

}

#backToTop:hover {

    background-color: var(--primary-dark);

}


/* =======================================================
   DROPDOWN
======================================================= */

.dropdown-item {

    transition: all 0.2s ease;

}

.dropdown-item:hover {

    background-color: var(--primary-light);

    color: var(--primary-dark);

}


/* =======================================================
   LIST GROUP
======================================================= */

.list-group-item {

    border-color: #eeeeee;

}


/* =======================================================
   RESPONSIVE TABLETTE
======================================================= */

@media (max-width: 991px) {

    .hero {

        text-align: center;

    }

    .hero h1 {

        font-size: 2.2rem;

    }

    .navbar-nav {

        margin-top: 20px;

    }

}


/* =======================================================
   RESPONSIVE MOBILE
======================================================= */

@media (max-width: 768px) {

    .hero {

        padding: 60px 0;

    }

    .hero h1 {

        font-size: 2rem;

    }

}
/* ============================================================
   PAGE DE CONNEXION
============================================================ */

.login-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at top left,
            rgba(16, 145, 145, 0.12),
            transparent 35%
        ),
        #f8f9fa;
}

.login-card {
    border-radius: 20px;
}

.login-welcome {
    min-height: 650px;
    background:
        linear-gradient(
            135deg,
            rgba(16, 145, 145, 1),
            rgba(8, 92, 92, 1)
        );
}

.login-logo {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.7rem;
}

.login-feature {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
}

.login-feature i {
    font-size: 1.3rem;
}

.login-section .form-control,
.login-section .input-group-text,
.login-section .btn {
    min-height: 52px;
}

.login-section .form-control:focus {
    border-color: #109191;
    box-shadow: 0 0 0 0.25rem rgba(16, 145, 145, 0.15);
}

.login-section .form-check-input:checked {
    background-color: #109191;
    border-color: #109191;
}

@media (max-width: 991.98px) {

    .login-card {
        max-width: 650px;
        margin: auto;
    }

}
/* ============================================================
   ADMINISTRATION
============================================================ */

.admin-body {
    margin: 0;
    background: #f4f7f9;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}


/* SIDEBAR */

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: 270px;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border-right: 1px solid #e9ecef;

    z-index: 1000;
}

.admin-sidebar-header {
    padding: 22px;
    border-bottom: 1px solid #e9ecef;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;

    color: #109191;

    font-size: 1.35rem;
    font-weight: 700;
}

.admin-logo-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #ffffff;

    background: #109191;
}

.admin-sidebar-menu {
    flex: 1;

    overflow-y: auto;

    padding: 20px 15px;
}

.admin-menu-title {
    padding: 15px 12px 8px;

    color: #adb5bd;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.8px;
}

.admin-menu-link {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 12px 15px;
    margin-bottom: 5px;

    border: none;
    border-radius: 9px;

    text-decoration: none;

    color: #5f6b76;

    background: transparent;

    transition: all 0.2s ease;
}

.admin-menu-link i {
    font-size: 1.15rem;
}

.admin-menu-link:hover {
    color: #109191;

    background: rgba(16, 145, 145, 0.08);
}

.admin-menu-link.active {
    color: #ffffff;

    background: #109191;
}

.admin-sidebar-footer {
    padding: 15px;

    border-top: 1px solid #e9ecef;
}

.admin-logout {
    cursor: pointer;

    color: #dc3545;
}


/* CONTENU */

.admin-main {
    width: calc(100% - 270px);

    min-height: 100vh;

    margin-left: 270px;

    display: flex;
    flex-direction: column;
}


/* NAVBAR */

.admin-navbar {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 30px;

    background: #ffffff;

    border-bottom: 1px solid #e9ecef;

    position: sticky;

    top: 0;

    z-index: 900;
}

.admin-user-button {
    display: flex;
    align-items: center;
    gap: 10px;

    border: none;

    background: transparent;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #109191;

    color: #ffffff;

    font-weight: 700;
}


/* CONTENT */

.admin-content {
    flex: 1 0 auto;

    width: 100%;

    padding: 30px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 30px;
}


/* STATISTIQUES */

.admin-stat-card {
    min-height: 150px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px;

    border-radius: 14px;

    background: #ffffff;

    border: 1px solid #edf0f2;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.admin-stat-label {
    color: #6c757d;

    font-size: 0.9rem;
}

.admin-stat-number {
    margin: 8px 0 5px;

    font-weight: 700;
}

.admin-stat-info {
    color: #adb5bd;

    font-size: 0.8rem;
}

.admin-stat-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(16, 145, 145, 0.10);

    color: #109191;

    font-size: 1.8rem;
}


/* CARDS */

.admin-card {
    overflow: hidden;

    border-radius: 14px;

    background: #ffffff;

    border: 1px solid #edf0f2;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.admin-card-header {
    padding: 20px 25px;

    border-bottom: 1px solid #edf0f2;
}

.admin-card-body {
    padding: 25px;
}


/* EMPTY STATE */

.admin-empty-state {
    padding: 60px 20px;

    text-align: center;

    color: #adb5bd;
}

.admin-empty-state i {
    display: block;

    margin-bottom: 15px;

    font-size: 3rem;

    color: #109191;
}

.admin-empty-state h5 {
    color: #495057;
}


/* ACTIONS RAPIDES */

.admin-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px;

    border-radius: 9px;

    text-decoration: none;

    color: #495057;

    background: #f8f9fa;

    transition: all 0.2s ease;
}

.admin-quick-action:hover {
    color: #ffffff;

    background: #109191;

    transform: translateX(3px);
}


/* FOOTER */

.admin-footer {
    flex-shrink: 0;

    width: 100%;

    padding: 20px 30px;

    color: #6c757d;

    background: #ffffff;

    border-top: 1px solid #e9ecef;

    font-size: 0.85rem;
}


/* RESPONSIVE */

@media (max-width: 991.98px) {

    .admin-sidebar {
        display: none;
    }

    .admin-main {
        width: 100%;
        margin-left: 0;
    }

    .admin-content {
        padding: 20px;
    }

    .admin-navbar {
        padding: 15px 20px;
    }

}
/* ============================================================
   ADMIN - CATÉGORIES
============================================================ */

.admin-table thead th {
    padding: 15px 20px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #edf0f2;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.category-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: rgba(16, 145, 145, 0.10);

    color: #109191;

    font-size: 1.2rem;
}

.delete-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;
    margin-right: auto;

    border-radius: 50%;

    background: rgba(220, 53, 69, 0.10);

    color: #dc3545;

    font-size: 2rem;
}

.admin-table .dropdown-menu {
    min-width: 170px;
}

.admin-table .dropdown-item {
    padding: 9px 15px;
}

.admin-table .dropdown-item:hover {
    background: rgba(16, 145, 145, 0.08);
    color: #109191;
}
/* ============================================================
   ADMIN - FORMULAIRE CATÉGORIE
============================================================ */

.category-status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 16px;

    border: 1px solid #edf0f2;
    border-radius: 10px;

    background: #f8f9fa;
}

.category-status-box .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

.category-status-box .form-check-input:checked {
    background-color: #109191;
    border-color: #109191;
}

.category-icon-preview {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon-preview-box {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 14px;

    background: rgba(16, 145, 145, 0.10);

    color: #109191;

    font-size: 1.8rem;
}

.admin-card .form-control:focus,
.admin-card .form-select:focus {
    border-color: #109191;

    box-shadow:
        0 0 0 0.25rem
        rgba(16, 145, 145, 0.12);
}

.admin-card .input-group-text {
    border-color: #dee2e6;

    background: #f8f9fa;

    color: #6c757d;
}
/* ============================================================
   ADMIN - DÉTAILS CATÉGORIE
============================================================ */

.category-detail-row {
    display: flex;
    align-items: center;
    gap: 30px;

    padding: 20px 0;

    border-bottom: 1px solid #edf0f2;
}

.category-detail-row:first-child {
    padding-top: 0;
}

.category-detail-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.category-detail-label {
    width: 220px;
    flex-shrink: 0;

    color: #6c757d;

    font-weight: 600;
}

.category-detail-label i {
    color: #109191;
}

.category-detail-value {
    flex: 1;

    color: #343a40;
}

.category-show-preview {
    padding: 20px 10px;

    text-align: center;
}

.category-show-icon {
    width: 90px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;
    margin-right: auto;

    border-radius: 20px;

    background: rgba(16, 145, 145, 0.10);

    color: #109191;

    font-size: 2.5rem;
}


/* RESPONSIVE */

@media (max-width: 767.98px) {

    .category-detail-row {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }

    .category-detail-label {
        width: 100%;
    }

}
/* ============================================================
   ADMIN - APPLICATIONS
============================================================ */

.application-table-image {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 10px;

    background: rgba(16, 145, 145, 0.10);

    color: #109191;

    font-size: 1.4rem;
}

.application-table-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* ============================================================
   ADMIN - SERVICES
============================================================ */

.service-table-image {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 10px;

    background: rgba(16, 145, 145, 0.10);

    color: #109191;

    font-size: 1.4rem;
}

.service-table-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}
/* ============================================================
   ADMIN - FORMATIONS
============================================================ */

.formation-table-image {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    overflow: hidden;

    border-radius: 10px;

    background: rgba(16, 145, 145, 0.10);

    color: #109191;

    font-size: 1.5rem;
}

.formation-table-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}
/* ============================================================
   ADMIN - TUTORIELS
============================================================ */

.tutoriel-table-image {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    overflow: hidden;

    border-radius: 10px;

    background: rgba(16, 145, 145, 0.10);

    color: #109191;

    font-size: 1.5rem;
}

.tutoriel-table-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}