:root {
  --red: #e40303;
  --orange: #ff8c00;
  --yellow: #ffed00;
  --green: #008026;
  --blue: #004dff;
  --purple: #750787;
  --pink: #ff5fb7;
  --ink: #1d1d1d;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple), var(--pink), var(--red));
  background-size: 400% 400%;
  animation: rainbow-bg 18s ease infinite;
}

@keyframes rainbow-bg {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Pepes flottants ---------- */
#floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floater {
  position: absolute;
  opacity: 0.85;
  animation: bob var(--dur, 6s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

@keyframes bob {
  from { transform: translateY(0) rotate(var(--rot-a, -10deg)); }
  to   { transform: translateY(-40px) rotate(var(--rot-b, 10deg)); }
}

.pop {
  position: fixed;
  pointer-events: none;
  z-index: 50;
  animation: pop-up 1.4s ease-out forwards;
}

@keyframes pop-up {
  0%   { transform: translate(-50%, -50%) scale(0.2) rotate(0deg); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(-50%, -180%) scale(1.1) rotate(25deg); opacity: 0; }
}

/* ---------- Layout ---------- */
main {
  position: relative;
  z-index: 1;
}

section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 16px;
  text-align: center;
}

h2 {
  font-family: "Luckiest Guy", cursive;
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 24px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-pepe {
  width: min(320px, 70vw);
  animation: wiggle 2.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
  cursor: pointer;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50%      { transform: rotate(6deg) scale(1.05); }
}

.title {
  font-family: "Luckiest Guy", cursive;
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  line-height: 1;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
}

.title span:nth-child(1) { color: var(--red); }
.title span:nth-child(2) { color: var(--orange); }
.title span:nth-child(3) { color: var(--yellow); }
.title span:nth-child(4) { color: #3ddc5f; }
.title span:nth-child(5) { color: #5ea0ff; }

.ticker {
  font-family: "Luckiest Guy", cursive;
  font-size: clamp(3rem, 14vw, 7rem);
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 6px 6px 0 var(--purple);
  line-height: 1;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.tagline {
  font-size: 1.25rem;
  font-weight: 800;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 20px;
  box-shadow: 4px 4px 0 var(--ink);
}

.ca {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.ca-label { font-weight: 800; }

.ca code {
  font-size: 0.95rem;
  word-break: break-all;
}

.ca button,
.btn {
  font-family: "Luckiest Guy", cursive;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--purple);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.ca button:hover,
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.ca button:active,
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.links .btn:nth-child(1) { background: var(--red); }
.links .btn:nth-child(2) { background: var(--orange); }
.links .btn:nth-child(3) { background: var(--green); }
.links .btn:nth-child(4) { background: var(--blue); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  border-block: 4px solid #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  animation: scroll 25s linear infinite;
  font-family: "Luckiest Guy", cursive;
  font-size: 2rem;
}

.marquee-track img { height: 44px; }

.marquee-track span:nth-of-type(6n+1) { color: var(--red); }
.marquee-track span:nth-of-type(6n+2) { color: var(--orange); }
.marquee-track span:nth-of-type(6n+3) { color: var(--yellow); }
.marquee-track span:nth-of-type(6n+4) { color: #3ddc5f; }
.marquee-track span:nth-of-type(6n+5) { color: #5ea0ff; }
.marquee-track span:nth-of-type(6n+6) { color: #d07bff; }

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about p {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.6;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 6px 6px 0 var(--ink);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 8px;
  transition: transform 0.2s;
}

.gallery img:hover { transform: rotate(-6deg) scale(1.08); }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 32px 16px 48px;
  color: #fff;
  font-weight: 800;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  display: grid;
  gap: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* ---------- Tes images (cadre blanc façon sticker) ---------- */
img.photo {
  border: 3px solid #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px var(--ink);
  object-fit: cover;
}

.floater.photo { aspect-ratio: 1; }

.hero-pepe.photo {
  aspect-ratio: 1;
  border-width: 6px;
  border-radius: 28px;
  width: min(300px, 65vw);
}

.gallery img.photo {
  padding: 0;
  object-fit: cover;
}
