/* Palette de couleurs Yoko Gestion - Vert Cyan */
:root {
    --primary: #00FFBF;
    --primary-dark: #00d9a3;
    --primary-light: #33ffcc;
    --secondary: #00cc99;
    --accent: #00FFBF;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --dark-light: #334155;
    --bg: #0a0f1e;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #94a3b8;
    --border: #334155;
    --gradient: linear-gradient(135deg, #00FFBF 0%, #00cc99 100%);
    --gradient-hover: linear-gradient(135deg, #00d9a3 0%, #00b386 100%);
}

/* Thème clair */
[data-theme="light"] {
    --primary: #00FFBF;
    --primary-dark: #00b386;
    --primary-light: #00d9a3;
    --secondary: #00cc99;
    --accent: #00FFBF;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #ffffff;
    --dark-lighter: #f1f5f9;
    --dark-light: #e2e8f0;
    --bg: #f8fafc;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #00FFBF 0%, #00cc99 100%);
    --gradient-hover: linear-gradient(135deg, #00d9a3 0%, #00b386 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===========================
   STYLES GLOBAUX HARMONISÉS
   =========================== */

/* Curseur personnalisé global */
* {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="white" stroke="black" stroke-width="1"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>'), auto;
}

a, button, .menu-item, .btn, .breadcrumb a, .card, .feature-card, .command-card, .bot-card {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="white" stroke="black" stroke-width="1"><path d="M7 10l5 5 5-5z" transform="rotate(-90 12 12)"/><circle cx="19" cy="12" r="2" fill="%2300ffbf"/></svg>'), pointer;
}

input, textarea, select {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="white" stroke="black" stroke-width="1"><line x1="12" y1="4" x2="12" y2="20" stroke-width="2"/></svg>'), text;
}

/* ===========================
   BOUTONS HARMONISÉS
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00d4aa);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(0, 255, 191, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00d4aa, var(--primary));
    box-shadow: 0 6px 20px rgba(0, 255, 191, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--dark-lighter);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--dark-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-height: 36px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 52px;
}

/* ===========================
   ENCADRÉS HARMONISÉS
   =========================== */

.card, .feature-card, .command-card, .bot-card, .log-type-card, .protection-card {
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:before, .feature-card:before, .command-card:before, .bot-card:before, .log-type-card:before, .protection-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #00d4aa);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover, .feature-card:hover, .command-card:hover, .bot-card:hover, .log-type-card:hover, .protection-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 255, 191, 0.15);
    transform: translateY(-2px);
}

.card:hover:before, .feature-card:hover:before, .command-card:hover:before, .bot-card:hover:before, .log-type-card:hover:before, .protection-card:hover:before {
    transform: scaleX(1);
}

.card.active, .log-type-card.active, .protection-card.active {
    border-color: var(--primary);
    background: rgba(0, 255, 191, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 191, 0.2);
}

.card.active:before, .log-type-card.active:before, .protection-card.active:before {
    transform: scaleX(1);
}

/* ===========================
   TOGGLE SWITCHES HARMONISÉS
   =========================== */

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
    background: var(--dark);
}

/* ===========================
   FORMULAIRES HARMONISÉS
   =========================== */

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 191, 0.1);
    background: var(--dark-light);
}

.form-help {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===========================
   MODE LIGHT HARMONISÉ
   =========================== */

[data-theme="light"] .btn-secondary {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 255, 191, 0.1);
    border-color: var(--primary);
}

[data-theme="light"] .card, 
[data-theme="light"] .feature-card, 
[data-theme="light"] .command-card, 
[data-theme="light"] .bot-card, 
[data-theme="light"] .log-type-card, 
[data-theme="light"] .protection-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card:hover, 
[data-theme="light"] .feature-card:hover, 
[data-theme="light"] .command-card:hover, 
[data-theme="light"] .bot-card:hover, 
[data-theme="light"] .log-type-card:hover, 
[data-theme="light"] .protection-card:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 191, 0.2);
}

[data-theme="light"] .form-input, 
[data-theme="light"] .form-select, 
[data-theme="light"] .form-textarea {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-input:focus, 
[data-theme="light"] .form-select:focus, 
[data-theme="light"] .form-textarea:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 255, 191, 0.15);
}

/* ===========================
   NOTIFICATIONS STYLÉES
   =========================== */

/* Container des notifications */
.notifications-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    pointer-events: none;
}

