/* ============================================================================
   VARIABLES
   ============================================================================ */
:root {
    --primary:       #1a3c6e;
    --primary-light: #2f5da6;
    --accent:        #0ea5e9;
    --success:       #16a34a;
    --error:         #dc2626;
    --text-dark:     #111827;
    --text-mid:      #374151;
    --text-soft:     #6b7280;
    --border:        #e5e7eb;
    --bg-page:       #eef2f8;
    --bg-card:       #ffffff;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.09);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
    --radius:        16px;
    --radius-sm:     10px;
    --transition:    0.2s ease;
    --grad-main:     #1a3c6e;
}

/* ============================================================================
   RESET
   ============================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    font-size: 17px;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ============================================================================
   HEADER
   ============================================================================ */
.header {
    background: #ffffff;
    border-bottom: 1px solid #d0dcf0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(26,60,110,0.08);
}

.header-container {
    width: 100%;
    padding: 0 28px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 38px; width: auto; }

.header-controls {
    display: none;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.btnLoginMobile { display: flex; flex-direction: row; gap: 6px; }

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.nav a {
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}

.nav a:hover {
    background: var(--bg-page);
    color: var(--primary);
    text-decoration: none;
}

.section-LogHeader { display: flex; align-items: center; gap: 16px; }

/* ============================================================================
   MENU HAMBURGER
   ============================================================================ */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition);
}
.menu-btn:hover { background: var(--bg-page); }
.menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-mid);
    margin: 3px 0;
    border-radius: 2px;
    transition: var(--transition);
}
.menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ============================================================================
   LANGUE & USER
   ============================================================================ */
.language-selector { position: relative; }

.language-btn, .language-btn-mobile {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.language-btn:hover, .language-btn-mobile:hover { background: var(--bg-page); }
.language-btn-mobile { width: 38px; height: 38px; }

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: var(--transition);
    z-index: 1100;
    overflow: hidden;
}
.language-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }

.language-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}
.language-option:hover, .language-option.active {
    background: var(--bg-page);
    color: var(--primary);
}

.btn-login {
    background-color: transparent;
    color: #142137 !important;
    padding: 5px !important;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    height: 32px;
    width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
}
.btn-login:hover { background-color: rgba(20,33,55,0.08); transform: none; color: #142137 !important; }

.user-menu-container { position: relative; display: inline-flex; align-items: center; }

.header-avatar-btn {
    display: flex;
    align-items: center;
    background: none;
    border: 2px solid var(--border);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.header-avatar-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,93,166,0.1); }

.header-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 1100;
    overflow: hidden;
}
.user-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-page);
}
.dropdown-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
    background: #e5e7eb;
}
.dropdown-user-text { display: flex; flex-direction: column; min-width: 0; }
.dropdown-user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown-user-email {
    font-size: 12px;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider { height: 1px; background: var(--border); }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.dropdown-item:hover { background: var(--bg-page); color: var(--primary); text-decoration: none; }
.dropdown-item-danger { color: var(--error); }
.dropdown-item-danger:hover { background: #fef2f2; color: var(--error); }

/* ============================================================================
   MAIN CONTAINER
   ============================================================================ */
.main-container {
    background: var(--bg-page);
    min-height: 100vh;
    padding: 32px 20px 80px;
    position: relative;
}

/* ============================================================================
   LOADING / ERROR
   ============================================================================ */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    gap: 16px;
    color: var(--text-soft);
    font-size: 15px;
}
.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    gap: 16px;
    text-align: center;
    color: var(--text-soft);
}
.error-icon { font-size: 44px; }

/* ============================================================================
   PROFILE WRAPPER
   ============================================================================ */

.profile-container {
  width: 100%;
  margin: 0 20px;
  padding: 0 20px;
}

/* ============================================================================
   HERO CARD (cover + avatar + nom + titre + méta)
   ============================================================================ */
.pv-hero {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(26,60,110,0.13);
    border: 1px solid #d0dcf0;
    overflow: hidden;
    margin-bottom: 24px;
    animation: fadeUp 0.4s ease both;
}

.pv-cover {
    height: 240px;
    background: #1a3c6e;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.pv-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
}

.pv-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.12);
}

.pv-hero-body {
    padding: 0 52px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.pv-hero-left {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    flex: 1;
    min-width: 0;
}

.pv-avatar {
    width: 400px;
    height: 400px;
    border-radius: 16px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.18), 0 8px 32px rgba(26,60,110,0.2);
    background: #e5e7eb;
    flex-shrink: 0;
    margin-top: -120px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pv-avatar:hover {
    transform: scale(1.02);
    box-shadow: 0 0 0 6px rgba(37,99,235,0.22), 0 12px 40px rgba(26,60,110,0.25);
}

.pv-hero-info {
    padding-top: 14px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pv-name {
    font-size: 52px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.pv-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 14px;
}

.pv-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    margin-top: 16px;
}

.pv-meta .pv-box-donne {
    flex: 1 1 140px;
    min-width: 252px;
}

.pv-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-mid);
    width: fit-content;
    background: transparent;
    border: none;
    padding: 0;
    white-space: nowrap;
}

