/* ============================================
   Tuteur Profiles — Styles Frontend
   ============================================ */

.tp-profil-card {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    background: #fff;
}

/* --- Header --- */
.tp-profil-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 28px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #fafafa 100%);
    border-bottom: 1px solid #e5e7eb;
}

.tp-profil-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.tp-profil-identity { flex: 1; }

.tp-profil-nom {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
}

.tp-profil-meta {
    margin: 4px 0;
    color: #4b5563;
    font-size: 0.9rem;
}

/* --- Badge expérience --- */
.tp-profil-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    flex-shrink: 0;
    text-align: center;
    min-width: 80px;
}

.tp-badge-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.tp-badge-label {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 3px;
    text-align: center;
}

/* --- Sections --- */
.tp-profil-section {
    padding: 20px 28px;
    border-bottom: 1px solid #f3f4f6;
}

.tp-profil-section h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tp-profil-section p {
    color: #374151;
    line-height: 1.7;
    margin: 0;
}

/* --- Vidéo embed --- */
.tp-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.tp-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* --- Actions --- */
.tp-profil-actions {
    padding: 20px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
}

.tp-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.tp-btn-primary { background: #2563eb; color: #fff; }

/* --- Responsive --- */
@media (max-width: 580px) {
    .tp-profil-header { flex-wrap: wrap; padding: 20px; }
    .tp-profil-photo { width: 80px; height: 80px; }
    .tp-profil-badge {
        order: -1;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        padding: 8px;
    }
    .tp-profil-section,
    .tp-profil-actions { padding: 16px 20px; }
}
