/* ==========================================================================
   VARIABLES GLOBALES (Couleurs, Polices, Ombres)
   ========================================================================== */
:root {
    --bg-dark: #090111;
    --bg-card: rgba(36, 0, 70, 0.4);
    --bg-card-hover: rgba(60, 9, 108, 0.7);
    --border-color: rgba(199, 125, 255, 0.2);
    --border-highlight: rgba(155, 93, 229, 0.6);

    --text-main: #ffffff;
    --text-muted: #9d81ba;
    --text-title: #ffffff;

    --accent-blue: #9b5de5;
    --accent-cyan: #c77dff;
    --accent-green: #34d399;
    --accent-red: #fb7185;
    --accent-gold: #ffc8dd;

    --font-serif: 'Poppins', sans-serif;
    --font-sans: 'Inter', sans-serif;

    --glow-blue: 0 4px 20px rgba(155, 93, 229, 0.3);
    --glow-green: 0 4px 20px rgba(199, 125, 255, 0.2);
    --glow-red: 0 4px 20px rgba(251, 113, 133, 0.2);

    --transition: all 0.3s ease;
}

/* ==========================================================================
   BASE ET RESET CSS
   ========================================================================== */
* {
    margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
background-color: var(--bg-dark);
color: var(--text-main);
min-height: 100vh;
overflow-x: hidden;
}

.sub-subtitle {
    color: #e0aaff;
}

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(rgba(9, 1, 17, 0.6), rgba(9, 1, 17, 0.8)), url('assets/background.jpg') center/cover no-repeat;
    contain: strict;
    pointer-events: none;
    transform: translateZ(0);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
    transform: translateZ(0);
}

.orb-1 {
    top: -10%;
    left: 20%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(155, 93, 229, 0.35) 0%, rgba(155, 93, 229, 0.12) 35%, rgba(155, 93, 229, 0.02) 60%, transparent 75%);
}

.orb-2 {
    bottom: 10%;
    right: 10%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(74, 150, 140, 0.3) 0%, rgba(74, 150, 140, 0.08) 35%, rgba(74, 150, 140, 0.02) 60%, transparent 75%);
}

.app-container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 1.5rem 2.5rem 3rem 2.5rem;
    box-sizing: border-box;
    width: 100%;
}

.view {
    display: none;
    opacity: 0;
    content-visibility: hidden;
    contain: layout style;
    transform: translate3d(0, 6px, 0);
}

.view.active {
    display: block;
    content-visibility: visible;
    contain: none;
    animation: viewFadeSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

@keyframes viewFadeSlideIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 6px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

html.navigating-instant {
    scroll-behavior: auto !important;
}

/* Transitions de vue natives ultra-fluides */
::view-transition-old(root) {
    animation: 100ms cubic-bezier(0.4, 0, 1, 1) both viewFadeOut;
}
::view-transition-new(root) {
    animation: 150ms cubic-bezier(0, 0, 0.2, 1) both viewFadeIn;
}

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

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

/* ==========================================================================
   EN-TÊTES (Headers)
   ========================================================================== */
.main-header {
    text-align: center;
margin-bottom: 3rem;
    
    position: relative;
}

.logo-area {
    margin-bottom: 1rem;
    
}

.logo-img {
    width: 150px;
height: 150px;
filter: drop-shadow(0 4px 10px rgba(155, 93, 229, 0.6));
}

.subtitle {
    font-family: var(--font-sans);
font-size: 0.8rem;
letter-spacing: 2px;
    color: var(--text-muted);
text-transform: uppercase;
margin-bottom: 0.25rem;
    
}

.title {
    font-family: var(--font-serif);
font-size: 2.8rem;
font-weight: 700;
color: var(--text-title);
letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    
}

.sub-subtitle {
    font-family: var(--font-serif);
font-size: 1.1rem;
color: var(--accent-cyan);
margin-bottom: 1rem;
    
    font-weight: 500;
}

.archives-text {
    font-size: 0.75rem;
color: var(--text-muted);
letter-spacing: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
padding-top: 0.5rem;
    
}

.header-actions {
    position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
}

.main-header.compact {
    display: flex;
justify-content: space-between;
align-items: center;
text-align: left;
border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    
    margin-bottom: 2rem;
    
}

.main-header.compact .header-actions {
    position: static;
transform: none;
}

.main-header.compact .title {
    font-size: 2rem;
}

/* ==========================================================================
   BOUTONS (Primaires, Secondaires, Outlines, etc.)
   ========================================================================== */
.btn {
    display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
border-radius: 8px;
font-family: var(--font-sans);
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
    
    transition: var(--transition);
    
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.8), rgba(90, 24, 154, 0.8));
color: white;
border: 1px solid rgba(199, 125, 255, 0.5);
box-shadow: 0 4px 15px rgba(155, 93, 229, 0.3);
    
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.9), rgba(155, 93, 229, 0.9));
box-shadow: 0 0 20px rgba(199, 125, 255, 0.6);
    
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.85), rgba(180, 83, 9, 0.85));
    color: white;
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
color: var(--text-main);
border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
border-color: var(--border-highlight);
    
}

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

.btn-outline:hover {
    border-color: var(--accent-cyan);
    
    color: var(--accent-cyan);
}

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

.btn-large {
    padding: 1rem 3rem;
font-size: 1.1rem;
letter-spacing: 1px;
}

/* ==========================================================================
   CARTES ET CONTENEURS
   ========================================================================== */
.stats-container {
    display: grid;
grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
margin-bottom: 2rem;
    
}

.stat-card {
    background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 1.5rem;
text-align: center;
transition: var(--transition);
    
}

.stat-card:hover {
    border-color: var(--accent-blue);
    
    box-shadow: var(--glow-blue);
    
    transform: translateY(-3px);
}

.stat-value {
    font-family: var(--font-serif);
font-size: 3rem;
color: var(--text-title);
margin-bottom: 0.5rem;
    
}

.stat-label {
    font-size: 0.85rem;
letter-spacing: 2px;
    color: var(--text-muted);
}

.search-section {
    margin-bottom: 2rem;
    
    display: flex;
justify-content: center;
}

.search-box input {
    width: 100%;
max-width: 600px;
min-width: 400px;
    background: rgba(15, 23, 42, 0.4);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 1rem 1.5rem;
color: white;
font-family: var(--font-serif);
font-size: 1rem;
text-align: center;
transition: var(--transition);
    
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-blue);
    
    box-shadow: var(--glow-blue);
    
    background: rgba(15, 23, 42, 0.6);
}

.filters-section {
    margin-bottom: 2rem;
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    
}

.tabs-primary,
.tabs-secondary {
    display: flex;
gap: 1rem;
margin-bottom: 1rem;
    
    align-items: center;
}

.tab-btn,
.role-btn {
    background: none;
border: none;
color: var(--text-muted);
font-family: var(--font-sans);
font-size: 0.9rem;
font-weight: 500;
padding: 0.5rem 1rem;
cursor: pointer;
    
    transition: var(--transition);
    
    display: flex;
align-items: center;
gap: 0.5rem;
border-radius: 6px;
}

.tab-btn:hover,
.role-btn:hover {
    color: var(--text-title);
background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: rgba(155, 93, 229, 0.2);
color: var(--accent-blue);
border: 1px solid rgba(155, 93, 229, 0.4);
}

.role-btn.active {
    color: white;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
padding: 2px 8px;
border-radius: 12px;
font-size: 0.75rem;
}

.tab-btn.active .badge {
    background: var(--accent-blue);
color: white;
}

.btn-ranking {
    margin-left: auto;
    
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.3), rgba(90, 24, 154, 0.3));
border: 1px solid rgba(155, 93, 229, 0.5);
color: #e0e7ff;
}

.btn-ranking:hover {
    background: rgba(155, 93, 229, 0.5);
box-shadow: 0 0 15px rgba(155, 93, 229, 0.4);
    
}

.roles-label {
    font-size: 0.75rem;
letter-spacing: 1px;
    color: var(--text-muted);
margin-right: 1rem;
    
}

/* ==========================================================================
   LISTE DES CANDIDATURES
   ========================================================================== */
.wl-list {
    display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 1rem;
}

.wl-item {
    background: var(--bg-card);
border: 1px solid var(--border-color);
border-left: 4px solid var(--accent-blue);
    border-radius: 12px;
padding: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
transition: var(--transition);
    
    cursor: pointer;
    
}

.wl-item:hover {
    transform: translateX(5px);
    background: var(--bg-card-hover);
border-color: var(--border-highlight);
    
}

.wl-item.status-accepted {
    border-left-color: var(--accent-green);
}

.wl-item.status-refused {
    border-left-color: var(--accent-red);
}

.wl-item.status-pending {
    border-left-color: var(--accent-gold);
}

.wl-info {
    display: flex;
align-items: center;
gap: 1.5rem;
}

.wl-avatar {
    width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-serif);
font-size: 1.5rem;
color: var(--accent-cyan);
}

.wl-details h4 {
    font-family: var(--font-serif);
font-size: 1.2rem;
color: var(--text-title);
margin-bottom: 0.25rem;
    
    text-transform: uppercase;
}

.wl-details p {
    font-size: 0.85rem;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 0.5rem;
}

.role-badge {
    padding: 2px 8px;
border-radius: 4px;
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
}

.wl-score-status {
    display: flex;
align-items: center;
gap: 2rem;
}

.score-display {
    text-align: center;
}

.score-display .val {
    font-family: var(--font-serif);
font-size: 1.5rem;
color: var(--accent-green);
}

.score-display .max {
    font-size: 0.9rem;
color: var(--text-muted);
}

/* ==========================================================================
   BADGES DE STATUT (Accepté, Refusé, En attente)
   ========================================================================== */
.status-badge {
    padding: 0.5rem 1rem;
border-radius: 4px;
font-size: 0.8rem;
font-weight: 600;
letter-spacing: 1px;
    text-transform: uppercase;
}

.status-badge.accepted {
    color: var(--accent-green);
border: 1px solid var(--accent-green);
background: rgba(34, 197, 94, 0.1);
}

.status-badge.refused {
    color: var(--accent-red);
border: 1px solid var(--accent-red);
background: rgba(239, 68, 68, 0.1);
}

.status-badge.pending {
    color: var(--accent-gold);
border: 1px solid var(--accent-gold);
background: rgba(251, 191, 36, 0.1);
}

.wl-form {
    display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 2rem;
}

.form-section {
    background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 2rem;
}

.section-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    
    margin-bottom: 1.5rem;
    
    display: flex;
justify-content: space-between;
align-items: center;
}

.section-header h3 {
    font-family: var(--font-serif);
color: var(--accent-cyan);
font-weight: 600;
font-size: 1.1rem;
}

.form-grid-4,
.form-grid-3,
.form-grid-5,
.form-grid-2 {
    display: grid;
gap: 1.5rem;
}

.form-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.input-group {
    display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 0.5rem;
}

.input-group.full-width {
    grid-column: 1 / -1;
    margin-top: 1rem;
    
}

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

input,
select,
textarea {
    background: rgba(15, 23, 42, 0.5);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 6px;
padding: 0.75rem;
color: white;
font-family: var(--font-sans);
transition: var(--transition);
    
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
    
    background: rgba(15, 23, 42, 0.8);
}

textarea {
    resize: vertical;
}

.read-only-val {
    background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 6px;
padding: 0.75rem;
color: var(--accent-cyan);
font-family: var(--font-sans);
font-weight: 500;
}

.score-box {
    background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 8px;
padding: 1rem;
text-align: center;
}

.score-input {
    display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin-top: 0.5rem;
    
}

.score-input input {
    width: 60px;
text-align: center;
font-size: 1.2rem;
font-family: var(--font-serif);
padding: 0.5rem;
}

.situation-card {
    background: rgba(15, 23, 42, 0.4);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 1.5rem;
}

.situation-card h4 {
    font-family: var(--font-serif);
color: var(--text-title);
margin-bottom: 1rem;
    
    text-transform: uppercase;
letter-spacing: 1px;
}

.situation-text {
    font-size: 0.95rem;
line-height: 1.6;
    
    color: #cbd5e1;
margin-bottom: 1.5rem;
    
}

.situation-instructions {
    background: rgba(234, 179, 8, 0.1);
border-left: 4px solid var(--accent-gold);
    padding: 1rem;
border-radius: 4px;
font-size: 0.85rem;
color: #fef08a;
}

.final-eval-section {
    border-color: rgba(65, 105, 225, 0.5);
    
    box-shadow: 0 0 30px rgba(15, 23, 42, 0.8);
    
}

.eval-summary {
    display: flex;
justify-content: center;
margin-bottom: 2rem;
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    
}

.total-score-display {
    text-align: center;
}

.total-score-display .label {
    display: block;
font-size: 0.85rem;
letter-spacing: 2px;
    color: var(--text-muted);
margin-bottom: 0.5rem;
    
}

.total-score-display .value {
    font-family: var(--font-serif);
font-size: 3rem;
color: var(--accent-green);
text-shadow: var(--glow-green);
}

.total-score-display .max {
    font-size: 1.5rem;
color: var(--text-muted);
text-shadow: none;
}

.verdict-section {
    margin-top: 2rem;
    
    text-align: center;
}

.verdict-buttons {
    display: flex;
justify-content: center;
gap: 1rem;
margin-top: 1rem;
    
}

