@page {
    size: A4;
    margin: 1.5cm;
}

body {
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    font-family: "Times New Roman", Times, serif;
    color: #1a1a1a;
}

.latex-container {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background-color: white;
    padding: 1.5cm;
    box-sizing: border-box;
}

/* Header */
.cv-header {
    display: flex;
    align-items: flex-start;
}

.photo-container {
    flex: 0 0 100px;
    margin-right: 25px;
}

.profile-photo {
    width: 100px;
    height: auto;
    border-radius: 2px;
    border: 1px solid #eee;
}

.header-text {
    flex: 1;
}

h1 {
    font-size: 24pt;
    font-weight: normal;
    letter-spacing: 1.5px;
    margin: 0 0 5px 0;
}

.contact-info {
    font-size: 10pt;
    margin-bottom: 5px;
}

.sub-header {
    font-size: 11pt;
    font-variant: small-caps;
}

/* Sections */
h2 {
    font-size: 13pt;
    font-variant: small-caps;
    border-bottom: 1px solid #999;
    margin-bottom: 4.1px;
    margin-top: 1px;
    padding-bottom: 2px;
    letter-spacing: 1px;
}

/* --- STYLE GÉNÉRAL DES ENTRÉES --- */
.entry {
    margin-bottom: 15px;
}

/* --- SPÉCIFIQUE TIMELINE --- */
.entry.timeline {
    position: relative;
    padding-left: 20px;
}

.entry.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 6px;
    width: 2px;
    background-color: #ccc;
    z-index: 0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    font-weight: bold;
    font-size: 11pt;
    position: relative;
}

.entry.timeline .entry-header::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #333;
    z-index: 1;
}

.entry > :last-child {
    position: relative;
}

.entry.timeline > :last-child::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #333;
    z-index: 1;
}

.entry-subtitle {
    font-style: italic;
    font-size: 10.5pt;
    margin-bottom: 4px;
}

p {
    font-size: 10pt;
    margin: 4px 0;
    text-align: justify;
}

.skills-list {
    list-style-type: square;
    padding-left: 20px;
    font-size: 10pt;
}

.skills-list li {
    margin-bottom: 6px;
}

/* ---- STYLES POUR LES BADGES ---- */
.link-badge {
    display: inline-flex;
    align-items: center;
    font-size: 9pt;
    font-weight: normal;
    color: #00619c  !important;
    padding: 2px 6px;
    border-radius: 3px;
    text-decoration: none;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.link-badge:hover {
    background-color: #666;
    cursor: pointer;
}

.link-badge svg {
    width: 11px;
    height: 11px;
    margin-left: 4px;
    fill: currentColor;
}

.icon {
    width: 12px;
    height: 12px;
    margin-right: 8px;
    fill: #333;
    vertical-align: middle;
    display: inline-block;
}

.contact-info div {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

@media print {
    @page { margin: 0; }
    body { 
        background-color: white;
        -webkit-print-color-adjust: exact; 
        print-color-adjust: exact;
    }
    .latex-container {
        margin: 0;
        box-shadow: none;
        width: 100%;
        padding: 1.5cm;
    }
    .entry.timeline::before,
    .entry.timeline .entry-header::before,
    .entry.timeline > :last-child::before {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}