/* TC Expertise & Énergie — accueil V1, 28 octobre 2026.
 * Charger APRÈS css/style.css, UNIQUEMENT sur l'accueil.
 * Les cqw sont relatifs à la scène de référence, jamais à une image étirée.
 * Référence : 1673 × 940. Décor reconstruit fourni par Christophe.
 */
body.tc-home {
  --hero-gold: #f4ca52;
  --header-height: clamp(64px, 4.03vw, 82px);
  --hero-font: Georgia, 'Times New Roman', serif;
}
.tc-home .navbar {
  background: rgba(3, 19, 49, .97);
  border-bottom-color: rgba(131, 159, 211, .19);
}
.tc-home .navbar-inner {
  height: var(--header-height);
  width: calc(100% - 48px);
  max-width: min(1480px, max(1120px, 68vw));
  padding: 0;
  gap: 22px;
}
.tc-home .navbar-logo { gap: 12px; flex-shrink: 0; }
.tc-home .navbar-logo-icon {
  width: clamp(42px, 2.65vw, 54px);
  height: clamp(42px, 2.65vw, 54px);
  background: linear-gradient(120deg, #eebf4b, #ffdc70);
}
.tc-home .navbar-logo-text .brand-main {
  font-size: clamp(17px, 1.12vw, 23px);
  font-family: var(--hero-font);
}
.tc-home .navbar-logo-text .brand-sub {
  font-size: clamp(9px, .64vw, 12px);
  color: var(--hero-gold);
}
.tc-home .navbar-menu { gap: clamp(2px, .4vw, 8px); }
.tc-home .navbar-menu a {
  font-size: clamp(13px, .88vw, 18px);
  padding: 10px clamp(7px, .6vw, 12px);
  letter-spacing: 0;
}
.tc-home .navbar-menu a.active { color: var(--hero-gold); }
.tc-home .navbar-cta {
  background: linear-gradient(110deg, #f0c84f, #ffdb70) !important;
  color: #101b2c !important;
}
.tc-home .mobile-menu { top: var(--header-height); }
.tc-home a:focus-visible, .tc-home button:focus-visible {
  outline: 3px solid #ffdd78;
  outline-offset: 5px;
}

/* Une seule couche décorative : aucun canvas ni halo global surajouté. */
.tc-home .hero {
  display: block;
  min-height: 0;
  padding: 0;
  background: #03132d;
  overflow: hidden;
}
.tc-home .hero::before, .tc-home .hero::after { display: none; }
.tc-home .hero-wrapper {
  width: 100%;
  max-width: 2048px;
  min-height: 0;
  aspect-ratio: 1673 / 940;
  margin: 0 auto;
  padding: 0;
  container-type: inline-size;
  isolation: isolate;
}
.tc-home .hero-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../images/tc-hero-background.webp') center / cover no-repeat;
  pointer-events: none;
}
.tc-home .hero-card {
  display: grid;
  grid-template-columns: 23.1cqw 32.5cqw;
  gap: 3.5cqw;
  align-items: start;
  margin-left: 18cqw;
  padding-top: 9.2cqw;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.tc-home .hero-left {
  min-height: 0;
  margin-top: 3.6cqw;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 0;
  overflow: visible;
}
.tc-home .hero-left img {
  width: 100%;
  height: auto;
  max-height: 43.4cqw;
  object-fit: contain;
  object-position: center bottom;
  filter: none;
  border-radius: 0;
}
.tc-home .hero-right {
  display: block;
  padding: 0;
  text-align: center;
  overflow: visible;
  min-width: 0;
}
.tc-home .hero-right-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: none;
}
.tc-home .hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31.1cqw;
  max-width: 100%;
  min-height: 3.05cqw;
  margin: 0 0 3.6cqw;
  padding: .65cqw 1.2cqw;
  gap: .65cqw;
  color: #f4d66d;
  border: 1px solid #bca05a;
  border-radius: 50px;
  background: rgba(9, 29, 59, .85);
  font-size: .99cqw;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .09em;
  white-space: nowrap;
}
.tc-home .hero-title {
  width: 100%;
  font-family: var(--hero-font);
  font-size: 4.6cqw;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.025em;
  color: #fff;
  text-align: center;
  margin: 0 0 2.4cqw;
}
.tc-home .hero-title .highlight { color: var(--hero-gold); display: block; }
.tc-home .hero-subtitle {
  max-width: 30.5cqw;
  width: 100%;
  font-size: 1.03cqw;
  line-height: 1.55;
  color: #f1f3f8;
  text-align: center;
  margin: 0 0 3.4cqw;
}
.tc-home .hero-ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  gap: 1.2cqw;
  margin: 0 0 2.8cqw;
}
.tc-home .hero-ctas .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16cqw;
  min-height: 2.8cqw;
  padding: .65cqw .8cqw;
  font-size: .88cqw;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  border: 1px solid transparent;
  border-radius: .65cqw;
  text-align: center;
  white-space: nowrap;
}
.tc-home .hero-ctas .btn-primary {
  background: linear-gradient(105deg, #f1c647, #ffe175);
  color: #121a29;
  box-shadow: 0 0 16px rgba(237, 181, 58, .12);
}
.tc-home .hero-ctas .btn-outline {
  flex-basis: 14.1cqw;
  color: #f6f7fb;
  background: rgba(5, 20, 52, .72);
  border-color: #7184b3;
}
.tc-home .hero-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  gap: 1.5cqw;
  padding: 0;
  border: none;
  background: none;
}
.tc-home .hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: .55cqw;
  font-size: 1cqw;
  line-height: 1.4;
  color: #f1f3f8;
  white-space: nowrap;
}
.tc-home .hero-trust-item .icon { font-size: 1.35cqw; color: var(--hero-gold); }
.tc-home .hero .animate-in {
  opacity: 1;
  animation: none;
  transform: none;
}
.tc-home .whatsapp-float { width: 52px; height: 52px; right: 20px; bottom: 20px; }