.pv-stars-display {
    display: inline-flex;
    gap: 3px;
}

.pv-stars-display .s {
    font-size: 36px;
    color: #d1d5db;
}
.pv-stars-display .s.on { color: #f59e0b; }

.pv-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    flex-wrap: wrap;
}

/* Boutons icône + label dans le hero */
.pv-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}
.pv-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}
.pv-hero-btn svg { flex-shrink: 0; width: 24px; height: 24px; }
.pv-hero-btn span { display: inline; }

/* Favoris — rose */
.pv-hero-btn--fav { color: #9ca3af; }
.pv-hero-btn--fav:hover {
    border-color: #f43f5e;
    background: #fff0f3;
    color: #f43f5e;
}
.pv-hero-btn--fav.active {
    border-color: #f43f5e;
    background: #fff0f3;
    color: #f43f5e;
}
.pv-hero-btn--fav.active svg { fill: #f43f5e; }

/* Email — bleu */
.pv-hero-btn--email:hover {
    border-color: var(--accent);
    background: #f0f9ff;
    color: var(--accent);
}

/* WhatsApp — vert */
.pv-hero-btn--wa { color: #25D366; border-color: #bbf7d0; background: #f0fdf4; }
.pv-hero-btn--wa:hover {
    border-color: #25D366;
    background: #dcfce7;
    color: #15803d;
}

/* Partager — gris/ardoise */
.pv-hero-btn--share { color: #475569; border-color: #e2e8f0; background: #f8fafc; }
.pv-hero-btn--share:hover {
    border-color: #475569;
    background: #f1f5f9;
    color: #1e293b;
}

/* Proposer mission */
.pv-hero-btn--propose { color: var(--primary); border: 1.5px solid var(--primary); background: #eff6ff; font-size: 16px; }
.pv-hero-btn--propose:hover {
    border-color: var(--accent);
    background: #e0f2fe;
    color: var(--accent);
}

/* Désactivé — grisé */
.pv-hero-btn--disabled,
.pv-hero-btn--disabled:hover {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #f9fafb;
    border-color: var(--border);
    color: #9ca3af;
}

/* ============================================================================
   STATS BOX-DONNE
   ============================================================================ */
.pv-donne {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    align-items: stretch;
    margin: 24px 0 8px;
    width: 100%;
}

.pv-box-donne {
    background: #ffffff;
    padding: 18px 28px;
    border-radius: 14px;
    text-align: center;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 1px solid #d0dcf0;
    border-top: 3px solid #2f4b78;
    box-shadow: 0 2px 10px rgba(47, 75, 120, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    flex: 1 1 160px;
}

.pv-box-donne:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(47, 75, 120, 0.15);
}

.pv-box-donne strong {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #2f4b78;
    opacity: 0.75;
}

.pv-box-donne small {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ============================================================================
   DEUX COLONNES
   ============================================================================ */
.pv-columns {
    display: grid;
    grid-template-columns: 800px 1fr;
    gap: 24px;
    align-items: start;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */
.pv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
}
.pv-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #d0dcf0;
    box-shadow: 0 2px 12px rgba(26,60,110,0.08);
    overflow: hidden;
    padding: 28px 26px;
    transition: box-shadow var(--transition), transform var(--transition);
    animation: fadeUp 0.4s ease both;
    border-top: 3px solid var(--primary);
    position: relative;
}
.pv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius) var(--radius) 0 0;
}
.pv-card:hover {
    box-shadow: 0 8px 32px rgba(26,60,110,0.14);
    transform: translateY(-2px);
}

/* Disponibilité */
.pv-avail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
}
.pv-avail-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}
.pv-avail-dot.green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.pv-avail-dot.orange { background: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.2); }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.05); }
}

/* Taux horaire */
.pv-rate {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.pv-rate-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1;
}
.pv-rate-unit {
    font-size: 15px;
    color: var(--text-soft);
    font-weight: 500;
    margin-top: 4px;
}

/* Boutons CTA */
.pv-cta {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pv-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(26,60,110,0.3);
    letter-spacing: 0.1px;
    text-decoration: none;
}
.pv-btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,60,110,0.35);
    color: #fff;
}

.pv-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    letter-spacing: 0.1px;
}
.pv-btn-secondary:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}

