
.form-step {
    display: none;
}

.form-step:first-child {
    display: block;
}


#multi-step-form {
    text-align: center;
    margin: 0 auto 15em 0;
}

.form-step {
    margin-bottom: 20px;
}

.form-step h2 {
    text-align: center;
    margin-bottom: 10px;
}

.form-step label.custom-label {
    flex: 0 0 calc(33% - 10px); 
    margin: 5px;
    text-align: left;
    cursor: pointer;
    border: 1px solid #032C68; 
    padding: 0;
    box-sizing: border-box;
    min-height:1em;
}

.form-step input[type="text"],
.form-step input[type="radio"] {
    margin-bottom: 10px;
}



.form-reponses {
    display: block;
    padding: 0 0;
    /* height:60vh;
    overflow-y: scroll; */
}

.form-step button.prev-step,
.form-step button.next-step {
    background-color: #032C68;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

/* Cache les input radio et checkbox originaux */
input[type="radio"], input[type="checkbox"] {
    display: none;
}

/* Custom label */
.custom-label-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 3em;
}

.icon-box.bg-blue {
    background-color: #032C68; /* Fond du favicon bleu */
    padding: 10px;
    border-radius: 0; /* Retire le border-radius */
    min-height: 1em;
}

.icon-svg {
    width:2em;
}

.text {
    flex-grow: 1;
    text-align: center;
    padding-left: 10px;
}

/* Quand le label est sélectionné */
input[type="radio"]:checked + label.custom-label,
input[type="checkbox"]:checked + label.custom-label {
    background-color: #F25416;
    color: #fff;
    border-color: #F25416;
}

/* Pour la couleur de l'icône lorsque l'input est sélectionné */
input[type="radio"]:checked + label.custom-label .icon-box {
    background-color: #F25416;
}

.reponses-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
}


/* Etiquette DPE */

.apoi {
    background-color: green;
    color: white;
    display: block;
    width: 4.5em;
    margin-right: auto;
    margin-left: auto;
    transform: scale(1.5);
}

#dcm_dpe_container td, #dcm_ges_container td {
padding : 0;
vertical-align: middle;
border:none;
background-color: transparent;
width: 48%; 
text-align: center;
}


#dcm_dpe_container td:first-child, #dcm_ges_container td:first-child {
    width: 55%;
}

#dcm_dpe_container td:nth-child(2), #dcm_ges_container td:nth-child(2), 
#dcm_dpe_container td:nth-child(3), #dcm_ges_container td:nth-child(3) {
    width: 4em;
}

@media (max-width: 768px) {
    #labels-container-DCMDpe {
        flex-direction: column;
    }

    #dcm_dpe_container, #dcm_ges_container {
        width: 100%;
    }
}

