/* ============================================================
   TC BÂTI — Complément de page isolé
   À charger après css/style.css et css/logo-entete.css.
   Toutes les règles sont limitées à body.tc-bati-page.
   ============================================================ */

body.tc-bati-page .tc-bati-page-hero {
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 26%, rgba(232, 201, 106, 0.14) 0, transparent 25%),
    linear-gradient(135deg, var(--bleu-profond), var(--bleu-marine));
}

body.tc-bati-page .tc-bati-page-hero::after {
  content: '';
  position: absolute;
  width: min(66vw, 840px);
  height: min(66vw, 840px);
  right: -310px;
  bottom: -640px;
  border: 1px solid rgba(232, 201, 106, 0.42);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px rgba(201, 168, 76, 0.04),
    0 0 42px rgba(232, 201, 106, 0.08);
  pointer-events: none;
  z-index: 0;
}

body.tc-bati-page .tc-bati-page-hero .page-hero-inner::after {
  content: '';
  position: absolute;
  width: 210px;
  height: 1px;
  top: 34px;
  right: -42px;
  transform: rotate(-22deg);
  transform-origin: right center;
  background: linear-gradient(90deg, transparent, rgba(232, 201, 106, 0.86), transparent);
  box-shadow: 0 0 16px rgba(232, 201, 106, 0.5);
  pointer-events: none;
}

body.tc-bati-page .tc-bati-illustration {
  width: 84px;
  height: 84px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.tc-bati-page .tc-bati-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.tc-bati-page .tc-bati-illustration--intro {
  width: 92px;
  height: 92px;
  margin-bottom: 14px;
}

body.tc-bati-page .tc-bati-interface {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 18%, rgba(201, 168, 76, 0.075), transparent 25%),
    linear-gradient(180deg, #fbfcff 0%, #f4f6f9 100%);
}

body.tc-bati-page .tc-bati-interface__heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

body.tc-bati-page .tc-bati-interface__heading .divider-or {
  margin-right: auto;
  margin-left: auto;
}

body.tc-bati-page .tc-bati-browser-frame {
  max-width: 1032px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.38);
  border-radius: 20px;
  background: var(--bleu-profond);
  box-shadow: 0 24px 72px rgba(13, 27, 62, 0.18);
}

body.tc-bati-page .tc-bati-browser-bar {
  height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(232, 201, 106, 0.22);
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(90deg, #0b1838, #15285b);
}

body.tc-bati-page .tc-bati-browser-dot {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 50%;
  background: rgba(232, 201, 106, 0.68);
}

body.tc-bati-page .tc-bati-browser-title {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-corps);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.tc-bati-page .tc-bati-browser-viewport {
  height: clamp(310px, 47vw, 570px);
  overflow: hidden;
  background: #edf1f6;
}

body.tc-bati-page .tc-bati-browser-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.tc-bati-page .tc-bati-browser-frame figcaption {
  padding: 13px 18px 15px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  text-align: center;
  background: var(--bleu-profond);
}

body.tc-bati-page .tc-bati-status-card,
body.tc-bati-page .tc-bati-benefit-card {
  height: 100%;
}

body.tc-bati-page .tc-bati-status-card .tc-bati-illustration {
  width: 86px;
  height: 86px;
  padding: 5px;
  margin-right: auto;
  margin-bottom: 17px;
  margin-left: auto;
  border-radius: 18px;
}

body.tc-bati-page .tc-bati-status-card--travaux .tc-bati-illustration {
  background: radial-gradient(circle, rgba(76, 175, 80, 0.17), rgba(76, 175, 80, 0.05));
  border: 1px solid rgba(76, 175, 80, 0.23);
}

body.tc-bati-page .tc-bati-status-card--attente .tc-bati-illustration {
  background: radial-gradient(circle, rgba(255, 152, 0, 0.17), rgba(255, 152, 0, 0.05));
  border: 1px solid rgba(255, 152, 0, 0.25);
}

body.tc-bati-page .tc-bati-status-card--transfere .tc-bati-illustration {
  background: radial-gradient(circle, rgba(211, 47, 47, 0.14), rgba(211, 47, 47, 0.04));
  border: 1px solid rgba(211, 47, 47, 0.2);
}

body.tc-bati-page .tc-bati-benefit-card .tc-bati-illustration {
  width: 82px;
  height: 82px;
  padding: 4px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.14), rgba(201, 168, 76, 0.04));
  border: 1px solid rgba(201, 168, 76, 0.22);
}

/* Compatibilité limitée à TC Bâti avec le main.js existant, qui ajoute .active. */
body.tc-bati-page .mobile-menu.active {
  display: flex;
}

body.tc-bati-page .hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.tc-bati-page .hamburger.active span:nth-child(2) {
  opacity: 0;
}

body.tc-bati-page .hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  body.tc-bati-page .tc-bati-page-hero::after {
    width: 520px;
    height: 520px;
    right: -315px;
    bottom: -400px;
  }

  body.tc-bati-page .tc-bati-page-hero .page-hero-inner::after {
    width: 130px;
    top: 26px;
    right: -70px;
  }

  body.tc-bati-page .tc-bati-interface__heading {
    margin-bottom: 30px;
  }

  body.tc-bati-page .tc-bati-browser-frame {
    border-radius: 14px;
  }

  body.tc-bati-page .tc-bati-browser-viewport {
    height: min(72vw, 420px);
  }

  body.tc-bati-page .tc-bati-illustration--intro {
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 480px) {
  body.tc-bati-page .tc-bati-browser-bar {
    height: 36px;
    padding: 0 12px;
  }

  body.tc-bati-page .tc-bati-browser-frame figcaption {
    padding: 11px 14px 12px;
    font-size: 0.77rem;
  }
}
