/* styles.css - Style simple avec boutons show/hide */

/* Style pour les cellules interactives */
.interactive-cell {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* Boutons de contrôle */
.cell-controls {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.cell-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cell-button:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cell-button.code {
    background: #2c3e50;
}

.cell-button.output {
    background: #27ae60;
}

.cell-button.active {
    background: #e74c3c;
}

/* Conteneurs pour code et output */
.code-container, .output-container {
    display: none;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.code-container.visible, .output-container.visible {
    display: block;
}

/* Style pour le code */
.code-container pre {
    margin: 0;
    padding: 15px;
    background-color: #2c3e50;
    color: #ecf0f1;
    border-radius: 5px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.4;
}

/* Style pour l'output */
.output-container {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.output-area {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Messages dans l'output */
.output-message {
    padding: 10px;
    border-radius: 5px;
    margin: 5px 0;
}

.output-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.output-message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.output-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Images dans l'output */
.output-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Style pour reveal.js */
.reveal .slides {
    font-size: 28px;
}

.reveal pre {
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 10px;
    font-size: 18px;
}

.reveal code {
    background-color: #e8f4fc;
    padding: 2px 6px;
    border-radius: 3px;
}

/* styles.css - Ajoutez ces styles */

/* Navigation fixe avec icône Home */
.navigation-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.home-button {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.home-button:hover {
    background: #45a049;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Bouton pour revenir au plan du chapitre */
.chapter-button {
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.chapter-button:hover {
    background: #0b7dda;
    transform: scale(1.1);
}