/* ========================================
   CV Custom Styles - Eric LEFEBVRE
   ======================================== */

/* --- Timeline --- */
.cv-timeline {
  position: relative;
  padding-left: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.cv-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #1abc9c;
  border-radius: 2px;
}

.cv-timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.cv-timeline-marker {
  position: absolute;
  left: -33px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1abc9c;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #1abc9c;
  z-index: 1;
}

.cv-timeline-content {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #1abc9c;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.cv-timeline-content h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  font-weight: 700;
}

.cv-timeline-content .subheading {
  font-size: 1rem;
  text-transform: none;
  color: #6c757d;
  font-weight: 500;
}

/* --- Company Logo --- */
.cv-company-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f9fa;
  padding: 4px;
}

/* --- Date Badge --- */
.cv-date {
  color: #1abc9c;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* --- Tags --- */
.cv-tags .badge {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35em 0.65em;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

.cv-tags .badge-primary {
  background-color: #1abc9c;
  color: #fff;
}

.cv-tags .badge-secondary {
  background-color: #2c3e50;
  color: #fff;
}

/* --- Skill Icons --- */
.cv-skill-icon {
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
  margin-right: 4px;
  vertical-align: middle;
}

.cv-skill span:first-child {
  font-weight: 600;
  font-size: 1rem;
}

/* --- Progress Bars (Compétences) --- */
.progress {
  height: 14px;
  border-radius: 7px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #ffffff, #d4efdf);
  border-radius: 7px;
  transition: width 1s ease-in-out;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* --- Quality / Interest Icons --- */
.cv-quality-icon {
  padding: 1rem 0.5rem;
}

.cv-quality-icon i {
  opacity: 0.9;
}

.cv-quality-icon p {
  margin-bottom: 0;
  font-weight: 500;
  font-size: 0.95rem;
}

/* --- Formation Items --- */
.cv-formation-item {
  padding: 1.2rem 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #1abc9c;
  transition: transform 0.2s ease;
}

.cv-formation-item:hover {
  transform: translateX(5px);
}

.cv-formation-year .badge-lg {
  font-size: 1.1rem;
  padding: 0.6em 1em;
  min-width: 70px;
}

.cv-formation-item h4 {
  color: #2c3e50;
  font-weight: 700;
}

/* --- Project Cards --- */
.cv-project-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.cv-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cv-project-card .card-title {
  font-weight: 700;
  color: #2c3e50;
}

/* --- Contact Cards --- */
.cv-contact-card {
  padding: 2rem 1rem;
}

.cv-contact-card h5 {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.cv-contact-card a {
  color: #1abc9c;
  text-decoration: none;
}

.cv-contact-card a:hover {
  color: #16a085;
  text-decoration: underline;
}

/* --- Section bg-light override --- */
.bg-light {
  background-color: #f4f6f9 !important;
}

/* --- Masthead improvements --- */
.masthead-avatar.rounded-circle {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.3);
}

.masthead .mt-3 span {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .cv-timeline {
    padding-left: 30px;
  }

  .cv-timeline::before {
    left: 10px;
  }

  .cv-timeline-marker {
    left: -27px;
    width: 14px;
    height: 14px;
  }

  .cv-date {
    margin-top: 0.5rem;
    display: block;
  }

  .cv-company-logo {
    width: 40px;
    height: 40px;
  }

  .masthead .mt-3 span {
    display: block;
    margin-bottom: 0.3rem;
  }
}

/* --- Smooth scroll behavior --- */
html {
  scroll-behavior: smooth;
}

/* --- Badge primary override for formation --- */
.badge-primary {
  background-color: #1abc9c !important;
}

/* --- btn-primary override --- */
.btn-primary {
  background-color: #1abc9c !important;
  border-color: #1abc9c !important;
}

.btn-primary:hover {
  background-color: #16a085 !important;
  border-color: #16a085 !important;
}
