* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ffd6e0 0%, #ffc4d6 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: url('caillou01.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    /* opacity: 0.3; */
    /* z-index: 1;
    pointer-events: none; */
}

.slide-container {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    max-height: 880px;
    background: linear-gradient(135deg, #ffd6e0 0%, #ffc4d6 100%);
    border-radius: 20px;
    box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.8);
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0.85;
}

/* En-tête avec navigation */
.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.nav-icon {
    font-size: 48px;
    cursor: pointer;
    transition: transform 0.3s;
}

.nav-icon:hover {
    transform: scale(1.1);
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn-lang {
    padding: 15px 40px;
    font-size: 36px;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-french {
    background: linear-gradient(135deg, #ffd93d 0%, #f9c74f 100%);
    color: #000;
}

.btn-arabic {
    background: linear-gradient(135deg, #90c4ed 0%, #6fa8dc 100%);
    color: #000;
}

.btn-lang:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-lang:active {
    transform: translateY(0);
}

.education {
    font-size: 56px;
}

.slide-number {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Contenu principal */
.slide-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 10;
    flex: 1;
    justify-content: center;
}

.question-box,
.answer-box {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px 50px;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-box {
    background: linear-gradient(135deg, rgba(255, 250, 205, 0.95) 0%, rgba(255, 245, 195, 0.95) 100%);
}

.answer-box {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.95) 0%, rgba(230, 240, 250, 0.95) 100%);
}

.question-text {
    font-size: 50px;
    font-weight: bold;
    color: #c30000;
    text-align: center;
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
}

.answer-text {
    font-size: 50px;
    font-weight: bold;
    color: #5805f3;
    text-align: center;
    font-family: 'Arial', sans-serif;
    direction: rtl;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Boutons de navigation */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.btn-nav {
    flex: 1;
    padding: 15px 30px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.8);
    color: white;
}

.btn-audio {
    width: 80px;
    height: 80px;
    font-size: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-audio:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-audio:active {
    transform: scale(1.05);
}

.btn-nav:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-nav:active:not(:disabled) {
    transform: translateY(0);
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-prev {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.btn-next {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

/* Image de fond décorative */
.background-character {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px) {
    .slide-container {
        padding: 25px;
        max-height: 650px;
    }
    
    .nav-icon {
        font-size: 40px;
    }
    
    .btn-lang {
        padding: 12px 35px;
        font-size: 30px;
    }
    
    .education {
        font-size: 48px;
    }
    
    .slide-number {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }
    
    .question-text {
        font-size: 38px;
    }
    
    .answer-text {
        font-size: 36px;
    }
    
    .question-box,
    .answer-box {
        padding: 30px 40px;
        min-height: 100px;
    }
    
    .btn-audio {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }
    
    .btn-nav {
        font-size: 20px;
        padding: 12px 25px;
    }
    
    .background-character {
        width: 320px;
        height: 320px;
    }
}

/* Mobiles en mode paysage et petites tablettes (481px - 768px) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .slide-container {
        padding: 20px;
        height: auto;
        min-height: 85vh;
        max-height: none;
    }
    
    .slide-header {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .nav-icon {
        font-size: 36px;
    }
    
    .nav-buttons {
        gap: 12px;
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .btn-lang {
        padding: 10px 30px;
        font-size: 28px;
    }
    
    .education {
        font-size: 40px;
    }
    
    .slide-number {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .slide-content {
        gap: 20px;
    }
    
    .question-box,
    .answer-box {
        padding: 25px 30px;
        min-height: 80px;
    }
    
    .question-text {
        font-size: 30px;
    }
    
    .answer-text {
        font-size: 28px;
    }
    
    .navigation-buttons {
        gap: 15px;
        margin-top: 15px;
    }
    
    .btn-nav {
        padding: 12px 20px;
        font-size: 18px;
    }
    
    .btn-audio {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }
    
    .background-character {
        width: 250px;
        height: 250px;
        opacity: 0.2;
        left: -30px;
    }
}

/* Petits mobiles (jusqu'à 480px) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .slide-container {
        padding: 15px;
        border-radius: 15px;
    }
    
    .slide-header {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .nav-icon {
        font-size: 28px;
    }
    
    .btn-lang {
        padding: 8px 20px;
        font-size: 22px;
    }
    
    .education {
        font-size: 32px;
    }
    
    .slide-number {
        width: 50px;
        height: 50px;
        font-size: 28px;
        border-radius: 10px;
    }
    
    .slide-content {
        gap: 15px;
    }
    
    .question-box,
    .answer-box {
        padding: 20px;
        min-height: 180px;
        border-radius: 15px;
    }
    
    .question-text {
        font-size: 30px;
        line-height: 1.4;
    }
    
    .answer-text {
        font-size: 30px;
        line-height: 1.5;
    }
    
    .navigation-buttons {
        gap: 10px;
        margin-top: 10px;
        flex-wrap: wrap;
    }
    
    .btn-nav {
        padding: 10px 15px;
        font-size: 16px;
        min-width: 100px;
    }
    
    .btn-audio {
        width: 55px;
        height: 55px;
        font-size: 28px;
        order: 3;
        margin: 0 auto;
    }
    
    .btn-prev {
        order: 1;
    }
    
    .btn-next {
        order: 2;
    }
    
    .background-character {
        width: 180px;
        height: 180px;
        opacity: 0.15;
        left: -20px;
    }
}

/* Très petits mobiles (jusqu'à 360px) */
@media (max-width: 360px) {
    .slide-container {
        padding: 10px;
    }
    
    .btn-lang {
        padding: 6px 15px;
        font-size: 20px;
    }
    
    .question-text {
        font-size: 24px;
    }
    
    .answer-text {
        font-size: 30px;
    }
    
    .btn-nav {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .btn-audio {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
