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

:root {
  --bleu:     #0000ff;
  --bleu-dim: #2222cc;
  --noir:     #000000;
  --blanc:    #ffffff;
  --gris-bg:  #111111;
  --texte:    #e8e8e8;
  --font-mono: 'Courier New', Courier, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background-image: url("/bg.jpg");
  color: var(--texte);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}


.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
}


.wrapper {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bleu);
  border-left: 2px solid #333;
  border-right: 2px solid #333;
  min-height: 100vh;
}

/* --- HEADER --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  gap: 12px;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--blanc);
  background: var(--bleu);
  padding: 4px 8px;
  text-transform: uppercase;
  display: inline-block;
  user-select: none;
}

/* Colorisation partielle des lettres du logo */
.logo-cy  { color: #fff; }
.logo-ni  { color: #aaa; }
.logo-cal { color: #fff; }
.logo-sq  { color: #fff; }
.logo-ua  { color: #aaa; }
.logo-d   { color: #fff; }

.tagline {
  font-size: 11px;
  color: #aaa;
  text-align: right;
  letter-spacing: 0.02em;
  max-width: 60%;
}

/* --- NAV --- */
.main-nav {
  display: flex;
  justify-content: space-around;
  background: var(--bleu);
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 10px 8px;
  text-decoration: none;
  color: var(--blanc);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.1s, color 0.1s;
  flex: 1;
  text-align: center;
}

.main-nav a:last-child {
  border-right: none;
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--noir);
  color: var(--blanc);
  outline: none;
}

/* --- HERO --- */
.hero {
  padding: 16px 20px;
  background: var(--bleu);
}

.hero-screen {
  background: #050505;
  border: 2px solid #222;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Grain sur le hero */
.hero-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-text {
  color: #ddd;
  font-size: 14px;
  letter-spacing: 0.04em;
  z-index: 1;
  text-align: center;
  padding: 20px;
}

/* --- INTRO --- */
.intro {
  padding: 24px 28px 20px;
  text-align: center;
}

.intro-title {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 900;
  color: var(--noir);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  line-height: 1.3;
}

.intro-body {
  font-size: 13.5px;
  color: #ccc;
  line-height: 1.8;
  max-width: 440px;
  margin: 0 auto;
}

/* --- DIVIDER --- */
.divider {
  border: none;
  border-top: 2px solid #222;
  margin: 0;
}

/* --- CTA BLOCK --- */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  background: var(--bleu);
}

.cta-btn {
  display: block;
  width: 260px;
  text-align: center;
  padding: 12px 16px;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  position: relative;
}

.cta-btn:hover,
.cta-btn:focus {
  background: var(--noir);
  color: var(--bleu);
  border-color: var(--bleu);
  outline: none;
}

/* Effet "glitch" hover sur les CTA */
.cta-btn:hover::before {
  content: attr(href);
  position: absolute;
  top: 0; left: 2px;
  color: #ff0044;
  opacity: 0.25;
  font-size: 14px;
  pointer-events: none;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
}

/* --- UPDATES --- */
.updates {
  padding: 28px 28px 24px;
  background: var(--bleu);
}

.updates-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: var(--noir);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.updates-sub {
  font-size: 12.5px;
  color: #888;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.7;
}

.updates-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.update-entry {
  border-left: 3px solid var(--bleu);
  padding: 8px 14px;
  background: #0a0a0a;
}

.update-date {
  display: block;
  font-size: 11px;
  color: var(--bleu);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 700;
}

.update-text {
  font-size: 13px;
  color: #ccc;
  line-height: 1.6;
}

/* --- FOOTER --- */
.site-footer {
  border-top: 2px solid #333;
  padding: 18px 20px 24px;
  background: #050505;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin-bottom: 18px;
}

.footer-nav a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bleu);
  color: var(--blanc);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--bleu-dim);
  margin: 2px;
  transition: background 0.1s, color 0.1s;
}

.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--bleu);
  color: var(--bleu);
  outline: none;
}

.footer-credit {
  font-size: 12px;
  color: #555;
  line-height: 1.8;
  margin-top: 12px;
}

/* --- FOCUS visible (accessibilité) --- */
:focus-visible {
  outline: 2px dashed var(--bleu);
  outline-offset: 2px;
}

/* --- RESPONSIVE mobile --- */
@media (max-width: 640px) {
  .wrapper {
    border: none;
    max-width: 100%;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tagline {
    max-width: 100%;
    text-align: left;
  }

  .main-nav a {
    font-size: 11px;
    padding: 10px 4px;
  }

  .intro-title {
    font-size: 14px;
  }

  .cta-btn {
    width: 90%;
  }

  .hero-screen {
    min-height: 180px;
  }
}

/* --- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
