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

body.tc-confort-page .tc-confort-page-hero {
  isolation: isolate;
  padding: 124px 0 78px;
  background:
    radial-gradient(circle at 76% 30%, rgba(232, 201, 106, 0.16) 0, transparent 24%),
    radial-gradient(circle at 18% 92%, rgba(26, 47, 107, 0.82) 0, transparent 43%),
    linear-gradient(135deg, #081735 0%, var(--bleu-profond) 48%, #101d47 100%);
}

body.tc-confort-page .tc-confort-page-hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: min(63vw, 820px);
  height: min(63vw, 820px);
  right: -280px;
  bottom: -610px;
  border: 1px solid rgba(232, 201, 106, 0.43);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(201, 168, 76, 0.035),
    0 0 42px rgba(232, 201, 106, 0.09);
  pointer-events: none;
}

body.tc-confort-page .tc-confort-page-hero .page-hero-inner::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 220px;
  height: 1px;
  top: 27px;
  left: calc(50% + 218px);
  transform: rotate(-22deg);
  background: linear-gradient(90deg, transparent, rgba(232, 201, 106, 0.92), transparent);
  box-shadow: 0 0 16px rgba(232, 201, 106, 0.52);
  pointer-events: none;
}

body.tc-confort-page .tc-confort-page-hero h1 {
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  margin-bottom: 13px;
}

body.tc-confort-page .tc-confort-page-hero .tc-confort-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 20px;
  padding: 8px 15px;
  border: 1px solid rgba(232, 201, 106, 0.43);
  border-radius: 999px;
  color: var(--or-clair);
  background: rgba(13, 27, 62, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.tc-confort-page .tc-confort-hero-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--or-clair);
  box-shadow: 0 0 10px rgba(232, 201, 106, 0.95);
}

body.tc-confort-page .tc-confort-page-hero p {
  max-width: 680px;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

body.tc-confort-page .tc-confort-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 31px;
}

body.tc-confort-page .tc-confort-hero-ctas .btn {
  justify-content: center;
}

body.tc-confort-page .tc-confort-hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 22px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.86rem;
}

body.tc-confort-page .tc-confort-hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.tc-confort-page .tc-confort-hero-proof span::before {
  content: '✓';
  color: var(--or-clair);
  font-weight: 700;
}

/* Bloc tarifaire : preuve claire et qualification du visiteur. */
body.tc-confort-page .tc-confort-pricing {
  position: relative;
  overflow: hidden;
  padding: 52px 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(232, 201, 106, 0.1), transparent 28%),
    linear-gradient(135deg, #0a1939, #14285e);
  border-top: 1px solid rgba(232, 201, 106, 0.18);
  border-bottom: 1px solid rgba(232, 201, 106, 0.18);
}

body.tc-confort-page .tc-confort-pricing-grid {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 35px;
}

body.tc-confort-page .tc-confort-pricing-mark {
  width: 112px;
  height: 112px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 201, 106, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

body.tc-confort-page .tc-confort-pricing-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.tc-confort-page .tc-confort-pricing h2,
body.tc-confort-page .tc-confort-pricing p {
  color: var(--blanc);
}

body.tc-confort-page .tc-confort-pricing h2 {
  margin-bottom: 9px;
}

body.tc-confort-page .tc-confort-pricing p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.97rem;
}

body.tc-confort-page .tc-confort-price-card {
  padding: 22px 24px;
  border: 1px solid rgba(232, 201, 106, 0.48);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

body.tc-confort-page .tc-confort-price-main {
  display: block;
  color: var(--or-clair);
  font-family: var(--font-titre);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
}

body.tc-confort-page .tc-confort-price-sub {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Introduction : langage de métier et preuve de gestion humaine. */
body.tc-confort-page .tc-confort-intro .tc-confort-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  align-items: center;
  gap: 64px;
}

body.tc-confort-page .tc-confort-intro p + p {
  margin-top: 20px;
}

body.tc-confort-page .tc-confort-dark-card .tc-confort-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 15px;
}

body.tc-confort-page .tc-confort-icon {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.13), rgba(201, 168, 76, 0.035));
}

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

body.tc-confort-page .tc-confort-dark-card .tc-confort-icon {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(232, 201, 106, 0.30);
}

body.tc-confort-page .tc-confort-card-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 201, 106, 0.18);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.87rem;
  line-height: 1.65;
}

