/* Styles spécifiques à la section IA */
.ia-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin: 20px 0;
}

.ia-card {
    background-color: white;
    border: 2px solid #6a0dad; /* Violet pour l'IA */
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: left;
}

.ia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.ia-card h3 {
    color: #6a0dad;
    margin-top: 0;
    text-align: center;
}

.ia-example {
    background-color: #f0e6ff;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.game-container {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 30px auto;
    max-width: 800px;
}

.game-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.game-option {
    background-color: #6a0dad;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.game-option:hover {
    background-color: #4a0080;
}

#content-display {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    min-height: 80px;
    border: 1px solid #ddd;
}

#result-display {
    font-weight: bold;
    min-height: 30px;
    margin-top: 10px;
}

/* Styles adaptés pour l'accessibilité */
body.high-contrast .ia-card {
    background-color: #222;
    border-color: #ffff00;
    color: #ffffff;
}

body.high-contrast .ia-card h3 {
    color: #4FC3F7;
}

body.high-contrast .ia-example {
    background-color: #333;
    border: 1px solid #ffff00;
}

body.high-contrast .game-container {
    background-color: #222;
    border-color: #ffff00;
}

body.high-contrast .game-option {
    background-color: #4FC3F7;
    color: #000;
}

body.high-contrast .game-option:hover {
    background-color: #81D4FA;
}

body.high-contrast #content-display {
    background-color: #333;
    border-color: #ffff00;
    color: #fff;
}

body.high-contrast #result-display {
    color: #4FC3F7;
}

/* Adaptation pour les grands écrans */
@media screen and (min-width: 1200px) {
    .ia-container {
        max-width: 1200px;
        margin: 20px auto;
    }
}

/* Adaptation pour les tablettes */
@media screen and (max-width: 992px) {
    .ia-card {
        width: 45%;
    }
}

/* Adaptation pour les mobiles */
@media screen and (max-width: 768px) {
    .ia-card {
        width: 100%;
    }
    
    .game-options {
        flex-direction: column;
        align-items: center;
    }
    
    .game-option {
        width: 80%;
    }
}