/* ============================================
   TFA Consulting — Page CV du fondateur
   Feuille dédiée, chargée APRÈS style.css
   ============================================ */

.nav a.is-active { color: var(--text); }

/* ===== Hero CV ===== */
.cv-hero {
  padding: 165px 0 90px;
  position: relative;
  text-align: center;
}
.cv-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cv-hero .hero__eyebrow { margin-bottom: 34px; }

.cv-avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  box-shadow:
    0 14px 45px rgba(234, 87, 13, 0.45),
    0 0 0 6px rgba(234, 87, 13, 0.12),
    0 0 0 12px rgba(120, 33, 126, 0.08);
  margin-bottom: 30px;
}

.cv-hero__name {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 74px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cv-hero__title {
  font-size: clamp(16.5px, 2.2vw, 20px);
  font-weight: 500;
  color: var(--text);
  max-width: 640px;
  margin-bottom: 10px;
}
.cv-hero__loc {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 30px;
}

.cv-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 38px;
  padding: 0;
}
.cv-chips li {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(234, 87, 13, 0.35);
  background: linear-gradient(120deg, rgba(234, 87, 13, 0.10), rgba(120, 33, 126, 0.14));
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cv-chips li:hover {
  border-color: var(--purple-light);
  transform: translateY(-2px);
}

.cv-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Contact affiché uniquement à l'impression */
.print-contact { display: none; }

/* ===== Profil ===== */
.cv-profile p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 20px;
}
.cv-profile p:last-child { margin-bottom: 0; }
.cv-profile strong { color: var(--text); font-weight: 600; }

/* ===== Timeline expérience ===== */
.timeline {
  position: relative;
  max-width: 880px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-light) 40%, var(--purple-light) 100%);
  opacity: 0.55;
}

.xp {
  position: relative;
  padding: 0 0 52px 52px;
}
.xp:last-child { padding-bottom: 0; }
.xp::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow:
    0 0 0 4px rgba(234, 87, 13, 0.16),
    0 0 18px rgba(234, 87, 13, 0.65);
}

.xp__period {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.xp__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  text-transform: none;
  letter-spacing: 0.03em;
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
}
.xp__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
  animation: pulse 2s infinite;
}
.xp__badge--soft {
  color: var(--purple-light);
  border-color: rgba(180, 76, 192, 0.35);
  background: rgba(180, 76, 192, 0.08);
}

.xp__role {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.xp__org {
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 500;
  margin-bottom: 16px;
}

.xp__points {
  list-style: none;
  margin-bottom: 18px;
  padding: 0;
}
.xp__points li {
  position: relative;
  color: var(--muted);
  font-size: 15.5px;
  padding-left: 22px;
  margin-bottom: 8px;
}
.xp__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--grad);
  transform: rotate(45deg);
}

.xp__env {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.xp__env li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 4px 11px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.xp:hover .xp__env li { border-color: rgba(234, 87, 13, 0.3); }

/* ===== Projets & réalisations ===== */
.cv-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cv-project {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 28px 26px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cv-project:hover {
  transform: translateY(-5px);
  border-color: rgba(180, 76, 192, 0.5);
  background: rgba(255, 255, 255, 0.05);
}
.cv-project__accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
}
.cv-project--ace .cv-project__accent { background: linear-gradient(90deg, #EA570D, #B44CC0); }
.cv-project--frynov .cv-project__accent { background: linear-gradient(90deg, #C2410C, #EAB308); }
.cv-project--ancestree .cv-project__accent { background: linear-gradient(90deg, #78217E, #2D7E5A); }

.cv-project h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}
.cv-project p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}
.cv-project__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.cv-project__links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--orange-light);
  transition: color 0.2s ease, transform 0.2s ease;
}
.cv-project__links a:hover {
  color: var(--purple-light);
  transform: translateX(3px);
}

/* ===== Compétences ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.skill-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 87, 13, 0.45);
  background: rgba(255, 255, 255, 0.05);
}
.skill-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(234, 87, 13, 0.3);
}
.skill-card__icon svg { width: 23px; height: 23px; }
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.skill-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.skill-card__chips li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.skill-card__chips li:hover {
  border-color: var(--purple-light);
  color: var(--text);
}

/* ===== Formation & certifications ===== */
.edu-list {
  display: grid;
  gap: 14px;
}
.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.edu-item:hover {
  transform: translateY(-3px);
  border-color: rgba(234, 87, 13, 0.45);
  background: rgba(255, 255, 255, 0.05);
}
.edu-item__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(234, 87, 13, 0.16), rgba(120, 33, 126, 0.22));
  border: 1px solid rgba(234, 87, 13, 0.3);
  color: var(--orange-light);
}
.edu-item__icon svg { width: 23px; height: 23px; }
.edu-item__body h3 {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.edu-item__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange-light);
  margin-bottom: 4px;
}
.edu-item__note {
  color: var(--muted);
  font-size: 14.5px;
}

