/* =========================================
   CARRIERES.CSS - THIER NETWORK
   ========================================= */

/* Conteneur principal */
.network-container { max-width: 1000px; margin: 0 auto; padding: 20px; color: white; }

/* Onglets de navigation (Offres / Talents) */
.network-tabs { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.net-tab { 
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); 
    padding: 12px 25px; color: #aaa; border-radius: 30px; cursor: pointer; 
    transition: 0.3s; font-weight: 600; font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem;
}
.net-tab:hover { background: rgba(255,255,255,0.1); color: white; }
.net-tab.active { 
    background: linear-gradient(135deg, #8b5cf6, #00c6ff); 
    border-color: #8b5cf6; color: white; box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); 
}

/* Grille et Cartes de publications */
.marche-grid { display: flex; flex-direction: column; gap: 20px; }

.job-card { 
    background: rgba(20, 20, 25, 0.8); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05); border-left: 4px solid #8b5cf6;
    border-radius: 15px; padding: 25px; transition: transform 0.3s, box-shadow 0.3s; 
    position: relative;
}
.job-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.job-card.talent-card { border-left: 4px solid #00c6ff; } /* Différenciation visuelle */

/* En-tête de la carte */
.job-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.job-author-info { display: flex; align-items: center; gap: 15px; }
.job-avatar { 
    width: 45px; height: 45px; border-radius: 50%; 
    background: linear-gradient(135deg, #8b5cf6, #00c6ff); 
    display: flex; align-items: center; justify-content: center; 
    color: white; font-weight: bold; font-size: 1.2rem; 
}
.job-author-name { color: #fff; font-weight: bold; cursor: pointer; transition: 0.3s; font-size: 1.1rem; }
.job-author-name:hover { color: #8b5cf6; }
.job-date { color: #888; font-size: 0.8rem; margin-top: 3px; }

/* Contenu de l'offre/CV */
.job-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; color: white; margin: 10px 0; }
.job-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.job-badge { 
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); 
    padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; color: #ddd; 
    display: flex; align-items: center; gap: 6px;
}
.badge-contract { color: #ffd700; border-color: rgba(255, 215, 0, 0.3); background: rgba(255, 215, 0, 0.05); }
.badge-location { color: #00e676; border-color: rgba(0, 230, 118, 0.3); background: rgba(0, 230, 118, 0.05); }

.job-desc { color: #ccc; line-height: 1.6; margin-bottom: 20px; white-space: pre-wrap; font-size: 0.95rem;}

/* Document joint (CV ou Plaquette) */
.job-document { 
    display: inline-flex; align-items: center; gap: 10px; 
    background: rgba(0, 198, 255, 0.1); border: 1px solid rgba(0, 198, 255, 0.3); 
    color: #00c6ff; padding: 10px 20px; border-radius: 10px; 
    text-decoration: none; font-weight: bold; transition: 0.3s; margin-bottom: 20px;
}
.job-document:hover { background: rgba(0, 198, 255, 0.2); transform: translateX(5px); }

/* Actions (Like, Commentaire) */
.job-actions-bar { 
    display: flex; gap: 20px; padding-top: 15px; 
    border-top: 1px solid rgba(255,255,255,0.05); flex-wrap: wrap;
}
.job-action-btn { 
    background: transparent; border: none; color: #aaa; cursor: pointer; 
    display: flex; align-items: center; gap: 6px; transition: 0.3s; font-size: 0.95rem;
}
.job-action-btn:hover { color: white; }
.job-action-btn.liked { color: #ff0055; }

/* Section Commentaires */
.job-comments-section { display: none; margin-top: 20px; background: rgba(0,0,0,0.2); padding: 15px; border-radius: 10px; }
.job-comment-list { margin-bottom: 15px; max-height: 200px; overflow-y: auto; }
.job-comment-item { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.job-comment-author { color: #8b5cf6; font-weight: bold; font-size: 0.9rem; margin-right: 10px; }
.job-comment-text { color: #ccc; font-size: 0.95rem; }
.job-comment-input-area { display: flex; gap: 10px; }
.job-comment-input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 10px; border-radius: 8px; outline: none; }
.job-comment-send { background: #8b5cf6; color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: bold; }

/* Boutons de modération (Admin / Auteur) */
.job-admin-actions { display: flex; gap: 10px; margin-top: 15px; justify-content: flex-end; }
.job-mod-btn { background: transparent; border: none; cursor: pointer; font-size: 1.1rem; transition: 0.3s; }
.job-mod-btn.edit { color: #00c6ff; }
.job-mod-btn.delete { color: #ff4d4d; }
.job-mod-btn:hover { transform: scale(1.1); filter: brightness(1.2); }

/* Autocomplete pour la localisation mondiale */
.autocomplete-list {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(30, 30, 40, 0.95); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    margin-top: 5px; z-index: 50000; list-style: none; padding: 0;
    max-height: 200px; overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.autocomplete-list li { padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; color: white; font-size: 0.9rem; }
.autocomplete-list li:hover { background: rgba(255,255,255,0.1); color: #00c6ff; }