/* Général */
body {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

/* Navigation */
.nav-menu a {
  color: #1e1e1e;
}

.nav-menu a:hover,
.nav-menu .active {
  color: #e0e0e0;
}

.nav-menu ul {
  background-color: #1e1e1e00;
}



/* Header */
#header {
  background-color: #1e1e1e00;
}

@media (max-width: 991px) {

  /* Header */
  #header {
    background-color: #1e1e1e;
  }
}

/* Sections */
section {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

/* Héros */
#hero {
  background-color: #121212;
}

#hero:before {
  content: "";
  background: rgba(30, 30, 30, 0.8);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

#hero h1,
#hero p {
  color: #e0e0e0;
}

#hero .typed {
  color: #ff3e3e;
}

#hero .social-links a {
  color: #e0e0e0;
}

#hero .social-links a:hover {
  color: #ff3e3e;
}

/* À propos */
.about {
  background-color: #1e1e1e;
}

.about h2,
.about p {
  color: #e0e0e0;
}

.text-services {
  color: #fff !important;
}

/* Photo de profile */
.profile {
  border-radius: 25px;
}

/* Historique */
.resume {
  background-color: #1e1e1e;
}

.resume-title {
  color: #ff3e3e;
}

.resume-item h4,
.resume-item h5,
.resume-item p,
.resume-item ul li {
  background-color: #1e1e1e !important;
  color: #e0e0e0;
}

/* Portfolio */
.portfolio {
  background-color: #1e1e1e;
  border-radius: 25px;
}

.portfolio .section-title h2,
.portfolio .section-title p {
  color: #e0e0e0 !important;
}

.portfolio .portfolio-wrap {
  background-color: #2c2c2c;
  border-radius: 25px;
}

.portfolio .portfolio-info {
  background-color: rgba(0, 0, 0, 0.7);
  color: #e0e0e0 !important;
  border-radius: 25px !important;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
  font-size: 20px;
  color: #e0e0e0 !important;
  font-weight: 600;
  border-radius: 25px !important;
}

.portfolio .portfolio-wrap .portfolio-info p {
  color: #e0e0e0 !important;
  font-size: 14px;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
  border-radius: 25px;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #e0e0e0;
  margin: 0 2px;
  font-size: 28px;
  display: inline-block;
  transition: 0.3s;
  border-radius: 25px;
}

/* Footer */
#footer {
  background-color: #121212;
  color: #e0e0e0;
}

#footer a {
  color: #ff3e3e;
}

#footer a:hover {
  color: #e0e0e0;
}

.copyright,
.credits {
  color: #e0e0e0;
}

/* Bouton de retour en haut */
.back-to-top {
  background-color: #bb0505;
  color: #e0e0e0;
}

.back-to-top:hover {
  background-color: #e0e0e0;
  color: #bb0505;
}

.custom-danger {
  --bs-btn-border-color: #ff3e3e;
  /* Ta couleur rouge personnalisée */
  --bs-btn-hover-bg: #ff3e3e;
  /* Fond au survol */
  --bs-btn-hover-border-color: #ff3e3e;
  /* Bordure au survol */
  --bs-btn-color: #ff3e3e;
  /* Couleur du texte */
  --bs-btn-hover-color: #fff;
  /* Couleur du texte au survol */
}

.custom-danger2 {
  --bs-btn-border-color: #bb0505;
  /* Ta couleur rouge personnalisée */
  --bs-btn-hover-bg: #bb0505;
  /* Fond au survol */
  --bs-btn-hover-border-color: #bb0505;
  /* Bordure au survol */
  --bs-btn-color: #fff;
  /* Couleur du texte */
  --bs-btn-hover-color: #fff;
  /* Couleur du texte au survol */
}

.form__group {
  position: relative;
  padding: 15px 0 0;
  margin-top: 10px;
  width: 50%;
}

.form__field {
  font-family: inherit;
  width: 80%;
  border: 0;
  border-bottom: 2px solid #9b9b9b;
  outline: 0;
  font-size: 1.3rem;
  color: #fff;
  padding: 7px 0;
  background-color: #1e1e1e;
  transition: border-color 0.2s;
}

.form__field::placeholder {
  color: transparent;
}

.form__field:placeholder-shown ~ .form__label {
  font-size: 1.3rem;
  cursor: text;
  top: 20px;
}

.form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 1rem;
  color: #9b9b9b;
  text-align: left;
  margin-left: 10%;
}

.form__field:focus ~ .form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 1rem;
  color: #c40505;
  font-weight: 700;
  text-align: left;
}

.form__field:focus {
  padding-bottom: 6px;
  font-weight: 700;
  border-width: 3px;
  border-image: linear-gradient(to right, #991111, #ef3838);
  border-image-slice: 1;
}

/* reset input */
.form__field:required,
.form__field:invalid {
  box-shadow: none;
}

/* Carte avec une couleur de fond adaptée au reste du site */
.card {
  background-color: #292929; /* Fond sombre pour la carte */
  border: none; /* Enlever la bordure par défaut */
  color: #fff; /* Texte en blanc */
  transition: transform 0.3s ease-in-out; /* Animation au survol */
  height: 100%;  /* Assurez-vous que la carte prend toute la hauteur de l'item */
}


/* Étoiles de notation */
.rating {
  font-size: 2rem; /* Agrandir la taille des étoiles */
  margin-bottom: 10px; /* Espacement sous les étoiles */
  color: #f5c518; /* Couleur dorée pour les étoiles */
}

/* Espacement du texte du commentaire */
.card-body {
  padding-top: 10px;
  padding-bottom: 10px;
}

.card-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc; /* Texte plus clair pour le commentaire */
}

.error-message {
  color: white;
  background-color: red;
  padding: 10px;
  border-radius: 5px;
  width: fit-content;
  margin: 10px auto;
  text-align: center;
}

/* Animation pour faire disparaître les éléments */
.fade-out {
  opacity: 1;
  animation: fadeOut 0.5s forwards;
}

/* Animation pour faire apparaître les éléments */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

/* Définition des animations */
@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
