:root {
    --bg-gradient: radial-gradient(circle, #4b2c73, #1a0f29);
    --accent-color: #b00b69;
    --slide-border: #f05a28;
}

body, html {
    margin: 0; padding: 0; height: 100vh;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg-gradient);
    overflow: hidden;
}

.app-container { display: flex; flex-direction: column; height: 100vh; }

.top-bar {
    height: 100px; display: flex; justify-content: space-between; align-items: flex-start;
    padding: 0 2%; position: relative; z-index: 10;
}

.zoom-group { display: flex; gap: 10px; margin-top: 15px; }

/* Groupe central de navigation */
.nav-central-group {
    display: flex; align-items: center; gap: 20px;
}

.counter-box, .timer-box {
    background-color: var(--accent-color); color: white; padding: 12px 25px;
    font-size: 1.6rem; font-weight: bold; border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

#slide-viewport {
    flex: 1; display: flex; justify-content: center; align-items: center;
    padding: 20px 40px; perspective: 2000px;
}

.slide-card {
    background: white; width: 100%; height: 100%; max-width: 1400px;
    border: 8px solid var(--slide-border); border-radius: 45px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6); display: flex;
    padding: 40px; gap: 40px; box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s;
}

.image-container {
    flex: 0 0 45%; max-width: 50%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
}

#question-img {
    max-width: 100%; max-height: 100%; 
    object-fit: contain; border-radius: 20px; border: 4px solid #333; 
    background-color: #fafafa; transition: transform 0.3s ease;
}

.question-div {
    flex: 1; font-size: 32px; display: flex; flex-direction: column;
    justify-content: center; overflow-y: auto; color: #222;
}

.full-width .image-container { display: none; }
.changing { transform: rotateX(15deg) scale(0.7) translateY(200px); opacity: 0; }

/* Styles Boutons et Flèches */
.btn-round {
    background: var(--accent-color); color: white; border: none;
    width: 50px; height: 50px; border-radius: 50%; font-size: 1.8rem; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.2s;
}
.btn-round:hover { transform: scale(1.1); background: var(--slide-border); }

.btn-arrow { 
    background: none; border: none; color: white; 
    font-size: 5rem; cursor: pointer; transition: 0.2s; 
    line-height: 1;
}

/* Effet de survol sur les flèches */
.btn-arrow:hover {
    color: var(--slide-border);
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(240, 90, 40, 0.5);
}

/* Modales et autres (conservés) */
.end-overlay { position: fixed; inset: 0; background: rgba(26, 15, 41, 0.96); display: flex; justify-content: center; align-items: center; z-index: 100; }
.end-content { text-align: center; color: white; }
.trophy { font-size: 10rem; margin-bottom: 20px; }
.btn-restart { background: var(--slide-border); color: white; border: none; padding: 15px 40px; border-radius: 30px; font-size: 1.5rem; cursor: pointer; }
.hidden { display: none !important; }

/* MODALE CONFIG */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: white; width: 90%; max-width: 1100px; height: 80vh; border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; }
.modal-header { padding: 20px; border-bottom: 2px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-body { display: flex; flex: 1; overflow: hidden; }
.selection-col { flex: 1; padding: 20px; overflow-y: auto; border-right: 2px solid #eee; }
.preview-col { flex: 1; padding: 20px; background: #f9f9f9; display: flex; justify-content: center; align-items: center; }
.preview-box { width: 100%; height: 100%; border: 2px dashed #ccc; border-radius: 10px; background: white; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gen-item { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; padding: 8px; border-radius: 8px; }
.gen-item:hover { background: #f4f4f4; }
.cat-title { font-weight: bold; color: var(--accent-color); margin: 20px 0 10px 0; border-bottom: 2px solid #eee; font-size: 1.2rem; }
.btn-p { background: #afa8a8; color: white; border: none; border-radius: 6px; width: 32px; height: 32px; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.btn-p:hover { background: var(--accent-color); transform: scale(1.1); }