
  :root {
    --rf-red: #762B84;
    --rf-dark: #0e0f11;
    --rf-gray: #1b1c1f;
    --rf-contrast: #ffffff;
    --accent: #2196f3;
    --max-width: 1200px;
    --map-height-desktop: 78vh;
    --map-height-mobile: 55vh;
    --font-regular: 'Outfit', sans-serif;
    --font-semibold: 'Outfit', sans-serif;
  }

  html, body {
    height: 100%;
    margin: 0;
    font-family: var(--font-regular);
    background: var(--rf-dark);
    color: var(--rf-contrast);
  }

  .justify {
    text-align: justify;
  }
@media (max-width: 700px) {
  .justify {
    text-align: left;
  }
}

a {
  color: inherit;
}
.lien {
  color: inherit;
  text-decoration: underline;
}


  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }



  h1 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--rf-contrast);
  }

  p.lead {
    margin: 6px 0 18px;
    color: #ccc;
    color: #C2BCD7;
  }
      p {
      padding-top: 0.5em;
      padding-bottom: 0.5em;
      color: #C2BCD7;
    }
    .subtitle {
      color: white;
    }








/*Main header*/
:root {
  --brand-bg: #151221;
  --brand-text: #D3CDE4;
  --brand-accent: #762B84;
}

/* HEADER GLOBAL */
.site-header {
  background: var(--brand-bg);
  color: var(--brand-text);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: system-ui, sans-serif;
  position: relative;
  z-index: 1000;
}

/* LOGO */
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Image logo spécifique */
.site-header .brand-mark img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: contain;
}

/* NAVIGATION */
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--brand-accent);
  transition: width 0.25s ease;
}

nav a:hover {
  color: white;
}

nav a:hover::after {
  width: 100%;
}

/* MENU BURGER */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--brand-text);
  transition: 0.3s;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--brand-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
    gap: 16px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    width: 100vw;
  }
  nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .menu-toggle {
    display: flex;
  }
}

@media (min-width: 768px) {
  .no-mobile {
    display: none;
  }
}






  .hero-overlay { background: linear-gradient(180deg, rgba(15,23,42,0.45), rgba(15,23,42,0.65)); }






#latestClips .clip-card {
position: relative;
overflow: hidden;
background-image: url('../img/3.webp');
background-size: cover;
background-position: center;
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: white;
}
#latestClips .clip-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.65));
    z-index: 0;
  }
#latestClips .clip-card > * {
    position: relative;
    z-index: 1;
  }







.title {
  font-size:1.3rem;
}



  /* Section en grille responsive */
.tag-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

/* Carte avec ratio 9:16 */
.tag {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}



/* Contenu */
.tag-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}

.tag-title {
  font-size: 1.25rem;
  margin: 0;
}

.tag-description {
  font-size: 0.95rem;
  margin-top: 8px;
  line-height: 1.4;
}