/* ===== Langues ===== */
.langs {
  display: grid;
  gap: 26px;
  max-width: 640px;
}
.lang__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}
.lang__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.lang__level {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange-light);
}
.lang__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  overflow: hidden;
}
.lang__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(234, 87, 13, 0.5);
}

/* ===== CTA final ===== */
.cv-cta__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .cv-projects { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .cv-hero { padding: 130px 0 70px; }
  .cv-avatar { width: 96px; height: 96px; font-size: 33px; }
  .cv-hero__actions { flex-direction: column; align-items: stretch; width: min(340px, 100%); }
  .cv-hero__actions .btn { justify-content: center; }

  .timeline::before { left: 6px; }
  .xp { padding-left: 34px; padding-bottom: 44px; }
  .xp::before { left: 0; width: 13px; height: 13px; }

  .skills-grid { grid-template-columns: 1fr; }
  .edu-item { padding: 20px; gap: 16px; }
}

/* ============================================
   Impression — CV propre sur 2 pages A4 max
   ============================================ */
@media print {
  @page { margin: 13mm 14mm; }

  html { scroll-padding-top: 0; }
  body {
    background: #fff !important;
    color: #16121a !important;
    font-size: 10pt;
    line-height: 1.45;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Masquer l'interface écran */
  .header,
  .footer,
  .whatsapp-fab,
  .bg-glow,
  .cv-cta,
  .cv-hero__actions,
  .hero__eyebrow { display: none !important; }

  /* Les animations reveal ne doivent jamais cacher le contenu imprimé */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  a { color: #16121a !important; text-decoration: none !important; }
  a[href]::after { content: none !important; }

  .container,
  .container--narrow { width: 100%; }

  .section,
  .cv-section { padding: 0 0 20pt !important; background: none !important; }
  .section--alt { background: none !important; }
  .section__head { margin-bottom: 12pt; max-width: none; }
  .section__eyebrow { color: #b3410a !important; font-size: 8.5pt; margin-bottom: 4pt; }
  .section__title { font-size: 15pt !important; color: #16121a !important; margin-bottom: 4pt; }
  .section__title br { display: none; }
  .section__sub { display: none; }

  .grad-text {
    background: none !important;
    color: #16121a !important;
    -webkit-text-fill-color: #16121a !important;
  }

  /* Hero compact */
  .cv-hero { padding: 0 0 14pt; text-align: left; }
  .cv-hero__inner { align-items: flex-start; }
  .cv-avatar {
    width: 52pt;
    height: 52pt;
    font-size: 18pt;
    background: none !important;
    color: #b3410a !important;
    border: 2pt solid #b3410a;
    box-shadow: none;
    margin-bottom: 8pt;
  }
  .cv-hero__name { font-size: 24pt; margin-bottom: 4pt; color: #16121a !important; }
  .cv-hero__title { font-size: 11.5pt; color: #3c3544; margin-bottom: 2pt; }
  .cv-hero__loc { font-size: 9.5pt; color: #5c5468; margin-bottom: 8pt; }

  .cv-chips { margin-bottom: 8pt; gap: 5pt; }
  .cv-chips li {
    background: none;
    border: 1pt solid #c9c2d1;
    color: #3c3544;
    font-size: 7.5pt;
    padding: 2pt 8pt;
  }

  .print-contact {
    display: block;
    font-family: var(--font-mono);
    font-size: 8.5pt;
    color: #5c5468;
    border-top: 1pt solid #ddd7e3;
    padding-top: 6pt;
    width: 100%;
  }

  /* Profil */
  .cv-profile p { font-size: 9.5pt; color: #3c3544; margin-bottom: 6pt; }
  .cv-profile strong { color: #16121a; }

  /* Timeline compactée */
  .timeline { max-width: none; }
  .timeline::before { background: #c9c2d1; opacity: 1; left: 4pt; top: 4pt; bottom: 4pt; width: 1pt; }
  .xp { padding: 0 0 12pt 18pt; break-inside: avoid; }
  .xp::before {
    left: 1pt;
    top: 3pt;
    width: 7pt;
    height: 7pt;
    background: #b3410a;
    box-shadow: none;
  }
  .xp__period { color: #b3410a !important; font-size: 8pt; margin-bottom: 2pt; }
  .xp__badge { color: #1a7a3d; border-color: #1a7a3d; background: none; font-size: 7pt; padding: 1pt 6pt; }
  .xp__badge-dot { display: none; }
  .xp__badge--soft { color: #6b2071; border-color: #6b2071; }
  .xp__role { font-size: 11pt; color: #16121a; margin-bottom: 1pt; }
  .xp__org { font-size: 9pt; color: #5c5468; margin-bottom: 5pt; }
  .xp__points { margin-bottom: 5pt; }
  .xp__points li { font-size: 9pt; color: #3c3544; padding-left: 12pt; margin-bottom: 2pt; }
  .xp__points li::before { background: #b3410a; width: 4pt; height: 4pt; top: 0.5em; left: 1pt; }
  .xp__env { gap: 4pt; }
  .xp__env li,
  .xp:hover .xp__env li {
    border: 1pt solid #c9c2d1;
    background: none;
    color: #5c5468;
    font-size: 7pt;
    padding: 1pt 6pt;
  }

  /* Projets */
  .cv-projects { grid-template-columns: repeat(3, 1fr); gap: 8pt; }
  .cv-project {
    border: 1pt solid #ddd7e3;
    background: none;
    padding: 8pt 10pt;
    break-inside: avoid;
  }
  .cv-project__accent { height: 2pt; }
  .cv-project h3 { font-size: 10.5pt; color: #16121a; margin-bottom: 3pt; }
  .cv-project p { font-size: 8.5pt; color: #3c3544; margin-bottom: 5pt; }
  .cv-project__links a { font-size: 8pt; color: #b3410a !important; }

  /* Compétences */
  .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 8pt; }
  .skill-card {
    border: 1pt solid #ddd7e3;
    background: none;
    padding: 8pt 10pt;
    break-inside: avoid;
  }
  .skill-card__icon { display: none; }
  .skill-card h3 { font-size: 9.5pt; color: #16121a; margin-bottom: 5pt; }
  .skill-card__chips { gap: 3pt; }
  .skill-card__chips li { border: 1pt solid #c9c2d1; color: #3c3544; font-size: 7pt; padding: 1pt 6pt; }

  /* Formation */
  .edu-list { gap: 5pt; }
  .edu-item {
    border: 1pt solid #ddd7e3;
    background: none;
    padding: 6pt 10pt;
    gap: 8pt;
    break-inside: avoid;
  }
  .edu-item__icon { display: none; }
  .edu-item__body h3 { font-size: 9.5pt; color: #16121a; margin-bottom: 1pt; }
  .edu-item__meta { font-size: 8pt; color: #b3410a; margin-bottom: 1pt; }
  .edu-item__note { font-size: 8pt; color: #5c5468; }

  /* Langues */
  .langs { gap: 8pt; max-width: 70%; }
  .lang__head { margin-bottom: 3pt; }
  .lang__name { font-size: 9.5pt; color: #16121a; }
  .lang__level { font-size: 8pt; color: #b3410a; }
  .lang__bar { height: 5pt; background: #eee9f1; border: 1pt solid #ddd7e3; }
  .lang__fill { background: #b3410a; box-shadow: none; }
}
