@import url("https://fonts.googleapis.com/css?family=DM+Sans:400,500|Jost:400,500,600&display=swap");

/* Container isolé pour le profil */
.profile-isolated-container {
  color: #2b2c48;
  font-family: "Jost", sans-serif;
  background-image: url(../images/gallery/bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden; /* Supprime le scroll global */
}

/* Header avec titre et sous-titre */
.profile-header {
  width: 100%;
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
}

.profile-title {
  font-size: 3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  letter-spacing: 1px;
}

.profile-subtitle {
  font-size: 1.3rem;
  color: #FFA500; /* Couleur orange */
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Reset local uniquement pour les éléments dans le container profil */
.profile-isolated-container * {
  box-sizing: border-box;
}

/* Styles spécifiques au composant card dans le container profil */
.profile-isolated-container .card {
  max-width: 340px;
  margin: 20px auto;
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-direction: column;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  animation: cardEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  overflow: hidden; /* Supprime le scroll interne */
  height: auto; /* Hauteur automatique */
  min-height: 450px; /* Hauteur minimale */
}

/* Animation d'entrée pour chaque carte avec délai */
.profile-isolated-container .card:nth-child(1) { animation-delay: 0.1s; }
.profile-isolated-container .card:nth-child(2) { animation-delay: 0.3s; }
.profile-isolated-container .card:nth-child(3) { animation-delay: 0.5s; }
.profile-isolated-container .card:nth-child(4) { animation-delay: 0.7s; }

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animation au survol */
.profile-isolated-container .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Suppression des états de hauteur fixes qui causaient le scroll */
.profile-isolated-container .card[data-state="#about"],
.profile-isolated-container .card[data-state="#contact"],
.profile-isolated-container .card[data-state="#experience"] {
  height: auto;
  min-height: 450px;
}

.profile-isolated-container .card.is-active .card-header {
  height: 80px;
}

.profile-isolated-container .card.is-active .card-cover {
  height: 100px;
  top: -50px;
}

.profile-isolated-container .card.is-active .card-avatar {
  transform: none;
  left: 20px;
  width: 50px;
  height: 50px;
  bottom: 10px;
}

.profile-isolated-container .card.is-active .card-fullname,
.profile-isolated-container .card.is-active .card-jobtitle {
  left: 86px;
  transform: none;
}

.profile-isolated-container .card.is-active .card-fullname {
  bottom: 18px;
  font-size: 19px;
}

.profile-isolated-container .card.is-active .card-jobtitle {
  bottom: 16px;
  letter-spacing: 1px;
  font-size: 10px;
}

.profile-isolated-container .card-header {
  position: relative;
  display: flex;
  height: 200px;
  flex-shrink: 0;
  width: 100%;
  transition: 0.3s;
}

.profile-isolated-container .card-header * {
  transition: 0.3s;
}

.profile-isolated-container .card-cover {
  width: 100%;
  height: 100%;
  position: absolute;
  height: 160px;
  top: -20%;
  left: 0;
  will-change: top;
  background-size: cover;
  background-position: center;
  filter: blur(30px);
  transform: scale(1.2);
  transition: 0.5s;
}

.profile-isolated-container .card-avatar {
  width: 100px;
  height: 100px;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  object-position: center;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-64px);
  transition: all 0.3s ease;
  border: 4px solid white;
}

.profile-isolated-container .card:hover .card-avatar {
  transform: translateX(-50%) translateY(-64px) scale(1.1);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.profile-isolated-container .card-fullname {
  position: absolute;
  bottom: 0;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transform: translateY(-10px) translateX(-50%);
  left: 50%;
  color: #2b2c48;
}

/* COULEUR MODIFIÉE : Titre des personnes (Première Ministre, etc.) */
.profile-isolated-container .card-jobtitle {
  position: absolute;
  bottom: 0;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 500;
  opacity: 0.9; /* Augmenté la visibilité */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-7px);
  color: #FFA500; /* Même couleur orange que le sous-titre */
  font-weight: 600; /* Plus épais pour mieux voir */
}

.profile-isolated-container .card-main {
  position: relative;
  flex: 1;
  display: flex;
  padding-top: 10px;
  flex-direction: column;
}

/* COULEUR MODIFIÉE : Sous-titres (À PROPOS, PARCOURS, CONTACT) */
.profile-isolated-container .card-subtitle {
  font-weight: 700;
  font-size: 14px; /* Légèrement plus grand */
  margin-bottom: 12px;
  color: #FFA500; /* Même couleur orange */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-isolated-container .card-content {
  padding: 20px;
}

.profile-isolated-container .card-desc {
  line-height: 1.6;
  color: #636b6f;
  font-size: 14px;
  margin: 0;
  font-weight: 400;
  font-family: "DM Sans", sans-serif;
}

.profile-isolated-container .card-social {
  display: flex;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 20px;
}

.profile-isolated-container .card-social svg {
  fill: rgb(165, 181, 206);
  width: 16px;
  display: block;
  transition: 0.3s;
}

.profile-isolated-container .card-social a {
  color: #8797a1;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  background-color: rgba(93, 133, 193, 0.05);
  border-radius: 50%;
  margin-right: 10px;
  text-decoration: none;
}

.profile-isolated-container .card-social a:hover svg {
  fill: #FFA500; /* Changé pour correspondre à la couleur orange */
  transform: scale(1.2);
}

.profile-isolated-container .card-social a:last-child {
  margin-right: 0;
}

/* Suppression des boutons de navigation */
.profile-isolated-container .card-buttons {
  display: none;
}

/* Modification pour n'afficher que la section À PROPOS */
.profile-isolated-container .card-section {
  display: none;
}

.profile-isolated-container .card-section#about {
  display: block; /* Toujours afficher la section À PROPOS */
  animation: none; /* Supprimer l'animation de transition */
}

