/* ===========================================================
   DEVIS PAGE
   =========================================================== */

/* Logo — fond beige : filtre pour rendre le SVG blanc visible en terracotta */
.navbar__logo-img--dark {
  filter: invert(46%) sepia(34%) saturate(700%) hue-rotate(322deg) brightness(88%) contrast(92%);
}

/* ========= UNIFIED PAGE BACKGROUND — vivid terracotta mesh ========= */
/* High-contrast mesh is REQUIRED so backdrop-filter glass shows coloured blobs */
body {
  background:
    radial-gradient(ellipse 60% 50% at 28% 38%, rgba(255,240,210,0.55), transparent 58%),
    radial-gradient(ellipse 52% 58% at 75% 25%, rgba(255,235,200,0.40), transparent 55%),
    radial-gradient(ellipse 48% 52% at 55% 70%, rgba(230,205,165,0.30), transparent 55%),
    radial-gradient(ellipse 44% 60% at 8%  65%, rgba(240,220,185,0.35), transparent 52%),
    radial-gradient(ellipse 46% 44% at 85% 78%, rgba(235,215,175,0.28), transparent 50%),
    radial-gradient(ellipse 38% 36% at 50% 48%, rgba(255,248,230,0.20), transparent 45%),
    #FBF3E3;
  color: var(--text-dark);
}

.devis-hero {
  position: relative;
  background: transparent;
  color: var(--text-dark);
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: clamp(80px, 10vw, 140px);
  overflow: hidden;
  min-height: 100vh;
}

.devis-hero .topo-pattern { color: var(--terracotta); opacity: 0.06; z-index: 0; }

/* Animated aurora blobs sit on top of the mesh and add motion */
.devis-hero .aurora { z-index: 1; opacity: 1; }
.devis-hero .aurora__blob { filter: blur(70px); }

.devis-hero .aurora__blob--1 {
  top: -10%; left: -8%;
  width: 50vw;
  background: radial-gradient(circle, rgba(245,220,190,0.40) 0%, transparent 65%);
  opacity: 0.7;
}
.devis-hero .aurora__blob--2 {
  bottom: -15%; right: -12%;
  width: 55vw;
  background: radial-gradient(circle, rgba(220,180,140,0.35) 0%, transparent 65%);
  opacity: 0.6;
}
.devis-hero .aurora__blob--3 {
  top: 38%; right: 15%;
  width: 32vw;
  background: radial-gradient(circle, rgba(245,166,35,0.18) 0%, transparent 65%);
  opacity: 0.6;
  animation-delay: -10s;
}

.devis-hero__inner { position: relative; z-index: 3; }

.devis-hero__seal {
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 460px;
  height: 460px;
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
  color: var(--terracotta);
  animation: spin-slow 80s linear infinite;
}

.devis-hero__inner {
  position: relative;
  z-index: 2;
  width: min(680px, 92vw);
  margin: 0 auto;
}

.devis-hero__head { text-align: center; margin-bottom: 48px; }
.devis-hero__head h1 {
  color: #5a2010;
  font-style: italic;
  margin-bottom: 16px;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.1;
}
.devis-hero__head p {
  color: var(--brown-soft);
  font-size: 16px;
  opacity: 0.9;
}

/* -------- Form card -------- */
.devis-form {
  position: relative;
  background: rgba(255,252,246,0.25);
  border: 1px solid rgba(196,102,74,0.14);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.60) inset,
    0 20px 60px rgba(140,60,30,0.08),
    0 4px 16px rgba(140,60,30,0.04);
  overflow: hidden;
  isolation: isolate;
}

/* Top sheen + corner highlight */
.devis-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 35%),
    radial-gradient(120% 80% at 30% -10%, rgba(255,255,255,0.22), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Noise grain — realism */
.devis-form::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.65 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  background-size: 240px 240px;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.devis-form > * { position: relative; z-index: 1; }

.devis-form .field input,
.devis-form .field textarea {
  background: linear-gradient(135deg, rgba(251,246,238,0.16) 0%, rgba(251,246,238,0.04) 100%);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 1px 1px 0.5px 0 rgba(255,255,255,0.20),
    inset -0.5px -0.5px 0.5px 0 rgba(255,255,255,0.10);
}

.devis-form .option {
  background: linear-gradient(135deg, rgba(251,246,238,0.14) 0%, rgba(251,246,238,0.04) 100%);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow:
    inset 1px 1px 0.5px 0 rgba(255,255,255,0.20),
    inset -0.5px -0.5px 0.5px 0 rgba(255,255,255,0.10);
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brown-soft);
}

.field label .req { color: var(--gold-star); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea {
  width: 100%;
  background: rgba(255,252,248,0.90);
  border: 1px solid rgba(196,102,74,0.22);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-dark);
  font-size: 15px;
  transition: border-color 250ms var(--ease), background 250ms var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--brown-soft); opacity: 0.55; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(196,102,74,0.12),
    0 0 16px rgba(196,102,74,0.08);
}

.field textarea { min-height: 120px; resize: vertical; font-family: inherit; line-height: 1.6; }

/* Radio + checkbox groups */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,252,248,0.80);
  border: 1px solid rgba(196,102,74,0.18);
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
  font-size: 14px;
  color: var(--text-dark);
  user-select: none;
}

.option:hover { background: rgba(255,248,240,1); border-color: rgba(196,102,74,0.35); }

.option input { accent-color: var(--terracotta); width: 16px; height: 16px; cursor: pointer; }

.option:has(input:checked) {
  background: rgba(196,102,74,0.08);
  border-color: var(--terracotta);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.devis-form .btn {
  margin-top: 12px;
  padding: 18px 32px;
  width: 100%;
  font-size: 13px;
}

.form-status {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--brown-soft);
  min-height: 22px;
}

/* Champ obligatoire manquant */
.field input.field-error,
.field textarea.field-error {
  border-color: #e07070 !important;
  box-shadow: 0 0 0 3px rgba(224,112,112,0.15) !important;
}
