@font-face {
  font-family: 'futura-light';
  src: url('fonts/FuturaCyrillicLight.ttf') format('truetype');
}
@font-face {
  font-family: 'futura-medium';
  src: url('fonts/FuturaCyrillicMedium.ttf') format('truetype');
}

/* ============================================
   VARIABLES CSS - Couleurs centralisées
   ============================================ */
:root {
  /* Couleurs principales */
  --color-primary: rgb(22, 52, 51,1);
  --color-primary-light: #7FC0C6;

  /* Couleurs d'accentuation */
  --color-accent: #ff8b09;
  --color-accent-hover: rgb(221, 155, 127);
  --color-highlight: #d8ec00;

  /* Fonds */
  --bg-dark: #163433;
  --bg-light: #ffffff;
  --bg-black: #000000;

  /* Textes */
  --text-light: #efefef;
  --text-dark: #2b2b2b;
  --text-black: #000000;
  --text-muted: #cccccc;
  --text-subtle: #a89aad;
  --text-disabled: #888888;

}

body {
  margin: 0;
  padding: 0;
  font: 200 12px/15px 'futura', 'Arial', sans-serif;
  font-weight: 200;
}


.titre_carte {
  position:absolute;
  top: 55px;
  left:15px;
  width:70%;
  z-index: 5;
  opacity: 100%;
  visibility: visible;
}



.app-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto auto;
  grid-template-areas:
    "map"
    "info-panel"
    "footer";
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.map-container {
  grid-area: map;
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  transition: all 0.3s ease;
  /* Animation pour le redimensionnement */
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.menu_haut {
  position: absolute;
  display: grid;
  grid-template-columns: 1fr 2fr;
  top: 0px;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(22, 52, 51, 0.9);
}


.titre_carte_mobile {
  justify-content: flex-start;
  display: flex;
  visibility: hidden;
  align-items: center;
  padding-left: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
  z-index: 5;
  opacity: 90%;
}

/* Sélecteur de catégories */
.category-filter {
  top: 0px;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  border-radius: 0;
  z-index: 10;
  box-sizing: border-box;
  padding-right: 30px;
}

.category-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 26px;
  font-weight: 100;
  cursor: pointer;
  padding: 6px 10px;
  transition: all 0.2s ease;
}

.category-checkbox:hover {
  background: var(--color-primary);
  color: var(--text-light);
}

/* Masquer la checkbox native */
.category-checkbox input[type="checkbox"] {
  display: none;
}

/* Texte actif */
.category-checkbox:has(input:checked) {
  background: var(--color-primary);
  color: var(--color-highlight);
}

/* Texte inactif */
.category-checkbox:has(input:not(:checked)) {
  color: var(--text-light);
}

/*///////////////////////////////////////////////////////////////*/
/* BLOC INFOS //////////////////////////////////////////////////*/
#info-panel-close {
  display: block;
  position: absolute;
  right: 5px;
  margin: 0 0 0px auto;
  background-color: transparent;
  font-size: 30px;
  color: var(--text-disabled);
  border: none;
  outline: none;
  cursor: pointer;
}

#info-panel-close:hover {
  color: var(--color-accent);
}

#info-panel-close:active {
  color: var(--color-accent-hover);
}

.info-panel {
  grid-area: info-panel;
  width: 100%;
  background-color: blue;
  /* box-shadow: 0 1px 15px var(--bg-black); */
  overflow-y: auto;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  max-height: 0;
  opacity: 0;
  padding-right: 5px;
  text-align: bottom;
}

.info-panel.open {
  max-height: 100vh;
  opacity: 1;
}


.footer {
  visibility: visible;
  grid-area: footer;
  display: grid;
  grid-template-columns: 0.2fr 0.7fr 1fr 0.2fr;
  align-items: center;
  padding: 2px 30px;
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  z-index: 10;
  flex-shrink: 0;
  color: #939292;
  font-weight: 100;
  font-size: 0.8em;
  box-shadow: 0 8px 20px var(--bg-black);
  box-sizing: border-box;
}

