/* css/mobile-bottom-nav-wave.css — Twin's Hair — Notch Bottom Nav Mobile */
/* v20260519-notch */

/* ── Desktop : masque totalement ─────────────────────────────────────────── */
@media (min-width: 769px) {
  .tw-wave-nav {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE UNIQUEMENT (≤ 768px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden !important;
    padding-bottom: 100px !important;
  }

  /* ──────────────────────────────────────────────────────────────────────────
     1. LA BARRE PRINCIPALE
     Flottante, coins très arrondis, fond sombre, bordure or subtile
     ────────────────────────────────────────────────────────────────────────── */
  .tw-wave-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 480px;
    height: 64px;
    background: #1a1a1a;
    border-radius: 32px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 9997;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: visible; /* obligatoire pour que l'icône active dépasse */
  }

  .tw-wave-nav,
  .tw-wave-nav * {
    box-sizing: border-box;
  }

  /* Suppression des décorations sur les liens */
  .tw-wave-nav a,
  .tw-wave-nav a:visited,
  .tw-wave-nav a:hover,
  .tw-wave-nav a:focus,
  .tw-wave-nav a:active {
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  /* L'ancien élément notch SVG est remplacé par ::before — on le cache */
  .tw-wave-notch {
    display: none !important;
  }

  /* ──────────────────────────────────────────────────────────────────────────
     2. CHAQUE ITEM DE NAV (état inactif)
     ────────────────────────────────────────────────────────────────────────── */
  .tw-wave-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    position: relative;
    cursor: pointer;
    gap: 2px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.28s ease, transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .tw-wave-item,
  .tw-wave-item:visited,
  .tw-wave-item:hover,
  .tw-wave-item:focus,
  .tw-wave-item:active {
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.4);
  }

  /* Icône inactive : petite, couleur atténuée */
  .tw-wave-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    width: 22px;
    height: 22px;
    transition:
      width    0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
      height   0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
      color     0.28s ease,
      background 0.28s ease,
      border    0.28s ease,
      box-shadow 0.28s ease,
      border-radius 0.28s ease;
  }

  .tw-wave-icon svg,
  .tw-wave-icon i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    display: block;
    color: inherit;
    transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.28s ease;
  }

  /* Label : caché par défaut, visible seulement sous l'onglet actif */
  .tw-wave-label {
    font-size: 9px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    opacity: 0;
    transition:
      opacity   0.28s ease,
      color     0.28s ease,
      transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
      text-shadow 0.28s ease;
  }

  /* ──────────────────────────────────────────────────────────────────────────
     3. L'ITEM ACTIF — EFFET NOTCH
     L'item remonte au-dessus de la barre via margin-top négatif
     ────────────────────────────────────────────────────────────────────────── */
  .tw-wave-item.active {
    position: relative;
    margin-top: -28px; /* remonte l'item au-dessus du bord supérieur de la barre */
    z-index: 3;
    color: #D4AF37;
  }

  .tw-wave-item.active,
  .tw-wave-item.active:visited,
  .tw-wave-item.active:hover,
  .tw-wave-item.active:focus,
  .tw-wave-item.active:active {
    text-decoration: none !important;
    color: #D4AF37;
  }

  /* Cercle doré — le "bubble" de l'icône active */
  .tw-wave-item.active .tw-wave-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #D4AF37, #b8960f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
    border: 3px solid #1a1a1a;
    color: #1a1a1a;
  }

  .tw-wave-item.active .tw-wave-icon svg,
  .tw-wave-item.active .tw-wave-icon i {
    color: #1a1a1a;
    width: 22px;
    height: 22px;
    font-size: 22px;
    transform: scale(1.08);
  }

  /* Label visible sous l'onglet actif */
  .tw-wave-item.active .tw-wave-label {
    opacity: 1;
    color: #D4AF37;
    margin-top: 4px;
    text-shadow:
      0 0 10px rgba(212, 175, 55, 0.38),
      0 1px 2px rgba(0, 0, 0, 0.72);
  }

  /* ──────────────────────────────────────────────────────────────────────────
     4. ENCOCHE COURBÉE SOUS L'ICÔNE ACTIVE (pseudo-element ::before)
     Crée la découpe visuelle dans la barre sous le cercle doré
     ────────────────────────────────────────────────────────────────────────── */
  .tw-wave-item.active::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 0 0 30px 30px;
    pointer-events: none;
    z-index: -1;
  }

  /* ──────────────────────────────────────────────────────────────────────────
     5. ÉLÉVATION DU CHAT AU-DESSUS DE LA BARRE
     ────────────────────────────────────────────────────────────────────────── */
  .chat-widget {
    bottom: 100px !important;
    z-index: 9998 !important;
  }

  #chat-frame-container {
    bottom: 160px !important;
    z-index: 9998 !important;
  }

}
/* ── Fin @media (max-width: 768px) ──────────────────────────────────────── */
