/* CompetenceDetail.css - For individual competences pages */
@import './variables.css';
@import './utilities.css';

/* Competences header wrapper styling */
.competences-header-wrapper {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #000000;
  margin-bottom: 5rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

/* Specific background images */
.P-I {
  background-image: url('../images/Propriete_Intellectuelle.jpg');
}

.P-I::before {
  background-color: rgba(255, 255, 255, 0.6) !important;
}

.D-I {
  background-image: url('../images/Droit_Informatique.jpg');
}

.C-C {
  background-image: url('../images/Contentieux_Commercial.jpg');
}

.D-C {
  background-image: url('../images/Droits_Contrats.jpg');
}

.D-P {
  background-image: url('../images/Data_Personnelles.jpg');
}

.D-R {
  background-image: url('../images/Droit_Equin.jpg');
}

/* Competences header styling */
.competences-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 2rem;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.competences-header h1 {
  font-family: var(--font-primary, 'Montserrat');
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #000000;
  text-align: center;
  position: relative;
  margin: 0;
  padding: 0 4rem;
}

.competence-title {
  margin-bottom: 1rem;
}

.competences-header h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--coral);
  margin: 1rem auto 0;
}

.competences-header-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

/* Navigation arrows */
.competences-nav-arrow {
  background: none;
  border: none;
  color: var(--black);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-normal);
  position: relative;
  z-index: 3;
}

.competences-nav-arrow:hover {
  color: var(--blue);
}

.competences-nav-arrow.left {
  position: absolute;
  left: 2rem;
}

.competences-nav-arrow.right {
  position: absolute;
  right: 2rem;
}

.arrow {
  font-size: 1.5rem;
  font-weight: bold;
}

.arrow-text {
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 0;
  overflow: hidden;
}

.competences-nav-arrow:hover .arrow-text {
  opacity: 1;
  transform: translateX(0);
  max-width: 200px;
}

/* Competence detail content */
.competence-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  line-height: 1.6;
}

.competence-detail h2 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 2.5rem;
  color: var(--black);
  margin-bottom: 2rem;
  text-align: center;
}

.competence-detail h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--black);
  margin: 2rem 0 1rem;
}

.competence-detail p {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 1rem;
}

.competence-detail ul {
  margin: 1rem 0 1rem 2rem;
}

.competence-detail li {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.competence-detail strong {
  color: var(--blue);
  font-weight: 600;
}

/* Back button */
.competence-detail button {
  background-color: var(--blue);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: background-color var(--transition-normal);
  margin: 2rem 0;
}

.competence-detail button:hover {
  background-color: #0056b3;
}

/* Related content */
.related-content {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.related-content h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--black);
  margin-bottom: 1rem;
}

.related-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-content li {
  margin-bottom: 0.5rem;
}

.related-content a {
  color: var(--blue);
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: color var(--transition-normal);
}

.related-content a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .competences-header {
    min-height: 300px;
    padding: 1rem;
  }

  .competences-header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    padding: 0 1rem;
  }

  .competences-nav-arrow {
    padding: 0.5rem;
  }

  .competences-nav-arrow.left {
    left: 1rem;
  }

  .competences-nav-arrow.right {
    right: 1rem;
  }

  .arrow-text {
    display: none;
  }

  .competence-detail {
    padding: 0 1rem 2rem;
  }

  .competence-detail h2 {
    font-size: 2rem;
  }

  .competence-detail h3 {
    font-size: 1.3rem;
  }

  .competence-detail p,
  .competence-detail li {
    font-size: 1rem;
  }
}
