/* ==========================================================================
    police et variable
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
}

:root {
    /* couleurs communes et Front-office */
    --primary-dark: #003366;
    --primary-cyan: #00C2CB;
    --text-gray: #343A40;
    --black: #000000;
    --bg-light: #F1F5F9;
    --white: #FFFFFF;
    
    /* couleurs admin */
    --bg-page: #F8F9FB;
    --bg-card: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --border-btn: #E5E5E5;
    --avatar-gray: #E5E7EB;
    
    --admin-purple: #552796;
    --admin-purple-hover: #451d7a;
    
    --pro-blue: #3B82F6;
    --pro-blue-light: #EFF6FF;
    
    --success-green: #00A63D;
    --success-green-light: #E6F6ED;
    
    --warning-orange: #F59E0B;
    --warning-orange-light: #FFFBEB;
    
    --stat-purple: #8B5CF6;
    --stat-purple-light: #F5F3FF;
    
    --danger-red: #EF4444;
}

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    background-color: var(--white);
    margin: 0;
}

/* ==========================================================================
   front (acceuil, navbar, footer)
   ========================================================================== */

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    font-family: 'Inter', sans-serif;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-logo {
    font-size: 24px;
    font-weight: 800;
    color: #000000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: #6366f1;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.header-nav {
    display: flex;
    gap: 24px;
}

.header-nav a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: #111827;
}

.header-center {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 40px;
}

.header-search {
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 10px 16px;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.header-search input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: #111827;
}

.header-search input::placeholder {
    color: #6b7280;
}

.header-search i {
    color: #9ca3af;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon-link {
    color: #111827;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-link:hover {
    color: #6366f1;
}

.header-auth-text {
    font-weight: 600;
    font-size: 15px;
}

.btn-header-outline {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-header-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-header-solid {
    background: #030712;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-header-solid:hover {
    background: #1f2937;
    color: #ffffff;
}

.btn-black {
    background-color: var(--black);
    color: var(--white);
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 16px;
    transition: 0.2s;
    border: none;
}

.btn-black:hover {
    background-color: var(--text-gray);
    color: var(--white);
}

.scroll-x {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.scroll-x::-webkit-scrollbar {
    display: none;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    cursor: pointer;
    transition: 0.2s;
}

.cat-item:hover {
    transform: translateY(-3px);
}

.cat-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cat-text {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-gray);
}

.bg-blue-light {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--pro-blue);
}

.bg-orange-light {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-orange);
}

.bg-green-light {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--success-green);
}

.btn-filter {
    background-color: var(--white);
    border: 1px solid var(--bg-light);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    white-space: nowrap;
    transition: 0.2s;
    color: var(--text-gray);
}

.btn-filter:hover {
    background-color: var(--bg-light);
}

.card-service {
    border: 1px solid var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.2s;
    cursor: pointer;
    background-color: var(--white);
}

.card-service:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

.card-img {
    position: relative;
    height: 200px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-pro {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--pro-blue);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.avatar {
    width: 24px;
    height: 24px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    transition: 0.2s;
}

.footer-link:hover {
    color: var(--primary-cyan);
    text-decoration: underline;
}

/* ==========================================================================
   page inscription et connection 
   ========================================================================== */
.register-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.register-header, 
.register-footer {
    text-align: center;
}

.register-header {
    margin-bottom: 40px;
}

.register-footer {
    margin-top: 40px;
}

.register-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.register-subtitle {
    color: var(--text-gray);
    font-size: 16px;
}

.register-cards-wrapper {
    max-width: 1000px;
    width: 100%;
}

.register-card {
    background-color: var(--white);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.register-card:hover {
    border-color: var(--pro-blue);
    transform: translateY(-5px);
}

.icon-box-client, 
.icon-box-pro {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px auto;
}

.icon-box-client {
    background-color: #E8F0FE;
    color: #2563EB;
}

.icon-box-pro {
    background-color: #F3E8FF;
    color: #9333EA;
}

.register-card .card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--black);
    margin-bottom: 12px;
    text-align: center;
}

