/**
 * ╔══════════════════════════════════════════════════════════════════╗
 * ║  MiyabiCorp - Styles Page Profil                                 ║
 * ║  Author: Nova | Lysandre PB                                      ║
 * ║  Created: 29-11-2025 | Last Modified: 09-01-2026                 ║
 * ║  Description: Styles de la page profil avec carte agent          ║
 * ╚══════════════════════════════════════════════════════════════════╝
 */

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ═══════════════════════════════════════════════════════════════════ */
.profile-wrapper {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
}

/* --- Sidebar: Carte Agent --- */
.agent-card {
    background: var(--dark-blue);
    border: 1px solid var(--primary-blue);
    padding: 10px;
    position: sticky;
    top: 100px;
    height: fit-content;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}
    
.card-visual {
    position: relative;
    border-bottom: 2px solid var(--primary-blue);
    margin-bottom: 20px;
    overflow: hidden;
}

.agent-img { width: 100%; display: block; filter: contrast(1.1) grayscale(20%); transition: 0.5s; }
.agent-card:hover .agent-img { filter: contrast(1) grayscale(0%); }

.rank-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--primary-blue); color: #000;
    font-weight: 900; padding: 5px 10px;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    font-family: 'Orbitron', sans-serif;
}

.card-data { text-align: center; padding: 10px; }

.agent-name { font-family: 'Orbitron'; font-size: 1.8rem; text-transform: uppercase; margin-bottom: 5px; }
.agent-role { color: var(--ice-blue); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 20px; }

.mini-stats {
    display: flex; justify-content: space-around; margin-bottom: 25px;
    border-top: 1px dashed #333; border-bottom: 1px dashed #333; padding: 15px 0;
}
.stat { display: flex; flex-direction: column; }
.val { font-size: 1.2rem; font-weight: 700; color: var(--primary-blue); }
.label { font-size: 0.7rem; color: var(--text-faint); }

.btn-download {
    display: block; width: 100%; padding: 12px;
    background: transparent; border: 1px solid var(--ice-blue);
    color: var(--ice-blue); text-decoration: none; font-weight: 700;
    transition: 0.3s; text-transform: uppercase;
}
.btn-download:hover { background: var(--ice-blue); color: #000; box-shadow: 0 0 15px var(--ice-blue); }

/* --- Contenu : Détails --- */
.detail-block { 
    margin-bottom: 50px; 
    opacity: 0;
    animation: slideIn 0.8s ease-out forwards;
}

.block-title {
    font-family: 'Orbitron'; color: var(--primary-blue);
    border-left: 4px solid var(--primary-blue); padding-left: 15px;
    margin-bottom: 20px; font-size: 1.5rem;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), transparent);
}

.bio-text { line-height: 1.8; color: var(--text-muted); font-size: 1.1rem; }

/* Hex Grid pour Compétences */
.hex-grid {
    display: flex; flex-wrap: wrap; gap: 15px;
}

.hex-item {
    width: 90px; height: 90px;
    background: var(--accent-dark);
    border-radius: 8px;
    display: flex; 
    flex-direction: column;
    align-items: center; justify-content: center;
    color: #fff; font-weight: 700;
    border: 1px solid var(--border-subtle);
    transition: 0.3s; cursor: default;
    font-size: 0.8rem;
    gap: 5px;
}

.hex-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
    color: var(--primary-blue);
}

.hex-item:hover, .hex-item.active {
    color: var(--primary-blue);
    background: #0f172a;
}
.hex-item:hover i {
    color: #fff;
    transform: scale(1.2);
    transition: 0.3s;
}
/* Timeline (Historique) */
.timeline { position: relative; border-left: 2px solid var(--border-subtle); margin-left: 20px; }

.timeline-item {
    margin-bottom: 30px; position: relative; padding-left: 30px;
}

.time-marker {
    position: absolute; left: -6px; top: 5px;
    width: 10px; height: 10px; background: var(--bg-dark);
    border: 2px solid var(--primary-blue); border-radius: 50%;
    transition: 0.3s;
}
.timeline-item:hover .time-marker { background: var(--primary-blue); box-shadow: 0 0 10px var(--primary-blue); }

.time-content {
    background: rgba(255, 255, 255, 0.03); padding: 15px;
    border: 1px solid transparent; transition: 0.3s;
}
.timeline-item:hover .time-content { border-color: rgba(0, 240, 255, 0.3); background: rgba(0, 240, 255, 0.05); }

.time-content .date { color: var(--ice-blue); font-size: 0.8rem; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.time-content h3 { font-size: 1.1rem; margin-bottom: 5px; }
.time-content p { color: var(--text-dim); font-size: 0.9rem; }

/* --- Decorations --- */
.bg-decoration { position: fixed; z-index: -1; pointer-events: none; }
.circle-1 {
    width: 400px; height: 400px; border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 50%; top: 20%; right: -100px;
}

/* --- Réseaux Sociaux (Agent Card) --- */

.social-section {
    margin-top: 25px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    text-align: center;
}

.social-label {
    font-size: 0.75rem;
    color: var(--text-faint);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    clip-path: none;
    width: auto;
}

.social-link i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    transition: 0.3s;
    color: var(--ice-blue);
}

.social-link span {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-link:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.social-link:hover i {
    transform: scale(1.1);
    color: #fff;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: var(--text-faint);
    border-top: 1px solid var(--border-subtle);
}

/* Responsive */
@media (max-width: 900px) {
    .profile-wrapper { grid-template-columns: 1fr; }
    .agent-card { position: static; margin-bottom: 40px; }
    .hex-grid { justify-content: center; }
}

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL SYSTEM
   ═══════════════════════════════════════════════════════════════════ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid var(--primary-blue);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    position: relative;
    backdrop-filter: blur(5px);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.modal-header i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.modal-header h2 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1.2rem;
}

.modal-desc {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.btn-cancel, .btn-submit {
    flex: 1;
    padding: 12px;
    border: 1px solid #444;
    color: #fff;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: 0.3s;
    background: transparent;
}

.btn-cancel:hover {
    background: rgba(255, 50, 50, 0.1);
    border-color: #ff3333;
    color: #ff3333;
}

.btn-submit {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-submit:hover {
    background: var(--primary-blue);
    color: #000;
    box-shadow: 0 0 15px var(--primary-blue);
}

.required {
    color: #ff3333;
}

/* --- Anti-spam (honeypot) --- */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* --- Feedback inline formulaire --- */
.form-feedback {
    font-size: 0.85rem;
    padding: 0;
    text-align: center;
    min-height: 0;
    transition: all 0.3s ease;
}

.form-feedback[data-type="success"] {
    padding: 10px;
    margin-top: 10px;
    color: var(--primary-blue);
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.form-feedback[data-type="error"] {
    padding: 10px;
    margin-top: 10px;
    color: var(--alert-color);
    background: rgba(255, 51, 102, 0.05);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

