/* Styles pour l'affichage public du CV */

/* ========================================
   VARIABLES CSS - SYSTÈME DE THÈMES
   ======================================== */
:root {
    /* Couleurs principales du thème */
    --moncv-primary: #667eea;
    --moncv-secondary: #3498db;
    
    /* Versions RGB pour rgba() */
    --moncv-primary-rgb: 102, 126, 234;
    --moncv-secondary-rgb: 52, 152, 219;
    
    /* Variations automatiques */
    --moncv-primary-light: color-mix(in srgb, var(--moncv-primary) 80%, white);
    --moncv-primary-dark: color-mix(in srgb, var(--moncv-primary) 80%, black);
    --moncv-secondary-light: color-mix(in srgb, var(--moncv-secondary) 80%, white);
    --moncv-secondary-dark: color-mix(in srgb, var(--moncv-secondary) 80%, black);
}

/* Animations et transitions globales */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   NOUVEAU DESIGN PROFESSIONNEL EN-TÊTE
   ======================================== */

.moncv-header-professional {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.08);
}

.moncv-header-accent {
    height: 6px;
    background: linear-gradient(90deg, 
        var(--moncv-primary) 0%, 
        var(--moncv-secondary) 25%, 
        var(--moncv-primary-light) 50%, 
        var(--moncv-secondary-light) 75%, 
        var(--moncv-primary) 100%);
    animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { transform: translateX(-10px); }
    100% { transform: translateX(10px); }
}

.moncv-header-content {
    display: flex;
    align-items: center;
    padding: 30px;
    gap: 30px;
}

.moncv-photo-container-pro {
    flex-shrink: 0;
}

.moncv-photo-pro {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
}

.moncv-initials-pro {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--moncv-primary) 0%, var(--moncv-primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(var(--moncv-primary-rgb), 0.3);
}

.moncv-main-info-pro {
    flex: 1;
    text-align: center;
}

.moncv-name-pro {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--moncv-primary-dark) 0%, var(--moncv-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.moncv-title-pro {
    font-size: 20px;
    color: #7f8c8d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.moncv-contact-pro {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 300px;
    flex-shrink: 0;
}

.moncv-contact-item-pro {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(var(--moncv-secondary-rgb), 0.1);
    transition: all 0.3s ease;
}

.moncv-contact-item-pro:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(var(--moncv-secondary-rgb), 0.15);
    border-color: rgba(var(--moncv-secondary-rgb), 0.3);
}

.moncv-contact-icon-pro {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--moncv-primary) 0%, var(--moncv-primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--moncv-primary-rgb), 0.3);
}

