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

@font-face {
  font-family: "PiecesofEight";
  src: url("../fonts/PiecesofEight.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root{
  --bg: #0f0f10;
  --fg: #f2f2f2;
  --accent: #ffffff22;
  --sidebar-w: 56px;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
}

body{
  font-family: AnthropePersonalUseOnly-Regular, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}

/* Bandeau vertical gauche, plein hauteur, texte à 90° */
/* Bandeau vertical gauche au-dessus de l'image */
.left-vertical {
  position: fixed;
  top: 60px; 
  left: 40px;
  width: 100px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);

  font-family: "AnthropePersonalUseOnly-Regular", sans-serif;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-size: 75px; 
  color: #ffffff;
  text-decoration: none; /* supprime le soulignement si c'est un lien */
  z-index: 10;           /* au-dessus de l'image */
  cursor: pointer;
 
  /* Taille de police maximum qui respecte la hauteur du conteneur */
  font-size: clamp(20px, 10vh, 220px); /* minimum 20px, maximum 220px, idéal responsive */

  /* Dégradé cuivré sur le texte */
  background: linear-gradient(to right, #b87333, #cd7f32, #804a00, #cd7f32, #b87333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bandeau horizontal  */
.top-float  {
  position: fixed;
  top: 20px;
  left: 20px;        
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "AnthropePersonalUseOnly-Regular", sans-serif;
  font-weight: 200;
  line-height: 1;
  font-size: 150%; 
  text-align: center;

  /* Texte cuivré */
  background: linear-gradient(to bottom, #b87333, #cd7f32, #804a00, #cd7f32, #b87333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  z-index: 20; /* au-dessus de l'image */
}

/* Zone centrale pour l'image */
.stage{
  height: 100vh;
  padding-left: calc(var(--sidebar-w) + 16px);
  display: grid;
  place-items: center;
}

/* Image plein écran, centrée, proportions conservées */
#randomImage {
  position: fixed;      /* reste en arrière-plan */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* garde les proportions */
  object-position: center;
  z-index: 0;            /* derrière le texte */
  display: block;
}