@import url('https://fonts.googleapis.com/css2?family=Knewave&family=Roboto+Slab:wght@400;500;600;700;800&family=Roboto:wght@400;500;700;900&display=swap');


/*********BACKEND*********/

.planning-wrapper {
  font-family: Roboto Slab, sans-serif;
  margin: 20px 0;
  color: #ceab5d;
}
.planning-header-row {
  background-color: #f4f4f4;
  color: #ceab5d;
}
#planningTable {
  width: 98%;
  border-collapse: collapse;
  margin: 1%;
}
#planningTable th, #planningTable td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}
#planningTable th {
  background-color: #f4f4f4;
}
#planningTable select, #planningTable input[type="time"] {
  width: 90%;
  padding: 4px;
}
.planning-wrapper button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #ceab5d;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.planning-wrapper button:hover {
  background-color:rgb(107, 85, 39);
}

.div-creation-session {
  width: 90%;
  height: 90%;;
  background-color: white;
  border-radius: 10px;
  overflow-y: auto;
}

.creation-session-fc {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* ombre */
  backdrop-filter: blur(4px); /* flou de l’arrière-plan */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.liste-classe-gestion, .liste-formateur-gestion, .liste-formation-gestion, .div-ajouter-pp {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.choix-dateJPO, .choix-datePP {
    /* Style de base */
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    width: 25%;
    background-color: #fff;
    
    /* Style pour le bouton du calendrier */
    &::-webkit-calendar-picker-indicator {
        background-color: #fff;
        color: #333;
        padding: 4px;
        cursor: pointer;
    }
    
    /* Style au focus */
    &:focus {
        outline: none;
        border-color: #4a90e2;
        box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    }
    
    /* Style pour les états désactivés */
    &:disabled {
        background-color: #f5f5f5;
        color: #999;
    }
}

.choix-datePP {
  width: 100%;
}

#divJPO {
  display: flex;
  flex-direction: row;
}

#div-gestion-etab {
  display: flex;
  margin: 10px;
  flex-direction: column;
}

.button-phpmyadmin, 
.button-export,
.button-RAZ, 
.button-liste-formateur, 
.button-liste-formation, 
.button-liste-classe, 
.button-liste-fc, 
.button-liste-sessions,
.button-liste-apprentis,  
.button-fusion-fc, 
.button-ajouter-pp, 
.button-addJPO,
.button-ajout-jour-fc,
.button-ajout-session {
  background-color: #CEAB5D;
  color: white;
  padding: 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin: 10px 0
}

.bouton-div-ajout-session {
  background-color: #CEAB5D;
  color: white;
  padding: 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin: 10px 0
}

.bouton-div-fermer-ajout-session {
  background-color: lightgray;
  color: white;
  padding: 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin: 10px 0
}

.button-addJPO {
  width: 67%;
}
.form-ajouter-eleve-jpo {
  background-color: #fff;
  width: 90%;
  padding: 20px;
  border-radius: 10px;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: max-content;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* au-dessus de l'élément */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.bouton-ajout-apprenti {
  background-color: #DFBC6E;
  width: 60%;
  font-size: 20px;
  border-radius: 100px;
  border: none;
  height: 50px;
}

.bouton-voir-nouveaux-creneaux {
  background-color: #DFBC6E;
  width: 60%;
  font-size: 20px;
  border-radius: 100px;
  border: none;
  height: 50px;
}

.bouton-exporter-csv {
  background-color: #DFBC6E;
  width: 60%;
  font-size: 20px;
  border-radius: 100px;
  border: none;
  height: 50px;
}

.supprimer-eleve-jpo {
  color: red
}

.supprimer-eleve-jpo:hover {
  color: darkred;
}

.supprimer-eleve-jpo:active {
  color: lightcoral;
}

.eleve-information-supprimer {
  text-align: right;
  padding-right: 2%;
  font-size: 1.7em
}

.menu-gestion {
  background-color: #fff;
  padding: 10px;
  color: #92542a;
}

.menu-titre {
  padding: 10px;
  cursor: pointer;
  background-color: #CEAB5D;
  margin: 5px 0;
  font-size: 18px;
  border-radius: 8px;
}

.menu-titre:hover {
  background-color: #CEAB5D;
}

