/* ============================================
   CV INTERACTIF - STYLES SPÉCIFIQUES
   ============================================ */

.cv-interactive {
    min-height: 100vh;
    padding: 120px 0 140px;
    background: var(--bg-light);
}

.cv-interactive__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   HEADER
   ============================================ */

.cv-interactive__header {
    text-align: center;
    margin-bottom: 60px;
}

.cv-interactive__title {
    font-size: 48px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cv-interactive__subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cv-interactive__instruction {
    font-size: 16px;
    color: var(--text-secondary);
    padding: 16px 24px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 8px;
    display: inline-block;
    transition: all var(--transition-medium);
}

.cv-interactive__instruction.hidden {
    opacity: 0;
    pointer-events: none;
}

.cv-interactive__instruction .highlight {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: var(--primary-blue);
    color: var(--bg-white);
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: var(--weight-bold);
    font-size: 14px;
    margin: 0 4px;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.cv-interactive__main {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    min-height: 900px;
}

/* ============================================
   CV MOCKUP INTERACTIF
   ============================================ */

.cv-mockup-interactive {
    position: relative;
    width: 700px;
    min-height: 900px;
    background: var(--bg-white);
    border: 1px solid #E0E0E0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: auto !important;
    opacity: 1 !important;
}

.cv-mockup-interactive.slide-right {
    transform: translateX(300px);
}

.cv-mockup-interactive.slide-left {
    transform: translateX(-300px);
}

/* CV Header */
.cv-header h2 {
    font-size: 28px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cv-contact {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cv-location {
    font-size: 14px;
    color: var(--text-light);
}

.cv-divider {
    height: 1px;
    background: #E0E0E0;
    margin: 32px 0;
}

/* CV Sections */
.cv-section h3 {
    font-size: 16px;
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CV Items */
.cv-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 8px;
    transition: all var(--transition-medium);
}

.cv-item.clickable {
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.cv-item.clickable:hover {
    background: rgba(0, 102, 255, 0.15) !important;
    transform: translateX(8px);
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.2);
}

.cv-item.active {
    background: rgba(0, 102, 255, 0.1);
    border-left: 3px solid var(--primary-blue);
    padding-left: 13px;
}

.cv-number {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-blue);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 14px;
    font-weight: var(--weight-semibold);
}

.cv-item.active .cv-number {
    background: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.cv-item-content {
    flex: 1;
}

.cv-item-content strong {
    font-size: 16px;
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.cv-detail {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cv-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
   DETAIL PANELS
   ============================================ */

.detail-panel {
    position: absolute;
    top: 0;
    width: 500px;
    background: var(--bg-white);
    border: 1px solid #E0E0E0;
    border-radius: 16px;
    padding: 40px;
    padding-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
}

.detail-panel--left {
    left: 0;
}

.detail-panel--right {
    right: 0;
}

.detail-panel.active {
    opacity: 1;
    pointer-events: auto;
}

.detail-panel__content {
    flex: 1;
    overflow-y: visible;
    padding-bottom: 0;
}

/* Panel Header */
.panel-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--primary-blue);
}

.panel-header__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 18px;
    font-weight: var(--weight-bold);
    margin-bottom: 16px;
}

.panel-header__title {
    font-size: 24px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.panel-header__subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.panel-header__meta {
    font-size: 14px;
    color: var(--text-light);
}

/* Panel Strates */
.panel-strate {
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.panel-strate.visible {
    opacity: 1;
    transform: translateY(0);
}

.panel-strate__icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.panel-strate__logo {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-strate__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.panel-strate__title {
    font-size: 18px;
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.panel-strate__content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.panel-strate__content p {
    margin-bottom: 12px;
}

.panel-strate__content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.panel-strate__content li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.panel-strate__content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: var(--weight-bold);
}

.panel-strate__content strong {
    color: var(--text-primary);
    font-weight: var(--weight-semibold);
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: var(--weight-semibold);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
}

/* ============================================
   NAVIGATION
   ============================================ */

/* Panel Navigation (dans le panel) */
.panel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #E0E0E0;
}

/* Navigation globale (masquée maintenant) */
.cv-navigation {
    display: none;
}

.cv-navigation.active {
    opacity: 1;
    pointer-events: auto;
}

.cv-nav-btn {
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: var(--weight-semibold);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    background: transparent;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.cv-nav-btn:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.cv-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.cv-nav-btn--close {
    border-color: var(--text-light);
    color: var(--text-secondary);
}

.cv-nav-btn--close:hover {
    background: var(--text-secondary);
    border-color: var(--text-secondary);
    color: var(--bg-white);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1400px) {
    .detail-panel {
        width: 400px;
    }
    
    .cv-mockup-interactive {
        width: 600px;
    }
    
    .cv-mockup-interactive.slide-right {
        transform: translateX(250px);
    }
    
    .cv-mockup-interactive.slide-left {
        transform: translateX(-250px);
    }
}

@media (max-width: 1024px) {
    .cv-interactive__main {
        flex-direction: column;
        align-items: center;
    }
    
    .detail-panel {
        position: relative;
        left: auto !important;
        right: auto !important;
        width: 100%;
        max-width: 600px;
        margin-bottom: 32px;
    }
    
    .cv-mockup-interactive {
        width: 100%;
        max-width: 600px;
        transform: none !important;
    }
    
    .cv-mockup-interactive.slide-right,
    .cv-mockup-interactive.slide-left {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .cv-interactive__title {
        font-size: 32px;
    }
    
    .cv-mockup-interactive {
        padding: 24px;
    }
    
    .detail-panel {
        padding: 24px;
    }
    
    .cv-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .cv-nav-btn {
        width: 100%;
    }
}

/* ============================================
   AMÉLIORATIONS RESPONSIVE SUPPLÉMENTAIRES
   ============================================ */

/* Smartphones - Optimisations supplémentaires */
@media (max-width: 768px) {
    /* Réduire davantage les fonts sur mobile */
    .cv-mockup-interactive {
        font-size: 13px;
        padding: 20px;
    }
    
    .cv-name {
        font-size: 20px !important;
    }
    
    .cv-title {
        font-size: 12px !important;
    }
    
    .cv-section h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .cv-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .cv-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
        line-height: 24px;
    }
    
    .cv-item strong {
        font-size: 13px;
    }
    
    .cv-detail {
        font-size: 11px;
    }
    
    .cv-meta {
        font-size: 10px;
    }
    
    /* Panels plus compacts sur mobile */
    .detail-panel {
        padding: 20px;
    }
    
    .panel-header__number {
        font-size: 32px;
    }
    
    .panel-header__title {
        font-size: 20px;
    }
    
    .panel-header__subtitle {
        font-size: 13px;
    }
    
    .panel-strate__title {
        font-size: 14px;
    }
    
    .panel-strate__content {
        font-size: 13px;
    }
    
    .tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Navigation plus compacte */
    .cv-nav-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Petits smartphones */
@media (max-width: 480px) {
    .cv-interactive__title {
        font-size: 24px;
    }
    
    .cv-mockup-interactive {
        padding: 16px;
        font-size: 12px;
    }
    
    .cv-name {
        font-size: 18px !important;
    }
    
    .cv-title {
        font-size: 11px !important;
    }
    
    .cv-section h3 {
        font-size: 12px;
    }
    
    .cv-item strong {
        font-size: 12px;
    }
    
    .detail-panel {
        padding: 16px;
    }
    
    .panel-header__number {
        font-size: 28px;
    }
    
    .panel-header__title {
        font-size: 18px;
    }
    
    .cv-nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Mode paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .cv-mockup-interactive {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .detail-panel {
        max-height: 80vh;
        overflow-y: auto;
    }
}
