/* =============================================
   TLC Homepage CSS
   Extracted from style.css section 10 + new sections
   Loaded conditionally on Homepage Template
   ============================================= */


/* --- HP Page Overrides --- */
.tlc-homepage {
  overflow-x: hidden;
}

.tlc-homepage .grid-container {
  max-width: 100% !important;
  padding: 0 !important;
}

.tlc-homepage .inside-article,
.separate-containers .tlc-homepage .inside-article {
  max-width: 100%;
  padding: 0 !important;
}

.tlc-homepage .entry-content {
  max-width: 100%;
  padding: 0;
}

.tlc-homepage .titre_h1_hp {
  display: none;
}

/* Forcer layout full-width : neutraliser grid/flex GP sur site-content */
.tlc-homepage .site-content {
  display: block !important;
  max-width: 100% !important;
}

.tlc-homepage .content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.tlc-homepage #right-sidebar,
.tlc-homepage #left-sidebar,
.tlc-homepage .sidebar,
.tlc-homepage .widget-area {
  display: none !important;
  width: 0 !important;
}

/* Zero out GP spacing */
.tlc-homepage .site-content,
.tlc-homepage .content-area,
.tlc-homepage .site-main,
.tlc-homepage .site-main > article,
.separate-containers .tlc-homepage .site-main {
  margin: 0 !important;
  padding-top: 0 !important;
}

/* Reset GP link styling inside HP (evite texte orange sur fond orange) */
.tlc-homepage .entry-content a:not(.button) {
  color: inherit;
  box-shadow: none;
  text-decoration: none;
}

.tlc-homepage .entry-content a:not(.button):hover,
.tlc-homepage .entry-content a:not(.button):focus {
  color: inherit;
  box-shadow: none;
}

/* Re-assert hover colors on HP links that change color on hover */
.tlc-homepage .tlc-youtube__subscribe:hover,
.tlc-homepage .tlc-hero__cta:hover {
  color: var(--tlc-white);
}

.tlc-homepage .tlc-featured__cta,
.tlc-homepage .tlc-featured__cta:hover,
.tlc-homepage .tlc-featured__cta:active,
.tlc-homepage .tlc-featured__cta:focus,
.tlc-homepage .tlc-featured__cta:visited,
.tlc-homepage .tlc-brands__cta a,
.tlc-homepage .tlc-brands__cta a:hover,
.tlc-homepage .tlc-brands__cta a:active,
.tlc-homepage .tlc-brands__cta a:focus,
.tlc-homepage .tlc-brands__cta a:visited {
  color: #ffffff !important;
}

.tlc-homepage .tlc-editorial__toggle:hover {
  color: var(--tlc-orange);
}

.tlc-homepage .tlc-faq__question:hover {
  color: var(--tlc-gray-700);
}

.tlc-homepage .tlc-showcase__filter:hover {
  color: var(--tlc-gray-900);
}


/* --- Header toujours fixed sur HP, sous la promo bar --- */
.tlc-homepage .site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  transform: translateZ(0);
}

.tlc-homepage.tlc-has-promo .site-header {
  top: var(--tlc-promo-h, 36px);
}

.tlc-homepage .main-navigation,
.tlc-homepage #site-navigation {
  transition: background 0.4s ease;
}

/* Etat glassmorphism (hero visible) — DESKTOP ONLY */
@media (min-width: 768px) {
  body.tlc-hp-hero-active .site-header {
    background: rgba(0, 0, 0, 0.35) !important;
    box-shadow: none !important;
  }

  body.tlc-hp-hero-active .site-header .inside-header,
  body.tlc-hp-hero-active .site-header .inside-navigation,
  body.tlc-hp-hero-active .site-header .navigation-branding,
  body.tlc-hp-hero-active .main-navigation,
  body.tlc-hp-hero-active #site-navigation {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  body.tlc-hp-hero-active .site-header a,
  body.tlc-hp-hero-active .main-navigation a,
  body.tlc-hp-hero-active .main-title a,
  body.tlc-hp-hero-active .site-header .site-title a {
    color: var(--tlc-white) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
  }

  body.tlc-hp-hero-active .site-header a:hover {
    opacity: 0.8;
  }

  /* Sous-menus lisibles sur HP (fond blanc, texte sombre) */
  body.tlc-hp-hero-active .sub-menu,
  body.tlc-hp-hero-active .main-navigation .sub-menu {
    background: var(--tlc-white) !important;
    backdrop-filter: none !important;
    box-shadow: var(--tlc-shadow-lg) !important;
    border: 1px solid var(--tlc-gray-200);
    border-radius: var(--tlc-radius);
  }

  body.tlc-hp-hero-active .sub-menu a,
  body.tlc-hp-hero-active .main-navigation .sub-menu a {
    color: var(--tlc-gray-900) !important;
    text-shadow: none !important;
  }

  body.tlc-hp-hero-active .sub-menu a:hover,
  body.tlc-hp-hero-active .main-navigation .sub-menu a:hover {
    color: var(--tlc-orange) !important;
    opacity: 1;
    background: var(--tlc-gray-50);
  }
}

/* === Mobile Menu: Glassmorphism Overlay === */

/* --- Cacher le texte "Menu" du burger — juste l'icone --- */
.tlc-homepage .menu-toggle {
  font-size: 0 !important;
  line-height: 0 !important;
}

.tlc-homepage .menu-toggle .gp-icon {
  font-size: 1rem !important;
}

.tlc-homepage .menu-toggle .mobile-menu {
  display: none !important;
}

/* --- Desktop : masquer slideout --- */
@media (min-width: 768px) {
  .tlc-homepage .slideout-navigation {
    display: none !important;
    visibility: hidden !important;
  }
  .tlc-homepage .slideout-exit {
    display: none !important;
  }
}

