/* Style du Module de Compatibilité Allomegane */

.mega-compatibilite-module {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mega-compatibilite-module h2 {
    color: #B92EC2; /* Violet Allomegane principal */
    text-align: center;
    border-bottom: 2px solid #B92EC2;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.mega-compatibilite-module h3 {
    color: #333;
    font-size: 1.2em;
    margin-top: 15px;
}

/* Champs de Formulaire */
.mega-compatibilite-module input[type="date"],
.mega-compatibilite-module input[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-sizing: border-box; 
}

.mega-compatibilite-module input[type="date"] {
    border: 1px solid #ccc;
}

.mega-compatibilite-module label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

/* Bouton de soumission */
.mega-compatibilite-module .button-primary {
    background-color: #B92EC2; /* Nouveau Violet */
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mega-compatibilite-module .button-primary:hover {
    background-color: #B92EC2; /* Nuance de violet pour le survol */
}

/* Section Résultats */
.mega-resultat {
    border: 3px solid #B92EC2; /* Nouveau Violet */
    padding: 25px;
    margin-top: 30px;
    border-radius: 10px;
    background-color: #f5f5f5;
}

.mega-resultat h3 {
    color: #B92EC2; /* Violet légèrement plus foncé pour le titre du résultat */
    margin-top: 0;
    margin-bottom: 15px;
}

/* Barre de score */
.score-bar-container {
    margin-top: 20px;
    margin-bottom: 25px; /* Espace sous la barre de score avant le titre */
    font-weight: bold;
}

.progress-bar {
    height: 25px;
    background-color: #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar > div {
    background-color: #B92EC2;
    height: 100%;
    transition: width 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 0.9em;
}

/* Titre Interprétation */
.interpretation-titre {
    color: #333;
    font-size: 1.1em;
    text-decoration: underline; /* On garde le souligné que vous aimiez */
    margin-bottom: 5px; /* Petit espace entre le titre et le cadre gris */
    margin-top: 0;
}

/* Boite de texte gris */
.mega-compatibilite-module .mega-resultat .interpretation-texte {
    margin-top: 0; /* Colle le texte au titre */
    padding: 15px; /* J'ai remis 15px pour que le texte ne touche pas les bords violets */
    background-color: #f7f7f7;
    border-left: 5px solid #B92EC2;
    white-space: normal; /* <--- C'EST ICI LA CORRECTION (C'était pre-wrap) */
    border-radius: 5px;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Style pour le conteneur de l'image de relance */
.mega-commercial-relance {
    margin-top: 20px;
    text-align: center;
}

.mega-commercial-relance img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border-radius: 8px;
}