/* ============ Navigation (bandeau haut) ============ */

header {
    background: #0069B4;
    color: #fff;
    padding: 0.6rem 1rem;
}

header nav a {
    color: #d6e9f8;
    text-decoration: none;
    font-size: 0.95rem;
}

header nav a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ============ Titres ============ */

h1 {
    color: #00518a;
    border-bottom: 3px solid #0069B4;
    padding-bottom: 0.3rem;
}

h2 {
    color: #37474F;
    margin-top: 1.8rem;
}

/* ============ Messages ============ */

.success {
    background: #eaf7e3;
    border-left: 4px solid #43B02A;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    color: #2c6e1f;
}

/* .error : inchangé (rouge) */

/* ============ Boutons ============ */

.btn {
    display: inline-block;
    background: #0069B4;
    color: #fff !important;
    padding: 0.5rem 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    margin: 0.2rem 0.3rem 0.2rem 0;
}

.btn:hover {
    background: #00518a;
}

/* Aération des formulaires */
select {
    margin: 0.6rem 0;      /* espace au-dessus et en dessous de chaque liste */
}
button {
    margin-top: 1.2rem;    /* le bouton d'action respire un peu plus */
}

/* .btn-desactive : inchangé */

/* Bouton actif (semestre sélectionné) : repasse au vert pour trancher sur le bleu */
.btn-actif {
    background: #43B02A;
}

.btn-actif:hover {
    background: #2c6e1f;
}

/* ============ Badges : inchangés (vert = ouvert, orange = programmé) ============ */

/* ============ Formulaires : le focus passe au bleu ============ */

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0069B4;
    box-shadow: 0 0 0 2px rgba(0,105,180,0.2);
}

/* ============ Tableaux ============ */

table {
    border-collapse: collapse;        /* colle les bordures proprement */
    margin: 1rem 0;                   /* espace autour du tableau */
    width: auto;
}

th, td {
    border: 1px solid #d6e4f0;         /* fines bordures bleu clair, palette */
    padding: 0.5rem 0.9rem;           /* l'aération : l'intérieur des cellules */
    text-align: left;
    vertical-align: top;
}

th {
    background: #0069B4;              /* en-têtes dans le bleu Polytech */
    color: #fff;
    font-weight: 600;
}

tr:nth-child(even) td {               /* zébrage léger pour la lisibilité */
    background: #f4f8fc;
}

tr:hover td {                          /* surligne la ligne au passage */
    background: #eaf2fa;
}