/* --- MOBILE OVERLAY (< 768px) --- */
@media (max-width: 767px) {

  /* Kill GP body push/transform when slideout open */
  .tlc-homepage,
  .tlc-homepage.slide-opened {
    transform: none !important;
    position: static !important;
  }

  .tlc-homepage.slide-opened {
    overflow: hidden !important;
  }

  /* --- Overlay panel --- */
  .tlc-homepage .slideout-navigation {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.97) !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 80px 28px 40px !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: pan-y;
  }

  .tlc-homepage.slide-opened .slideout-navigation {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* --- Header when overlay is open --- */
  .tlc-homepage.slide-opened .site-header {
    background: transparent !important;
    box-shadow: none !important;
    z-index: 10001 !important;
  }

  .tlc-homepage.slide-opened .menu-toggle .gp-icon svg {
    fill: #222 !important;
  }

  /* --- Close buttons (X) — JS-injected .tlc-menu-close + GP .slideout-exit --- */
  .tlc-homepage .tlc-menu-close,
  .tlc-homepage .slideout-exit {
    z-index: 10002 !important;
    position: fixed !important;
    top: 14px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(0, 0, 0, 0.06) !important;
    border: none !important;
    border-radius: 50% !important;
    pointer-events: auto !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #333 !important;
    font-size: 0 !important;
    box-shadow: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease 0.1s, visibility 0.3s ease 0.1s;
    -webkit-tap-highlight-color: transparent;
  }

  .tlc-homepage.slide-opened .tlc-menu-close,
  .tlc-homepage.slide-opened .slideout-exit {
    opacity: 1;
    visibility: visible;
  }

  /* SVG inside .tlc-menu-close */
  .tlc-homepage .tlc-menu-close svg {
    pointer-events: none;
    width: 24px;
    height: 24px;
    stroke: #333;
  }

  /* CSS X for .slideout-exit (no svg) */
  .tlc-homepage .slideout-exit::before,
  .tlc-homepage .slideout-exit::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 2px;
  }

  .tlc-homepage .slideout-exit::before {
    transform: rotate(45deg);
  }

  .tlc-homepage .slideout-exit::after {
    transform: rotate(-45deg);
  }

  /* --- Menu items --- */
  .tlc-homepage .slideout-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .tlc-homepage .slideout-navigation li {
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .tlc-homepage .slideout-navigation a {
    display: block !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #111 !important;
    padding: 18px 50px 18px 0 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    transition: color 0.2s ease !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
  }

  .tlc-homepage .slideout-navigation a:hover,
  .tlc-homepage .slideout-navigation a:active {
    color: var(--tlc-orange) !important;
  }

  /* Parent items with submenus — visual hint */
  .tlc-homepage .slideout-navigation .menu-item-has-children > a {
    color: #111 !important;
  }

  .tlc-homepage .slideout-navigation li.tlc-submenu-open > a {
    color: var(--tlc-orange) !important;
  }

  /* --- Submenus (accordion) --- */
  .tlc-homepage .slideout-navigation .sub-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.02) !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 8px;
    padding: 4px 0 4px 12px !important;
    margin-bottom: 4px !important;
  }

  .tlc-homepage .slideout-navigation li.tlc-submenu-open > .sub-menu,
  .tlc-homepage .slideout-navigation li.sfHover > .sub-menu,
  .tlc-homepage .slideout-navigation li.toggled-on > .sub-menu {
    display: block !important;
  }

  .tlc-homepage .slideout-navigation .sub-menu li {
    border-bottom: none;
  }

  .tlc-homepage .slideout-navigation .sub-menu a {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #333 !important;
    padding: 14px 8px !important;
    border-radius: 6px;
  }

  .tlc-homepage .slideout-navigation .sub-menu a:hover,
  .tlc-homepage .slideout-navigation .sub-menu a:active {
    color: var(--tlc-orange) !important;
    background: rgba(255, 87, 51, 0.06) !important;
  }

  /* --- Dropdown toggle arrow (inside <a>) --- */
  .tlc-homepage .slideout-navigation .dropdown-menu-toggle {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 50px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    color: #555 !important;
    cursor: pointer;
    padding: 0 !important;
    transition: transform 0.25s ease, color 0.2s ease;
  }

  .tlc-homepage .slideout-navigation li.tlc-submenu-open > a > .dropdown-menu-toggle,
  .tlc-homepage .slideout-navigation li.tlc-submenu-open > .dropdown-menu-toggle {
    transform: rotate(180deg);
    color: var(--tlc-orange) !important;
  }
}

/* Menu toggle (hamburger) reste blanc sur hero — desktop only */
@media (min-width: 768px) {
  body.tlc-hp-hero-active .menu-toggle .gp-icon svg {
    fill: var(--tlc-white);
  }
}


/* ====== DESKTOP: glassmorphism → solid transition via JS class ====== */
@media (min-width: 768px) {
  .tlc-homepage:not(.tlc-hp-hero-active) .site-header {
    background: #ffffff !important;
    box-shadow: 0 1px 0 var(--tlc-gray-200) !important;
  }

  .tlc-homepage:not(.tlc-hp-hero-active) .site-header .inside-header,
  .tlc-homepage:not(.tlc-hp-hero-active) .site-header .inside-navigation,
  .tlc-homepage:not(.tlc-hp-hero-active) .site-header .navigation-branding,
  .tlc-homepage:not(.tlc-hp-hero-active) .main-navigation,
  .tlc-homepage:not(.tlc-hp-hero-active) #site-navigation {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* ====== MOBILE: header TOUJOURS solide blanc — zero dependance JS ====== */
@media (max-width: 767px) {
  .tlc-homepage .site-header {
    background: #ffffff !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08) !important;
  }

  .tlc-homepage .site-header .inside-header,
  .tlc-homepage .site-header .inside-navigation,
  .tlc-homepage .site-header .navigation-branding,
  .tlc-homepage .main-navigation,
  .tlc-homepage #site-navigation {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Liens du header : texte sombre, toujours */
  .tlc-homepage .site-header a,
  .tlc-homepage .site-header .site-title a,
  .tlc-homepage .main-title a {
    color: var(--tlc-gray-900) !important;
    text-shadow: none !important;
  }

  /* Hamburger : icone sombre */
  .tlc-homepage .menu-toggle .gp-icon svg {
    fill: var(--tlc-gray-900) !important;
  }

  /* Logo : max-height pour ne pas deborder */
  .tlc-homepage .site-header img {
    max-height: 40px;
    width: auto;
  }
}

/* Admin bar offset pour header fixed */
body.admin-bar.page-template-content-custom-post-php .site-header {
  top: 32px;
}

body.admin-bar.tlc-has-promo.page-template-content-custom-post-php .site-header {
  top: calc(32px + var(--tlc-promo-h, 36px));
}

@media screen and (max-width: 782px) {
  body.admin-bar.page-template-content-custom-post-php .site-header {
    top: 46px;
  }

  body.admin-bar.tlc-has-promo.page-template-content-custom-post-php .site-header {
    top: calc(46px + var(--tlc-promo-h, 36px));
  }
}

/* Promo bar header offset: deplace dans components.css (global) */

/* Hero promo offset (HP only) */
body.tlc-has-promo .tlc-hero {
  padding-top: var(--tlc-promo-h, 36px);
}


/* --- Reveal Animation --- */
.tlc-reveal {
  opacity: 0;
  transform: translateY(40px) translateZ(0);
  transition: opacity 0.8s var(--tlc-ease-out), transform 0.8s var(--tlc-ease-out);
  will-change: opacity, transform;
}

.tlc-reveal.tlc-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
  will-change: auto;
}


