/* Bookez — Demande de projet (page publique, mobile d'abord, fond blanc, sans cartes imbriquées) */
:root { --ink: #101214; --ink-2: #6B7280; --ink-3: #A3A9A6; --brand: #2A5142; --brand-ink: #1D3D31; --brand-soft: #E3F3EA; --line: rgba(16,18,20,.12); --danger: #A6402E; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body.rq { font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
:where(.rq button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }   /* sans poids : ne doit jamais écraser .rq-btn / .rq-drop */
.rq [hidden] { display: none !important; }
.rq-wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 18px 20px calc(48px + env(safe-area-inset-bottom)); }

.rq-head { padding: 4px 0 22px; }
.rq-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.rq-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--brand) center/cover no-repeat; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.rq-name { font-weight: 650; font-size: 15px; }
.rq-title { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.rq-lead { margin: 10px 0 26px; color: var(--ink-2); font-size: 15px; }

.rq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq-f { display: block; margin: 0 0 18px; }
.rq-f > span { display: block; margin: 0 0 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.rq-f > span b { color: var(--danger); font-weight: 700; }
.rq-f > span em { font-style: normal; font-weight: 450; color: var(--ink-3); margin-left: 6px; }
.rq-f input[type=text], .rq-f input[type=tel], .rq-f input[type=email], .rq-f textarea {
  width: 100%; border: 0; border-radius: 14px; background: #F4F6F5; padding: 15px 16px; font: inherit; font-size: 16px; color: var(--ink);
  box-shadow: inset 0 0 0 1px transparent; outline: 0; transition: box-shadow .2s, background .2s; resize: vertical; }
.rq-f textarea { min-height: 120px; }
.rq-f input:focus, .rq-f textarea:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--brand); }
.rq-f.err input, .rq-f.err textarea { background: #fff; box-shadow: inset 0 0 0 2px var(--danger); }
.rq-f input::placeholder, .rq-f textarea::placeholder { color: var(--ink-3); }
.rq-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.rq-drop { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); border: 0; color: var(--ink-2); transition: background .2s, box-shadow .2s; }
.rq-drop:hover, .rq-drop:active { background: #F6F8F7; box-shadow: inset 0 0 0 1.5px var(--brand); }
.rq-drop svg { width: 34px; height: 34px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rq-drop b { color: var(--ink); font-size: 15px; }
.rq-drop small { font-size: 12.5px; }
.rq-f.err .rq-drop { box-shadow: inset 0 0 0 2px var(--danger); }
.rq-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.rq-thumbs:empty { display: none; }
.rq-th { position: relative; aspect-ratio: 1; border-radius: 12px; background: #EEF1EF center/cover no-repeat; overflow: hidden; }
.rq-th button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(16,18,20,.7); color: #fff; font-size: 13px; line-height: 1; display: grid; place-items: center; }

.rq-check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.rq-check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); }
.rq-check a { color: var(--brand); font-weight: 600; }
.rq-err { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #FBEDEA; color: var(--danger); font-size: 14px; font-weight: 600; }

.rq-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 20px; border-radius: 16px; background: var(--brand); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; transition: background .2s, transform .1s, opacity .2s; }
.rq-btn:hover { background: var(--brand-ink); }
.rq-btn:active { transform: scale(.99); }
.rq-btn:disabled { opacity: .6; cursor: default; }
.rq-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: rqsp .7s linear infinite; }
.rq-btn.loading .rq-spin { display: block; }
@keyframes rqsp { to { transform: rotate(360deg); } }

.rq-done { text-align: center; padding: 40px 4px 10px; }
.rq-ok { width: 76px; height: 76px; margin: 0 auto 18px; }
.rq-ok svg { width: 100%; height: 100%; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rq-ok circle { fill: var(--brand-soft); stroke: none; }
.rq-done h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.rq-done p { margin: 12px 0 28px; color: var(--ink-2); }

@media (min-width: 640px) { .rq-wrap { padding-top: 40px; } .rq-title { font-size: 32px; } }
@media (max-width: 380px) { .rq-two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
