/* ============================================
   BLUE MIRAGE — INTRANET STYLES
   ============================================ */

:root {
    --neon-blue: #00d4ff;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-blue-glow: rgba(0, 212, 255, 0.4);
    --neon-purple-glow: rgba(168, 85, 247, 0.4);
    --bg-dark: #050510;
    --bg-sidebar: #0a0a1e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-input: rgba(255, 255, 255, 0.04);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 212, 255, 0.3);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s ease;
    --sidebar-width: 260px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg-dark); color: var(--text-primary); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple)); border-radius: 3px; }

.particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.particle { position: absolute; width: 3px; height: 3px; background: var(--neon-blue); border-radius: 50%; opacity: 0; animation: particleFloat linear infinite; }
@keyframes particleFloat { 0% { opacity: 0; transform: translateY(100vh) scale(0); } 10% { opacity: 0.8; } 90% { opacity: 0.3; } 100% { opacity: 0; transform: translateY(-10vh) scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cropModalAppear { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ---------- BOUTONS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.75rem; border: none; border-radius: 12px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all var(--transition-smooth); }
.btn--primary { background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); color: #fff; }
.btn--primary:hover { box-shadow: 0 10px 40px var(--neon-blue-glow); transform: translateY(-2px); }
.btn--glow { box-shadow: 0 0 20px var(--neon-blue-glow); }
.btn--outline { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.btn--outline:hover { border-color: var(--neon-blue); color: var(--neon-blue); }
.btn--lg { padding: 1rem 2rem; font-size: 0.95rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.78rem; border-radius: 8px; }
.btn--danger { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; }
.btn--danger:hover { background: rgba(239, 68, 68, 0.25); }
.btn--success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); color: #22c55e; }
.btn--success:hover { background: rgba(34, 197, 94, 0.25); }
.btn__icon { width: 18px; height: 18px; }

/* ---------- FORM ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-input-wrapper { position: relative; display: flex; align-items: center; }
.form-input-icon { position: absolute; left: 1rem; width: 18px; height: 18px; stroke: var(--text-muted); pointer-events: none; z-index: 1; }
.form-input { width: 100%; padding: 0.85rem 1rem 0.85rem 2.75rem; background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 12px; color: var(--text-primary); font-family: var(--font-body); font-size: 0.9rem; transition: all var(--transition-fast); outline: none; }
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--neon-blue); background: rgba(0, 212, 255, 0.03); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08); }
.form-input-wrapper:focus-within .form-input-icon { stroke: var(--neon-blue); }
.form-input-toggle { position: absolute; right: 1rem; background: none; border: none; cursor: pointer; padding: 0; display: flex; }
.form-input-toggle svg { width: 18px; height: 18px; stroke: var(--text-muted); }
.form-input--simple { padding: 0.75rem 1rem; padding-left: 1rem; }
.form-input--file { padding: 0.5rem; }
.form-hint { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-row--double { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- LOGIN ---------- */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login { position: relative; width: 100%; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.login__bg-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at 30% 40%, rgba(0, 212, 255, 0.08) 0%, transparent 50%), radial-gradient(ellipse at 70% 60%, rgba(168, 85, 247, 0.06) 0%, transparent 50%); }
.login__card { position: relative; z-index: 2; width: 90%; max-width: 420px; padding: 3rem 2.5rem; background: rgba(10, 10, 30, 0.85); border: 1px solid var(--border-subtle); border-radius: 20px; backdrop-filter: blur(20px); text-align: center; animation: cardAppear 0.8s ease forwards; }
@keyframes cardAppear { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
.login__logo { width: 120px; margin-bottom: 1rem; filter: drop-shadow(0 0 20px var(--neon-blue-glow)); animation: logoPulse 3s ease-in-out infinite; }
@keyframes logoPulse { 0%, 100% { filter: drop-shadow(0 0 20px var(--neon-blue-glow)); } 50% { filter: drop-shadow(0 0 40px var(--neon-blue-glow)) drop-shadow(0 0 60px var(--neon-purple-glow)); } }
.login__title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.25rem; }
.login__subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.login__form .form-group { text-align: left; }
.login__submit { width: 100%; margin-top: 0.5rem; border-radius: 12px; }
.login__footer-text { font-size: 0.7rem; color: var(--text-muted); margin-top: 2rem; }
.login__alert { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1.5rem; font-size: 0.82rem; text-align: left; }
.login__alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.login__alert--error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; }
.login__alert--error svg { stroke: #ef4444; }
.login__alert--warning { background: rgba(255, 193, 7, 0.08); border: 1px solid rgba(255, 193, 7, 0.2); color: #ffc107; }
.login__alert--warning svg { stroke: #ffc107; }

/* ---------- APP LAYOUT ---------- */
.app-page { display: flex; min-height: 100vh; }

/* ---------- SIDEBAR ---------- */
.sidebar { width: var(--sidebar-width); height: 100vh; position: fixed; left: 0; top: 0; background: var(--bg-sidebar); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; z-index: 100; transition: transform var(--transition-smooth); overflow-y: auto; }
.sidebar__header { padding: 1.5rem; display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--border-subtle); }
.sidebar__logo { width: 40px; height: auto; filter: drop-shadow(0 0 10px var(--neon-blue-glow)); }
.sidebar__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--neon-blue); }
.sidebar__user { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 0.75rem; }
.sidebar__user-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 212, 255, 0.1); border: 2px solid rgba(0, 212, 255, 0.3); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; flex-shrink: 0; }
.sidebar__user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar__user-initials { font-size: 0.75rem; font-weight: 700; color: var(--neon-blue); }
.sidebar__user-status { position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px; background: #22c55e; border-radius: 50%; border: 2px solid var(--bg-sidebar); }
.sidebar__user-name { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.sidebar__user-role { display: flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 500; }
.sidebar__admin-badge { padding: 0.1rem 0.4rem; background: rgba(236, 72, 153, 0.15); border: 1px solid rgba(236, 72, 153, 0.3); border-radius: 4px; font-size: 0.6rem; color: var(--neon-pink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar__nav { flex: 1; padding: 1rem 0; }
.sidebar__nav-section { display: block; padding: 0.75rem 1.5rem 0.35rem; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); }
.sidebar__link { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1.5rem; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); transition: all var(--transition-fast); position: relative; }
.sidebar__link svg { width: 20px; height: 20px; stroke: var(--text-muted); flex-shrink: 0; transition: stroke var(--transition-fast); }
.sidebar__link:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.03); }
.sidebar__link:hover svg { stroke: var(--text-primary); }
.sidebar__link.active { color: var(--neon-blue); background: rgba(0, 212, 255, 0.05); }
.sidebar__link.active::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple)); border-radius: 0 2px 2px 0; }
.sidebar__link.active svg { stroke: var(--neon-blue); }
.sidebar__link--logout { color: rgba(239, 68, 68, 0.6); }
.sidebar__link--logout:hover { color: #ef4444; background: rgba(239, 68, 68, 0.05); }
.sidebar__link--logout svg { stroke: rgba(239, 68, 68, 0.6); }
.sidebar__link--logout:hover svg { stroke: #ef4444; }
.sidebar__badge { margin-left: auto; padding: 0.15rem 0.5rem; border-radius: 50px; font-size: 0.65rem; font-weight: 700; background: var(--neon-pink); color: #fff; min-width: 20px; text-align: center; }
.sidebar__badge--chat { background: var(--neon-blue); }
.sidebar__footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-subtle); }
.sidebar__site-link { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-muted); transition: color var(--transition-fast); }
.sidebar__site-link svg { width: 16px; height: 16px; }
.sidebar__site-link:hover { color: var(--neon-blue); }