/* --- Section Title --- */
.tlc-section-title {
  text-align: center;
  font-size: var(--tlc-font-3xl);
  font-weight: 800;
  color: var(--tlc-gray-900);
  margin: 0 0 48px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: none;
  -webkit-text-fill-color: unset;
}

/* --- Contained wrapper --- */
.tlc-contained {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}


/* Promo bar: deplace dans components.css (global) */


/* ====================== HERO ====================== */
.tlc-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--tlc-white);
  background: linear-gradient(160deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: var(--tlc-section-gap);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.tlc-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.tlc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.tlc-hero[style*="background-image"] .tlc-hero__overlay {
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.tlc-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
  padding-top: var(--tlc-header-h);
  padding-bottom: 80px;
}

.tlc-hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--tlc-radius-pill);
  font-size: var(--tlc-font-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--tlc-white);
}

.tlc-hero__title {
  font-size: var(--tlc-font-4xl);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--tlc-white);
  background: none;
  -webkit-text-fill-color: unset;
}

.tlc-hero__subtitle {
  font-size: var(--tlc-font-xl);
  opacity: 0.85;
  margin: 0 0 36px;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tlc-hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.tlc-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--tlc-orange);
  color: var(--tlc-white);
  font-weight: 700;
  font-size: var(--tlc-font-md);
  border-radius: var(--tlc-radius-pill);
  text-decoration: none;
  transition: transform 0.3s var(--tlc-ease-out), box-shadow 0.3s var(--tlc-ease-out), background 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 87, 51, 0.35);
  position: relative;
  overflow: hidden;
}

.tlc-hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.4s var(--tlc-ease-out);
}

.tlc-hero__cta:hover::before {
  transform: translateX(0);
}

.tlc-hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 87, 51, 0.45);
  color: var(--tlc-white);
}

.tlc-hero__cta svg {
  transition: transform 0.3s var(--tlc-ease-out);
}

.tlc-hero__cta:hover svg {
  transform: translateX(4px);
}

.tlc-hero__cta--ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.tlc-hero__cta--ghost:hover {
  border-color: var(--tlc-white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.tlc-hero__cta--ghost::before {
  display: none;
}

.tlc-hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
  animation: tlc-bounce 2s ease-in-out infinite;
  animation-play-state: paused;
}

.tlc-hero__scroll-hint.is-visible,
.tlc-hero:hover .tlc-hero__scroll-hint {
  animation-play-state: running;
}

.tlc-hero__scroll-hint:hover {
  color: var(--tlc-white);
}

@keyframes tlc-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


/* ====================== TRUST BAR ====================== */
/* Extra top margin on desktop for breathing room after hero */
.tlc-hero + .tlc-trust,
.tlc-hero + .tlc-reveal {
  margin-top: 100px;
}

.tlc-trust {
  background: var(--tlc-gray-900);
  padding: 60px 20px;
  margin-bottom: var(--tlc-section-gap);
}

.tlc-trust__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.tlc-trust__item {
  flex: 0 1 25%;
  min-width: 180px;
  box-sizing: border-box;
  text-align: center;
  padding: 24px 20px;
  position: relative;
  transition: transform 0.3s var(--tlc-ease-out);
}

.tlc-trust__item:hover {
  transform: translateY(-4px);
}

/* Separateurs verticaux subtils */
.tlc-trust__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.tlc-trust__divider {
  display: none;
}

.tlc-trust__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(255, 87, 51, 0.12);
  border-radius: 50%;
  color: var(--tlc-orange);
  line-height: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.tlc-trust__item:hover .tlc-trust__icon {
  background: rgba(255, 87, 51, 0.2);
  transform: scale(1.08);
}

.tlc-trust__icon svg {
  width: 24px;
  height: 24px;
}

.tlc-trust__number {
  display: block;
  font-size: var(--tlc-font-3xl);
  font-weight: 800;
  color: var(--tlc-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tlc-trust__label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Cards variant — fond clair, cards individuelles */
.tlc-trust--cards {
  background: transparent;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto var(--tlc-section-gap);
}

.tlc-trust--cards .tlc-trust__inner {
  gap: 20px;
}

.tlc-trust--cards .tlc-trust__item {
  background: var(--tlc-white);
  border: 1px solid var(--tlc-border);
  border-radius: var(--tlc-radius-lg);
  padding: 32px 20px;
  box-shadow: var(--tlc-shadow-sm);
  transition: transform 0.3s var(--tlc-ease-out), box-shadow 0.3s ease;
}

.tlc-trust--cards .tlc-trust__item:hover {
  box-shadow: var(--tlc-shadow-md);
}

.tlc-trust--cards .tlc-trust__item::after {
  display: none;
}

.tlc-trust--cards .tlc-trust__icon {
  background: rgba(255, 87, 51, 0.08);
}

.tlc-trust--cards .tlc-trust__number {
  color: var(--tlc-gray-900);
}

.tlc-trust--cards .tlc-trust__label {
  color: var(--tlc-gray-500);
}


/* ====================== BRANDS ====================== */
.tlc-brands {
  max-width: 1400px;
  margin: 0 auto var(--tlc-section-gap);
  padding: 0 32px;
  text-align: center;
}

.tlc-brands__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 24px;
}

.tlc-brands__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  width: calc((100% - 50px) / 6);
  border-radius: var(--tlc-radius);
  transition: opacity 0.4s ease, box-shadow 0.3s ease;
  opacity: 0.5;
  text-decoration: none;
}

.tlc-brands__item:hover {
  opacity: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.tlc-brands__item img {
  max-height: 100px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
}

.tlc-brands__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--tlc-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tlc-brands__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tlc-orange);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tlc-brands__item:hover .tlc-brands__link {
  opacity: 1;
  transform: translateY(0);
}

.tlc-brands__cta {
  margin-top: 32px;
  text-align: center;
}

.tlc-brands__cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--tlc-orange);
  color: var(--tlc-white);
  font-weight: 700;
  font-size: var(--tlc-font-md);
  border: none;
  border-radius: var(--tlc-radius-pill);
  text-decoration: none;
  transition: transform 0.3s var(--tlc-ease-out), box-shadow 0.3s var(--tlc-ease-out), background 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 87, 51, 0.35);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.tlc-brands__cta a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.4s var(--tlc-ease-out);
}