.tag a, .cta {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.tag a:hover, .cta:hover {
  background: rgba(255,255,255,0.35);
}



/* --- Responsive --- */
@media (max-width: 768px) {
  .tag-content {
    bottom: 15px;
    left: 15px;
    right: 15px;
  }

  .tag-title {
    font-size: 1.1rem;
  }

  .tag-description {
    font-size: 0.85rem;
  }

  .tag:hover {
    transform: none; /* pas de zoom sur mobile */
  }
}

























.layout {
      display: grid;
      grid-template-columns: 1fr 360px;
      gap: 18px;
    }

    #map {
      width: 100%;
      height: var(--map-height-desktop);
      border-radius: 12px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.4);
      overflow: hidden;
    }

    aside {
      background: rgba(30, 31, 35, 0.9);
      padding: 14px;
      border-radius: 12px;
      height: var(--map-height-desktop);
      overflow: auto;
      backdrop-filter: blur(8px);
      box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    }

    .search {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
    }

    .search input {
      flex: 1;
      padding: 10px;
      border-radius: 8px;
      border: 1px solid #444;
      background: #1e1f23;
      color: var(--rf-contrast);
    }

    .search button {
      background: var(--rf-red);
      color: white;
      border: none;
      padding: 10px 12px;
      border-radius: 8px;
      transition: background 0.2s;
    }
    .search button:hover {
      background: #ff333f;
    }

    .clip {
      display: flex;
      flex-direction: column;
      gap: 10px;

    }

    .clip-card {
      border-radius: 8px;
      padding: 10px;
      border: 1px solid #333;
      background: linear-gradient(180deg, #1b1c1f, #141517);
      color: var(--rf-contrast);
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .clip-card:hover {
      box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    }

    .clip-title {
      font-weight: 700;
      color: white;
    }

    .clip-meta {
      font-size: 0.85rem;
      color: #aaa;
    }

    .clip-controls {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
    }

    .btn {
      border: none;

      color: white;
      cursor: pointer;
      transition: background 0.2s;
    }
    .btn:hover {
      text-decoration: underline;
    }



/* spinner pour boutons de lecture */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 64px;
}

/* élément loader injecté */
.btn .loader {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  border-top-color: white;
  animation: spin 0.85s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* état 'loading' (optionnel : atténuer texte) */
.btn.loading {
  pointer-events: none; /* évite double clics */
  opacity: 0.95;
}

/* si tu veux cacher le texte durant le chargement, décommente :
.btn.loading .btn-text { opacity: 0.0; }
*/

@keyframes spin {
  to { transform: rotate(360deg); }
}





    .btn-secondary {
      background: transparent;
      border: 1px solid #555;
      color: var(--rf-contrast);
      transition: border 0.2s, color 0.2s;
    }
    .btn-secondary:hover {
      border-color: var(--rf-red);
      color: var(--rf-red);
    }



      /* Personnalisation de la barre de défilement */
  aside::-webkit-scrollbar {
    width: 12px; /* Largeur de la barre de défilement verticale */
    height: 12px; /* Hauteur de la barre de défilement horizontale */
  }

  aside::-webkit-scrollbar-thumb {
    background-color: #555; /* Couleur de la partie glissante (le "thumb") */
    border-radius: 6px; /* Bord arrondi pour le "thumb" */
  }

  aside::-webkit-scrollbar-track {
    background-color: #333; /* Couleur de la piste de défilement */
    border-radius: 6px; /* Bord arrondi pour la piste */
  }

  /* Optionnel : quand la souris est sur la barre de défilement */
  aside::-webkit-scrollbar-thumb:hover {
    background-color: #888; /* Change la couleur du "thumb" au survol */
  }

    @media (max-width:900px) {
      .layout { grid-template-columns: 1fr; }
      /*aside { height: auto; order: 2; }*/
      #map { height: var(--map-height-mobile); }
      .mobile-player { display: flex; }
    }

    .leaflet-control-container .leaflet-top.leaflet-left {
      top: 0px;
    }




        .mobile-player {
      /*display: none;*/
      position: fixed;
      left: 12px;
      right: 12px;
      bottom: 12px;
      background: rgba(30,31,35,0.95);
      border-radius: 12px;
      padding: 10px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.6);
      align-items: center;
      gap: 12px;
      backdrop-filter: blur(6px);
    }
    .mobile-player { display: flex; }

    .mobile-player .info {
      flex: 1;
      color: var(--rf-contrast);
    }




/* ---- Loader global (déjà présent) ---- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loader pour les boutons (existant) */
.btn .loader {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  border-top-color: white;
  animation: spin 0.85s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* Petit loader pour le titre mobile */
#mp-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* loader plus petit, placé à côté du titre */
.mp-loader-small {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.14);
  border-top-color: white;
  animation: spin 0.85s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0px;
}

/* état aria-busy visuel (optionnel) */
#mp-title[aria-busy="true"] { opacity: 0.95; }
