@charset "utf-8";
/* CSS Document */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

        
body {
    font-family: "Barlow Condensed", "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(178deg,rgba(200, 213, 230, 1) 0%, rgba(235, 235, 235, 1) 39%, rgba(255, 255, 255, 1) 99%);
    min-height: 100vh;
    padding: 20px;
    font-weight: 300;
    font-size: 24px;
}

.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 800px;
}

.simulator-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    font-family: inherit;
}

h1 {
    color: #299BD7;
    margin-bottom: 10px;
    font-size: 2em;
    line-height: 1.5em;
    text-align: center;
    font-weight: 300;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.frame {
    display: none;
}

.frame.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.duoCol {
    display: flex;
}
.col_1_2 {
    width: 100%;
}
.col_1_2:first-of-type {
    padding-right: 1em;
}

.frame-title {
    position: relative;
    background: linear-gradient(248deg,rgba(6, 1, 77, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(17, 147, 173, 1) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 1em;
    font-weight: 600;
}
.frame-title::after {
    position: absolute;
    content: "";
    width: 110px;
    height: 110px;
    display: block;
    top:-25px;
    right: 40px;
}
.frame-title.frame-title1::after {
    background: url("../img/SVG/frame-ico-1.svg") center right no-repeat;
    background-size: contain;
}
.frame-title.frame-title2::after {
    background: url("../img/SVG/frame-ico-2.svg") center right no-repeat;
    background-size: contain;
}
.frame-title.frame-title3::after {
    background: url("../img/SVG/frame-ico-3.svg") center right no-repeat;
    background-size: contain;
}
.frame-title.frame-title4::after {
    background: url("../img/SVG/frame-ico-4.svg") center right no-repeat;
    background-size: contain;
}
.frame-title.frame-title8::after {
    background: url("../img/SVG/frame-ico-5.svg") center right no-repeat;
    background-size: contain;
}
.frame-secondaire {
    display:none;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #209BD7;
}
.frame-title-secondaire {
    font-size: 1em;
    font-weight: 600;
    color: #209BD7;
}
.form-group {
    position: relative;
    margin-bottom: 25px;
    margin-left: 3em;
}
.form-group::before {
    position: absolute;
    content: "";
    display: block;
    height: 50px;
    width: 50px;
    left: -3em;
    top: 1.5em;
}
.form-group.f1fg1::before {
    background: url("../img/SVG/ico-region.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f1fg2::before {
    background: url("../img/SVG/ico-menage.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f1fg3::before, .form-group.f5fg7::before {
    background: url("../img/SVG/ico-consommation.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f2fg1::before {
    background: url("../img/SVG/ico-situation.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f2fg2::before {
    background: url("../img/SVG/ico-eauchaude.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f2fg3::before {
    background: url("../img/SVG/ico-chauffeeau.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f3fg1::before {
    background: url("../img/SVG/ico-solaire.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f5fg1::before {
    background: url("../img/SVG/ico-mcarre.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f5fg8::before { 
    background: url("../img/SVG/ico-nb-panneaux.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f5fg2::before {
    background: url("../img/SVG/ico-ajout-panneaux.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f5fg3::before {
    background: url("../img/SVG/ico-orientation.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f5fg4::before {
    background: url("../img/SVG/ico-support.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f5fg5::before, .form-group.f5fg9::before {
    background: url("../img/SVG/ico-age-habitation.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f7fg1::before {
    background: url("../img/SVG/ico-nom.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f7fg2::before {
    background: url("../img/SVG/ico-mail.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f7fg3::before {
    background: url("../img/SVG/ico-phone.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f7fg4::before {
    background: url("../img/SVG/ico-zip.svg") center center no-repeat;
    background-size: contain;
}
.form-group.f7fg5::before {
    background: url("../img/SVG/ico-promo.svg") center center no-repeat;
    background-size: contain;
}
label {
    display: block;
    margin-bottom: 10px;
    color: #217CAC;
    font-weight: 500;
    font-size: 1em;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #E9E9E9;
}

.radio-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.radio-option input[type="radio"] {
    margin-right: 10px;
}

.radio-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}
.radio-option label {
    color: #333;
    font-size: 0.9em;
}
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(248deg,rgba(6, 1, 77, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(17, 147, 173, 1) 100%);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/*
 * Styles pour l'écran de chargement (Frame 6)
 */
.loading-frame {
    /* S'assurer qu'il prend toute la place dans le simulateur-card */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 800px;
    
    /* Centrage du contenu */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Couleur de fond, idéalement la même que le conteneur du formulaire */
    background-color: #ffffff; /* Ajustez si votre fond est différent */
    
    /* Assure qu'il est au-dessus du formulaire */
    z-index: 1000; 
}

/* Style spécifique pour le texte "On calcule..." */
.loading-frame p {
    font-size: 1.5em;
    font-weight: 400;
    color: #217cac; /* Couleur sombre Wanit */
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Styles pour les résultats avec 2 options */
.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.option-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.option-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
}

.option-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7em;
}

.option-features {
    list-style: none;
    margin: 20px 0;
}

.option-features li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.option-price {
    font-size: 2em;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin: 20px 0;
}

.option-savings {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/* Tableau d'amortissement */
.amortization-table {
    margin-top: 30px;
    overflow-x: auto;
}

.amortization-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.amortization-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    text-align: left;
    position: sticky;
    top: 0;
}

.amortization-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.amortization-table tr:hover {
    background: #f8f9fa;
}

.amortization-table .positive {
    color: #2e7d32;
    font-weight: 600;
}

.amortization-table .negative {
    color: #d32f2f;
}

.amortization-table .year-highlight {
    background: #fff3e0;
    font-weight: 600;
}

/* Graphique */
.chart-container {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Bon de commande */
.order-form {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.order-items {
    margin: 20px 0;
}

.order-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item.header {
    font-weight: 600;
    border-bottom: 2px solid #333;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #333;
}

.progress-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.progress-step {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.info-box {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 600;
    margin: 2em auto 2em 3.5em;
}

.info-box p {
color: #444;
line-height: 1.6;
}

.tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

    .tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .simulator-card {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
        font-weight: 300;
    }

    .options-container {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .order-header {
        flex-direction: column;
        gap: 20px;
    }
}

@media print {
    body {
        background: white;
    }

    .simulator-card {
        box-shadow: none;
        padding: 20px;
    }

    .button-group,
    .tabs {
        display: none;
    }

    .tab-content {
        display: block !important;
    }
}