/* Petites actions: favori + partage */
.pv-mini-actions {
    padding: 12px 18px 16px;
    display: flex;
    gap: 8px;
    justify-content: center;
    border-top: 1px solid var(--border);
}

.pv-action-icon {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 8px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
    line-height: 1;
}
.pv-action-icon:hover {
    background: #f0f9ff;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
}
.pv-action-icon svg { flex-shrink: 0; }

/* Favori — cœur rouge */
.pv-action-icon.fav-mini { color: var(--text-soft); }
.pv-action-icon.fav-mini:hover,
.pv-action-icon.fav-mini.active {
    background: #fff0f3;
    border-color: #f43f5e;
    color: #f43f5e;
}
.pv-action-icon.fav-mini.active svg { fill: #f43f5e; stroke: #f43f5e; }

/* WhatsApp — vert */
.pv-action-icon[href*="whatsapp"]:hover {
    background: #f0fdf4;
    border-color: #25D366;
    color: #15803d;
}

/* Stats rapides dans la sidebar */
.pv-sidebar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
}
.pv-stat {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.pv-stat:nth-child(2n) { border-right: none; }
.pv-stat:nth-last-child(-n+2) { border-bottom: none; }
.pv-stat-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.pv-stat-lbl {
    font-size: 15px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 4px;
}

/* Infos complémentaires sidebar */
.pv-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pv-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
    gap: 8px;
}
.pv-info-row:last-child { border-bottom: none; }
.pv-info-lbl {
    color: var(--text-soft);
    font-weight: 500;
    flex-shrink: 0;
}
.pv-info-val {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}

/* ============================================================================
   CARD LANGUES
   ============================================================================ */
.pv-lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pv-lang-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================================================
   CARD LOCALISATION & DEPLACEMENT
   ============================================================================ */
.pv-loc-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-soft);
    margin-bottom: 16px;
}
.pv-loc-block {
    margin-bottom: 14px;
}
.pv-loc-block:last-child { margin-bottom: 0; }
.pv-loc-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.pv-loc-city {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}
.pv-loc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pv-loc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    color: var(--text-dark);
}
.pv-loc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary, #667eea);
    flex-shrink: 0;
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */
.pv-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    order: 1;
}

/* Section card */
.pv-section {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #d0dcf0;
    box-shadow: 0 2px 12px rgba(26,60,110,0.07);
    padding: 32px 36px;
    transition: box-shadow var(--transition), transform var(--transition);
    animation: fadeUp 0.4s ease both;
    position: relative;
    overflow: hidden;
}
.pv-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius) var(--radius) 0 0;
}
.pv-section:hover {
    box-shadow: 0 8px 32px rgba(26,60,110,0.12);
    transform: translateY(-2px);
}
.pv-section:nth-child(2) { animation-delay: 0.06s; }
.pv-section:nth-child(3) { animation-delay: 0.12s; }
.pv-section:nth-child(4) { animation-delay: 0.18s; }
.pv-section:nth-child(5) { animation-delay: 0.24s; }
.pv-section:nth-child(6) { animation-delay: 0.30s; }

.pv-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid #dbe6f8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pv-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 3px;
    flex-shrink: 0;
}

/* Description */
.pv-description {
    color: var(--text-mid);
    font-size: 19px;
    line-height: 1.9;
    white-space: pre-line;
}

/* Compétences */
.pv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pv-skill {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: var(--primary);
    border: 1.5px solid #bfdbfe;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
    transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.pv-skill:hover {
    background: #dbeafe;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(14,165,233,0.2);
}

/* Langues */
.pv-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pv-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: inherit;
    border: 1.5px solid #e5e7eb;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 17px;
    font-weight: 600;
}
.pv-lang-text {
    color: var(--primary);
}

/* Disponibilité badge dans main */
.pv-avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
}
.pv-avail-badge.avail {
    background: #f0fdf4;
    color: #15803d;
    border: 1.5px solid #bbf7d0;
}
.pv-avail-badge.unavail {
    background: #fff7ed;
    color: #c2410c;
    border: 1.5px solid #fed7aa;
}

/* Portfolio grid */
.pv-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.pv-portfolio img,
.pv-portfolio-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pv-portfolio img:hover,
.pv-portfolio-img:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.pv-portfolio a,
.pv-portfolio-pdf {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    transition: background var(--transition), border-color var(--transition);
}
.pv-portfolio a:hover,
.pv-portfolio-pdf:hover {
    background: #eff6ff;
    border-color: var(--accent);
}

/* Lightbox */
.pv-lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: lb-fade .2s ease;
    padding: 20px;
}

@keyframes lb-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pv-lb-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    animation: lb-zoom .2s ease;
}

@keyframes lb-zoom {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.pv-lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity .15s;
}
.pv-lb-close:hover { opacity: 1; }