.tlc-brands__cta a:hover::before {
  transform: translateX(0);
}

.tlc-brands__cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 87, 51, 0.45);
  color: var(--tlc-white);
}

.tlc-brands__cta a svg {
  transition: transform 0.3s var(--tlc-ease-out);
}

.tlc-brands__cta a:hover svg {
  transform: translateX(4px);
}


/* ====================== CATEGORY GRID ====================== */
.tlc-catgrid {
  max-width: 1400px;
  margin: 0 auto var(--tlc-section-gap);
  padding: 0 20px;
}

.tlc-catgrid__grid {
  display: grid;
  grid-template-columns: repeat(var(--tlc-cat-cols, 3), 1fr);
  gap: 16px;
}

/* Bento layout:
   Row 1-2: item 1 (big, 2 cols + 2 rows) + item 2 (right top) + item 3 (right bottom)
   Row 3: items 4-5-6 (3 equal cols) */
.tlc-catgrid__grid--bento {
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: auto auto auto;
}

.tlc-catgrid__grid--bento > .tlc-catgrid__card:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.tlc-catgrid__grid--bento > .tlc-catgrid__card:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

.tlc-catgrid__grid--bento > .tlc-catgrid__card:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

/* Items 4+ flow into row 3 naturally */

.tlc-catgrid__card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--tlc-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--tlc-white);
}

.tlc-catgrid__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--tlc-ease-out);
}

.tlc-catgrid__card:hover .tlc-catgrid__img {
  transform: scale(1.08);
}

.tlc-catgrid__img--placeholder {
  background: linear-gradient(135deg, var(--tlc-gray-800), var(--tlc-gray-700));
}

.tlc-catgrid__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
  transition: background 0.4s ease;
}

.tlc-catgrid__card:hover .tlc-catgrid__overlay {
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.tlc-catgrid__name {
  display: block;
  font-weight: 700;
  font-size: var(--tlc-font-xl);
  color: var(--tlc-white);
  line-height: 1.2;
}

.tlc-catgrid__count {
  display: block;
  font-size: var(--tlc-font-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  font-weight: 500;
}

.tlc-catgrid__arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: var(--tlc-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tlc-white);
  z-index: 2;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s var(--tlc-ease-out), transform 0.3s var(--tlc-ease-out);
}

.tlc-catgrid__card:hover .tlc-catgrid__arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ====================== FEATURED ARTICLES ====================== */
.tlc-featured {
  max-width: 1400px;
  margin: 0 auto var(--tlc-section-gap);
  padding: 0 20px;
}

.tlc-featured__grid {
  display: grid;
  grid-template-columns: repeat(var(--tlc-feat-cols, 4), 1fr);
  gap: 24px;
}

.tlc-featured__card {
  display: flex;
  flex-direction: column;
  background: var(--tlc-white);
  border-radius: var(--tlc-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--tlc-shadow-sm);
  transition: transform 0.4s var(--tlc-ease-out), box-shadow 0.4s var(--tlc-ease-out);
}

.tlc-featured__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.tlc-featured__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.tlc-featured__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--tlc-ease-out);
}

.tlc-featured__card:hover .tlc-featured__thumb img {
  transform: scale(1.05);
}

.tlc-featured__thumb-ph {
  width: 100%;
  height: 100%;
  background: var(--tlc-gray-100);
}

.tlc-featured__thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 1;
}

.tlc-featured__thumb-overlay span {
  color: var(--tlc-white);
  font-weight: 700;
  font-size: var(--tlc-font-sm);
  padding: 8px 20px;
  background: var(--tlc-orange);
  border-radius: var(--tlc-radius-pill);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s var(--tlc-ease-out);
}

.tlc-featured__card:hover .tlc-featured__thumb-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.tlc-featured__card:hover .tlc-featured__thumb-overlay span {
  opacity: 1;
  transform: translateY(0);
}

.tlc-featured__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  background: var(--tlc-orange);
  color: var(--tlc-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--tlc-radius-pill);
  z-index: 2;
}

.tlc-featured__cat--inline {
  position: static;
  display: inline-block;
  margin-bottom: 6px;
}

.tlc-featured__body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tlc-featured__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 8px;
}

.tlc-featured__badge-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--tlc-gray-500);
  font-weight: 500;
  white-space: nowrap;
}

.tlc-featured__badge-label + .tlc-featured__badge-label::before {
  content: "\00b7";
  margin-right: 0;
  color: var(--tlc-gray-400);
  font-weight: 700;
}

.tlc-featured__badge-label--video {
  color: #c0392b;
}

.tlc-featured__badge-label--time {
  color: var(--tlc-gray-400);
}

.tlc-featured__title {
  font-size: var(--tlc-font-lg);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
  color: var(--tlc-gray-900);
}