.footer img{
filter: grayscale(100%)
}


.footer-col:first-child {
  justify-content: flex-start;
}

.footer-col:last-child {
  justify-content: flex-end;
}

.footer-logo {
  display: block;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

/*///////////////////////////////////////////////////////////////*/
/* POPUP SURVOL ////////////////////////////////////////////////*/
.maplibregl-popup {
  animation: popupFadeIn 0.15s ease-out;
  font-family: 'futura', 'Arial', sans-serif;
  font-size: 1.2em;
  offset-anchor: inherit;
}

.maplibregl-popup-content {
  background-color: rgb(22, 52, 51, 0.8);
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 5px;
  padding-top: 5px;
  color: var(--text-light);
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip {
    align-self: center;
    border-bottom-color: rgb(22, 52, 51, 0.8);
    border-top: none
}

.maplibregl-popup-anchor-top-left .maplibregl-popup-tip {
    align-self: flex-start;
    border-bottom-color: rgb(22, 52, 51, 0.8);
    border-left: none;
    border-top: none
}

.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
    align-self: flex-end;
    border-bottom-color: rgb(22, 52, 51, 0.8);
    border-right: none;
    border-top: none
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
    align-self: center;
    border-bottom: none;
    border-top-color: rgb(22, 52, 51, 0.8)
}

.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip {
    align-self: flex-start;
    border-bottom: none;
    border-left: none;
    border-top-color: rgb(22, 52, 51, 0.8)
}

.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
    align-self: flex-end;
    border-bottom: none;
    border-right: none;
    border-top-color: rgb(22, 52, 51, 0.8)
}

.maplibregl-popup-anchor-left .maplibregl-popup-tip {
    align-self: center;
    border-left: none;
    border-right-color: rgb(22, 52, 51, 0.8)
}

.maplibregl-popup-anchor-right .maplibregl-popup-tip {
    align-self: center;
    border-left-color: rgb(22, 52, 51, 0.8);
    border-right: none
}

.maplibregl-popup.popup-fade-out {
  animation: popupFadeOut 0.2s ease-in forwards;
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popupFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.player-son {
  width: 100%;
  align-items: center;
}

.player-custom {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 25px;
  height: 100%;
  background-color: var(--bg-dark);
  /* border-radius: 6px; */
  padding: 18px;
  box-shadow: 0 2px 10px var(--bg-black);
  box-sizing: border-box;
}

/* Colonne gauche : contrôles + progression */
.player-left {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 15px;
}

/* Colonne droite : catégorie + description */
.player-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  justify-content: flex-end;
}

.player-categorie {
  font-size: 14px;
  font-weight: 600;
  padding-right: 12px;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.player-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.3;
  opacity: 0.8;
}

.player-auteur {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.3;
  opacity: 0.8;
}

.player-lien a{
  font-size: 14px;
  text-decoration: none;
  color: var(--color-primary-light);
  line-height: 1.3;
  opacity: 0.8;
}

.player-auteur {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.3;
  opacity: 0.8;
}

.controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.play-pause-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.play-icon {
  width: 50px;
  height: 50px;
}

.pause-icon {
  width: 50px;
  height: 50px;
  display: none;
}

.player-info {
  display: flex;
}

.player-titre {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 800;
  line-height: 1.3;
}

.player-soustitre {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 200;
  line-height: 1.2;
}

.time-display {
  padding-top: 5px;
  font-size: 13px;
  color: var(--text-subtle);
  font-weight: 100;
}

.waveform {
  position: relative;
  width: 100%;
  height: 30px;
  display: flex;
  margin-top: 15px;
  align-items: flex-end;
  cursor: pointer;
  box-sizing: border-box;
  background-image: url('IMG/audiowave_noir.svg');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: left center;
  overflow: hidden;
}

.progress-fill {
  background-color: var(--color-accent);
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
  -webkit-mask-image: url('IMG/audiowave_noir.svg');
  mask-image: url('IMG/audiowave_noir.svg');
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  -webkit-mask-position: left center;
  mask-position: left center;
}

#audio-player {
  display: none;
}