body.tc-confort-page .tc-confort-card-note strong { color: var(--or-clair); }

/* Étapes de service. */
body.tc-confort-page .tc-confort-process {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 93% 16%, rgba(201, 168, 76, 0.07), transparent 23%),
    var(--gris-doux);
}

body.tc-confort-page .tc-confort-process-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 70px;
}

body.tc-confort-page .tc-confort-process-intro {
  position: sticky;
  top: 104px;
}

body.tc-confort-page .tc-confort-steps {
  display: grid;
  gap: 16px;
}

body.tc-confort-page .tc-confort-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 16px;
  background: var(--blanc);
  box-shadow: 0 7px 24px rgba(13, 27, 62, 0.055);
}

body.tc-confort-page .tc-confort-step-number {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--bleu-profond);
  background: linear-gradient(135deg, var(--or), var(--or-clair));
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.28);
  font-family: var(--font-titre);
  font-weight: 700;
}

body.tc-confort-page .tc-confort-step h3 {
  margin: 1px 0 4px;
  font-size: 1.18rem;
}

body.tc-confort-page .tc-confort-step p { font-size: 0.94rem; }

/* Section preuve produit. */
body.tc-confort-page .tc-confort-interface {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 21%, rgba(201, 168, 76, 0.075), transparent 24%),
    linear-gradient(180deg, #fbfcff, #f4f6f9);
}

body.tc-confort-page .tc-confort-section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

body.tc-confort-page .tc-confort-section-heading .divider-or {
  margin-right: auto;
  margin-left: auto;
}

body.tc-confort-page .tc-confort-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.7fr);
  align-items: center;
  gap: 34px;
}

body.tc-confort-page .tc-confort-browser-frame {
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.43);
  border-radius: 20px;
  background: var(--bleu-profond);
  box-shadow: 0 24px 72px rgba(13, 27, 62, 0.19);
}

body.tc-confort-page .tc-confort-browser-bar {
  height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(232, 201, 106, 0.22);
  background: linear-gradient(90deg, #091633, #162b61);
}

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

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

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

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

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

body.tc-confort-page .tc-confort-proof-list {
  display: grid;
  gap: 15px;
}

body.tc-confort-page .tc-confort-proof-item {
  padding: 18px 18px 18px 20px;
  border-left: 3px solid var(--or);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 20px rgba(13, 27, 62, 0.07);
}

body.tc-confort-page .tc-confort-proof-item h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

body.tc-confort-page .tc-confort-proof-item p {
  font-size: 0.88rem;
  line-height: 1.63;
}

body.tc-confort-page .tc-confort-demo-actions {
  margin-top: 23px;
}

body.tc-confort-page .tc-confort-demo-actions .btn {
  width: 100%;
  justify-content: center;
}

body.tc-confort-page .tc-confort-demo-disclaimer {
  margin-top: 13px;
  color: var(--gris-moyen);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

/* Preuve responsive avec la capture réelle du portail sur téléphone. */
body.tc-confort-page .tc-confort-mobile-proof {
  background: var(--bleu-profond);
  overflow: hidden;
}

body.tc-confort-page .tc-confort-mobile-proof-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.95fr) minmax(230px, 0.65fr);
  align-items: center;
  justify-content: center;
  gap: 74px;
  max-width: 880px;
  margin: 0 auto;
}

body.tc-confort-page .tc-confort-mobile-proof h2 { color: var(--blanc); }
body.tc-confort-page .tc-confort-mobile-proof p { color: rgba(255, 255, 255, 0.74); }

body.tc-confort-page .tc-confort-mobile-proof .section-label { color: var(--or-clair); }

