/* Switch365 — style SaaS moderne */

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

:root {
  --ink: #0f172a;
  --ink-soft: #5b6478;
  --paper: #ffffff;
  --bg-soft: #f7f7fb;
  --accent: #5b4cf5;
  --accent-2: #8b7bff;
  --accent-soft: #efedff;
  --good: #16a34a;
  --line: #e7e6f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px -8px rgba(15,23,42,0.10);
  --shadow-lg: 0 4px 12px rgba(15,23,42,0.06), 0 24px 48px -16px rgba(91,76,245,0.22);

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--ink);
}

.wordmark .dot {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}

.header-links a.quick {
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  font-weight: 500;
}

.header-links a.quick:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(91,76,245,0.45);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -4px rgba(91,76,245,0.5); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 15px 28px; font-size: 15.5px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 88px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at center, rgba(91,76,245,0.16), rgba(91,76,245,0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin: 0 0 22px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}

h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Signature: floating switch card */

.switch-visual { position: relative; }

.switch-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.switch-card .switch-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.switch-card .switch-labels .to { color: var(--accent); }

.toggle {
  width: 100%;
  height: 132px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
  padding: 10px;
}

.toggle .knob {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slide 3.6s cubic-bezier(.65,0,.35,1) infinite;
}

.toggle .knob svg { width: 42px; height: 42px; }

.toggle::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 45%, rgba(91,76,245,0.14) 100%);
  opacity: 0;
  animation: glow 3.6s cubic-bezier(.65,0,.35,1) infinite;
  pointer-events: none;
}

@keyframes slide {
  0%, 30% { left: 10px; }
  55%, 100% { left: calc(100% - 122px); }
}

@keyframes glow {
  0%, 30% { opacity: 0; }
  55%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .toggle .knob { animation: none; left: calc(100% - 122px); }
  .toggle::after { animation: none; opacity: 1; }
}

.switch-card .mini-row {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.switch-card .mini-row strong { color: var(--ink); font-weight: 600; }

/* ---------- Trust bar ---------- */

.trust {
  padding: 20px 0 4px;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: center;
  text-align: center;
}

.trust span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); display: inline-block; }

/* ---------- Section shared ---------- */

section { padding: 84px 0; }

.section-head { max-width: 60ch; margin: 0 auto 48px; text-align: center; }

.section-head .eyebrow { margin-bottom: 14px; }

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-head p { color: var(--ink-soft); margin: 0; font-size: 17px; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow .15s ease, transform .15s ease;
}

.step:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.step .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step .icon svg { width: 22px; height: 22px; stroke: var(--accent); }

.step .num {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.step p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.price-card.highlight {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

.badge-pop {
  position: absolute;
  top: -13px;
  left: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}

.price-card .label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0 0 16px;
}

.price-card .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.price-card .unit {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
}

.price-card li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4cf5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.price-card .btn-primary { width: 100%; justify-content: center; }

.price-note {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 22px;
  text-align: center;
}

/* ---------- Direct contact block ---------- */

.contact-block {
  background: var(--bg-soft);
  border-radius: 28px;
  margin: 0 28px;
}

.contact-block .wrap { max-width: 1064px; }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.contact-card .label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0 0 12px;
}

.contact-card .value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.contact-card .hint {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Form page ---------- */

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

form.devis {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

form.devis label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 8px;
}

form.devis input,
form.devis select,
form.devis textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

form.devis input:focus,
form.devis select:focus,
form.devis textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: var(--paper);
}

form.devis textarea { resize: vertical; min-height: 110px; }

form.devis button {
  align-self: flex-start;
  margin-top: 6px;
  border: none;
  cursor: pointer;
}

.direct-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: linear-gradient(160deg, var(--accent-soft), var(--paper) 60%);
}

.direct-panel .label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0 0 16px;
}

.direct-panel a.big-link {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 6px;
}

.direct-panel a.big-link:hover { color: var(--accent); }

.direct-panel .hint { font-size: 14px; color: var(--ink-soft); margin: 0 0 24px; }

.hours {
  font-size: 13.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 4px;
}

.hours strong { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 600; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .header-links .quick { display: none; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-block { margin: 0 16px; }
  section { padding: 56px 0; }
}
