/* ================================
   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: 'SunsetHeavy-Text', '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 */
}

/* ——— H2 avec lueur néon sobre ——— */
:root{
  --h2-color: #0ff;
  --h2-shadow-1: rgba(0,255,255,.55);
  --h2-shadow-2: rgba(0,255,255,.25);
}

h2{
  margin: 1rem;
  font-family: 'SunsetHeavy-Text','Segoe UI',sans-serif;
  color: var(--h2-color);
  letter-spacing: .5px;
  text-shadow:
    0 0 6px  var(--h2-shadow-1),
    0 0 14px var(--h2-shadow-2),
    0 2px 2px rgba(0,0,0,.6); /* léger drop shadow pour le relief */
}

/* ——— Cas particulier : titre dans le bandeau .card-title ———
   (le fond est déjà coloré → on allège la lueur pour la lisibilité) */
.profile-card .card-title h2{
  color:#fff;
  text-shadow:
    0 1px 0 rgba(0,0,0,.35),
    0 0 8px rgba(0,0,0,.25);
}

/* Option : version « soft » si tu veux l’utiliser ponctuellement */
.h2-soft{
  color:#eafcff;
  text-shadow:
    0 1px 0 rgba(0,0,0,.35),
    0 0 10px rgba(0,255,255,.25);
}
