:root {
    --rq-red: #D32F2F;
    --rq-red-hover: #B71C1C;
    --rq-blue: #0F2742;
    --rq-blue-soft: #1A3657;
    --rq-white: #FFFFFF;
    --rq-bg: #F5F7FA;
    --rq-border: #DFE5EC;
    --rq-text: #1A1F2B;
    --rq-muted: #5B667A;
    --rq-shadow-sm: 0 8px 22px rgba(15, 39, 66, 0.08);
    --rq-shadow-md: 0 18px 40px rgba(15, 39, 66, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--rq-text);
    background: #f7f8fa;
}

.rq-page {
    min-height: 100vh;
}

.header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header .container {
    max-width: 1520px;
}

.header-left {
    min-width: 0;
}

.nav-desktop {
    gap: 20px;
    flex-wrap: nowrap;
}

.nav-desktop a {
    white-space: nowrap;
    font-size: 0.92rem;
}

.header-right {
    gap: 12px;
}

.rq-header-brand-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.rq-header-brand-text {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f2633;
    white-space: nowrap;
}

.rq-header-brand-right img {
    height: 38px;
    width: auto;
    display: block;
}

.rq-header-brand-right .rq-header-imanor {
    height: 34px;
}

.rq-hero {
    min-height: 350px;
    background-image: linear-gradient(120deg, rgba(15, 39, 66, 0.72) 0%, rgba(26, 54, 87, 0.68) 100%), url("https://raw.githubusercontent.com/sitebonneprotection-droid/bonneprotection1/refs/heads/main/herosection/demandez%20votre%20devis.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 16px;
}

.rq-hero-overlay h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.45rem);
    font-weight: 800;
    color: var(--rq-white);
    letter-spacing: -0.02em;
}

.rq-section {
    padding: 56px 0 74px;
}

.rq-container {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    background: var(--rq-white);
    border-radius: 14px;
    border: 1px solid #e8edf3;
    box-shadow: 0 10px 28px rgba(15, 39, 66, 0.09);
    padding: 34px 26px 28px;
    margin-top: -76px;
    position: relative;
}

.rq-header {
    text-align: center;
    margin-bottom: 30px;
}

.rq-header-form {
    margin: 8px 0 26px;
}

.rq-header-form h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.rq-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    color: var(--rq-blue);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.rq-header h2 span {
    color: #de7b3a;
    font-weight: 700;
}

.rq-header p {
    margin: 8px 0 0;
    color: #7d8797;
    font-size: 1.03rem;
}

.rq-quick-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.rq-quick-item {
    border: 1px solid var(--rq-border);
    border-radius: 10px;
    padding: 16px 14px;
    background: var(--rq-white);
    text-align: center;
}

.rq-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(222, 123, 58, 0.14);
    color: #de7b3a;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.rq-quick-item h3 {
    margin: 0;
    color: var(--rq-blue);
    font-size: 1.1rem;
    font-weight: 700;
}

.rq-quick-item a,
.rq-quick-item strong {
    display: block;
    margin-top: 6px;
    color: var(--rq-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.rq-quick-item small {
    display: block;
    margin-top: 6px;
    color: var(--rq-muted);
    line-height: 1.42;
}

.rq-form {
    background: var(--rq-white);
    border: 1px solid var(--rq-border);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rq-switch-group {
    border: 0;
    padding: 0;
    margin: 0;
}

.rq-switch-group legend {
    padding: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #343b46;
}

.rq-switch-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    font-size: 0.98rem;
    color: var(--rq-text);
}

.rq-switch-option input {
    accent-color: var(--rq-red);
}

.rq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.rq-grid-third {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rq-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rq-field-full {
    grid-column: 1 / -1;
}

.rq-field label {
    font-size: 0.84rem;
    font-weight: 500;
    color: #6f7888;
}

.rq-field input,
.rq-field select,
.rq-field textarea {
    width: 100%;
    border: 1px solid var(--rq-border);
    border-radius: 7px;
    padding: 11px 12px;
    font: inherit;
    color: var(--rq-text);
    background: var(--rq-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rq-field textarea {
    resize: vertical;
    min-height: 130px;
}

.rq-field input::placeholder,
.rq-field textarea::placeholder {
    color: #9ca5b4;
}

.rq-field input:focus,
.rq-field select:focus,
.rq-field textarea:focus {
    border-color: #8dbde4;
    box-shadow: 0 0 0 3px rgba(141, 189, 228, 0.22);
    outline: none;
}

.rq-submit {
    width: fit-content;
    min-width: 240px;
    align-self: center;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    background: #1d86d9;
    color: var(--rq-white);
    font-size: 0.87rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: none;
}

.rq-submit:hover {
    background: #1977c2;
}

@media (max-width: 1280px) {
    .nav-desktop {
        gap: 14px;
    }

    .nav-desktop a {
        font-size: 0.85rem;
    }

    .rq-header-brand-text {
        display: none;
    }

    .rq-header-brand-right {
        margin-right: 10px;
    }
}

@media (max-width: 1024px) {
    .header {
        height: auto;
    }

    .header-inner {
        min-height: 68px;
    }

    .header-right {
        display: inline-flex;
        margin-left: auto;
    }

    .rq-header-brand-right {
        display: none;
    }

    .nav-desktop {
        gap: 12px;
    }

    .nav-desktop a {
        font-size: 0.82rem;
    }

    .rq-container {
        margin-top: -58px;
    }

    .rq-quick-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rq-grid-third {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 1100;
    }

    .header-inner {
        min-height: 60px;
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-left {
        flex: 0;
        z-index: 2;
    }

    .header-right {
        display: inline-flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        gap: 0;
        z-index: 1;
    }

    .header-right .header-icon {
        display: none;
    }

    .rq-header-brand-right {
        display: inline-flex;
        margin-right: 0;
        gap: 5px;
        max-width: calc(100vw - 96px);
    }

    .rq-header-brand-right img {
        height: 24px;
    }

    .rq-header-brand-right .rq-header-imanor {
        display: block;
        height: 22px;
    }

    .rq-header-brand-text {
        display: inline;
        font-size: 0.88rem;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-desktop {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #e7ebf1;
        box-shadow: 0 10px 24px rgba(12, 23, 40, 0.14);
        padding: 10px 16px 14px;
        flex-direction: column;
        gap: 0;
        z-index: 1200;
    }

    .nav-desktop.active {
        display: flex;
    }

    .nav-desktop a {
        width: 100%;
        font-size: 0.96rem;
        padding: 12px 2px;
        border-bottom: 1px solid #edf1f6;
    }

    .nav-desktop a:last-child {
        border-bottom: none;
    }

    .rq-hero {
        min-height: 240px;
    }

    .rq-section {
        padding: 34px 0 44px;
    }

    .rq-container {
        margin-top: -42px;
        padding: 22px 14px 16px;
        border-radius: 10px;
    }

    .rq-header {
        margin-bottom: 22px;
    }

    .rq-form {
        padding: 18px;
    }

    .rq-grid,
    .rq-grid-third,
    .rq-quick-info,
    .rq-submit {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .rq-switch-option {
        display: flex;
        margin-right: 0;
        margin-bottom: 8px;
    }
}
