/* ═══════════════════════════════════════════════════════════════
   CV Thomas Darmengeat — Design moderne (v2)
   Standards RH 2026 : clair, hiérarchisé, lisible, responsive
   ═══════════════════════════════════════════════════════════════ */

:root {
    --c-bg: #f5f7fa;
    --c-surface: #ffffff;
    --c-primary: #1a56db;
    --c-primary-dark: #1e40af;
    --c-accent: #0ea5e9;
    --c-text: #1e293b;
    --c-text-light: #64748b;
    --c-border: #e2e8f0;
    --c-dot-empty: #cbd5e1;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .06);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.55;
    font-size: 15px;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── En-tête ─────────────────────────────────────────────── */
.cv-header {
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 55%, var(--c-accent) 100%);
    color: #fff;
    padding: 40px 0;
}

.cv-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: center;
}

.cv-name {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
}

.cv-name span { color: #fff; font-weight: 700; }

.cv-title {
    margin-top: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #e0f2fe;
}

/* Bouton de téléchargement du CV (PDF) */
.cv-download {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 16px;
    padding: 10px 18px;
    background: #fff;
    color: var(--c-primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
    transition: transform .15s ease, box-shadow .15s ease;
}

.cv-download:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
}

.cv-download::after { content: "⤓"; }

.cv-pitch {
    font-size: 0.98rem;
    color: #f1f5f9;
    border-left: 3px solid rgba(255, 255, 255, .35);
    padding-left: 18px;
}

.cv-pitch strong { color: #fff; }

/* ── Layout 2 colonnes ───────────────────────────────────── */
.cv-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

/* ── Blocs ───────────────────────────────────────────────── */
.cv-block {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 24px;
}

.cv-block-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-primary);
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--c-primary);
    display: inline-block;
}

/* ── Sidebar : contact ───────────────────────────────────── */
.cv-contact-list { list-style: none; }

.cv-contact-list li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 5px 0;
    font-size: 0.92rem;
    color: var(--c-text-light);
}

.cv-contact-label { color: var(--c-text); }

/* ── Sidebar : compétences ───────────────────────────────── */
.cv-competence-group { margin-bottom: 14px; }
.cv-competence-group:last-child { margin-bottom: 0; }

.cv-competence-cat {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 8px;
}

.cv-competence-list { margin-bottom: 10px; }

.cv-competence-list-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-light);
    margin-bottom: 6px;
}

.cv-competence-items { list-style: none; }

.cv-competence-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.9rem;
}

.cv-competence-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.cv-competence-dots { display: inline-flex; gap: 3px; flex-shrink: 0; }

.cv-competence-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c-dot-empty);
}

.cv-competence-dots .dot.filled { background: var(--c-primary); }

/* ── Sidebar : formations ────────────────────────────────── */
.cv-formation-list { list-style: none; }

.cv-formation {
    padding: 8px 0;
    border-bottom: 1px dashed var(--c-border);
    font-size: 0.9rem;
}

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

.cv-formation-date {
    font-weight: 700;
    color: var(--c-primary);
    font-size: 0.82rem;
}

/* ── Main : expériences ──────────────────────────────────── */
.cv-main .cv-block { padding: 26px; }

/* client-section : carte client */
.client-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--c-border);
}

.client-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.client-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.client-header .logo {
    width: 56px; height: 56px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--c-border);
    padding: 6px;
}

.client-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-text);
}

.client-resume {
    font-size: 0.92rem;
    color: var(--c-text-light);
    margin-bottom: 16px;
}

/* contrat */
.contrat {
    background: #f8fafc;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
}

.contrat-header { margin-bottom: 14px; }

.contrat-header .titre {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-primary-dark);
    display: inline;
}

.contrat-header .periode {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-accent);
    background: #e0f2fe;
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.contrat-header .detail {
    font-size: 0.88rem;
    color: var(--c-text-light);
    font-style: italic;
    margin-top: 6px;
}

/* missions */
.missions-section h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-text-light);
    margin-bottom: 8px;
}

.missions-section > ul { list-style: none; }

.mission {
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    margin-bottom: 10px;
}

.mission > span {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
}

.details_mission { margin-top: 8px; }

.details_mission > span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-light);
    font-weight: 600;
}

.details_mission ul { margin: 4px 0 0 16px; }

.detail_mission { font-size: 0.88rem; color: var(--c-text); margin-bottom: 2px; }

/* technos (badges) */
.technos { margin-top: 10px; }

.technos > span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-light);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.technos ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.techno {
    background: #eff6ff;
    color: var(--c-primary-dark);
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 2px 9px;
    font-size: 0.78rem;
    font-weight: 500;
}

.techno_version { color: var(--c-text-light); font-weight: 400; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
    .cv-header-inner { grid-template-columns: 1fr; gap: 18px; }
    .cv-layout { grid-template-columns: 1fr; }
    .cv-name { font-size: 1.9rem; }
}

/* ── Impression : masquer le web, montrer le print ───────── */
@media print {
    #web-content { display: none !important; }
    #print-only-content { display: block !important; }
}

@media screen {
    #print-only-content { display: none !important; }
}
