:root {
  --bg: #0C1116;
  --bg-surface: #121A21;
  --bg-alt: #0F1519;
  --text: #EDF2F5;
  --text-dim: #93A5B3;
  --ice: #6FD3E8;
  --ice-dim: #274049;
  --ice-bright: #8FE3F5;
  --ember: #FF5A36;
  --ember-dim: #7A2E1E;
  --line: #223039;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  color: #FFFFFF;
}

a { color: var(--ice); }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 720px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 17, 22, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo-icon { height: 42px; width: auto; display: block; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo-img { height: 40px; width: auto; display: block; }
.footer-brand-name {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #fff;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }
.nav-cta { display: inline-block; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-ember {
  background: var(--ice-bright);
  color: #06232B;
}
.btn-ember:hover { background: #A9EDFA; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }

/* Hero */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 20%, rgba(111, 211, 232, 0.08), transparent 45%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ice);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero-text h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.04;
  margin-bottom: 22px;
}
.lead {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Gauge signature element */
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-brand-icon { height: 56px; width: auto; display: block; }
.hero-brand-name {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
}
.gauge {
  position: relative;
  width: 260px;
  padding: 32px 26px;
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-alt));
  border: 1px solid var(--ice-dim);
  border-radius: 8px;
  overflow: hidden;
}
.gauge-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.gauge-value {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 46px;
  font-weight: 800;
  color: var(--ice);
  line-height: 1;
}
.gauge-value span { font-size: 22px; color: var(--text-dim); }
.gauge-bar {
  margin-top: 20px;
  height: 6px;
  border-radius: 3px;
  background: var(--ice-dim);
  overflow: hidden;
}
.gauge-fill {
  height: 100%;
  width: 92%;
  background: linear-gradient(90deg, var(--ember), var(--ice));
  border-radius: 3px;
}
.gauge-fog {
  position: relative;
  height: 60px;
  margin-top: 24px;
}
.gauge-fog span {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(111, 211, 232, 0.35);
  filter: blur(3px);
  animation: rise 4.5s ease-in infinite;
}
.gauge-fog span:nth-child(1) { left: 10%; animation-delay: 0s; }
.gauge-fog span:nth-child(2) { left: 30%; animation-delay: 0.9s; width: 10px; height: 10px;}
.gauge-fog span:nth-child(3) { left: 50%; animation-delay: 1.8s; }
.gauge-fog span:nth-child(4) { left: 70%; animation-delay: 2.6s; width: 9px; height: 9px;}
.gauge-fog span:nth-child(5) { left: 88%; animation-delay: 3.3s; }

@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translateY(-70px) scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gauge-fog span { animation: none; opacity: 0.25; }
}

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 40px;
}
.section-sub { color: var(--text-dim); margin: -24px 0 36px; max-width: 56ch; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-num {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ember);
  font-size: 13px;
  margin: 0 0 14px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; margin: 0; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tag-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--text-dim);
  background: var(--bg-alt);
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { display: flex; gap: 22px; align-items: flex-start; }
.step-index {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ice-dim);
  color: var(--ice);
  font-family: 'IBM Plex Mono', monospace;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--text-dim); margin: 0; max-width: 60ch; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--ice-bright); border-bottom-color: var(--ice-bright); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Estimation calculator */
.estim-box { display: grid; gap: 18px; max-width: 480px; }
.estim-intro { color: var(--text-dim); font-size: 14px; margin: 0; }
.duration-input { display: flex; gap: 10px; }
.duration-input input { flex: 0 0 100px; }
.duration-input select { flex: 1; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 4px;
}
.checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--ice-bright);
  cursor: pointer;
}
.estim-result {
  background: var(--bg-alt);
  border: 1px solid var(--ice-dim);
  border-radius: 6px;
  padding: 22px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.estim-placeholder { color: var(--text-dim); font-size: 14px; margin: 0; }
.estim-price {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: var(--ice-bright);
  margin: 0 0 4px;
}
.estim-price span { font-size: 16px; color: var(--text-dim); font-family: 'Inter', sans-serif; font-weight: 500; }
.estim-detail { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-dim); margin: 0; }
.estim-disclaimer { color: var(--text-dim); font-size: 12px; margin: 0; }

/* Calendrier de disponibilité */
.calendar-widget {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  margin-bottom: 28px;
  max-width: 380px;
}
.calendar-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 14px; }
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.calendar-header span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text);
  text-transform: capitalize;
}
.calendar-header button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 28px; height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.calendar-header button:hover { border-color: var(--ice); color: var(--ice-bright); }
.calendar-header button:disabled { opacity: 0.3; cursor: default; }
.calendar-header button:disabled:hover { border-color: var(--line); color: var(--text); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-daynames {
  margin-bottom: 4px;
}
.calendar-daynames span {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'IBM Plex Mono', monospace;
}
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid transparent;
}
.cal-day:hover:not(.cal-disabled):not(.cal-busy) { border-color: var(--ice); }
.cal-day.cal-empty { background: transparent; cursor: default; }
.cal-day.cal-disabled { color: var(--text-dim); opacity: 0.35; cursor: default; }
.cal-day.cal-busy { color: var(--ember); background: rgba(255,90,54,0.08); cursor: not-allowed; text-decoration: line-through; }
.cal-day.cal-selected { background: var(--ice-bright); color: #06232B; font-weight: 700; }

.calendar-legend {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-dim);
}
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-dot.legend-free { background: var(--bg-surface); border: 1px solid var(--line); }
.legend-dot.legend-busy { background: rgba(255,90,54,0.25); margin-left: 12px; }
.calendar-selected { font-size: 13px; color: var(--ice-bright); margin: 12px 0 0; }

/* Form */
.devis-form { display: grid; gap: 18px; margin-top: 8px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.req { color: var(--ember); }
input, select, textarea {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  padding: 11px 13px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ice);
}
textarea { resize: vertical; }
.btn-submit { margin-top: 8px; justify-self: start; }
.form-status { font-size: 14px; min-height: 20px; margin: 0; }
.form-status.ok { color: var(--ice); }
.form-status.err { color: var(--ember); }

/* Legal pages */
.legal h2 {
  font-size: 18px;
  text-transform: none;
  color: var(--ice);
  margin: 36px 0 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.legal p { color: var(--text-dim); margin: 0 0 4px; }
.legal-note {
  background: rgba(255, 90, 54, 0.08);
  border: 1px solid var(--ember-dim);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text) !important;
  font-size: 14px;
  margin: 24px 0 8px !important;
}

/* Footer */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-logo { font-size: 18px; margin-bottom: 10px; }
.footer-text { color: var(--text-dim); font-size: 14px; }
.footer-text a { color: var(--text-dim); text-decoration: none; }
.footer-text a:hover { color: var(--ice); }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin: 0 0 12px; font-weight: 600; font-family: 'Inter', sans-serif; }
.footer-copy { text-align: center; color: var(--text-dim); font-size: 12px; margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .main-nav { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
}
