/* ========== SCOUTING.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 OFFICIELLE ========== */
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%; }
.nav-links a.active { color: var(--gold); }

.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 OFFICIELLE ========== */

/* ========== DÉBUT : HEADER ========== */
.scouting-header {
    text-align: center;
    padding: 100px 20px;
    color: white;
    background-size: cover;
    background-position: center;
}
.scouting-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.scouting-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
/* ========== FIN : HEADER ========== */

/* ========== DÉBUT : SECTION FILTRES ========== */
.filters-section {
    background: var(--white);
    padding: 25px 5%;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
    z-index: 500;
}
.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.filters-container select {
    flex: 1;
    min-width: 180px;
    padding: 12px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
}
.filters-container select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(75,0,130,0.1);
}
/* ========== FIN : SECTION FILTRES ========== */

/* ========== DÉBUT : GALERIE ========== */
main { padding: 40px 5%; max-width: 1400px; margin: 0 auto; }

.talents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.talent-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.talent-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.talent-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--primary-dark);
}
.talent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.talent-card:hover .talent-image img { transform: scale(1.05); }

.talent-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.talent-info h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}
.talent-poste {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.talent-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--gray);
}
.talent-details span { display: flex; align-items: center; gap: 5px; }
.talent-details i { color: var(--gold); }

.btn-view-profile {
    display: inline-block;
    margin-top: auto;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    font-size: 0.9rem;
}
.btn-view-profile:hover { background: var(--primary-light); transform: translateY(-2px); }

.loading-placeholder, .no-talents, .error-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}
/* ========== FIN : GALERIE ========== */

/* ========== 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);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.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 : TOASTS ========== */
.toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.toast {
    background: white;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 6px solid;
    animation: slideIn 0.3s forwards;
    min-width: 280px;
}
.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-content { flex: 1; font-weight: 500; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--gray); font-size: 1.4rem; line-height: 1; }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* ========== FIN : TOASTS ========== */

/* ========== 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; }
    .filters-section { top: 80px; }
    .filters-container { flex-direction: column; }
    .filters-container select { width: 100%; }
    .talents-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 600px) {
    .scouting-header { padding: 60px 20px; }
    .scouting-header h1 { font-size: 2rem; }
    .talents-grid { grid-template-columns: 1fr; }
    .talent-image { height: 220px; }
}
/* ========== FIN : RESPONSIVE ========== */
/* ========== FIN DE SCOUTING.CSS ========== */