/* ---------- MAIN ---------- */
.main-content { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; }

/* ---------- TOPBAR ---------- */
.topbar { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 2rem; border-bottom: 1px solid var(--border-subtle); background: rgba(5, 5, 16, 0.8); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; }
.topbar__burger { display: none; background: none; border: none; cursor: pointer; padding: 5px; flex-direction: column; gap: 4px; }
.topbar__burger span { display: block; width: 20px; height: 2px; background: var(--text-primary); border-radius: 1px; }
.topbar__title { flex: 1; }
.topbar__title h1 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.topbar__title p { font-size: 0.78rem; color: var(--text-muted); }
.topbar__date { font-size: 0.78rem; color: var(--text-muted); }

.content { padding: 2rem; }

/* ---------- STATS ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; transition: all var(--transition-smooth); }
.stat-card:hover { transform: translateY(-3px); border-color: var(--border-glow); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.stat-card__icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-card__icon svg { width: 24px; height: 24px; }
.stat-card--blue .stat-card__icon { background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.2); }
.stat-card--blue .stat-card__icon svg { stroke: var(--neon-blue); }
.stat-card--purple .stat-card__icon { background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.2); }
.stat-card--purple .stat-card__icon svg { stroke: var(--neon-purple); }
.stat-card--pink .stat-card__icon { background: rgba(236, 72, 153, 0.1); border: 1px solid rgba(236, 72, 153, 0.2); }
.stat-card--pink .stat-card__icon svg { stroke: var(--neon-pink); }
.stat-card--green .stat-card__icon { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.2); }
.stat-card--green .stat-card__icon svg { stroke: #22c55e; }
.stat-card__value { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-card__label { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---------- DASHBOARD ---------- */
.dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.25rem; }
.dashboard-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; }
.dashboard-card--wide { grid-column: 1 / -1; }
.dashboard-card__header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-subtle); }
.dashboard-card__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.dashboard-card__link { font-size: 0.78rem; color: var(--neon-blue); transition: opacity var(--transition-fast); }
.dashboard-card__link:hover { opacity: 0.8; }
.dashboard-card__body { padding: 1.25rem 1.5rem; }
.dashboard-card__empty { font-size: 0.85rem; color: var(--text-muted); text-align: center; padding: 2rem 0; }