.register-card .card-desc {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
    min-height: 45px;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 15px;
}

.check-circle {
    width: 26px;
    height: 26px;
    background-color: #DCFCE7;
    color: #22C55E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-right: 14px;
    flex-shrink: 0;
}

.btn-register {
    background-color: var(--black);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    display: block;
    width: 100%;
}

.btn-register:hover {
    background-color: var(--text-gray);
}

.login-link {
    color: var(--text-gray);
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.login-link:hover {
    color: var(--pro-blue);
    text-decoration: underline;
}

.auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    min-height: 80vh;
}

.back-btn {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    width: 100%;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.auth-card {
    background-color: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 650px;
}

.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon-box {
    width: 80px;
    height: 80px;
    background-color: #E8F0FE;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 16px;
}

.auth-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--black);
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-gray);
    font-size: 14px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
}

.required-star {
    color: #EF4444;
}

.form-input {
    width: 100%;
    background-color: #F8FAFC;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--black);
    outline: none;
    transition: 0.2s;
}

.form-input:focus {
    border-color: var(--pro-blue);
    background-color: var(--white);
}

.password-wrapper {
    position: relative;
}

.eye-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    cursor: pointer;
    font-size: 20px;
}

.input-hint {
    font-size: 11px;
    color: #94A3B8;
    margin-top: 6px;
    display: block;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-gray);
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 3px;
}

.checkbox-wrapper a {
    color: var(--pro-blue);
    text-decoration: underline;
}

.btn-submit {
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 14px;
    width: 100%;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 20px;
}

.btn-submit:hover {
    background-color: var(--text-gray);
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--black);
}

.auth-footer a {
    color: var(--pro-blue);
    text-decoration: underline;
}

.pro-icon-box {
    background-color: #F5EEF8;
    color: #8D6E63;
}

.info-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #F0F7FF;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    color: var(--black);
    font-size: 13px;
    line-height: 1.5;
}

.info-alert iconify-icon {
    color: var(--pro-blue);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: -2px;
}

.info-alert strong {
    font-weight: 700;
}

.mb-checkbox {
    margin-bottom: 12px;
    margin-top: 0;
}

.captcha-box {
    background-color: #F8FAFC;
    padding: 16px;
    border-radius: 8px;
    border: 1px dashed var(--pro-blue);
    margin-bottom: 24px;
}

.captcha-label {
    color: var(--pro-blue);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ==========================================================================
   connexion
   ========================================================================== */
.navbar-custom {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-right: 24px;
    font-size: 14px;
    font-weight: 500;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 16px;
}

.nav-icons i {
    font-size: 20px;
    color: var(--text-main);
    cursor: pointer;
}

.search-box-nav {
    background-color: var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    width: 350px;
}

.search-box-nav input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 8px;
    font-size: 14px;
    width: 100%;
}

.login-section {
    min-height: calc(100vh - 73px);
    background-color: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.login-logo-circle {
    width: 80px; 
    height: 80px;
    border-radius: 50%;
    border: none; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    overflow: hidden;
}

.login-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.login-title {
    font-weight: 700;
    font-size: 28px;
    text-align: center;
    margin-bottom: 8px;
    color: var(--black);
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    text-align: center;
    margin-bottom: 32px;
}

.input-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    display: block;
}

.input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.input-label-row a {
    color: var(--pro-blue);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.input-gray {
    background-color: #F3F4F6;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.input-gray:focus {
    border-color: var(--pro-blue);
    background-color: var(--white);
}

.pwd-wrapper {
    position: relative;
}

.eye-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
}

.remember-row label {
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
}

.btn-login {
    background-color: var(--black);
    color: var(--white);
    border-radius: 8px;
    width: 100%;
    padding: 14px;
    font-weight: 600;
    border: none;
    font-size: 15px;
    transition: 0.2s;
}

.btn-login:hover {
    background-color: var(--text-gray);
}

