:root {
    --primary-purple: #d36a58;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    padding: 0;
    line-height: 1.6;
    margin: 0;
}

.cv-container {
    max-width: 1600px;
    min-height: 100vh;
    margin: 0 auto;
    background: #0f0f0f;
}

/* En-tête moderne */
.header {
    background: #0a0a0a;
    color: white;
    padding: 0;
    border-bottom: 4px solid var(--primary-purple);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    gap: 40px;
}

.name-section h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 8px;
    color: #fff;
}

.name-section h2 {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #a0aec0;
}

.contact-header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
}

.contact-header .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #cbd5e0;
}

.contact-header .contact-item i {
    color: var(--primary-purple);
    font-size: 14px;
    width: 20px;
}

/* Section Cybersécurité en vedette */
.cyber-highlight {
    background: #1a1a1a;
    padding: 50px 60px;
    color: white;
    border-top: 4px solid var(--primary-purple);
    border-bottom: 4px solid var(--primary-purple);
}

.cyber-highlight .section-title-main {
    color: white;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 35px;
    text-align: center;
    border-bottom: 3px solid var(--primary-purple);
    padding-bottom: 15px;
}

.cyber-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cyber-card {
    background: #0f0f0f;
    padding: 30px;
    border: 2px solid #2d2d2d;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cyber-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
}

.cyber-card-icon {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-purple);
}

.cyber-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.cyber-card ul {
    list-style: none;
    padding: 0;
}

.cyber-card ul li {
    font-size: 13px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.cyber-card ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-purple);
}

/* Layout principal */
.main-content {
    display: flex;
    min-height: calc(100vh - 300px);
}

/* Colonne principale à gauche (large) */
.content-left {
    width: 65%;
    padding: 50px 60px;
    background: #0f0f0f;
}

.content-left .section {
    margin-bottom: 45px;
}

.section-title-main {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-purple);
    text-transform: uppercase;
}

/* Expérience professionnelle */
.experience-item {
    margin-bottom: 35px;
    padding: 25px;
    background: #1a1a1a;
    border-left: 4px solid var(--primary-purple);
    border: 2px solid #2d2d2d;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.experience-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-purple);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.experience-header h4 {
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 5px;
}

.company {
    font-size: 15px;
    color: var(--primary-purple);
    font-weight: 600;
    font-style: normal;
}

.date {
    background: var(--primary-purple);
    color: white;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 2px solid var(--primary-purple);
}

.experience-details {
    list-style: none;
    padding-left: 0;
}

.experience-details li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
}

.experience-details li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-weight: bold;
}

/* Formations */
.education-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #1a1a1a;
    border-left: 4px solid #764ba2;
    border: 2px solid #2d2d2d;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.education-header h4 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
}

.school {
    font-size: 14px;
    color: var(--primary-purple);
    font-weight: 600;
    font-style: normal;
}

.education-details {
    font-size: 13px;
    color: #b0b0b0;
    margin-top: 8px;
    line-height: 1.6;
}

/* Sidebar droite */
.sidebar-right {
    width: 35%;
    background: #1a1a1a;
    padding: 50px 40px;
    border-left: 3px solid var(--primary-purple);
}

.sidebar-right .section {
    margin-bottom: 35px;
}

.sidebar-right .section-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-purple);
}

/* Compétences */
.skills-list {
    list-style: none;
}

.skills-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    font-size: 13px;
    background: #0f0f0f;
    color: #e0e0e0;
    border: 1px solid #2d2d2d;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.skills-list li:hover {
    transform: translateX(5px);
    border-color: var(--primary-purple);
}

/* Langues */
.language-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 10px;
    font-size: 13px;
    background: #0f0f0f;
    color: #e0e0e0;
    border: 1px solid #2d2d2d;
}

.language-level {
    color: var(--primary-purple);
    font-weight: 700;
}

/* Qualités */
.qualities-list {
    list-style: none;
}

.qualities-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    font-size: 13px;
    background: #0f0f0f;
    color: #e0e0e0;
    border: 1px solid #2d2d2d;
}

/* Centres d'intérêt */
.interests-list {
    list-style: none;
}

.interests-list li {
    padding: 10px 15px;
    margin-bottom: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0f0f0f;
    color: #e0e0e0;
    border: 1px solid #2d2d2d;
}

.interests-list li i {
    color: var(--primary-purple);
    font-size: 16px;
    width: 24px;
}

/* Liens */
a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Impression */
@media print {
    body {
        padding: 0;
        background: white;
    }

    .cv-container {
        box-shadow: none;
        max-width: 100%;
        margin: 0;
    }

    .main-content {
        min-height: auto;
    }

    @page {
        size: A4 portrait;
        margin: 10mm;
    }
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .cyber-grid-horizontal {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 968px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-header {
        grid-template-columns: 1fr;
    }

    .main-content {
        flex-direction: column;
    }

    .content-left,
    .sidebar-right {
        width: 100%;
    }

    .sidebar-right {
        border-left: none;
        border-top: 3px solid var(--primary-purple);
    }
}
