/* Global */
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	
    background : linear-gradient(to right, #ccccff,#0000ee);
	color:#000000;
	/*background-color: #e0e0e0; /* Gris Thonny */
    margin: 0; padding: 5px;
}
.nav-exos {
	background-color:#f0f0f0;
    width:75%;	
}
.exercice{
	background-color:#DDDDDD;
	font-variant:small-caps;
	
	font-weight:bold;
	text-align:left;
	margin-bottom:10px;
	
}

.toolbar {
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
}
.container { 
    max-width: 1000px; 
    margin: 0 auto;
    
    background: #f0f0f0; 
    border: 1px solid #999;
    
    display: flex; 
    flex-direction: column;
    height: 95vh;
}

/* Barre d'outils (Header) */
header { 
    background: #f0f0f0;
    padding: 5px 10px; 
    display: flex; 
    align-items: center; 
    gap: 20px;
    border-bottom: 1px solid #ccc;
}

/*h1 { font-size: 14px; margin: 0; color: #555; font-weight: normal; }*/
h1 {
    color:#ffffff;
	background : linear-gradient(to right, #ccccff,#0000ee);
	font-family:Times New Roman;
	font-style:italic;
	text-align : center;
	text-shadow : #F5F 0 -1px 4px, #fff 0 -2px 10px, #ffffff 0 -10px 20px, red 0 -18px 40px;
}
/* Éditeur */
.editor-section { flex: 1; background: white; border-bottom: 2px solid #ccc; }

.CodeMirror { 
    height: 100% !important; 
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

/* Console / Shell */
.output-section { 
    height: 250px; 
    background: white; 
    display: flex; 
    flex-direction: column; 
}

.shell-header { 
    text-align:center;
	font-weight:bold;
    background: #f0f0f0; 
    padding: 3px 10px; 
    font-size: 12px; 
    border-top: 1px solid #ccc; 
    border-bottom: 1px solid #eee;
    color: #333;
}

.console {
    flex: 1;
    padding: 10px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #000;
    overflow-y: auto;
    white-space: pre-wrap;
    resize: none;
    border: none;
    outline: none;
    background: white;
    width: 100%;
    box-sizing: border-box;
}

/* Boutons style Thonny */
.primary-btn {
    background: #ffffff;
    border: 1px solid #bbb;
    border-radius: 3px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.primary-btn:hover { background: #e8f0fe; border-color: #4285f4; }

.primary-btn:disabled { opacity: 0.5; cursor: wait; }

/* Section consigne intégrée discrètement */
.consigne-section {
	/*
    background: #fff9c4; 
    padding: 8px 15px;
    font-size: 13px;
    border-bottom: 1px solid #ccc;
	*/
	/*background-color:rgb(255,255,255,0.4);*/
	background: #fff9c4; 
	color:#000000;
	font-style:italic;
	
	margin-bottom : 10px;
	padding:15px;
	border-radius:5px;
}
/* ─── Gestion des erreurs style Thonny ─────────────────────────────────────── */

/* Surlignage de la ligne en erreur dans l'éditeur */
.error-line-highlight {
    background-color: #ffd6d6 !important;
}

/* Marqueur gutter (point rouge à gauche du numéro de ligne) */
.error-gutter-marker {
    color: #cc0000;
    font-size: 10px;
    line-height: 1;
    padding: 0 2px;
    cursor: default;
}

/* Coloration rouge du texte d'erreur dans la console */
.console-error {
    color: #cc0000;
}
