* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial; color: #1f2937; }

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.flash {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash-success {
    background: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

.flash-error {
    background: #fef2f2;
    color: #dc2626;
    border-left-color: #ef4444;
}

.flash-warning {
    background: #fffbeb;
    color: #d97706;
    border-left-color: #f59e0b;
}

.flash-info {
    background: #eff6ff;
    color: #2563eb;
    border-left-color: #3b82f6;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
.navbar { background:#0f172a; color:#fff; position: sticky; top:0; z-index: 50; }
.nav-container { display:flex; align-items:center; justify-content:space-between; padding:8px 24px; max-width:1100px; margin:0 auto; }
.nav-menu { list-style:none; display:flex; gap:16px; margin:0; padding:0; }
.nav-link { color:#e5e7eb; text-decoration:none; padding:6px 10px; border-radius:6px; line-height:1.5; display:flex; align-items:center; }
.nav-link:hover { background:#1f2937; color:#fff; }
.btn-login { background:#2563eb; color:#fff; }
.hamburger { display:none; flex-direction:column; gap:4px; cursor:pointer; }
.hamburger .bar { width:24px; height:2px; background:#e5e7eb; }
.hero { background:linear-gradient(135deg,#f8fafc, #e9efff); padding:90px 0; }
.hero-container { max-width:1200px; margin:0 auto; padding:0 24px; display:flex; align-items:flex-start; justify-content:space-between; gap:36px; }
.hero-content { flex: 1.1; }
.hero-image { flex: 0.6; display:flex; justify-content:flex-end; }
.hero-title { font-size:64px; line-height:1.05; margin:0 0 18px; letter-spacing:-0.02em; font-weight:800; }
.highlight { color:#2563eb; position:relative; display:inline-block; z-index:0; padding:0 6px; }
.highlight::after { content:""; position:absolute; left:0; right:0; bottom:-8px; height:14px; background:#f2e7c9; border-radius:999px; z-index:-1; pointer-events:none; }
.hero-subtitle { color:#4b5563; max-width:760px; font-size:20px; }
.tech-cards { width:520px; display:flex; flex-direction:column; gap:16px; }
.tech-card { position:relative; display:flex; align-items:center; gap:14px; background:#ffffff; border:1px solid rgba(2,6,23,0.06); border-radius:18px; padding:18px 20px; box-shadow:0 14px 28px rgba(15,23,42,0.08); min-height:72px; }
.tech-card::before { content:""; position:absolute; inset:0; border-radius:18px; box-shadow:0 1px 0 rgba(255,255,255,0.7) inset; pointer-events:none; }
.tech-card:hover { transform: translateY(-2px); box-shadow:0 18px 36px rgba(15,23,42,0.10); }
.tech-icon { width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:#eef2ff; color:#2563eb; font-size:22px; box-shadow: inset 0 0 0 1px rgba(37,99,235,0.15); }
.tech-label { font-weight:700; color:#1f2937; font-size:18px; }
.btn { display:inline-block; padding:10px 16px; border-radius:12px; text-decoration:none; margin-right:12px; box-shadow:0 1px 0 rgba(0,0,0,0.02); border:1px solid transparent; transition:transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-lg { padding:14px 22px; font-weight:700; }
.btn-primary { background:linear-gradient(180deg,#2f66ff,#1f56ef); color:#fff; box-shadow:0 10px 20px rgba(37,99,235,0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow:0 12px 24px rgba(37,99,235,0.30); }
.btn-secondary { background:#eef2ff; color:#1f2937; border-color:#dbe2ff; }
.btn-secondary:hover { background:#e2e8ff; }
.btn-sky { background:linear-gradient(180deg,#38bdf8,#0ea5e9); color:#fff; box-shadow:0 8px 18px rgba(14,165,233,0.25); }
.btn-sky:hover { transform: translateY(-1px); box-shadow:0 12px 26px rgba(14,165,233,0.35); }
.btn-slate { background:#64748b; color:#fff; }
.btn-slate:hover { background:#475569; }
.btn-emerald { background:#10b981; color:#fff; }
.btn-emerald:hover { background:#059669; }
.container { max-width:1200px; margin:0 auto; padding:0 24px; }
.section-header h2 { margin:48px 0 8px; }
.section-header p { margin:0 0 24px; color:#6b7280; }
.services-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:16px; }
.services { padding: 40px 0 20px; }
.section-header { text-align:center; }
.service-card { background:#ffffff; border:1px solid #e5e7eb; border-radius:20px; padding:26px; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; box-shadow:0 12px 28px rgba(2,6,23,0.04); }
.service-card:hover { transform: translateY(-4px); box-shadow:0 20px 40px rgba(2,6,23,0.10); border-color:rgba(37,99,235,0.35); }
.service-card h3 { font-size:26px; margin:10px 0 8px; }
.service-card p { color:#6b7280; margin:0 0 14px; }
.service-icon { width:64px; height:64px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#eef2ff; color:#2563eb; font-size:26px; box-shadow: inset 0 0 0 1px rgba(37,99,235,0.18); margin-bottom:12px; }
.service-features { list-style:none; padding:0; margin:0; display:grid; gap:6px; color:#4b5563; }
.service-features li { display:flex; align-items:flex-start; gap:8px; }
.service-features i { color:#f59e0b; margin-top:3px; }
.support { background: linear-gradient(180deg,#ffffff,#f8fafc); padding: 48px 0; }
.support-content { display:grid; grid-template-columns:1.1fr 0.9fr; gap:32px; align-items:center; }
.support-dashboard { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px; }
.dashboard-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.status.online { color:#16a34a; font-weight:600; }
.dashboard-stats { display:flex; gap:20px; }
.stat .number { font-weight:700; font-size:20px; }
.contact { padding: 48px 0; }
.contact-content { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.contact-item { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.contact-item i { font-size:20px; color:#2563eb; }
.contact-item h4 { margin:0; display:inline; }
.contact-item p { margin:2px 0 0; }
.contact-form { background:#f8fafc; border:1px solid #e5e7eb; border-radius:16px; padding:20px; box-shadow:0 14px 32px rgba(2,6,23,0.10); }
.contact-form .btn { margin-top:8px; }
.auth-container, .dashboard { max-width:380px; margin:60px auto; padding:24px; border:1px solid #e5e7eb; border-radius:12px; background:#fff; }
.form-group { display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
/* Spacing tweaks for login form */
.auth-container .form-group { margin-bottom:20px; }
.auth-container .btn { margin-top:8px; }
input, select, textarea { width:100%; padding:12px; border:1px solid #cbd5e1; border-radius:10px; background:#fff; font-size:15px; }
input:focus, select:focus, textarea:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 4px rgba(37,99,235,0.12); }
/* Autoriser le redimensionnement vertical des zones de texte et enlever tout bouton additionnel */
textarea { resize: vertical; }
.flash { list-style:none; padding:0; }
.flash li { 
    padding:8px 10px; 
    border-radius:8px; 
    margin-bottom:8px; 
    display:flex; 
    justify-content:space-between; 
    align-items:center; 
}
.flash .error { background:#fee2e2; color:#991b1b; }
.flash .success { background:#d1fae5; color:#065f46; }
.flash .message-text { flex:1; }
.footer { background:#0f172a; color:#9ca3af; padding:32px 0; margin-top:40px; }
.footer .footer-content { display:grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap:24px; }
.footer .footer-bottom { text-align:center; }
.footer a { color:#ffffff; text-decoration:none; transition: color .15s ease; }
.footer a:visited { color:#ffffff; }
.footer a:hover { color:#ffffff; opacity:0.8; }
.social-links a { color:#9ca3af; margin-right:10px; transition: color .15s ease; }
.social-links a:hover { color:#ffffff; }

/* Legal page styles */
.legal-page { padding:40px 0; background:#f8fafc; min-height:calc(100vh - 200px); }
.legal-content { max-width:800px; margin:0 auto; background:#ffffff; padding:40px; border-radius:12px; box-shadow:0 4px 6px rgba(0,0,0,0.05); }
.legal-content h1 { color:#1e293b; font-size:2.5rem; font-weight:700; margin-bottom:20px; text-align:center; }
.legal-content .intro { font-size:1.1rem; color:#64748b; margin-bottom:40px; text-align:center; font-style:italic; }
.legal-section { margin-bottom:40px; }
.legal-section h2 { color:#1e293b; font-size:1.5rem; font-weight:600; margin-bottom:20px; border-bottom:2px solid #e2e8f0; padding-bottom:10px; }
.legal-section h3 { color:#374151; font-size:1.25rem; font-weight:600; margin:25px 0 15px 0; }
.legal-section p { color:#4b5563; line-height:1.7; margin-bottom:15px; }
.legal-section ul { margin:15px 0; padding-left:25px; }
.legal-section li { color:#4b5563; line-height:1.7; margin-bottom:8px; }
.company-info { background:#f8fafc; padding:25px; border-radius:8px; border-left:4px solid #3b82f6; }
.company-info p { margin-bottom:8px; }
.company-info strong { color:#1e293b; }
.legal-content a { color:#3b82f6; text-decoration:none; }
.legal-content a:hover { text-decoration:underline; }

/* Admin styles */
.admin-container { max-width:1200px; margin:40px auto; padding:0 24px; }
.admin-container.full-width { max-width:none; width:100%; margin:24px 0; padding:0 24px; }
.admin-tabs { display:flex; gap:0; margin:24px 0; border-bottom:1px solid #e5e7eb; }
.tab-button { background:none; border:none; padding:12px 20px; cursor:pointer; border-radius:8px 8px 0 0; color:#6b7280; font-weight:500; transition:all .2s ease; position:relative; }
.tab-button.active { background:#f8fafc; color:#2563eb; border:1px solid #e5e7eb; border-bottom:1px solid #f8fafc; }
.tab-button:hover:not(.active) { background:#f1f5f9; color:#374151; }
.tab-content { display:none; padding:24px 0; }
.tab-content.active { display:block; }
.admin-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:20px; }
.admin-card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:20px; box-shadow:0 4px 6px rgba(0,0,0,0.05); }
.admin-card h3 { margin:0 0 16px; color:#1f2937; }
.stat-item { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.stat-number { font-size:24px; font-weight:700; color:#2563eb; }
.stat-label { color:#6b7280; }
.list-item { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid #f3f4f6; }
.list-item:last-child { border-bottom:none; }
.username { font-weight:500; color:#1f2937; }
.role { padding:2px 8px; border-radius:12px; font-size:12px; font-weight:500; }
.role-admin { background:#fef3c7; color:#92400e; }
.role-user { background:#dbeafe; color:#1e40af; }
.role-client { background:#d1fae5; color:#065f46; }
.date { color:#6b7280; font-size:14px; margin-left:auto; }
.message-item { padding:12px 0; border-bottom:1px solid #f3f4f6; }
.message-item:last-child { border-bottom:none; }
.message-item.unread { background:#fef3c7; border-radius:8px; padding:16px; margin-bottom:8px; border:1px solid #f59e0b; }
.message-header { display:flex; align-items:center; gap:12px; margin-bottom:4px; }
.message-name { font-weight:500; color:#1f2937; }
.message-service { background:#e5e7eb; color:#374151; padding:2px 6px; border-radius:4px; font-size:12px; }
.message-date { color:#6b7280; font-size:14px; margin-left:auto; }
.message-email { color:#6b7280; font-size:14px; }
.message-actions { margin-top:8px; }
.message-content { margin-top:12px; }
.message-text { 
    background:#f8fafc; 
    border:1px solid #e2e8f0; 
    border-radius:6px; 
    padding:12px; 
    margin-top:6px; 
    color:#374151; 
    line-height:1.5; 
    white-space:pre-wrap; 
}
.btn-delete { background:#dc2626; color:white; border:none; padding:4px 8px; border-radius:4px; font-size:12px; cursor:pointer; }
.btn-delete:hover { background:#b91c1c; }
.btn-read { background:#059669; color:white; border:none; padding:4px 8px; border-radius:4px; font-size:12px; cursor:pointer; margin-right:8px; }
.btn-read:hover { background:#047857; }
.message-status { margin-left:auto; margin-right:12px; }
.status-read { color:#059669; font-size:12px; font-weight:500; }
.status-unread { color:#dc2626; font-size:12px; font-weight:500; }

/* Project description */
.project-description { 
    background:#f8fafc; 
    border:1px solid #e2e8f0; 
    border-radius:8px; 
    padding:16px; 
    margin-bottom:20px; 
}
.project-description h4 { 
    color:#1e40af; 
    margin:0 0 12px 0; 
    font-size:16px; 
    font-weight:600; 
}
.project-description p { 
    margin:8px 0; 
    color:#475569; 
    font-size:14px; 
    line-height:1.5; 
}

/* Notification badge */
.notification-badge { 
    position:absolute; 
    top:-8px; 
    right:-8px; 
    background:#dc2626; 
    color:white; 
    border-radius:50%; 
    width:20px; 
    height:20px; 
    font-size:12px; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    font-weight:bold; 
}

/* SMTP form styles */
.admin-card form { max-width:600px; }
.admin-card .form-group { margin-bottom:16px; }
.admin-card label { display:block; margin-bottom:4px; font-weight:500; color:#374151; }
.admin-card input[type="checkbox"] { margin-right:8px; }
.admin-card .form-buttons { display:flex; gap:12px; margin-top:20px; }
.admin-card .btn-secondary { background:#6b7280; color:white; border:none; }
.admin-card .btn-secondary:hover { background:#4b5563; }

/* Header layout: title left, actions right */
.admin-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.admin-header h1 { margin:0; }
.header-actions .btn { margin-left:10px; }

/* Readability for tables */
.admin-table { width:100%; border-collapse:separate; border-spacing:0; }
.admin-table th, .admin-table td { padding:8px 10px; }

/* Ribbon steps for BIA */
.steps-ribbon { display:flex; gap:12px; margin:12px 0 22px; }
.steps-ribbon .step { flex:1 1 0; color:#fff; text-align:center; padding:12px 10px; border-radius:10px; font-weight:700; line-height:1.2; box-shadow:0 6px 16px rgba(0,0,0,0.12); }
.steps-ribbon .step span { font-weight:500; opacity:.95; }
.steps-ribbon .step:nth-child(1){ background:linear-gradient(135deg,#2a6df6 0%, #2455d6 100%); }
.steps-ribbon .step:nth-child(2){ background:linear-gradient(135deg,#7b3cf0 0%, #b13ee3 100%); }
.steps-ribbon .step:nth-child(3){ background:linear-gradient(135deg,#ff5c93 0%, #ff3d6e 100%); }
.steps-ribbon .step:nth-child(4){ background:linear-gradient(135deg,#f6a400 0%, #d88a00 100%); }
.steps-ribbon .step.step-active { outline:3px solid rgba(255,255,255,0.35); }

/* Badges for tags/types/codes */
.tag-badge { display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:600; line-height:1; border:1px solid rgba(0,0,0,0.06); }
.type-database, .type_base_de_données { background:#fde68a; color:#7c2d12; }
.type-saas { background:#bfdbfe; color:#1e3a8a; }
.type-web, .type-application_web { background:#d1fae5; color:#065f46; }
.type-middleware { background:#fee2e2; color:#7f1d1d; }
.type-service { background:#e0e7ff; color:#3730a3; }
.type-queue { background:#fbcfe8; color:#831843; }
.type-storage { background:#e5e7eb; color:#374151; }
.type-other, .type_autre { background:#f3f4f6; color:#374151; }

.code-badge { display:inline-block; padding:2px 8px; border-radius:6px; font-size:12px; background:#f1f5f9; color:#0f172a; border:1px solid #e5e7eb; }

/* Table readability tweaks */
.admin-table thead th { background:#f8fafc; border-bottom:1px solid #e5e7eb; text-align:left; }
.admin-table tbody tr:nth-child(even) { background:#f3f4f6 !important; }

/* Heading link that keeps text color */
.heading-link { color: inherit; text-decoration: none; }
.heading-link:visited { color: inherit; }
.heading-link:hover { text-decoration: underline; }

/* Compact form rows: label close to control */
.content-body .form-row { display:grid; grid-template-columns: 220px 1fr; align-items:center; gap:12px; margin-bottom:12px; }
.content-body .form-row label { margin:0; font-weight:600; color:#1f2937; }
.content-body .form-actions { display:flex; gap:12px; margin-top:16px; }

/* Users table styles */
.users-table-container { overflow-x:auto; margin-top:20px; }
.users-table { width:100%; border-collapse:collapse; background:white; border-radius:8px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,0.1); }
.users-table th { background:#f8fafc; padding:12px; text-align:left; font-weight:600; color:#374151; border-bottom:1px solid #e5e7eb; }
.users-table td { padding:12px; border-bottom:1px solid #f3f4f6; }
.users-table tr:hover { background:#f9fafb; }
.address-cell { max-width:200px; word-wrap:break-word; }
.actions-cell { white-space:nowrap; }
.btn-edit { background:#3b82f6; color:white; border:none; padding:4px 8px; border-radius:4px; font-size:12px; cursor:pointer; margin-right:4px; }
.btn-edit:hover { background:#2563eb; }
.btn-verify { background:#059669; color:white; border:none; padding:4px 8px; border-radius:4px; font-size:12px; cursor:pointer; margin-right:4px; }
.btn-verify:hover { background:#047857; }
.status-verified { color:#059669; font-size:12px; font-weight:500; }
.status-unverified { color:#dc2626; font-size:12px; font-weight:500; }
.status-active { color:#059669; font-size:12px; font-weight:500; }
.status-inactive { color:#dc2626; font-size:12px; font-weight:500; }

/* Modal styles */
.modal { display:none; position:fixed; z-index:1000; left:0; top:0; width:100%; height:100%; background-color:rgba(0,0,0,0.5); }
.modal-content { 
    background-color:#fefefe; 
    margin:2% auto; 
    padding:30px; 
    border:1px solid #e5e7eb; 
    border-radius:12px; 
    width:90%; 
    max-width:700px; 
    max-height:90vh; 
    overflow-y:auto; 
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}
.close { 
    color:#6b7280; 
    float:right; 
    font-size:24px; 
    font-weight:bold; 
    cursor:pointer; 
    margin-top:-10px;
    margin-right:-5px;
}
.close:hover { color:#374151; }

/* Modal form styles */
.modal-content h3 { 
    margin:0 0 20px 0; 
    color:#1f2937; 
    font-size:20px; 
    font-weight:600; 
    border-bottom:2px solid #e5e7eb; 
    padding-bottom:10px; 
}
.modal-content .form-group { 
    margin-bottom:20px; 
    display:flex; 
    align-items:center; 
    gap:15px; 
}
.modal-content .form-group label { 
    min-width:120px; 
    font-weight:500; 
    color:#374151; 
    margin:0; 
}
.modal-content .form-group input, 
.modal-content .form-group select, 
.modal-content .form-group textarea { 
    flex:1; 
    padding:8px 12px; 
    border:1px solid #d1d5db; 
    border-radius:6px; 
    font-size:14px; 
}
.modal-content .form-group input[type="checkbox"] { 
    flex:none; 
    width:18px; 
    height:18px; 
    margin:0; 
}
.modal-content .form-buttons { 
    display:flex; 
    gap:12px; 
    margin-top:30px; 
    justify-content:flex-end; 
}

/* Admin form checkbox styles */
.admin-card .form-group.checkbox-group { 
    display:flex; 
    align-items:center; 
    gap:12px; 
    margin-bottom:20px; 
}
.admin-card .form-group.checkbox-group label { 
    display:flex; 
    align-items:center; 
    gap:8px; 
    font-weight:500; 
    color:#374151; 
    cursor:pointer; 
    margin:0; 
    min-width:auto; 
}
.admin-card .form-group.checkbox-group input[type="checkbox"] { 
    width:18px; 
    height:18px; 
    margin:0; 
    cursor:pointer; 
    accent-color:#3b82f6; 
}

/* Flash message styles for admin */
.flash-message { 
    padding:12px 16px; 
    margin-bottom:20px; 
    border-radius:6px; 
    font-weight:500; 
    display:flex; 
    justify-content:space-between; 
    align-items:center; 
}
.flash-message.success { 
    background:#d1fae5; 
    color:#065f46; 
    border:1px solid #a7f3d0; 
}
.flash-message.error { 
    background:#fee2e2; 
    color:#991b1b; 
    border:1px solid #fca5a5; 
}
.close-message { 
    cursor:pointer; 
    font-size:18px; 
    font-weight:bold; 
    margin-left:10px; 
    opacity:0.7; 
}
.close-message:hover { 
    opacity:1; 
}
.message-text { 
    flex:1; 
}

@media (max-width: 800px) {
  .nav-menu { position: absolute; right: 16px; top: 56px; background:#0f172a; flex-direction:column; gap:8px; padding:12px; border-radius:8px; display:none; }
  .nav-menu.open { display:flex; }
  .hamburger { display:flex; }
  .hero-container { flex-direction:column; }
  .hero-image { justify-content:stretch; width:100%; }
  .hero-title { font-size:36px; }
  .highlight::after { height:8px; bottom:-4px; }
  .tech-cards { width:100%; }
  .contact-content, .support-content { grid-template-columns:1fr; }
  .footer .footer-content { grid-template-columns:1fr; }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e8ed;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #3498db;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: #7f8c8d;
  font-size: 0.875rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-secondary {
  background-color: #95a5a6;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

/* Account Settings Styles */
.account-settings-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.account-settings-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
  font-size: 2rem;
}

.form-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e1e8ed;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}

.form-section h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.section-description {
  color: #7f8c8d;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Variante: 2 colonnes égales */
.form-row.two-cols {
  grid-template-columns: 1fr 1fr;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e8ed;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: #7f8c8d;
  font-size: 0.875rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e1e8ed;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .account-settings-container {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

/* Dashboard user name link */
.dashboard h2 a {
  color: #3498db !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.dashboard h2 a:hover {
  color: #2980b9 !important;
  text-decoration: underline !important;
}

/* User Dropdown in Navigation */
.nav-item.user-dropdown {
  position: relative;
  margin-left: auto;
  margin-right: 16px;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  cursor: pointer;
  line-height: 1.5;
}

.user-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user-trigger .user-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  height: 16px;
  width: 16px;
}

.user-trigger .user-icon svg {
  display: block;
  vertical-align: middle;
}

.user-trigger .user-name {
  font-weight: 600;
  color: #e5e7eb;
  font-size: 14px;
}

.dropdown-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  height: 12px;
  width: 12px;
  transition: transform 0.2s ease;
}

.user-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.user-dropdown.active .user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #374151;
}

.user-menu .menu-item:last-child {
  border-bottom: none;
}

.user-menu .menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
}

.user-menu .menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  height: 16px;
  width: 16px;
}

.user-menu .menu-icon svg {
  display: block;
}

/* ===== SUPPORT SYSTEM STYLES ===== */

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Effet hover pour les tuiles interactives */
a.stat-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

a.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  background-color: #f8fafc;
}

.stat-alert {
  background:#fadada; /* rouge très pastel */
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.08);
  border:1px solid #ffe3e3;
}

/* Styles pour la page de statistiques */
.stats-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-tabs .tab-button {
  flex: 1;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  color: #6b7280;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.stats-tabs .tab-button:hover {
  background: #f3f4f6;
  color: #374151;
}

.stats-tabs .tab-button.active {
  background: #2563eb;
  color: #fff;
}

.stats-filters {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-filter-form {
  display: flex;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.filter-group input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.stats-overview {
  margin-bottom: 30px;
}

.stats-overview h2 {
  margin-bottom: 20px;
  color: #1f2937;
  font-size: 24px;
}

.charts-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.chart-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
  margin: 0 0 20px 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}

.chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 20px;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-label {
  flex: 1;
  color: #374151;
}

.legend-value {
  font-weight: 600;
  color: #1f2937;
}

/* Responsive pour les graphiques */
@media (max-width: 768px) {
  .chart-row {
    grid-template-columns: 1fr;
  }
  
  .date-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    width: 100%;
  }
}

.stat-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 50%;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 5px 0;
}

.stat-content p {
  color: #6b7280;
  margin: 0;
  font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* Priority and Status Badges */
.priority-badge, .status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-low {
  background: #d1fae5;
  color: #065f46;
}

.priority-medium {
  background: #fef3c7;
  color: #92400e;
}

.priority-high {
  background: #fed7aa;
  color: #9a3412;
}

.priority-critical {
  background: #fecaca;
  color: #991b1b;
}

.status-new {
  background: #e0e7ff;
  color: #3730a3;
}

.status-open {
  background: #dbeafe;
  color: #1e40af;
}

.status-in_progress {
  background: #fef3c7;
  color: #92400e;
}

.status-pending {
  background: #f3e8ff;
  color: #7c3aed;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-inactive {
  background: #f8d7da;
  color: #721c24;
}

.status-maintenance {
  background: #fff3cd;
  color: #856404;
}

.status-retired {
  background: #d1ecf1;
  color: #0c5460;
}

.status-expired {
  background: #f5c6cb;
  color: #721c24;
}

.status-resolved {
  background: #d1fae5;
  color: #065f46;
}

.status-closed {
  background: #f3f4f6;
  color: #374151;
}

.status-active {
  background: #d1fae5;
  color: #065f46;
}

.status-inactive {
  background: #fecaca;
  color: #991b1b;
}

/* Filter Form */
.filter-form {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  align-items: end;
}

.filter-grid .form-group {
  margin-bottom: 0;
}

/* No Data Message */
.no-data {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 40px;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px dashed #d1d5db;
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Form Container */
.form-container {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Variante: 2 colonnes égales dans les sections de contenu */
.content-body .form-row.two-cols {
  grid-template-columns: 1fr 1fr;
}

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

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #374151;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control[type="textarea"] {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  color: white;
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
  color: white;
}

.btn-outline {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-outline:hover {
  background: #f9fafb;
  color: #374151;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Type Badges for Contracts and Assets */
.type-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.type-support {
  background: #dbeafe;
  color: #1e40af;
}

.type-maintenance {
  background: #fef3c7;
  color: #92400e;
}

.type-development {
  background: #d1fae5;
  color: #065f46;
}

.type-consulting {
  background: #f3e8ff;
  color: #7c3aed;
}

.type-server {
  background: #fecaca;
  color: #991b1b;
}

.type-workstation {
  background: #dbeafe;
  color: #1e40af;
}

.type-network {
  background: #d1fae5;
  color: #065f46;
}

.type-software {
  background: #fef3c7;
  color: #92400e;
}

.type-other {
  background: #f3f4f6;
  color: #374151;
}

/* ===== SIDEBAR LAYOUT ===== */
.app-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #34495e;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.sidebar-search {
    padding: 15px 20px;
    border-bottom: 1px solid #34495e;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #34495e;
    border-radius: 4px;
    background: #34495e;
    color: white;
    font-size: 14px;
}

.search-input::placeholder {
    color: #bdc3c7;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    background: #34495e;
}

.sidebar-menu {
    flex: 1;
    padding: 10px 0;
}

.menu-section {
    margin-bottom: 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: #34495e;
    border-left-color: #3498db;
}

.menu-item.active {
    background: #3498db;
    border-left-color: #2980b9;
}

.menu-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
}

.menu-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.menu-category {
    border-bottom: 1px solid #34495e;
}

.menu-category-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

/* Ensure link-style headers like "Aide" appear like other headers */
a.menu-category-header {
    color: #ecf0f1;
    text-decoration: none;
}
a.menu-category-header:hover {
    color: #ffffff;
    text-decoration: none;
}

.menu-category-header:hover {
    background: #34495e;
    border-left-color: #3498db;
}

.menu-category.expanded .menu-category-header {
    background: #34495e;
    border-left-color: #3498db;
}

.menu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.menu-category.expanded .menu-arrow {
    transform: rotate(180deg);
}

.menu-subitems {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #1a252f;
}

.menu-category.expanded .menu-subitems {
    max-height: 500px;
}

.menu-subitem {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 50px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 13px;
}

.menu-subitem:hover {
    background: #34495e;
    color: white;
    border-left-color: #3498db;
}

.menu-subitem.active {
    background: #3498db;
    color: white;
    border-left-color: #2980b9;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #34495e;
    background: #1a252f;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon {
    font-size: 18px;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.user-role {
    font-size: 12px;
    color: #bdc3c7;
}

.user-actions {
    display: flex;
    gap: 5px;
}

.logout-btn {
    color: #e74c3c;
    text-decoration: none;
    font-size: 16px;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 0;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: #2c3e50;
        color: white;
        border: none;
        padding: 10px;
        border-radius: 4px;
        cursor: pointer;
    }
}

.mobile-menu-toggle {
    display: none;
}

/* Content styles */
.content-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-title h1 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 600;
}

.content-title p {
    margin: 5px 0 0 0;
    color: #7f8c8d;
    font-size: 14px;
}

.content-actions {
    display: flex;
    gap: 10px;
}

.content-body {
    padding: 30px;
}

.content-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.content-section h2 {
    margin: 0;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

.content-section .action-buttons {
    padding: 20px 30px;
}

/* ===== Planning calendar ===== */
.calendar-toolbar { display:flex; justify-content:space-between; align-items:center; padding:12px 20px; gap:12px; }
.calendar-month { padding: 10px 20px 20px; }
.calendar-header { display:grid; grid-template-columns: repeat(7, 1fr); gap:8px; padding-bottom:8px; color:#6b7280; font-weight:600; }
.calendar-weeks { display:grid; grid-template-rows: repeat(6, minmax(100px, auto)); gap:8px; }
.calendar-week { display:grid; grid-template-columns: repeat(7, 1fr); gap:8px; }
.calendar-day { background:#ffffff; border:1px solid #e5e7eb; border-radius:6px; min-height:110px; padding:6px; display:flex; flex-direction:column; }
.calendar-day.empty { background:#f9fafb; border:1px dashed #e5e7eb; }
.day-number { font-size:12px; color:#6b7280; margin-bottom:6px; }
.day-items { display:flex; flex-direction:column; gap:4px; overflow:hidden; }
.calendar-item { display:flex; align-items:center; gap:6px; font-size:12px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dot { width:8px; height:8px; border-radius:50%; background:#9ca3af; flex:none; }
.priority-low .dot, .dot.priority-low { background:#10b981; }
.priority-medium .dot, .dot.priority-medium { background:#f59e0b; }
.priority-high .dot, .dot.priority-high { background:#ef4444; }
.priority-critical .dot, .dot.priority-critical { background:#dc2626; }
.filter-types { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.checkbox-inline { display:flex; align-items:center; gap:6px; }

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}
.data-table td .table-actions .btn { white-space: nowrap; }

.data-table tbody tr:hover {
    background: #f8f9fa;
}

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

/* Admin tabs */
.admin-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

.tab-button {
    padding: 15px 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    color: #2c3e50;
    background: #f8f9fa;
}

.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: #f8f9fa;
}

.unread-count {
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 5px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Flash messages */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.flash-message.success {
    background: #27ae60;
}

.flash-message.error {
    background: #e74c3c;
}

.close-message {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.8;
}

.close-message:hover {
    opacity: 1;
}

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}


/* Toggle switch (for Actif) */
.toggle {
  display:flex;
  align-items:center;
  gap:10px;
}

.toggle .toggle-label { font-weight:600; color:#2c3e50; }

.toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #e5e7eb;
  border-radius: 999px;
  transition: background-color .2s ease;
  border:1px solid #d1d5db;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; top: 50%; transform: translateY(-50%);
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: transform .2s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #2563eb;
  border-color:#1d4ed8;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translate(20px, -50%);
}

