/* ══════════════════════════════════════════════════════════════════════════════
   XCOMPANY — BLOC CV (intégré dans la page À propos)
   Chargé par about.html, après style.css et about.css.
════════════════════════════════════════════════════════════════════════════════ */

/* ══ CONTENEUR DE SECTION ══
   Reprend la convention des autres sections de À propos : 8rem var(--px). */
.ab-cv {
  padding: 8rem var(--px);
  border-top: 1px solid var(--div);
}
.ab-cv-header { margin-bottom: 4rem; }
.ab-cv-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-top: 1rem;
}

/* ══ INTRO : identité, liens, boutons, portrait ══ */
.cv-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  margin-bottom: 1rem;
}
.cv-intro-name {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .6rem;
}
.cv-role {
  font-family: var(--FS);
  font-style: italic;
  font-size: clamp(.95rem, 2vw, 1.3rem);
  color: var(--light);
  margin-bottom: 1.2rem;
}
.cv-meta {
  font-size: .82rem;
  color: var(--gray);
  margin-bottom: 1.8rem;
}
.cv-meta a:hover { color: var(--violet); }
.cv-photo {
  width: clamp(130px, 16vw, 190px);
  height: clamp(130px, 16vw, 190px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--vmid);
  box-shadow: var(--vglow);
}

/* ══ BOUTONS ══ */
.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.6rem;
  border-radius: var(--r);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .35s var(--eout);
}
.cv-btn-primary {
  background: var(--violet);
  color: #fff;
}
.cv-btn-primary:hover {
  box-shadow: var(--vglow);
  transform: translateY(-2px);
}
.cv-btn-ghost {
  border: 1px solid var(--div);
  color: var(--light);
}
.cv-btn-ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
}

/* ══ CHIFFRES CLÉS ══ */
.cv-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--div);
  margin: 3rem 0;
}
.cv-stat {
  background: var(--bg2);
  padding: 2rem 1.6rem;
}
.cv-stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--violet);
  margin-bottom: .4rem;
}
.cv-stat-label {
  font-size: .78rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ══ SOUS-SECTIONS ══
   Pas de padding horizontal : le conteneur .ab-cv fournit déjà la gouttière. */
.cv-section {
  padding: 2.8rem 0;
  border-top: 1px solid var(--div);
}
.cv-section-label {
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1.8rem;
}
.cv-profile {
  max-width: 68ch;
  color: var(--light);
  font-size: .95rem;
}

/* ══ EXPÉRIENCES ══ */
.cv-entry {
  border-left: 2px solid var(--vmid);
  padding: 0 0 2.4rem 1.8rem;
  position: relative;
}
.cv-entry:last-child { padding-bottom: 0; }
.cv-entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  align-items: baseline;
  margin-bottom: .3rem;
}
.cv-entry-title {
  font-size: 1.02rem;
  font-weight: 700;
}
.cv-entry-period {
  font-size: .7rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--vsoft);
  color: var(--violet);
  white-space: nowrap;
}
.cv-entry-sub {
  font-family: var(--FS);
  font-style: italic;
  font-size: .86rem;
  color: var(--gray);
  margin-bottom: .9rem;
}
.cv-entry ul { display: grid; gap: .5rem; }
.cv-entry li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .88rem;
  color: var(--light);
}
.cv-entry li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--violet);
}

/* ══ DISTINCTION ══ */
.cv-award {
  background: var(--bg2);
  border-left: 3px solid var(--violet);
  padding: 1.3rem 1.6rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: .92rem;
}
.cv-award strong { color: var(--violet); }

/* ══ FORMATION ══ */
.cv-edu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--div);
  font-size: .9rem;
}
.cv-edu:last-child { border-bottom: none; }
.cv-edu-year { color: var(--violet); font-size: .82rem; }

/* ══ COMPÉTENCES ══ */
.cv-skill-group { margin-bottom: 1.8rem; }
.cv-skill-group:last-child { margin-bottom: 0; }
.cv-skill-title {
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: .8rem;
}
.cv-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.cv-tag {
  padding: .45rem .9rem;
  border: 1px solid var(--div);
  border-radius: 999px;
  font-size: .76rem;
  color: var(--light);
  transition: all .3s var(--eout);
}
.cv-tag:hover {
  border-color: var(--violet);
  color: var(--violet);
}

/* ══ PUBLICATIONS ══ */
.cv-pub { margin-bottom: 1.4rem; font-size: .9rem; }
.cv-pub:last-child { margin-bottom: 0; }
.cv-pub-title { font-weight: 700; margin-bottom: .5rem; }
.cv-pub ul { display: grid; gap: .4rem; padding-left: 1.1rem; }
.cv-pub li {
  position: relative;
  color: var(--light);
  font-size: .86rem;
}
.cv-pub li::before {
  content: '·';
  position: absolute;
  left: -.9rem;
  color: var(--violet);
}

/* ══ LANGUES ══ */
.cv-langs { font-size: .9rem; color: var(--light); }

/* ══ MOBILE ══ */
@media (max-width: 768px) {
  .ab-cv { padding: 4rem var(--pxs); }
  .ab-cv-header { margin-bottom: 2.5rem; }
  .cv-intro {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.8rem;
  }
  .cv-photo { margin: 0 auto; order: -1; }
  .cv-actions { justify-content: center; }
  .cv-stats { margin: 2rem 0; }
  .cv-entry-head { justify-content: flex-start; }
}