.tlc-featured__excerpt {
  font-size: var(--tlc-font-sm);
  color: var(--tlc-gray-500);
  margin: 0 0 16px;
  line-height: 1.6;
  flex: 1;
}

.tlc-featured__info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--tlc-gray-400);
  margin-bottom: 6px;
}

.tlc-featured__read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tlc-featured__read-time svg {
  opacity: 0.7;
}

.tlc-featured__date {
  font-weight: 500;
}

.tlc-featured__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--tlc-gray-400);
  margin-bottom: 8px;
}

.tlc-featured__meta .tlc-featured__author {
  font-weight: 500;
}

.tlc-featured__meta .tlc-featured__author::after {
  content: "·";
  margin-left: 8px;
}

.tlc-featured__updated {
  font-style: italic;
  opacity: 0.85;
}

.tlc-featured__updated::before {
  content: "·";
  margin-right: 8px;
  font-style: normal;
}

.tlc-featured__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--tlc-font-sm);
  font-weight: 700;
  color: var(--tlc-orange);
  transition: gap 0.3s var(--tlc-ease-out);
}

.tlc-featured__card:hover .tlc-featured__link {
  gap: 10px;
}

/* List variant */
.tlc-featured__card--list {
  flex-direction: row;
}

.tlc-featured__card--list .tlc-featured__thumb {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.tlc-featured__footer {
  text-align: center;
  margin-top: 40px;
}

.tlc-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--tlc-orange);
  color: var(--tlc-white);
  font-weight: 700;
  font-size: var(--tlc-font-md);
  border: none;
  border-radius: var(--tlc-radius-pill);
  text-decoration: none;
  transition: transform 0.3s var(--tlc-ease-out), box-shadow 0.3s var(--tlc-ease-out), background 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 87, 51, 0.35);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.tlc-featured__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.4s var(--tlc-ease-out);
}

.tlc-featured__cta:hover::before {
  transform: translateX(0);
}

.tlc-featured__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 87, 51, 0.45);
  color: var(--tlc-white);
}

.tlc-featured__cta:active,
.tlc-featured__cta:focus {
  color: var(--tlc-white) !important;
  outline: none;
}

.tlc-featured__cta svg {
  transition: transform 0.3s var(--tlc-ease-out);
}

.tlc-featured__cta:hover svg {
  transform: translateX(4px);
}


/* ====================== TOOLS ====================== */
.tlc-tools {
  max-width: 1400px;
  margin: 0 auto var(--tlc-section-gap);
  padding: 0 20px;
}

.tlc-tools__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tlc-tools__card {
  text-align: center;
  padding: 36px 20px 32px;
  background: var(--tlc-white);
  border: 1.5px solid var(--tlc-gray-200);
  border-radius: var(--tlc-radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s var(--tlc-ease-out);
  position: relative;
  overflow: hidden;
}

.tlc-tools__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tool-color, var(--tlc-orange));
  transform: scaleX(0);
  transition: transform 0.4s var(--tlc-ease-out);
}

.tlc-tools__card:hover::before {
  transform: scaleX(1);
}

.tlc-tools__card:hover {
  border-color: var(--tlc-gray-300);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.tlc-tools__icon {
  width: 56px;
  height: 56px;
  background: var(--tlc-gray-50);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--tool-color, var(--tlc-orange));
  transition: background 0.3s ease, color 0.3s ease;
}

.tlc-tools__card:hover .tlc-tools__icon {
  background: var(--tool-color, var(--tlc-orange));
  color: var(--tlc-white);
}

.tlc-tools__card-title {
  font-size: var(--tlc-font-md);
  font-weight: 700;
  color: var(--tlc-gray-900);
  margin: 0 0 6px;
}

.tlc-tools__card-desc {
  font-size: 13px;
  color: var(--tlc-gray-500);
  margin: 0;
  line-height: 1.5;
}


/* ====================== YOUTUBE ====================== */
.tlc-youtube {
  max-width: 1400px;
  margin: 0 auto var(--tlc-section-gap);
  padding: 0 20px;
}

.tlc-youtube__inner {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: 40px;
  align-items: center;
}

.tlc-youtube__video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--tlc-radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tlc-youtube__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tlc-youtube__poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.tlc-youtube__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
  padding: 0;
  -webkit-appearance: none;
}

.tlc-youtube__play:hover,
.tlc-youtube__play:focus,
.tlc-youtube__play:active {
  background: none !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.tlc-youtube__video:hover .tlc-youtube__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.tlc-youtube__desc {
  font-size: var(--tlc-font-md);
  line-height: 1.7;
  color: var(--tlc-gray-700);
  margin: 0 0 28px;
}

.tlc-youtube__subscribe {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #ff0000;
  color: var(--tlc-white);
  font-weight: 700;
  font-size: var(--tlc-font-base);
  border-radius: var(--tlc-radius-pill);
  text-decoration: none;
  transition: transform 0.3s var(--tlc-ease-out), box-shadow 0.3s var(--tlc-ease-out);
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.25);
}

.tlc-youtube__subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.35);
  color: var(--tlc-white);
}

/* Extra videos row */
.tlc-youtube__extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.tlc-youtube__extra-card {
  position: relative;
  display: block;
  border-radius: var(--tlc-radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tlc-youtube__extra-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tlc-shadow-lg);
}

.tlc-youtube__extra-thumb {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.tlc-youtube__extra-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.tlc-youtube__extra-card:hover .tlc-youtube__extra-play {
  opacity: 1;
}

.tlc-youtube__extra-label {
  display: block;
  padding: 10px 12px;
  background: var(--tlc-white);
  font-size: var(--tlc-font-sm);
  font-weight: 600;
  color: var(--tlc-gray-900);
  line-height: 1.3;
}


/* ====================== NEWSLETTER ====================== */
.tlc-newsletter {
  background: var(--tlc-gray-900);
  color: var(--tlc-white);
  padding: 80px 20px;
  text-align: center;
  margin-bottom: var(--tlc-section-gap);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.tlc-newsletter__inner {
  max-width: 560px;
  margin: 0 auto;
}

.tlc-newsletter__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--tlc-radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--tlc-orange-light);
}

