/* ── PAGE ESTIMATION ── */

.est-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.est-intro {
    text-align: center;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.est-intro small { font-size: 12px; color: #aaa; }

.req { color: #c9a98d; font-size: 13px; }

/* ── ALERTES ── */
.est-alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.6;
    text-align: center;
}

.est-alert-success { background: #e8f0ec; color: #3d5c4e; border: 1px solid #b8d4c4; }
.est-alert-error   { background: #fdf0f0; color: #b03030; border: 1px solid #f0ccc8; }
.est-alert-info    { background: #f5ede4; color: #7a4f28; border: 1px solid #e0c9a8; text-align: left; }

/* ── RÉSULTAT ── */
.est-resultat {
    background: #fff;
    border: 2px solid #22333B;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.est-res-header { background: #22333B; padding: 28px 32px; }

.est-res-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 12px;
}

.est-res-fourchette {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 8px;
    flex-wrap: wrap;
}

.est-res-min,
.est-res-max { font-size: 36px; font-weight: 700; color: white; letter-spacing: -0.02em; }
.est-res-sep { font-size: 28px; color: rgba(255,255,255,0.4); }
.est-res-mid { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; }

.est-res-details { padding: 24px 32px; border-bottom: 1px solid #f0ede6; }

.est-res-details-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c9a98d;
    font-weight: 700;
    margin: 0 0 14px;
}

.est-res-base,
.est-res-ligne,
.est-res-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid #f5f3ef;
}

.est-res-base                          { color: #555; font-weight: 500; }
.est-res-ligne.positive span:last-child { color: #3d5c4e; font-weight: 500; }
.est-res-ligne.negative span:last-child { color: #b03030; font-weight: 500; }
.est-res-ligne span:first-child         { color: #333; }

.est-res-total {
    border-bottom: none;
    border-top: 1px solid #e0ddd6;
    margin-top: 4px;
    padding-top: 10px;
    font-weight: 700;
    color: #22333B;
}

.est-res-mention {
    padding: 16px 32px;
    font-size: 13px;
    color: #22333B;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* ── SECTIONS ── */
.est-section {
    background: #fff;
    border: 1px solid #e0ddd6;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.est-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c9a98d;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5ede4;
}

.est-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.est-group { display: flex; flex-direction: column; gap: 5px; }

.est-group label {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.est-group input,
.est-group select {
    padding: 9px 12px;
    border: 1px solid #ddd8d0;
    border-radius: 7px;
    font-size: 13px;
    font-family: 'Montserrat Alternates', sans-serif;
    color: #1e2a2a;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}

.est-group input:focus,
.est-group select:focus {
    border-color: #5f7f6f;
    box-shadow: 0 0 0 3px rgba(95,127,111,0.1);
}

.est-checkboxes { display: flex; flex-wrap: wrap; gap: 12px 28px; }

.est-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2a2a2a;
    cursor: pointer;
}

.est-check input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #5f7f6f;
    cursor: pointer;
}

/* ── TYPE SELECTOR — 2 colonnes ── */
.type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 480px;
    margin: 0 auto; /* ← centre le bloc */
}

.type-card {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0ddd6;
    transition: border-color 0.2s, transform 0.15s;
    display: block;
}

.type-card:hover          { border-color: #5f7f6f; transform: translateY(-2px); }
.type-card.selected        { border-color: #5f7f6f; box-shadow: 0 0 0 3px rgba(95,127,111,0.15); }
.type-card input[type="radio"] { display: none; }

.type-photo-wrap { position: relative; width: 100%; height: 160px; overflow: hidden; }

.type-photo {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.3s;
}

.type-card:hover .type-photo   { transform: scale(1.04); }

.type-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(34,51,59,0.85));
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 24px 14px 12px;
    letter-spacing: 0.04em;
}

.type-card.selected .type-overlay { background: linear-gradient(transparent, rgba(95,127,111,0.9)); }

/* ── BOUTON ── */
.btn-estimation {
    background: #22333B;
    color: #fff;
    border: none;
    padding: 14px 48px;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-estimation:hover { background: #5f7f6f; transform: translateY(-1px); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .est-grid          { grid-template-columns: 1fr; }
    .type-selector     { grid-template-columns: 1fr; max-width: 100%; }
    .est-container     { padding: 28px 14px 60px; }
    .type-photo-wrap   { height: 120px; }
    .est-res-min,
    .est-res-max       { font-size: 26px; }
    .est-res-header    { padding: 20px; }
    .est-res-details   { padding: 16px 20px; }
    .est-res-mention   { padding: 12px 20px; }
}
