/* REBEL – Formulaire de devis v1.3.0
   Conçu pour être placé sur la partie gauche du grand fond noir.
*/
.rebel-devis-wrap,
.rebel-devis-wrap * {
    box-sizing: border-box;
}

.rebel-devis-wrap {
    --rebel-black: #070706;
    --rebel-black-soft: #15120b;
    --rebel-mustard: #a97b17;
    --rebel-mustard-2: #bb8b20;
    --rebel-gold: #c99725;
    --rebel-gold-light: #e1b845;

    width: min(620px, 56vw);
    min-width: 520px;
    max-width: 620px;
    margin: 0;
    color: #000;
    font-family: Inter, "Inter Tight", Arial, sans-serif;
}

.rebel-devis-header {
    width: 100%;
    display: grid;
    grid-template-columns: 145px 1px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    margin: 0 0 16px;
}

.rebel-devis-logo-wrap {
    display: flex;
    align-items: center;
}

.rebel-devis-logo {
    display: block;
    width: 100%;
    max-width: 145px;
    height: auto;
}

.rebel-devis-divider {
    width: 1px;
    height: 78px;
    background: var(--rebel-gold);
    display: block;
}

.rebel-devis-heading {
    min-width: 0;
}

.rebel-devis-heading h2 {
    margin: 0;
    color: var(--rebel-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.1vw, 42px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}

.rebel-devis-heading p {
    margin: 9px 0 0;
    color: var(--rebel-gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .36em;
    line-height: 1.35;
    text-transform: uppercase;
    white-space: nowrap;
}

.rebel-devis-form {
    width: 100%;
    margin: 0;
    padding: 24px 26px 22px;
    border: 1px solid rgba(225,184,69,.75);
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 0%, rgba(225,184,69,.20), transparent 34%),
        linear-gradient(145deg, var(--rebel-mustard-2), var(--rebel-mustard));
    box-shadow: 0 18px 45px rgba(0,0,0,.24);
}

.rebel-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 18px;
}

.rebel-field {
    margin: 0 0 16px;
    min-width: 0;
}

.rebel-field label {
    display: block;
    margin: 0 0 7px;
    color: #050505;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.rebel-field label small {
    font-size: .76em;
    font-weight: 700;
}

.rebel-field input,
.rebel-field select {
    width: 100%;
    height: 46px;
    min-width: 0;
    border: 2px solid #050505;
    border-radius: 10px;
    padding: 9px 13px;
    background: var(--rebel-black);
    color: var(--rebel-gold-light);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    outline: none;
    box-shadow: none;
}

.rebel-field input::placeholder {
    color: rgba(225,184,69,.62);
}

.rebel-field input:focus,
.rebel-field select:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(225,184,69,.28);
}

.rebel-field select option {
    background: #070706;
    color: #e1b845;
}

.rebel-other-field {
    display: none;
}

.rebel-devis-submit {
    width: 100%;
    min-height: 50px;
    margin: 2px 0 0;
    border: 1px solid rgba(225,184,69,.8);
    border-radius: 11px;
    background: #050505;
    color: var(--rebel-gold-light);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .075em;
    cursor: pointer;
}

.rebel-devis-submit:hover,
.rebel-devis-submit:focus {
    background: #11100c;
    color: #f2ca60;
}

.rebel-devis-submit span {
    margin-left: 8px;
    font-size: 18px;
}

.rebel-devis-tagline {
    margin: 17px 0 0;
    text-align: center;
    color: #050505;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.15;
}

.rebel-devis-alert {
    width: 100%;
    margin: 0 0 12px;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
}

.rebel-devis-success {
    background: #d9efcf;
    color: #17350e;
}

.rebel-devis-error {
    background: #f5d2d2;
    color: #5b1111;
}

.rebel-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Écrans plus étroits : le formulaire reste lisible et ne s’écrase jamais. */
@media (max-width: 1050px) {
    .rebel-devis-wrap {
        width: min(590px, 58vw);
        min-width: 480px;
    }

    .rebel-devis-header {
        grid-template-columns: 125px 1px minmax(0, 1fr);
        gap: 16px;
    }

    .rebel-devis-logo {
        max-width: 125px;
    }

    .rebel-devis-heading h2 {
        font-size: clamp(28px, 3.2vw, 38px);
    }
}

@media (max-width: 820px) {
    .rebel-devis-wrap {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .rebel-devis-header {
        grid-template-columns: 110px 1px minmax(0, 1fr);
        gap: 14px;
    }

    .rebel-devis-logo {
        max-width: 110px;
    }

    .rebel-devis-heading h2 {
        font-size: 30px;
        white-space: normal;
    }

    .rebel-devis-heading p {
        white-space: normal;
        letter-spacing: .22em;
    }
}

@media (max-width: 560px) {
    .rebel-devis-header {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .rebel-devis-divider {
        display: none;
    }

    .rebel-devis-logo {
        max-width: 120px;
    }

    .rebel-devis-heading h2 {
        font-size: 28px;
    }

    .rebel-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rebel-devis-form {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .rebel-field {
        margin-bottom: 14px;
    }
}
