/* ==========================================================================
   Maquette 2 : styles communs (variables, boutons, fenêtre de devis,
   recherche par photo, bouton WhatsApp), repris de la maquette 1.
   ========================================================================== */

:root {
  --brand: #e0aa2a;        /* jaune or */
  --brand-deep: #8c6510;   /* or lisible sur blanc */
  --brand-soft: #f3cf6b;   /* or clair sur sombre */
  --ink-black: #0a0a0a;
  --night: #070b14;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* Reflet au survol des boutons */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease-out);
}
.btn-shine:hover::after { left: 120%; }

/* Bouton WhatsApp flottant */
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 24px -8px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }

/* Fenêtre de demande de devis */
.qd { width: min(720px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; border-top: 3px solid var(--brand); background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.qd::backdrop { background: rgba(5,8,14,.65); }
.qd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #e5e7eb; }
.qd-head h2 { font-size: 20px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.qd-close { width: 36px; height: 36px; display: grid; place-items: center; font-size: 28px; line-height: 1; color: #475569; }
.qd-close:hover { color: #0a0a0a; }
.qd-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; padding: 24px 20px 22px; }
.qd-wide { grid-column: 1 / -1; }
.qd-f { position: relative; display: block; }
.qd-l { position: absolute; top: -9px; left: 10px; z-index: 1; padding: 0 6px; background: #fff; font-size: 13px; color: #1e293b; line-height: 20px; }
.qd-l em { font-style: normal; font-size: 11.5px; color: #94a3b8; }
.qd-f input, .qd-f textarea, .qd-f select { width: 100%; border: 1px solid #8a94a6; border-radius: 0; background: #fff; font-size: 14px; color: #0f172a; }
.qd-f input, .qd-f select { height: 46px; padding: 8px 14px 0; }
.qd-f textarea { display: block; min-height: 88px; padding: 16px 14px 10px; line-height: 1.55; resize: vertical; }
.qd-f input::placeholder, .qd-f textarea::placeholder { color: #94a3b8; }
.qd-f input:focus, .qd-f textarea:focus, .qd-f select:focus { outline: none; border-color: #0a0a0a; box-shadow: 0 0 0 2px rgba(224,170,42,.45); }
.qd-f.is-invalid input, .qd-f.is-invalid textarea { border-color: #ef4444; }
.qd-phone { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.qd-phone select { appearance: none; padding-right: 34px; border-right: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; }
.qd-checks { display: grid; gap: 10px; padding-top: 0; font-size: 13.5px; color: #1e293b; }
.qd-checks label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.qd-checks input { width: 17px; height: 17px; accent-color: #c4911a; }
.qd-actions { display: flex; justify-content: center; }
.qd-send { height: 46px; padding: 0 34px; background: var(--brand); color: #0a0a0a; font-size: 15px; font-weight: 600; transition: background .2s; }
.qd-send:hover { background: #c4911a; }
.qd-done { padding: 48px 28px 52px; text-align: center; font-size: 15px; color: #475569; }
.qd-done-t { margin: 14px 0 6px; font-size: 24px; font-weight: 700; color: #0f172a; }
.qd-done .qd-send { margin-top: 24px; }
@media (max-width: 767px) {
  .qd { width: 100%; max-width: 100%; max-height: 100%; height: 100%; }
  .qd-head { padding: 14px 16px; }
  .qd-head h2 { font-size: 19px; }
  .qd-body { grid-template-columns: 1fr; gap: 24px; padding: 26px 16px; }
  .qd-phone { grid-template-columns: 118px minmax(0, 1fr); }
  .qd-f input, .qd-f select { padding-left: 14px; }
  .qd-send { width: 100%; }
}

/* Messages de la fenêtre de devis */
.acc-error { padding: 10px 12px; border-radius: 6px; background: #fef2f2; border: 1px solid #fecaca; font-size: 13px; color: #b91c1c; }
.acc-done-ico { width: 72px; height: 72px; display: inline-grid; place-items: center; border-radius: 99px; background: #fff3d1; color: var(--brand-deep); }
.acc-done-ico svg { width: 36px; height: 36px; }

/* Recherche par photo dans la barre de recherche de l'accueil */
.img-search-btn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 99px; color: #fff; transition: background .2s, color .2s; }
.img-search-btn svg { width: 24px; height: 24px; }
.img-search-btn:hover, .img-search-btn[aria-expanded="true"] { background: rgba(255,255,255,.14); color: #f3cf6b; }
.img-search { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 20; padding: 16px; background: #fff; color: #0f172a; border-top: 3px solid var(--brand); border-radius: 0 0 12px 12px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.75); text-align: left; }
.img-search-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.img-search-head p { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 19px; text-transform: uppercase; }
.img-search-head button { width: 32px; height: 32px; display: grid; place-items: center; color: #64748b; }
.img-search-head svg { width: 20px; height: 20px; }
.img-drop { position: relative; display: block; padding: 26px 16px; border: 2px dashed #cbd5e1; border-radius: 8px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.img-drop:hover, .img-drop.is-over { border-color: var(--brand); background: #fffaf0; }
.img-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.img-drop-empty[hidden], .img-drop-preview[hidden] { display: none; }
.img-drop-empty svg { width: 40px; height: 40px; color: #c4911a; margin-bottom: 4px; }
.img-drop-empty strong { font-size: 15.5px; }
.img-drop-empty em { font-style: normal; font-size: 13px; color: #64748b; }
.img-drop-empty u { color: var(--brand-deep); font-weight: 600; }
.img-drop-preview { display: flex; align-items: center; gap: 14px; text-align: left; pointer-events: none; }
.img-drop-preview img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.img-drop-preview strong { display: block; font-size: 14.5px; }
.img-drop-preview em { display: block; font-style: normal; font-size: 13px; color: #64748b; }
.img-search-foot { margin-top: 10px; font-size: 12px; color: #64748b; }
.img-search-go { display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 12px; border-radius: 6px; background: var(--brand); color: #0a0a0a; font-weight: 600; font-size: 14.5px; }
.img-search-go[hidden] { display: none; }
.img-search-go:hover { background: #c4911a; }

/* Panneau photo : pleine largeur de la barre, hauteur réduite (zone de dépôt sur une ligne) */
.img-search { left: 0; right: 0; width: auto; padding: 10px 14px 12px; }
.img-search-head { margin-bottom: 6px; }
.img-search-head p { font-size: 15px; }
.img-search-head button { width: 28px; height: 28px; }
.img-drop { padding: 10px 14px; }
.img-drop-empty { flex-direction: row; justify-content: center; gap: 10px; }
.img-drop-empty svg { width: 24px; height: 24px; margin: 0; }
.img-drop-empty strong { font-size: 14px; }
.img-search-foot { margin-top: 6px; }
.img-search-go { height: 38px; margin-top: 8px; }

/* Mode statique (captures) et mouvement réduit */
.statique .wa-float::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