/* Notification de base */
.notification {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.show::before {
    transform: scaleX(1);
}

/* Icônes des notifications */
.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Types de notifications */
.notification-success {
    border-color: var(--success);
}

.notification-success .notification-icon {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.notification-success::before {
    background: linear-gradient(90deg, var(--success), #059669);
}

.notification-error {
    border-color: var(--danger);
}

.notification-error .notification-icon {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
}

.notification-error::before {
    background: linear-gradient(90deg, var(--danger), #dc2626);
}

.notification-warning {
    border-color: var(--warning);
}

.notification-warning .notification-icon {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
}

.notification-warning::before {
    background: linear-gradient(90deg, var(--warning), #d97706);
}

.notification-info {
    border-color: #3b82f6;
}

.notification-info .notification-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.notification-info::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* Contenu de la notification */
.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notification-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin: 0;
}

.notification-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Bouton de fermeture */
.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

/* Mode light */
[data-theme="light"] .notification {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .notification-title {
    color: var(--text);
}

[data-theme="light"] .notification-message {
    color: var(--text-secondary);
}

/* ===========================
   MODAL DE CONFIRMATION STYLÉ
   =========================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.modal-icon.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
}

.modal-icon.danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
}

.modal-icon.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.modal-message {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 2rem 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.modal-btn-primary {
    background: var(--gradient);
    color: var(--dark);
}

.modal-btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 191, 0.3);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid var(--border);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Mode light pour modal */
[data-theme="light"] .modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .modal-title {
    color: var(--text);
}

[data-theme="light"] .modal-message {
    color: var(--text-secondary);
}

[data-theme="light"] .modal-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ===========================
   WHITELIST UI STYLES
   =========================== */

.whitelist-content {
    margin: 1.5rem 0;
}

.whitelist-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.whitelist-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px 8px 0 0;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whitelist-tab:hover {
    background: rgba(0, 255, 191, 0.1);
    color: var(--primary);
}

.whitelist-tab.active {
    background: var(--primary);
    color: var(--dark);
}

.whitelist-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.whitelist-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--dark-lighter);
}

.whitelist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
    text-align: center;
}

.whitelist-empty i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.whitelist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.whitelist-item:hover {
    background: rgba(0, 255, 191, 0.05);
}

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

.whitelist-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.whitelist-item-name {
    font-weight: 600;
    color: var(--text);
}

.whitelist-item-id {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

/* Mode light */
[data-theme="light"] .whitelist-tab:hover {
    background: rgba(0, 255, 191, 0.15);
}

[data-theme="light"] .whitelist-tab.active {
    background: var(--primary);
    color: white;
}

[data-theme="light"] .whitelist-list {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .whitelist-item:hover {
    background: rgba(0, 255, 191, 0.08);
}

[data-theme="light"] .whitelist-item {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* ===========================
   NOTIFICATIONS STYLES
   =========================== */

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
    border-color: rgba(34, 197, 94, 0.3);
}

.notification.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    border-color: rgba(239, 68, 68, 0.3);
}

.notification.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    border-color: rgba(245, 158, 11, 0.3);
}

.notification.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    border-color: rgba(59, 130, 246, 0.3);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.notification-icon {
    font-size: 1.25rem;
    color: white;
}

.notification-title {
    font-weight: 600;
    color: white;
    font-size: 1rem;
    margin: 0;
}

.notification-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.notification-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

/* Mode light */
[data-theme="light"] .notification {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .notification.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
    border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="light"] .notification.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .notification.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .notification.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .notification-title {
    color: var(--dark);
}

[data-theme="light"] .notification-message {
    color: var(--text);
}

[data-theme="light"] .notification-close {
    color: var(--text-secondary);
}

[data-theme="light"] .notification-close:hover {
    color: var(--dark);
    background: rgba(0, 0, 0, 0.05);
}

/* Animation d'entrée */
@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.notification.slide-in {
    animation: notificationSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.slide-out {
    animation: notificationSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1400; /* au-dessus des barres de pages */
    padding: 1rem 0;
    transition: background 0.3s, border-color 0.3s;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.nav-brand i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-socials a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none !important;
}

.nav-socials a::after {
    display: none !important;
}

.nav-socials a::before {
    display: none !important;
}

.nav-socials a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 1rem;
}

.theme-toggle:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.theme-toggle i {
    transition: transform 0.3s;
}

.theme-toggle:hover i {
    transform: rotate(20deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Auth Container */
.auth-container {
    position: relative;
    margin-left: 1rem;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 191, 0.3);
}

.user-menu {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    background: var(--dark-lighter);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.user-avatar-btn:hover {
    border-color: var(--primary);
    background: var(--dark-light);
}

.user-avatar-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-btn i {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.user-avatar-btn.active i {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1600; /* au-dessus des autres éléments */
}

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

[data-theme="light"] .user-dropdown {
    background: var(--dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.user-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-username {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.dropdown-userid {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: var(--text);
    text-decoration: none;
    text-align: left;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--dark);
    color: var(--primary);
}

.dropdown-item.active {
    background: var(--dark);
    color: var(--primary);
    font-weight: 600;
}

.dropdown-item i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.dropdown-item span {
    flex: 1;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 191, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 204, 153, 0.05) 0%, transparent 50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: var(--dark-lighter);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--dark-light);
    border-color: var(--primary-light);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-value.db-status {
    font-size: 2.5rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.stat-value.db-status i {
    color: var(--success);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.bot-card {
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bot-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bot-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    overflow: hidden;
    border: 2px solid var(--primary);
}

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

.bot-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

.bot-stats-grid {
    display: grid;
    gap: 1rem;
}

.bot-stat {
    background: var(--dark);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.bot-stat i {
    color: var(--primary-light);
    font-size: 1.25rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--dark-lighter);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--dark-lighter);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Responsive Design */

/* Tablette et petits écrans */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero .container {
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Navigation mobile */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        position: relative;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-brand i {
        font-size: 1.5rem;
    }

    .nav-brand img {
        width: 28px;
        height: 28px;
    }

    /* Burger menu visible sur mobile */
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--dark-lighter); /* fond opaque */
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        z-index: 1500; /* prioritaire sur la barre enregistrer */
    }

    .nav-links.active {
        max-height: 300px;
        opacity: 1;
        padding: 1rem;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-socials {
        gap: 0.75rem;
    }

    .nav-socials a {
        font-size: 1.125rem;
    }

    /* Auth mobile */
    .auth-container {
        margin-left: 0.5rem;
    }

    .btn-login {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-login span {
        display: none;
    }

    .user-avatar-btn {
        padding: 0.375rem 0.75rem;
    }

    .user-avatar-btn span {
        display: none;
    }

    .user-avatar-btn img {
        width: 24px;
        height: 24px;
    }

    /* Hero mobile */
    .hero {
        padding: 4rem 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .btn-large {
        padding: 1.125rem 2.25rem;
        font-size: 1.125rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding-top: 2rem;
    }

    .stat-value {
        font-size: 1.875rem;
    }

    .stat-value.db-status {
        font-size: 2.25rem;
    }

    /* Bot card mobile */
    .bot-card {
        padding: 1.75rem;
        max-width: 100%;
    }

    .bot-avatar {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }

    .bot-name {
        font-size: 1.125rem;
    }

    .bot-stat {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .bot-stat i {
        font-size: 1.125rem;
    }

    /* Sections mobile */
    .features,
    .categories-preview,
    .cta-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.75rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1.125rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .category-item {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .category-item i {
        font-size: 1.75rem;
    }

    .category-item span {
        font-size: 0.875rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    /* CTA mobile */
    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    /* Footer mobile */
    .footer {
        padding: 1.5rem 0;
    }

    .footer-bottom {
        text-align: center;
        font-size: 0.875rem;
    }
}

/* Très petits écrans (téléphones) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .nav-brand {
        font-size: 1.125rem;
    }

    .nav-brand i {
        font-size: 1.25rem;
    }

    .nav-socials {
        gap: 0.5rem;
    }

    .nav-socials a {
        font-size: 1rem;
    }

    .btn-login {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    .user-avatar-btn {
        padding: 0.25rem 0.5rem;
    }

    .user-avatar-btn img {
        width: 20px;
        height: 20px;
    }

    .user-dropdown {
        right: -50px;
        min-width: 220px;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .dropdown-item i {
        margin-right: 0.5rem;
    }

    /* Hero mobile */
    .hero {
        padding: 3rem 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        width: 100%;
        justify-content: center;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-value.db-status {
        font-size: 2rem;
    }

    /* Bot card mobile */
    .bot-card {
        padding: 1.5rem;
        max-width: 100%;
    }

    .bot-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .bot-name {
        font-size: 1.125rem;
    }

    .bot-stat {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }

    .bot-stat i {
        font-size: 1.125rem;
    }

    /* Sections mobile */
    .features,
    .categories-preview,
    .cta-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: 1.125rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-item {
        padding: 1rem;
        gap: 0.5rem;
    }

    .category-item i {
        font-size: 1.5rem;
    }

    .category-item span {
        font-size: 0.875rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    /* CTA mobile */
    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Footer mobile */
    .footer {
        padding: 1.5rem 0;
    }

    .footer-bottom {
        font-size: 0.875rem;
    }
}

