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

:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --ink: #2b2b2b;
  --muted: #5f6b6f;
  --card: #ffffff;
  --accent: #00a38f;
  --accent-2: #0b7c6d;
  --accent-3: #7bd3c7;
  --border: #e2eaec;
  --shadow: 0 22px 60px rgba(19, 30, 32, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(123, 211, 199, 0.25), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(0, 163, 143, 0.18), transparent 50%),
    #f4f7f6;
  min-height: 100vh;
}

.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 220px;
  height: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.brand-tagline {
  font-size: 0.9rem;
  color: var(--muted);
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: flex-start;
}

.top-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.top-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0, 163, 143, 0.15);
}

.qr-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: #fff;
}

.qr-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  max-width: 220px;
}

.qr-text span {
  display: block;
  color: var(--accent-2);
  font-weight: 600;
  margin-top: 4px;
}

.qr-whatsapp {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  flex: 0 0 auto;
}

.qr-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.qr-image {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

h1 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 8px;
}

.sub {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.card {
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--border);
  animation: floatIn 0.6s ease both;
}

.tabs {
  display: inline-flex;
  padding: 6px;
  background: #eef4f4;
  border-radius: 999px;
  gap: 6px;
  margin-bottom: 24px;
}

.tab {
  border: none;
  background: transparent;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.tab.is-active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 163, 143, 0.25);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.span-all {
  grid-column: 1 / -1;
}

.panel {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.panel.maison-work {
  margin-inline: 0;
  padding-inline: 20px;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(0, 163, 143, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.panel:hover::after {
  opacity: 1;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ink);
}

.panel.is-hidden {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.field.inline {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.field.centered-field {
  align-items: center;
}

.field.centered-field input {
  max-width: 180px;
  text-align: center;
}

input,
select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  background: #fff;
}

input:focus,
select:focus {
  outline: 2px solid rgba(0, 163, 143, 0.25);
  border-color: var(--accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
}

.maison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .maison-grid {
    grid-template-columns: 1fr;
  }
}

.slide-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.slide-btn {
  border: none;
  background: rgba(255, 255, 255, 0.65);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.slide-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.apartment-slider {
  position: relative;
  overflow: hidden;
}

.apartment-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scroll-padding-inline: 20px;
}

.slide-btn.is-left,
.slide-btn.is-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.slide-btn.is-left {
  left: 6px;
}

.slide-btn.is-right {
  right: 6px;
}

.apartment-track::-webkit-scrollbar {
  height: 6px;
}

.apartment-track::-webkit-scrollbar-thumb {
  background: rgba(0, 163, 143, 0.4);
  border-radius: 999px;
}

.apartment-card {
  min-width: calc(50% - 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  scroll-snap-align: start;
  position: relative;
}

.apartment-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--accent-2);
}

.apt-section-title {
  margin: 18px 0 12px;
  padding: 6px 10px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: linear-gradient(120deg, rgba(0, 163, 143, 0.12), rgba(0, 163, 143, 0.02));
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.apt-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 14px;
  margin-top: 10px;
}

.apt-results .value {
  font-size: 1rem;
}

.apt-benefice {
  font-weight: 700;
}

.benefice-total {
  margin-top: 20px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

.is-positive {
  color: var(--accent-2);
}

.is-negative {
  color: #c0392b;
}

.result {
  background: #f4fbfa;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.value {
  margin: 6px 0 0;
  font-size: 1.1rem;
}

.value.emphasis {
  font-size: 1.4rem;
  color: var(--accent-2);
}

.totals {
  margin-top: 20px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

.totals-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
}

.apt-details {
  margin-top: 18px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.apt-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.9rem;
}

.apt-table th,
.apt-table td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.apt-table th:first-child,
.apt-table td:first-child {
  text-align: left;
}

.apt-table thead th {
  background: #f4fbfa;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.apt-table tbody tr:last-child td {
  border-bottom: none;
}

@keyframes floatIn {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .apartment-card {
    min-width: 100%;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 24px 16px 56px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
