body {
    font-family: Arial;
    margin: 0;
}

/* Masquer la barre Google Translate par défaut */
#google_translate_element {
    display: none;
}

/* ⚠️ MODIFICATION 1 : Permettre l'affichage du bandeau Google Translate */
/* Retirer display: none !important pour que le bandeau s'affiche */
.goog-te-banner-frame.skiptranslate {
    /*display: none !important; <-- Supprimer ou commenter cette ligne */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Optionnel: pour un meilleur rendu */
    z-index: 9998 !important; /* S'assurer qu'elle est sous l'overlay de login si jamais il apparaît */
}

/* ⚠️ MODIFICATION 2 : Décaler tout le contenu du site */
/* Ajouter un padding-top au body pour compenser la hauteur du bandeau (environ 39px) */
body {
    top: 0px !important; /* Conserver cette ligne pour annuler le décalage natif de Google */
    padding-top: 39px !important; /* Ajout/Modification pour décaler le contenu vers le bas */
}

/* LOGIN OVERLAY */
#loginOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loginOverlay.hidden {
    display: none;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    color: #2a5298;
    margin-bottom: 10px;
    font-size: 32px;
}

.login-box .subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-form {
    text-align: left;
}

.login-group {
    margin-bottom: 20px;
}

.login-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.login-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-group input:focus {
    outline: none;
    border-color: #2a5298;
}

.login-btn {
    width: 100%;
    background: #2a5298;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.login-btn:hover {
    background: #1e3c72;
}

/* Style pour les titres des sous-menus (Cours, Élève, ...) */
.submenu-parent {
    font-weight: bold;
    cursor: pointer;
}

/* Style pour le titre du sous-menu actif */
.submenu-parent.active {
    background-color: #f0f0f0; /* Couleur claire pour le titre actif */
}

/* Style pour le lien de page sélectionné à l'intérieur d'un sous-menu */
.active-submenu-link-selected {
    background-color: #e0e0e0; 
    font-weight: 600;
}

.login-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    border: 1px solid #f5c6cb;
}

/* MAIN LAYOUT */
header {
    background: linear-gradient(135deg,#1e3c72,#2a5298);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 5px;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
}

.nav-btn.active {
    background: rgba(255,255,255,0.3);
}

.lang-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
    margin: 0 3px;
    font-size: 14px;
}

.lang-btn.active {
    background: #ffd700;
    color: #1e3c72;
    font-weight: bold;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.3);
}

.lang-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.main {
    display: flex;
    height: calc(100vh - 70px);
}

.sidebar {
    width: 250px;
    background: #f5f5f5;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.sidebar.hidden {
    display: none;
}

.sidebar-title {
    background: #2a5298;
    color: white;
    padding: 15px;
    font-weight: bold;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.sidebar-menu li:hover {
    background: #e0e0e0;
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: white;
}

.welcome {
    text-align: center;
    padding: 50px 20px;
}

.welcome h1 {
    color: #1e3c72;
    margin-bottom: 20px;
}

.welcome p {
    color: #666;
    font-size: 18px;
}