
/* =====================================================
   PAGE CV — IDENTITÉ VISUELLE DU PORTFOLIO
   Compatible avec style.css
===================================================== */

/* 1. BASE */

.cv-page {
  overflow: hidden;
}

.cv-page p {
  color: var(--text-muted);
}

.cv-page h1,
.cv-page h2,
.cv-page h3 {
  color: var(--text);
}

.cv-section-number {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

/* 2. HERO CV */

.cv-hero {
  padding: 100px 0 85px;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.cv-eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.cv-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 20px;
}

.cv-intro {
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.cv-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* 3. BOUTONS CV */

.cv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s, background-color 0.2s;
}

.cv-button:hover {
  transform: translateY(-3px);
}

.cv-button-primary {
  background: var(--accent);
  color: #fff;
}

.cv-button-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.cv-button-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg);
}

.cv-button-secondary:hover {
  background: var(--bg-alt);
  color: var(--text);
}

/* 4. PROFIL */

.cv-profile {
  padding: 85px 0;
}

.cv-profile-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.cv-profile-heading h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cv-speciality {
  color: var(--accent) !important;
  font-weight: 600;
  line-height: 1.6;
}

.cv-profile-description p {
  line-height: 1.9;
  margin-bottom: 16px;
}

/* 5. SECTIONS */

.cv-section {
  padding: 80px 0;
}

.cv-section-alt {
  background: var(--bg-alt);
}

.cv-section h2,
.cv-document-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 42px;
}

/* 6. FORMATION — CHRONOLOGIE */

.cv-timeline {
  max-width: 850px;
  margin-left: 10px;
  border-left: 2px solid var(--border);
}

.cv-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  padding: 0 0 42px 35px;
}

.cv-timeline-item:last-child {
  padding-bottom: 0;
}

.cv-timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.cv-date {
  color: var(--accent) !important;
  font-size: 0.9rem;
  font-weight: 700;
}

.cv-timeline-item h3,
.cv-experience h3,
.cv-project h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.cv-institution {
  font-weight: 600;
  margin-bottom: 12px;
}

.cv-timeline-item p,
.cv-experience p,
.cv-project p {
  line-height: 1.8;
}

/* 7. EXPERIENCES */

.cv-experience {
  padding: 30px;
  margin-bottom: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.cv-experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.cv-experience ul,
.cv-complements-grid ul {
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 2;
}

.cv-experience li::marker {
  color: var(--accent);
}

/* 8. PROJETS */

.cv-project {
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
}

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

/* 9. COMPETENCES */

.cv-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cv-skill {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cv-skill:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.cv-skill h3 {
  font-size: 1.05rem;
  margin-bottom: 15px;
}

.cv-skill h3 i {
  color: var(--accent);
  margin-right: 8px;
}

.cv-skill p {
  line-height: 1.8;
}

/* 10. LANGUES ET CERTIFICATIONS */

.cv-complements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}

.cv-complements-grid h3 {
  margin-bottom: 15px;
}

/* 11. DOCUMENT PDF */

.cv-document-section {
  padding: 85px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cv-document-section > .container > p {
  margin-bottom: 30px;
  line-height: 1.7;
}

.cv-pdf-container {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.cv-pdf-container iframe {
  display: block;
  width: 100%;
  height: 850px;
  border: none;
}

.cv-document-action {
  margin-top: 25px;
}

/* 12. RESPONSIVE */

@media (max-width: 900px) {

  .cv-profile-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .cv-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 720px) {

  .cv-hero {
    padding: 70px 0 60px;
  }

  .cv-profile,
  .cv-section,
  .cv-document-section {
    padding: 60px 0;
  }

  .cv-profile-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cv-timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 25px;
  }

  .cv-experience-header {
    flex-direction: column;
    gap: 5px;
  }

  .cv-complements-grid,
  .cv-skills-grid {
    grid-template-columns: 1fr;
  }

  .cv-pdf-container iframe {
    height: 600px;
  }

}

@media (max-width: 480px) {

  .cv-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cv-button {
    width: 100%;
  }

  .cv-experience {
    padding: 22px;
  }

  .cv-pdf-container iframe {
    height: 500px;
  }

}