.verdict-btn {
    cursor: pointer;
    
    position: relative;
}

.verdict-btn input {
    position: absolute;
opacity: 0;
}

.verdict-btn span {
    display: inline-block;
padding: 0.75rem 2rem;
border-radius: 6px;
font-family: var(--font-serif);
font-weight: 600;
letter-spacing: 1px;
    transition: var(--transition);
    
    border: 1px solid transparent;
}

.verdict-btn.btn-accepted span {
    color: var(--accent-green);
border-color: rgba(34, 197, 94, 0.3);
    
    background: rgba(34, 197, 94, 0.05);
}

.verdict-btn.btn-accepted input:checked+span {
    background: rgba(34, 197, 94, 0.2);
border-color: var(--accent-green);
    
    box-shadow: var(--glow-green);
    
}

.verdict-btn.btn-pending span {
    color: var(--accent-gold);
border-color: rgba(251, 191, 36, 0.3);
    
    background: rgba(251, 191, 36, 0.05);
}

.verdict-btn.btn-pending input:checked+span {
    background: rgba(251, 191, 36, 0.2);
border-color: var(--accent-gold);
    
}

.verdict-btn.btn-refused span {
    color: var(--accent-red);
border-color: rgba(239, 68, 68, 0.3);
    
    background: rgba(239, 68, 68, 0.05);
}

.verdict-btn.btn-refused input:checked+span {
    background: rgba(239, 68, 68, 0.2);
border-color: var(--accent-red);
    
    box-shadow: var(--glow-red);
    
}

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

.ranking-list {
    display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 1rem;
max-width: 900px;
margin: 0 auto;
}

.ranking-list {
    display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 1.5rem;
max-width: 900px;
margin: 0 auto;
}

.ranking-item {
    background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
padding: 1.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    
    position: relative;
overflow: hidden;
}

.ranking-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    
    background: rgba(30, 41, 59, 0.8);
transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    
}

.ranking-item::before {
    content: '';
    position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 4px;
background: transparent;
transition: all 0.3s;
    
}

.rank-1::before {
    background: #fbbf24;
box-shadow: 0 0 15px #fbbf24;
    
}

.rank-2::before {
    background: #cbd5e1;
box-shadow: 0 0 15px #cbd5e1;
    
}

.rank-3::before {
    background: #b45309;
box-shadow: 0 0 15px #b45309;
    
}

.rank-info {
    display: flex;
align-items: center;
gap: 1.5rem;
}

.rank-badge {
    width: 65px;
height: 65px;
border-radius: 16px;
background: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255, 255, 255, 0.05);
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-sans);
font-weight: 800;
font-size: 1.8rem;
color: white;
transition: all 0.3s;
    
}

.rank-1 .rank-badge {
    border-color: #fbbf24;
    
    background: rgba(251, 191, 36, 0.1);
color: #fbbf24;
box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
    
}

.rank-2 .rank-badge {
    border-color: #cbd5e1;
    
    background: rgba(203, 213, 225, 0.1);
color: #cbd5e1;
}

.rank-3 .rank-badge {
    border-color: #b45309;
    
    background: rgba(180, 83, 9, 0.1);
color: #b45309;
}

.staff-details h3 {
    font-family: var(--font-sans);
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.3rem;
    
    color: white;
letter-spacing: 1px;
}

.staff-details p {
    font-size: 0.85rem;
color: var(--text-muted);
font-weight: 500;
letter-spacing: 1px;
}

.rank-score {
    text-align: right;
display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    align-items: flex-end;
}

.rank-score .val {
    font-family: var(--font-sans);
font-weight: 800;
font-size: 2.8rem;
line-height: 1;
    
    color: white;
margin-bottom: 0.3rem;
    
    display: flex;
align-items: center;
gap: 0.5rem;
}

.rank-score .label {
    font-size: 0.75rem;
color: var(--text-muted);
letter-spacing: 2px;
    font-weight: 600;
text-transform: uppercase;
}

.mt-4 {
    margin-top: 1rem;
    
}

.custom-alert {
    position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(15, 23, 42, 0.8);
backdrop-filter: blur(8px);
    display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
opacity: 1;
transition: opacity 0.3s ease;
    
}

.custom-alert.hidden {
    opacity: 0;
pointer-events: none;
}

.custom-alert-content {
    background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 2rem;
width: 90%;
max-width: 400px;
text-align: center;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    transform: translateY(0);
    transition: transform 0.3s ease;
    
}

.custom-alert.hidden .custom-alert-content {
    transform: translateY(-20px);
}

.custom-alert-content h4 {
    font-family: var(--font-serif);
color: var(--accent-cyan);
font-size: 1.2rem;
margin-bottom: 1rem;
    
}

.custom-alert-content p {
    color: var(--text-main);
margin-bottom: 2rem;
    
}