.profile-isolated-container .card-section.is-active {
  display: block;
  animation: profileFadeIn 0.6s both;
}

@keyframes profileFadeIn {
  0% {
    opacity: 0;
    transform: translatey(40px);
  }
  100% {
    opacity: 1;
  }
}

.profile-isolated-container .card-timeline {
  margin-top: 30px;
  position: relative;
}

.profile-isolated-container .card-timeline:after {
  background: linear-gradient(
    to top,
    rgba(134, 214, 243, 0) 0%,
    #FFA500 100% /* Changé pour correspondre à la couleur orange */
  );
  content: "";
  left: 42px;
  width: 2px;
  top: 0;
  height: 100%;
  position: absolute;
}

.profile-isolated-container .card-item {
  position: relative;
  padding-left: 60px;
  padding-right: 20px;
  padding-bottom: 30px;
  z-index: 1;
}

.profile-isolated-container .card-item:last-child {
  padding-bottom: 5px;
}

.profile-isolated-container .card-item:after {
  content: attr(data-year);
  width: 10px;
  position: absolute;
  top: 0;
  left: 37px;
  width: 8px;
  height: 8px;
  line-height: 0.6;
  border: 2px solid #fff;
  font-size: 11px;
  text-indent: -35px;
  border-radius: 50%;
  color: rgba(134, 134, 134, 0.7);
  background: #FFA500; /* Changé pour correspondre à la couleur orange */
}

.profile-isolated-container .card-item-title {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 5px;
  color: #2b2c48;
}

.profile-isolated-container .card-item-desc {
  font-size: 13px;
  color: #6f6f7b;
  line-height: 1.5;
  font-family: "DM Sans", sans-serif;
}

.profile-isolated-container .card-contact-wrapper {
  margin-top: 20px;
}

.profile-isolated-container .card-contact {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #6f6f7b;
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  cursor: pointer;
  transition: color 0.3s ease;
}

.profile-isolated-container .card-contact:hover {
  color: #FFA500; /* Changé pour correspondre à la couleur orange */
}

.profile-isolated-container .card-contact + .card-contact {
  margin-top: 16px;
}

.profile-isolated-container .card-contact svg {
  flex-shrink: 0;
  width: 30px;
  min-height: 34px;
  margin-right: 12px;
  transition: 0.3s;
  padding-right: 12px;
  border-right: 1px solid #dfe2ec;
}

.profile-isolated-container .contact-me {
  border: 0;
  outline: none;
  background: linear-gradient(
    to right,
    rgba(255, 165, 0, 0.8) 0%, /* Changé pour correspondre à la couleur orange */
    rgba(255, 140, 0, 0.8) 96%  /* Nuance plus foncée d'orange */
  );
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  color: #fff;
  padding: 12px 16px;
  width: 100%;
  border-radius: 5px;
  margin-top: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: "Jost", sans-serif;
  transition: all 0.3s ease;
}

.profile-isolated-container .contact-me:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(
    to right,
    rgba(255, 165, 0, 0.9) 0%,
    rgba(255, 140, 0, 0.9) 96%
  );
}

/* Styles pour garantir l'absence de scroll */
.profile-isolated-container .card-main,
.profile-isolated-container .card-content,
.profile-isolated-container .card-section {
  overflow: visible !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .profile-isolated-container {
    padding: 10px;
    overflow-x: hidden; /* Supprime le scroll horizontal sur mobile */
  }
  
  .profile-title {
    font-size: 2rem;
  }
  
  .profile-subtitle {
    font-size: 1rem;
  }
  
  .profile-isolated-container .card {
    max-width: 100%;
    margin: 10px auto;
  }
}