/* header-mobile.css */

/* Variable couleur */
:root { --gold: #D4AF37; }

@media (max-width: 800px) {

  /* 0) Forcer la .container du header en colonne et centré */
  header .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    width: 100%;
  }

  /* 1) Header en pile */
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.2rem 0;
    gap: 0.5rem;
    background: #fff;
    width: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    z-index: 100;
  }

  /* 2) Barre “livraison” */
  .header-top {
    order: 1;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    background: #faf3e3;
    color: var(--gold);
    border-bottom: 1px solid #f5e7cb;
  }

  /* 3) Logo */
  .brand-logo {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
  }
  .brand-logo img { height: 36px; width: 36px; }
  .brand-logo span {
    font-size: 1.4rem !important;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 1px 1px 6px #fff5cc;
  }

  /* 4) Recherche */
  .search-form {
    order: 3;
    width: 90%;
    max-width: 340px;
    margin: 0;
  }

  /* 5) Nav */
  nav {
    order: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
  }
  nav a { font-size: 0.9rem; padding: 0.3rem 0.6rem; }

  /* 6) Déconnexion */
  .logout-link {
    order: 5;
    font-size: 0.85rem;
    margin: 0.3rem 0 0.5rem;
    color: #242424;
    text-decoration: none;
  }
  .logout-link:hover { color: var(--gold); }
}
