/* static/css/style.css */

/* Style global */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    justify-content: center;

}

/* Style de la barre de navigation */
.navbar {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style du logo */
.navbar img {
    height: 40px;
}

/* Conteneur pour aligner les éléments */
.navbar-content {
    display: flex;
    align-items: center;
    gap: 20px; /* Espacement entre le logo et le bouton */
}

/* Style du bouton Accueil */
.navbar .home-button {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 30px; /* Déplace le bouton plus à gauche */
}

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

/* Bouton Besoin d’aide */
.navbar .help-button {
    margin-left: 20px;
    background-color: #ffc107;
    color: black;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.navbar .help-button:hover {
    background-color: #e0a800;
}


/* Conteneur principal */
main {
    margin-top: 100px;
    padding: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
    font-family: 'Roboto Slab', serif;
}

h3 {
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Zone de drop réutilisable */
.drop-zone {
    border: 2px dashed #6c757d;
    padding: 30px;
    text-align: center;
    color: #6c757d;
    margin-bottom: 20px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f8f9fa;
}


.drop-zone.hover {
    background-color: #e9ecef;
}

/* Nom de fichier réutilisable */
.file-name {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
}
/* Style des champs et labels */
label {
    font-weight: 500;
    margin-top: 15px;
    display: block;
}
input[type="file"], input[type="date"], input[type="number"], input[type="text"], select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Bouton de soumission */
button[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Affichage et modification des coefficients */
#toggleCoefficientsBtn {
    display: inline-block;
    color: #007bff;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 15px;
    padding: 0;
}
.coefficients-section {
    display: none;
    margin-top: 10px;
}

/* Champ Période avec dates alignées */
.period-fields {
    display: flex;
    gap: 10px;
}

.error-box {
    margin-top: 20px;
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 4px;
    white-space: pre-wrap;
}

/* Bouton secondaire : gérer les groupes */
#manageGroupsBtn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: white;
    margin-top: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#manageGroupsBtn:hover {
    background-color: #218838;
}
  