@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ================= GLOBAL ================= */
body {
    background: #0f0f0f;
    color: #e6e6e6;
    min-height: 100vh;
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 220px;
    background: #111;
    border-right: 1px solid #2c2c2c;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
}

.sidebar h2 {
    color: #dcdcdc;
    margin-bottom: 40px;
    font-weight: 600;
}

.sidebar a {
    display: block;
    color: #cfcfcf;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.sidebar a:hover {
    background: #1c1c1c;
    color: #ffffff;
}

/* ================= MAIN ================= */
.main {
    margin-left: 220px;
    padding: 40px;
}

h1 {
    color: #dcdcdc;
    margin-bottom: 30px;
    font-weight: 600;
}

/* ================= STATS ================= */
.stats-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 200px;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.08);
}

.stat-box h3 {
    font-size: 28px;
    color: #ffffff;
}

/* ================= DASHBOARD BADGES ================= */

.clickable {
    cursor: pointer;
}

.badge {
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: none;
}

.badge-active {
    display: inline-block;
    background: #ff2c2c;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* ================= ACTUALITÉS ================= */
.actu-section {
    margin-top: 60px;
}

.actu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.actu-card {
    background: #1a1a1a;
    border: 1px solid #2c2c2c;
    border-radius: 15px;
    padding: 15px;
    transition: 0.3s;
}

.actu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.12);
}

.actu-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.actu-card iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    border: none;
}

/* ================= LOGIN ================= */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    width: 400px;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 0 50px rgba(255,255,255,0.05);
}

/* ================= FORM ================= */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #cfcfcf;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #2c2c2c;
    background: #1a1a1a;
    color: white;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #555;
    outline: none;
}

/* ================= CONTRACT PAGE ================= */
.contract-body {
    background: radial-gradient(circle at center, #0f0f0f 0%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.contract-container {
    width: 100%;
    max-width: 520px;
}

.contract-form {
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 0 60px rgba(255,255,255,0.05);
}

.contract-title {
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 35px;
}

/* ================= EMPLOYEE LIST ================= */
.employee-list {
    margin-top: 60px;
}

.employee-card {
    background: #1a1a1a;
    border: 1px solid #2c2c2c;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

/* ================= BUTTONS ================= */

.modern-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-btn:hover {
    border-color: silver;
    box-shadow: 0 0 15px rgba(192,192,192,0.3);
    transform: translateY(-3px);
}

.modern-btn:active {
    transform: scale(0.97);
}

.modern-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.modern-btn:hover::before {
    left: 100%;
}

/* Edit */
.edit-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(180,180,180,0.3);
    background: linear-gradient(135deg, #1a1a1a, #141414);
    color: #dcdcdc;
    cursor: pointer;
    transition: 0.3s;
}

.edit-btn:hover {
    border-color: silver;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(192,192,192,0.3);
}

/* Delete */
.delete-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,77,77,0.3);
    background: linear-gradient(135deg, #1a0000, #120000);
    color: #ff4d4d;
    cursor: pointer;
    transition: 0.3s;
}

.delete-btn:hover {
    border-color: #ff4d4d;
    box-shadow: 0 0 10px rgba(255,0,0,0.4);
}

/* ================= FOOTER ================= */
.footer {
    position: fixed;
    bottom: 10px;
    left: calc(50% + 110px);
    transform: translateX(-50%);
    font-size: 13px;
    color: #666;
}
/* ================= SIDEBAR LOGO ================= */

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dcdcdc;
    margin-bottom: 40px;
    font-weight: 600;
    font-size: 20px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* ================= SIDEBAR LOGOUT FIX ================= */

.sidebar-logout {
    width: 100%;
    padding: 12px 15px;
    margin-top: 20px;

    border-radius: 10px;
    border: 1px solid #2c2c2c;

    background: linear-gradient(145deg, #1a1a1a, #111);
    color: #e6e6e6;

    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 14px;

    cursor: pointer;
    transition: all 0.3s ease;

    display: block;
}

/* Hover */
.sidebar-logout:hover {
    border-color: silver;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(192,192,192,0.3);
    transform: translateY(-2px);
}

/* Click */
.sidebar-logout:active {
    transform: scale(0.97);
}

/* Centrage bouton actu */

.actu-btn-container {
    display: flex;
    justify-content: center;
}

/* Enlever soulignement lien bouton */

.actu-btn-container a {
    text-decoration: none;
}

.actu-btn-container {
    display: flex;
    justify-content: center;
}

.modern-btn {
    text-decoration: none;
}
 /* ================= TOP RAPPEUR DE LA SEMAINE ================= */

.ranking-section {
    margin-top: 70px;
}

.ranking-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: 1px;
}

.ranking-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* Card générale */

.ranking-card {
    background: #1a1a1a;
    border: 1px solid #2c2c2c;
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ranking-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(255,255,255,0.08);
}

/* Numéro classement */

.rank-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Nom rappeur */

.ranking-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Score / Votes */

.ranking-score {
    font-size: 14px;
    color: #aaa;
}

/* ================= PODIUM EFFECT ================= */

.first {
    border: 1px solid gold;
    box-shadow: 0 0 20px rgba(255,215,0,0.15);
}

.first .rank-number {
    color: gold;
}

.second {
    border: 1px solid silver;
    box-shadow: 0 0 20px rgba(192,192,192,0.15);
}

.second .rank-number {
    color: silver;
}

.third {
    border: 1px solid #cd7f32;
    box-shadow: 0 0 20px rgba(205,127,50,0.15);
}

.third .rank-number {
    color: #cd7f32;
}

.back-arrow {
    position: absolute;
    top: 25px;
    left: 25px;
    background: #151515;
    color: #00ff99;
    border: 1px solid #00ff99;
    border-radius: 50px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-arrow:hover {
    background: #00ff99;
    color: #0f0f0f;
    transform: translateX(-4px);
}