/* ---------- TABLE ---------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); text-align: left; padding: 0.5rem 0.75rem 0.75rem; }
.data-table td { font-size: 0.85rem; color: var(--text-secondary); padding: 0.75rem; border-top: 1px solid var(--border-subtle); }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table__id { font-weight: 600; color: var(--text-muted); font-size: 0.8rem; }
.data-table__date { font-size: 0.78rem; color: var(--text-muted); }

.tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.3px; }
.tag--blue { background: rgba(0, 212, 255, 0.1); color: var(--neon-blue); }
.tag--purple { background: rgba(168, 85, 247, 0.1); color: var(--neon-purple); }
.tag--gold { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.tag--admin { background: rgba(236, 72, 153, 0.15); border: 1px solid rgba(236, 72, 153, 0.3); color: var(--neon-pink); font-size: 0.6rem; }

.status { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem; border-radius: 50px; font-size: 0.68rem; font-weight: 600; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status--new { background: rgba(0, 212, 255, 0.1); color: var(--neon-blue); }
.status--new::before { background: var(--neon-blue); box-shadow: 0 0 6px var(--neon-blue-glow); }
.status--progress { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.status--progress::before { background: #ffc107; }
.status--done { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.status--done::before { background: #22c55e; }
.status--cancelled { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.status--cancelled::before { background: #ef4444; }

/* ---------- CHARTS ---------- */
.chart-bars { display: flex; align-items: flex-end; justify-content: space-between; height: 180px; gap: 0.5rem; padding-top: 1rem; }
.chart-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; height: 100%; justify-content: flex-end; }
.chart-bar__fill { width: 100%; min-height: 4px; background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple)); border-radius: 6px 6px 0 0; position: relative; transition: height 1s ease; cursor: pointer; }
.chart-bar__fill:hover { opacity: 0.8; }
.chart-bar__tooltip { position: absolute; top: -1.5rem; left: 50%; transform: translateX(-50%); font-size: 0.7rem; font-weight: 700; color: var(--neon-blue); opacity: 0; transition: opacity var(--transition-fast); }
.chart-bar__fill:hover .chart-bar__tooltip { opacity: 1; }
.chart-bar__label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; }

