/* Body : centré et avec espace pour la barre fixe */
body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding-top: 60px; /* HAUTEUR de la barre flottante */
    background-image: url('https://polytech.univ-cotedazur.fr/medias/photo/bandeau_1744275842882-jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: "Roboto", sans-serif;
}

/* Barre de crédit fixe en haut */
#credit-total {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #f0f8ff;
    padding: 10px;
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 2px solid #ccc;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Conteneur principal */
.container {
    width: 1024px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header img {
    height: 60px;
    width: auto;
}

h1 {
    font-size: 40px;
    font-family: "Cherry Cream Soda", system-ui;
}

/* Classe utilitaire pour masquer les éléments */
.hidden {
    display: none !important;
}

/* Style du bloc minor (caché par défaut via .hidden) */
#minor {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Style de la période */
.period-display {
    margin-top: 8px;
    font-style: italic;
    color: #444;
}


/* Table style */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    text-align: left;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
}

th {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #fdfde1;
}

tr:nth-child(odd) {
    background-color: #e6f7ff;
}

tr:hover {
    background-color: #ccc;
    transition: 0.3s;
}

/* Couleurs pour les champs */
.color-field {
    color: black;
}

.color-field-unavailable {
    color: gainsboro;
    opacity: 0.5;
    pointer-events: none;
    background-color: #f0f0f0;
}

/* Liens */
a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Autres éléments */
#select-all {
  accent-color: yellow;
}

.warning {
    margin-top: 20px;
    font-weight: bold;
    color: red;
}