/* Styles généraux */
body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

h1 {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

p {
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

button {
    display: block;
    margin: 0 auto 30px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Styles pour le contenu du chapitre */
#resultat {
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.chapitre-content {
    display: flex;
    gap: 30px;
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.chapitre-text {
    flex: 2;
    color: #333;
}

.chapitre-text h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.chapitre-text p {
    text-align: left;
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.chapitre-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chapitre-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.chapitre-image img:hover {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .chapitre-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .chapitre-image {
        order: -1;
    }
    
    .chapitre-image img {
        max-width: 80%;
    }
}