/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: #222;
    background-color: #fff;
    font-size: 14px;
}

.container {
    max-width: none;
    width: 100%;
    margin: 0;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header - Style réduit pour correspondre au PDF */
.header {
    display: none;
}

/* Contact Section - Intégré dans le sidebar au lieu d'être séparé */
.contact-section {
    display: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 11px;
}

.contact-item .label {
    font-weight: 600;
    color: #ffffff;
    min-width: 80px;
    margin-right: 10px;
}

.contact-item .icon {
    width: 16px;
    margin-right: 8px;
    text-align: center;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
}

/* Main Grid Layout - Style PDF avec sidebar sombre */
.main-grid {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 0;
    min-height: 100vh;
}

/* Left Column - Sidebar avec fond sombre comme le PDF */
.left-column {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 30px 20px;
    position: relative;
}

.left-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 0;
}

.left-column > * {
    position: relative;
    z-index: 1;
}

/* Right Column */
.right-column {
    padding: 30px 25px;
    background: #fff;
}

/* Section Styles */
.section {
    margin-bottom: 25px;
}

.section h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #00bee0;
    position: relative;
}

.left-column .section h3 {
    color: #ffffff;
}

.right-column .section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #00bee0;
}

.section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #00bee0;
}

/* Formation */
.formation-list {
    list-style: none;
    padding-left: 0;
}

.formation-list li {
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
    padding-left: 14px;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.formation-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00bee0;
    font-size: 8px;
}

/* Languages */
.languages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 11px;
    color: #ffffff;
    box-shadow: none;
}

.language {
    font-weight: 500;
    color: #ffffff;
}

.level {
    background-color: transparent;
    color: #ffffff;
    padding: 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: 500;
}

/* Qualities */
.qualities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quality {
    background: rgba(0, 190, 224, 0.3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

/* Interests */
.interests {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.interest-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
    padding-left: 14px;
    position: relative;
}

.interest-item::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00bee0;
    font-size: 8px;
}

.interest-item h4 {
    color: #ffffff;
    font-size: 11px;
    margin-bottom: 2px;
    font-weight: 500;
    display: inline;
}

.interest-item p {
    color: #ffffff;
    font-size: 11px;
    display: inline;
}

.interest-item p a {
    color: #00bee0;
    text-decoration: none;
}

/* Experience Timeline */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.experience-timeline::before {
    display: none;
}

.experience-item {
    position: relative;
    margin-bottom: 0;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid #00bee0;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 12px;
    width: 6px;
    height: 6px;
    background: #00bee0;
    border-radius: 50%;
    border: 2px solid #fff;
}

.period {
    background: transparent;
    color: #00bee0;
    padding: 0;
    border-radius: 0;
    font-size: 10px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.experience-content h4 {
    color: #2c3e50;
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: 600;
}

.experience-content p {
    color: #5a6c7d;
    font-size: 10px;
    line-height: 1.4;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.skill-category {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 4px;
    border-left: 3px solid #00bee0;
    box-shadow: none;
}

.skill-category h4 {
    color: #2c3e50;
    font-size: 11px;
    margin-bottom: 5px;
    font-weight: 600;
}

.skill-category p {
    color: #5a6c7d;
    font-size: 10px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .left-column {
        border-right: none;
        order: 1;
    }
    
    .right-column {
        order: 2;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .container {
        margin: 0;
    }
    
    .qualities {
        justify-content: flex-start;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .left-column,
    .right-column {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }
    
    .container {
        max-width: none;
    }
    
    .main-grid {
        grid-template-columns: 35% 65%;
    }
    
    .left-column {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .section {
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .experience-item {
        break-inside: avoid;
    }
}