.offre-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    font-family: 'Calibri', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offre-page > * {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1200px;
}

.offre-page h1 {
    color: #D90429;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.offre-intro {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Section de sélection du type de demande */
.type-selection {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 50px 40px;
    margin: 0 auto 40px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 950px;
}

.type-selection h2 {
    color: #D90429;
    font-size: 2em;
    margin-bottom: 30px;
}

.type-selection-grid {
    display: flex;
    flex-direction: row;
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.type-card {
    flex: 1;
    background: #f5f5f5;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.type-card.active {
    box-shadow: 0 8px 25px rgba(217, 4, 41, 0.4);
}

.type-card-top {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    position: relative;
    min-height: 150px;
}

/* Image spécifique pour Installation */
.type-card[data-type="installation"] .type-card-top {
    background-image: linear-gradient(135deg, rgba(245,245,245,0.5) 0%, rgba(245,245,245,0.4) 100%), url('https://aslane.fr/wp-content/uploads/2025/12/Maintenance-pompe-a%CC%80-chaleur-2-.png');
}

/* Image spécifique pour Entretien */
.type-card[data-type="entretien"] .type-card-top {
    background-image: linear-gradient(135deg, rgba(245,245,245,0.5) 0%, rgba(245,245,245,0.4) 100%), url('https://aslane.fr/wp-content/uploads/2025/12/Maintenance-pompe-a%CC%80-chaleur-3.jpeg');
}

/* Image spécifique pour Dépannage */
.type-card[data-type="depannage"] .type-card-top {
    background-image: linear-gradient(135deg, rgba(245,245,245,0.5) 0%, rgba(245,245,245,0.4) 100%), url('https://aslane.fr/wp-content/uploads/2025/12/Maintenance-pompe-a%CC%80-chaleur-.webp');
}

.type-card h3 {
    color: #ffffff;
    font-size: 1.15em;
    margin: 0 0 12px 0;
    font-weight: 700;
    display: block;
}

.type-card-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #d90429 50%, transparent 100%);
}

.type-card-bottom {
    background: linear-gradient(135deg, #272424 0%, #3a3a3a 100%);
    padding: 18px 20px 20px 20px;
    flex: 1;
}

.type-card p {
    color: rgba(255,255,255,0.9);
    font-size: 0.90em;
    line-height: 1.5;
    margin: 0;
}

/* Section bouton être rappelé */
.rappel-section {
    text-align: center;
    margin: 60px auto;
    padding: 40px;
    background: linear-gradient(135deg, #fff5f6 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 900px;
}

.rappel-section h3 {
    color: #D90429;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.rappel-section p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.btn-rappel {
    background: #D90429;
    color: #fff;
    padding: 18px 50px;
    font-size: 1.3em;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.4);
    transition: all 0.3s ease;
}

.btn-rappel:hover {
    background: #b5031f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 4, 41, 0.5);
}

/* Formulaires */
.form-section {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    margin: 0 auto 40px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.6s ease-in;
    display: none;
    max-width: 950px;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section h2 {
    color: #D90429;
    font-size: 1.8em;
    margin-bottom: 25px;
    border-bottom: 3px solid #D90429;
    padding-bottom: 10px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
    font-size: 1em;
    text-align: left;
}

.form-group label .required {
    color: #D90429;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Calibri', Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D90429;
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.file-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #D90429;
    background: #fff5f6;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: block;
    color: #666;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.95em;
    cursor: pointer;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background: #D90429;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}

.btn-submit:hover {
    background: #b5031f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.4);
}

.btn-back {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.btn-back:hover {
    background: #5a6268;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1em;
    display: none;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

/* Étiquettes équipements (ligne sous le titre) */
.offre-etiquettes-equipements {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.offre-etiquette {
    text-decoration: none;
}

.offre-etiquette-inner {
    background: #ffffff;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 10px 14px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    color: #000000;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.offre-etiquette:hover .offre-etiquette-inner {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
}

/* Cartes de contact (urgence / service client / email) */
.grid-services {
    display: flex;
    flex-direction: row;
    gap: 35px;
    margin: 25px auto;
    max-width: 1200px;
    justify-content: center;
}

.grid-services .service-card-home {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    max-width: 320px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    min-height: 230px;
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */

@media (max-width: 768px) {
    .offre-page {
        padding: 15px 15px 40px;
    }

    .offre-page h1 {
        font-size: 1.8em;
    }

    /* Étiquettes équipements : 2 par ligne */
    .offre-etiquettes-equipements {
        gap: 8px;
    }

    .offre-etiquette-inner {
        font-size: 0.85em;
        padding: 8px 10px;
        white-space: normal;
        text-align: center;
    }

    /* Sélection du type */
    .type-selection {
        padding: 25px 15px;
    }

    .type-selection-grid {
        flex-direction: column;
        gap: 20px;
    }

    /* Cartes de contact : 1 colonne sur mobile */
    .grid-services {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .grid-services .service-card-home {
        max-width: 100%;
        flex: none;
        width: 100%;
    }

    /* Section rappel */
    .rappel-section {
        padding: 25px 15px;
        margin: 30px auto;
    }

    .btn-rappel {
        padding: 14px 28px;
        font-size: 1em;
    }

    /* Formulaires */
    .form-section {
        padding: 20px 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-section h2 {
        font-size: 1.4em;
    }

    .btn-submit {
        width: 100%;
        font-size: 1em;
        padding: 14px 20px;
    }

    .btn-back {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .form-actions {
        display: flex;
        flex-direction: column-reverse;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .offre-page {
        padding: 10px 12px 30px;
    }

    /* Étiquettes : 1 par ligne sur très petits écrans */
    .offre-etiquette {
        width: 100%;
    }

    .offre-etiquette-inner {
        width: 100%;
    }

    .type-card-top {
        min-height: 130px;
    }
}
