/* ================================
   1. DECLARATIONS DE POLICES
   ================================ */

@font-face {
  font-family: 'HibiscusSans';
  src: url('../fonts/HibiscusSans-Regular.otf') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Qilka';
  src: url('../fonts/Qilka-Bold.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Moodcake';
  src: url('../fonts/Moodcake.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Meloncamp';
  src: url('../fonts/Melon\ Camp.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LTKaraoke-Regular';
  src: url('../fonts/LTKaraoke-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'LTKaraoke-Bold';
  src: url('../fonts/LTKaraoke-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SunsetHeavy';
  src: url('../fonts/SunsetHeavy-Narrow.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SunsetHeavy-Text';
  src: url('../fonts/SunsetHeavy-Text.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100vw;
  overflow-x: auto;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Body devient un flex-container colonne */
body {
  display: flex;
  flex-direction: column;
  margin: 0;              /* s’assure qu’il n’y a pas de marge parasite */
  font-family: 'LTKaraoke-Regular', 'Segoe UI', 'Arial', sans-serif;
  background-color: #121212;
  background-image: url("../images/background1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #f0f0f0;
  line-height: 1.6;
  overflow-y: scroll; /* permet le scroll */
  scrollbar-width: none;     /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer/Edge */
}

/* Liens par défaut */
a {
  color: #0ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #4dcfff;
  text-decoration: none;
}

h1 {
  font-family: 'SunsetHeavy-Text', 'Segoe UI', 'Arial', sans-serif;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color:#0ff;
}

h2 {
  margin: 1rem;
}

h3 {
  color: #0ff;
}

p {
  margin: 1rem;
  font-size: 1.2rem;
  text-align: center;
}

/* Pour Chrome, Safari et Edge */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;              /* fond sombre */
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: #0ff;           /* bleu néon */
  border-radius: 6px;
  border: 3px solid #1a1a1a;        /* pour créer un “padding” et fond sombre autour */
  box-shadow: 0 0 8px rgba(0,255,255,0.6);
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #4dcfff;        /* éclaircissement au hover */
  box-shadow: 0 0 12px rgba(0,255,255,0.8);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Pour Firefox */
* {
  scrollbar-width: thin;                    /* “auto”, “thin” ou “none” */
  scrollbar-color: #0ff  #1a1a1a;           /* thumb track */
}

body::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

:root {
  --chrono-overlay-bg: rgba(10,10,10,0.7);
  --control-btn-size: 3rem;
  --control-btn-bg: rgba(255,255,255,0.1);
  --control-btn-hover-bg: rgba(255,255,255,0.2);
  --control-btn-color: #0ff;
}

a.play-tile,
a.play-tile:hover,
a.play-tile:focus {
  text-decoration: none;
}

/* ================================
   Custom Scrollbar
   ================================ */

/* Pour Chrome, Safari et Edge */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;              /* fond sombre */
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: #0ff;           /* bleu néon */
  border-radius: 6px;
  border: 3px solid #1a1a1a;        /* pour créer un “padding” et fond sombre autour */
  box-shadow: 0 0 8px rgba(0,255,255,0.6);
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #4dcfff;        /* éclaircissement au hover */
  box-shadow: 0 0 12px rgba(0,255,255,0.8);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Pour Firefox */
* {
  scrollbar-width: thin;                    /* “auto”, “thin” ou “none” */
  scrollbar-color: #0ff  #1a1a1a;           /* thumb track */
}