:root {
    --primary: #007AFF;
    --primary-dark: #0056b3;
    --bg: #F5F7FA;
    --card-bg: #FFFFFF;
    --text: #333;
    --border: #E1E4E8;
    --success: #28a745;
    --danger: #dc3545;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

/* --- UTILS --- */
.hidden { display: none !important; }
.full-width { width: 100%; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid #ccc; padding: 8px 16px; border-radius: 6px; cursor: pointer; }
.btn-success { background: var(--success); color: white; border: none; padding: 10px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; }
.btn-danger { background: var(--danger); color: white; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }
.loading { text-align: center; color: #888; padding: 20px; }

/* --- LOGIN --- */
.login-container { height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.login-card { background: white; padding: 40px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 100%; max-width: 400px; text-align: center; }
.login-card h2 { margin-bottom: 5px; }
.error-msg { color: var(--danger); display: none; margin-top: 10px; font-size: 0.9rem; }

/* --- DASHBOARD LAYOUT --- */
.top-bar { background: white; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.brand h1 { margin: 0; font-size: 1.2rem; display: inline-block; }
.badge-pro { background: #eef2ff; color: var(--primary); padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; margin-left: 10px; vertical-align: middle; }
.main-content { max-width: 1400px; margin: 30px auto; padding: 0 20px; }

/* --- TABS --- */
.tabs-nav { margin-bottom: 20px; display: flex; gap: 15px; }
.tab-btn { background: white; border: 1px solid var(--border); padding: 12px 24px; border-radius: 50px; cursor: pointer; font-size: 1rem; color: #666; transition: 0.2s; }
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 10px rgba(0,122,255,0.2); }

/* --- TEXTS EDITOR --- */
.header-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sticky-save { position: sticky; top: 20px; z-index: 100; box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3); }

/* Séparateur de catégorie */
.category-divider {
    grid-column: 1 / -1;
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 5px;
}
.category-divider h3 {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0;
}

/* Grille Traductions */
.translations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }
.translation-card { background: white; padding: 20px; border-radius: 12px; border: 1px solid var(--border); }
.translation-card label { display: block; font-weight: bold; margin-bottom: 10px; color: #444; font-family: monospace; background: #eee; padding: 4px 8px; border-radius: 4px; width: fit-content; }
.lang-input { position: relative; margin-bottom: 10px; }
.lang-input span { position: absolute; top: 8px; right: 8px; font-size: 0.7rem; color: #999; text-transform: uppercase; font-weight: bold; pointer-events: none; }
.translation-card textarea { width: 100%; height: 60px; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; resize: vertical; box-sizing: border-box; }
.translation-card textarea:focus { border-color: var(--primary); outline: none; background: #f9fcff; }

/* --- PROJECTS --- */
.projects-layout {
    display: grid;
    /* Ratio ajusté : Gauche plus large (1.5fr) */
    grid-template-columns: 1.5fr 1fr; 
    gap: 20px;
    align-items: start;
}

.card {
    background: white; 
    padding: 20px; /* Marges réduites */
    border-radius: 12px; 
    border: 1px solid var(--border); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

/* Formulaire */
.input-group { margin-bottom: 15px; }
.input-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; color: #555; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; box-sizing: border-box; }
.input-group textarea { height: 80px; resize: vertical; }
.highlight-group { background: #f0f7ff; padding: 15px; border-radius: 8px; border: 1px dashed #007AFF; } /* Mise en avant de l'upload */

.form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }

/* Liste Projets */
.projects-stack { display: flex; flex-direction: column; gap: 10px; }
.project-card-admin { display: flex; gap: 15px; background: white; border: 1px solid var(--border); padding: 10px; border-radius: 10px; align-items: center; transition: 0.2s; }
.project-card-admin:hover { border-color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.project-thumb { width: 70px; height: 50px; border-radius: 6px; object-fit: cover; background: #eee; }
.project-info { flex: 1; }
.project-info h4 { margin: 0 0 5px 0; font-size: 0.95rem; display: flex; align-items: center; }
.meta { font-size: 0.8rem; color: #666; }

/* --- STATUS LIGHTS (NÉONS) --- */
.status-light {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

/* En cours (Orange néon) */
.status-light.progress {
    background-color: #ff9800;
    box-shadow: 0 0 6px #ff9800;
}

/* Terminé (Vert néon) */
.status-light.finished {
    background-color: #00e676;
    box-shadow: 0 0 6px #00e676;
}

/* Responsive */
@media (max-width: 900px) {
    .projects-layout { grid-template-columns: 1fr; }
    .translations-grid { grid-template-columns: 1fr; }
}