﻿@charset "UTF-8";
/* ============================================================
   PAGE DEVIS
   ============================================================ */
/* ---- Hero compact (même pattern que actu-hero/history-hero) ---- */
.devis-hero {
  background: var(--bs-light);
  padding: 150px 0 60px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.devis-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 74, 173, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.devis-breadcrumb ol {
  font-size: 0.88rem;
}

.devis-breadcrumb a:hover {
  color: #00c3ff !important;
}

.devis-form-section {
  position: relative;
}

/* ============================================================
   FORMULAIRE
   ============================================================ */
.devis-form {
  margin-top: 0.5rem;
}

/* ---- Sections d'étape ---- */
.devis-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(0, 74, 173, 0.08);
}

.devis-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.devis-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.devis-step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #004aad 0%, #0062d6 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 74, 173, 0.3);
  line-height: 1;
}

.devis-step-title {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---- Grille des 4 types d'intervention ---- */
.devis-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.devis-type-option {
  position: relative;
}

/* Input visuellement caché mais accessible (focus visible via label) */
.devis-type-option input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.devis-type-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border: 2px solid rgba(0, 74, 173, 0.12);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.devis-type-option label > i {
  font-size: 2rem;
  color: #004aad;
  margin-bottom: 0.5rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.devis-type-option label:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 195, 255, 0.4);
  box-shadow: 0 10px 24px rgba(0, 74, 173, 0.1);
}

.devis-type-option input[type=radio]:checked + label {
  background: linear-gradient(135deg, #004aad 0%, #0062d6 100%);
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(0, 74, 173, 0.35);
  color: #ffffff;
}

.devis-type-option input[type=radio]:checked + label > i {
  color: #ffffff;
  transform: scale(1.1);
}

.devis-type-option input[type=radio]:focus-visible + label {
  outline: 3px solid #00c3ff;
  outline-offset: 3px;
}

.devis-type-label {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.devis-type-desc {
  font-size: 0.78rem;
  color: #6c757d;
  line-height: 1.3;
}

.devis-type-option input[type=radio]:checked + label .devis-type-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Inputs / labels ---- */
.devis-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  letter-spacing: 0.005em;
}

.devis-input {
  border: 1.5px solid rgba(0, 74, 173, 0.15);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.97rem;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.devis-input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.15);
  outline: none;
}

.devis-input::placeholder {
  color: #adb5bd;
}

textarea.devis-input {
  resize: vertical;
  min-height: 100px;
}

/* ---- Radio pills (particulier / pro) ---- */
.devis-radio-row {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.3rem;
  background: rgba(0, 74, 173, 0.05);
  border: 1.5px solid rgba(0, 74, 173, 0.1);
  border-radius: 30px;
}

.devis-radio-pill {
  position: relative;
  cursor: pointer;
}

.devis-radio-pill input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.devis-radio-pill > span {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #004aad;
  transition: background 0.2s ease, color 0.2s ease;
}

.devis-radio-pill input[type=radio]:checked + span {
  background: linear-gradient(135deg, #004aad 0%, #0062d6 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
}

.devis-radio-pill input[type=radio]:focus-visible + span {
  outline: 3px solid #00c3ff;
  outline-offset: 2px;
}

/* ---- Toggle "C'est urgent" ---- */
.devis-urgent-toggle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.25rem;
  background: rgba(217, 83, 79, 0.06);
  border: 1.5px solid rgba(217, 83, 79, 0.25);
  border-radius: 14px;
}

.devis-urgent-toggle .form-check-input {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  cursor: pointer;
}

.devis-urgent-toggle .form-check-input:checked {
  background-color: #d9534f;
  border-color: #d9534f;
}

.devis-urgent-toggle label {
  display: flex;
  flex-direction: column;
  margin: 0;
  cursor: pointer;
  line-height: 1.3;
}

.devis-urgent-toggle label > i {
  display: none; /* l'icône est dans le label via le checkbox state, donc on la cache ici - alternative : on garde l'icône en flex */
}

.devis-urgent-toggle label strong {
  color: #b03a36;
  font-size: 0.98rem;
}

.devis-urgent-toggle label small {
  color: #6c757d;
  font-size: 0.83rem;
  margin-top: 0.15rem;
}

/* ---- État vide (avant sélection du type) ---- */
.devis-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  background: white;
  border: 2px dashed rgba(0, 74, 173, 0.15);
  border-radius: 16px;
  color: #6c757d;
}

.devis-empty-state i {
  font-size: 2rem;
  color: var(--bs-primary);
  margin-bottom: 0.5rem;
  display: inline-block;
  animation: empty-bounce 1.8s ease-in-out infinite;
}

.devis-empty-state p {
  margin: 0;
  font-size: 0.95rem;
}

@keyframes empty-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
/* ---- Honeypot (caché aux humains, visible aux bots naïfs) ---- */
.devis-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Submit ---- */
.devis-submit-block {
  margin-top: 2.5rem;
  text-align: center;
}

