/* ============================================
   Raid Aventure — page de liens
   Palette puisée dans les deux photos fournies :
   le bleu du ciel (haut → bas) relie les visuels,
   le bleu de marque encadre la page en haut/bas.
   ============================================ */

:root {
  --blue-brand: #0070c8;
  --blue-brand-dark: #00548f;
  --sky-top: #83bfe6;
  --sky-bottom: #6a9fd4;
  --ink: #0e2338;
  --white: #ffffff;
  --accent: #dd9a35; /* ambre des feuillages d'automne */
  --font-body: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sky-bottom);
  font-family: var(--font-body);
  color: var(--ink);
}

img {
  max-width: 100%;
}

/* ---------- En-tête : logo sur fond bleu de marque ---------- */

.brand-header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--blue-brand);
  padding: clamp(1.5rem, 6vw, 2.5rem) 1.5rem;
}

.brand-header__logo {
  display: block;
  width: clamp(150px, 34vw, 220px);
  height: auto;
}

/* ---------- Photos pleine largeur ---------- */

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Section liens : dégradé de ciel qui raccorde les deux photos ---------- */

.links {
  display: flex;
  justify-content: center;
  background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-bottom) 100%);
  padding: clamp(1.75rem, 7vw, 3rem) 1.25rem;
}

.links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 26rem;
}

.links__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.links__item:last-child {
  border-bottom: none;
}

.links__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  padding: 1.05rem 0.5rem;
  color: var(--white);
  text-decoration: underline wavy transparent;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1.5px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.links__item a:hover,
.links__item a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.links__item a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 2px;
}

.links__emoji {
  font-size: 1.25em;
  line-height: 1;
  transition: transform 0.2s ease;
}

.links__item a:hover .links__emoji,
.links__item a:focus-visible .links__emoji {
  transform: translateY(-2px);
}

/* Douceur d'apparition orchestrée à l'ouverture (une seule fois) */

.links__item {
  opacity: 0;
  transform: translateY(6px);
  animation: reveal 0.5s ease forwards;
}

.links__item:nth-child(1) { animation-delay: 0.05s; }
.links__item:nth-child(2) { animation-delay: 0.15s; }
.links__item:nth-child(3) { animation-delay: 0.25s; }
.links__item:nth-child(4) { animation-delay: 0.35s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .links__item {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .links__item a,
  .links__emoji {
    transition: none;
  }
}

/* ---------- Pied de page : referme la palette de marque ---------- */

.brand-footer {
  background: var(--blue-brand);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.85rem;
}

.brand-footer p {
  margin: 0;
}
