/* RESET DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: Arial, sans-serif;
    background: url('images/panneaux-solaires-photovoltaiques.webp') no-repeat center center fixed;
    background-size: cover;
    color: #333;
}

.container {
    margin: 10px auto;
    padding: 10px;
    max-width: 95vw;
}
img.house-image {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* CONTAINER (FORM) */
.container {
    width: 90%;
    max-width: 450px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.container h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.intro-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
}

/* ÉTAPES DU FORMULAIRE */
.step {
    display: none;
}
.step.active {
    display: block;
}

/* BOUTONS DU FORMULAIRE */
.option-btn,
.next-btn,
.final-btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    transition: background 0.3s ease;
    text-align: center;
}

.option-btn:hover,
.next-btn:hover,
.final-btn:hover {
    background-color: #0056b3;
}

/* CHAMPS TEXTE */
input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.info {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
}

/* POPUP FINAL */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -200%);
    background: #007bff; /* Pop-up bleu */
    width: 80%;
    max-width: 400px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
}
.popup.active {
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
}
.popup-content h2 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #fff;
}
.popup-content p {
    margin-bottom: 20px;
    color: #fff;
}
#popupCloseBtn {
    background-color: #fff;
    color: #007bff;
    width: auto;
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}
#popupCloseBtn:hover {
    background-color: #e0e0e0;
}

/* EXEMPLE D'INSTALLATION RENTABLE */
.example-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    text-align: center;
}
.example-section h2 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #333;
}
.example-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.left-part, .right-part {
    flex: 1 1 300px;
    min-width: 250px;
}
.house-info ul {
    list-style: none;
    text-align: left;
    margin-bottom: 15px;
}
.house-info li {
    margin-bottom: 5px;
    color: #555;
}
.img-container {
    text-align: center;
}
.house-image{
    width:600px;          /* fixe la taille → supprime CLS */
    max-width:100%;
    height:auto;
    aspect-ratio:3/2;
    border-radius:8px;
    display:block;
  }  
.price-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.price-box {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}
.small {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* COMMENT CA MARCHE */
.how-it-works {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    text-align: center;
}
.how-it-works h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
}
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}
.step-box {
    width: 250px;
    min-width: 200px;
    margin: 10px;
    text-align: center;
}
.number-circle {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 10px;
    font-weight: bold;
}
.compare-info {
    font-weight: bold;
    color: #444;
    margin-bottom: 15px;
}
.cta-btn {
    padding: 14px 20px;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
}
.cta-btn:hover {
    background-color: #0056b3;
}

/* CONTACT */
.contact-section {
    max-width: 700px;
    margin: 40px auto 20px auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    padding: 20px;
}
.contact-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.contact-section p {
    font-size: 16px;
    line-height: 1.4;
}

/* FOOTER (mentions légales) */
.footer-legal {
    max-width: 900px;
    margin: 20px auto;
    padding: 15px;
    font-size: 13px;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.legal-text {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.4;
}
.legal-text a {
    color: #007bff;
    text-decoration: none;
}
.legal-text a:hover {
    text-decoration: underline;
}

/* RESPONSIVE (SMARTPHONES) */
@media (max-width: 576px) {
    .container {
        margin: 20px auto;
        padding: 15px;
    }
    .container h1 {
        font-size: 20px;
    }
    .option-btn,
    .next-btn,
    .final-btn,
    .cta-btn {
        padding: 12px;
        font-size: 14px;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        font-size: 14px;
    }
    .example-wrapper {
        flex-direction: column;
    }
    .price {
        font-size: 20px;
    }
    .step-box {
        width: 100%;
    }
}