body.tc-confort-page .tc-confort-phone-frame {
  width: min(100%, 285px);
  justify-self: center;
  padding: 8px;
  border: 1px solid rgba(232, 201, 106, 0.5);
  border-radius: 29px;
  background: #081631;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

body.tc-confort-page .tc-confort-phone-top {
  width: 70px;
  height: 5px;
  margin: 0 auto 7px;
  border-radius: 999px;
  background: rgba(232, 201, 106, 0.45);
}

body.tc-confort-page .tc-confort-phone-screen {
  height: 487px;
  overflow: hidden;
  border-radius: 21px;
  background: #0d1b3e;
}

body.tc-confort-page .tc-confort-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Bénéfices et appel final. */
body.tc-confort-page .tc-confort-benefits .grid-3 { align-items: stretch; }

body.tc-confort-page .tc-confort-benefit-card {
  height: 100%;
}

body.tc-confort-page .tc-confort-benefit-card .tc-confort-icon {
  width: 86px;
  height: 86px;
}

body.tc-confort-page .tc-confort-benefit-card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

body.tc-confort-page .tc-confort-final-cta .cta-banner-inner {
  max-width: 780px;
  margin: 0 auto;
}

body.tc-confort-page .tc-confort-final-cta .cta-banner-inner p {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

/* Réserve d’ancre : aucun titre de section ciblé ne passe sous la navbar fixe. */
body.tc-confort-page .tc-confort-pricing,
body.tc-confort-page section,
body.tc-confort-page .tc-confort-final-cta {
  scroll-margin-top: 88px;
}

/* Compatibilité locale avec le main.js partagé, qui pose .active et non .open. */
@media (max-width: 1279px) {
  body.tc-confort-page .navbar-menu { display: none; }
  body.tc-confort-page .hamburger { display: flex; }
  body.tc-confort-page .mobile-menu.active { display: flex; }
  body.tc-confort-page .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.tc-confort-page .hamburger.active span:nth-child(2) { opacity: 0; }
  body.tc-confort-page .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 1024px) {
  body.tc-confort-page .tc-confort-pricing-grid {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 24px;
  }

  body.tc-confort-page .tc-confort-price-card {
    grid-column: 1 / -1;
  }

  body.tc-confort-page .tc-confort-pricing-mark {
    width: 92px;
    height: 92px;
  }

  body.tc-confort-page .tc-confort-process-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  body.tc-confort-page .tc-confort-process-intro { position: static; }
  body.tc-confort-page .tc-confort-demo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body.tc-confort-page .tc-confort-page-hero {
    padding: 108px 0 60px;
  }

  body.tc-confort-page .tc-confort-page-hero::after {
    width: 510px;
    height: 510px;
    right: -330px;
    bottom: -370px;
  }

  body.tc-confort-page .tc-confort-page-hero .page-hero-inner::after {
    width: 130px;
    top: 18px;
    left: calc(50% + 95px);
  }

  body.tc-confort-page .tc-confort-hero-kicker {
    font-size: 0.63rem;
    letter-spacing: 0.09em;
  }

  body.tc-confort-page .tc-confort-hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
  }

  body.tc-confort-page .tc-confort-hero-ctas .btn { width: 100%; }
  body.tc-confort-page .tc-confort-hero-proof { gap: 8px 14px; font-size: 0.78rem; }

  body.tc-confort-page .tc-confort-pricing-grid,
  body.tc-confort-page .tc-confort-intro .tc-confort-intro-grid,
  body.tc-confort-page .tc-confort-mobile-proof-grid {
    grid-template-columns: 1fr;
  }

  body.tc-confort-page .tc-confort-pricing-grid { text-align: center; }
  body.tc-confort-page .tc-confort-pricing-mark { margin: 0 auto; }
  body.tc-confort-page .tc-confort-price-card { grid-column: auto; }
  body.tc-confort-page .tc-confort-intro .tc-confort-intro-grid { gap: 36px; }

  body.tc-confort-page .tc-confort-section-heading { margin-bottom: 30px; }
  body.tc-confort-page .tc-confort-browser-frame { border-radius: 14px; }
  body.tc-confort-page .tc-confort-browser-viewport { height: min(65vw, 420px); }

  body.tc-confort-page .tc-confort-mobile-proof-grid { gap: 38px; }
  body.tc-confort-page .tc-confort-phone-frame { order: -1; }

  body.tc-confort-page .tc-confort-step { padding: 20px 18px; }
}

@media (max-width: 480px) {
  body.tc-confort-page .tc-confort-pricing { padding: 44px 0; }
  body.tc-confort-page .tc-confort-price-card { padding: 20px 18px; }
  body.tc-confort-page .tc-confort-browser-bar { height: 36px; padding: 0 12px; }
  body.tc-confort-page .tc-confort-browser-title { font-size: 0.66rem; }
  body.tc-confort-page .tc-confort-browser-frame figcaption { padding: 11px 13px 12px; font-size: 0.75rem; }
  body.tc-confort-page .tc-confort-phone-screen { height: 444px; }
  body.tc-confort-page .whatsapp-float { display: none; }
}
