/* ===== STYLES COHÉRENTS AVEC LE DESIGN EXISTANT ===== */

/* Section BTS SIO - Style cohérent */
.facts {
  background: var(--white);
  position: relative;
}

.facts::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(5, 99, 187, 0.02) 0%, rgba(0, 225, 255, 0.02) 100%);
  z-index: 0;
}

.facts .container {
  position: relative;
  z-index: 1;
}

/* Onglets formation - Style cohérent avec la navigation */
.formation-tabs {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}

.formation-tab {
  cursor: pointer;
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-color-light);
  margin: 5px;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background: rgba(245, 245, 245, 0.8);
  border: none;
  position: relative;
  overflow: hidden;
}

.formation-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.formation-tab:hover::before {
  left: 100%;
}

.formation-tab:hover,
.formation-tab.active {
  color: var(--white);
  background: var(--gradient-primary);
  box-shadow: 0 5px 15px rgba(5, 99, 187, 0.4);
  transform: translateY(-3px);
}

.formation-content {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.formation-content.active {
  display: block;
}

/* Cards formation - Style cohérent avec les skills cards */
.formation-box {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.formation-box:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.formation-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--primary-color);
  transition: transform 0.5s ease;
}

.formation-box:hover .formation-icon {
  transform: rotate(10deg) scale(1.1);
}

.formation-box h4 {
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.formation-box h4::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.formation-box:hover h4::after {
  width: 80%;
}

.formation-box p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color-light);
}

/* SISR skill cards - Style cohérent */
.sisr-skill-card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
}

.sisr-skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sisr-skill-icon {
  width: 60px;
  height: 60px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef7ff;
  border-radius: 50px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sisr-skill-card:hover .sisr-skill-icon {
  background: var(--primary-color);
  transform: scale(1.1);
}

.sisr-skill-icon i {
  font-size: 24px;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.sisr-skill-card:hover .sisr-skill-icon i {
  color: var(--white);
}

.sisr-skill-text h5 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.sisr-skill-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-color-light);
}

/* Experience cards - Style cohérent */
.experience-card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.experience-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 18px;
}

.experience-card ul {
  margin-top: 15px;
  padding-left: 20px;
}

.experience-card li {
  margin-bottom: 8px;
  color: var(--text-color);
}

/* Boutons expérience - Style cohérent avec les filtres portfolio */
.experience-buttons {
  padding: 0;
  margin: 0 auto 25px auto;
  list-style: none;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.experience-button {
  cursor: pointer;
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-color-light);
  margin: 5px;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background: rgba(245, 245, 245, 0.8);
  border: none;
  position: relative;
  overflow: hidden;
}

.experience-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.experience-button:hover::before {
  left: 100%;
}

.experience-button:hover,
.experience-button.active {
  color: var(--white);
  background: var(--gradient-primary);
  box-shadow: 0 5px 15px rgba(5, 99, 187, 0.4);
  transform: translateY(-3px);
}

.experience-section {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.experience-section.active {
  display: block;
}

/* Date badges - Style cohérent */
.date-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  background-color: #f8f9fa;
  font-size: 12px;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  font-weight: 600;
}

.date-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Skill badges - Style cohérent */
.skill-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: #f8f9fa;
  border-radius: 15px;
  font-size: 12px;
  margin: 2px;
  color: var(--text-color);
  transition: all 0.3s ease;
  font-weight: 500;
}

.skill-badge:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Cards générales - Style cohérent */
.card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 30px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Headers avec badges */
.header-with-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(5, 99, 187, 0.1);
}

.header-with-badges h4 {
  margin-right: 15px;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 20px;
}

/* Tech badges dans headers */
.header-with-badges .tech-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: #f8f9fa;
  border-radius: 15px;
  font-size: 12px;
  margin: 2px;
  color: var(--text-color);
  font-weight: 500;
}

/* Métriques - Style cohérent */
.metric-card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  padding: 20px;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1;
}

.metric-title {
  font-size: 14px;
  color: var(--text-color-light);
  margin: 0;
  font-weight: 500;
}

/* Site links - Style cohérent avec bouton CV */
.site-link {
  display: inline-block;
  padding: 8px 20px;
  margin: 10px 0;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  border-radius: 25px;
  background: var(--gradient-primary);
  box-shadow: 0 5px 15px rgba(5, 99, 187, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.site-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.site-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(5, 99, 187, 0.6);
  color: var(--white);
}

.site-link:hover::before {
  left: 100%;
}

/* Complexity filter - Style cohérent */
.complexity-filter {
  text-align: center;
  margin-bottom: 30px;
}

.complexity-btn {
  cursor: pointer;
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-color-light);
  margin: 3px;
  transition: all 0.3s ease-in-out;
  border-radius: 20px;
  background: rgba(245, 245, 245, 0.8);
  border: none;
}

.complexity-btn:hover,
.complexity-btn.active {
  color: var(--white);
  background: var(--gradient-primary);
  box-shadow: 0 3px 10px rgba(5, 99, 187, 0.4);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .formation-tabs,
  .experience-buttons {
    flex-direction: column;
    align-items: center;
  }

  .formation-tab,
  .experience-button {
    margin: 5px 0;
    width: 200px;
  }

  .sisr-skill-card {
    flex-direction: column;
    text-align: center;
  }

  .sisr-skill-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .header-with-badges {
    flex-direction: column;
    align-items: flex-start;
  }
}
