/* DEBUT : artiste-suivi/artiste-suivi.css */
/* ========== ARTISTE-SUIVI.CSS ========== */
/* ========== DÉBUT : VARIABLES ET RESET ========== */
:root {
    --primary: #4B0082;
    --primary-light: #7B2FBE;
    --primary-dark: #2E004F;
    --gold: #FFCC00;
    --gold-dark: #e6b800;
    --bg-light: #F0F8FF;
    --white: #ffffff;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 40px rgba(75,0,130,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ========== FIN : VARIABLES ET RESET ========== */

/* ========== DÉBUT : NAVBAR ========== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--light-gray);
}

.logo-link { display: inline-block; }
.logo-nav { height: 50px; transition: var(--transition); }
.logo-nav:hover { opacity: 0.8; transform: scale(1.02); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.lang-picker {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--light-gray);
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}
.lang-picker:hover { border-color: var(--gold); }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.btn-auth {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    transition: var(--transition);
}
.btn-auth:hover { background: var(--primary); color: white; }
.btn-auth.gold { background: var(--gold); color: black; border: none; }
.btn-auth.gold:hover { background: var(--gold-dark); }
/* ========== FIN : NAVBAR ========== */

/* ========== DÉBUT : CONTENU PRINCIPAL ========== */
.suivi-main { min-height: 70vh; padding: 60px 5%; }
.suivi-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow);
}
.page-title {
    font-size: 2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 10px;
}
.page-title i { color: var(--gold); margin-right: 10px; }
.page-subtitle { text-align: center; color: var(--gray); margin-bottom: 30px; }

.search-box { display: flex; gap: 15px; margin-bottom: 40px; }
.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-size: 1rem;
    font-family: monospace;
    transition: var(--transition);
}
.search-box input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(75,0,130,0.1); }
.btn-check {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-check:hover { background: var(--primary-light); transform: translateY(-2px); }

.result-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 30px;
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.status-badge.en_attente { background: var(--warning); color: #856404; }
.status-badge.valide_public { background: var(--success); color: white; }
.status-badge.rejete { background: var(--danger); color: white; }
.status-badge.bloque { background: var(--gray); color: white; }
.status-badge.supprime { background: #444; color: white; }
.status-badge.test_ecrit { background: var(--info); color: white; }

.result-card h2 { color: var(--primary); margin-bottom: 20px; font-size: 1.5rem; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.info-item {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.info-item strong {
    color: var(--primary);
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.info-item span, .info-item a { color: var(--dark); font-weight: 500; word-break: break-word; text-decoration: none; }
.info-item a:hover { color: var(--primary); text-decoration: underline; }

.artist-data { background: white; border-radius: 12px; padding: 20px; margin-top: 20px; }
.artist-data h3 { color: var(--primary); margin-bottom: 15px; }
.artist-data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }

.admin-notes {
    background: #fff9eb;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid var(--gold);
    font-size: 0.9rem;
}

.exam-section, .test-pratique-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}
.exam-section h3, .test-pratique-section h3 { color: var(--primary); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }

/* Messagerie */
.messages-section { margin-top: 30px; border-top: 1px solid var(--light-gray); padding-top: 20px; }
.messages-section h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.messages-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid var(--light-gray);
}
.message { display: flex; margin-bottom: 15px; }
.message.admin { justify-content: flex-start; }
.message.candidate { justify-content: flex-end; }
.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    word-break: break-word;
}
.message.admin .message-bubble { background: var(--primary); color: white; border-bottom-left-radius: 5px; }
.message.candidate .message-bubble { background: #e9ecef; color: var(--dark); border-bottom-right-radius: 5px; }
.message-time { font-size: 0.7rem; margin-top: 5px; text-align: right; opacity: 0.7; }

.message-compose { margin-top: 15px; }
#replyEditor { background: white; border-radius: 12px; margin-bottom: 10px; }
.ql-toolbar { border-radius: 12px 12px 0 0; background: white; }
.ql-container { border-radius: 0 0 12px 12px; background: white; font-family: 'Poppins', sans-serif; font-size: 0.9rem; }
.btn-send {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-send:hover { background: var(--primary-light); transform: translateY(-2px); }

.contact-support { text-align: center; margin-top: 20px; font-size: 0.9rem; }
.contact-support a { color: var(--primary); font-weight: 600; text-decoration: none; }
.contact-support a:hover { text-decoration: underline; }
/* ========== FIN : CONTENU PRINCIPAL ========== */

/* ========== DÉBUT : TOASTS ========== */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: white;
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid;
    animation: slideIn 0.3s forwards;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--primary); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon { font-size: 1.2rem; }
.toast-content { flex: 1; font-size: 0.9rem; color: var(--dark); }
.toast-close { background: none; border: none; color: var(--gray); cursor: pointer; font-size: 1rem; }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* ========== FIN : TOASTS ========== */

/* ========== DÉBUT : FOOTER ========== */
footer {
    background: #0a0a0a;
    color: white;
    padding: 40px 5% 20px;
    text-align: center;
    margin-top: 40px;
}
.compliance-badges { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.badge-item {
    background: rgba(255,255,255,0.05);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: var(--gold);
    border: 1px solid rgba(255,204,0,0.3);
}
.contact-box { margin-bottom: 20px; }
.contact-item { color: var(--gold); text-decoration: none; margin: 0 15px; font-weight: 500; transition: var(--transition); }
.contact-item:hover { color: white; }
.legal p { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin: 5px 0; }
/* ========== FIN : FOOTER ========== */

/* ========== DÉBUT : RESPONSIVE ========== */
@media (max-width: 1008px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 5%;
        background: var(--white);
        padding: 25px;
        border-radius: 15px;
        width: 90%;
        max-width: 300px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        border: 1px solid var(--light-gray);
        z-index: 999;
        gap: 15px;
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 0; text-align: center; font-size: 1.1rem; }
    .btn-auth { text-align: center; }
    .suivi-container { padding: 25px; }
    .search-box { flex-direction: column; }
    .btn-check { width: 100%; justify-content: center; }
    .info-grid { grid-template-columns: 1fr; }
    .message-bubble { max-width: 85%; }
}

@media (max-width: 600px) {
    .suivi-container { padding: 20px; }
    .page-title { font-size: 1.6rem; }
    .result-card { padding: 20px; }
}

@media (max-width: 400px) {
    nav { padding: 15px 4%; }
    .logo-nav { height: 40px; }
    .suivi-main { padding: 20px 15px; }
    .search-box input { font-size: 0.9rem; }
}
/* ========== FIN : RESPONSIVE ========== */
/* ========== FIN DE ARTISTE-SUIVI.CSS ========== */
/* FIN : artiste-suivi/artiste-suivi.css */