.tlc-newsletter__title {
  font-size: var(--tlc-font-3xl);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--tlc-white);
  background: none;
  -webkit-text-fill-color: unset;
}

.tlc-newsletter__subtitle {
  font-size: var(--tlc-font-md);
  opacity: 0.7;
  margin: 0 0 32px;
  line-height: 1.6;
}

.tlc-newsletter__form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 16px;
  border-radius: var(--tlc-radius-pill);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.3s ease;
}

.tlc-newsletter__form:focus-within {
  border-color: var(--tlc-orange);
}

.tlc-newsletter__input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--tlc-white);
  font-size: var(--tlc-font-base);
}

.tlc-newsletter__input::placeholder {
  color: var(--tlc-gray-500);
}

.tlc-newsletter__input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

.tlc-newsletter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--tlc-orange);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  font-size: var(--tlc-font-base);
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.tlc-newsletter__btn:hover {
  background: var(--tlc-orange-light);
}

.tlc-newsletter__incentive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 87, 51, 0.15);
  border-radius: var(--tlc-radius-pill);
  font-size: var(--tlc-font-sm);
  font-weight: 600;
  color: var(--tlc-orange-light);
  margin: 0 0 24px;
}

.tlc-newsletter__incentive svg {
  flex-shrink: 0;
}

.tlc-newsletter__privacy {
  font-size: 12px;
  opacity: 0.45;
  margin: 0;
}

/* --- Newsletter feedback --- */
.tlc-newsletter__feedback {
  display: none;
  margin-top: 12px;
  padding: 10px 20px;
  border-radius: var(--tlc-radius-pill);
  font-size: var(--tlc-font-sm);
  font-weight: 600;
  animation: tlcFeedbackIn 0.3s ease;
}

.tlc-newsletter__feedback--success {
  background: rgba(70, 180, 80, 0.15);
  color: #6ddb7a;
}

.tlc-newsletter__feedback--error {
  background: rgba(220, 50, 50, 0.15);
  color: #ff6b6b;
}

.tlc-newsletter__btn--loading {
  opacity: 0.6;
  pointer-events: none;
}

@keyframes tlcFeedbackIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ====================== SHOWCASE (old shortcode compat) ====================== */
.tlc-showcase {
  max-width: 1400px;
  margin: 0 auto var(--tlc-section-gap);
  padding: 0 20px;
}

.tlc-showcase__subtitle {
  text-align: center;
  font-size: var(--tlc-font-md);
  color: var(--tlc-gray-500);
  margin: -24px 0 36px;
  line-height: 1.6;
}

.tlc-showcase__filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tlc-showcase__filter {
  padding: 10px 24px;
  border: 1.5px solid var(--tlc-gray-300);
  border-radius: var(--tlc-radius-pill);
  background: transparent;
  color: var(--tlc-gray-700);
  font-size: var(--tlc-font-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--tlc-ease-out);
}

.tlc-showcase__filter:hover {
  border-color: var(--tlc-gray-900);
  color: var(--tlc-gray-900);
}

.tlc-showcase__filter--active {
  background: var(--tlc-gray-900);
  color: var(--tlc-white);
  border-color: var(--tlc-gray-900);
}

.tlc-showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tlc-showcase__card {
  display: flex;
  flex-direction: column;
  background: var(--tlc-white);
  border-radius: var(--tlc-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--tlc-shadow-sm);
  transition: transform 0.4s var(--tlc-ease-out), box-shadow 0.4s var(--tlc-ease-out);
}

.tlc-showcase__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.tlc-showcase__card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.tlc-showcase__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--tlc-ease-out);
}

.tlc-showcase__card:hover .tlc-showcase__card-img img {
  transform: scale(1.06);
}

.tlc-showcase__card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--tlc-gray-100);
}

.tlc-showcase__card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tlc-showcase__card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tlc-orange);
}

.tlc-showcase__card-title {
  font-size: var(--tlc-font-base);
  font-weight: 700;
  line-height: 1.35;
  color: var(--tlc-gray-900);
  margin: 0;
}

.tlc-showcase__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tlc-gray-500);
  margin-top: 4px;
  transition: color 0.2s ease, gap 0.3s var(--tlc-ease-out);
}

.tlc-showcase__card:hover .tlc-showcase__card-cta {
  color: var(--tlc-orange);
  gap: 8px;
}

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


/* ====================== EDITORIAL ====================== */
.tlc-editorial {
  max-width: 1000px;
  margin: 0 auto var(--tlc-section-gap);
  padding: 0 20px;
}

.tlc-editorial__wrap {
  position: relative;
}

/* Hidden checkbox — CSS-only toggle (immune to LiteSpeed JS Delay) */
.tlc-editorial__check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tlc-editorial__content {
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.5s var(--tlc-ease-out);
  font-size: var(--tlc-font-base);
  line-height: 1.8;
  color: var(--tlc-gray-700);
}

/* When checkbox is checked → expand content */
.tlc-editorial__check:checked ~ .tlc-editorial__wrap .tlc-editorial__content {
  max-height: 3000px;
}

.tlc-editorial__content p {
  margin: 0 0 16px;
}

.tlc-editorial__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--tlc-white));
  pointer-events: none;
}

/* When checked → hide fade */
.tlc-editorial__check:checked ~ .tlc-editorial__wrap .tlc-editorial__fade {
  display: none;
}

.tlc-editorial__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  margin: 12px auto 0;
  padding: 6px 16px;
  background: none;
  border: 1px solid var(--tlc-gray-300);
  border-radius: var(--tlc-radius-pill);
  color: var(--tlc-gray-600);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--tlc-ease-out);
}

.tlc-editorial__toggle:hover {
  border-color: var(--tlc-orange);
  color: var(--tlc-orange);
}

.tlc-editorial__toggle svg {
  transition: transform 0.3s var(--tlc-ease-out);
}

/* Toggle text: show "Lire la suite" by default, "Réduire" when checked */
.tlc-editorial__toggle-less {
  display: none;
}

