* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 15px;
    max-width: 100%;
    overflow-x: hidden;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conseils {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}

.conseils ul {
    padding-left: 20px;
}

.conseils li {
    margin-bottom: 8px;
}

.panneau-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

#panneauContent, #correctionContent {
    font-size: 100px;
    text-align: center;
    line-height: 200px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.options-container {
    width: 100%;
    margin-bottom: 20px;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: none;
    border-radius: 10px;
    background-color: #3498db;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.option-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.option-btn:active {
    transform: translateY(0);
}

.score-container {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.control-btn, .btn-animated {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1 1 45%;
    min-width: 120px;
    text-align: center;
}

.btn-animated {
    background-color: #2ecc71;
    color: white;
    margin-top: 20px;
    animation: pulse 2s infinite;
}

.btn-animated:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#correctionBtn {
    background-color: #f39c12;
    color: white;
}

#correctionBtn:hover {
    background-color: #d35400;
}

#suivantBtn {
    background-color: #2ecc71;
    color: white;
}

#suivantBtn:hover {
    background-color: #27ae60;
}

#retourBtn {
    background-color: #e74c3c;
    color: white;
}

#retourBtn:hover {
    background-color: #c0392b;
}

.correction-text {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}

.correction-text p {
    margin-bottom: 10px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.correct {
    background-color: #2ecc71 !important;
}

.incorrect {
    background-color: #e74c3c !important;
}

/* Styles pour les panneaux spéciaux */
.panneau-limitation {
    background-color: white;
    border: 3px solid red;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    font-weight: bold;
    color: black;
}

.panneau-triangle {
    width: 180px;
    height: 156px;
    background-color: red;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

.panneau-triangle-inner {
    width: 160px;
    height: 136px;
    background-color: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
}

@media (max-width: 400px) {
    .panneau-container {
        width: 180px;
        height: 180px;
    }
    
    #panneauContent, #correctionContent {
        font-size: 80px;
    }
    
    .panneau-limitation {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }
    
    .panneau-triangle {
        width: 150px;
        height: 130px;
    }
    
    .panneau-triangle-inner {
        width: 130px;
        height: 110px;
        font-size: 30px;
    }
    
    .control-btn, .btn-animated {
        flex: 1 1 100%;
    }
}