.devis-rgpd-notice {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  max-width: 540px;
  margin: 1.5rem auto 0;
  font-size: 0.83rem;
  color: #6c757d;
  line-height: 1.5;
  text-align: left;
}

.devis-rgpd-notice i {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ============================================================
   SIDEBAR (rassurances)
   ============================================================ */
.devis-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.devis-trust-card {
  background: #ffffff;
  border: 1px solid rgba(0, 74, 173, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 12px 32px rgba(0, 74, 173, 0.05);
}

.devis-trust-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #004aad;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 74, 173, 0.1);
}

.devis-trust-title i {
  color: #00c3ff;
}

.devis-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.devis-trust-list li {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.devis-trust-list li:last-child {
  margin-bottom: 0;
}

.devis-trust-list i {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  /*background: linear-gradient(135deg, rgba(0, 74, 173, 0.1), rgba(0, 195, 255, 0.1));*/
  color: #004aad;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.devis-trust-list strong {
  display: block;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.devis-trust-list span {
  display: block;
  color: #6c757d;
  font-size: 0.83rem;
  line-height: 1.4;
  margin-top: 0.15rem;
}

/* Card "préférez nous appeler" */
.devis-direct-card {
  background: linear-gradient(135deg, #002d6a 0%, #004aad 50%, #0062d6 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.devis-direct-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 195, 255, 0.3) 0%, transparent 65%);
  filter: blur(40px);
  top: -80px;
  right: -80px;
  pointer-events: none;
}

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

.devis-direct-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: white;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  font-size: 1.4rem;
}

.devis-direct-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.devis-direct-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

/* ============================================================
   PAGE MERCI
   ============================================================ */
.devis-merci-section {
  background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.devis-merci-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
  animation: floatBlob 10s ease-in-out infinite;
}

.devis-merci-blob--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 195, 255, 0.2) 0%, transparent 65%);
  top: -100px;
  left: -150px;
}

.devis-merci-blob--2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 74, 173, 0.15) 0%, transparent 65%);
  bottom: -200px;
  right: -150px;
  animation-delay: 3s;
}

.devis-merci-checkmark {
  width: 110px;
  height: 110px;
  margin: 0 auto 2rem;
  color: #00c3ff;
  filter: drop-shadow(0 10px 30px rgba(0, 195, 255, 0.4));
  animation: merci-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.devis-merci-checkmark svg {
  width: 100%;
  height: 100%;
}

@keyframes merci-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.devis-merci-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.devis-merci-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.devis-merci-lead strong {
  color: #004aad;
}

.devis-merci-reference {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border: 1.5px dashed rgba(0, 74, 173, 0.3);
  border-radius: 18px;
  margin-bottom: 2.5rem;
}

.devis-merci-reference-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6c757d;
}

.devis-merci-reference-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #004aad;
  letter-spacing: 0.05em;
  margin: 0.4rem 0 0.2rem;
  font-family: "Inter", monospace;
}

.devis-merci-reference-help {
  font-size: 0.78rem;
  color: #6c757d;
  font-style: italic;
}

.devis-merci-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 3.5rem;
}

.devis-merci-explore-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6c757d;
  margin-bottom: 1.25rem;
}

.devis-merci-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.devis-merci-explore-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(0, 74, 173, 0.08);
  border-radius: 14px;
  color: #1a1a1a;
  text-align: left;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.devis-merci-explore-card:hover {
  transform: translateX(4px);
  border-color: rgba(0, 195, 255, 0.4);
  box-shadow: 0 10px 24px rgba(0, 74, 173, 0.1);
  color: #1a1a1a;
}

.devis-merci-explore-card > i:first-child {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 74, 173, 0.1), rgba(0, 195, 255, 0.1));
  color: #004aad;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.devis-merci-explore-card div {
  flex-grow: 1;
}

.devis-merci-explore-card strong {
  display: block;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.2;
}

.devis-merci-explore-card span {
  display: block;
  color: #6c757d;
  font-size: 0.83rem;
  margin-top: 0.15rem;
}

.devis-merci-arrow {
  color: #004aad;
  transition: transform 0.25s ease;
}

.devis-merci-explore-card:hover .devis-merci-arrow {
  transform: translateX(4px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .devis-sidebar {
    position: static;
    top: auto;
    margin-top: 1rem;
  }
}
@media (max-width: 768px) {
  .devis-hero {
    padding: 130px 0 40px;
  }
  .devis-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .devis-step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .devis-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .devis-type-option label {
    padding: 1.1rem 0.6rem;
  }
  .devis-type-option label > i {
    font-size: 1.6rem;
  }
  .devis-merci-section {
    padding: 130px 0 80px;
    min-height: auto;
  }
  .devis-merci-checkmark {
    width: 90px;
    height: 90px;
  }
}