.moncv-contact-item-pro span {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.moncv-contact-item-pro a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.moncv-contact-item-pro a:hover {
    color: var(--moncv-secondary);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .moncv-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .moncv-name-pro {
        font-size: 32px;
    }
    
    .moncv-contact-pro {
        width: 100%;
        min-width: auto;
    }
    
    .moncv-contact-item-pro {
        justify-content: center;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Classes d'animation réutilisables */
.animate-slide-in-top {
    animation: slideInFromTop 0.8s ease-out both;
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.8s ease-out both;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.8s ease-out both;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-shimmer {
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

/* Délais d'animation échelonnés */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

.moncv-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 100vh;
    position: relative;
}

.moncv-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(72, 219, 251, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.moncv-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.2;
}

/* En-tête avec informations personnelles */
.moncv-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.moncv-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 20%, #ffc107 40%, #198754 60%, #0d6efd 100%);
}

.moncv-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Suppression des effets hover sur la photo pour rester professionnel */

.moncv-name {
    font-size: 3em;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: #1a202c;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.moncv-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
    font-size: 15px;
    color: #4a5568;
}

.moncv-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.moncv-contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.moncv-contact-item a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.moncv-contact-item a:hover {
    color: #2c5282;
}

/* Sections */
.moncv-section {
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moncv-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.moncv-section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a202c;
    position: relative;
    padding-bottom: 15px;
}

.moncv-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 20%, #ffc107 40%, #198754 60%, #0d6efd 100%);
    border-radius: 2px;
}

/* Présentation */
.moncv-presentation {
    font-size: 17px;
    line-height: 1.8;
    text-align: justify;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #2d3748;
    position: relative;
}

.moncv-presentation::before {
    content: '"';
    font-size: 4em;
    color: #4299e1;
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: serif;
    opacity: 0.3;
}

/* Expériences */
.moncv-experience {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.moncv-experience:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.moncv-experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.moncv-experience-title {
    flex: 1;
}

.moncv-poste {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a202c;
    line-height: 1.3;
}

.moncv-entreprise {
    font-size: 1.1em;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
}

.moncv-dates {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
    white-space: nowrap;
}

.moncv-duration {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 8px;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.moncv-description {
    margin-top: 20px;
    color: #4a5568;
    line-height: 1.7;
}

.moncv-description ul {
    margin: 10px 0;
    padding-left: 20px;
}

.moncv-description li {
    margin-bottom: 5px;
}

/* Compétences */
.moncv-competences-category {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(var(--category-color-rgb, 0, 115, 170), 0.12);
    border-radius: 8px;
    border: 1px solid rgba(var(--category-color-rgb, 0, 115, 170), 0.25);
}

.moncv-category-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.moncv-category-title::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #0be881);
    border-radius: 1px;
}

.moncv-competences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.moncv-competence {
    background: #fff;
    border: 1px solid #c4c8cc;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    min-width: 300px;
}

.moncv-competence:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
}

.moncv-competence:hover .moncv-progress-fill {
    animation: shimmer 1.5s ease-in-out;
}

.moncv-competence:hover .moncv-competence-nom {
    color: #0073aa;
    text-shadow: 0 1px 3px rgba(0, 115, 170, 0.2);
}

.moncv-competence:focus-within {
    outline: 3px solid rgba(0, 115, 170, 0.5);
    outline-offset: 2px;
}

/* Effet de survol pour les catégories */
.moncv-competences-category:hover .moncv-category-title {
    transform: translateX(5px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.moncv-competences-category:hover .moncv-category-color-dot {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.moncv-competence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.moncv-competence-nom {
    font-weight: 600;
    color: #1d2327;
    font-size: 16px;
}

.moncv-competence-level-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    padding: 4px 8px;
    background: rgba(var(--category-color-rgb, 0, 115, 170), 0.1);
    border-radius: 12px;
    border: 1px solid rgba(var(--category-color-rgb, 0, 115, 170), 0.3);
}

/* Nouvelle barre de progression */
.moncv-progress-bar {
    width: 100%;
}

.moncv-progress-track {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.moncv-progress-fill {
    height: 100%;
    border-radius: 4px;
    position: relative;
}

/* Barres progressives chromatiques selon le niveau */
.moncv-progress-fill.level-novice {
    background: #dc3545 !important;
    width: 20% !important;
}

.moncv-progress-fill.level-debutant {
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 100%) !important;
    width: 40% !important;
}

.moncv-progress-fill.level-intermediaire {
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 33%, #ffc107 100%) !important;
    width: 60% !important;
}

.moncv-progress-fill.level-avance {
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 25%, #ffc107 50%, #198754 100%) !important;
    width: 80% !important;
}

.moncv-progress-fill.level-expert {
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 20%, #ffc107 40%, #198754 60%, #0d6efd 100%) !important;
    width: 100% !important;
}

.moncv-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    padding: 0 2px;
}

.moncv-progress-label {
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(0,0,0,0.06);
    position: relative;
    font-size: 11px;
    white-space: nowrap;
}

.moncv-progress-label:first-child {
    color: #dc3545;
}

.moncv-progress-label:nth-child(2) {
    color: #fd7e14;
}

.moncv-progress-label:nth-child(3) {
    color: #ffc107;
}

.moncv-progress-label:nth-child(4) {
    color: #198754;
}

.moncv-progress-label:last-child {
    color: #0d6efd;
}

.moncv-competence-level-text {
    font-size: 14px;
    color: #646970;
    font-weight: 500;
}

/* Barre de progression circulaire */
.moncv-progress-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moncv-progress-circle svg {
    width: 50px;
    height: 50px;
    transform: rotate(-90deg);
}

.moncv-progress-circle circle {
    transition: stroke-dashoffset 0.6s ease-in-out;
}

/* Animation au chargement */
@keyframes progressAnimation {
    from {
        stroke-dashoffset: 125.66; /* Circumférence complète */
    }
}

.moncv-progress-circle circle:last-child {
    animation: progressAnimation 1.5s ease-out;
}

/* Anciennes classes pour compatibilité */
.moncv-competence-niveau {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.moncv-niveau-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.moncv-niveau-debutant {
    background-color: #28a745;
}

.moncv-niveau-intermediaire {
    background-color: #ffc107;
    color: #333;
}

.moncv-niveau-expert {
    background-color: #007bff;
}

/* Actions d'export */
.moncv-actions {
    text-align: center;
    margin: 50px 0;
    padding: 35px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.moncv-export-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
    position: relative;
    overflow: hidden;
}

.moncv-export-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.moncv-export-btn:hover::before {
    left: 100%;
}

.moncv-export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.6);
    color: white;
    text-decoration: none;
}

/* Version imprimable */
@media print {
    .moncv-container {
        max-width: none;
        padding: 0;
        font-size: 12px;
        background: white !important;
        box-shadow: none !important;
    }
    
    .moncv-header {
        background: white !important;
        border: 2px solid #333 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    
    .moncv-section {
        margin-bottom: 25px;
        page-break-inside: avoid;
        background: white !important;
        border: 1px solid #ddd !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
    
    .moncv-section-title {
        color: #333 !important;
        background: none !important;
        border-bottom: 2px solid #333 !important;
        text-shadow: none !important;
    }
    
    .moncv-experience {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        page-break-inside: avoid;
    }
    
    .moncv-actions {
        display: none !important;
    }
    
    .moncv-export-btn {
        display: none !important;
    }
    
    /* Masquer tous les éléments du site WordPress */
    header:not(.moncv-header),
    nav,
    .site-header,
    .site-navigation,
    .menu,
    .sidebar,
    .widget,
    .footer,
    .site-footer,
    #masthead,
    #colophon,
    .entry-header,
    .entry-footer,
    .comments-area,
    .site-branding,
    .main-navigation,
    #secondary {
        display: none !important;
    }
    
    .moncv-competences {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .moncv-competences-category {
        background: white !important;
        border: 1px solid #ddd !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
    
    .moncv-progress-track {
        border: 1px solid #333 !important;
    }
    
    .moncv-progress-fill {
        background: #333 !important;
    }
    
    .moncv-contact-item {
        background: white !important;
        border: 1px solid #ddd !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
    
    .moncv-name {
        color: #333 !important;
        background: none !important;
        text-shadow: none !important;
    }
    
    .moncv-photo {
        border: 2px solid #333 !important;
        box-shadow: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .moncv-container {
        padding: 15px;
    }
    
    .moncv-name {
        font-size: 2em;
    }
    
    .moncv-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .moncv-experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .moncv-competences {
        grid-template-columns: 1fr;
    }
    
    .moncv-competences-category {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .moncv-category-title {
        font-size: 1.1em;
        margin-bottom: 15px;
        gap: 8px;
    }
    
    .moncv-category-color-dot {
        width: 10px;
        height: 10px;
    }
    
    .moncv-competence {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .moncv-competence-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .moncv-competence-nom {
        font-size: 15px;
    }
    
    .moncv-competence-level-text {
        font-size: 13px;
        align-self: flex-end;
    }
    
    .moncv-progress-labels {
        font-size: 10px;
        margin-top: 8px;
    }
    
    .moncv-progress-label {
        padding: 1px 3px;
        font-size: 9px;
    }
    
    .moncv-photo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .moncv-competence {
        padding: 18px;
        margin-bottom: 15px;
        min-width: auto;
    }
    
    .moncv-competence-nom {
        font-size: 14px;
    }
    
    .moncv-progress-track {
        height: 6px;
        margin-bottom: 6px;
    }
    
    .moncv-progress-labels {
        display: none; /* Masquer les labels sur très petits écrans */
    }
    
    .moncv-competence-level-text {
        font-size: 12px;
    }
}

/* Améliorations de performance et d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mode sombre pour les utilisateurs qui le préfèrent */
@media (prefers-color-scheme: dark) {
    .moncv-container {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        color: #e2e8f0;
    }
    
    .moncv-header,
    .moncv-section,
    .moncv-competences-category,
    .moncv-competence,
    .moncv-experience,
    .moncv-actions {
        background: rgba(255, 255, 255, 0.05) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #e2e8f0;
    }
    
    .moncv-name,
    .moncv-section-title,
    .moncv-category-title {
        color: #f7fafc !important;
    }
    
    .moncv-contact-item {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #e2e8f0;
    }
}

/* Focus et navigation clavier améliorés */
.moncv-competence,
.moncv-experience,
.moncv-contact-item,
.moncv-export-btn {
    position: relative;
}

.moncv-competence:focus,
.moncv-experience:focus,
.moncv-contact-item:focus,
.moncv-export-btn:focus {
    outline: 3px solid #4299e1;
    outline-offset: 2px;
    z-index: 10;
}

/* Optimisation pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .moncv-photo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