.menu-contenu {
  display: none;
  padding: 10px;
  background-color: #CEAB5D;
  margin-bottom: 5px;
  border-radius: 8px;
}

.menu-contenu.active {
  display: block;
}

.tableau {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.tableau-titre {
  margin: 0px !important;
}


/*********PRISE RENDEZ VOUS PP*********/


/*********PRISE RENDEZ VOUS JPO*********/

.annuler-rendez-vous{
  background-color: #CEAB5D;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

/*********PRISE RENDEZ VOUS FC*********/


/*********ANCIEN*********/



.gestion-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.menu-gestion-wrapper {
  overflow: visible !important;
  width: 20%;
  padding: 20px;
  padding-top: 10px;
  font-family: 'Roboto Slab', sans-serif;
}

.menu-gestion {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.menu-gestion-titre {
  text-align: left;
  font-family: 'Knewave', cursive;
  font-size: 40px;
  color: #92542a;
}

.hide {
  display: none;
}

.liste-jpo, .liste-classe {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
}

.jpo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.jpo, .classe {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.colonne {
  width: 100%;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 8px;
}

.carte {
  height: 7px;
  margin: 5px 0;
  padding: 20px;
  color: white;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
}

.menu-backend {
  width: 100%;
  padding: 10px;
}

.sorigny {
  display: none !important;
}

.nepasafficher {
  display: none !important;
}

.disabled {
  background-color: #c8cdd0;
}

.switch-button-choix-etab {
  background: #e6d4af;
  border-radius: 30px;
  overflow: hidden;
  width: 100%;
  height: 70px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  font-size: 18px;
  color: #92542a;
  border: 1px solid #e6d4af;
}

.switch-button-choix-horaire {
  background: #e6d4af;
  border-radius: 30px;
  overflow: hidden;
  width: 100%;
  height: 70px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  font-size: 18px;
  color: #92542a;
  border: 1px solid #e6d4af;
}

.switch-button-choix-etab-2-checkbox {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
}

.switch-button-choix-etab-3-checkbox {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
}

.switch-button-choix-etab-2-switch {
  content: "";
  background: #fff;
  height: 100%;
  width: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 300ms ease-in-out;
}

.switch-button-choix-etab-3-switch {
  content: "";
  background: #fff;
  height: 100%;
  width: 33.33%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 300ms ease-in-out;
}

.switch-button-choix-etab-2-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 50%;
  z-index: 2;
  cursor: pointer;
}

.switch-button-choix-etab-3-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 33.33%;
  z-index: 2;
  cursor: pointer;
}

.eleve-information-champs, .eleve-information-section {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.alert-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.button-gestion-backend {
  background-color: #CEAB5D;
  color: white;
  padding: 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin: 10px;
}

.alert-box {
  position: relative;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.nouveau-eleve-box {
  position: relative;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-left: 35%;
}

#alert-ok {
  background-color: #CEAB5D;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

#alert-ok:hover {
  background-color: #DFBC6E;
}

#eleve-valider, #alert-ok-deplacer-eleve, #alert-ok-deplacer-eleve-supprimer {
  background-color: #CEAB5D;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

#eleve-valider:hover {
  background-color: #DFBC6E;
}

#eleve-annuler, #alert-ok-deplacer-eleve-annuler, #buttonannulation {
  background-color: #e3e6e8;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

ol {
  list-style-type: none;
  padding-left: 0;
}

.fermer-liste-classe, .fermer-liste-formation, .fermer-liste-formateur {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10;
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 35%;
  margin-top: 2%;
}

.bouton-ok-nouveau-eleve {
  background-color: #CEAB5D;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

#eleve-supprimer {
  background-color: red;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

#eleve-annuler:hover {
  background-color: #f1f3f4;
}

.eleve-box {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 40%;
  margin-left: 30%;
  margin-top: 2%;
  max-height: 90%;
}

.scroll {
  width: 100%;
  overflow-y: auto;
}

.inputEleve {
  margin: 5px;
  font-size: 15px;
  padding: none;
  border: none;
  border-bottom: 1px solid #000;
  width: 100%
}

.selectEleve {
  margin: 5px;
  font-size: 15px;
  background-color: #fff;
  padding: none;
  border: none;
  border-bottom: 1px solid #000;
  width: 100%;
}

.ajouter-eleve-jpo .liste-classes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.eleve-information {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  z-index: 1000;
}

.eleve-information-titre {
  display: flex;
  flex-direction: column;
  text-align: right;
  width: 50%;
}

.eleve-information-button {
  display: flex;
  flex-direction: row;
  text-align: right;
}

.titreEleve {
  width: 100%;
  text-align: start !important;
}

.buttonEleve {
  width: 100%;
}

.rdv-portes-ouvertes-wrapper{
  text-align: start;
}

.rdv-portes-ouvertes-form-element {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.rdv-portes-ouvertes-form-element label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: 'Roboto Slab', serif;
  text-align: start;
}

#messageInput {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: 'Roboto Slab', serif;
}

.rdv-portes-ouvertes-form-element a {
  font-size: 14px;
  font-weight: bold;
  font-family: 'Roboto Slab', serif;
}

.rdv-portes-ouvertes-form-element input {
  padding: 10px;
  font-size: 14px;
  border-top: none;
  border-right: none;
  border-left: none;
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
  font-family: 'Roboto Slab', serif;
}

.rdv-portes-ouvertes-form-element-agreement-label {
  display: flex;
}

.rdv-portes-ouvertes-form-element-agreement-checkbox {
  display: flex;
  justify-content: flex-start;
  width: 20px;
}

button[type="submit"] {
  padding: 12px 20px;
  font-size: 16px;
  background-color: #CEAB5D;
  color: white;                 
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
}

button[type="submit"]:hover {
  background-color: #CEAB5D;
}

.rdv-portes-ouvertes-wrapper {
  overflow: visible !important;
  width: 70%;
  margin: 0 auto;
  padding: 20px;
  padding-top: 10px;
  font-family: 'Roboto Slab', sans-serif;
}

h2 {
  text-align: center;
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  font-family: 'Roboto Slab', sans-serif;
}

.rdv-portes-ouvertes-intro {
  font-size: 16px;
  margin-bottom: 20px;
  color: #666;
}

.rdv-portes-ouvertes-etapes {
  font-family: 'Knewave', cursive;
  font-size: 25px;
  color: #CEAB5D;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Conteneur principal */
.select2-container--default .select2-selection--single {
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  overflow: hidden;
  height: auto; /* Important pour éviter la hauteur fixe par défaut */
  display: flex;
  align-items: center;
}

/* Texte sélectionné */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #333;
  padding: 0; /* Retirer le padding interne pour laisser celui du conteneur */
  line-height: 1.4;
}

/* Flèche */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Liste déroulante */
.select2-container--default .select2-results > .select2-results__options {
  font-size: 16px;
}

/* Option survolée */
.select2-container--default .select2-results__option--highlighted {
  background-color: #f0f0f0;
  color: #000;
}

.select2-dropdown {
  margin-top: -25px;
}

/* Champ de recherche dans le dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  outline: none;
}

/* Supprimer le focus bleu intense si tu veux un effet plus doux */
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #888;
  box-shadow: none;
}


select:not(.selectEleve) {
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  overflow: hidden;
}

hr {
  display: block !important;
  width: 60% !important;
  margin: 10px auto !important;
  border: 1px solid #ddd !important;
}

input:focus {
  outline: none !important;
  box-shadow: 0 0 3px #CEAB5D;
}

input:focus::placeholder {
  color: transparent;
}

input[type="text"],
input[type="emailInput"],
input[type="tel"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

input[type="text"]:focus,
input[type="emailInput"]:focus,
input[type="tel"]:focus {
  border-color: #CEAB5D;
  outline: none;
}

#buttonvalidation {
  background-color: #CEAB5D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

#buttonvalidation:hover {
  background-color: #DFBC6E;
}

.messages {
  font-size: 14px;
  color: red;
  text-align: left;
  margin-top: 20px;
}

@keyframes lds-roller {
  0% {
      transform: scale(0);
  }
  100% {
      transform: scale(1);
  }
}

@media (max-width: 768px) {
  .rdv-portes-ouvertes-wrapper {
      width: 90%;
  }

  h2 {
      font-size: 22px;
  }

  .rdv-portes-ouvertes-etapes {
      font-size: 16px;
  }

  #buttonvalidation {
      width: 100%;
  }
}

