/* =========================================
   STYLE PRINCIPAL - CALCULATEUR ROI SPANDO S2
   (Basé sur le design du module Météo V5.1)
   ========================================= */

/* Conteneur principal (Reprend le style de #recherche-cp) */
.spando-roi-cartouche {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    font-family: "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Titres */
.spando-roi-cartouche h3 {
    text-align: center;
    color: #005723;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-family: Roboto, sans-serif;
}

.spando-roi-cartouche h4 {
    color: #005723;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

/* Groupes de champs */
.spando-roi-form .form-group {
    margin-bottom: 15px;
}

.spando-roi-form label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

/* Champs de saisie (Reprend le style des input texte/date) */
.spando-roi-cartouche input[type="number"],
.spando-roi-cartouche input[type="email"] {
    padding: 10px;
    font-size: 1rem;
    margin: 5px 0;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Boutons (Reprend le style des boutons météo) */
.spando-roi-cartouche button {
    background-color: #005723;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
}

.spando-roi-cartouche button:hover {
    background-color: #007731;
}

/* =========================================
   BLOC RÉSULTAT 
   (Reprend le style de #previsions-meteo)
   ========================================= */
#spando-roi-resultat {
    margin-top: 2rem;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #ddd;
}

#spando-annees-texte {
    font-size: 1.4rem;
    color: #005723;
    font-weight: bold;
}

/* Textes introductifs/notes */
.spando-note {
    font-size: 1rem;
    color: #333;
    margin-top: 10px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Option : Capture de leads (séparateur style #bloc-global-decisions) */
.spando-lead-capture {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #005723;
}

.spando-lead-capture p {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.spando-lead-capture label {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    margin: 10px 0;
    font-weight: normal;
    cursor: pointer;
}

.spando-lead-capture input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

/* =========================================
   ADAPTATION RESPONSIVE (Flexbox intelligent)
   ========================================= */
@media (min-width: 768px) {
    .spando-roi-form .form-group {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .spando-roi-form label {
        margin-bottom: 0;
        width: 60%;
    }
    
    .spando-roi-cartouche input[type="number"] {
        width: 35%;
    }
    
    /* Bouton centré sur desktop */
    #spando-calculer-btn {
        width: auto;
        display: block;
        margin: 20px auto 0 auto;
    }
}