.tlc-editorial__check:checked ~ .tlc-editorial__toggle .tlc-editorial__toggle-more {
  display: none;
}

.tlc-editorial__check:checked ~ .tlc-editorial__toggle .tlc-editorial__toggle-less {
  display: inline;
}

/* Rotate chevron when expanded */
.tlc-editorial__check:checked ~ .tlc-editorial__toggle svg {
  transform: rotate(180deg);
}


/* ====================== FAQ ====================== */
.tlc-faq {
  display: block;
  width: 100%;
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: var(--tlc-section-gap);
  padding: 0 40px;
  box-sizing: border-box;
}

.tlc-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* FAQ uses native <details>/<summary> — zero JS, immune to caching */
.tlc-faq__item {
  border-bottom: 1px solid var(--tlc-gray-200);
}

.tlc-faq__item:first-child {
  border-top: 1px solid var(--tlc-gray-200);
}

/* Remove native disclosure triangle */
.tlc-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: var(--tlc-font-lg);
  font-weight: 600;
  color: var(--tlc-gray-900);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
  gap: 16px;
  list-style: none;
}

.tlc-faq__question::-webkit-details-marker {
  display: none;
}

.tlc-faq__question::marker {
  display: none;
  content: '';
}

.tlc-faq__question:hover {
  color: var(--tlc-gray-700);
}

.tlc-faq__chevron {
  flex-shrink: 0;
  transition: transform 0.3s var(--tlc-ease-out);
  color: var(--tlc-gray-400);
}

/* Rotate chevron when details is open */
.tlc-faq__item[open] .tlc-faq__chevron {
  transform: rotate(180deg);
  color: var(--tlc-gray-900);
}

.tlc-faq__answer-inner {
  padding: 0 0 24px;
  font-size: var(--tlc-font-base);
  line-height: 1.8;
  color: var(--tlc-gray-700);
}

.tlc-faq__answer-inner p {
  margin: 0 0 12px;
}

.tlc-faq__answer-inner p:last-child {
  margin-bottom: 0;
}


/* ====================== AUTHORITY / ABOUT ====================== */
.tlc-authority {
  max-width: 1000px;
  margin: 0 auto var(--tlc-section-gap);
  padding: 0 20px;
}

.tlc-authority__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px;
  background: var(--tlc-bg-authority, #fdf8f4);
  border: 1px solid var(--tlc-border-authority, #f0e4d8);
  border-radius: var(--tlc-radius-xl);
}

.tlc-authority__photo {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--tlc-orange);
  box-shadow: 0 4px 16px rgba(255, 87, 51, 0.15);
}

.tlc-authority__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tlc-authority__name {
  font-size: var(--tlc-font-xl);
  font-weight: 800;
  color: var(--tlc-gray-900);
  margin: 0 0 4px;
}

.tlc-authority__role {
  display: inline-block;
  font-size: var(--tlc-font-sm);
  font-weight: 600;
  color: var(--tlc-orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.tlc-authority__bio {
  font-size: var(--tlc-font-base);
  line-height: 1.8;
  color: var(--tlc-gray-700);
}

.tlc-authority__bio p {
  margin: 0 0 12px;
}

.tlc-authority__bio p:last-child {
  margin-bottom: 0;
}

.tlc-authority__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--tlc-font-sm);
  font-weight: 700;
  color: var(--tlc-orange);
  text-decoration: none;
  margin-top: 12px;
  transition: gap 0.3s var(--tlc-ease-out);
}

.tlc-authority__link:hover {
  gap: 12px;
}


/* ====================== REDUCED MOTION ====================== */
@media (prefers-reduced-motion: reduce) {
  .tlc-reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .tlc-hero__scroll-hint { animation: none !important; }
  .tlc-hero__cta::before { transition: none !important; }
  .tlc-editorial__content { transition: none !important; }
}


/* ====================== RESPONSIVE ====================== */

/* Tablet */
@media (max-width: 1024px) {
  .tlc-showcase__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tlc-featured__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tlc-tools__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tlc-brands__grid {
    gap: 12px 16px;
  }

  .tlc-brands__item {
    width: calc((100% - 48px) / 4);
  }
}

