/* Volontairement compatible avec le vieux moteur Awesomium de GMod :
   pas de variables CSS, pas de flexbox, préfixes -webkit-. */

/* Montserrat auto-hébergée (woff2 pour Chromium, woff pour Awesomium) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400;
  src: url("assets/fonts/montserrat-400.woff2") format("woff2"), url("assets/fonts/montserrat-400.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600;
  src: url("assets/fonts/montserrat-600.woff2") format("woff2"), url("assets/fonts/montserrat-600.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700;
  src: url("assets/fonts/montserrat-700.woff2") format("woff2"), url("assets/fonts/montserrat-700.woff") format("woff"); }

html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  overflow: hidden; background: #050708; color: #fff;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: default; -webkit-user-select: none; user-select: none;
}

/* ---------- Fond ---------- */
#bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden;
  background: #050708;
  background-image: -webkit-radial-gradient(30% 40%, circle, #0f2a2e 0%, #050708 60%);
  background-image: radial-gradient(circle at 30% 40%, #0f2a2e 0%, #050708 60%); }
.slide { position: absolute; top: -3%; left: -3%; width: 106%; height: 106%;
  background-size: cover; background-position: center; opacity: 0;
  -webkit-transition: opacity 1.6s ease; transition: opacity 1.6s ease; }
.slide.on { opacity: 1;
  -webkit-animation: kenburns 14s linear forwards; animation: kenburns 14s linear forwards; }
@-webkit-keyframes kenburns { from { -webkit-transform: scale(1); } to { -webkit-transform: scale(1.08); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

#bgLogo { position: absolute; top: 50%; left: 62%; width: 46vh; height: 46vh;
  margin: -23vh 0 0 -23vh; opacity: .07; border-radius: 50%;
  -webkit-animation: breathe 10s ease-in-out infinite alternate;
  animation: breathe 10s ease-in-out infinite alternate; }
#bgLogo.hidden { display: none; }
@-webkit-keyframes breathe { from { -webkit-transform: scale(1); opacity: .05; } to { -webkit-transform: scale(1.06); opacity: .1; } }
@keyframes breathe { from { transform: scale(1); opacity: .05; } to { transform: scale(1.06); opacity: .1; } }

/* Voile global (harmonise jour/nuit) + dégradé bas pour la lisibilité */
#shade { position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 10, 12, .35);
  background: -webkit-linear-gradient(top, rgba(4,10,12,.30) 0%, rgba(4,10,12,.35) 50%, rgba(0,0,0,.85) 100%);
  background: linear-gradient(to bottom, rgba(4,10,12,.30) 0%, rgba(4,10,12,.35) 50%, rgba(0,0,0,.85) 100%); }

/* ---------- Marque (bas gauche) ---------- */
#brand { position: absolute; left: 4.5vw; bottom: 15vh; height: 64px; }
#logo { position: absolute; left: 0; top: 0; width: 64px; height: 64px; border-radius: 50%;
  box-shadow: 0 0 24px rgba(84, 196, 200, .25); }
#brandText { position: absolute; left: 82px; top: 8px; white-space: nowrap; }
#name { font-size: 26px; font-weight: 700; letter-spacing: 8px; line-height: 28px; }
#sub { font-size: 12px; letter-spacing: 3px; color: #7fd0d0; text-transform: uppercase; margin-top: 4px; }

/* ---------- Astuces ---------- */
#tip { position: absolute; left: 4.5vw; bottom: 7vh; max-width: 46vw;
  font-size: 14px; line-height: 20px; color: rgba(255,255,255,.85);
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  -webkit-transition: opacity .5s ease; transition: opacity .5s ease; }
#tip.fade { opacity: 0; }
#tipLabel { font-weight: 700; color: #54c4c8; letter-spacing: 2px; font-size: 12px; margin-right: 12px; }

/* ---------- Chargement (bas droite, façon GTA V) ---------- */
#loader { position: absolute; right: 4.5vw; bottom: 7vh; height: 34px; text-align: right;
  padding-right: 48px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
#status { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  white-space: nowrap; line-height: 18px; }
#detail { font-size: 11px; color: rgba(255,255,255,.55); white-space: nowrap; line-height: 16px;
  max-width: 38vw; overflow: hidden; text-overflow: ellipsis; }
#spinner { position: absolute; right: 0; top: 2px; width: 26px; height: 26px; box-sizing: border-box;
  border: 3px solid rgba(255,255,255,.18); border-top-color: #fff; border-radius: 50%;
  -webkit-animation: spin .9s linear infinite; animation: spin .9s linear infinite; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
#percent { position: absolute; right: 48px; top: -26px; font-size: 13px; font-weight: 700;
  color: #7fd0d0; letter-spacing: 1px; }

#meta { position: absolute; top: 4vh; right: 4.5vw; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.75); text-shadow: 0 1px 4px rgba(0,0,0,.9); }

/* ---------- Barre de progression ---------- */
#bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.08); }
#fill { height: 100%; width: 0;
  background: #54c4c8;
  background: -webkit-linear-gradient(left, #1d7f8c 0%, #54c4c8 70%, #a6ecec 100%);
  background: linear-gradient(to right, #1d7f8c 0%, #54c4c8 70%, #a6ecec 100%);
  box-shadow: 0 0 12px rgba(84,196,200,.6); }

@media (max-width: 900px) {
  #tip { max-width: 90vw; bottom: 16vh; }
  #brand { bottom: 25vh; }
}
