/* =========================================================
   CV — Tristan Carron · v2
   La feuille posée sur le bureau, en version moderne.
   Même ADN que le site : terracotta · encre · Fraunces · mono
   ========================================================= */
:root {
    --terra: #D89584; --terra-deep: #b56b56; --terra-tint: #D8958424;
    --ink: #211d3a; --ink-2: #2b2647; --text: #2a2733; --muted: #6b6678; --line: #ebe5df;
    --paper: #ffffff; --ok: #3aa36a;
    --f-display: "Fraunces", Georgia, serif;
    --f-body: "Manrope", system-ui, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; font-family: var(--f-body); color: var(--text); line-height: 1.5;
    background: #3d3a46; padding: 84px 16px 64px; position: relative; -webkit-font-smoothing: antialiased;
}
/* le bureau : photo réelle floutée + vignette */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -2;
    background: url("IMG/fond.png") center / cover no-repeat;
    filter: saturate(1.05) brightness(.78) blur(8px); transform: scale(1.12);
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 30%, rgba(255,246,232,.14), transparent 45%), radial-gradient(150% 130% at 50% 40%, transparent 40%, rgba(12,10,22,.6) 100%);
}
a { color: inherit; text-decoration: none; }
b { color: var(--ink); }

/* ---------- barre d'outils ---------- */
.toolbar {
    position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 10; width: min(860px, calc(100% - 24px));
    display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 14px;
    background: rgba(23,20,42,.86); backdrop-filter: blur(12px); color: #e7e3f0; font-size: .84rem;
    box-shadow: 0 18px 40px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.07);
}
.toolbar__back { font-weight: 700; white-space: nowrap; }
.toolbar__back:hover { color: var(--terra); }
.toolbar__path { font-family: var(--f-mono); font-size: .74rem; color: #8e88a6; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar__langs { display: flex; gap: 2px; background: rgba(255,255,255,.06); border-radius: 9px; padding: 3px; }
.toolbar__langs a { font-family: var(--f-mono); font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 7px; color: #b9b3cc; }
.toolbar__langs a:hover { color: #fff; }
.toolbar__langs a.is-on { background: var(--terra); color: #fff; }
.toolbar__print {
    display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer; white-space: nowrap;
    background: #fff; color: var(--ink); font: 700 .8rem var(--f-body); padding: 9px 14px; border-radius: 9px; transition: background .2s, color .2s;
}
.toolbar__print:hover { background: var(--terra); color: #fff; }

/* ---------- la feuille ---------- */
.sheet {
    width: min(210mm, 100%); margin: 0 auto; background: var(--paper); display: grid; grid-template-columns: 34% 1fr;
    border-radius: 4px; overflow: hidden; position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 6px 12px rgba(0,0,0,.12), 0 30px 60px -10px rgba(0,0,0,.45), 0 60px 120px -30px rgba(0,0,0,.5);
    transform: rotate(-.35deg); animation: drop .7s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes drop { from { opacity: 0; transform: translateY(24px) rotate(-1.2deg); } }

/* colonne latérale */
.side { background: var(--ink); color: #dcd8e6; padding: 30px 24px 34px; font-size: .8rem; }
.side__photo { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 15%; border-radius: 10px; display: block; margin-bottom: 26px; box-shadow: 6px 6px 0 0 var(--terra); }
.side section + section { margin-top: 24px; }
.side__h { font-family: var(--f-mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--terra); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.side__h::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact li { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 6px; word-break: break-word; }
.contact a:hover { color: var(--terra); }
.ic { font-family: var(--f-mono); font-size: .62rem; font-weight: 700; color: var(--terra); background: rgba(216,149,132,.12); border-radius: 5px; text-align: center; padding: 2px 0; }
.sk + .sk { margin-top: 9px; }
.sk__cat { margin: 0 0 2px; font-weight: 700; color: #fff; font-size: .78rem; }
.sk__items { margin: 0; font-family: var(--f-mono); font-size: .68rem; color: #b9b3cc; line-height: 1.55; }
.langs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.langs li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.langs b { color: #fff; display: block; font-size: .8rem; }
.langs em { font-style: normal; font-size: .7rem; color: #9a94ab; }
.dots { display: flex; gap: 3px; flex: none; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.15); }
.dots i.on { background: var(--terra); }
.hobbies { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.hobbies li { font-size: .7rem; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }

/* colonne principale */
.main { padding: 34px 34px 26px; font-size: .84rem; }
.head { padding-bottom: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; }
.head__prompt { margin: 0 0 8px; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.head h1 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.head h1 span { color: var(--terra); }
.head__role { margin: 10px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--terra-deep); text-transform: uppercase; letter-spacing: .04em; }
.head__role em { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 600; }
.head__meta { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; color: #237049; background: #e6f6ec; border: 1px solid #bfe5cd; padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.block + .block { margin-top: 20px; }
.h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.h span { font-family: var(--f-mono); font-size: .64rem; font-weight: 700; background: var(--terra); color: #fff; padding: 2px 6px; border-radius: 5px; }
.h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.profile p { margin: 0 0 8px; color: var(--text); }
.profile p:last-child { color: var(--muted); font-size: .8rem; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--terra), var(--line)); }
.job { position: relative; break-inside: avoid; }
.job + .job { margin-top: 14px; }
.job::before { content: ""; position: absolute; left: -18px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--terra); }
.job:first-child::before { background: var(--terra); }
.job__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.job__head h3 { margin: 0; font-size: .95rem; font-weight: 800; color: var(--ink); font-family: var(--f-body); }
.job__dur { flex: none; font-family: var(--f-mono); font-size: .68rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.job__co { margin: 1px 0 5px; font-weight: 700; color: var(--terra-deep); font-size: .8rem; }
.job__co span { color: var(--muted); font-weight: 500; }
.job ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.job li { position: relative; padding-left: 14px; font-size: .8rem; }
.job li::before { content: "+"; position: absolute; left: 0; font-family: var(--f-mono); font-weight: 700; color: var(--ok); }

.tbl { width: 100%; border-collapse: collapse; font-size: .8rem; }
.tbl tr { border-bottom: 1px dashed var(--line); }
.tbl tr:last-child { border-bottom: 0; }
.tbl th, .tbl td { padding: 5px 0; vertical-align: top; text-align: left; }
.tbl th { font-weight: 800; color: var(--ink); padding-right: 10px; width: 40%; }
.tbl td { color: var(--muted); }
.tbl .r { text-align: right; white-space: nowrap; font-family: var(--f-mono); font-size: .7rem; padding-left: 10px; }
.year { background: var(--terra-tint); color: var(--terra-deep); font-weight: 700; padding: 1px 7px; border-radius: 5px; }
.foot { margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); font-style: italic; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
    body { padding: 76px 10px 40px; }
    .sheet { grid-template-columns: 1fr; transform: none; }
    .side { display: grid; grid-template-columns: 120px 1fr; gap: 0 20px; padding: 22px 20px; }
    .side__photo { grid-row: span 2; margin-bottom: 0; }
    .side section + section { margin-top: 0; }
    .side section { grid-column: 1 / -1; margin-top: 20px !important; }
    .side section:first-of-type { grid-column: 2; margin-top: 0 !important; }
    .main { padding: 24px 20px; }
    .head h1 { font-size: 2.1rem; }
    .toolbar__path { display: none; }
    .toolbar__back { margin-right: auto; }
    .tbl th { width: auto; }
    .tbl tr { display: grid; grid-template-columns: 1fr auto; }
    .tbl td:not(.r) { grid-column: 1 / -1; grid-row: 2; padding-top: 0; }
}
@media (max-width: 460px) {
    .toolbar { gap: 8px; padding-left: 12px; }
    .toolbar__print { padding: 9px 10px; font-size: 0; gap: 0; }
    .toolbar__print svg { width: 16px; height: 16px; }
    .side { grid-template-columns: 92px 1fr; }
}

/* ---------- impression / PDF ---------- */
@page { size: A4; margin: 0; }
@media print {
    body { background: #fff; padding: 0; }
    body::before, body::after, .toolbar { display: none !important; }
    .sheet { width: 210mm; min-height: 297mm; box-shadow: none; transform: none; border-radius: 0; animation: none; }
    .side, .h span, .ic, .dots i.on, .year, .status, .job:first-child::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .side { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    a { color: inherit; }
}
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