/* Mobile */
@media (max-width: 767px) {

  /* --- Marges globales harmonisees : 4px G/D du trust vers le bas --- */
  .tlc-brands,
  .tlc-catgrid,
  .tlc-featured,
  .tlc-showcase,
  .tlc-tools,
  .tlc-youtube,
  .tlc-editorial,
  .tlc-faq,
  .tlc-authority {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  /* Section gap reduit sur mobile */
  .tlc-brands,
  .tlc-catgrid,
  .tlc-featured,
  .tlc-showcase,
  .tlc-tools,
  .tlc-youtube,
  .tlc-editorial,
  .tlc-faq,
  .tlc-authority,
  .tlc-newsletter {
    margin-bottom: 48px;
  }

  /* --- Titres de section mobile --- */
  .tlc-section-title {
    font-size: var(--tlc-font-xl);
    margin-bottom: 20px;
    padding: 0 4px;
  }

  /* Promo bar mobile: deplace dans components.css */

  /* --- Hero --- */
  .tlc-hero {
    min-height: 85vh;
  }

  .tlc-hero__inner {
    padding: 0 20px;
    padding-top: var(--tlc-header-h);
  }

  .tlc-hero__title {
    font-size: var(--tlc-font-2xl);
    letter-spacing: -0.02em;
  }

  .tlc-hero__subtitle {
    font-size: var(--tlc-font-lg);
  }

  .tlc-hero__badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  .tlc-hero__scroll-hint {
    display: none;
  }

  .tlc-hero__ctas {
    flex-direction: column;
    align-items: stretch;
    padding: 0 12px;
  }

  .tlc-hero__cta {
    justify-content: center;
    padding: 14px 24px;
    font-size: var(--tlc-font-base);
  }

  /* --- Trust --- */
  .tlc-trust {
    padding: 40px 8px;
  }

  .tlc-trust__inner {
    justify-content: center;
    gap: 0;
  }

  .tlc-trust__item {
    flex: 1 1 30%;
    min-width: 100px;
    padding: 20px 12px;
  }

  .tlc-trust__item:nth-child(even)::after {
    display: none;
  }

  .tlc-trust__item:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .tlc-trust__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }

  .tlc-trust__number {
    font-size: var(--tlc-font-xl);
  }

  .tlc-trust--cards {
    padding: 0 8px;
  }

  .tlc-trust--cards .tlc-trust__inner {
    gap: 10px;
  }

  .tlc-trust--cards .tlc-trust__item {
    padding: 20px 12px;
  }

  /* --- Brands --- */
  .tlc-brands__grid {
    gap: 8px 10px;
  }

  .tlc-brands__item {
    width: calc((100% - 20px) / 3);
  }

  .tlc-brands__item {
    padding: 8px 4px;
  }

  .tlc-brands__item img {
    max-height: 60px;
    max-width: 100px;
  }

  .tlc-brands__name {
    font-size: 10px;
  }

  .tlc-brands__link {
    display: none;
  }

  /* --- Categories : 2 colonnes ajustées sur mobile --- */
  .tlc-catgrid {
    padding: 0 12px;
  }

  .tlc-catgrid__grid,
  .tlc-catgrid__grid--bento {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 8px;
  }

  /* Reset bento spans on mobile */
  .tlc-catgrid__grid--bento > .tlc-catgrid__card:nth-child(1),
  .tlc-catgrid__grid--bento > .tlc-catgrid__card:nth-child(2),
  .tlc-catgrid__grid--bento > .tlc-catgrid__card:nth-child(3) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .tlc-catgrid__card {
    aspect-ratio: 3 / 4;
    border-radius: var(--tlc-radius);
  }

  .tlc-catgrid__img {
    width: 100%;
    height: 100%;
  }

  .tlc-catgrid__overlay {
    padding: 10px 12px;
    background: linear-gradient(180deg,
      transparent 0%,
      transparent 30%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }

  .tlc-catgrid__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
  }

  .tlc-catgrid__count {
    font-size: 11px;
    margin-top: 2px;
  }

  .tlc-catgrid__arrow {
    bottom: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
  }

  /* --- Featured : scroll horizontal --- */
  .tlc-featured__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
  }

  .tlc-featured__grid::-webkit-scrollbar {
    display: none;
  }

  .tlc-featured__card {
    flex-direction: column;
    min-width: 280px;
    max-width: 310px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .tlc-featured__thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
  }

  .tlc-featured__thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .tlc-featured__thumb-overlay {
    display: none;
  }

  .tlc-featured__cat {
    font-size: 11px;
    padding: 3px 8px;
  }

  .tlc-featured__body {
    padding: 12px 14px 16px;
  }

  .tlc-featured__meta {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .tlc-featured__title {
    font-size: var(--tlc-font-base);
    -webkit-line-clamp: 2;
  }

  .tlc-featured__link {
    font-size: 13px;
  }

  .tlc-featured__excerpt {
    display: none;
  }

  .tlc-featured__footer {
    text-align: center;
    margin-top: 12px;
  }

  .tlc-featured__cta {
    padding: 12px 24px;
    font-size: var(--tlc-font-sm);
  }

  /* --- Showcase --- */
  .tlc-showcase__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tlc-showcase__filters {
    gap: 6px;
    margin-bottom: 20px;
  }

  .tlc-showcase__filter {
    padding: 8px 12px;
    font-size: 12px;
  }

  .tlc-showcase__card-body {
    padding: 8px 10px 10px;
  }

  .tlc-showcase__subtitle {
    margin-top: -16px;
  }

  /* --- Newsletter --- */
  .tlc-newsletter {
    padding: 40px 20px;
  }

  .tlc-newsletter__title {
    font-size: var(--tlc-font-xl);
  }

  .tlc-newsletter__subtitle {
    font-size: var(--tlc-font-sm);
  }

  .tlc-newsletter__form {
    flex-direction: column;
    border-radius: var(--tlc-radius);
  }

  .tlc-newsletter__input {
    border-radius: var(--tlc-radius) var(--tlc-radius) 0 0;
    text-align: center;
  }

  .tlc-newsletter__btn {
    justify-content: center;
    border-radius: 0 0 var(--tlc-radius) var(--tlc-radius);
    padding: 14px 24px;
  }

  /* --- YouTube --- */
  .tlc-youtube__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tlc-youtube__sidebar {
    text-align: center;
  }

  .tlc-youtube__extras {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tlc-youtube__extra-card {
    display: block;
    width: 100%;
  }

  .tlc-youtube__extra-thumb {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .tlc-youtube__extra-label {
    padding: 10px 12px;
  }

  /* --- Tools : 2 colonnes --- */
  .tlc-tools__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tlc-tools__card {
    padding: 16px 12px 14px;
  }

  .tlc-tools__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  .tlc-tools__card-title {
    font-size: var(--tlc-font-sm);
  }

  .tlc-tools__card-desc {
    font-size: 12px;
  }

  /* --- Editorial --- */
  .tlc-editorial__content {
    max-height: 100px;
    font-size: var(--tlc-font-sm);
  }

  /* --- FAQ --- */
  .tlc-faq__question {
    font-size: var(--tlc-font-base);
    padding: 16px 0;
  }

  .tlc-faq__answer-inner {
    padding-bottom: 14px;
    font-size: var(--tlc-font-sm);
  }

  /* --- Authority --- */
  .tlc-authority__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    gap: 20px;
  }

  .tlc-authority__photo {
    width: 100px;
    height: 100px;
  }

  .tlc-authority__bio {
    font-size: var(--tlc-font-sm);
  }
}

/* Tres petit ecran : ajustements categories + tools */
@media (max-width: 420px) {
  .tlc-catgrid__grid,
  .tlc-catgrid__grid--bento {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px;
  }

  .tlc-catgrid__card {
    aspect-ratio: 3 / 4;
  }

  .tlc-catgrid__name {
    font-size: 13px;
  }

  .tlc-catgrid__overlay {
    padding: 8px 10px;
  }

  .tlc-tools__grid {
    grid-template-columns: 1fr;
  }
}
