/* =========================================================
   Espaces enseignant / élève — dans la DA du site
   (réutilise les variables : --primary, --grey, --white…)
   ========================================================= */

.container .subtitle {
    font-size: 16px;
    font-weight: 300;
    color: #e5e5ee;
}

/* Alerte / message flash */
.flash {
    width: 100%;
    padding: 14px 18px;
    border-radius: 6px;
    font-weight: 500;
    background-color: color-mix(in srgb, var(--primary) 15%, transparent);
    border: 1px solid var(--primary);
    color: var(--white);
}
.flash.erreur {
    background-color: color-mix(in srgb, var(--danger) 15%, transparent);
    border-color: var(--danger);
}

/* Onglets (filtre élève) */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tabs > a {
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    background-color: color-mix(in srgb, color-mix(in srgb, var(--white) 5%, transparent), blue 1%);
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
}
.tabs > a[selected] {
    background-color: var(--primary);
    color: var(--grey);
}

/* Liste de cours / demandes */
.cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}
.cards .card {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 8px;
    background-color: color-mix(in srgb, color-mix(in srgb, var(--white) 5%, transparent), blue 1%);
}
.cards .card > .ic {
    flex: 0 0 52px;
    height: 52px;
    width: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background-color: var(--primary);
    color: var(--grey);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}
.cards .card > .meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cards .card > .meta > .name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}
.cards .card > .meta > .line {
    font-size: 14px;
    font-weight: 300;
    color: #b9bfd0;
}
.cards .card > .meta .pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    background-color: var(--secondary);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
}
.cards .card > .actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.cards .card > .actions a,
.cards .card > .actions button {
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    outline: none;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background-color: var(--primary);
    color: var(--grey);
}
.cards .card > .actions .ghost {
    background-color: transparent;
    border: 1px solid #3a4155;
    color: var(--white);
}

/* État vide */
.empty {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    border: 1px dashed #3a4155;
    color: #b9bfd0;
    font-weight: 300;
}

/* Zone de connexion : centrer le formulaire */
.container.auth {
    min-height: 70vh;
    justify-content: center;
    align-items: center;
}
.container.auth .box {
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 35px;
    border-radius: 10px;
    background-color: var(--black);
}
.container.auth .box .demo {
    padding: 14px;
    border-radius: 6px;
    border: 1px dashed #3a4155;
    font-size: 13px;
    font-weight: 300;
    color: #b9bfd0;
    line-height: 1.6;
}
.container.auth .box .demo b { color: var(--white); font-weight: 500; }

/* Petit champ fichier lisible sur fond sombre */
.container input[type="file"] {
    background-color: color-mix(in srgb, color-mix(in srgb, var(--white) 5%, transparent), blue 1%);
    color: var(--white);
    padding: 12px 15px;
}
.container select {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: none;
    outline: none;
    border-radius: 4px;
    font-family: 'Poppins';
}

/* Deux colonnes sur grand écran pour l'espace enseignant */
.space-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}
.space-grid > .col-form { flex: 0 0 360px; }
.space-grid > .col-list { flex: 1; min-width: 0; }

@media (max-width: 900px) {
    .space-grid { flex-direction: column; }
    .space-grid > .col-form { flex: none; width: 100%; }
    .container .row { flex-direction: column; }
}

/* Bouton principal (connexion, dépôt) — même look que le site */
.btn-primary {
    padding: 15px 30px;
    border: none;
    outline: none;
    border-radius: 4px;
    background-color: var(--primary);
    color: var(--grey);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins';
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
}
.btn-primary:hover { filter: brightness(1.05); }

/* ————— Page publique Enseignants ————— */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 30px 22px;
    border-radius: 10px;
    background-color: color-mix(in srgb, color-mix(in srgb, var(--white) 5%, transparent), blue 1%);
}
.team-card .avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--black);
    font-size: 44px;
    border: 2px solid var(--primary);
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card .tname { font-size: 19px; font-weight: 600; color: var(--white); }
.team-card .chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.team-card .tdesc { font-size: 14px; font-weight: 300; color: #b9bfd0; line-height: 1.6; }
.team-card .tline { font-size: 13px; font-weight: 300; color: #e5e5ee; }

/* ————— Barre de progression ————— */
.progress {
    width: 100%;
    max-width: 320px;
    height: 8px;
    border-radius: 50px;
    background-color: var(--black);
    overflow: hidden;
    margin-top: 6px;
}
.progress .bar {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

/* Checkbox natives lisibles sur fond sombre */
.container input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); }
