/* ==========================================================================
   UNNERO — Espace Client / Onboarding
   Charte graphique v1.0 — Mars 2026
   Liquid Glass aesthetic — Light & Dark mode
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand colors */
  --cyan: #00C8C8;
  --cyan-dark: #009E9E;
  --cyan-light: #E0F7F7;
  --red: #E53935;
  --amber: #FFA000;
  --green: #43A047;

  /* Dark theme (default) */
  --bg: #0D0D0D;
  --bg-elevated: #141414;
  --card: rgba(26, 26, 26, 0.55);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(0, 200, 200, 0.12);
  --text: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #6B6B6B;
  --divider: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(255, 255, 255, 0.03);
  --input-border: rgba(255, 255, 255, 0.1);

  /* Liquid glass */
  --glass-bg: rgba(20, 20, 20, 0.5);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 24px;
  --glass-saturation: 180%;
  --glass-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.4) inset,
    0 30px 60px -15px rgba(0, 0, 0, 0.5);

  /* Background orbs */
  --orb-1: rgba(0, 200, 200, 0.25);
  --orb-2: rgba(0, 158, 158, 0.18);
  --orb-3: rgba(0, 200, 200, 0.1);
  --bg-grid: rgba(255, 255, 255, 0.025);

  /* Typography */
  --font: 'Poppins', Arial, Helvetica, sans-serif;

  /* Layout */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --transition: 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

[data-theme="light"] {
  --bg: #F5F7F8;
  --bg-elevated: #FFFFFF;
  --card: rgba(255, 255, 255, 0.65);
  --card-border: rgba(0, 0, 0, 0.06);
  --card-hover: rgba(0, 200, 200, 0.08);
  --text: #0D0D0D;
  --text-secondary: #4A4A4A;
  --text-muted: #8A8A8A;
  --divider: rgba(0, 0, 0, 0.06);
  --input-bg: rgba(255, 255, 255, 0.7);
  --input-border: rgba(0, 0, 0, 0.08);

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow:
    0 1px 0 0 rgba(255, 255, 255, 1) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.04) inset,
    0 20px 60px -15px rgba(0, 60, 60, 0.18);

  --orb-1: rgba(0, 200, 200, 0.35);
  --orb-2: rgba(0, 158, 158, 0.2);
  --orb-3: rgba(0, 200, 200, 0.15);
  --bg-grid: rgba(0, 0, 0, 0.035);
}

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.3s ease;
}

/* ---------- Animated background (liquid orbs + grid) ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
  will-change: transform;
}
.orb-1 { width: 540px; height: 540px; background: var(--orb-1); top: -180px; left: -120px; animation: float-1 22s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: var(--orb-2); bottom: -160px; right: -120px; animation: float-2 28s ease-in-out infinite; }
.orb-3 { width: 380px; height: 380px; background: var(--orb-3); top: 40%; left: 55%; animation: float-3 24s ease-in-out infinite; }

@keyframes float-1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(120px, 90px) scale(1.12); }
}
@keyframes float-2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-100px, -80px) scale(1.08); }
}
@keyframes float-3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-80px, 60px) scale(0.92); }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-secondary); }

.accent { color: var(--cyan); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--cyan);
}
.eyebrow::before {
  content:""; width: 28px; height: 2px; background: var(--cyan); border-radius: 2px;
}

/* ---------- Layout ---------- */
.container { width: min(1200px, 92%); margin: 0 auto; }
main { padding-top: 100px; padding-bottom: 80px; }
section { padding: 60px 0; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; top: 16px; left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 92%);
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: var(--glass-shadow);
  padding: 10px 18px 10px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  transition: background 0.4s, border-color 0.4s;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 700;
}
.brand img { height: 30px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: var(--card-hover);
}

