:root {

  --background: hsl(0, 0%, 100%);
  --foreground: hsl(210, 24%, 16%);
  --primary: hsl(231, 48%, 20%);
  --primary-glow: hsl(231, 48%, 30%);
  --secondary: hsl(210, 16%, 30%);
  --accent: hsl(217, 91%, 60%);
  --card: hsl(0, 0%, 100%);
  --muted: hsl(210, 40%, 98%);
  --muted-foreground: hsl(210, 16%, 46%);
  --border: hsl(214, 32%, 91%);
  --destructive: hsl(0, 84%, 60%);
  --success: hsl(142, 76%, 36%);
  --gradient-hero: linear-gradient(135deg, hsl(231, 48%, 20%), hsl(210, 16%, 30%));
  --gradient-cta: linear-gradient(135deg, hsl(217, 91%, 60%), hsl(231, 48%, 30%));
  --shadow-soft: 0 4px 6px -1px hsl(210 16% 30% / .1);
  --shadow-medium: 0 10px 15px -3px hsl(210 16% 30% / .1);
  --shadow-strong: 0 25px 50px -12px hsl(231 48% 20% / .25);
  --shadow-glow: 0 0 30px hsl(217 91% 60% / .3);
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 0.75rem;
  --navy: #0d1b2a;
  --blue: #1a56db;
  --blue-light: #3b82f6;
  --blue-glow: rgba(26, 86, 219, 0.18);
  --accent-soft: rgba(245, 158, 11, 0.12);
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f1f5f9;
  --gray-100: #e2e8f0;
  --gray-300: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --success: #10b981;
  --error: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(13, 27, 42, 0.10);
  --shadow-lg: 0 12px 48px rgba(13, 27, 42, 0.16);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--off-white);
  color: var(--navy);
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--roboto);
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
}
/* HEADER HERO */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162844 60%, #1e3a5f 100%);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(26, 86, 219, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(245, 158, 11, 0.10) 0%, transparent 60%);
} 

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  position: relative;
  animation: fadeDown 0.6s ease both;
}

.hero-badge::before {
  content: '●';
  font-size: 8px;
  animation: blink 1.5s ease infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  position: relative;
  animation: fadeDown 0.7s 0.1s ease both;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 16px auto 0;
  line-height: 1.7;
  position: relative;
  animation: fadeDown 0.7s 0.2s ease both;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* LAYOUT */
.page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

@media(max-width:900px) {
  .page-wrap {
    grid-template-columns: 1fr;
  }
}

/* SIDEBAR – CONTACT INFO */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 4px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-100);
  text-decoration: none;
  color: var(--roboto);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-card.featured {
  background: linear-gradient(135deg, var(--blue) 0%, #1e40af 100%);
  border-color: transparent;
  color: var(--white);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.15);
}

.contact-card:not(.featured) .card-icon {
  background: var(--blue-glow);
}

.card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.7;
}

.card-value {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2px 0;
}

.card-sub {
  font-size: 12px;
  opacity: 0.7;
}

.contact-card.featured .card-label,
.contact-card.featured .card-sub {
  color: rgba(255, 255, 255, 0.8);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 130px;
}

.pill .icon {
  font-size: 18px;
}

/* ============================================================
   FORM CARD
   ============================================================ */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.form-header {
  padding: 28px 36px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-header-icon {
  font-size: 24px;
}

.form-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.form-header p {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

.form-body {
  padding: 32px 36px;
}

@media(max-width:600px) {

  .form-header,
  .form-body {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Steps nav */
.steps-nav {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  background: var(--gray-50);
  border-radius: 10px;
  padding: 4px;
}

.step-btn {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
}

.step-btn.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  transition: all var(--transition);
}

.step-btn.active .step-num {
  background: var(--blue);
  color: var(--white);
}

.step-btn.done .step-num {
  background: var(--success);
  color: var(--white);
}

.step-btn.done .step-num::after {
  content: '✓';
}

/* Step panels */
.step-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.step-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* Form rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

@media(max-width:600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.field label .req {
  color: var(--blue);
  margin-left: 2px;
}

.field input,
.field textarea,
.field select {
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.field input.error,
.field textarea.error {
  border-color: var(--error);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field .hint {
  font-size: 11px;
  color: var(--gray-300);
}

.field .err-msg {
  font-size: 11px;
  color: var(--error);
  display: none;
}

.field.has-error .err-msg {
  display: block;
}

/* Urgence toggle */
.urgence-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 16px;
}

.urgence-toggle:hover {
  border-color: var(--blue);
  background: var(--blue-glow);
}

.urgence-toggle.checked {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.06);
}

.urgence-toggle input {
  display: none;
}

.toggle-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.urgence-toggle.checked .toggle-box {
  background: var(--error);
  border-color: var(--error);
  color: var(--white);
}

.urgence-toggle.checked .toggle-box::after {
  content: '✓';
  font-size: 11px;
  font-weight: 800;
}

.urgence-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.urgence-text span {
  font-size: 12px;
  color: var(--gray-500);
}

/* Prestations builder */
.prestations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.prestation-row {
  display: grid;
  grid-template-columns: 1fr 90px 110px 42px;
  gap: 8px;
  align-items: center;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 10px 12px;
  border: 1px solid var(--gray-100);
}

@media(max-width:600px) {
  .prestation-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .prestation-row .del-btn {
    grid-column: span 2;
    justify-self: end;
  }
}

.prestation-row input,
.prestation-row select {
  border: 1.5px solid var(--gray-100);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  background: var(--white);
  color: var(--navy);
  transition: border-color var(--transition);
  width: 100%;
}

.prestation-row input:focus,
.prestation-row select:focus {
  border-color: var(--blue);
}

.del-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.del-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

.add-prestation-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px dashed var(--blue-light);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}

.add-prestation-btn:hover {
  background: var(--blue-glow);
}

/* Total recap */
.total-recap {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  text-align: center;
}

.total-item {
  color: rgba(255, 255, 255, 0.7);
}

.total-item .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.total-item .value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 4px;
}

.total-item.highlight .value {
  color: var(--accent);
  font-size: 1.5rem;
}

/* Navigation buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #1e40af 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
}

.btn-secondary {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-100);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-1px);
}

/* Success state */
.success-overlay {
  display: none;
  padding: 48px 36px;
  text-align: center;
}

.success-overlay.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.35);
}

.success-overlay h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-overlay p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

.devis-num {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 12px 20px;
  display: inline-block;
  font-weight: 700;
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 24px;
}










