/* Variables pour les couleurs principales */
:root {
  --dark-bg: #1c1c1c;
  --card-bg: #252525;
  --input-bg: rgba(77, 77, 77, 0.2);
  --white: #ffffff;
  --button-hover: #333333;
  --error-color: #e74c3c;
}

.body-connexion {
  background-color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  width: 80%;
  max-width: 1200px;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background-color: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.connexion-container-left {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, #614385, #516395);
  position: relative;
  overflow: hidden;
}

.connexion-container-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M0,50 L50,100 M50,0 L100,50" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
  background-size: 30px 30px;
}

.left-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  color: var(--white);
  text-align: center;
}

.left-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 300;
}

.left-content p {
  font-size: 16px;
  opacity: 0.8;
}

.connexion-container-right {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  position: relative;
}

.connexion-header {
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
}

.connexion-content {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.connexion-title {
  color: var(--white);
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

/* Message d'erreur */
.error-container {

  border-left: 4px solid var(--error-color);
  padding: 12px;
  margin: 20px 0;
  border-radius: 4px;
  width: 50%;
}

.error-message {
  color: var(--error-color);
  font-size: 14px;
  display: block;
}

/* Conteneur du formulaire */
.form-container {
  width: 100%;
}

/* Style du formulaire */
.connexion-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Groupe pour chaque champ */
.form-group {
  margin-bottom: 25px;
  width: 100%;
}

.connexion-form {
  width: 400px;
}

/* Labels du formulaire */
.connexion-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
  color: var(--white);
  font-size: 16px;
  opacity: 0.85;
}

/* Champs input */
.connexion-input {
  width: 90%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 16px;
  background-color: var(--input-bg);
  color: var(--white);
  transition: all 0.5s ease;
}

.connexion-input:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Bouton de soumission */
.form-submit {
  margin-top: 20px;
  width: 99%;
}

.connexion-button {
  width: 100%;
  padding: 16px;
  background-color: var(--white);
  color: var(--dark-bg);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.connexion-button:hover {
  background-color: var(--button-hover);
  color: var(--white);
}

.connexion-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Styles responsifs */
@media (max-width: 900px) {
  .container {
      flex-direction: column;
      width: 95%;
  }

  .connexion-container-left,
  .connexion-container-right {
      width: 100%;
  }

  .connexion-container-left {
      min-height: 200px;
  }

  .connexion-title {
      font-size: 28px;
  }
}

@media (max-width: 600px) {
  .container {
      padding: 20px;
  }

  .connexion-container-left {
      display: none;
  }

  .connexion-container-right {
      padding: 30px 20px;
  }

  .connexion-title {
      font-size: 24px;
  }
}


/* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */


.body-admin {
  background: linear-gradient(1100deg, #2c3e50, #14181c);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  justify-content: center;
  align-items: center;
  margin: 0;
  min-height: 1600px;
}



.container-principal-admin {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  width: 100%;
  margin-top: 100px;
}


.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
}


.form-container-ajoutFormAdmin {
  background: rgba(0, 0, 0, 0.548);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titre-form-admin {
  margin: 0 0 20px 0;
  color: white;
}

#formation {
  display: flex;
  flex-direction: column;
  width: 300px;

}

#formation div {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 15px;
  justify-content: center;
}

#formation label {
  margin-bottom: 5px;
  font-weight: 600;
  
}

#formation input {
  padding: 10px;
  border-radius: 8px;
  background-color: white;
  color: black;
  outline: none;
  border: none;
  width: 90%;
  transition: 0.3s;
  cursor: pointer;
}

#formation select {
  padding: 10px;
  border-radius: 8px;
  background-color: white;
  color: black;
  outline: none;
  border: none;
  width: 97%;
  transition: 0.3s;
  cursor: pointer;
}



#formation button {
  background-color: white;
  border-radius: 10px;
  border: 1px solid black;
  padding: 10px;
  cursor: pointer;
  transition: 0.6s;
  width: 97%;
}

#formation button:hover {
  background-color: black;
  color: white;
}



/* ✅ MESSAGE SOUS LE FORMULAIRE */
.message-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  width: 90%;
}

.alert {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.alert-success {
  background-color: #28a745;
  color: white;
  border: none;
}

/* ✅ LISTE DES INSCRIPTIONS */
.inscriptions-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 60%;
}

.inscription-card {
  background: rgb(255, 255, 255);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
  width: 95%;
  
}

.inscription-card:hover {
  transform: scale(1.05);
}

.inscription-card p {
  margin: 10px 0;
  color: black;
}

.actions {
  margin-top: 10px;
}

.btn {
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
}

.btn.refuse {
  background: #e74c3c;
}

.btn.refuse:hover {
  background: #c0392b;
}

.btn.accept {
  background: #2ecc71;
}

.btn.accept:hover {
  background: #27ae60;
}





/* Nav Bar */


.link-admin {
  width: 100%;
  background-color: black;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.div-link1 a{
  text-decoration: none;
  margin: 0 20px;
  padding: 10px 20px;
  color: white;
  font-size: larger;
  font-weight: 600;
}

.div-link2 a{
  text-decoration: none;
  margin: 0 20px;
  padding: 5px 20px;
  color: white;
  font-size: larger;
  border: 2px solid white ;
  border-radius: 10px;
}












.body-allformation {
  background-color: #f4f4f4;
  font-family: Arial, sans-serif;
  margin: 0;
}


.title-allFormation {
  margin: 40px 60px;
}

.container-allFormation {
  width: 1300px; 
  margin: 60px auto;
  background-color: #fff; 
  padding: 30px;
  border-radius: 8px; 
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); 
}

.container-formation {
  background-color: #e8f5e9;
  margin-bottom: 20px; 
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.container-formation:hover {
  transform: scale(1.02); 
}


.formation-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #388e3c; 
  margin-bottom: 10px;
}


.formation-info {
  font-size: 1rem;
  color: #555; 
  margin: 5px 0;
}

.formation-info:first-child {
  margin-top: 0;
}


.container-formation p {
  margin: 20px 0;
}






/* Partie dashboard employe*/


.body-employe {
  margin: 0;
  padding: 0;
  background-color: rgb(232, 231, 231);
}

.container-principal-employe {
  margin: 0;
}


.title-employe {
  margin: 25px 70px;
  font-size: larger;
  font-weight: 600;
}

.formations-container {
  width: 90%;
  padding: 20px;
  margin: 30px auto;
  background-color: white;
  border-radius: 10px;
}

.formation-card {
  background-color: #e8f5e9;
  padding: 50px;
  margin: 20px 0;
  transition: 0.6s;
  border-radius: 10px;

}


.formation-card:hover {
  transform: scale(1.01); 
}

.formation-card p {
  margin: 20px 0;
  font-size: 18px;
  color: black;
}

.formation-card a {
  text-decoration: none;
  color: white;
  background-color: blue;
  padding: 10px 20px;
  border-radius: 9px;
  transition: 0.6s;

}


.formation-card a:hover {
  background-color: rgba(0, 0, 255, 0.769);
}

.btn-supp {
  text-decoration: none;
  background-color: red;
  color: white;
  padding: 8px 15px;
  margin-top: 20px;
  border-radius: 8px;
  transition: 0.6s;
}

.btn-supp:hover {
  background-color: rgba(255, 0, 0, 0.769);
}