.nav-right { display: flex; align-items: center; gap: 10px; }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.4s var(--transition), background 0.25s;
}
.theme-toggle:hover { transform: rotate(20deg); background: var(--card-hover); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons (with highlight effect) ---------- */
.btn {
  --b-bg: var(--cyan);
  --b-fg: #0D0D0D;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--b-bg);
  color: var(--b-fg);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s, box-shadow 0.35s, background 0.3s;
  box-shadow: 0 6px 24px -6px rgba(0,200,200,0.5);
}
.btn::before { /* highlight sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,0.55) 50%,
    transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s ease;
  z-index: 1;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(110%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -6px rgba(0,200,200,0.6); }
.btn:active { transform: translateY(0); }
.btn span, .btn svg { position: relative; z-index: 2; }
.btn svg { width: 16px; height: 16px; }

.btn-ghost {
  --b-bg: transparent;
  --b-fg: var(--text);
  border: 1px solid var(--glass-border);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.btn-ghost::before {
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(0,200,200,0.25) 50%,
    transparent 70%);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 8px 24px -10px rgba(0,200,200,0.45);
}

.btn-outline {
  --b-bg: transparent;
  --b-fg: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(0,200,200,0.1); }

.btn-danger {
  --b-bg: var(--red);
  --b-fg: #fff;
  box-shadow: 0 6px 20px -6px rgba(229,57,53,0.55);
}

.btn-sm { padding: 8px 16px; font-size: 0.74rem; }
.btn-lg { padding: 16px 30px; font-size: 0.92rem; }

/* ---------- Glass cards ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 28px;
  transition: transform 0.4s var(--transition), border-color 0.3s, box-shadow 0.3s;
}
.glass:hover {
  border-color: rgba(0, 200, 200, 0.3);
}
.glass.interactive:hover {
  transform: translateY(-4px);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 60px 0 50px;
}
.hero h1 {
  margin: 18px auto 16px;
  max-width: 18ch;
  background: linear-gradient(135deg, var(--text) 0%, var(--text) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p { max-width: 60ch; margin: 0 auto 32px; font-size: 1.08rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Grid sections ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,200,200,0.15), rgba(0,200,200,0.04));
  color: var(--cyan);
  margin-bottom: 16px;
  border: 1px solid rgba(0,200,200,0.2);
}
.feature-icon svg { width: 24px; height: 24px; }

/* ---------- Pricing cards ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card { position: relative; padding: 32px 28px; }
.pricing-card.featured {
  border-color: rgba(0,200,200,0.5);
  transform: scale(1.03);
}
.pricing-card.featured::before {
  content: "Recommandé";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: #0D0D0D;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px;
}
.pricing-card h3 { color: var(--cyan); }
.pricing-price {
  font-size: 2.5rem; font-weight: 700; margin: 16px 0 4px;
  color: var(--text);
}
.pricing-price span { font-size: 0.95rem; color: var(--text-muted); font-weight: 400; }
.pricing-card ul { list-style: none; margin: 20px 0; }
.pricing-card li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--divider);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: "✓"; color: var(--cyan); font-weight: 700; flex-shrink: 0;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.field label .req { color: var(--cyan); margin-left: 3px; }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0,200,200,0.04);
  box-shadow: 0 0 0 3px rgba(0,200,200,0.12);
}
.field .hint { font-size: 0.78rem; color: var(--text-muted); }

.field-inline {
  display: flex; align-items: center; gap: 10px;
}
.field-inline input[type="checkbox"], .field-inline input[type="radio"] {
  width: 18px; height: 18px; accent-color: var(--cyan);
  cursor: pointer;
}
.field-inline label { font-size: 0.92rem; color: var(--text); cursor: pointer; margin: 0; }

/* Range slider */
.range-wrap { display: flex; align-items: center; gap: 14px; }
.range-wrap input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--input-border);
  border-radius: 3px;
  outline: none;
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--cyan), 0 4px 12px rgba(0,200,200,0.4);
  transition: transform 0.2s;
}
.range-wrap input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-wrap input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--cyan); cursor: pointer; border: 3px solid var(--bg);
}
.range-value {
  min-width: 70px; text-align: center;
  font-weight: 700; color: var(--cyan);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 7px 10px;
}

/* ---------- Calculator ---------- */
.calc-result {
  background: linear-gradient(135deg, rgba(0,200,200,0.12), rgba(0,200,200,0.03));
  border: 1px solid rgba(0,200,200,0.3);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.calc-result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}