/* Les longs libellés validés passent en menu replié avant chevauchement. */
@media (max-width: 1279px) {
  .tc-home .navbar-menu { display: none; }
  .tc-home .hamburger { display: flex; }
}

/* Tablette : composition conservée, plancher typographique lisible. */
@media (min-width: 861px) and (max-width: 1199px) {
  .tc-home .hero-wrapper { aspect-ratio: auto; min-height: 680px; }
  .tc-home .hero-card {
    margin-left: 8cqw;
    grid-template-columns: 29cqw 46cqw;
    gap: 6cqw;
    padding-top: 125px;
    padding-bottom: 40px;
  }
  .tc-home .hero-left { margin-top: 40px; }
  .tc-home .hero-left img { max-height: 480px; }
  .tc-home .hero-badge { font-size: 12px; white-space: normal; width: 100%; min-height: 45px; margin-bottom: 38px; }
  .tc-home .hero-title { font-size: clamp(46px, 4.6cqw, 58px); margin-bottom: 30px; }
  .tc-home .hero-subtitle { font-size: 16px; max-width: 100%; margin-bottom: 32px; }
  .tc-home .hero-ctas { gap: 12px; margin-bottom: 30px; }
  .tc-home .hero-ctas .btn { flex: 1 1 0; font-size: 13px; min-height: 48px; padding: 10px; white-space: normal; border-radius: 8px; }
  .tc-home .hero-trust { gap: 12px; flex-wrap: wrap; }
  .tc-home .hero-trust-item { font-size: 13px; gap: 6px; }
  .tc-home .hero-trust-item .icon { font-size: 18px; }
}

/* Mobile : le portrait est visible, le texte n'est pas une image réduite. */
@media (max-width: 860px) {
  .tc-home { --header-height: 64px; }
  .tc-home .navbar-inner { width: calc(100% - 40px); gap: 12px; }
  .tc-home .navbar-logo-text .brand-main { font-size: 17px; }
  .tc-home .navbar-logo-text .brand-sub { font-size: 9px; }
  .tc-home .navbar-logo-icon { width: 40px; height: 40px; }
  .tc-home .hero-wrapper { aspect-ratio: auto; }
  .tc-home .hero-wrapper::before {
    background-size: auto 650px;
    background-position: 49% 35px;
    opacity: .62;
  }
  .tc-home .hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 80px 24px 35px;
  }
  .tc-home .hero-left { width: auto; min-height: 0; margin: 0 0 20px; }
  .tc-home .hero-left img { width: auto; height: 250px; max-height: none; max-width: 100%; }
  .tc-home .hero-right { width: 100%; max-width: 560px; padding: 0; }
  .tc-home .hero-badge {
    width: 100%;
    max-width: 450px;
    min-height: 45px;
    padding: 10px 14px;
    margin: 0 0 22px;
    gap: 8px;
    white-space: normal;
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: .08em;
  }
  .tc-home .hero-title { font-size: clamp(34px, 8.8vw, 48px); line-height: 1.08; margin: 0 0 22px; }
  .tc-home .hero-subtitle { font-size: 16px; line-height: 1.55; max-width: 100%; margin: 0 0 25px; }
  .tc-home .hero-ctas { flex-direction: column; flex-wrap: nowrap; gap: 12px; margin: 0 0 24px; }
  .tc-home .hero-ctas .btn, .tc-home .hero-ctas .btn-outline {
    flex: none;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 8px;
    white-space: normal;
  }
  .tc-home .hero-trust { gap: 10px 16px; flex-wrap: wrap; }
  .tc-home .hero-trust-item { font-size: 13px; gap: 6px; }
  .tc-home .hero-trust-item .icon { font-size: 18px; }
  /* Pas de bulle fixe devant le paragraphe ou les boutons sur téléphone. */
  .tc-home .whatsapp-float { display: none; }
  /* Les quatre mentions sous le hero avaient des tailles inline trop grandes. */
  .tc-home .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-home .stat-item { min-width: 0; padding: 12px 4px; }
  .tc-home .stat-number { font-size: clamp(1.1rem, 3vw, 1.5rem) !important; line-height: 1.2; overflow-wrap: anywhere; }
  .tc-home .stat-label { font-size: 13px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-home *, .tc-home *::before, .tc-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
