/*
 * GUMA DIGITAL — P9-D4
 * En-tête compact sur téléphone.
 * Préserve la navigation et les interactions existantes.
 */

@media (max-width: 767px) {

  .guma-header .guma-header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
  }

  .guma-header .guma-brand {
    flex: 0 0 auto;
    width: clamp(5.2rem, 23vw, 7rem);
    max-width: 7rem;
    margin-right: auto;
  }

  .guma-header .guma-header-tools {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.3rem;
    margin: 0;
    min-width: 0;
  }

  .guma-header .guma-header-tools__language {
    display: flex;
    min-width: 0;
    margin: 0;
  }

  .guma-header .guma-header-tools__language .mod-languages {
    min-width: 0;
  }

  .guma-header .guma-header-tools__language .mod-languages ul {
    gap: 0;
  }

  .guma-header .guma-header-tools__language .mod-languages a,
  .guma-header .guma-header-tools__language .mod-languages span {
    min-width: 30px;
    min-height: 34px;
    padding: 4px;
    font-size: 0 !important;
  }

  .guma-header .guma-header-tools__search {
    display: none;
  }

  .guma-header .guma-header-tools__donate {
    display: none;
  }

  .guma-header .guma-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
  }

  .guma-header .guma-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
  }
}


/* ==================================================
   GUMA P9-D8B — MOBILE FINAL ADJUSTMENTS
   ================================================== */

@media (max-width: 767px) {

  /* Réafficher la recherche sans élargir l'en-tête */

  .guma-header .guma-header-tools__search {
    display: block;
    flex: 0 0 auto;
  }

  .guma-header .guma-search__toggle {
    width: 34px;
    height: 34px;
  }

  /* Accès à la page d'action dans le menu mobile */

  .guma-mobile-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: calc(100% - 2rem);
    margin: 0.5rem auto 1.25rem;
    padding: 0.75rem 1rem;
    background: #ed6d16;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
  }

  .guma-mobile-action-link:hover,
  .guma-mobile-action-link:focus-visible {
    background: #c9560b;
    color: #fff;
  }

  /* Réseaux sociaux : position plus discrète */

  .guma-floating-social {
    top: auto;
    bottom: 18px;
    gap: 4px;
  }

  .guma-floating-social__item {
    width: 36px;
    height: 36px;
  }

  .guma-floating-social__icon {
    flex-basis: 36px;
    height: 36px;
  }

  .guma-floating-social__icon svg {
    width: 17px;
    height: 17px;
  }
}

@media (min-width: 768px) {
  .guma-mobile-action-link {
    display: none;
  }
}

/* ==================================================
   GUMA_P9D9B_LOGO_FIX
   Logo mobile complet, sans découpage.
   ================================================== */

@media (max-width: 767px) {

  .guma-header .guma-brand {
    overflow: visible;
    min-height: 0;
    height: auto;
    align-items: center;
    justify-content: center;
  }

  .guma-header .guma-brand__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 64px;
    object-fit: contain;
  }

}