.divider-box {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.divider-line {
    border-top: 1px solid var(--border-color);
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 1;
}

.divider-text {
    background-color: var(--white);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 13px;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.register-link-box {
    text-align: center;
    font-size: 14px;
    color: var(--text-main);
}

.register-link-box a {
    color: var(--pro-blue);
    text-decoration: underline;
    font-weight: 500;
}

/* ==========================================================================
   back office (admin)
   ========================================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-page);
}

.sidebar {
    width: 260px;
    background-color: var(--admin-purple);
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sidebar-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.sidebar-subtitle {
    font-size: 11px;
    opacity: 0.7;
}

.nav-menu {
    padding: 0 16px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.nav-item i {
    width: 24px;
    font-size: 16px;
    opacity: 0.7;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background-color: rgba(0, 0, 0, 0.15);
}

.nav-item.active i {
    opacity: 1;
}

.sidebar-footer {
    padding: 24px;
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.user-name {
    font-weight: 700;
    font-size: 14px;
}

.user-email {
    color: var(--text-muted);
    font-size: 12px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.kpi-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
}

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.kpi-blue {
    background-color: var(--pro-blue-light);
    color: var(--pro-blue);
}

.kpi-green {
    background-color: var(--success-green-light);
    color: var(--success-green);
}

.kpi-orange {
    background-color: var(--warning-orange-light);
    color: var(--warning-orange);
}

.kpi-purple {
    background-color: var(--stat-purple-light);
    color: var(--stat-purple);
}

.kpi-value {
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}

.kpi-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.kpi-trend {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.section-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-weight: 700;
    font-size: 18px;
    margin: 0;
}

.link-blue {
    color: var(--pro-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.list-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:last-child {
    margin-bottom: 0;
}

.item-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--avatar-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    flex-shrink: 0;
}

.badge-tag {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.btn-action {
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 16px;
    transition: 0.2s;
}

.btn-refuser {
    color: var(--danger-red);
    background: transparent;
    border: 1px solid var(--border-btn);
}

.btn-refuser:hover {
    background-color: var(--bg-light);
}

.btn-examiner {
    color: var(--text-main);
    background: transparent;
    border: 1px solid var(--border-btn);
}

.btn-examiner:hover {
    background-color: var(--bg-light);
}

.btn-valider {
    background-color: var(--success-green);
    color: white;
    border: 1px solid var(--success-green);
}

.btn-valider:hover {
    background-color: #008a32;
    border-color: #008a32;
}

.activity-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.activity-row:last-child {
    margin-bottom: 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.dot-green {
    background-color: var(--success-green);
}

.dot-gray {
    background-color: #D1D5DB;
}

.dot-red {
    background-color: var(--danger-red);
}

.dot-blue {
    background-color: var(--pro-blue);
}

.activity-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.activity-desc {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.avatar-admin {
    background-color: #A21CAF;
}

.fs-14 {
    font-size: 14px;
}

.fs-13 {
    font-size: 13px;
}

.fs-12 {
    font-size: 12px;
}

.gap-2 {
    gap: 8px;
}

/* ==========================================================================
   parametre admin
   ========================================================================== */
.setting-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.setting-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.custom-switch .form-check-input {
    width: 3.2rem;
    height: 1.6rem;
    cursor: pointer;
    border: none;
    background-color: #D1D5DB;
}

.custom-switch .form-check-input:checked {
    background-color: var(--success-green);
    border-color: var(--success-green);
}

.custom-switch .form-check-input:focus {
    box-shadow: none;
}

.bg-purple-soft {
    background-color: #F8F5FF;
    border: 1px solid #E9D8FF;
    border-radius: 12px;
    padding: 24px;
}

.text-purple-custom {
    color: var(--admin-purple);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.text-purple-muted {
    color: #7E56C1;
    font-size: 13px;
    margin-bottom: 24px;
}

.input-flat {
    background-color: var(--bg-page);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    width: 100%;
    outline: none;
    font-weight: 500;
    color: var(--text-main);
}

.btn-red-solid {
    background-color: #DF4141;
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 13px;
    transition: 0.2s;
}

.btn-red-solid:hover {
    background-color: #B91C1C;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.custom-checkbox:checked {
    background-color: var(--pro-blue);
    border-color: var(--pro-blue);
}

.checkbox-label {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
}

.btn-outline-custom {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-outline-custom:hover {
    background-color: var(--bg-page);
}

.mb-32 {
    margin-bottom: 32px;
}

/* ==========================================================================
   newsletter
   ========================================================================== */
.kpi-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.newsletter-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.newsletter-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.news-badge-envoyee {
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
    margin-left: 12px;
}

.news-badge-brouillon {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
    margin-left: 12px;
}

.news-meta-item {
    color: #64748b;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 24px;
    margin-top: 10px;
}

.tips-container-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

.tips-list-custom {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list-custom li {
    position: relative;
    padding-left: 16px;
    color: #334155;
    font-size: 14px;
    margin-bottom: 12px;
}

.tips-list-custom li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 2px;
    color: #3b82f6;
    font-size: 8px;
}

.create-news-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
}

.form-label-custom {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
    display: block;
}

.target-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: 0.2s;
    height: 100%;
    display: block;
}

.target-input:checked + .target-card {
    border: 2px solid #3b82f6;
    background: #f0f7ff;
}

.input-gray-fill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: 0.2s;
}

.input-hint {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    display: block;
}

.preview-container {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.preview-badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #475569;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
}

.btn-black-send {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

/* ==========================================================================
   gestion users
   ========================================================================== */
.kpi-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    height: 100%;
}

.kpi-stat-card.active-purple {
    border-color: #a855f7;
    border-width: 2px;
}

.kpi-stat-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.kpi-stat-label {
    font-size: 13px;
    color: #64748b;
}

.search-container-user {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.search-input-user {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: #0f172a;
}

.user-row-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.avatar-circle-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: #a855f7;
    flex-shrink: 0;
}

.badge-soft-green {
    background: #dcfce7;
    color: #16a34a;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-soft-gray {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-soft-orange {
    background: #ffedd5;
    color: #ea580c;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-soft-red {
    background: #fee2e2;
    color: #dc2626;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.user-meta-text {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alert-warning-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.alert-danger-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.btn-outline-gray {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline-red {
    background: #ffffff;
    border: 1px solid #fee2e2;
    color: #dc2626;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline-orange {
    background: #ffffff;
    border: 1px solid #ffedd5;
    color: #ea580c;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-solid-green {
    background: #16a34a;
    border: 1px solid #16a34a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
    profil users et hsitorique 
   ========================================================================== */
.profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 24px;
}

.profile-avatar-xl {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    background: #a855f7;
}

.info-group {
    margin-bottom: 24px;
}

.info-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

.info-value {
    font-size: 15px;
    color: #0f172a;
    font-weight: 500;
}

.history-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.history-table td {
    padding: 16px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.badge-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* ==========================================================================
    forum
   ========================================================================== */
   .forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.forum-page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
}
.forum-page-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 40px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.forum-cat-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    background: var(--white);
    text-decoration: none;
    display: block;
    transition: 0.2s;
}
.forum-cat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}
.forum-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 18px;
    color: var(--black);
}
.forum-cat-icon {
    color: var(--text-muted);
    font-size: 20px;
}
.forum-cat-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    margin-left: 32px;
}
.forum-cat-meta {
    display: flex;
    gap: 32px;
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 32px;
}
.forum-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.forum-section-title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--black);
}
.icon-trend {
    color: #F59E0B;
}
.btn-blue-solid {
    background-color: #2563EB;
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}
.btn-blue-solid:hover {
    background-color: #1D4ED8;
    color: var(--white);
}
.discussion-list {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
}
.discussion-item {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    display: block;
    transition: 0.2s;
}
.discussion-item:hover {
    background-color: #F8FAFC;
}
.discussion-item:last-child {
    border-bottom: none;
}
.discussion-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.tag-fire {
    background-color: #FFF7ED;
    color: #EA580C;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tag-pin {
    background-color: #F8FAFC;
    color: #475569;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #E2E8F0;
}
.tag-cat {
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-main);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}
.discussion-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}
.discussion-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
    align-items: center;
}
.discussion-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.meta-author {
    font-weight: 600;
    color: var(--text-main);
}