.stats-list { display: flex; flex-direction: column; gap: 1rem; }
.stats-list__header { display: flex; justify-content: space-between; margin-bottom: 0.35rem; }
.stats-list__label { font-size: 0.78rem; color: var(--text-secondary); }
.stats-list__value { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.stats-list__bar { width: 100%; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.stats-list__bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }

/* ---------- ALERTES ---------- */
.alert { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.25rem; border-radius: 12px; margin-bottom: 1.5rem; font-size: 0.85rem; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert--success { background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.2); color: #22c55e; }
.alert--success svg { stroke: #22c55e; }
.alert--error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; }
.alert--error svg { stroke: #ef4444; }

/* ---------- MINI STATS ---------- */
.mini-stats { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.mini-stat { flex: 1; padding: 1rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; text-align: center; }
.mini-stat__value { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.mini-stat__label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.mini-stat--blue .mini-stat__value { color: var(--neon-blue); }
.mini-stat--yellow .mini-stat__value { color: #ffc107; }
.mini-stat--green .mini-stat__value { color: #22c55e; }
.mini-stat--red .mini-stat__value { color: #ef4444; }

/* ---------- FILTERS ---------- */
.filters-bar { margin-bottom: 1.5rem; }
.filters-bar__form { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.filters-bar__search { position: relative; flex: 1; min-width: 200px; }
.filters-bar__search svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--text-muted); }
.filters-bar__input { width: 100%; padding: 0.6rem 1rem 0.6rem 2.25rem; background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 10px; color: var(--text-primary); font-family: var(--font-body); font-size: 0.85rem; outline: none; transition: border-color var(--transition-fast); }
.filters-bar__input:focus { border-color: var(--neon-blue); }
.filters-bar__select { padding: 0.6rem 2rem 0.6rem 0.75rem; background: #0a0a1e; border: 1px solid var(--border-subtle); border-radius: 10px; color: #ffffff; font-family: var(--font-body); font-size: 0.8rem; outline: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; cursor: pointer; }
.filters-bar__select:focus { border-color: var(--neon-blue); }
.filters-bar__select option { background: #0a0a1e; color: #ffffff; }

/* Style pour tous les select du formulaire intranet */
select.form-input {
    background: #0a0a1e !important;
    color: #ffffff !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    cursor: pointer;
}
select.form-input:focus {
    border-color: var(--neon-blue);
    background: #0d0d25 !important;
}
select.form-input option {
    background: #0a0a1e;
    color: #ffffff;
}

/* ---------- TABLE FULL ---------- */
.table-wrapper { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; overflow-x: auto; }
.data-table--full th, .data-table--full td { padding: 0.85rem 1rem; }
.data-table--full thead { border-bottom: 1px solid var(--border-subtle); }
.text-muted { color: var(--text-muted); }

/* ---------- ACTIONS ---------- */
.actions-group { display: flex; gap: 0.35rem; }
.action-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-subtle); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-fast); }
.action-btn svg { width: 15px; height: 15px; stroke: var(--text-muted); }
.action-btn--view:hover { border-color: var(--neon-blue); background: rgba(0, 212, 255, 0.05); }
.action-btn--view:hover svg { stroke: var(--neon-blue); }
.action-btn--accept:hover { border-color: #22c55e; background: rgba(34, 197, 94, 0.05); }
.action-btn--accept:hover svg { stroke: #22c55e; }
.action-btn--reject:hover { border-color: #ef4444; background: rgba(239, 68, 68, 0.05); }
.action-btn--reject:hover svg { stroke: #ef4444; }
.action-btn--active { border-color: var(--neon-pink); background: rgba(236, 72, 153, 0.1); }
.action-btn--active svg { stroke: var(--neon-pink); }

/* ---------- PAGINATION ---------- */
.pagination { display: flex; justify-content: center; gap: 0.35rem; padding: 1.25rem; }
.pagination__btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border-subtle); background: transparent; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.pagination__btn:hover { border-color: var(--neon-blue); color: var(--neon-blue); }
.pagination__btn.active { background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); border-color: transparent; color: #fff; }

/* ---------- EMPTY STATE ---------- */
.empty-state { text-align: center; padding: 3rem 2rem; }
.empty-state svg { width: 40px; height: 40px; stroke: var(--text-muted); margin-bottom: 1rem; }
.empty-state p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- MODALE ---------- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background: rgba(5, 5, 16, 0.9); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--transition-smooth); padding: 2rem; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: rgba(15, 15, 35, 0.98); border: 1px solid var(--border-subtle); border-radius: 20px; max-height: 90vh; overflow-y: auto; position: relative; transform: translateY(20px); transition: transform var(--transition-smooth); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal--md { max-width: 650px; width: 100%; }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all var(--transition-fast); }
.modal__close svg { width: 16px; height: 16px; stroke: var(--text-muted); }
.modal__close:hover { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); }
.modal__close:hover svg { stroke: #ef4444; }
.modal__body { padding: 2rem; }
.modal__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.modal__actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }
.modal__loader { text-align: center; padding: 2rem; color: var(--text-muted); }

/* ---------- MODALE DÉTAIL ---------- */
.modal-detail__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-detail__header h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.modal-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.modal-detail__label { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.2rem; }
.modal-detail__value { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.modal-detail__message { padding: 1rem; background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: 10px; margin-bottom: 1.5rem; }
.modal-detail__message p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-top: 0.5rem; }
.modal-detail__actions { display: flex; gap: 0.5rem; }

/* ---------- DANSEUSES ADMIN ---------- */
.dancers-admin-grid { display: flex; flex-direction: column; gap: 1rem; }
.dancer-admin-card { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; transition: all var(--transition-smooth); }
.dancer-admin-card:hover { border-color: var(--border-glow); }
.dancer-admin-card--hidden { opacity: 0.5; }
.dancer-admin-card__photo { width: 70px; height: 70px; border-radius: 12px; overflow: hidden; flex-shrink: 0; position: relative; }
.dancer-admin-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.dancer-admin-card__no-photo { width: 100%; height: 100%; background: var(--bg-input); display: flex; align-items: center; justify-content: center; }
.dancer-admin-card__no-photo svg { width: 28px; height: 28px; stroke: var(--text-muted); }
.dancer-admin-card__hidden-badge { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; color: #ef4444; }
.dancer-admin-card__info { flex: 1; }
.dancer-admin-card__info h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.dancer-admin-card__meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.dancer-admin-card__exp { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.dancer-admin-card__actions { display: flex; gap: 0.35rem; }

/* ---------- PERSONNEL ---------- */
.personnel-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.personnel-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; }
.personnel-card__avatar { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.personnel-card__initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; font-size: 0.75rem; font-weight: 700; }
.personnel-card__online { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; background: #22c55e; border-radius: 50%; border: 2px solid var(--bg-dark); }
.personnel-card__info { flex: 1; }
.personnel-card__info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.personnel-card__pseudo { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }
.personnel-card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.25rem; }
.personnel-card__last-seen { font-size: 0.7rem; color: var(--text-muted); }
.personnel-card__actions { display: flex; gap: 0.35rem; }

/* ---------- CHAT ---------- */
.content--chat { padding: 0; height: calc(100vh - 65px); display: flex; }
.chat-container { flex: 1; display: flex; flex-direction: column; height: 100%; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-msg { display: flex; gap: 0.6rem; max-width: 75%; }
.chat-msg--own { margin-left: auto; flex-direction: row-reverse; }
.chat-msg__avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 700; flex-shrink: 0; }
.chat-msg__content { display: flex; flex-direction: column; gap: 0.15rem; }
.chat-msg__name { font-size: 0.7rem; font-weight: 600; }
.chat-msg__bubble { padding: 0.6rem 1rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px 12px 12px 4px; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; word-break: break-word; }
.chat-msg--own .chat-msg__bubble { background: rgba(0, 212, 255, 0.08); border-color: rgba(0, 212, 255, 0.15); border-radius: 12px 12px 4px 12px; }
.chat-msg--own .chat-msg__content { align-items: flex-end; }
.chat-msg__time { font-size: 0.6rem; color: var(--text-muted); }
.chat-input-bar { display: flex; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border-subtle); background: var(--bg-sidebar); }
.chat-input { flex: 1; padding: 0.75rem 1rem; background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 12px; color: var(--text-primary); font-family: var(--font-body); font-size: 0.9rem; outline: none; }
.chat-input:focus { border-color: var(--neon-blue); }
.chat-send { padding: 0.75rem 1rem; }

/* ---------- PROFIL ---------- */
.profil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ---------- VITRINE ---------- */
.vitrine-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.vitrine-empty { text-align: center; padding: 4rem 2rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 20px; }
.vitrine-empty__icon { width: 60px; height: 60px; margin: 0 auto 1.5rem; border-radius: 50%; background: rgba(255, 193, 7, 0.1); border: 1px solid rgba(255, 193, 7, 0.2); display: flex; align-items: center; justify-content: center; }
.vitrine-empty__icon svg { width: 28px; height: 28px; stroke: #ffc107; }
.vitrine-empty__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.vitrine-empty__text { font-size: 0.9rem; color: var(--text-muted); max-width: 450px; margin: 0 auto; line-height: 1.6; }

.vitrine-preview { position: sticky; top: 90px; width: 100%; max-width: 320px; }
.vitrine-preview__title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.vitrine-preview__title svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }

.vitrine-preview__card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; width: 100%; }

.vitrine-preview__photo { position: relative; width: 100%; height: 400px; overflow: hidden; }
.vitrine-preview__photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.vitrine-preview__photo svg { width: 40px !important; height: 40px !important; }

.vitrine-preview__no-photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-input); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.vitrine-preview__no-photo svg { width: 40px !important; height: 40px !important; stroke: var(--text-muted); }
.vitrine-preview__no-photo span { font-size: 0.8rem; color: var(--text-muted); }

.vitrine-preview__status { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 50px; font-size: 0.6rem; font-weight: 600; text-transform: uppercase; backdrop-filter: blur(10px); z-index: 2; }
.vitrine-preview__status--available { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); color: #22c55e; }
.vitrine-preview__status--unavailable { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; }

.vitrine-preview__tag { position: absolute; bottom: 0.75rem; left: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 50px; font-size: 0.6rem; font-weight: 600; text-transform: uppercase; background: rgba(0, 212, 255, 0.15); border: 1px solid rgba(0, 212, 255, 0.3); color: var(--neon-blue); backdrop-filter: blur(10px); z-index: 2; }

.vitrine-preview__info { padding: 1rem; text-align: center; }
.vitrine-preview__info h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.vitrine-preview__info p { font-size: 0.75rem; color: var(--text-muted); }

.vitrine-preview__stats { margin-top: 1rem; display: flex; justify-content: center; padding-bottom: 0.5rem; }
.vitrine-preview__stat { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--neon-pink); }
.vitrine-preview__stat svg { width: 16px !important; height: 16px !important; flex-shrink: 0; stroke: var(--neon-pink); }

.vitrine-toggle { display: flex; gap: 0.5rem; }
.vitrine-toggle__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.7rem 1rem; background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 10px; color: var(--text-muted); font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all var(--transition-fast); }
.vitrine-toggle__btn:hover { border-color: var(--text-muted); }
.vitrine-toggle__btn.active { border-color: var(--neon-blue); background: rgba(0, 212, 255, 0.05); color: var(--text-primary); }

.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status-dot--available { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
.status-dot--unavailable { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); }

.photo-upload-zone { text-align: center; padding: 20px; border: 2px dashed rgba(255, 255, 255, 0.1); border-radius: 12px; transition: border-color 0.3s; }
.photo-upload-zone:hover { border-color: var(--neon-blue); }
.upload-hint { display: block; color: rgba(255, 255, 255, 0.4); font-size: 0.8rem; margin-top: 8px; }
.upload-success { display: block; color: #00ff88; font-size: 0.85rem; margin-top: 8px; animation: fadeIn 0.3s ease; }

.vitrine-submit { width: 100%; margin-top: 0.5rem; }
.vitrine-form-wrapper .form-hint { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ---------- MODALE RECADRAGE (POP-UP) ---------- */
.crop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.crop-modal.active {
    display: flex;
}
.crop-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 1;
}
.crop-modal__content {
    position: relative;
    z-index: 2;
    background: var(--bg-sidebar);
    border: 1px solid var(--neon-blue);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.3), 0 0 120px rgba(0, 212, 255, 0.1);
    animation: cropModalAppear 0.3s ease forwards;
}
.crop-modal__title {
    text-align: center;
    color: var(--neon-blue);
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-family: var(--font-display);
    font-weight: 700;
}
.crop-modal__container {
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    position: relative;
    border: 1px solid var(--border-subtle);
}
.crop-modal__container img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}
.crop-modal__controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.crop-modal__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .topbar__burger { display: flex; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .content { padding: 1.5rem; }
    .mini-stats { flex-wrap: wrap; }
    .mini-stat { min-width: calc(50% - 0.5rem); }
    .filters-bar__form { flex-direction: column; }
    .filters-bar__search { width: 100%; }
    .modal-detail__grid { grid-template-columns: 1fr; }
    .profil-grid { grid-template-columns: 1fr; }
    .dancer-admin-card { flex-wrap: wrap; }
    .personnel-card { flex-wrap: wrap; }
    .chat-msg { max-width: 90%; }
    .vitrine-layout { grid-template-columns: 1fr; }
    .vitrine-preview { position: static; max-width: 300px; margin: 0 auto; }
    .vitrine-preview__photo { height: 350px; }
    .crop-modal { padding: 1rem; }
    .crop-modal__content { width: 100%; max-height: 90vh; padding: 16px; }
    .crop-modal__container { height: 280px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 1.25rem; }
    .stat-card__value { font-size: 1.4rem; }
    .content { padding: 1rem; }
    .topbar { padding: 1rem; }
}

/* ---------- CHAT : SUPPRESSION ---------- */
.chat-msg__bubble {
    position: relative;
}

.chat-msg__delete {
    position: absolute;
    top: 4px;
    right: 4px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    color: rgba(255, 255, 255, 0.3);
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-msg__bubble:hover .chat-msg__delete {
    opacity: 1;
}

.chat-msg__delete:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.chat-msg {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
