/* =========================
   GLOBAL BBCL
   ========================= */

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

html,
body {
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

/* =========================
   PAGE
   ========================= */

.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 22px 18px 40px;
}

.background {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 15%, var(--bg-1), transparent 32%),
    radial-gradient(circle at 15% 75%, var(--bg-2), transparent 30%),
    radial-gradient(circle at 85% 70%, var(--bg-3), transparent 32%),
    linear-gradient(
      135deg,
      var(--linear-1) 0%,
      var(--linear-2) 48%,
      var(--linear-3) 100%
    );
  z-index: 0;
  transition: background 0.5s ease;
}

.background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.22;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 45%,
      transparent 70%
    ),
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.45) 100%);
}

/* =========================
   MENU EN HAUT
   ========================= */

.top-menu {
  position: sticky;
  top: 12px;
  z-index: 20;

  width: fit-content;
  max-width: calc(100% - 24px);

  margin: 0 auto 28px;
  padding: 10px;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;

  border-radius: 999px;
  background: var(--menu-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.top-menu a {
  display: inline-block;
  padding: 10px 16px;

  border-radius: 999px;
  color: var(--text-main);
  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.top-menu a:hover,
.top-menu a.active {
  background: var(--accent);
  color: var(--button-text);
  transform: translateY(-2px);
}

/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.logo {
  display: block;
  width: clamp(160px, 28vw, 290px);
  margin: 0 auto 22px;

  opacity: 0;
  transform: scale(0.25) rotate(-8deg);

  animation:
    logoEnter 1.4s cubic-bezier(.17, .89, .32, 1.28) forwards,
    logoFloat 3.2s ease-in-out 1.5s infinite;

  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 18px rgba(255, 204, 82, 0.22));
}

.content {
  width: 100%;
}

/* =========================
   ANIMATIONS TEXTES
   ========================= */

.animated {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  animation: textReveal 0.75s ease-out forwards;
}

.delay-1 { animation-delay: 1.1s; }
.delay-2 { animation-delay: 1.35s; }
.delay-3 { animation-delay: 1.65s; }
.delay-4 { animation-delay: 1.95s; }
.delay-5 { animation-delay: 2.25s; }
.delay-6 { animation-delay: 2.55s; }
.delay-7 { animation-delay: 2.9s; }
.delay-8 { animation-delay: 3.1s; }
.delay-9 { animation-delay: 3.45s; }
.delay-10 { animation-delay: 3.8s; }
.delay-11 { animation-delay: 4.05s; }
.delay-12 { animation-delay: 4.35s; }
.delay-13 { animation-delay: 4.6s; }

/* =========================
   TEXTES
   ========================= */

.intro {
  display: inline-block;
  padding: 9px 20px;

  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--accent);
  border-radius: 999px;

  color: var(--accent);
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;

  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

h1 {
  margin-top: 14px;

  font-size: clamp(3.6rem, 13vw, 9rem);
  line-height: 0.85;
  text-transform: uppercase;
  font-weight: 1000;
  letter-spacing: 2px;

  color: var(--text-main);
  text-shadow:
    0 7px 0 rgba(3, 18, 34, 0.75),
    0 18px 32px rgba(0, 0, 0, 0.55);
}

.date {
  margin-top: 22px;

  font-size: clamp(1.35rem, 4vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: 1000;

  color: var(--text-main);
}

.main-info {
  margin-top: 8px;

  font-size: clamp(1.3rem, 3.6vw, 2.8rem);
  text-transform: uppercase;
  font-weight: 1000;

  color: var(--accent);
}

.activities {
  margin: 22px auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 13px 24px;

  background: rgba(255, 255, 255, 0.11);
  border: 2px solid var(--card-border);
  border-radius: 18px;

  font-size: clamp(1rem, 2.6vw, 2rem);
  text-transform: uppercase;
  font-weight: 900;
  color: var(--text-main);

  backdrop-filter: blur(10px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.age {
  margin-top: 10px;

  font-size: clamp(1rem, 2.5vw, 1.7rem);
  text-transform: uppercase;
  font-weight: 900;

  color: var(--accent-light);
}

/* =========================
   CARTES
   ========================= */

.cards {
  margin-top: 30px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 130px;
  padding: 22px 18px;

  border: 2px solid var(--card-border);
  border-radius: 24px;

  background:
    linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06)),
    var(--card-bg);

  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.card h2 {
  font-size: clamp(1.1rem, 2.6vw, 1.8rem);
  text-transform: uppercase;
  font-weight: 1000;
  color: var(--text-main);
}

.card p {
  margin-top: 12px;

  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
}

/* =========================
   DONS
   ========================= */

.donations {
  margin: 30px auto 0;
  max-width: 760px;
  padding: 22px;

  background:
    linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06)),
    var(--card-bg);

  border: 2px solid var(--accent);
  border-radius: 26px;

  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.donations h2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-transform: uppercase;
  color: var(--accent);
}

.donations p {
  margin-top: 10px;

  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 900;
  text-transform: uppercase;

  color: var(--text-main);
}

.donations ul {
  margin: 14px auto 0;
  padding: 0;
  list-style: none;
  max-width: 680px;
}

.donations li {
  margin-top: 9px;

  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 800;

  color: var(--text-soft);
}

.welcome {
  color: var(--accent-light) !important;
}

/* =========================
   SOUTIEN
   ========================= */

.support {
  margin-top: 28px;
  padding: 22px 18px;

  border-radius: 28px;
  background: var(--button-bg);
  color: var(--button-text);

  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.support p {
  font-size: clamp(1.1rem, 3vw, 2rem);
  text-transform: uppercase;
  font-weight: 900;
}

.support strong {
  display: block;
  margin-top: 6px;

  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 0.95;
  text-transform: uppercase;

  color: var(--button-text);
}

/* =========================
   QR / CONTACT
   ========================= */

.qr {
  margin: 24px auto 0;
  width: min(310px, 90%);
  padding: 22px 18px;

  background: #ffffff;
  color: #061526;

  border: 4px solid var(--accent);
  border-radius: 24px;

  font-size: clamp(1rem, 2.3vw, 1.45rem);
  font-weight: 1000;
  text-transform: uppercase;

  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.35);
}

.thanks {
  margin-top: 28px;

  font-size: clamp(1.1rem, 2.8vw, 2rem);
  font-weight: 1000;
  text-transform: uppercase;

  color: var(--text-main);
}

.contact {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 24px;

  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  border: 2px solid var(--accent);

  text-decoration: none;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 1000;

  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.32);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.contact:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--accent);
  color: var(--button-text);
}

/* =========================
   KEYFRAMES
   ========================= */

@keyframes logoEnter {
  0% {
    opacity: 0;
    transform: scale(0.25) rotate(-8deg);
  }

  60% {
    opacity: 1;
    transform: scale(1.12) rotate(3deg);
  }

  80% {
    transform: scale(0.96) rotate(-1deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.025);
  }
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 700px) {
  .page {
    padding: 16px 14px 34px;
  }

  .top-menu {
    position: relative;
    top: 0;
    border-radius: 22px;
    margin-bottom: 22px;
  }

  .top-menu a {
    font-size: 0.78rem;
    padding: 9px 12px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .donations {
    padding: 18px 14px;
  }
}