/* ========================================================
   GESTION DE LA CLASSE - GL HUB
   Styles propres à gestion-classe.html (demandes, membres, matieres).
   La mise en page generale (barre de navigation, bandeau, pied de page)
   vient de responsable-l2.css, theme.css et auth.css.
   ======================================================== */

.gc-cache {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Messages de retour ---------- */
.gc-message {
    padding: 12px 16px;
    border-radius: 10px;
    margin: 0 0 18px;
    font-weight: 600;
}
.gc-message.succes { background: #dcfce7; color: #166534; }
.gc-message.erreur { background: #fee2e2; color: #991b1b; }

/* ---------- Raccourcis ---------- */
.gc-liens {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

/* ---------- Statistiques ---------- */
.gc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 0 0 30px;
}
.gc-stat {
    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: #475569;
    font-size: 0.95rem;
}
.gc-stat strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    color: rgb(4, 51, 131);
}

/* ---------- Titres de section ---------- */
.gc-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.gc-titre {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 10px;
    color: rgb(4, 51, 131);
    font-size: 1.25rem;
}
.gc-entete .gc-titre { margin-top: 0; }
.gc-aide {
    margin: 0 0 14px;
    color: #475569;
    font-size: 0.95rem;
}

/* ---------- Listes et cartes ---------- */
.gc-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}
.gc-vide {
    margin: 0;
    color: #64748b;
    font-style: italic;
}
.gc-carte {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 14px 16px;
}
.gc-infos { min-width: 0; flex: 1 1 260px; }
.gc-infos h4 { margin: 0 0 4px; color: #0f172a; }
.gc-infos p { margin: 3px 0; color: #475569; font-size: 0.93rem; overflow-wrap: anywhere; }

.gc-ligne-numero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}
.gc-numero {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    color: #0f172a;
}
.gc-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Boutons ---------- */
.gc-bouton {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border: 2px solid rgb(4, 51, 131);
    border-radius: 9px;
    background: rgb(4, 51, 131);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
}
.gc-bouton:hover { filter: brightness(1.12); }
.gc-bouton:disabled { opacity: 0.55; cursor: not-allowed; }
.gc-bouton-clair { background: transparent; color: rgb(4, 51, 131); }
.gc-bouton-clair:hover { background: rgba(4, 51, 131, 0.08); filter: none; }
.gc-bouton-ok { background: #16a34a; border-color: #16a34a; }
.gc-bouton-danger { background: #dc2626; border-color: #dc2626; }
.gc-petit { padding: 6px 11px; font-size: 0.85rem; }

/* ---------- Zone de refus ---------- */
.gc-refus {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.gc-refus[hidden] { display: none; }
.gc-refus input {
    flex: 1 1 240px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
}

/* ---------- Formulaire de matiere ---------- */
.gc-form-matiere {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.gc-form-matiere input {
    flex: 1 1 240px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
}

/* ---------- Badges ---------- */
.gc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}
.gc-badge-etudiant { background: #e0e7ff; color: #3730a3; }
.gc-badge-responsable { background: #fef3c7; color: #92400e; }
.gc-badge-ok { background: #dcfce7; color: #166534; }
.gc-badge-refus { background: #fee2e2; color: #991b1b; }

/* ---------- Theme sombre ---------- */
body.dark-theme .gc-stat,
body.dark-theme .gc-carte {
    background: #16233f;
    border-color: #2a3b61;
}
body.dark-theme .gc-stat { color: #cbd5e1; }
body.dark-theme .gc-stat strong,
body.dark-theme .gc-titre { color: #9ec1ff; }
body.dark-theme .gc-infos h4,
body.dark-theme .gc-numero { color: #f1f5f9; }
body.dark-theme .gc-infos p,
body.dark-theme .gc-aide { color: #cbd5e1; }
body.dark-theme .gc-vide { color: #94a3b8; }
body.dark-theme .gc-bouton-clair { color: #9ec1ff; border-color: #9ec1ff; }
body.dark-theme .gc-bouton-clair:hover { background: rgba(158, 193, 255, 0.12); }
body.dark-theme .gc-refus input,
body.dark-theme .gc-form-matiere input {
    background: #0f1a33;
    border-color: #2a3b61;
    color: #f1f5f9;
}
body.dark-theme .gc-badge-etudiant { background: #312e81; color: #c7d2fe; }
body.dark-theme .gc-badge-responsable { background: #78350f; color: #fde68a; }
body.dark-theme .gc-badge-ok { background: #14532d; color: #bbf7d0; }
body.dark-theme .gc-badge-refus { background: #7f1d1d; color: #fecaca; }
body.dark-theme .gc-message.succes { background: #14532d; color: #bbf7d0; }
body.dark-theme .gc-message.erreur { background: #7f1d1d; color: #fecaca; }

@media (max-width: 600px) {
    .gc-actions { width: 100%; }
    .gc-actions .gc-bouton { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Champ de prix (page des tarifs) ---------- */
.gc-prix {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 600;
}
.gc-prix input,
.gc-form-matiere select {
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    background: #ffffff;
    color: #0f172a;
}
.gc-prix input { width: 120px; }
.gc-form-matiere select { flex: 1 1 200px; }
body.dark-theme .gc-prix { color: #cbd5e1; }
body.dark-theme .gc-prix input,
body.dark-theme .gc-form-matiere select {
    background: #0f1a33;
    border-color: #2a3b61;
    color: #f1f5f9;
}

/* ---------- Page des tarifs : modules ---------- */
.gc-champs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1 1 100%;
}
.gc-champs input[type="text"] {
    flex: 1 1 220px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    font-weight: 700;
    background: #ffffff;
    color: #0f172a;
}
.gc-select {
    flex: 1 1 240px;
    max-width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    background: #ffffff;
    color: #0f172a;
}
.gc-alerte {
    margin: 0 0 14px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}
body.dark-theme .gc-champs input[type="text"],
body.dark-theme .gc-select {
    background: #0f1a33;
    border-color: #2a3b61;
    color: #f1f5f9;
}
body.dark-theme .gc-alerte { background: #78350f; color: #fde68a; }