/* ============================================
   RESPONSIVE - Cartophonie participative
   ============================================ */

/* ============================================
   BREAKPOINT 1 : Tablettes (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {

  .player-custom {
    gap: 15px;
  }

  .category-filter {
    padding-right: 15px;
    gap: 10px;
  }
}

/* ============================================
   BREAKPOINT 2 : Tablettes portrait / grands mobiles (max-width: 750px)
   ============================================ */
@media (max-width: 750px) {

  /* Logo : reste en place, taille réduite */
  .titre_carte img {
    width: 230px;
  }

  /* Burger : visible */
  .burger-btn {
    display: flex;
  }

  /* Menu haut : hauteur fixe pour contenir le burger */
  .menu_haut {
    justify-content: flex-end;
    z-index: 10;
  }

  /* Filtre catégories : menu déroulant */
  .category-filter {
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    min-width: 160px;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(22, 52, 51, 0.97);
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
    border-radius: 0 0 0 6px;
    z-index: 20;
  }

  .category-filter.open {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
    padding: 8px 0;
  }

  .category-checkbox {
    width: 100%;
    font-size: 14px;
    padding: 10px 18px;
    gap: 10px;
    border-radius: 0;
    justify-content: flex-end;
  }

  /* Player : colonne unique */
  .player-custom {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

  /* Icône play/pause réduite */
  .play-icon,
  .pause-icon {
    width: 40px;
    height: 40px;
  }

  .waveform {
    height: 25px;
  }

  /* Info panel : limiter la hauteur */
  .info-panel.open {
    max-height: 30vh;
    overflow-y: auto;
  }

  /* Footer : compact en mobile */
  .footer {
    display: flex;
    padding: 10px 14px;
    gap: 10px;
  }

  .footer-savoir-plus a {
    font-size: 1.5em;
  }

  .footer-right {
    gap: 12px;
  }

  .credit-gironde {
    display: none;
  }

  .logo-chantier img {
    height: 40px;
  }

  .credit-dev img {
    width: 44px;
  }

}

/* ============================================
   BREAKPOINT 3 : Mobiles (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {

  /* Logo encore plus petit */
  .titre_carte img {
    width: 150px;
  }

  /* Player : encore plus compact */
  .player-custom {
    padding: 12px;
  }

  .player-titre {
    font-size: 16px;
  }

  .player-description {
    font-size: 13px;
  }

  /* Icône play/pause réduite */
  .play-icon,
  .pause-icon {
    width: 30px;
    height: 30px;
  }

  /* Info panel : encore plus limité */
  .info-panel.open {
    max-height: 50vh;
    
  }
}
