/* ============================================
   FENUA CHAT - ADMIN ENHANCED STYLES - CORRECTED
   Interface d'administration amÃ©liorÃ©e
   ============================================ */

/* === ADMIN HEADER === */
.admin-header {
    background: linear-gradient(135deg, var(--primary-color), #ffffff);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.admin-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.admin-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

/* === STATS CARDS === */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.warning::before { background: #f59e0b; }
.stat-card.danger::before { background: #ef4444; }

.stat-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(0, 188, 212, 0.05));
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
}

.stat-card.danger .stat-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* === ADMIN SECTIONS === */
.admin-section {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mode Dark */
body.dark-mode .page-admin .admin-section,
body.dark-mode .admin-section,
body.theme-dark .page-admin .admin-section,
body.theme-dark .admin-section {
    background: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
    color: white !important;
}

body.dark-mode .admin-section h2,
body.theme-dark .admin-section h2 {
    color: white;
}

body.dark-mode .stat-card,
body.theme-dark .stat-card {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-number,
body.theme-dark .stat-number {
    color: white;
}

body.dark-mode .user-card,
body.theme-dark .user-card {
    background: #2a2a2a;
}

body.dark-mode .user-card:hover,
body.theme-dark .user-card:hover {
    background: #3d3d3d;
}

body.dark-mode .user-name,
body.theme-dark .user-name {
    color: white;
}

body.dark-mode .search-input,
body.theme-dark .search-input {
    background-color: #2a2a2a;
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .search-input::placeholder,
body.theme-dark .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .announcement-form textarea,
body.theme-dark .announcement-form textarea {
    background-color: #333333;
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .announcement-form textarea::placeholder,
body.theme-dark .announcement-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .type-badge,
body.theme-dark .type-badge {
    background-color: #3d3d3d;
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .type-badge.info,
body.theme-dark .type-badge.info {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

body.dark-mode .type-badge.attention,
body.theme-dark .type-badge.attention {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

body.dark-mode .type-badge.alerte,
body.theme-dark .type-badge.alerte {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

body.dark-mode .user-details,
body.theme-dark .user-details {
    color: rgba(255, 255, 255, 0.6);
}

.admin-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === MODALS CORRECTED - BLUR + STATIQUE === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.2s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: auto;
}

/* Mode nuit pour modaux avec blur effect */
body.theme-dark .modal-overlay,
body.dark-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.theme-dark .modal-box,
body.dark-mode .modal-box {
    background: rgba(58, 58, 58, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body.theme-dark .modal-header,
body.dark-mode .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .modal-header h3,
body.dark-mode .modal-header h3 {
    color: white;
}

body.dark-mode .modal-body p,
body.theme-dark .modal-body p {
    color: #e5e5e5;
}

body.theme-dark .modal-body strong,
body.dark-mode .modal-body strong {
    color: white;
}

body.theme-dark .modal-body textarea,
body.dark-mode .modal-body textarea {
    background: rgba(51, 51, 51, 0.9);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.theme-dark .modal-footer,
body.dark-mode .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .modal-info,
body.dark-mode .modal-info {
    background: rgba(0, 188, 212, 0.15);
    color: #4fc3f7;
    border-left-color: #00bcd4;
}

body.theme-dark .modal-warning,
body.dark-mode .modal-warning {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-left-color: #ef4444;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.modal-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0 0 16px 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.modal-info {
    padding: 12px;
    background: rgba(0, 188, 212, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0e7490;
}

.modal-warning {
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #b91c1c;
    font-weight: 600;
}

.modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    margin-top: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* === ANNOUNCEMENT FORM === */
.announcement-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.announcement-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    background: #f8fafc;
    box-sizing: border-box;
}

body.dark-mode .announcement-form textarea,
body.theme-dark .announcement-form textarea {
    background: #333333;
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.announcement-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.announcement-type-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.announcement-type-selector label {
    position: relative;
    cursor: pointer;
}

.announcement-type-selector input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f1f5f9;
    color: #64748b;
}

.type-badge.info {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.type-badge.attention {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.type-badge.alerte {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.announcement-type-selector input[type="radio"]:checked + .type-badge {
    border-color: currentColor;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === SEARCH CONTAINER === */
.search-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8fafc url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') no-repeat 16px center;
    box-sizing: border-box;
}

body.dark-mode .search-input,
body.theme-dark .search-input {
    background-color: #333333;
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>');
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

/* === USERS LIST === */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.users-list::-webkit-scrollbar {
    width: 8px;
}

.users-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.users-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.users-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .user-card,
body.theme-dark .user-card {
    background: #333333;
    color: white;
}

body.dark-mode .user-details,
body.theme-dark .user-details {
    color: #a0a0a0;
}

.user-card:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

body.dark-mode .user-card:hover,
body.theme-dark .user-card:hover {
    background: #3d3d3d;
}

.user-card.warned {
    background: rgba(245, 158, 11, 0.05);
    border-left: 4px solid #f59e0b;
}

.user-card.banned {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #ef4444;
    opacity: 0.7;
}

/* CORRECTION: Carte utilisateur en ligne avec bordure verte BIEN VISIBLE */
.user-card.online {
    border-left: 6px solid #22c55e !important;
    background: rgba(34, 197, 94, 0.05) !important;
}

body.dark-mode .user-card.online,
body.theme-dark .user-card.online {
    border-left: 6px solid #22c55e !important;
    background: rgba(34, 197, 94, 0.1) !important;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.user-badge.admin {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.user-badge.warned {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.user-badge.banned {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.user-details {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* CORRECTION: Pastille verte BIEN VISIBLE pour status online */
.online-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(34, 197, 94, 1);
        transform: scale(1.2);
    }
}

.status-online {
    color: #22c55e !important;
    font-weight: 700 !important;
    text-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
    animation: pulse 2s infinite;
}

.status-offline {
    color: #6b7280;
    font-weight: 400;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

/* === BUTTONS === */
.btn-primary, .btn-warning, .btn-danger, .btn-success, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* === DANGER ZONE === */
.danger-zone {
    border: 2px solid #fecaca;
    background: rgba(254, 202, 202, 0.1);
}

body.dark-mode .danger-zone,
body.theme-dark .danger-zone {
    background: rgba(254, 202, 202, 0.05);
    border-color: rgba(254, 202, 202, 0.3);
}

.danger-zone h2 {
    color: #dc2626;
}

.maintenance-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-maintenance-toggle {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-maintenance-toggle.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    animation: none;
}

.maintenance-info {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

/* === SIGNALEMENTS === */
.report-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.report-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.report-tab.active {
    color: #fbbf24;
    border-bottom-color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.status-badge.reviewed {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.status-badge.resolved {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.status-badge.dismissed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pagination-btn {
    padding: 8px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.05);
    color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0 12px;
}

/* === EMOJI SELECTOR INLINE === */
.emoji-selector {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.emoji-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.emoji-btn:hover {
    background: rgba(0, 188, 212, 0.1);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .announcement-type-selector {
        flex-direction: column;
    }
    
    .user-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-actions {
        width: 100%;
    }
    
    .user-actions button {
        flex: 1;
    }
    
    .modal-box {
        margin: 20px;
    }
}
/* ============================================
   FENUA CHAT - PAGE OUTILS
   ============================================ */

.page-outils {
    padding: 20px 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-outils .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 12px;
}

.page-outils .page-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.btn-add-note {
    padding: 10px 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-add-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

/* === TOOLBAR === */
.outils-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.outils-toolbar .search-box {
    flex: 1;
}

.outils-toolbar .search-box input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

body.theme-light .outils-toolbar .search-box input {
    background: #ffffff;
    color: #212121;
}

body.theme-dark .outils-toolbar .search-box input,
body:not(.theme-light) .outils-toolbar .search-box input {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.outils-toolbar .search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.note-filter {
    padding: 12px 18px;
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.theme-light .note-filter {
    background: #ffffff;
    color: #212121;
}

body.theme-dark .note-filter,
body:not(.theme-light) .note-filter {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* ============================================
   URGENCES VIGNETTES - STYLE "NOW CROSSING"
   ============================================ */
.urgences-section {
    margin-bottom: 30px;
}

.urgences-section h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.urgences-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Vignette Urgence - Style "Now Crossing" avec image */
.urgence-tile {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 75px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* DÃ©gradÃ© par-dessus l'image : transparent Ã  gauche -> couleur opaque Ã  droite */
.urgence-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.urgence-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Couleurs par type - DÃ©gradÃ© transparent -> opaque */
.urgence-tile.samu {
    background-color: #c0392b;
}
.urgence-tile.samu::before {
    background: linear-gradient(135deg, rgba(192,57,43,0.2) 0%,rgba(192,57,43,0.6) 40%,rgba(192,57,43,0.95) 69%,rgba(192,57,43,0.95) 100%);
}

.urgence-tile.pompiers {
    background-color: #d35400;
}
.urgence-tile.pompiers::before {
    background: linear-gradient(135deg, rgba(211,84,0,0.2) 0%,rgba(211,84,0,0.6) 40%,rgba(211,84,0,0.95) 67%,rgba(211,84,0,0.95) 100%);
}

.urgence-tile.police {
    background-color: #2980b9;
}
.urgence-tile.police::before {
    background: linear-gradient(135deg, rgba(41,128,185,0.2) 0%,rgba(41,128,185,0.6) 40%,rgba(41,128,185,0.95) 65%,rgba(41,128,185,0.95) 100%);
}

.urgence-tile.mer {
    background-color: #16a085;
}
.urgence-tile.mer::before {
    background: linear-gradient(135deg, rgba(22,160,133,0.2) 0%,rgba(22,160,133,0.6) 40%,rgba(22,160,133,0.95) 66%,rgba(22,160,133,0.95) 100%);
}

.urgence-tile.general {
    background-color: #8e44ad;
}
.urgence-tile.general::before {
    background: linear-gradient(90deg, rgba(142,68,173,0.2) 0%, rgba(142,68,173,0.6) 40%, rgba(142,68,173,0.95) 100%);
}

.urgence-tile.medical {
    background-color: #27ae60;
}
.urgence-tile.medical::before {
    background: linear-gradient(135deg, rgba(39,174,96,0.2) 0%,rgba(39,174,96,0.6) 40%,rgba(39,174,96,0.95) 61%,rgba(39,174,96,0.95) 100%);
}

.urgence-tile.vet {
    background-color: #e67e22;
}
.urgence-tile.vet::before {
    background: linear-gradient(135deg, rgba(230,126,34,0.2) 0%,rgba(230,126,34,0.6) 40%,rgba(230,126,34,0.95) 62%,rgba(230,126,34,0.95) 100%);
}

/* Textes style "Now crossing" */
.urgence-info {
    flex: 1;
    z-index: 2;
    line-height: 1.2;
    padding-left: 5px;
}

.urgence-upper {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
    margin-bottom: 2px;
    color: white !important;
}

.urgence-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: white !important;
}

/* Mode jour/nuit : toujours blanc pour urgence-info */
.urgence-info {
    color: white !important;
}

/* Boutons CTA */
.urgence-cta {
    z-index: 2;
    display: flex;
    gap: 8px;
}

/* Bouton Appeler - Couleurs par type */
.btn-call {
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mode jour : forcer texte blanc pour les CTA */
body.theme-light .btn-call {
    color: white !important;
}

body.theme-light .btn-info {
    color: white !important;
}

.btn-call-samu { background: #c0392b;box-shadow: inset 0px 0px 13px #000; }
.btn-call-pompiers { background: #d35400;box-shadow: inset 0px 0px 13px #000; }
.btn-call-police { background: #2980b9;box-shadow: inset 0px 0px 13px #000; }
.btn-call-mer { background: #16a085;box-shadow: inset 0px 0px 13px #000; }
.btn-call-medical { background: #27ae60;box-shadow: inset 0px 0px 13px #000; }
.btn-call-vet { background: #e67e22;box-shadow: inset 0px 0px 13px #000; }

.btn-call:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.btn-info {
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-info-samu { background: #a93226; }
.btn-info-pompiers { background: #ba4a00; }
.btn-info-police { background: #21618c; }
.btn-info-mer { background: #138d75; }
.btn-info-medical { background: #1e8449; }
.btn-info-vet { background: #ca6f1e; }

.btn-info:hover {
    filter: brightness(1.15);
}

/* === NOTES GRID === */
.outils-section-title {
    font-size: 1.2rem;
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.outils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.note-card {
    padding: 18px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 188, 212, 0.2);
}

body.theme-light .note-card {
    background: #ffffff;
}

body.theme-dark .note-card,
body:not(.theme-light) .note-card {
    background: rgba(255, 255, 255, 0.05);
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.2);
}

.note-card.important {
    border-left: 4px solid #ff3131;
}

.note-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.note-card h3 {
    font-size: 1.1rem;
    margin: 0;
}

.note-action-btn {
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    font-size: 1rem;
}

.note-action-btn:hover {
    opacity: 1;
}

.note-card-content {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

.important-badge {
    background: #ff3131;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ============================================
   MODAL NOTES - OPTIMISÃ‰E MOBILE
   ============================================ */
.note-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 10px;
}

.note-modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.note-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(8px);
    z-index: 1;
}

.note-modal-content {
    position: relative;
    width: calc(100% - 20px);
    max-width: 500px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: noteModalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.theme-light .note-modal-content {
    background: #ffffff;
}

body.theme-dark .note-modal-content,
body:not(.theme-light) .note-modal-content {
    background: #1e1e1e;
}

@keyframes noteModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.note-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
    flex-shrink: 0;
}

.note-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.btn-close-note {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-note:hover {
    background: rgba(0, 188, 212, 0.1);
}

.note-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.note-input-title {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

body.theme-light .note-input-title {
    background: #f5f5f5;
    color: #212121;
}

body.theme-dark .note-input-title,
body:not(.theme-light) .note-input-title {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.note-input-title:focus {
    outline: none;
    border-color: var(--primary-color);
}

.note-textarea {
    width: 100%;
    min-height: 150px;
    padding: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 12px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
}

body.theme-light .note-textarea {
    background: #f5f5f5;
    color: #212121;
}

body.theme-dark .note-textarea,
body:not(.theme-light) .note-textarea {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.note-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.note-options {
    margin-top: 12px;
}

.note-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.note-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.note-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 188, 212, 0.2);
    flex-shrink: 0;
}

.btn-note-secondary,
.btn-note-primary {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-note-secondary {
    border: 2px solid rgba(0, 188, 212, 0.3);
    background: transparent;
    color: var(--text-dark);
}

.btn-note-secondary:hover {
    border-color: var(--primary-color);
}

.btn-note-primary {
    border: none;
    background: var(--primary-color);
    color: white;
}

.btn-note-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

/* === MODAL INFO URGENCE === */
.urgence-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.urgence-modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.urgence-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(8px);
    z-index: 1;
}

.urgence-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    z-index: 2;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: noteModalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 188, 212, 0.3), 0 0 0 2px rgba(0, 188, 212, 0.4);
}

body.theme-light .urgence-modal-content {
    background: #ffffff;
}

body.theme-dark .urgence-modal-content,
body:not(.theme-light) .urgence-modal-content {
    background: #1e1e1e;
}

.urgence-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
    flex-shrink: 0;
}

.urgence-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.urgence-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.urgence-modal-close:hover {
    background: rgba(0, 188, 212, 0.1);
}

.urgence-modal-body {
    padding: 15px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 180px);
    max-height: calc(100dvh - 180px);
}

.urgence-modal-body > p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
    opacity: 0.8;
}

.urgence-numbers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.urgence-numbers-list li {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.urgence-numbers-list li.urgence-section-title {
    background: rgba(0, 188, 212, 0.25);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: 12px;
    justify-content: flex-start;
}

.urgence-numbers-list li.urgence-section-title:first-child {
    margin-top: 0;
}

.urgence-numbers-list li span {
    flex: 1;
    margin-right: 10px;
}

.urgence-numbers-list a {
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
}

/* === EMPTY STATE === */
.outils-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.outils-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE - PETITES RÃ‰SOLUTIONS
   ============================================ */
@media (max-width: 480px) {
    .page-outils {
        padding: 12px 10px;
    }
    
    .page-outils .page-header {
        margin-bottom: 15px;
    }
    
    .page-outils .page-header h1 {
        font-size: 1.25rem;
    }
    
    .btn-add-note {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .outils-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .outils-toolbar .search-box input,
    .note-filter {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    /* Urgences tiles mobile */
    .urgence-tile {
        padding: 10px 12px;
        min-height: 60px;
    }
    
    .urgence-info {
        padding-left: 3px;
    }
    
    .urgence-upper {
        font-size: 0.6rem;
    }
    
    .urgence-title {
        font-size: 0.95rem;
    }
    
    .btn-call {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .btn-info {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    /* Notes grid mobile */
    .outils-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .note-card {
        padding: 14px;
    }
    
    .note-card h3 {
        font-size: 1rem;
    }
    
    .note-card-content {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    /* Modal notes mobile optimisÃ©e */
    .note-modal {
        padding: 8px;
    }
    
    .note-modal-content {
        width: calc(100% - 16px);
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        border-radius: 16px;
    }
    
    .note-modal-header {
        padding: 12px 16px;
    }
    
    .note-modal-header h2 {
        font-size: 1.1rem;
    }
    
    .btn-close-note {
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }
    
    .note-modal-body {
        padding: 16px;
    }
    
    .note-input-title {
        padding: 12px;
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .note-textarea {
        min-height: 120px;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .note-modal-footer {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .btn-note-secondary,
    .btn-note-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Urgence modal mobile optimisÃ©e */
    .urgence-modal {
        padding: 8px;
    }
    
    .urgence-modal-content {
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        border-radius: 16px;
    }
    
    .urgence-modal-header {
        padding: 12px 16px;
    }
    
    .urgence-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .urgence-modal-body {
        padding: 12px 16px;
        max-height: calc(100vh - 140px);
        max-height: calc(100dvh - 140px);
    }
    
    .urgence-modal-body > p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .urgence-numbers-list li {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .urgence-numbers-list li.urgence-section-title {
        font-size: 0.85rem;
        margin-top: 10px;
    }
    
    .urgence-numbers-list a {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .urgence-cta {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-call,
    .btn-info {
        text-align: center;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .page-outils {
        padding: 25px;
    }
    
    .urgences-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .outils-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (min-width: 1024px) {
    .urgences-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* ============================================
   FENUA CHAT - PAGE PARAMÃˆTRES
   Styles dÃ©diÃ©s pour settings.html
   ============================================ */

/* === LAYOUT === */
.page-settings {
    padding: 25px;
    max-width: 900px;
    margin: 0 auto;
}


.page-settings .page-header h1 {
    font-size: 2rem;
    margin: 0;
}

/* Couleur texte selon thÃ¨me */
body.theme-light .page-settings .page-header h1 {
    color: #212121;
}

body.theme-dark .page-settings .page-header h1 {
    color: #ffffff;
}

.page-settings .settings-section {
    margin-bottom: 35px;
}

.page-settings .section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px 0;
}

body.theme-light .page-settings .section-title {
    color: #212121;
}

body.theme-dark .page-settings .section-title {
    color: #ffffff;
}

/* === CARDS === */
.page-settings .settings-card {
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(0, 188, 212, 0.2);
}

body.theme-light .page-settings .settings-card {
    background: #ffffff;
}

body.theme-dark .page-settings .settings-card {
    background: rgba(255, 255, 255, 0.05);
}

/* === PROFILE CARD === */
.page-settings .profile-card {
    padding: 30px;
    border-radius: 20px;
    display: flex;
    gap: 35px;
    align-items: flex-start;
    border: 2px solid rgba(0, 188, 212, 0.2);
}

body.theme-light .page-settings .profile-card {
    background: #ffffff;
}

body.theme-dark .page-settings .profile-card {
    background: rgba(255, 255, 255, 0.05);
}

/* === AVATAR === */
.page-settings .profile-avatar-container {
    position: relative;
}

.page-settings .profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    /* ⚠️ background défini dynamiquement en JS avec style inline !important */
    /* Fallback uniquement si JS échoue */
    background-color: #00bcd4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    /* Transition pour smooth color change */
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
}

/* 🎨 S'assurer que les styles inline ne sont JAMAIS écrasés */
.page-settings .profile-avatar[style*="background-color"] {
    /* Le style inline prend toujours la priorité sur les CSS */
}

.page-settings .change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

body.theme-light .page-settings .change-avatar-btn {
    border-color: #ffffff;
}

body.theme-dark .page-settings .change-avatar-btn {
    border-color: rgba(255, 255, 255, 0.05);
}

.page-settings .change-avatar-btn:hover {
    transform: scale(1.1);
}

/* === PROFILE INFO === */
.page-settings .profile-info {
    flex: 1;
}

.page-settings .form-group {
    margin-bottom: 22px;
}

.page-settings .form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Labels couleur selon thÃ¨me */
body.theme-light .page-settings .form-group label {
    color: #212121;
}

body.theme-dark .page-settings .form-group label {
    color: #ffffff;
}

.page-settings .field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    opacity: 0.7;
}

body.theme-light .page-settings .field-hint {
    color: #666666;
}

body.theme-dark .page-settings .field-hint {
    color: #aaaaaa;
}

.page-settings .field-hint.warning {
    color: #ff9800;
    opacity: 1;
}

/* === FORM INPUTS === */
.page-settings .form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.page-settings .form-input:disabled,
.page-settings .form-input-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body.theme-light .page-settings .form-input {
    background: #f5f5f5;
    color: #212121;
}

body.theme-light .page-settings .form-input:disabled,
body.theme-light .page-settings .form-input-disabled {
    background: #e0e0e0;
    color: #666666;
}

body.theme-dark .page-settings .form-input {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

body.theme-dark .page-settings .form-input:disabled,
body.theme-dark .page-settings .form-input-disabled {
    background: rgba(128, 128, 128, 0.2);
    color: #888888;
}

.page-settings .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.page-settings .form-input-small {
    padding: 12px 18px;
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 120px;
}

body.theme-light .page-settings .form-input-small {
    background: #f5f5f5;
    color: #212121;
}

body.theme-dark .page-settings .form-input-small {
    background: rgba(30, 30, 30, 0.9);
    color: #ffffff;
}

/* Options dans les selects */
body.theme-dark .page-settings .form-input-small option {
    background: #1e1e1e;
    color: #ffffff;
}

body.theme-light .page-settings .form-input-small option {
    background: #ffffff;
    color: #212121;
}

/* === SAVE BUTTON === */
.page-settings .btn-save {
    padding: 15px 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-settings .btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

/* === SETTING ITEMS === */
.page-settings .setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid rgba(0, 188, 212, 0.2);
}

.page-settings .setting-item:last-child {
    border-bottom: none;
}

.page-settings .setting-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

body.theme-light .page-settings .setting-info h3 {
    color: #212121;
}

body.theme-dark .page-settings .setting-info h3 {
    color: #ffffff;
}

.page-settings .setting-info p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.7;
}

body.theme-light .page-settings .setting-info p {
    color: #666666;
}

body.theme-dark .page-settings .setting-info p {
    color: #aaaaaa;
}

/* === TOGGLE SWITCH === */
.page-settings .toggle-switch {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 30px;
}

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

.page-settings .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 188, 212, 0.3);
    transition: 0.4s;
    border-radius: 30px;
}

.page-settings .toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

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

.page-settings input:checked + .toggle-slider:before {
    transform: translateX(25px);
}

/* === LOGOUT BUTTON === */
.page-settings .btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: transparent;
    border: 2px solid #f44336;
    border-radius: 20px;
    color: #f44336;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.page-settings .btn-logout:hover {
    background: rgba(244, 67, 54, 0.1);
    transform: translateY(-3px);
}

/* === DELETE ACCOUNT BUTTON === */
.page-settings .btn-delete-account {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: transparent;
    border: 2px solid #b71c1c;
    border-radius: 20px;
    color: #b71c1c;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-settings .btn-delete-account:hover {
    background: rgba(183, 28, 28, 0.15);
    transform: translateY(-3px);
    border-color: #7f0000;
    color: #7f0000;
}

/* === DISABLED STATE === */
#soundSelectorContainer.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* === TOAST NOTIFICATION (VIEWPORT FIXED - ALWAYS VISIBLE) === */
#settingsToast {
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 15px 30px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    z-index: 2147483647; /* Max z-index */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 85%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

#settingsToast.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

#settingsToast.success {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#settingsToast.error {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#settingsToast.info {
    background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {
    .page-settings .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .page-settings .profile-info {
        width: 100%;
    }
}
/* ==============================================
   STYLE PERSONNALISÃ‰ VALIDATION HTML5
   ============================================== */

/* Style pour les champs invalides */
input:invalid:not(:placeholder-shown),
input[type="checkbox"]:invalid {
    border-color: #f44336 !important;
}

/* EmpÃªcher l'affichage de l'infobulle native du navigateur */
input:invalid {
    box-shadow: none !important;
}

/* Style pour la checkbox non cochÃ©e avec effet visuel */
#confirm-terms:invalid {
    outline: 2px solid #f44336;
    outline-offset: 2px;
}

#confirm-terms:valid {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Animation pulse pour attirer l'attention sur la checkbox */
@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
}

#confirm-terms:invalid {
    animation: pulse-red 2s infinite;
}

/* Style personnalisÃ© pour l'infobulle de validation */
input::-webkit-validation-bubble-message {
    background-color: #f44336 !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 15px !important;
    border-radius: 8px !important;
}

/* Pour Firefox */
input::-moz-error-message {
    background-color: #f44336 !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 15px !important;
    border-radius: 8px !important;
}

/* Style pour le label de la checkbox CGU */
label[for="confirm-terms"] {
    cursor: pointer;
    user-select: none;
}

label[for="confirm-terms"]:hover {
    color: #667eea;
}
