/* ==========================================================
   🟧 MENU MOBILE — TRUE FIRE (≤ 980px)
========================================================== */

@media (max-width: 980px) {

  /* ==================================================
     BURGER ICON (STRUCTURE + VISUEL)
     ================================================== */
  .tf-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  .tf-burger span {
    display: block;
    width: 22px;
    height: 3px;
    background-color: #111;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
  }

  /* ==================================================
     OFFCANVAS MENU
     ================================================== */
  #tf-main-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .35s ease;
  }

  #tf-main-menu.is-open {
    transform: translateX(0);
  }

  /* ==================================================
     MOBILE MENU HEADER (NOIR)
     ================================================== */
  .tf-menu-mobile-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
    background: #000;
  }

  .tf-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
  }

  /* ==================================================
     MENU STRUCTURE — RESET
     ================================================== */
  .tf-header-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* ==================================================
     NIVEAU 1
     ================================================== */
  .tf-header-menu > ul > li {
    border-bottom: 1px solid #eee;
  }

  .tf-header-menu > ul > li > a {
    display: block;
    padding: 22px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
  }

  /* ==================================================
     SUB-MENUS — TOGGLE
     ================================================== */
  .tf-header-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 48px;
  }

  .tf-header-menu .menu-item-has-children > a::after {
    content: "▾";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: .6;
  }

  /* Sous-menus fermés par défaut */
  .tf-header-menu ul ul {
    display: none;
    margin: 8px 0 12px;
    padding-left: 24px;
    border-left: 2px solid #e0e0e0;
  }

  /* Sous-menus ouverts (piloté par JS) */
  .tf-header-menu li.is-open > ul {
    display: block;
  }

  /* ==================================================
     NIVEAU 2
     ================================================== */
  .tf-header-menu ul ul > li > a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
  }

  /* ==================================================
     NIVEAU 3
     ================================================== */
  .tf-header-menu ul ul ul {
    margin-top: 6px;
    padding-left: 20px;
    border-left: 2px solid #f0f0f0;
  }

  .tf-header-menu ul ul ul > li > a {
    padding: 10px 0;
    font-size: 15px;
    font-weight: 400;
    color: #444;
  }

  /* ==================================================
   📱 MENU MOBILE — HEADER VISUEL (ANTI-DÉFORMATION)
================================================== */

@media (max-width: 980px) {

  .tf-menu-mobile-header{
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #000; /* fallback */
  }

  /* Background SVG */
  .tf-menu-mobile-bg{
    position: absolute;
    inset: 0;
    z-index: 0;

    background: url("https://true-fire.com/wp-content/uploads/2026/01/svg5.svg") no-repeat;
    background-position: center bottom;

    /* ✅ anti-déformation */
    background-size: 100% auto;
  }

  /* Bouton fermer */
  .tf-menu-close{
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;

    background: none;
    border: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
}
@media (min-width: 481px) and (max-width: 980px) {
  .tf-menu-mobile-header { height: 250px; }
  .tf-menu-mobile-bg { background-size: 100% auto; } /* ou: contain */
}