.calc-result-row:last-child { border-bottom: none; padding-top: 14px; }
.calc-result-row .label { color: var(--text-secondary); font-size: 0.9rem; }
.calc-result-row .value { color: var(--text); font-weight: 600; }
.calc-result-total .label { color: var(--text); font-weight: 600; font-size: 1.05rem; }
.calc-result-total .value { color: var(--cyan); font-size: 1.8rem; font-weight: 700; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs button {
  font-family: var(--font); font-size: 0.85rem; font-weight: 500;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
}
.tabs button:hover { color: var(--text); border-color: var(--cyan); }
.tabs button.active {
  background: var(--cyan); color: #0D0D0D;
  border-color: var(--cyan); font-weight: 700;
}

/* ---------- Checklist (onboarding) ---------- */
.checklist { display: grid; gap: 12px; }
.check-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}
.check-item:hover { border-color: rgba(0,200,200,0.4); transform: translateX(4px); }
.check-item.done {
  border-color: rgba(67,160,71,0.4);
  background: rgba(67,160,71,0.05);
}
.check-item.done .check-title { text-decoration: line-through; color: var(--text-muted); }
.check-box {
  width: 22px; height: 22px;
  border: 2px solid var(--input-border);
  border-radius: 6px;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all 0.25s;
  margin-top: 2px;
}
.check-item.done .check-box { background: var(--green); border-color: var(--green); }
.check-box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity 0.2s; }
.check-item.done .check-box svg { opacity: 1; }
.check-content { flex: 1; }
.check-title { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.check-desc { font-size: 0.86rem; color: var(--text-secondary); }
.check-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 0.78rem; color: var(--text-muted); }
.check-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Progress bar */
.progress-wrap {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 28px;
  display: grid; gap: 14px;
}
.progress-head { display: flex; justify-content: space-between; align-items: center; }
.progress-head strong { color: var(--cyan); font-size: 1.4rem; }
.progress-bar { height: 10px; background: var(--input-border); border-radius: 5px; overflow: hidden; position: relative; }
.progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--cyan-dark), var(--cyan));
  border-radius: 5px; transition: width 0.6s var(--transition);
  position: relative;
}
.progress-bar-fill::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shine 2s infinite;
}
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.badge-cyan   { background: rgba(0,200,200,0.12); color: var(--cyan); border:1px solid rgba(0,200,200,0.3); }
.badge-green  { background: rgba(67,160,71,0.12); color: var(--green); border:1px solid rgba(67,160,71,0.3); }
.badge-amber  { background: rgba(255,160,0,0.12); color: var(--amber); border:1px solid rgba(255,160,0,0.3); }
.badge-red    { background: rgba(229,57,53,0.12); color: var(--red); border:1px solid rgba(229,57,53,0.3); }
.badge-muted  { background: var(--input-bg); color: var(--text-muted); border: 1px solid var(--input-border); }

