
/*
 * ==========================================================
 * DESIGN (GeneratePress) - Minimaliste cercle + animation X
 * ==========================================================
 */
@media (max-width: 1023px) {
  [class*="-burger"]:not([class*="-bars"]) {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    margin: 0;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: #1A1A1A;
    transition: background 0.2s ease, color 0.2s ease;
  }
  [class*="-burger"]:not([class*="-bars"]):hover {
    background: #1A1A1A;
    color: #FFFFFF;
  }
  [class*="-burger-bars"] {
    position: relative;
    gap: 0;
    width: 20px;
    height: 14px;
  }
  [class*="-burger-bars"] span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: top 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
  }
  [class*="-burger-bars"] span:nth-child(1) { top: 0; }
  [class*="-burger-bars"] span:nth-child(2) { top: 6px; }
  [class*="-burger-bars"] span:nth-child(3) { top: 12px; }
  /* Animation X quand drawer ouvert */
  [class*="-burger"][aria-expanded="true"] [class*="-burger-bars"] span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  [class*="-burger"][aria-expanded="true"] [class*="-burger-bars"] span:nth-child(2) { opacity: 0; }
  [class*="-burger"][aria-expanded="true"] [class*="-burger-bars"] span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  /* Drawer : slide from TOP, fond sombre, items horizontaux/centres */
  [class*="-nav-mobile"].is-open,
  [id*="-nav-mobile"].is-open {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 60vh;
    background: #1A1A1A;
    color: #FFFFFF;
    padding: 5rem 2rem 2.5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    align-items: stretch;
  }
  [class*="-nav-mobile"].is-open ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  [class*="-nav-mobile"].is-open li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
  }
  [class*="-nav-mobile"].is-open a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    padding: 1rem 0.25rem;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
  }
  [class*="-nav-mobile"].is-open a:hover { opacity: 0.7; }
  [class*="-drawer-close"] {
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 1.7rem;
    line-height: 1;
  }
  [class*="-drawer-overlay"].is-open { background: rgba(0, 0, 0, 0.35); }
}