.grade-fondateur {
    color: #ef4444;
font-weight: bold;
text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.grade-gerant-staff {
    color: #f59e0b;
font-weight: bold;
text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.grade-super-admin {
    color: #a855f7;
font-weight: bold;
text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.grade-administrateur {
    color: #3b82f6;
font-weight: bold;
text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.grade-moderateur {
    color: #22c55e;
font-weight: bold;
text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.grade-helpeur {
    color: #0ea5e9;
font-weight: bold;
text-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.grade-douanier {
    color: #a8a29e;
font-weight: bold;
}

.grade-arabe {
    color: #eab308;
font-weight: bold;
text-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.grade-inconnu {
    color: var(--text-muted);
}

select option {
    color: var(--text-main);
text-shadow: none;
    font-weight: normal;
}

.content-block,
.editor-block-wrapper {
    transition: all 0.3s ease;
    
    box-sizing: border-box;
}

.settings-panel {
    background: rgba(15, 23, 42, 0.85);
backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 12px;
padding: 1.5rem;
display: none;
position: absolute;
top: 50px;
right: 15px;
z-index: 1000;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    
    width: 320px;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 1.2rem;
}

.settings-panel.active {
    display: flex;
animation: slideInSettings 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInSettings {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.settings-group {
    display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 0.4rem;
}

.settings-group label {
    font-size: 0.8rem;
font-weight: 500;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
}

.settings-group select,
.settings-group input[type="range"] {
    width: 100%;
background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.1);
color: var(--text-main);
padding: 6px;
border-radius: 6px;
outline: none;
}

.color-control {
    display: flex;
gap: 12px;
align-items: center;
background: rgba(0, 0, 0, 0.2);
padding: 8px;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.05);
}

.color-control input[type="color"] {
    cursor: pointer;
    
    height: 35px;
width: 35px;
border: none;
background: transparent;
padding: 0;
border-radius: 4px;
}

.range-control {
    display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    flex: 1;
    gap: 4px;
}

.range-control span {
    font-size: 0.75rem;
color: var(--text-muted);
}

.block-toolbar {
    display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 1rem;
background: rgba(0, 0, 0, 0.3);
border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drag-handle {
    cursor: grab;
    
    color: var(--text-muted);
font-size: 1.2rem;
padding: 4px;
border-radius: 4px;
transition: all 0.2s;
    
    display: flex;
align-items: center;
justify-content: center;
}

.drag-handle:hover {
    color: var(--text-main);
background: rgba(255, 255, 255, 0.1);
}

.drag-handle:active {
    cursor: grabbing;
    
}

.block-actions {
    display: flex;
gap: 0.5rem;
}

.btn-small {
    padding: 0.3rem 0.8rem;
font-size: 0.85rem;
}

.dashboard-header {
    display: flex;
align-items: center;
justify-content: space-between;
padding: 1.5rem 2rem;
background: rgba(15, 23, 42, 0.4);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 12px;
margin-bottom: 2rem;
    
}

.header-left {
    display: flex;
align-items: center;
gap: 1.5rem;
}

.logo-img-dash {
    max-width: 120px;
max-height: 80px;
    width: auto;
height: auto;
object-fit: contain;
}

.header-titles {
    display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 0.2rem;
}

.dashboard-title {
    font-size: 1.8rem;
font-weight: 800;
letter-spacing: 1px;
    text-transform: uppercase;
color: white;
margin: 0;
}

.dashboard-subtitle {
    color: var(--accent-primary, #60a5fa);
font-size: 0.9rem;
letter-spacing: 2px;
    text-transform: uppercase;
font-weight: 600;
margin: 0;
}

.dashboard-credits {
    color: var(--text-muted, #94a3b8);
font-size: 0.75rem;
cursor: pointer;
    
    transition: color 0.2s;
    
    margin-top: 0.2rem;
    
}

.dashboard-credits:hover {
    color: var(--accent-red, #ef4444);
}

.header-actions-right {
    display: flex;
gap: 1rem;
}

.stats-grid {
    display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
margin-bottom: 3rem;
    
}

.stat-card-modern {
    background: var(--bg-card, #1e293b);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
padding: 1.5rem;
display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    align-items: center;
justify-content: center;
transition: all 0.2s;
    
    position: relative;
}

.stat-card-modern:hover {
    border-color: var(--card-color, rgba(255, 255, 255, 0.2));
    
    background: rgba(30, 41, 59, 0.8);
}

.stat-val {
    font-size: 2.2rem;
font-weight: 700;
color: white;
line-height: 1;
    
    margin-bottom: 0.5rem;
    
}

.stat-name {
    font-size: 0.8rem;
color: var(--text-muted, #94a3b8);
letter-spacing: 1px;
    text-transform: uppercase;
font-weight: 500;
}

#stat-total {
    color: white;
}

#stat-accepted {
    color: var(--accent-green, #10b981);
}

#stat-refused {
    color: var(--accent-red, #ef4444);
}

#stat-pending {
    color: var(--text-muted, #94a3b8);
}

#stat-verification {
    color: var(--accent-cyan, #06b6d4);
}

/* ==========================================================================
   MISE EN PAGE DU DASHBOARD
   ========================================================================== */
.dashboard-layout {
    display: flex;
gap: 2rem;
align-items: flex-start;
}

.dashboard-sidebar {
    width: 280px;
flex-shrink: 0;
    position: sticky;
top: 2rem;
display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 1.5rem;
}

.dashboard-main-content {
    flex-grow: 1;
    min-width: 0;
}

.dashboard-top-bar {
    display: flex;
    align-items: center;
gap: 1.5rem;
margin-bottom: 2rem;
    
    width: 100%;
}

.top-bar-right {
    display: flex;
justify-content: flex-end;
}

.top-search {
    width: 100%;
max-width: 100%;
}

.top-search .search-box {
    position: relative;
width: 100%;
}

.top-search .search-icon {
    position: absolute;
left: 1.2rem;
top: 50%;
transform: translateY(-50%);
    color: var(--text-muted);
font-size: 1.3rem;
}

.top-search input {
    width: 100%;
padding: 1rem 1.5rem 1rem 3.5rem;
background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 30px;
color: white;
font-size: 1rem;
transition: all 0.3s;
    
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    box-sizing: border-box !important;
}

.top-search input:focus {
    border-color: var(--accent-primary, #60a5fa);
    
    background: rgba(15, 23, 42, 0.8);
box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
    
}

.btn-ranking-top {
    background: rgba(234, 179, 8, 0.1);
color: #eab308;
border: 1px solid rgba(234, 179, 8, 0.3);
padding: 0.9rem 1.5rem;
border-radius: 30px;
font-size: 0.95rem;
font-weight: 700;
display: inline-flex;
align-items: center;
gap: 0.6rem;
cursor: pointer;
    
    transition: all 0.3s;
    
    backdrop-filter: blur(12px);
}

.btn-ranking-top i {
    font-size: 1.2rem;
}

.btn-ranking-top:hover {
    background: rgba(234, 179, 8, 0.2);
border-color: rgba(234, 179, 8, 0.5);
    
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.2);
    
    transform: translateY(-2px);
}

.sidebar-filters {
    background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
padding: 1.5rem;
display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 2rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    
}

.sidebar-group {
    display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 0.5rem;
}

.sidebar-title {
    font-size: 0.75rem;
letter-spacing: 2px;
    color: var(--accent-cyan);
margin-bottom: 0.5rem;
    
    display: flex;
align-items: center;
gap: 0.5rem;
text-transform: uppercase;
font-weight: 700;
}

.tab-btn,
.role-btn {
    width: 100%;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 0.8rem;
background: rgba(255, 255, 255, 0.02) !important;
border: 1px solid transparent !important;
color: var(--text-muted) !important;
padding: 0.8rem 1rem;
border-radius: 8px;
font-size: 0.85rem;
font-weight: 600;
transition: all 0.2s ease;
    
    cursor: pointer;
    
    position: relative;
overflow: hidden;
}

.tab-btn i,
.role-btn i {
    font-size: 1.1rem;
width: 20px;
text-align: center;
transition: transform 0.2s;
    
}

.tab-btn .badge,
.role-btn .badge {
    margin-left: auto;
    
    background: rgba(0, 0, 0, 0.4) !important;
color: var(--text-muted) !important;
padding: 2px 8px;
border-radius: 12px;
font-size: 0.75rem;
border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn:hover,
.role-btn:hover {
    color: white !important;
background: rgba(255, 255, 255, 0.06) !important;
transform: translateX(4px);
}

.tab-btn.active,
.role-btn.active {
    background: rgba(255, 255, 255, 0.1) !important;
color: white !important;
border-left: 3px solid var(--btn-color, var(--accent-primary)) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.tab-btn.active i {
    color: var(--btn-color, white);
}

.tab-btn.active .badge,
.role-btn.active .badge {
    background: var(--btn-color, var(--accent-primary)) !important;
color: #fff !important;
border-color: transparent;
    
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.filter-divider.horizontal {
    width: 100%;
height: 1px;
background: rgba(255, 255, 255, 0.05);
margin: 0.5rem 0;
}

.ql-toolbar.ql-snow {
    background: rgba(255, 255, 255, 0.9);
border-radius: 8px 8px 0 0;
border-color: var(--border-color);
    
}

.ql-container.ql-snow {
    border-color: var(--border-color);
    
    border-radius: 0 0 8px 8px;
font-family: inherit;
}

.ql-editor {
    min-height: 400px;
}

.ranking-filters {
    display: flex;
justify-content: center;
margin-bottom: 3rem;
    
}

.ranking-tabs {
    display: flex;
gap: 1rem;
background: rgba(15, 23, 42, 0.4);
padding: 0.8rem;
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.05);
backdrop-filter: blur(12px);
}

.rank-tab-btn {
    display: inline-flex;
align-items: center;
gap: 0.6rem;
background: transparent;
border: 1px solid transparent;
color: var(--text-muted);
padding: 0.8rem 2rem;
border-radius: 12px;
font-size: 0.95rem;
font-weight: 700;
transition: all 0.3s;
    
    cursor: pointer;
    
}

.rank-tab-btn:hover {
    color: white;
background: rgba(255, 255, 255, 0.05);
}

.rank-tab-btn.active {
    background: var(--accent-primary);
color: white;
box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    
}

/* ==========================================================================
   BARRE DE NAVIGATION (Menu)
   ========================================================================== */
.public-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.75rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(199, 125, 255, 0.2);
    margin-bottom: 2rem;
    border-radius: 14px;
    position: sticky !important;
    top: 10px;
    z-index: 1000 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links {
    display: flex;
gap: 1rem;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn.active,
.drop-btn.active {
    color: #ffffff !important;
    background: rgba(155, 93, 229, 0.22) !important;
    border-color: rgba(199, 125, 255, 0.45) !important;
    box-shadow: 0 0 16px rgba(155, 93, 229, 0.25) !important;
}

.drop-btn i {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown:hover .drop-btn i {
    transform: rotate(180deg);
}

.staff-card {
    background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
padding: 2rem 1.5rem;
text-align: center;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    
    position: relative;
overflow: hidden;
}

.staff-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    
    background: rgba(30, 41, 59, 0.8);
transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    
}

.staff-avatar {
    width: 80px;
height: 80px;
border-radius: 50%;
margin: 0 auto 1rem auto;
border: 2px solid var(--accent-blue);
display: flex;
align-items: center;
justify-content: center;
font-size: 2.5rem;
font-weight: 800;
color: white;
background: rgba(59, 130, 246, 0.15);
box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    
}

.staff-name {
    font-size: 1.2rem;
font-weight: 600;
color: var(--text-title);
margin-bottom: 0.5rem;
    
}

.staff-role {
    font-size: 0.9rem;
color: var(--accent-cyan);
}

select option {
    color: var(--text-main);
text-shadow: none;
    font-weight: normal;
}

/* Colonnes pour les editeurs */
.content-block h1,
.content-block h2,
.content-block h3,
.content-block h4,
.content-block h5,
.content-block h6 {
    column-span: all;
    margin-top: 0;
    
}

.ql-editor h1,
.ql-editor h2,
.ql-editor h3,
.ql-editor h4,
.ql-editor h5,
.ql-editor h6 {
    column-span: all;
}

@keyframes pulse {
    0% {
        opacity: 1;
}

    50% {
        opacity: 0.5;
}

    100% {
        opacity: 1;
}
}

/* Extracted Inline Styles */
/* ==========================================================================
   STYLES EXTRAITS SPÉCIFIQUES (Anciens styles inline)
   Les commentaires ci-dessous indiquent à quel élément HTML chaque classe s'applique.
   ========================================================================== */

.extracted-style-1 {
    cursor: pointer;
    
    font-weight: 700;
font-size: 1.2rem;
color: var(--text-main);
}

/* --- Bouton de navigation --- */

.extracted-style-2 {
    color: var(--accent-gold);
}

/* --- Bouton de navigation --- */

.extracted-style-3 {
    display: none;
color: var(--accent-blue);
}

/* --- Style Spécifique 4 --- */
.extracted-style-4 {
    display: none;
color: var(--accent-green);
}

.extracted-style-5 {
    background-color: #5865F2;
border-color: #5865F2;
    
    padding: 0.5rem 1rem;
}

.extracted-style-6 {
    justify-content: center;
text-align: center;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    min-height: 50vh;
}

/* --- Style Spécifique 7 --- */
.extracted-style-7 {
    width: 150px;
margin-bottom: 2rem;
    
}

.extracted-style-8 {
    font-size: 3rem;
}

/* --- Balise <p> --- */

.extracted-style-9 {
    margin-top: 1rem;
    
    color: var(--text-muted);
max-width: 600px;
margin-left: auto;
    
    margin-right: auto;
    
    line-height: 1.6;
    
}

.extracted-style-10 {
    margin-top: 2rem;
    
    display: flex;
gap: 1rem;
justify-content: center;
}

/* --- Élément #edit-rules-action --- */

.extracted-style-18 {
    display: none;
}

.extracted-style-19 {
    background: var(--bg-card);
padding: 2rem;
border-radius: 12px;
border: 1px solid var(--border-color);
margin-top: 2rem;
    
}

/* --- Élément #display-rules --- */

.extracted-style-20 {
    display: block;
    line-height: 1.7;
    width: 100%;
}

/* --- Élément #editor-rules --- */

.extracted-style-21 {
    display: none;
width: 100%;
}

/* --- Élément #blocks-container-rules --- */

.extracted-style-22 {
    display: flex;
flex-wrap: wrap;
    gap: 1.5rem;
margin-bottom: 1.5rem;
    
    width: 100%;
}

/* --- Balise <div> --- */

.extracted-style-23 {
    display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
    
    justify-content: center;
}

/* --- Balise <div> --- */

.extracted-style-24 {
    display: flex;
gap: 1rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    
}

/* --- Élément #staff-team-container --- */

.extracted-style-25 {
    display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
margin-top: 2rem;
    
}

/* --- Balise <div> --- */

.extracted-style-26 {
    text-align: center;
color: var(--text-muted);
grid-column: 1 / -1;
}

/* --- Élément #candidature-error --- */

.extracted-style-27 {
    display: none;
background: rgba(239, 68, 68, 0.1);
border-left: 3px solid var(--accent-red);
    padding: 1.5rem;
border-radius: 8px;
text-align: center;
}

/* --- Balise <h3> --- */

.extracted-style-28 {
    color: var(--accent-red);
margin-bottom: 0.5rem;
    
}

/* --- Élément #candidature-error-msg --- */

.extracted-style-29 {
    color: var(--text-main);
}

.extracted-style-40 {
    --card-color: #ffffff;
}

.extracted-style-41 {
    --card-color: var(--accent-green, #10b981);
}

.extracted-style-42 {
    --card-color: var(--accent-red, #ef4444);
}

.extracted-style-43 {
    --card-color: var(--text-muted, #94a3b8);
}

.extracted-style-44 {
    --card-color: var(--accent-cyan, #06b6d4);
}

.extracted-style-45 {
    --btn-color: var(--accent-primary);
}

.extracted-style-46 {
    --btn-color: var(--accent-green);
}

.extracted-style-47 {
    --btn-color: var(--accent-red);
}

.extracted-style-48 {
    --btn-color: var(--accent-gold);
}

.extracted-style-49 {
    --btn-color: var(--accent-cyan);
}

.extracted-style-50 {
    --btn-color: #f97316;
}

.extracted-style-51 {
    --btn-color: #ef4444;
}

.extracted-style-52 {
    --btn-color: var(--text-muted);
}

/* --- Élément #pagination-controls --- */

.extracted-style-54 {
    display: flex;
justify-content: center;
gap: 1rem;
margin-top: 2rem;
    
    align-items: center;
}

/* --- Élément #page-indicator --- */

.extracted-style-55 {
    color: var(--text-main);
font-weight: bold;
}

/* --- Balise <div> --- */

.extracted-style-56 {
    text-align: center;
margin-top: 4rem;
    
    opacity: 0.1;
transition: opacity 0.3s;
    
}

.extracted-style-57 {
    border: none;
color: var(--accent-red);
font-size: 0.7rem;
cursor: pointer;
    
}

.extracted-style-58 {
    display: none;
color: var(--accent-blue);
border-color: var(--accent-blue);
    
}

/* --- Élément #generated-questions-container --- */

.extracted-style-59 {
    margin-bottom: 2rem;
    
    display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 1rem;
}

/* --- Balise <div> --- */

.extracted-style-60 {
    display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
    
}

/* --- Élément #sit-title --- */

.extracted-style-61 {
    margin-bottom: 0;
    
}

/* --- Élément #sit-help --- */

.extracted-style-62 {
    display: none;
background: rgba(59, 130, 246, 0.1);
border-left: 3px solid var(--accent-cyan);
    padding: 1rem;
margin-bottom: 1rem;
    
    border-radius: 4px;
font-size: 0.9rem;
}

/* --- Balise <strong> --- */

.extracted-style-63 {
    color: var(--accent-cyan);
}

/* --- Élément #sit-help-list --- */

.extracted-style-64 {
    margin-top: 0.5rem;
    
    margin-left: 1.5rem;
    
    color: var(--text-muted);
}

.extracted-style-65 {
    max-width: 200px;
margin: 20px auto 0;
}

/* --- Balise <label> --- */

.extracted-style-66 {
    text-align: center;
}

.extracted-style-67 {
    justify-content: center;
}

.extracted-style-68 {
    display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
    
    color: var(--accent-gold);
font-weight: bold;
}

/* --- Élément #wl-surveiller --- */

.extracted-style-69 {
    width: 20px;
height: 20px;
}

.extracted-style-70 {
    display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
    
    color: var(--accent-red);
font-weight: bold;
}

/* --- Élément #bannis-reason-container --- */

.extracted-style-71 {
    display: none;
margin-top: 1.5rem;
    
    background: rgba(239, 68, 68, 0.05);
border-left: 3px solid var(--accent-red);
    padding: 1.5rem;
border-radius: 8px;
}

.extracted-style-72 {
    margin-top: 0;
    
    margin-bottom: 1.5rem;
    
}

/* --- Balise <label> --- */

.extracted-style-73 {
    color: var(--accent-red);
}

.extracted-style-74 {
    margin-top: 0;
    
}

/* --- Balise <div> --- */

.extracted-style-75 {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.15), rgba(225, 29, 72, 0.05));
border: 1px solid rgba(251, 113, 133, 0.2);
border-left: 4px solid var(--accent-red);
    padding: 1.25rem;
border-radius: 8px;
margin: 2rem 0;
display: flex;
align-items: flex-start;
gap: 1rem;
box-shadow: 0 4px 15px rgba(225, 29, 72, 0.1);
    
    backdrop-filter: blur(5px);
}

/* --- Balise <div> --- */

.extracted-style-76 {
    background: rgba(251, 113, 133, 0.2);
padding: 0.5rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-top: 0.15rem;
    
}

.extracted-style-77 {
    font-size: 1.5rem;
color: var(--accent-red);
}

/* --- Balise <h4> --- */

.extracted-style-78 {
    color: var(--accent-red);
margin-bottom: 0.25rem;
    
    font-size: 1rem;
font-weight: 700;
letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Balise <p> --- */

.extracted-style-79 {
    color: var(--text-main);
font-size: 0.9rem;
opacity: 0.9;
margin: 0;
line-height: 1.4;
    
}

.extracted-style-80 {
    gap: 1.5rem;
margin-bottom: 1.5rem;
    
}

.extracted-style-81 {
    background: rgba(74, 222, 128, 0.03);
border: 1px solid rgba(74, 222, 128, 0.1);
padding: 1.25rem;
border-radius: 12px;
transition: all 0.3s ease;
    
}

/* --- Balise <label> --- */

.extracted-style-82 {
    color: #4ade80;
font-weight: 600;
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
    
    letter-spacing: 0.5px;
}

.extracted-style-83 {
    font-size: 1.3rem;
}

/* --- Élément #eval-positive --- */

.extracted-style-84 {
    border-color: rgba(74, 222, 128, 0.2);
    
    background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
font-size: 0.95rem;
}

.extracted-style-85 {
    background: rgba(248, 113, 113, 0.03);
border: 1px solid rgba(248, 113, 113, 0.1);
padding: 1.25rem;
border-radius: 12px;
transition: all 0.3s ease;
    
}

/* --- Balise <label> --- */

.extracted-style-86 {
    color: #f87171;
font-weight: 600;
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
    
    letter-spacing: 0.5px;
}

/* --- Élément #eval-negative --- */

.extracted-style-87 {
    border-color: rgba(248, 113, 113, 0.2);
    
    background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
font-size: 0.95rem;
}

.extracted-style-88 {
    background: rgba(56, 189, 248, 0.03);
border: 1px solid rgba(56, 189, 248, 0.1);
padding: 1.25rem;
border-radius: 12px;
margin-bottom: 2.5rem;
    
}

/* --- Balise <label> --- */

.extracted-style-89 {
    color: var(--accent-cyan);
font-weight: 600;
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
    
    letter-spacing: 0.5px;
}

/* --- Balise <span> --- */

.extracted-style-90 {
    opacity: 0.6;
font-size: 0.8rem;
font-weight: normal;
margin-left: 0.5rem;
    
}

/* --- Élément #eval-note --- */

.extracted-style-91 {
    border-color: rgba(56, 189, 248, 0.2);
    
    background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
font-size: 0.95rem;
}

.extracted-style-92 {
    background: rgba(15, 23, 42, 0.4);
border: 1px solid rgba(255, 255, 255, 0.03);
padding: 2.5rem;
border-radius: 16px;
backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.3);
    
    margin-bottom: 2rem;
    
    position: relative;
}

/* --- Balise <label> --- */

.extracted-style-93 {
    display: flex;
justify-content: center;
align-items: center;
gap: 0.75rem;
color: var(--text-title);
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 2rem;
    
    letter-spacing: 2px;
    text-transform: uppercase;
}

.extracted-style-94 {
    color: var(--accent-gold);
font-size: 1.4rem;
}

.extracted-style-95 {
    display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
}

.extracted-style-96 {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

/* --- Balise <span> --- */

.extracted-style-97 {
    display: block;
width: 100%;
box-sizing: border-box;
}

.extracted-style-98 {
    flex: 1;
    min-width: 150px;
    text-align: center;
background: rgba(34, 211, 238, 0.05);
border: 1px solid rgba(34, 211, 238, 0.3);
color: var(--accent-cyan);
cursor: pointer;
    
    position: relative;
border-radius: 6px;
}

/* --- Balise <input> --- */

.extracted-style-99 {
    position: absolute;
opacity: 0;
}

/* --- Balise <span> --- */

.extracted-style-100 {
    display: block;
width: 100%;
box-sizing: border-box;
    padding: 0.75rem 0;
font-family: var(--font-serif);
font-weight: 600;
letter-spacing: 1px;
    transition: var(--transition);
    
}

/* --- Élément #verification-actions --- */

.extracted-style-101 {
    display: none;
background: rgba(34, 211, 238, 0.05);
border: 1px solid rgba(34, 211, 238, 0.2);
border-left: 4px solid var(--accent-cyan);
    padding: 1.5rem;
border-radius: 12px;
margin-bottom: 2rem;
    
    backdrop-filter: blur(5px);
}

/* --- Balise <h3> --- */

.extracted-style-102 {
    color: var(--accent-cyan);
margin-bottom: 1rem;
    
    font-size: 1.1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}

.extracted-style-103 {
    font-size: 1.4rem;
}

/* --- Balise <p> --- */

.extracted-style-104 {
    color: var(--text-main);
margin-bottom: 1.5rem;
    
    opacity: 0.9;
font-size: 0.95rem;
line-height: 1.5;
    
}

/* --- Balise <div> --- */

.extracted-style-105 {
    display: none;
margin-bottom: 1.5rem;
    
    background: rgba(239, 68, 68, 0.03);
padding: 1rem;
border-radius: 8px;
border: 1px solid rgba(239, 68, 68, 0.1);
}

/* --- Balise <label> --- */

.extracted-style-106 {
    color: var(--accent-red);
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 600;
margin-bottom: 0.75rem;
    
}

/* --- Élément #verification-reason --- */

.extracted-style-107 {
    background: rgba(0, 0, 0, 0.3);
border-color: rgba(239, 68, 68, 0.2);
    
    border-radius: 8px;
}

/* --- Balise <div> --- */

.extracted-style-108 {
    display: flex;
gap: 1rem;
}

.extracted-style-109 {
    background: rgba(34, 197, 94, 0.1);
border-color: rgba(34, 197, 94, 0.3);
    
    color: var(--accent-green);
flex: 1;
    display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
font-weight: 600;
transition: all 0.3s ease;
    
}

.extracted-style-110 {
    font-size: 1.2rem;
}

.extracted-style-111 {
    background: rgba(239, 68, 68, 0.1);
border-color: rgba(239, 68, 68, 0.3);
    
    color: var(--accent-red);
flex: 1;
    display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
font-weight: 600;
transition: all 0.3s ease;
    
}

/* --- Élément #btn-confirm-refuse-verification --- */

.extracted-style-112 {
    display: none;
background: var(--accent-red);
border-color: var(--accent-red);
    
    flex: 1;
    display: flex;
justify-content: center;
align-items: center;
font-weight: 600;
}

/* --- Élément #notes-section --- */

.extracted-style-113 {
    display: none;
background: rgba(15, 23, 42, 0.4);
border: 1px solid rgba(255, 255, 255, 0.03);
padding: 2rem;
border-radius: 16px;
backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.3);
    
    margin-bottom: 2rem;
    
}

/* --- Balise <h3> --- */

.extracted-style-114 {
    color: var(--accent-cyan);
margin-bottom: 1.5rem;
    
    font-size: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Balise <span> --- */

.extracted-style-115 {
    opacity: 0.5;
font-size: 0.75rem;
font-weight: normal;
}

/* --- Élément #notes-list --- */

.extracted-style-116 {
    display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    gap: 0.75rem;
margin-bottom: 1.5rem;
    
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
    
}

/* --- Balise <div> --- */

.extracted-style-117 {
    display: flex;
gap: 0.75rem;
background: rgba(0, 0, 0, 0.4);
padding: 0.5rem;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.05);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    
}

/* --- Élément #new-note-input --- */

.extracted-style-118 {
    flex: 1;
    background: transparent;
color: white;
border: none;
padding: 0.5rem 1rem;
font-size: 0.95rem;
outline: none;
}

.extracted-style-119 {
    padding: 0.5rem 1.5rem;
font-weight: 600;
border-radius: 8px;
background: var(--accent-blue);
border: none;
box-shadow: var(--glow-blue);
    
    transition: all 0.3s ease;
    
}

/* --- Élément #standard-form-actions --- */

.extracted-style-120 {
    display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}

.extracted-style-121 {
    color: var(--accent-red);
border-color: var(--accent-red);
    
    display: none;
}

.extracted-style-122 {
    color: var(--accent-green);
border-color: var(--accent-green);
    
    display: none;
}

.extracted-style-123 {
    color: var(--accent-red);
border-color: var(--accent-red);
    
    background: rgba(239, 68, 68, 0.1);
display: none;
}

/* --- Balise <ul> --- */

.extracted-style-124 {
    margin-left: 20px;
    
    margin-top: 10px;
    
    margin-bottom: 15px;
    
    color: var(--text-muted);
line-height: 1.6;
    
}

.extracted-style-127 {
    grid-column: span 2;
}

/* --- Élément #question-filters --- */

.extracted-style-128 {
    margin-bottom: 2rem;
    
}

/* Home logo size */
.logo-img-home {
    width: 240px;
    height: 240px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}


/* Stats badge on home */
.stats-home {
    margin: 2rem 0;
display: flex;
justify-content: center;
}

.stat-badge {
    background: rgba(30, 41, 59, 0.8);
border: 1px solid var(--border-color);
padding: 0.75rem 1.5rem;
border-radius: 50px;
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 1.1rem;
color: var(--accent-cyan);
box-shadow: var(--glow-blue);
    
}

.stat-badge i {
    font-size: 1.5rem;
}

.stat-badge span strong {
    color: white;
}

/* Action buttons on home */
.action-buttons-home {
    display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}

/* Responsive Nav */
.mobile-menu-toggle {
    display: none;
font-size: 2rem;
cursor: pointer;
    
    color: var(--text-main);
}

@media (max-width: 768px) {
    .public-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1.25rem;
        position: sticky !important;
        top: 0;
        border-radius: 0 0 14px 14px;
        margin-bottom: 1.5rem;
    }

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

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(199, 125, 255, 0.2);
        border-radius: 12px;
        padding: 0.75rem 0;
        z-index: 1000;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.show {
        display: flex;
        animation: mobileNavSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes mobileNavSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links .nav-btn {
        width: 100%;
        text-align: left;
        padding: 0.85rem 1.5rem;
        border-radius: 0;
        border: none;
        background: transparent;
    }

    .nav-links .nav-btn:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown .drop-btn {
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 1.5rem;
    }

    .dropdown-content {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(0, 0, 0, 0.25) !important;
        padding: 0.25rem 0 0.5rem 1.5rem !important;
        border-left: 2px solid var(--accent-primary) !important;
        margin: 0.2rem 1rem 0.5rem 1.5rem !important;
        display: none;
    }

    .dropdown:hover .dropdown-content,
    .dropdown.is-open .dropdown-content {
        display: flex !important;
        animation: none !important;
    }

    .dropdown-content::before,
    .dropdown-content::after {
        display: none !important;
    }

    .dropdown-content .nav-btn {
        padding: 0.75rem 1rem;
    }

    .nav-auth {
        display: none;
    }

    /* WL cards in one column */
    .wl-info {
        flex-direction: column;
        /* Direction de l'affichage flex (ligne ou colonne) */
        align-items: flex-start;
gap: 1rem;
}

    .wl-item {
        flex-direction: column;
        /* Direction de l'affichage flex (ligne ou colonne) */
        align-items: flex-start;
gap: 1rem;
}

    .wl-score-status {
        width: 100%;
justify-content: space-between;
}
}

/* ==========================================================================
   TIPTAP MODERN EDITOR & FLOATING BUBBLE MENU
   ========================================================================== */

/* ProseMirror / TipTap Container */
.tiptap.ProseMirror {
    outline: none !important;
    min-height: 140px;
    padding: 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: inherit;
    cursor: text;
}

.tiptap.ProseMirror p {
    margin: 0.4rem 0;
}

.tiptap.ProseMirror h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1.2rem 0 0.5rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.3rem;
}

.tiptap.ProseMirror h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1rem 0 0.4rem;
    color: #f1f5f9;
}

.tiptap.ProseMirror h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0.8rem 0 0.3rem;
    color: #e2e8f0;
}

.tiptap.ProseMirror ul,
.tiptap.ProseMirror ol {
    padding-left: 1.75rem;
    margin: 0.5rem 0;
}

.tiptap.ProseMirror li {
    margin: 0.25rem 0;
}

.tiptap.ProseMirror blockquote {
    border-left: 3px solid var(--accent-primary);
    padding: 8px 14px;
    margin: 0.8rem 0;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(155, 93, 229, 0.08);
    border-radius: 0 8px 8px 0;
}

.tiptap.ProseMirror code {
    background: rgba(0, 0, 0, 0.4);
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.tiptap.ProseMirror hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

/* Floating Bubble Menu (Glassmorphism Pill) */
.tiptap-bubble-menu {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 8px;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(155, 93, 229, 0.45);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(155, 93, 229, 0.25);
    z-index: 99999;
}

.bubble-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 3px;
}

.bubble-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #94a3b8;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    transition: all 0.15s ease;
}

.bubble-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.bubble-btn.is-active {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(155, 93, 229, 0.6);
}

/* Block Top Toolbar (Modern minimal bar) */
.block-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    gap: 10px;
}

.block-quick-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.block-quick-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #94a3b8;
    padding: 4px 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.block-quick-btn:hover {
    background: rgba(155, 93, 229, 0.15);
    color: #fff;
    border-color: rgba(155, 93, 229, 0.4);
}

.block-quick-btn.is-active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

/* EDT Styles - Modern & Fluid */
.edt-section {
    display: flex;
gap: 24px;
padding: 24px;
background: rgba(15, 23, 42, 0.4);
backdrop-filter: blur(12px);
    border-radius: 16px;
margin-top: 20px;
    
    border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
}

.edt-sidebar {
    flex: 0 0 280px;
    display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    background: rgba(255, 255, 255, 0.02);
padding: 20px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.05);
}

.edt-class-tabs {
    display: flex;
gap: 12px;
margin-bottom: 24px;
    
    background: rgba(0, 0, 0, 0.2);
padding: 8px;
border-radius: 12px;
width: max-content;
}

.edt-tab {
    padding: 10px 24px;
background: transparent;
border: none;
color: var(--text-muted);
cursor: pointer;
    
    border-radius: 8px;
font-weight: 600;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
}

.edt-tab.active,
.edt-tab:hover {
    background: var(--accent-primary);
color: white;
box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    
    transform: translateY(-1px);
}

.edt-grid {
    display: grid;
grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
overflow: hidden;
}

.edt-cell {
    background: rgba(15, 23, 42, 0.6);
padding: 12px 8px;
text-align: center;
min-height: 60px;
display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    justify-content: center;
align-items: center;
font-size: 0.9rem;
transition: background 0.3s ease;
    
}

.edt-cell:hover {
    background: rgba(255, 255, 255, 0.03);
}

.edt-header {
    font-weight: bold;
background: rgba(30, 41, 59, 0.8);
color: var(--text-main);
text-transform: uppercase;
letter-spacing: 1px;
    font-size: 0.8rem;
}

.edt-time {
    font-weight: 600;
color: var(--accent-cyan);
background: rgba(30, 41, 59, 0.6);
}

.edt-input {
    width: 100%;
padding: 10px 14px;
background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.1);
color: var(--text-main);
text-align: left;
font-family: inherit;
border-radius: 8px;
transition: all 0.3s ease;
    
}

.edt-input:focus {
    border-color: var(--accent-cyan);
    
    outline: none;
    background: rgba(15, 23, 42, 0.8);
box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
    
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-surface);
    width: 500px;
    max-width: 90%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(1);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.staff-edt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.staff-edt-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

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

/* Draggable Cards - Modernized */
.edt-card-template {
    background: rgba(30, 41, 59, 0.6);
backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
padding: 12px;
border-radius: 10px;
cursor: grab;
    
    font-size: 0.8rem;
text-align: left;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
}

.edt-card-template:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    
    border-color: rgba(255, 255, 255, 0.3);
    
}

.edt-card-template:active {
    cursor: grabbing;
    
    transform: scale(0.98);
}

.edt-card-title {
    font-weight: bold;
color: var(--text-main);
margin-bottom: 6px;
    
    font-size: 0.9rem;
}

.edt-card-detail {
    color: var(--text-muted);
font-size: 0.75rem;
display: flex;
align-items: center;
gap: 6px;
margin-top: 4px;
    
}

.edt-card-detail i {
    color: var(--accent-cyan);
}

.edt-grid-card {
    background: rgba(30, 41, 59, 0.9);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
padding: 8px;
text-align: left;
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
    /* Direction de l'affichage flex (ligne ou colonne) */
    justify-content: center;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    
    animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.edt-cell.droppable {
    border: 1px dashed transparent;
transition: all 0.3s ease;
    
}

.edt-cell.droppable.drag-over {
    border: 1px dashed var(--accent-cyan);
background: rgba(34, 211, 238, 0.15);
transform: scale(1.02);
}

.edt-card-remove {
    position: absolute;
top: -6px;
right: -6px;
cursor: pointer;
    
    color: white;
background: #ef4444;
border-radius: 50%;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
box-shadow: 0 2px 5px rgba(239, 68, 68, 0.5);
    
    opacity: 0;
transition: all 0.2s ease;
    
    transform: scale(0.8);
}

.edt-grid-card:hover .edt-card-remove {
    opacity: 1;
transform: scale(1);
}

.edt-card-remove:hover {
    background: #dc2626;
transform: scale(1.1) !important;
}

.color-swatch {
    width: 28px;
height: 28px;
border-radius: 50%;
cursor: pointer;
    
    border: 2px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
}

.color-swatch:hover,
.color-swatch.active {
    border-color: #fff;
    
    transform: scale(1.2);
    box-shadow: 0 0 10px currentColor;
    
}

/* Styles for specific roles */
.role-specific-highlight {
    background: rgba(37, 99, 235, 0.05);
border: 1px solid rgba(37, 99, 235, 0.2);
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 2rem;
    
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    
}

.role-specific-highlight.surveillant-highlight {
    background: rgba(220, 38, 38, 0.05);
border: 1px solid rgba(220, 38, 38, 0.2);
}

.role-specific-highlight h3 {
    color: var(--accent-blue);
}

.role-specific-highlight.surveillant-highlight h3 {
    color: var(--accent-red);
}/* ==========================================================================
   DROPDOWN MENUS
   ========================================================================== */
.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 220px;
    border: 1px solid rgba(155, 93, 229, 0.4);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(155, 93, 229, 0.15);
    z-index: 1000;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px;
}

/* Le pont invisible */
.dropdown-content::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -10%;
    width: 120%;
    height: 20px;
    background: transparent;
}

/* La petite flèche directionnelle (Tooltip arrow) */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    margin-left: -6px;
    width: 12px;
    height: 12px;
    background: rgba(10, 14, 23, 1);
    border-left: 1px solid rgba(155, 93, 229, 0.4);
    border-top: 1px solid rgba(155, 93, 229, 0.4);
    transform: rotate(45deg);
}

.dropdown:not(.menu-closed):hover .dropdown-content,
.dropdown.is-open:not(.menu-closed) .dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: dropFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown.menu-closed .dropdown-content {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.dropdown:hover .drop-btn i,
.dropdown.is-open .drop-btn i {
    transform: rotate(180deg);
}

.dropdown .drop-btn i {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropFade {
    0% { opacity: 0; transform: translate(-50%, -8px) scale(0.96); }
    100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.dropdown-content .nav-btn {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.dropdown-content .nav-btn:hover {
    background: rgba(155, 93, 229, 0.18);
    color: #fff;
    transform: translateX(4px);
}

.dropdown .drop-btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   NOUVEAUX COMPOSANTS : TIMELINE, WIZARD MULTI-ÉTAPES, AUDIT & SELECTEURS
   ========================================================================== */

/* ==========================================================================
   TIMELINE "COMMENT NOUS REJOINDRE" (STEPPER FLUIDE & CONNECTÉ)
   ========================================================================== */
.join-timeline-section {
    padding: 3.5rem 1.5rem;
    margin: 2.5rem auto;
    max-width: 1200px;
    background: linear-gradient(170deg, rgba(28, 12, 48, 0.45) 0%, rgba(12, 4, 22, 0.65) 100%);
    border: 1px solid rgba(199, 125, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.join-timeline-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 30%;
    width: 300px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(155, 93, 229, 0.25), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.timeline-header {
    text-align: center;
    margin-bottom: 2.8rem;
    position: relative;
    z-index: 2;
}

.timeline-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(155, 93, 229, 0.15);
    border: 1px solid rgba(199, 125, 255, 0.4);
    border-radius: 30px;
    color: #e9d5ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(155, 93, 229, 0.25);
    margin-bottom: 0.8rem;
}

.timeline-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #ffffff 40%, #e9d5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-main-subtitle {
    font-size: 0.98rem;
    color: #c4b5fd;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.5;
}

.timeline-stepper-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.timeline-step-card {
    flex: 1;
    background: linear-gradient(165deg, rgba(28, 14, 48, 0.75), rgba(15, 7, 26, 0.88));
    border: 1px solid rgba(199, 125, 255, 0.2);
    border-radius: 16px;
    padding: 1.6rem 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    backdrop-filter: blur(8px);
}

.timeline-step-card:hover {
    border-color: rgba(199, 125, 255, 0.6);
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(155, 93, 229, 0.28);
    background: linear-gradient(165deg, rgba(38, 18, 64, 0.85), rgba(20, 9, 36, 0.95));
}

.timeline-step-card.step-highlighted {
    border-color: rgba(155, 93, 229, 0.45);
    background: linear-gradient(165deg, rgba(36, 16, 62, 0.8), rgba(18, 8, 32, 0.9));
}

.timeline-step-card.step-highlighted:hover {
    border-color: #c77dff;
    box-shadow: 0 16px 40px rgba(199, 125, 255, 0.35);
}

.step-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.step-card-num {
    font-size: 0.82rem;
    font-weight: 800;
    color: #e9d5ff;
    background: rgba(155, 93, 229, 0.2);
    border: 1px solid rgba(199, 125, 255, 0.35);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.step-card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.timeline-step-card:hover .step-card-icon-box {
    transform: scale(1.1) rotate(4deg);
}

.step-card-icon-box.icon-discord {
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #818cf8;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}

.step-card-icon-box.icon-lore {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.step-card-icon-box.icon-cand {
    background: rgba(244, 114, 182, 0.16);
    border: 1px solid rgba(244, 114, 182, 0.4);
    color: #f472b6;
    box-shadow: 0 0 16px rgba(244, 114, 182, 0.2);
}

.step-card-icon-box.icon-oral {
    background: rgba(52, 211, 153, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.2);
}

.step-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.step-card-desc {
    font-size: 0.86rem;
    color: #a78bfa;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.step-card-footer {
    margin-top: auto;
}

.timeline-btn {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(199, 125, 255, 0.25);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.timeline-btn:hover {
    background: rgba(155, 93, 229, 0.25);
    border-color: #c77dff;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(155, 93, 229, 0.3);
}

.timeline-btn.btn-cta {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(155, 93, 229, 0.35);
}

.timeline-btn.btn-cta:hover {
    box-shadow: 0 6px 20px rgba(155, 93, 229, 0.5);
    transform: translateY(-2px);
}

.timeline-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 8px;
    color: #34d399;
    font-size: 0.82rem;
    font-weight: 600;
}

.timeline-step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(199, 125, 255, 0.4);
    font-size: 1.4rem;
    flex-shrink: 0;
    padding: 0 2px;
}

@media (max-width: 1024px) {
    .timeline-stepper-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .timeline-step-connector {
        display: none;
    }
}

@media (max-width: 640px) {
    .timeline-stepper-wrapper {
        grid-template-columns: 1fr;
    }
    .timeline-main-title {
        font-size: 1.7rem;
    }
}

/* ==========================================================================
   PORTAIL D'ADMISSION & SÉLECTION DE RÔLE (CANDIDATURE)
   ========================================================================== */
.admission-portal-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0;
}

.admission-hero-card {
    background: linear-gradient(165deg, rgba(28, 13, 48, 0.75), rgba(13, 6, 24, 0.88));
    border: 1px solid rgba(199, 125, 255, 0.22);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin-bottom: 2.2rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    position: relative;
}

.admission-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(155, 93, 229, 0.15);
    border: 1px solid rgba(199, 125, 255, 0.4);
    border-radius: 20px;
    color: #e9d5ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.admission-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
    margin-bottom: 0.6rem;
}

.admission-main-subtitle {
    font-size: 0.95rem;
    color: #c4b5fd;
    line-height: 1.55;
    margin-bottom: 2rem;
    max-width: 760px;
}

.criteria-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

.criteria-card {
    background: rgba(15, 7, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.3rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: var(--transition);
}

.criteria-card:hover {
    border-color: rgba(199, 125, 255, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(155, 93, 229, 0.18);
    background: rgba(22, 10, 40, 0.8);
}

.criteria-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

.criteria-icon.icon-age {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.criteria-icon.icon-exp {
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}

.criteria-icon.icon-mic {
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
}

.criteria-icon.icon-lore {
    background: rgba(192, 132, 252, 0.14);
    border: 1px solid rgba(192, 132, 252, 0.35);
    color: #c084fc;
}

.criteria-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a78bfa;
    font-weight: 700;
}

.criteria-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2px 0 6px 0;
}

.criteria-desc {
    font-size: 0.84rem;
    color: #9d81ba;
    line-height: 1.45;
    margin: 0;
}

/* SÉLECTION DU RÔLE */
.role-selector-card {
    background: linear-gradient(165deg, rgba(28, 13, 48, 0.65), rgba(13, 6, 24, 0.8));
    border: 1px solid rgba(199, 125, 255, 0.2);
    border-radius: 20px;
    padding: 2.2rem 2rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.role-selector-header {
    text-align: center;
    margin-bottom: 2rem;
}

.role-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(155, 93, 229, 0.15);
    border: 1px solid rgba(199, 125, 255, 0.35);
    border-radius: 20px;
    color: #e9d5ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.role-selector-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.role-selector-subtitle {
    font-size: 0.92rem;
    color: #c4b5fd;
    max-width: 600px;
    margin: 0 auto;
}

.role-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.role-card {
    background: linear-gradient(160deg, rgba(26, 13, 44, 0.75), rgba(14, 6, 26, 0.88));
    border: 1px solid rgba(199, 125, 255, 0.25);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.role-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 16px 36px rgba(155, 93, 229, 0.35);
    background: linear-gradient(160deg, rgba(36, 17, 60, 0.88), rgba(18, 8, 34, 0.95));
}

.role-card-badge {
    background: rgba(155, 93, 229, 0.18);
    border: 1px solid rgba(199, 125, 255, 0.3);
    color: #e9d5ff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.role-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0.3rem 0;
    transition: transform 0.3s ease;
}

.role-card:hover .role-card-icon {
    transform: scale(1.1);
}

.role-card.role-eleve .role-card-icon {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}

.role-card.role-professeur .role-card-icon {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.role-card.role-surveillant .role-card-icon {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #facc15;
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.25);
}

.role-card-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 0;
}

.role-card-desc {
    font-size: 0.85rem;
    color: #a78bfa;
    line-height: 1.5;
    margin: 0;
    min-height: 58px;
}

.role-btn-action {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    transition: var(--transition);
}

.role-card:hover .role-btn-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    box-shadow: 0 4px 15px rgba(155, 93, 229, 0.4);
}

@media (max-width: 900px) {
    .role-cards-grid {
        grid-template-columns: 1fr;
    }
    .admission-main-title {
        font-size: 1.6rem;
    }
}

/* Multi-Step Wizard */
.wizard-nav-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
    background: rgba(15, 23, 42, 0.4);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.wizard-step {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    text-align: left;
}

.wizard-step:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.wizard-step.active {
    background: rgba(155, 93, 229, 0.2);
    border-color: var(--border-highlight);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(155, 93, 229, 0.25);
}

.wizard-step.completed {
    color: var(--accent-green);
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.05);
}

.wizard-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.wizard-step.active .wizard-step-num {
    background: var(--accent-blue);
    color: #fff;
}

.wizard-step.completed .wizard-step-num {
    background: var(--accent-green);
    color: #090111;
}

.wizard-step-label {
    display: flex;
    flex-direction: column;
}

.wizard-step-title {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.2;
}

.wizard-step-desc {
    font-size: 0.72rem;
    opacity: 0.7;
}

.wizard-panel {
    animation: fadeIn 0.25s ease-in-out;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Autosave bar */
.autosave-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
}

.autosave-status {
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* Word Counter */
.word-counter-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-short {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.badge-ok {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Cand Summary Card */
.cand-summary-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

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

.summary-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.summary-section.full-width {
    grid-column: 1 / -1;
}

.summary-section h4 {
    font-size: 0.92rem;
    color: var(--accent-cyan);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    gap: 10px;
}

.summary-row span {
    color: var(--text-muted);
}

/* Sidebar Selectors (Tri, Attribution, Staff) */
.sidebar-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.sidebar-select:hover,
.sidebar-select:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(155, 93, 229, 0.4);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(155, 93, 229, 0.2);
}

.sidebar-select option {
    background: #0f172a;
    color: #ffffff;
}

/* Admission Simple Box (Unified Candidature) */
.admission-simple-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.admission-simple-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.admission-simple-header h2 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin: 0.5rem 0 0.3rem 0;
    font-weight: 700;
}

.admission-simple-header p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

.admission-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.simple-req-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.simple-req-card:hover {
    border-color: rgba(155, 93, 229, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.simple-req-card i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.simple-req-card strong {
    color: #ffffff;
}

.admission-role-picker {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admission-role-picker h4 {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    font-weight: 700;
}

.role-btn-cluster {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.role-btn-cluster .btn {
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
}

/* Audit Modal */
.audit-modal-content {
    max-width: 650px !important;
    width: 90vw !important;
}

.audit-logs-list {
    scrollbar-width: thin;
    scrollbar-color: var(--border-highlight) transparent;
}

.audit-log-item {
    transition: var(--transition);
}

.audit-log-item:hover {
    border-color: var(--border-highlight) !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

@media (max-width: 800px) {
    .wizard-nav-stepper {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline-stepper {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MISE EN PAGE MODERNE ET SUBLIME DU CONTENU (Règlement, Lore, Règlement Discord)
   ========================================================================== */

/* En-têtes épurés (sans badge ni description) */
.main-header.compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    gap: 1.5rem;
}

.main-header.compact .header-titles {
    display: flex;
    flex-direction: column;
}

.main-header.compact .title {
    margin: 0;
}

.page-badge-pill,
.timeline-badge-pill,
.admission-badge-pill {
    display: none !important;
}

.header-subtitle-text,
.dashboard-subtitle {
    display: none !important;
}

/* Annulation du double encadrement pour les sections de contenu */
.extracted-style-19,
.content-section {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    margin-top: 1.5rem !important;
    box-shadow: none !important;
    width: 100% !important;
}

.extracted-style-20,
.content-display {
    display: block;
    line-height: 1.75;
    width: 100%;
}

.content-display.hidden,
.content-editor.hidden {
    display: none !important;
}

.content-editor {
    display: none;
    width: 100%;
}

.content-editor.active {
    display: block !important;
}

/* Conteneur principal 2 colonnes : Sommaire sticky + Articles */
.content-layout-wrapper {
    display: flex;
    gap: 2.25rem;
    align-items: flex-start;
    width: 100%;
    position: relative;
    margin-top: 0.5rem;
}

/* Sidebar Sommaire sticky */
.content-toc-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: rgba(18, 8, 32, 0.8) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(199, 125, 255, 0.22);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 93, 229, 0.3) transparent;
    z-index: 20;
}

.content-toc-sidebar::-webkit-scrollbar {
    width: 5px;
}
.content-toc-sidebar::-webkit-scrollbar-thumb {
    background: rgba(155, 93, 229, 0.3);
    border-radius: 10px;
}

.toc-header {
    border-bottom: 1px solid rgba(199, 125, 255, 0.15);
    padding-bottom: 1rem;
    margin-bottom: 0.25rem;
}

.toc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.toc-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-title);
    font-weight: 700;
}

.toc-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.toc-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.toc-item:hover {
    color: #ffffff;
    background: rgba(155, 93, 229, 0.18);
    border-color: rgba(199, 125, 255, 0.3);
    transform: translateX(4px);
}

.toc-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.3), rgba(199, 125, 255, 0.15));
    border-color: var(--border-highlight);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(155, 93, 229, 0.25);
}

.toc-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(155, 93, 229, 0.2);
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.toc-item.active .toc-num-badge {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(155, 93, 229, 0.5);
}

.toc-item-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toc-footer {
    border-top: 1px solid rgba(199, 125, 255, 0.15);
    padding-top: 0.85rem;
    margin-top: 0.25rem;
}

.toc-top-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.toc-top-btn:hover {
    background: rgba(155, 93, 229, 0.2);
    color: #ffffff;
    border-color: rgba(199, 125, 255, 0.3);
}

/* Bouton toggle mobile pour le Sommaire */
.mobile-toc-toggle-btn {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    background: rgba(22, 12, 38, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(199, 125, 255, 0.25);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-toc-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
}

.mobile-toc-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* Flux d'articles */
.content-articles-container {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Style des Cartes d'Articles (.content-block) */
.content-block,
.doc-article-card {
    background: rgba(22, 12, 38, 0.68) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(199, 125, 255, 0.18) !important;
    border-radius: 16px !important;
    padding: 2.25rem 2.5rem !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    width: 100% !important;
}

.content-block:hover,
.doc-article-card:hover {
    border-color: rgba(199, 125, 255, 0.35) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(155, 93, 229, 0.12);
}

/* Typographie soignée */
.content-block h1 {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 40%, #ffc8dd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(199, 125, 255, 0.18);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-block h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: #e0aaff;
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.content-block h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.15em;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-gold));
    border-radius: 4px;
    flex-shrink: 0;
}

.content-block h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-top: 1.25rem;
    margin-bottom: 0.6rem;
}

.content-block p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.1rem;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* Remplacer le soulignement brut par une ligne décorative discrète */
.content-block u {
    text-decoration: none !important;
    border-bottom: 2px solid rgba(155, 93, 229, 0.6);
    padding-bottom: 2px;
}

.content-block strong {
    color: #ffffff;
    font-weight: 600;
}

.content-block em {
    color: #e0aaff;
    font-style: italic;
}

/* Listes à puces élégantes */
.content-block ul,
.content-block ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.content-block li {
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.content-block li p {
    margin-bottom: 0;
    display: inline;
}

.content-block li::marker {
    color: var(--accent-cyan);
}

.content-block blockquote {
    background: rgba(155, 93, 229, 0.08);
    border-left: 4px solid var(--accent-blue);
    border-radius: 0 12px 12px 0;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    color: #f3e8ff;
    font-style: italic;
    font-size: 1.05rem;
}

/* Stepper et Badges pour sanctions */
.rule-sanctions-stepper {
    list-style-type: none !important;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1rem 0;
}

.rule-sanctions-stepper li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent-blue);
}

.rule-sanction-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.rule-sanction-badge.warn {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.rule-sanction-badge.kick {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.4);
}

.rule-sanction-badge.ban {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Callout Alerte Alt+F4 */
.rule-alert-warning-callout {
    background: rgba(239, 68, 68, 0.1) !important;
    border-left: 4px solid var(--accent-red) !important;
    border-radius: 0 10px 10px 0;
    padding: 1.1rem 1.4rem;
    margin: 1rem 0;
    color: #fecdd3 !important;
}

/* Responsive pour mobile et tablettes */
@media (max-width: 992px) {
    .content-layout-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-toc-toggle-btn {
        display: flex;
    }

    .content-toc-sidebar {
        display: none;
        width: 100%;
        position: static;
        max-height: 400px;
    }

    .content-toc-sidebar.mobile-open {
        display: flex;
    }

    .content-block,
    .doc-article-card {
        padding: 1.5rem !important;
    }

    .main-header.compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .main-header.compact .header-actions {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
}

/* ==========================================================================
   CADRAGE & LARGEURS MAXIMALES (Évite l'effet étiré / bord-à-bord)
   ========================================================================== */

/* Navbar bien proportionnée */
.public-nav {
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Cadrage harmonieux des vues (large avec marge élégante) */
#view-home {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

#view-rules,
#view-lore,
#view-rules-discord {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

#view-rules .main-header.compact,
#view-lore .main-header.compact,
#view-rules-discord .main-header.compact {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Registre Whitelist : Layout étendu & équilibré */
#view-dashboard {
    max-width: 1480px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 2.2rem !important;
    background: linear-gradient(135deg, rgba(22, 12, 38, 0.85) 0%, rgba(15, 23, 42, 0.75) 100%) !important;
    border: 1px solid rgba(199, 125, 255, 0.2) !important;
    border-radius: 18px !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    box-sizing: border-box;
}

.dashboard-title {
    font-family: var(--font-serif);
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    color: var(--text-title, #ffffff) !important;
    margin: 0.25rem 0 0 0 !important;
    text-transform: uppercase;
}

.dashboard-subtitle {
    color: var(--text-muted, #b39ddb) !important;
    font-size: 0.9rem !important;
    letter-spacing: 1px !important;
    font-weight: 500 !important;
    margin: 0.2rem 0 0 0 !important;
}

/* Grille des statistiques Registre WL */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 1.25rem !important;
    margin-bottom: 2rem !important;
    width: 100%;
}

.stat-card-modern {
    background: linear-gradient(135deg, rgba(22, 12, 38, 0.8) 0%, rgba(15, 23, 42, 0.7) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 3px solid var(--card-color, rgba(199, 125, 255, 0.4)) !important;
    border-radius: 14px !important;
    padding: 1.4rem 1rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px);
}

.stat-card-modern:hover {
    transform: translateY(-3px) !important;
    border-color: var(--card-color, rgba(199, 125, 255, 0.6)) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
}

.stat-val {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    font-family: var(--font-serif) !important;
    line-height: 1 !important;
    margin-bottom: 0.4rem !important;
}

.stat-name {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

/* Barre de recherche Registre WL */
.dashboard-top-bar {
    width: 100%;
    margin-bottom: 1.75rem;
}

.top-search input {
    background: rgba(18, 11, 32, 0.7) !important;
    border: 1px solid rgba(199, 125, 255, 0.2) !important;
    border-radius: 14px !important;
    padding: 0.95rem 1.25rem 0.95rem 3.2rem !important;
    color: var(--text-main) !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    width: 100%;
    box-sizing: border-box;
}

.top-search input:focus {
    border-color: var(--accent-purple, #c77dff) !important;
    box-shadow: 0 0 20px rgba(199, 125, 255, 0.25) !important;
    background: rgba(22, 12, 38, 0.85) !important;
}

/* Layout 2 colonnes Dashboard */
.dashboard-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
}

.dashboard-sidebar {
    width: 290px !important;
    min-width: 290px !important;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-filters {
    background: linear-gradient(135deg, rgba(22, 12, 38, 0.75) 0%, rgba(15, 23, 42, 0.7) 100%) !important;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(199, 125, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 1.4rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

.dashboard-main-content {
    flex: 1;
    min-width: 0;
}

/* Cartes de candidatures WL */
.wl-item {
    background: linear-gradient(135deg, rgba(22, 12, 38, 0.7) 0%, rgba(15, 23, 42, 0.6) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: 4px solid var(--accent-blue, #60a5fa) !important;
    border-radius: 14px !important;
    padding: 1.35rem 1.6rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 1rem;
}

.wl-item:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(199, 125, 255, 0.35) !important;
    background: linear-gradient(135deg, rgba(30, 16, 52, 0.85) 0%, rgba(20, 28, 50, 0.75) 100%) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
}

.wl-item.status-accepted { border-left-color: var(--accent-green, #10b981) !important; }
.wl-item.status-refused { border-left-color: var(--accent-red, #ef4444) !important; }
.wl-item.status-pending { border-left-color: var(--accent-gold, #fbbf24) !important; }
.wl-item.status-verification { border-left-color: var(--accent-cyan, #06b6d4) !important; }

/* Autres vues */
#view-candidature {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

#view-staff-team {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

#view-staff-manage {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

#view-edt {
    max-width: 1480px;
    margin: 0 auto;
    width: 100%;
}

#view-ranking {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

#view-guide {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

#view-new-wl {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Réajustement précis du wrapper de contenu (Règlement, Lore) */
.content-layout-wrapper {
    display: flex;
    gap: 2.25rem;
    align-items: flex-start;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

/* Sidebar Sommaire : largeur calibrée et élégante */
.content-toc-sidebar {
    width: 280px !important;
    min-width: 280px !important;
    flex-shrink: 0;
    padding: 1.35rem !important;
}

/* Flux d'articles : largeur étendue pour lecture confortable */
.content-articles-container {
    flex: 1;
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Cartes de contenu : padding harmonieux et centré */
.content-block,
.doc-article-card {
    padding: 2rem 2.25rem !important;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .app-container {
        padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    }

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

@media (max-width: 992px) {
    .content-layout-wrapper {
        flex-direction: column;
        gap: 1.25rem;
    }

    .content-toc-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        position: relative !important;
        top: 0 !important;
    }

    .content-articles-container {
        max-width: 100%;
    }

    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        position: relative !important;
        top: 0 !important;
    }

    .content-block,
    .doc-article-card {
        padding: 1.5rem !important;
    }
}

/* ==========================================================================
   MODALE DE CONFIRMATION ÉLÉGANTE (MINI-PAGE CONFIRM)
   ========================================================================== */
.confirm-modal-box {
    max-width: 440px;
    padding: 2.25rem 2rem 1.75rem 2rem;
    text-align: center;
    background: linear-gradient(160deg, rgba(26, 15, 45, 0.97) 0%, rgba(13, 7, 24, 0.99) 100%);
    border: 1px solid rgba(199, 125, 255, 0.28);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(155, 93, 229, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.custom-alert:not(.hidden) .confirm-modal-box {
    transform: scale(1) translateY(0);
}

.confirm-modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(199, 125, 255, 0.6), transparent);
}

.confirm-modal-icon-wrapper {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
}

.confirm-modal-icon-wrapper.is-danger {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.08) 70%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.3);
}

.confirm-modal-icon-wrapper.is-info {
    background: radial-gradient(circle, rgba(155, 93, 229, 0.25) 0%, rgba(155, 93, 229, 0.08) 70%);
    border: 1px solid rgba(199, 125, 255, 0.45);
    color: #c77dff;
    box-shadow: 0 0 25px rgba(155, 93, 229, 0.3);
}

.confirm-modal-box h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.confirm-modal-box p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
    max-width: 380px;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.confirm-modal-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 10px;
}

/* ==========================================================================
   PAGE / ÉCRAN DE CHARGEMENT PLEIN ÉCRAN
   ========================================================================== */
.loading-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 3, 14, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-screen-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.loading-screen-overlay.hidden {
    display: none;
}

.loading-screen-card {
    background: linear-gradient(160deg, rgba(30, 18, 52, 0.96) 0%, rgba(15, 8, 28, 0.99) 100%);
    border: 1px solid rgba(199, 125, 255, 0.35);
    border-radius: 24px;
    padding: 2.75rem 2.25rem;
    width: 90%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(155, 93, 229, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loading-screen-overlay.visible .loading-screen-card {
    transform: scale(1) translateY(0);
}

.loading-screen-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c77dff, #9b5de5, transparent);
}

.loading-spinner-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(199, 125, 255, 0.15);
    border-top-color: #c77dff;
    border-right-color: #9b5de5;
    animation: loading-spin 1.1s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
    box-shadow: 0 0 20px rgba(199, 125, 255, 0.3);
}

.loading-spinner-core {
    font-size: 2rem;
    color: #c77dff;
    animation: loading-pulse 1.8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-screen-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.loading-screen-msg {
    color: #9d81ba;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 340px;
}

.loading-screen-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.loading-screen-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c77dff;
    box-shadow: 0 0 10px rgba(199, 125, 255, 0.6);
    animation: loading-dot-bounce 1.4s infinite ease-in-out both;
}

.loading-screen-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-screen-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-screen-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loading-pulse {
    0%, 100% { transform: scale(0.92); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 12px rgba(199, 125, 255, 0.8)); }
}

@keyframes loading-dot-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.2); opacity: 1; }
}

.btn-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.85), rgba(185, 28, 28, 0.85));
    color: white;
    border: 1px solid rgba(248, 113, 113, 0.5);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.95), rgba(220, 38, 38, 0.95));
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    transform: translateY(-2px);
}

/* ==========================================================================
   SYSTÈME DE VERSIONING, HISTORIQUE ET COMPARATEUR (DIFF VIEWER)
   ========================================================================== */

.version-modal-content {
    width: 1150px;
    max-width: 96vw;
    height: 88vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 15% 10%, rgba(30, 16, 56, 0.95), rgba(12, 7, 22, 0.98));
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 40px rgba(167, 139, 250, 0.12);
    overflow: hidden;
    padding: 0 !important;
}

.version-modal-header {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.version-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.version-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(167, 139, 250, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #c4b5fd;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}

.version-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.version-modal-subtitle {
    margin: 2px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.version-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Corps en 2 colonnes */
.version-modal-body {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

/* Colonne de gauche : Historique / Timeline */
.version-sidebar {
    width: 330px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    background: rgba(10, 5, 20, 0.55);
}

.version-sidebar-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
}

.version-sidebar-count {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-icon-refresh {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-icon-refresh:hover {
    color: #a78bfa;
    transform: rotate(90deg);
}

.version-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.version-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Carte de version dans la liste */
.version-item-card {
    background: rgba(25, 15, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.version-item-card:hover {
    background: rgba(45, 25, 80, 0.5);
    border-color: rgba(167, 139, 250, 0.35);
    transform: translateX(3px);
}

.version-item-card.active {
    background: linear-gradient(135deg, rgba(50, 25, 95, 0.75), rgba(30, 15, 60, 0.85));
    border-color: #a78bfa;
    box-shadow: 0 4px 18px rgba(167, 139, 250, 0.25);
}

.version-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-badge-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.version-num-pill {
    background: rgba(167, 139, 250, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.3);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.4px;
}

.version-num-pill.pill-current {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.4);
}

.version-tag-live {
    font-size: 0.7rem;
    font-weight: 600;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.version-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.version-item-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-author-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(167, 139, 250, 0.4);
}

.version-author-fallback {
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.version-item-author-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.version-author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.version-author-role {
    font-size: 0.72rem;
    color: #a78bfa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.version-item-summary {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}

.version-item-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.btn-version-quick-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-version-quick-action:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.4);
    color: #ffffff;
}

.btn-version-quick-action.restore-action:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* Colonne de droite : Espace de comparaison & Diff */
.version-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: rgba(15, 8, 30, 0.35);
}

/* Barre de comparaison */
.version-compare-bar {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(20, 10, 40, 0.5);
    flex-wrap: wrap;
}

.compare-selectors {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 320px;
}

.compare-select-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.compare-select-group label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.version-select {
    width: 100%;
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    height: 34px;
    background: rgba(30, 15, 55, 0.8) !important;
    border: 1px solid rgba(167, 139, 250, 0.3) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
}

.compare-direction-icon {
    margin-top: 18px;
    color: #a78bfa;
    font-size: 1.1rem;
}

.compare-tabs-and-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.version-view-tabs {
    display: flex;
    background: rgba(10, 5, 20, 0.7);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.version-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.version-tab-btn.active {
    background: rgba(167, 139, 250, 0.25);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Bannière Auteur */
.version-author-banner {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(25, 12, 48, 0.3);
}

.author-banner-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.author-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-banner-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-banner-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-banner-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.author-banner-badge {
    background: rgba(167, 139, 250, 0.18);
    color: #c4b5fd;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.version-banner-vtag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.version-banner-livetag {
    font-size: 0.72rem;
    font-weight: 600;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 4px;
}

.author-banner-date-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.author-banner-note {
    color: #e2e8f0;
}

.author-banner-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.diff-stat-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.diff-stat-added {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.diff-stat-deleted {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.diff-stat-modified {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.diff-stat-equal {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

/* Zone de contenu Diff & Preview */
.version-content-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.diff-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.diff-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.diff-identical-notice {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Code Diff Lines */
.diff-code-wrapper {
    background: rgba(10, 5, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 8px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    overflow-x: auto;
}

.diff-line {
    display: flex;
    align-items: flex-start;
    padding: 2px 10px;
    min-height: 22px;
}

.diff-line-num {
    width: 32px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.25);
    text-align: right;
    user-select: none;
    font-size: 0.75rem;
    padding-right: 8px;
}

.diff-sign {
    width: 16px;
    flex-shrink: 0;
    font-weight: 700;
    user-select: none;
    text-align: center;
}

.diff-text {
    flex: 1;
    white-space: pre-wrap;
    word-break: break-all;
}

.diff-line-unchanged {
    color: rgba(241, 245, 249, 0.7);
}

.diff-line-added {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
    border-left: 3px solid #22c55e;
}

.diff-line-added .diff-sign {
    color: #4ade80;
}

.diff-line-deleted {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border-left: 3px solid #ef4444;
    text-decoration: line-through;
}

.diff-line-deleted .diff-sign {
    color: #f87171;
}

/* Grille de Diff EDT */
.edt-diff-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edt-diff-card {
    background: rgba(20, 12, 38, 0.7);
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.edt-diff-card.card-added {
    border-left: 4px solid #22c55e;
    background: rgba(34, 197, 94, 0.06);
}

.edt-diff-card.card-deleted {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.06);
}

.edt-diff-card.card-modified {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.06);
}

.edt-diff-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.edt-diff-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-added { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.tag-deleted { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.tag-modified { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }

.edt-diff-slot {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.edt-diff-course {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #ffffff;
}

.edt-diff-course.strike {
    text-decoration: line-through;
    color: #94a3b8;
}

.edt-diff-details {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

.edt-diff-details.strike {
    text-decoration: line-through;
    color: #64748b;
}

.edt-diff-compare-inline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.edt-diff-before, .edt-diff-after {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.diff-sublabel {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.diff-arrow {
    color: #f59e0b;
    font-size: 1.2rem;
}

.text-highlight {
    color: #fcd34d !important;
}

/* Aperçu Visuel */
.version-preview-box {
    background: rgba(12, 7, 24, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.version-preview-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-badge {
    font-size: 0.8rem;
    color: #a78bfa;
    display: flex;
    align-items: center;
    gap: 6px;
}

.edt-preview-table-wrapper {
    overflow-x: auto;
}

.edt-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.edt-preview-table th, .edt-preview-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.edt-preview-table th {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.edt-class-tag {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Footer Modal */
.version-modal-footer {
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.version-footer-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.version-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.version-placeholder.error {
    color: #f87171;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .version-modal-body {
        flex-direction: column;
    }
    .version-sidebar {
        width: 100%;
        height: 220px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .compare-selectors {
        flex-direction: column;
        align-items: stretch;
    }
    .compare-direction-icon {
        display: none;
    }
}

/* ==========================================================================
   EVENFALL — SYSTÈME DE TRANSCRIPTIONS DE TICKETS (INTERFACE DISCORD)
   ========================================================================== */

/* 1. Layout & Toolbar */
.transcript-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Onglets de filtrage Staff */
.transcript-tabs-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: rgba(16, 7, 32, 0.6);
    padding: 0.4rem;
    border-radius: 10px;
    border: 1px solid rgba(199, 125, 255, 0.2);
    width: fit-content;
}

.transcript-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.transcript-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.transcript-tab-btn.active {
    background: rgba(155, 93, 229, 0.25);
    color: #e2e8f0;
    border-color: rgba(155, 93, 229, 0.5);
    box-shadow: 0 2px 8px rgba(155, 93, 229, 0.2);
}

.transcript-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(36, 0, 70, 0.35);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.transcript-toolbar.admin-toolbar {
    background: rgba(20, 5, 40, 0.5);
    border-color: rgba(155, 93, 229, 0.3);
}

.transcript-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.transcript-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.transcript-search-box input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.6rem;
    background: rgba(9, 1, 17, 0.6);
    border: 1px solid rgba(199, 125, 255, 0.25);
    border-radius: 8px;
    color: #fff;
    font-size: 0.92rem;
    transition: var(--transition);
    outline: none;
}

.transcript-search-box input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(155, 93, 229, 0.3);
}

.transcript-filter-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.transcript-filter-group select {
    background: rgba(9, 1, 17, 0.6);
    border: 1px solid rgba(199, 125, 255, 0.25);
    color: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.transcript-filter-group select:focus {
    border-color: var(--accent-blue);
}

/* 2. Stats Chips Row (Admin) */
.transcript-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.transcript-stat-chip {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(36, 0, 70, 0.4);
    border: 1px solid rgba(199, 125, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.transcript-stat-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(199, 125, 255, 0.4);
    box-shadow: 0 6px 20px rgba(155, 93, 229, 0.15);
}

.transcript-stat-chip i {
    font-size: 2.2rem;
    padding: 0.75rem;
    border-radius: 10px;
}

.transcript-stat-chip i.icon-total {
    color: #c77dff;
    background: rgba(199, 125, 255, 0.12);
}

.transcript-stat-chip i.icon-msgs {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
}

.transcript-stat-chip i.icon-today {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
}

.transcript-stat-chip .stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.transcript-stat-chip .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. Loading & Empty States */
.transcript-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.transcript-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: rgba(36, 0, 70, 0.2);
    border: 1px dashed rgba(199, 125, 255, 0.25);
    border-radius: 14px;
    gap: 0.85rem;
}

.transcript-empty-state i {
    font-size: 3rem;
    color: var(--accent-blue);
    opacity: 0.7;
}

.transcript-empty-state h3 {
    font-size: 1.25rem;
    color: #fff;
}

.transcript-empty-state p {
    color: var(--text-muted);
    max-width: 480px;
    font-size: 0.92rem;
}

/* 4. Grille des Cartes Joueur */
.transcripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.transcript-card {
    background: rgba(36, 0, 70, 0.35);
    border: 1px solid rgba(199, 125, 255, 0.2);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(10px);
}

.transcript-card:hover {
    transform: translateY(-4px);
    border-color: rgba(199, 125, 255, 0.5);
    box-shadow: 0 10px 28px rgba(155, 93, 229, 0.25);
    background: rgba(50, 0, 90, 0.45);
}

.transcript-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.transcript-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
}

.transcript-category-badge.small {
    padding: 2px 7px;
    font-size: 0.75rem;
}

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

.transcript-status-badge.closed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.transcript-card-title {
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.transcript-card-title i {
    color: var(--accent-blue);
}

.transcript-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.85rem;
}

.transcript-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.transcript-meta-item .label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.transcript-meta-item .val {
    color: #e2e8f0;
    font-weight: 500;
}

.transcript-meta-item .val.highlight {
    color: #a78bfa;
}

.transcript-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.transcript-msg-count {
    color: var(--text-muted);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 5. Tableau Admin des Transcriptions */
.transcript-table-wrapper {
    background: rgba(20, 5, 40, 0.4);
    border: 1px solid rgba(199, 125, 255, 0.2);
    border-radius: 12px;
    overflow-x: auto;
    backdrop-filter: blur(8px);
}

.transcript-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.transcript-admin-table thead th {
    background: rgba(36, 0, 70, 0.6);
    color: var(--accent-cyan);
    padding: 0.9rem 1rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(199, 125, 255, 0.25);
    white-space: nowrap;
}

.transcript-admin-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
    cursor: pointer;
}

.transcript-admin-table tbody tr:hover {
    background: rgba(90, 20, 150, 0.25);
}

.transcript-admin-table td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

.transcript-table-title {
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.transcript-table-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.transcript-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.transcript-table-user .pseudo {
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.transcript-table-user .id {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: monospace;
}

.transcript-staff-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #c4b5fd;
    font-size: 0.85rem;
}

.transcript-date-cell {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.transcript-badge-count {
    background: rgba(88, 101, 242, 0.2);
    color: #818cf8;
    border: 1px solid rgba(88, 101, 242, 0.35);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* 6. VISIONNEUSE DISCORD (Reproduction fidèle) */
.discord-viewer-root {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.discord-viewer-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(30, 31, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    backdrop-filter: blur(10px);
}

.discord-viewer-channel-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discord-viewer-channel-info .hash-icon {
    color: #80848e;
    font-size: 1.3rem;
}

.discord-viewer-channel-info .channel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f2f3f5;
}

.discord-viewer-quick-stats {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.discord-viewer-quick-stats .stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    color: #dbdee1;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.discord-viewer-quick-stats .stat-pill.closed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Conteneur principal du Chat Discord */
.discord-chat-container {
    background: #313338; /* Couleur native Discord dark */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* En-tête de début de salon (#ticket) */
.discord-channel-start {
    padding: 2rem 1.5rem 1rem 1.5rem;
}

.discord-channel-start-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #404249;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #f2f3f5;
    margin-bottom: 0.75rem;
}

.discord-channel-start h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f2f3f5;
    margin-bottom: 0.35rem;
}

.discord-channel-start p {
    color: #949ba4;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* Boîte de métadonnées du ticket */
.discord-ticket-meta-box {
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.discord-ticket-meta-box .box-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
}

.discord-ticket-meta-box .box-label {
    color: #949ba4;
    font-weight: 500;
}

.discord-ticket-meta-box .box-val {
    color: #f2f3f5;
    font-weight: 600;
}

.discord-ticket-meta-box .box-val.highlight {
    color: #c77dff;
}

.discord-ticket-meta-box .box-val code {
    background: #1e1f22;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
    color: #dbdee1;
}

/* Séparateur de date / historique */
.discord-date-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.discord-date-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #3f4147;
}

.discord-date-divider span {
    position: relative;
    background: #313338;
    padding: 0 12px;
    color: #949ba4;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Zone des messages */
.discord-messages-scroll {
    padding: 1rem 0 2rem 0;
    display: flex;
    flex-direction: column;
}

/* Message Discord */
.discord-message {
    display: flex;
    padding: 0.25rem 1.25rem 0.25rem 1.25rem;
    gap: 16px;
    transition: background 0.1s ease;
    border-radius: 4px;
    margin: 1px 0;
}

.discord-message:hover {
    background: #2e3035;
}

.discord-message.compact {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    margin-left: 0;
}

.discord-message.compact .discord-compact-time {
    width: 40px;
    min-width: 40px;
    font-size: 0.68rem;
    color: #949ba4;
    text-align: right;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.1s ease;
    user-select: none;
}

.discord-message.compact:hover .discord-compact-time {
    opacity: 1;
}

.discord-message-avatar-wrap {
    width: 40px;
    min-width: 40px;
}

.discord-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e1f22;
}

.discord-message-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discord-message-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.discord-pseudo {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f2f3f5;
    cursor: default;
}

.discord-bot-badge {
    background: #5865F2;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.2;
    vertical-align: middle;
}

.discord-timestamp {
    font-size: 0.72rem;
    color: #949ba4;
}

.discord-text {
    color: #dbdee1;
    font-size: 0.9375rem;
    line-height: 1.375rem;
    word-break: break-word;
}

/* Discord Markdown Elements */
.discord-mention {
    background: rgba(88, 101, 242, 0.3);
    color: #c9cdfb;
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 500;
    transition: background 0.1s ease;
}

.discord-mention:hover {
    background: #5865F2;
    color: #fff;
}

.discord-mention.role-mention {
    background: rgba(235, 69, 158, 0.25);
    color: #f472b6;
}

.discord-mention.channel-mention {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.discord-codeblock {
    background: #2b2d31;
    border: 1px solid #1e1f22;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 6px 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #dbdee1;
}

.discord-inline-code {
    background: #2b2d31;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85em;
    color: #dbdee1;
}

.discord-blockquote {
    border-left: 4px solid #4e5058;
    padding-left: 12px;
    margin: 4px 0;
    color: #949ba4;
}

.discord-link {
    color: #00a8fc;
    text-decoration: none;
}

.discord-link:hover {
    text-decoration: underline;
}

/* Embeds Discord */
.discord-embeds-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.discord-embed {
    background: #2b2d31;
    border-left: 4px solid #5865F2;
    border-radius: 4px;
    padding: 10px 14px;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.discord-embed-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f2f3f5;
}

.discord-embed-author-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.discord-embed-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #f2f3f5;
}

.discord-embed-desc {
    font-size: 0.88rem;
    color: #dbdee1;
    line-height: 1.35;
}

.discord-embed-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.discord-embed-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.discord-embed-field.inline {
    grid-column: span 1;
}

.discord-field-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #949ba4;
}

.discord-field-val {
    font-size: 0.85rem;
    color: #dbdee1;
    line-height: 1.3;
}

.discord-embed-image {
    margin-top: 6px;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
}

.discord-embed-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    display: block;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.discord-embed-image img:hover {
    transform: scale(1.01);
}

.discord-embed-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #949ba4;
    margin-top: 4px;
}

.discord-footer-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

/* Pièces Jointes Discord */
.discord-attachments-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.discord-attachment-img-box {
    position: relative;
    max-width: 420px;
    border-radius: 8px;
    overflow: hidden;
    background: #2b2d31;
    cursor: pointer;
}

.discord-attachment-img-box img {
    max-width: 100%;
    max-height: 350px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.15s ease;
}

.discord-attachment-img-box:hover img {
    opacity: 0.9;
}

.discord-attachment-img-box .zoom-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.discord-attachment-file-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    max-width: 360px;
}

.discord-attachment-file-box .file-icon {
    font-size: 2rem;
    color: var(--accent-blue);
}

.discord-attachment-file-box .file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.discord-attachment-file-box .file-name {
    color: #00a8fc;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-attachment-file-box .file-name:hover {
    text-decoration: underline;
}

.discord-attachment-file-box .file-size {
    color: #949ba4;
    font-size: 0.75rem;
}

.discord-attachment-file-box .btn-download {
    color: #949ba4;
    font-size: 1.25rem;
    padding: 6px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.discord-attachment-file-box .btn-download:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Barre de chat lecture seule */
.discord-chat-bar-readonly {
    background: #383a40;
    margin: 0 1.25rem 1.25rem 1.25rem;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #949ba4;
    font-size: 0.88rem;
    user-select: none;
}

.discord-chat-bar-readonly i {
    font-size: 1.15rem;
    color: #c77dff;
}

/* 7. Image Lightbox Modal */
.discord-lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.discord-lightbox-backdrop.active {
    display: flex;
    opacity: 1;
}

.discord-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.discord-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.discord-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.discord-lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
}

.discord-lightbox-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #dbdee1;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .transcript-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .transcript-search-box {
        min-width: 100%;
    }
    .transcript-filter-group {
        width: 100%;
    }
    .transcript-filter-group select {
        flex: 1;
    }
    .discord-ticket-meta-box {
        grid-template-columns: 1fr;
    }
    .discord-message {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ========================================================
   8. Système de Notation des Transcriptions (Note sur 5)
   ======================================================== */

.transcript-rating-box {
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin: 0 1.25rem 1.5rem 1.25rem;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.transcript-rating-box.rated {
    border-left: 4px solid #2ecc71;
    background: linear-gradient(180deg, #2b2d31 0%, #24262a 100%);
}

.transcript-rating-box.actionable {
    border-left: 4px solid #f1c40f;
    background: linear-gradient(180deg, #2d2e34 0%, #25272b 100%);
}

.transcript-rating-box.pending-guest {
    border-left: 4px solid #4e5058;
}

.transcript-rating-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 8px;
}

.transcript-rating-box-header .title-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f2f3f5;
}

.transcript-rating-box-header .title-with-icon i {
    font-size: 1.25rem;
}

.transcript-rating-badge-locked {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.35);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.transcript-rating-badge-pending {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.35);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.transcript-rating-badge-guest {
    background: rgba(148, 155, 164, 0.15);
    color: #949ba4;
    border: 1px solid rgba(148, 155, 164, 0.3);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rating-prompt-text {
    color: #dbdee1;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.rating-stars-interactive-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.rating-stars-row.static {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.rating-stars-row.static .rating-star {
    font-size: 1.85rem;
    color: #4e5058;
}

.rating-stars-row.static .rating-star.active {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
}

.rating-score-text {
    font-size: 1.45rem;
    font-weight: 800;
    color: #f2f3f5;
    margin-left: 10px;
}

.rating-stars-row.interactive {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-star-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 2.2rem;
    color: #4e5058;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1;
    transition: transform 0.15s ease, color 0.15s ease;
    outline: none;
}

.rating-star-btn:hover {
    transform: scale(1.22);
}

.rating-star-btn.active {
    color: #f1c40f;
    text-shadow: 0 0 14px rgba(241, 196, 15, 0.5);
}

.rating-score-caption {
    color: #949ba4;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.rating-score-caption.selected {
    color: #f1c40f;
    font-weight: 700;
}

.rating-comment-field {
    margin-bottom: 0.9rem;
}

.rating-comment-field input {
    width: 100%;
    background: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 14px;
    color: #f2f3f5;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rating-comment-field input:focus {
    outline: none;
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25);
}

.rating-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.rating-warning-note {
    color: #949ba4;
    font-size: 0.8rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 250px;
}

.rating-warning-note i {
    color: #f1c40f;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.rating-meta-info p {
    color: #949ba4;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.rating-comment-bubble {
    background: #1e1f22;
    border-left: 3px solid #f1c40f;
    padding: 8px 12px;
    border-radius: 4px;
    color: #dbdee1;
    font-size: 0.9rem;
    margin: 0.5rem 0 0.75rem 0;
}

.rating-comment-bubble i {
    color: #f1c40f;
    margin-right: 4px;
}

.rating-locked-notice {
    color: #2ecc71;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Badges de notation dans les cartes et tableaux */
.transcript-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.transcript-rating-badge.pending {
    background: rgba(148, 155, 164, 0.1);
    color: #949ba4;
    border: 1px solid rgba(148, 155, 164, 0.2);
    font-weight: 500;
}

.transcript-table-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #f1c40f;
}

.stat-pill.rating-pill {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.35);
    font-weight: 700;
}

/* ========================================================
   9. Page Dédiée Staff : Avis & Notes des Joueurs
   ======================================================== */

.review-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 4px solid #f1c40f;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.review-stars-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 12px 0;
}

.review-stars-header .stars-gold {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 1.35rem;
    color: #f1c40f;
}

.review-stars-header .stars-gold .star-empty {
    color: #4e5058;
}

.review-stars-header .stars-label {
    font-weight: 800;
    font-size: 1.05rem;
    color: #f2f3f5;
}

.review-date-badge {
    color: #949ba4;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.review-people-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #232428;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    gap: 10px;
}

.review-person {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.review-person .pseudo {
    font-weight: 600;
    font-size: 0.85rem;
    color: #f2f3f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-person .role-sub {
    color: #949ba4;
    font-size: 0.72rem;
    display: block;
}

.review-arrow-divider {
    color: #4e5058;
    font-size: 1rem;
    flex-shrink: 0;
}

.review-comment-card {
    background: #1e1f22;
    border-left: 3px solid #f1c40f;
    border-radius: 6px;
    padding: 10px 12px;
    color: #dbdee1;
    font-size: 0.88rem;
    line-height: 1.45;
    display: flex;
    gap: 8px;
    margin-top: 4px;
    min-height: 48px;
}

.review-comment-card i {
    color: #f1c40f;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.review-comment-card.empty {
    border-left-color: #4e5058;
    color: #949ba4;
    font-style: italic;
    font-size: 0.82rem;
    align-items: center;
}