/* ---------- Stepper ---------- */
.stepper {
  display: flex; justify-content: space-between; gap: 8px;
  margin-bottom: 32px;
  position: relative;
}
.stepper::before {
  content:""; position: absolute; top: 18px; left: 5%; right: 5%; height: 2px;
  background: var(--input-border); z-index: 0;
}
.stepper-fill {
  position: absolute; top: 18px; left: 5%; height: 2px;
  background: var(--cyan); z-index: 1;
  transition: width 0.5s var(--transition);
}
.step {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; flex: 1;
}
.step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--input-border);
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s;
}
.step.active .step-circle {
  border-color: var(--cyan); color: var(--cyan);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(0,200,200,0.15);
}
.step.done .step-circle {
  background: var(--cyan); border-color: var(--cyan); color: #0D0D0D;
}
.step-label {
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-muted);
}
.step.active .step-label, .step.done .step-label { color: var(--text); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.show { display: flex; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  max-width: 600px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--glass-shadow);
  animation: slideUp 0.4s var(--transition);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-close {
  width: 36px; height: 36px;
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--text); border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--divider);
  padding: 40px 0 30px;
  margin-top: 60px;
  text-align: center;
}
.footer p { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.86rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-legal { margin-top: 10px; font-size: 0.72rem !important; opacity: 0.55; }
.footer-legal a { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--cyan); }
.footer-legal span { margin: 0 6px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; } .mb-4 { margin-bottom: 40px; }
.flex { display: flex; }
.gap-2 { gap: 20px; }
.hidden { display: none !important; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head p { max-width: 60ch; margin: 14px auto 0; }

/* Page entry animation */
.fade-in { animation: fadeUp 0.7s var(--transition) both; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile nav toggle */
.nav-toggle { display: none; }
@media (max-width: 850px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0;
         flex-direction: column; align-items: stretch; gap: 6px;
         background: rgba(13, 13, 13, 0.96);
         backdrop-filter: blur(28px) saturate(180%);
         -webkit-backdrop-filter: blur(28px) saturate(180%);
         border: 1px solid var(--glass-border); border-radius: 18px;
         padding: 14px; box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.6); }
  [data-theme="light"] .nav { background: rgba(255, 255, 255, 0.97); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 0.95rem; }
  .nav-toggle { display: grid; place-items: center;
                width: 40px; height: 40px; border-radius: 50%;
                background: var(--card); border: 1px solid var(--glass-border);
                color: var(--text); cursor: pointer; }
}

/* ============================================
   RESPONSIVE MOBILE — empêche le débordement
   ============================================ */
@media (max-width: 700px) {
  /* Forcer aucun débordement */
  body, html { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100%; }

  /* Container plus large sur mobile pour éviter les bandes vides */
  .container { width: min(1200px, 94%); }
  .header { width: min(1200px, 94%); padding: 8px 12px 8px 16px; }
  .brand img { height: 26px; }

  /* Hero compact */
  main { padding-top: 90px; padding-bottom: 50px; }
  .hero { padding: 30px 0 30px; }
  .hero h1 { max-width: 100%; }
  .hero p { font-size: 1rem; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Sections plus aérées */
  section { padding: 30px 0; }
  .section-head h2 { font-size: 1.6rem; }

  /* Pricing card scale: retirer le scale qui peut déborder */
  .pricing-card.featured { transform: none; margin-top: 12px; }

  /* Glass cards padding réduit */
  .glass { padding: 22px 20px; }

  /* Footer plus serré */
  .footer-links { gap: 16px; }
  .footer-links a { font-size: 0.82rem; }
  .footer p { font-size: 0.78rem; padding: 0 8px; }

  /* Boutons */
  .btn-lg { padding: 12px 22px; font-size: 0.92rem; }

  /* Tables scrollables */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Sliders & inputs : ne pas dépasser */
  input[type="range"], input[type="text"], input[type="email"],
  input[type="tel"], input[type="number"], textarea, select {
    max-width: 100%; width: 100%;
  }

  /* Eviter les marges négatives sur grids */
  .grid-3, .grid-2, .pricing-grid { gap: 16px; }

  /* Modal mobile-friendly */
  .modal-content { width: calc(100% - 24px); max-width: calc(100% - 24px); padding: 22px 20px; }
}

@media (max-width: 420px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .pricing-price { font-size: 2.1rem; }
  .brand img { height: 24px; }
  .header { padding: 6px 10px 6px 12px; }
  .nav-right { gap: 6px; }
  .theme-toggle { width: 36px; height: 36px; }
}

/* Quote / devis output */
.quote-summary {
  background: linear-gradient(180deg, rgba(0,200,200,0.06), transparent);
  border: 1px solid rgba(0,200,200,0.25);
  border-radius: var(--radius);
  padding: 24px;
}
.quote-line {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px dashed var(--divider);
}
.quote-line:last-child { border-bottom: none; }
.quote-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--cyan);
  display: flex; justify-content: space-between; align-items: baseline;
}
.quote-total .value { color: var(--cyan); font-size: 1.8rem; font-weight: 700; }

/* Print styles for quote */
@media print {
  .header, .footer, .btn, .theme-toggle, .bg-layer { display: none !important; }
  body { background: white !important; color: black !important; }
  .glass { background: white !important; border: 1px solid #ddd !important; box-shadow: none !important; }
}