.dcm_dpe_label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-weight: bold;
    height: 2.7em;
    position: relative;
    padding-right: 20px;
    margin-bottom: 0.3em;
    padding-left:1em;
}
.dcm_dpe_label::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1.4em; 
    height: 100%; 
    background: linear-gradient(to right, transparent 10%, currentColor 100%);
}
.dcm_dpe_label span {
    padding-left: 10px;
}
/* Les classes pour les catégories énergétiques */
.Adpe { background:linear-gradient(to right,#3c6930,#5a9c46) !important; width: 7em; }
.Bdpe { background:linear-gradient(to right,#5a9c46,#86bf5b) !important; width: 8em; }
.Cdpe { background:linear-gradient(to right,#aacb57,#c2d880) !important; width: 9em; }
.Ddpe { background:linear-gradient(to right,#f1da53,#f2e580) !important; width: 10em;}
.Edpe { background:linear-gradient(to right,#e2893e,#eaae70) !important; width: 11em; }
.Fdpe { background:linear-gradient(to right,#d85443,#e38a80) !important; width: 12em; }
.Gdpe { background:linear-gradient(to right,#d53439,#e2606a) !important; width: 13em; }


@media (max-width: 768px) {
    .Adpe { width: 3em; }
    .Bdpe { width: 4em; }
    .Cdpe { width: 5em; }
    .Ddpe { width: 6em;}
    .Edpe { width: 7em; }
    .Fdpe { width: 8em; }
    .Gdpe { width: 9em; } 
}
.dcm_dpe_score_box, .dcm_ges_score_box {
    border: 2px solid black;
    border-radius: 5px;
    text-align: center;
    font-size: 2.2em;
    font-weight: bold;
    padding: 5px;
    color: black;

}


.dcm_dpe_score_box_after, .dcm_ges_score_box_after {

    border: 2px solid #61CE70;
    border-radius: 5px;
    text-align: center;
    font-size: 2.2em;
    font-weight: bold;
    padding: 5px;
    color: #61CE70;

}

.dcm_dpe_score_box_after::before, .dcm_ges_score_box_after::before {
    border:1px solid black;

}


/* Etiquette GES */
#dcm_ges_container {

}
.dcm_ges_label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-weight: bold;
    height: 2.7em;
    position: relative;
    padding-right: 20px;
    margin-bottom: 0.3em;
    padding-left:1em;
}
.dcm_ges_label::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1.4em; 
    height: 100%; 
    background: linear-gradient(to right, transparent 10%, currentColor 100%);
}
.dcm_ges_label span {
    padding-left: 10px;
}
/* Les classes pour les catégories énergétiques */
.Ages { background:linear-gradient(to right,#eee7ef,#f7f2f6) !important; width: 7em; }
.Bges { background:linear-gradient(to right,#dbc9dc,#e6d8e6) !important; width: 8em; }
.Cges { background:linear-gradient(to right,#cfb7d0,#d6c3d8) !important; width: 9em; }
.Dges { background:linear-gradient(to right,#bc9cbf,#c6abc8) !important; width: 10em;}
.Eges { background:linear-gradient(to right,#a47aa7,#b18ab3) !important; width: 11em; }
.Fges { background:linear-gradient(to right,#8e5991,#9c62a1) !important; width: 12em; }
.Gges { background:linear-gradient(to right,#76387b,#863f8c) !important; width: 13em; }

@media (max-width: 768px) {
    .Ages { width: 3em; }
    .Bges { width: 4em; }
    .Cges { width: 5em; }
    .Dges { width: 6em;}
    .Eges { width: 7em; }
    .Fges { width: 8em; }
    .Gges { width: 9em; } 
}

.dcm_ges_score_unit, .dcm_dpe_score_unit {
    font-size: 0.6em;
    font-weight: normal;
}



.form-step input[type="text"] {
      
    display: block;  
    max-width: 70%;
    
    text-align: left;
}


#labels-container-DCMDpe {
    display: flex;
    justify-content: space-between;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .form-step label.custom-label {
    flex: 0 0 100%; 
}
.form-step label.custom-label {
    flex: 0 0 100%;
    padding: 10px;
    margin: 5px 0; /* Margin ajusté */
    border-radius: 4px; /* Petit border-radius */
}

/* Cache l'icône en mode responsive */
.icon-box.bg-blue {
    display: none;
}
/* Pour le texte */
.text {
    text-align: center;
    padding-left: 0;
}

#dcm_dpe_container td:first-child, #dcm_ges_container td:first-child {
    width:40%;
}


}


#recommencer-calcul {
    background-color: #032C68;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s; /* Animation douce lors du survol */
    display: block;
    margin: 20px auto; /* Centre le bouton */
    text-align: center;
}

#recommencer-calcul:hover {
    background-color: #0056b3;
}

#resultats_bilan h1,h2,h3, #resultats_preco h1,h2,h3, #labels-container-DCMDpe h1,h2,h3, #calculatrice_investissement h1,h2,h3, #dcmdpe_formulaire_mail h1,h2,h3 {
    text-align: center;
}

#resultats_bilan, #resultats_preco, #labels-container-DCMDpe, #calculatrice_investissement, #dcmdpe_formulaire_mail {
    background-color: #f5f5f5;  
    padding: 20px;              
    border: 1px solid #e0e0e0;  
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);                         
    list-style-type: none;  
    display: none;
    margin-bottom: 4em;
}

.question-item {
    padding: 10px 0;          
    border-bottom: 1px solid #e0e0e0;
    padding-right: 2em;
}

.question-item span {
    float:right;
}
.question-item:last-child {
    border-bottom: none;        
}

 .container_calcul_inves {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    align-items: end;
}

@media (max-width: 768px) {
    .container_calcul_inves {
        grid-template-columns: repeat(2, 1fr);
    }
}

.container_calcul_inves label {
    display: block;
    margin-bottom: 0.5em;
    color: #4a4a4a;
    font-weight: bold;
}

.container_calcul_inves input[type="text"] {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #aaa;
    color: #333;
    background-color: #f5f5f5;

}

.container_calcul_inves input[type="text"]:disabled {
    background-color:lightgray;
}




 .container_formulaire_mail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
    align-items: end;
}

@media (max-width: 768px) {
    .container_formulaire_mail {
        grid-template-columns: repeat(1, 1fr);
    }
}

.container_formulaire_mail label {
    display: block;
    margin-bottom: 0.5em;
    color: #4a4a4a;
    font-weight: bold;
}

.container_formulaire_mail input[type="text"],input[type="email"] {
    width: 100%;
    padding: 0.5em;
    border:none;
    border-bottom: 1px solid #aaa;
    border-radius: 0;
    color: #333;
    background-color: #f5f5f5;
    transition: border-bottom 0.3s ease;
}

.container_formulaire_mail input[type="text"]:focus,
.container_formulaire_mail input[type="email"]:focus {
    outline: none;
    border: none;
    border-bottom: 1px solid green;
}

.container_formulaire_mail input[type="text"]:disabled {
    background-color:lightgray;
}

#formulaire_mail_dcmdpe {
    text-align: center;
}

#formulaire_mail_dcmdpe input[type="submit"]{
    margin-top:1em;
}

#breadcrumb {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4em;
}
@media (max-width: 768px) { #breadcrumb { display:none } }
.breadcrumb-item {
  width: 6em;
  height: 6em;
  border-radius: 50%;
  border: .2em solid #ccc;
  text-align: center;
  line-height: 2em;
  padding-top:1.8em;
}

.breadcrumb-item.active {
    background-color:#F25416;
  border-color: #F25416;
  color: white;
}

.breadcrumb-item.activepast {
    background-color:transparent;
  border-color: #F25416;
  color: #000;
}

.breadcrumb-line {
  flex-grow: 1;
  height: 2px;
  background-color: #ccc;
  margin: 3em;
}


#resultats_flex_container_reco {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.colonne_reco {
  flex: 1;
  padding: 10px;
}

/* sur smartphone */
@media (max-width: 768px) {
  #resultats_flex_container_reco {
    flex-direction: column;
  }
}