.pv-lb-caption {
    margin-top: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

/* ============================================================================
   RATING — ÉTOILES CLIQUABLES
   ============================================================================ */
.pv-rating-zone {
    background: #fafbfc;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.pv-rating-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 4px;
}

.pv-stars-input {
    display: flex;
    gap: 4px;
}

.pv-stars-input span {
    font-size: 32px;
    cursor: pointer;
    color: #d1d5db;
    line-height: 1;
    transition: color 0.15s, transform 0.15s;
    user-select: none;
}
.pv-stars-input span:hover { transform: scale(1.2); }
.pv-stars-input span.hovered,
.pv-stars-input span.selected { color: #f59e0b; }

.pv-rating-hint {
    font-size: 12px;
    color: var(--text-soft);
    font-style: italic;
    min-height: 16px;
}

/* ============================================================================
   REVIEWS
   ============================================================================ */
.pv-reviews {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pv-review-card {
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pv-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pv-review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5e7eb;
    object-fit: cover;
    flex-shrink: 0;
}
.pv-review-meta { flex: 1; min-width: 0; }
.pv-review-name { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.pv-review-date { font-size: 14px; color: var(--text-soft); }
.pv-review-stars { display: flex; gap: 1px; }
.pv-review-stars .s { font-size: 20px; color: #d1d5db; }
.pv-review-stars .s.on { color: #f59e0b; }
.pv-review-text { font-size: 18px; color: var(--text-mid); line-height: 1.8; }

/* Rating summary bar */
.pv-rating-avg {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.pv-avg-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -2px;
}
.pv-avg-right { display: flex; flex-direction: column; gap: 4px; }
.pv-avg-stars { display: flex; gap: 2px; }
.pv-avg-stars .s { font-size: 26px; color: #d1d5db; }
.pv-avg-stars .s.on { color: #f59e0b; }
.pv-avg-count { font-size: 15px; color: var(--text-soft); }

/* Message d'état du rating */
.pv-message { font-size: 13px; text-align: center; min-height: 18px; }
.pv-message.success { color: var(--success); font-weight: 600; }
.pv-message.error { color: var(--error); }
.pv-message.warning { color: #d97706; }

/* ============================================================================
   BOUTONS GÉNÉRIQUES
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,60,110,0.18);
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* ============================================================================
   MODAL AUTH
   ============================================================================ */
.modalAuth {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
}
.modalAuth-content {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius);
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.modalAuth-content h2 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.modalAuth-content p { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
.modalAuth-actions { display: flex; justify-content: center; }
.closeModalAuthClass {
    padding: 10px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.closeModalAuthClass:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ============================================================================
   ERROR MODAL
   ============================================================================ */
.em-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}
.em-hidden { display: none; }
.em-box {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    width: 340px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--error);
}
.em-title { color: var(--error); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.em-text { color: var(--text-mid); margin-bottom: 22px; font-size: 14px; line-height: 1.6; }
.em-btn {
    background: var(--error);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.em-btn:hover { background: #b91c1c; transform: translateY(-1px); }

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.65);
    text-align: center;
    padding: 22px;
    font-size: 13px;
    margin-top: auto;
}

/* ============================================================================
   FOCUS / ACCESSIBILITÉ
   ============================================================================ */
button:focus-visible, a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================================================
   SCROLLBAR
   ============================================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   RESPONSIVE — TABLETTE
   ============================================================================ */
@media (max-width: 900px) {
    .pv-columns {
        grid-template-columns: 1fr;
    }
    .pv-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .header-container { padding: 0 16px; }
    .header-controls  { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 12px 16px;
        gap: 4px;
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .nav.active { display: flex; }
    .menu-btn { display: flex; }

    .profile-container { width: 100%; margin: 0 0px; padding: 0px 0px; }
    .pv-hero-body { padding: 0 20px 22px; gap: 14px; }
    .pv-avatar { width: 88px; height: 88px; margin-top: -42px; }
    .pv-cover { height: 110px; }
    .pv-name { font-size: 21px; }
    .pv-section { padding: 20px; }
    .pv-sidebar { grid-template-columns: 1fr; }
    .pv-sidebar > .pv-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .main-container { padding: 14px 10px 60px; }
    .pv-rate { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
    .pv-rate-unit { margin-top: 0; }
    .pv-hero-left { flex-direction: column; align-items: flex-start; gap: 10px; }
    .pv-hero-actions { padding-top: 0; }
    .pv-hero-body { flex-direction: column; align-items: flex-start; }
    .pv-avatar { margin-top: -40px; width: 80px; height: 80px; border-width: 3px; }
    .pv-section { padding: 16px; }
    .pv-section-title { font-size: 10px; }
}
