/* --- Variables de couleur --- */
:root {
  --titre-color: #2c2646;
  --main-color: #c1753d;
  --light: #fff;
  --second-color: #d2e6dc;
  --color-tag-grey: #f0f0f0;
  --color-placeholder: #555;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Styles Généraux --- */
.header_candidat {
  width: 100%;
  height: 60px;
  background-color: var(--titre-color);
}

.conatiner_candidat {
  width: 90%;
  margin: 20px auto;
  max-width: 1000px;
}

/* --- Section Entête de profil --- */
.profile-header {
  display: flex;
  align-items: center;
  background-color: var(--second-color);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--box-shadow);
  margin-right: 20px;
}

.profile-info {
  text-align: left;
}

.profile-info h1 {
  font-size: 2.5rem;
  color: var(--titre-color);
  margin: 0 0 0.5rem 0;
}

.profile-info .disponibilite {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--titre-color);
  margin-top: 1rem;
}

.tags-container {
  display: flex;
  gap: 10px;
}

.tag_candidat {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

.tag-main {
  background-color: var(--main-color);
  color: var(--light);
}

.tag-orange {
  background-color: var(--main-color);
  color: var(--light);
}

/* Nouvelles règles de survol pour les tags orange */
.tag-orange:hover,
.tag-main:hover {
  background-color: var(--titre-color);
}

.tag-grey {
  background-color: var(--color-tag-grey);
  color: var(--titre-color);
}

.tag_candidat a {
  color: inherit;
  text-decoration: none;
}

/* --- Sections des cartes d'information --- */
.card-section {
  background-color: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
}

.card-title {
  font-size: 2rem;
  color: var(--titre-color);
  margin-bottom: 1rem;
}

.card-content_candidat p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: var(--titre-color);
}

.card-content_candidat .fas {
  margin-right: 10px;
  width: 18px;
  text-align: center;
}

.add-link,
.document-link {
  color: var(--main-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  display: inline-block;
  font-size: 1.2rem;
}

.document-link {
  color: var(--color-placeholder);
  font-style: italic;
  font-weight: 500;
}

.add-link:hover,
.document-link:hover {
  text-decoration: underline;
}

.experience-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.experience-dates {
  font-size: 1rem;
  color: var(--color-placeholder);
  white-space: nowrap;
}

/* --- Section Boutons en bas de page --- */
.button-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.btn_candidat {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex-grow: 1;
  text-align: center;
}

.btn-orange {
  background-color: var(--main-color);
  color: white;
}

.btn-dark {
  background-color: var(--titre-color);
  color: white;
}

/* Règle de survol mise à jour */
.btn-orange:hover {
  background-color: var(--titre-color);
}

.btn-dark:hover {
  filter: brightness(1.1);
}

.btn-dark a {
  color: var(--light);
  text-decoration: none;
}

/* --- Media Queries pour la responsivité --- */
/* Pour les tablettes (max-width: 768px) */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .profile-pic {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .profile-info {
    text-align: center;
  }

  .profile-info h1 {
    font-size: 2rem;
  }

  .tags-container {
    justify-content: center;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .card-content_candidat p,
  .add-link {
    font-size: 1rem;
  }

  .experience-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-dates {
    font-size: 0.9rem;
    margin-top: 5px;
  }

  .button-footer {
    flex-direction: column;
    width: 100%;
  }

  .btn_candidat {
    width: 100%;
  }
}

/* Pour les mobiles (max-width: 480px) */
@media (max-width: 480px) {
  .conatiner_candidat {
    width: 95%;
  }

  .profile-pic {
    width: 80px;
    height: 80px;
  }

  .profile-info h1 {
    font-size: 1.5rem;
  }

  .profile-info .disponibilite {
    font-size: 1rem;
  }

  .tag_candidat {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .card-section {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-content_candidat p,
  .add-link {
    font-size: 0.9rem;
  }

  .experience-dates {
    font-size: 0.8rem;
  }

  .btn_candidat {
    font-size: 0.9rem;
  }
}
