/* Hématome - univers GeoCities (1996). Fond étoilé, marquee, badges 88x31. */

:root {
  --gc-bg: #000022;
  --gc-yellow: #ffff66;
  --gc-lime: #66ff66;
  --gc-cyan: #66ffff;
  --gc-pink: #ff66cc;
  --gc-orange: #ffaa33;
  --gc-white: #f4f4ff;
  color-scheme: dark;
}

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

body {
  background-color: var(--gc-bg);
  /* Ciel étoilé en dégradés radiaux tuilés */
  background-image:
    radial-gradient(1px 1px at 12px 18px, #ffffff 50%, transparent 51%),
    radial-gradient(1px 1px at 78px 44px, #ccccff 50%, transparent 51%),
    radial-gradient(2px 2px at 45px 90px, #ffffcc 50%, transparent 51%),
    radial-gradient(1px 1px at 105px 12px, #ffffff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 130px 66px, #aaddff 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 130px, #ffffff 50%, transparent 51%),
    radial-gradient(2px 2px at 140px 120px, #ffddff 50%, transparent 51%);
  background-size: 150px 150px;
  color: var(--gc-white);
  font-family: "Comic Neue", "Comic Sans MS", cursive;
  font-size: 18px;
  line-height: 1.6;
}

.gc-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 18px 120px;
}

/* -- Marquee ---------------------------- */
.gc-marquee {
  overflow: hidden;
  background: #000044;
  border-bottom: 2px ridge var(--gc-cyan);
  margin: 0 -18px 22px;
  white-space: nowrap;
}

.gc-marquee p {
  display: inline-block;
  padding: 8px 0 8px 100%;
  color: var(--gc-lime);
  font-weight: 700;
  font-size: 15px;
  animation: gc-marquee 28s linear infinite;
}

@keyframes gc-marquee {
  to { transform: translateX(-100%); }
}

/* -- Header ----------------------------- */
.gc-header { text-align: center; padding: 8px 0 4px; }

.gc-stars { color: var(--gc-cyan); font-size: 20px; letter-spacing: 2px; }

.gc-title {
  font-family: "Bungee", "Impact", sans-serif;
  font-size: clamp(3rem, 11vw, 6rem);
  line-height: 1.05;
  background: linear-gradient(180deg, var(--gc-yellow) 0%, var(--gc-orange) 35%, var(--gc-pink) 70%, var(--gc-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(3px 3px 0 #660066) drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.8));
  margin: 6px 0 10px;
}

.gc-subtitle { font-size: 20px; color: var(--gc-cyan); }
.gc-subtitle strong { color: var(--gc-yellow); }

.gc-blink {
  margin-top: 14px;
  font-weight: 700;
  color: var(--gc-lime);
  letter-spacing: 0.1em;
  animation: gc-blink 1s steps(1) infinite;
}

@keyframes gc-blink { 50% { opacity: 0; } }

.gc-construction {
  margin: 18px auto 4px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: repeating-linear-gradient(45deg, #ffcc00 0 14px, #111111 14px 28px);
  color: #111111;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border: 3px outset #ffcc00;
}

.gc-construction span:nth-child(2) {
  background: #ffcc00;
  padding: 2px 8px;
}

.gc-cone {
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 20px solid #dd4422;
}

/* -- HR arc-en-ciel --------------------- */
.gc-rainbow-hr {
  border: none;
  height: 6px;
  margin: 30px 0;
  background: linear-gradient(90deg, #ff3333, #ffaa33, #ffff33, #33ff33, #33ffff, #3333ff, #ff33ff);
  border-radius: 3px;
}

/* -- Table intro ------------------------ */
.gc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  background: #000033;
  border: 3px ridge var(--gc-cyan);
  padding: 6px;
}

.gc-table td {
  border: 2px inset #444488;
  padding: 12px 14px;
  background: #000044;
  vertical-align: top;
}

.gc-td-label {
  font-family: "Bungee", "Impact", sans-serif;
  color: var(--gc-yellow);
  white-space: nowrap;
  width: 110px;
  font-size: 15px;
}

.gc-table strong { color: var(--gc-lime); }
.gc-table em { color: var(--gc-pink); font-style: normal; }

/* -- Titres ----------------------------- */
.gc-h2 {
  text-align: center;
  font-family: "Bungee", "Impact", sans-serif;
  font-size: clamp(18px, 4vw, 26px);
  color: var(--gc-pink);
  text-shadow: 2px 2px 0 #550033, 4px 4px 0 rgba(0, 0, 0, 0.7);
  margin-bottom: 24px;
}

/* -- Outils ----------------------------- */
.gc-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gc-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #000044;
  border: 4px outset #6666cc;
  padding: 18px 16px 14px;
  text-decoration: none;
  color: var(--gc-white);
  cursor: pointer;
  transition: transform 150ms ease-out;
}

.gc-tool:hover { transform: rotate(-1deg) scale(1.03); border-style: inset; }
.gc-tool:focus-visible { outline: 4px dashed var(--gc-yellow); outline-offset: 3px; }

.gc-tool-new {
  position: absolute;
  top: -12px;
  right: -8px;
  background: #ff3333;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  transform: rotate(8deg);
  border: 2px solid #ffffff;
  animation: gc-blink 1.2s steps(1) infinite;
}

.gc-tool-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--gc-yellow);
  text-decoration: underline;
}

.gc-tool:hover .gc-tool-name { color: var(--gc-lime); }
.gc-tool-desc { font-size: 15px; flex-grow: 1; }
.gc-tool-url { font-size: 13px; color: var(--gc-cyan); font-weight: 700; }

/* -- Livre d'or ------------------------- */
.gc-guestbook {
  text-align: center;
  background: #000033;
  border: 3px ridge var(--gc-pink);
  padding: 24px 20px;
}

.gc-guestbook p { max-width: 620px; margin: 0 auto 18px; }

.gc-cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.gc-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: linear-gradient(180deg, #8888ff 0%, #4444cc 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 10px 20px;
  border: 3px outset #8888ff;
  cursor: pointer;
}

.gc-btn:hover { border-style: inset; filter: brightness(1.15); }
.gc-btn:focus-visible { outline: 4px dashed var(--gc-yellow); outline-offset: 3px; }
.gc-btn-alt { background: linear-gradient(180deg, #ff88cc 0%, #cc4488 100%); border-color: #ff88cc; }

/* -- Footer ----------------------------- */
.gc-footer { text-align: center; }

.gc-counter-label { font-size: 15px; margin-bottom: 8px; }

.gc-counter {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 6px;
  background: #000000;
  color: #33ff33;
  border: 3px inset #666666;
  padding: 6px 14px 6px 20px;
}

.gc-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0;
}

/* Badges 88x31, le standard sacré */
.gc-badge {
  width: 88px;
  height: 31px;
  font-family: "Courier New", monospace;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #ffffff;
  letter-spacing: 0.05em;
}

.gc-badge-1 { background: #000066; color: #ffffff; }
.gc-badge-2 { background: repeating-linear-gradient(90deg, #333333 0 4px, #111111 4px 8px); color: #66ff66; }
.gc-badge-3 { background: #660000; color: #ffff66; }
.gc-badge-4 { background: linear-gradient(135deg, #006633, #66ccff); color: #ffffff; }

.gc-webring {
  border: 2px dashed var(--gc-cyan);
  padding: 14px;
  margin-bottom: 22px;
  font-size: 16px;
}

.gc-webring-title { color: var(--gc-cyan); font-weight: 700; margin-bottom: 8px; }

.gc-webring a {
  color: var(--gc-yellow);
  font-weight: 700;
  display: inline-block;
  padding: 8px 6px;
  cursor: pointer;
}

.gc-webring a:hover { color: var(--gc-lime); }
.gc-webring a:focus-visible { outline: 3px dashed var(--gc-yellow); outline-offset: 2px; }

.gc-legal { font-size: 13px; color: #9999cc; }

@media (max-width: 560px) {
  .gc-td-label { width: auto; }
  .gc-title { filter: drop-shadow(2px 2px 0 #660066); }
}

@media (prefers-reduced-motion: reduce) {
  .gc-marquee p { animation: none; padding-left: 0; white-space: normal; }
  .gc-blink, .gc-tool-new { animation: none; }
  .gc-tool { transition: none; }
}
