/* Demande de tarif — sels déneigement (page dédiée) */

.deice-tarif-page {
  --ice: #38bdf8;
  --ice-deep: #0284c7;
  --ink: #0b1220;
  --mist: #e8f4fc;
  --panel: #ffffff;
  --line: rgba(15, 23, 42, 0.1);
  --muted: #64748b;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    linear-gradient(180deg, #f3f8fc 0%, #eef3f8 45%, #f8fafc 100%);
}

.deice-tarif-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 36px;
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(8, 24, 40, 0.92) 0%, rgba(12, 61, 92, 0.88) 55%, rgba(2, 132, 199, 0.75) 100%),
    url("../img/sels/route-eneigee-glissante.png") center / cover no-repeat;
}

.deice-tarif-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 64px;
  background: linear-gradient(180deg, transparent, #f3f8fc);
  pointer-events: none;
}

.deice-tarif-hero .container {
  position: relative;
  z-index: 1;
}

.deice-tarif-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deice-tarif-hero h1 {
  margin: 0 0 12px;
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.deice-tarif-hero .lead {
  margin: 0;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.88);
}

.deice-tarif-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.deice-tarif-steps span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 700;
}

.deice-tarif-main {
  padding: 8px 0 100px;
}

.deice-tarif-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.deice-tarif-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(12, 61, 92, 0.08);
}

.deice-tarif-panel h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.deice-tarif-panel .hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.deice-product-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.deice-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, #e2e8f0, #cbd5e1) border-box;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font: inherit;
  color: inherit;
}

.deice-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(12, 61, 92, 0.12);
}

.deice-product-card.is-on {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, #38bdf8, #0284c7) border-box;
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.18);
}

.deice-product-card .check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: transparent;
  font-weight: 800;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.deice-product-card.is-on .check {
  background: var(--ice-deep);
  color: #fff;
  transform: scale(1.05);
}

.deice-product-card .shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  border-radius: 14px;
  background: linear-gradient(165deg, #f8fafc, #e8f3fa);
  border: 1px solid rgba(12, 61, 92, 0.08);
}

.deice-product-card .shot img {
  max-height: 190px;
  max-width: 88%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(12, 61, 92, 0.16));
}

.deice-product-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.deice-product-card small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.deice-qty-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(12, 61, 92, 0.15);
}

.deice-qty-block[hidden] {
  display: none !important;
}

.deice-qty-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.deice-qty-head strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.deice-mode {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #eef4f8;
  border: 1px solid var(--line);
}

.deice-mode button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.deice-mode button.is-on {
  background: #0c3d5c;
  color: #fff;
}

.deice-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deice-stepper button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
}

.deice-stepper button:hover {
  border-color: rgba(2, 132, 199, 0.45);
  color: var(--ice-deep);
}

.deice-stepper input {
  width: 88px;
  height: 44px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.deice-convert {
  margin: 10px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ice-deep);
}

.deice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.deice-chips button {
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 7px 11px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.deice-chips button.is-on,
.deice-chips button:hover {
  border-color: rgba(2, 132, 199, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: #0c4a6e;
}

.deice-custom {
  margin-top: 12px;
}

.deice-custom[hidden] {
  display: none !important;
}

.deice-custom label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.deice-custom input,
.deice-form input,
.deice-form textarea,
.deice-form select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}

.deice-form {
  display: grid;
  gap: 12px;
}

.deice-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.deice-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.deice-summary-card .form-turnstile {
  min-height: 65px;
  margin: 0.75rem 0 0.85rem;
}

.deice-summary-card .form-turnstile:empty {
  min-height: 0;
  margin: 0;
}

.deice-form .note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.deice-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.deice-summary {
  position: sticky;
  top: 88px;
}

.deice-summary-card {
  border-radius: 22px;
  padding: 20px;
  color: #f8fafc;
  background:
    linear-gradient(160deg, #0b1f33 0%, #0c3d5c 58%, #0369a1 100%);
  box-shadow: 0 22px 44px rgba(12, 61, 92, 0.28);
}

.deice-summary-card h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.deice-summary-card .sub {
  margin: 0 0 16px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.86rem;
}

.deice-summary-lines {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  min-height: 72px;
}

.deice-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.deice-summary-label {
  flex: 0 1 46%;
  min-width: 0;
  line-height: 1.35;
}

.deice-summary-detail {
  flex: 1 1 48%;
  font-weight: 800;
  text-align: right;
  line-height: 1.35;
}

.deice-summary-empty {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.9rem;
  line-height: 1.45;
}

.deice-submit {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  color: #082f49;
  background: linear-gradient(180deg, #7dd3fc, #38bdf8);
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.deice-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.deice-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.deice-status {
  margin-top: 10px;
  min-height: 1.3em;
  font-size: 0.86rem;
  font-weight: 700;
}

.deice-status.is-ok { color: #86efac; }
.deice-status.is-err { color: #fda4af; }

.deice-back {
  display: inline-flex;
  margin-top: 14px;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.deice-back:hover {
  color: #fff;
}

.deice-b2b {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.85);
}

@media (max-width: 960px) {
  .deice-tarif-grid {
    grid-template-columns: 1fr;
  }

  .deice-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .deice-product-pick,
  .deice-form .row-2 {
    grid-template-columns: 1fr;
  }

  .deice-product-card .shot {
    height: 180px;
  }

  .deice-tarif-hero {
    padding: 36px 0 28px;
  }
}

[data-theme="dark"] .deice-tarif-page {
  background:
    radial-gradient(1000px 500px at 0% 0%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, #111827 100%);
}

[data-theme="dark"] .deice-tarif-hero::after {
  background: linear-gradient(180deg, transparent, #0b1220);
}

[data-theme="dark"] .deice-tarif-panel {
  background: #132433;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

[data-theme="dark"] .deice-tarif-panel h2,
[data-theme="dark"] .deice-product-card strong,
[data-theme="dark"] .deice-qty-head strong {
  color: #f8fafc;
}

[data-theme="dark"] .deice-tarif-panel .hint,
[data-theme="dark"] .deice-product-card small {
  color: #94a3b8;
}

[data-theme="dark"] .deice-product-card {
  background:
    linear-gradient(#152433, #152433) padding-box,
    linear-gradient(145deg, #334155, #1e293b) border-box;
}

[data-theme="dark"] .deice-product-card.is-on {
  background:
    linear-gradient(#152433, #152433) padding-box,
    linear-gradient(145deg, #38bdf8, #0284c7) border-box;
}

[data-theme="dark"] .deice-product-card .shot,
[data-theme="dark"] .deice-mode,
[data-theme="dark"] .deice-stepper button,
[data-theme="dark"] .deice-stepper input,
[data-theme="dark"] .deice-chips button,
[data-theme="dark"] .deice-form input,
[data-theme="dark"] .deice-form textarea,
[data-theme="dark"] .deice-form select,
[data-theme="dark"] .deice-custom input {
  background: #0f1c29;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

[data-theme="dark"] .deice-mode button.is-on {
  background: #38bdf8;
  color: #082f49;
}

[data-theme="dark"] .deice-form label,
[data-theme="dark"] .deice-custom label {
  color: #cbd5e1;
}
