/* -----------------------
   FONT-FACE DECLARATIONS
------------------------ */

@font-face {
  font-family: 'Terminal';
  src: url('fonts/Terminal-Grotesque.woff2') format('woff2'),
       url('fonts/Terminal-Grotesque.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mess';
  src: url('fonts/Mess-Light.woff2') format('woff2'),
       url('fonts/Mess-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'pic nic';
  src: url('fonts/PicNic-Regular.woff2') format('woff2'),
       url('fonts/PicNic-Regular.woff') format('woff');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Terminal Open';
  src: url('fonts/TerminalGrotesque-Open.woff2') format('woff2'),
       url('fonts/TerminalGrotesque-Open.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Base';
  src: url('fonts/bianzhidai-Base.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'cube';
  src: url('fonts/bianzhidai_noBG-Cloud.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Messier';
  src: url('fonts/bianzhidai-Messier.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Messy';
  src: url('fonts/bianzhidai-Messy.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avara Black';
  src: url('fonts/Avara-Black.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* -----------------------
   THEMES PAR MOMENT DE LA JOURNÉE
------------------------ */

/* 🌅 MORNING */
body.morning {
  background-color: #a5b1b2;
  color: #000000;
}
body.morning a { color: #000000; }
body.morning a:hover { color: #00ff77; }
body.morning a.Pseudo { color: #000000; }
body.morning a.Pseudo:hover { color: #00ff77; }
body.morning h1.mess { color: #00ff77; }
body.morning h1.terminal { color: #020202; }
body.morning h2 { color: #00ff77; background-color: #000000; }
body.morning h2:hover { background-color: #00ff77; }
body.morning h3 { color: #fc3f54; }
body.morning h3:hover { color: black; }
body.morning #clock { color: #fc3f54; }
body.morning img:hover { background-color: chartreuse; }
body.morning p:hover { color: aliceblue; background-color: black;}
body.morning .ip-text { color: #000000; }

/* ☀️ AFTERNOON */
body.afternoon {
  background-color: #ffffff;
  color: #222;
}
body.afternoon a { color: #000000; }
body.afternoon a:hover { color: hotpink; }
body.afternoon a.Pseudo { color: #000000; }
body.afternoon a.Pseudo:hover { color: hotpink; }
body.afternoon h1.mess { color: #ff0b00; }
body.afternoon h1.terminal { color: #ffb0b0; }
body.afternoon h2 { color: black; background-color: chartreuse; }
body.afternoon h2:hover { background-color: aqua; }
body.afternoon h3 { color: hotpink; }
body.afternoon h3:hover { color: black; }
body.afternoon #clock { color: hotpink; }
body.afternoon img:hover { background-color: hotpink; }
body.afternoon p:hover { color: aliceblue; background-color: black;}
body.afternoon .ip-text { color: #000000; }

/* 🌇 EVENING */
body.evening {
  background-color: #1904ff;
  color: #ffffff;
}
body.evening a { color: #ffffff; }
body.evening a:hover { color: #ff0000; }
body.evening a.Pseudo { color: #ffffff; }
body.evening a.Pseudo:hover { color: #ff0000; }
body.evening h1.mess { color: #000000; }
body.evening h1.terminal { color: chartreuse; }
body.evening h2 { color: black; background-color: #ff0000; }
body.evening h2:hover { background-color: chartreuse; }
body.evening h3 { color: chartreuse; }
body.evening h3:hover { color: black; }
body.evening #clock { color: chartreuse; }
body.evening img:hover { background-color: chartreuse; }
body.evening p:hover { color: aliceblue; background-color: black;}
body.evening .ip-text { color: #000000; }

/* 🌙 NIGHT */
body.night {
  background-color: #000000;
  color: #ffffff;
}
body.night a { color: #ffffff; }
body.night a:hover { color: #09ff00; }
body.night a.Pseudo { color: #ffffff; }
body.night a.Pseudo:hover { color: #09ff00; }
body.night h1.mess { color: #ff0000; }
body.night h1.terminal { color: #ffffff; }
body.night h2 { color: white; background-color: #0013ff; }
body.night h2:hover { background-color: #ff0000; }
body.night h3 { color: #ff00ea; }
body.night h3:hover { color: black; }
body.night #clock { color: #ff00ea; }
body.night img:hover { background-color: chartreuse; }
body.night p:hover { color: aliceblue; background-color: black;}
body.night .ip-text { color: #000000; }
/* -----------------------
   BASE & STRUCTURE COMMUNE
------------------------ */

ul { list-style: none; padding: 0; }
a {
  font-family: 'Terminal';
  text-decoration: none;
  font-size: 1em;
}

.container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem;
  margin-top: 0;
}

img.MIRROIR { height: 128px; }

p {
  font-family: 'Terminal';
  font-size: 128px;
  margin: 0;
}
p.heure { font-size: 200px; }
.semaine {
  font-family: 'Terminal';
  font-size: 1em;
  margin: 0;
}
p:hover {
  margin: 0;
}

#calendrier{
  font-size: 3em;
}

#clock {
  font-family: 'cube';
  font-size: 2em;
}

.ip-text {
  font-size: 1em;
  font-family: 'terminal';
  font-weight: bold;
}

.bordereau {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;

  border-top: 4px solid #00ff77;
  border-bottom: 4px solid #00ff77;
  padding: 10px 0;
  margin-top: 30px;
  position: relative;
}

.scroll-text {
  display: inline-block;
  font-family: 'Mess';
  font-size: 5em;
  color: #00ff77;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-150%);
  }
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 30px); /* 7 colonnes pour les jours de la semaine */
  grid-gap: 10px;
  margin: 0px 0;
}

.calendar-day {
  width: 35px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Terminal';
  font-size: 1.2em;
  border: 1px solid #ccc;
  background-color: white;
  color: black;
}

.calendar-day.passed {
  background-color: red;
  color: white;
}


/* -----------------------
   TYPOGRAPHIE STRUCTURE
------------------------ */

h1.mess {
  font-family: 'Mess';
  font-size: 128px;
  margin: -150px 0px 30px 200px;
  transition: opacity 0.5s ease;
}

.fade-out { opacity: 0; }
.fade-in { opacity: 1; }

h1.terminal {
  font-family: 'Terminal';
  font-size: 128px;
  margin: -180px 0 0 200px;
}

h2 {
  font-family: 'Terminal';
  font-size: 52px;
}

h3 {
  font-family: 'cube';
  font-size: 2em;
  margin-bottom: 0;
}


a.Pseudo {
  font-size: 128px;
}

.titre-centre {
  padding: 20px 40px;
  font-family: 'Terminal';
  font-size: 3em;
  text-align: center;
  color: black;
  border: 8px solid #00d7ff;
  animation: alternanceCouleur 3s infinite;
}

p.Biographie{
  font-size: 1em;
}

@keyframes alternanceCouleur {
  0%   { border-color: #00d7ff; }
  33%  { border-color: #6060ff; }
  66%  { border-color: #37ff37; }
  100% { border-color: #00d7ff; }
}
.rotate-letter {
  display: inline-block;
  font-size: 5rem;
  animation: spin 2s linear infinite;
  transform-origin: 50% 28%; /* En haut à gauche */
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* -----------------------
   RESPONSIVE
------------------------ */

@media screen and (max-width: 768px) {
  h1.mess {
    font-size: 64px;
    margin: 10px;
  }

  h1.terminal {
    font-size: 64px;
    margin-top: -78px;
    margin-left: 10px;
  }

  .container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .navigation, .Pseudo, .horaire, .rituels {
    width: 100%;
    margin: 0 auto;
  }

  p, p.heure {
    font-size: 2em;
  }

  a.Pseudo {
    font-size: 5em;
    display: block;
  }

  h2.Pseudo {
    font-size: 2em;
    display: block;
  }

  img.rituels {
    width: 100%;
    height: auto;
  }
    img.vagabond {
    width: 100%;
    height: auto;
  }

  ul {
    padding-left: 0;
  }
}
