/* cv_specific.css - Styles spécifiques à la page CV */

/* --- Profil Section (CV Page) --- */
#profil-cv {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start; 
    gap: 3rem; 
}
#profil-cv > div { /* Enfants directs de #profil-cv */
    flex-basis: calc(50% - 1.5rem); 
    min-width: 300px; 
    margin-bottom: 3rem;
}
.contenu-profil h1, .contenu2-profil h1 {
  font-size: 4.5rem; 
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.contenu-profil h1 span, .contenu2-profil h1 span {
    color: var(--primary-color);
}
.contenu-profil h3 { 
  font-size: 2.6rem;
  margin: 0.5rem 0 1.5rem;
  font-weight: 500;
  color: var(--text-color);
}
.contenu-profil h3 span {
    color: var(--primary-color);
}
.contenu-profil p { 
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
}
.contenu-profil p strong {
    color: var(--text-color);
    font-weight: 600;
}
.contenu2-profil h2 { 
    font-size: 1.7rem;
    margin: 0.8rem 0;
    font-weight: 400;
    color: var(--text-muted);
}
.contenu2-profil h2 span { 
    font-weight: 600;
    color: var(--text-color);
}
#profil-cv .social-icons { 
    width: 100%; 
    text-align: left; 
    margin-top: 2.5rem;
}
#profil-cv .social-icons a {
    margin: 0 1.2rem 0.5rem 0;
    font-size: 2.8rem; /* Augmenté pour être plus visible */
    padding: 0.8rem; /* Retiré de la classe globale pour spécificité si besoin */
    border-width: 1px; /* Retiré de la classe globale pour spécificité si besoin */
    color: var(--primary-color); /* Couleur d'icône */
    border-color: var(--primary-color); /* Couleur de bordure */
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
#profil-cv .social-icons a:hover {
    color: var(--text-color);
    border-color: var(--text-color);
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--glow-color);
}


.loisirs-container { 
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; 
    margin-top: 2rem;
    justify-content: flex-start; 
}
.loisir-item {
    background: var(--card-bg); 
    padding: 1.5rem 2rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1rem; 
    text-align: left; 
    min-width: 150px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}
.loisir-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--glow-color);
}
.loisir-item i { 
    font-size: 2.4rem;
    color: var(--primary-color);
}
.loisir-item span { 
    font-size: 1.5rem;
    color: var(--text-color); 
    font-weight: 500;
}
#profil-cv > .contenu-profil.full-width-loisirs {
    flex-basis: 100% !important;
    text-align: left; 
}
#profil-cv > .contenu-profil.full-width-loisirs h1 {
    text-align: inherit; 
}


/* --- Section Compétences (Swiper) --- */
#competences { 
  background-color: var(--bg-color); /* Fond uni pour la section compétence, ou var(--card-bg) pour cohérence avec cartes */
}
#competences .section-title {
    margin-bottom: 2rem; 
}
#competences p.intro-competences {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 4rem;
}
.swiper-container.card-wrapper {
  max-width: 1200px; 
  margin: 0 auto 35px; 
  padding: 20px 0; 
  overflow: hidden; 
}
.card-list .card-item { 
  list-style: none;
  height: auto; 
}
.card-list .card-item .card-link {
  display: flex; 
  flex-direction: column;
  height: 100%; 
  background: var(--card-bg); /* Fond de carte cohérent */
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-list .card-item .card-link:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15), 0 0 15px var(--glow-color);
}
.card-list .card-link .card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain; /* Ou cover, selon vos images */
  border-radius: 6px; 
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.05); /* Léger fond si les images ont de la transparence */
}
.card-list .card-link .badge {
  color: var(--primary-color);
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem; 
  font-weight: 600;
  margin: 0 0 12px; 
  background: rgba(88, 166, 255, 0.1); 
  width: fit-content;
  border-radius: 20px;
  font-family: var(--font-mono);
}
.card-list .card-link .card-title {
  font-size: 1.6rem;
  color: var(--text-color); 
  font-weight: 600;
  line-height: 1.5;
  flex-grow: 1; 
  margin-bottom: 15px; 
}
.swiper-pagination-bullet {
  background-color: var(--text-muted);
  opacity: 0.7;
}
.swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  opacity: 1;
}
.swiper-button-next, .swiper-button-prev {
  color: var(--primary-color);
  transition: color 0.3s ease;
  --swiper-navigation-size: 30px;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  color: var(--text-color);
}

/* --- Expériences Professionnelles & Formation --- */
#experiences_professionnelles .section-title,
#formation .section-title {
    margin-bottom: 4rem;
}
#experiences_professionnelles .container {
    /* Max-width est déjà géré par la classe .container globale */
    padding: 20px 0; /* S'assurer qu'il n'y a pas de double padding latéral */
}
.timeline-container {
    display: flex;
    align-items: flex-start;
    width: 100%; 
}

.right-side { 
  display: flex;
  flex-direction: column;
  gap: 2.5rem; 
  flex-grow: 1;
}
.experience-pro { /* S'applique aussi à la formation avec la même structure */
  margin: 0; 
  padding: 2.5rem;
  margin-bottom: 2rem; 
  align-items: center;
  background-color: var(--card-bg); 
  border-radius: 6px;
  border-left: 4px solid var(--primary-color); 
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.experience-pro h2 { 
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}
.experience-pro h3 { 
  margin-top: 0;
  font-size: 1.6rem;
  font-weight: 400; 
  color: var(--text-muted); 
  margin-bottom: 0.6rem;
}
.experience-pro h3 strong { 
    font-weight: 600;
    color: var(--text-color); 
}
.experience-pro p.description { 
  margin-top: 1rem;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--text-muted);
}


/* --- Responsive pour CV spécifique --- */
@media (max-width: 991px) {
    #profil-cv {
        padding-top: 2rem;
    }
    #profil-cv > div {
        flex-basis: 100%; 
        text-align: center;
    }
    #profil-cv .contenu-profil, 
    #profil-cv .contenu2-profil {
        align-items: center; 
        text-align: center;
    }
     #profil-cv .contenu-profil p,
     #profil-cv .contenu2-profil h2 {
        text-align: left; /* Garder le texte du paragraphe aligné à gauche */
     }
    @media (min-width: 768px) { /* S'applique si la largeur est au moins 768px, même si dans la media query 991px */
        #profil-cv .contenu-profil p,
        #profil-cv .contenu2-profil h2 {
            text-align: left; 
        }
         #profil-cv > .contenu-profil.full-width-loisirs,
         #profil-cv > .contenu-profil.full-width-loisirs h1{
            text-align: left;
        }
    }


    #profil-cv .social-icons {
        text-align: center;
        margin-top: 1.5rem;
    }
    #profil-cv .social-icons a {
        margin: 0 0.8rem 0.5rem;
    }
    .loisirs-container {
        justify-content: center;
    }
     #profil-cv > .contenu-profil.full-width-loisirs h1 {
        text-align: center;
    }


    #experiences_professionnelles .timeline-container {
        flex-direction: column;
        align-items: center; 
    }
    .rectangle {
        width: 80%; 
        max-width: 400px;
        height: 6px;
        margin-right: 0;
        margin-bottom: 3rem; 
    }
    .right-side {
        width: 100%;
      ;
    }
}



@media (max-width: 768px) {
  /*  Styles Swiper peuvent être ajustés ici si nécessaire pour des écrans plus petits que tablettes */
    .contenu-profil p,
    .contenu2-profil h2 {
        text-align: center; /* Pour les petits écrans, centrer peut être mieux */
    }
     #profil-cv > .contenu-profil.full-width-loisirs h1{
        text-align: center;
    }
}