/* ==========================================================================
    Dashboard client
   ========================================================================== */
   .dashboard-container {
    display: flex;
    min-height: calc(100vh - 73px);
    background-color: #F8FAFC;
}

.client-sidebar {
    width: 260px;
    background-color: var(--white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.client-profile-box {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.client-avatar-circle {
    width: 48px;
    height: 48px;
    background-color: #4F46E5;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.client-nav-menu {
    flex-grow: 1;
    padding: 0 16px;
}

.client-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.client-nav-item.active {
    background-color: #F1F5F9;
}

.client-nav-item i {
    font-size: 18px;
    color: #64748B;
    width: 20px;
    text-align: center;
}

.client-sidebar-footer {
    padding: 24px 16px;
    border-top: 1px solid var(--border-color);
}

.client-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.welcome-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 8px;
}

.welcome-subtitle {
    color: #64748B;
    font-size: 15px;
    margin-bottom: 32px;
}

.kpi-grid-client {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.kpi-card-client {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    position: relative;
}

.kpi-icon-top {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 24px;
}

.kpi-bg-blue { background: #EFF6FF; color: #3B82F6; }
.kpi-bg-red { background: #FEF2F2; color: #EF4444; }
.kpi-bg-purple { background: #FAF5FF; color: #A855F7; }
.kpi-bg-green { background: #F0FDF4; color: #22C55E; }

.kpi-trend-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #22C55E;
    font-size: 20px;
}

.kpi-value-client {
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1;
}

.kpi-label-client {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
}

.middle-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.panel-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title iconify-icon {
    color: #3B82F6;
    font-size: 22px;
}

.panel-link {
    color: #3B82F6;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.service-row {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-info-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pro-avatar {
    width: 48px;
    height: 48px;
    background: #6366F1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.service-pro-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--black);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-rating {
    color: #F59E0B;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-title-text {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
}

.service-meta-details {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #64748B;
}

.service-meta-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-info-right {
    text-align: right;
}

.service-price {
    font-weight: 700;
    font-size: 18px;
    color: #3B82F6;
    margin-bottom: 8px;
}

.btn-new-service {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--white);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    text-align: center;
    color: var(--black);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-new-service:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.activity-item {
    display: flex;
    gap: 16px;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #475569;
    flex-shrink: 0;
}

.activity-content {
    flex-grow: 1;
}

.activity-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--black);
    margin-bottom: 2px;
}

.activity-desc {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 11px;
    color: #94A3B8;
}

.reco-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.reco-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
}

.reco-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.reco-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.reco-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--black);
    margin-bottom: 4px;
}

.reco-pro {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 8px;
}

.reco-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #64748B;
    margin-bottom: 16px;
}

.reco-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reco-price {
    font-weight: 700;
    font-size: 16px;
    color: #3B82F6;
}

.reco-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reco-actions iconify-icon {
    font-size: 20px;
    color: var(--black);
    cursor: pointer;
}

.btn-black-small {
    background: var(--black);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.action-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: var(--white);
    text-decoration: none;
    color: var(--black);
    transition: 0.2s;
}

.action-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.action-card iconify-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.action-card.blue iconify-icon { color: #3B82F6; }
.action-card.purple iconify-icon { color: #A855F7; }
.action-card.red iconify-icon { color: #EF4444; }
.action-card.green iconify-icon { color: #22C55E; }

.action-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.action-desc {
    font-size: 12px;
    color: #64748B;
}