/* ============================================================
   Page CV — header, layout 2 colonnes (aside sticky / main),
   cartes hairline, fiche technique, mini-timeline.
   Dépend des tokens et composants de css/styles.css.
   ============================================================ */

/* ── Quickfacts du header (chips mono sur fond sombre) ── */
.cv-quickfacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.cv-quickfacts .chip {
    color: var(--bone-soft);
}

.cv-quickfacts .chip:hover {
    color: var(--bone);
}

/* ── Section principale ── */
.cv-section {
    padding: clamp(64px, 8vw, 104px) 0 clamp(96px, 12vw, 150px);
    background: var(--paper);
}

.cv-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
}

/* Aside sticky sous la navbar */
.cv-side {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 28px);
}

.cv-main {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 28px);
}

/* ── Portrait ── */
.cv-portrait .figure-frame {
    aspect-ratio: 4 / 5;
}

.cv-portrait img {
    object-position: 50% 15%;
}

/* ── Carte ── */
.cv-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: clamp(26px, 3.2vw, 38px);
    transition: border-color .3s ease;
}

.cv-card:hover {
    border-color: rgba(18, 18, 20, .32);
}

.cv-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.cv-card-head h2 {
    font-size: clamp(26px, 2.6vw, 32px);
}

.cv-card-head .card-index {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-soft);
}

/* ── Données factuelles (coordonnées) ── */
.cv-data li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.cv-data li:first-child {
    padding-top: 0;
}

.cv-data li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cv-data-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--ink-soft);
}

.cv-data-value {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.cv-data-value a {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1px;
    transition: color .25s ease, border-color .25s ease;
}

.cv-data-value a:hover {
    color: var(--blue);
    border-color: var(--blue);
}

/* Bouton PDF pleine largeur */
.cv-download {
    width: 100%;
    margin-top: 24px;
}

/* ── Langues ── */
.cv-langs li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink);
}

.cv-langs li:first-child {
    padding-top: 0;
}

.cv-langs li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cv-lang-level {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-soft);
    text-align: right;
}

/* ── Centres d'intérêt ── */
.cv-interests li {
    position: relative;
    padding: 7px 0 7px 26px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink);
}

.cv-interests li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--blue);
}

/* ── Expertise technique — fiche « label : valeur » ── */
.cv-block {
    margin-bottom: 34px;
}

.cv-block:last-child {
    margin-bottom: 0;
}

.cv-block-title {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--ink);
    margin-bottom: 8px;
}

.cv-block-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
    margin-left: 18px;
}

.cv-line {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: baseline;
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.cv-line:last-child {
    border-bottom: none;
}

.cv-line-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-soft);
}

/* Deux-points précédés d'une espace insécable */
.cv-line-label::after {
    content: '\00a0:';
}

.cv-line-value {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
}

/* ── Expérience — mini-timeline ── */
.cv-tl-item {
    position: relative;
    padding: 0 0 36px 30px;
    border-left: 1px solid var(--line);
}

.cv-tl-item:last-child {
    padding-bottom: 2px;
}

/* Tick carré bleu sur le filet */
.cv-tl-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 4px;
    width: 7px;
    height: 7px;
    background: var(--blue);
}

.cv-tl-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.cv-tl-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 6px;
}

.cv-tl-head h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(22px, 2.4vw, 27px);
    letter-spacing: -.01em;
    line-height: 1.15;
}

.cv-tl-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
}

.cv-tl-org {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

/* Puces fines (tirets) */
.cv-tl-item ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cv-tl-item ul li {
    position: relative;
    padding-left: 24px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.cv-tl-item ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .8em;
    width: 11px;
    height: 1px;
    background: color-mix(in srgb, var(--ink) 45%, transparent);
}

/* ── Formation et certification ── */
.cv-edu-row {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.cv-edu-row:first-of-type {
    padding-top: 0;
}

.cv-edu-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cv-edu-row h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -.01em;
    margin-bottom: 4px;
}

.cv-edu-row p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.cv-edu-row--cert {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 24px;
    align-items: start;
}

.cv-edu-row--cert img {
    width: 72px;
    border: 1px solid var(--line);
    border-radius: 2px;
}

/* ── Projets techniques majeurs ── */
.cv-project {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.cv-project:first-of-type {
    padding-top: 0;
}

.cv-project:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cv-project h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -.01em;
    margin-bottom: 6px;
}

.cv-project p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.cv-project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    transition: color .25s ease, border-color .25s ease;
}

.cv-project-link::after {
    content: '→';
    transition: transform .3s var(--ease);
}

.cv-project-link:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.cv-project-link:hover::after {
    transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }

    .cv-side {
        position: static;
    }
}

@media (max-width: 768px) {
    .cv-line {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 10px 0;
    }

    .cv-tl-item {
        padding-left: 22px;
    }

    .cv-card-head {
        margin-bottom: 20px;
    }
}
