/* 📌 Style général */

@font-face {
    font-family: 'FuturaLT';
    src: url('../public/fonts/FuturaLT.woff2') format('woff2'),
         url('../public/fonts/FuturaLT.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FuturaLT';
    src: url('../public/fonts/futura_book-webfont.woff2') format('woff2'),
         url('../public/fonts/futura_book-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}


body {
    font-family: 'FuturaLT', Arial, sans-serif;
    font-weight: normal; /* Police normale */
    background-color: #f9f9f9;
    margin: 20px;
    padding: 20px;
}

/* 📌 Titres */
h1, h2, h3 {
    color: #007BFF;
    text-align: center;
}

/* 📌 Labels */
label {
    font-weight: bold;
}

/* 📌 Champs de formulaire */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    width: 100%;
    max-width: 800px;
}

.form-group input {
    padding: 14px;
    font-size: 16px;
    width: 500px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* 📌 Checkbox */
.checkbox-group {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}

/* 📌 Boutons génériques */
button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    width: 100%;
    max-width: 200px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

button:hover {
    background-color: #0056b3;
}

/* 📌 Sélection des niveaux et des divisions */
#niveauSelection, #divisionSelection {
    margin-top: 15px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#divisionButtons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

#modifierFormulaire,
#confirmerEnvoi,
#btnNextToMissions,
#nextToSpecific,
#verifier {
    max-width: 200px;       /* Largeur fixe */
          
    font-size: 16px;    /* Taille de police fixe */
    
    text-align: center; /* Centrage horizontal */
}
/*#choixReferent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}*/
/* 📌 Cacher par défaut */
.hidden {
    display: none;
}

/* 📌 Titres secondaires */
h4 {
    margin-top: 10px;
    color: #007BFF;
}

/* 📌 Bloc missions */
#choixProfPrincipal, #choixReferent, #choixCommission {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

/* 📌 Résumé avant envoi */
#resumeSection {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

#resumeSection h2 {
    text-align: center;
    color: #007BFF;
}

#resumeSection p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

#resumeSection button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    width: 100%;
    max-width: 250px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#resumeSection button:hover {
    background-color: #0056b3;
}

/* 📌 Styles de la fenêtre modale */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 50%;
    max-width: 600px;
}

.modal-content {
    text-align: left;
}

.modal h2 {
    color: rgb(66, 133, 244);
    text-align: center;
    margin-bottom: 15px;
}

#resumeTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#resumeTable td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

#resumeTable td:first-child {
    font-weight: bold;
    color: rgb(66, 133, 244);
    width: 40%;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
}

.modal-buttons button {
    background-color: rgb(66, 133, 244);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.modal-buttons button:hover {
    background-color: rgb(55, 104, 192);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

#resumeContent {
    width: 100%;
    border-collapse: collapse;
}

#resumeContent td {
    border: 1px solid #ccc;
    padding: 8px;
}

/* 📌 Transition et effet "cartouches" */
.form-step {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Force l'affichage des étapes non masquées */
.form-step:not(.hidden) {
    display: block;
}

/* 📌 Boutons de navigation */
.fonction-btn, .section-btn, .niveau-btn, .division-btn {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 15px;
    font-size: 18px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.fonction-btn:hover, .section-btn:hover, .niveau-btn:hover, .division-btn:hover {
    background-color: #0056b3;
}

.selected {
    background-color: #28a745 !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.visible {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}



/* --- Styles spécifiques pour la page Résumé --- */

/* Centrer la table du résumé et lui donner un style cohérent */
.resume-table {
    width: 90%;
    max-width: 600px;
    margin: 20px auto; /* Centre horizontalement avec une marge verticale */
    border-collapse: collapse;
    background: white;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

.resume-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.resume-table td:first-child {
    font-weight: bold;
    color: #007BFF;
    width: 40%;
}


#resumeContent h1,
#resumeContent h2,
#resumeContent h3 {
    color: #007BFF;
    text-align: center;
}


#resumeSection {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}


/* Uniformiser les inputs et selects sans ajouter de cadre supplémentaire */
.form-group input,
.form-group select {
  padding: 14px;
  font-size: 16px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  background-color: #fff;
  /* Pour que le <select> ressemble exactement à un input */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
 
}

/* Ajuster le conteneur des groupes pour qu'ils restent dans le fond existant */
.form-group {
  margin-bottom: 15px;
}

/* photo */
#photoContainer {
  text-align: center;
  margin-top: 10px;
}

#photoContainer img {
  display: inline-block;
  max-width: 150px;
  border: 1px solid #ccc;
  padding: 5px;
}




/* Adaptativité pour les mobiles */
@media screen and (max-width: 600px) {
  .form-group input,
  .form-group select {
    padding: 10px;
    font-size: 14px;
  }
}
    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }
    button {
        width: 90%;
        max-width: none;
        padding: 12px;
        font-size: 16px;
    }
}


