/*
 * Page « Télécharger » : le Sanctuaire d'Éclosia la nuit en tête, puis les
 * cartes laquées de l'accueil. Mêmes jetons que styles.css.
 */

.page-telecharger main {
  padding-bottom: 48px;
}

/* ----- Tête : le Sanctuaire ----- */
.dl-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(88vh, 760px);
  padding: 120px var(--gutter) 72px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.dl-fond {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.dl-fond img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Nuit bleue en haut, qui se fond dans le brun de la page en bas. */
.dl-voile {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 48%, rgb(5 8 18 / 0.72), rgb(5 8 18 / 0.25) 75%),
    linear-gradient(180deg, rgb(5 8 18 / 0.7), transparent 28%, transparent 62%, var(--ink));
}

.dl-contenu {
  max-width: 760px;
  animation: rise 900ms var(--ease) both;
}

.dl-sur {
  margin: 0 0 14px;
}

.dl-pastille {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgb(231 194 122 / 0.7);
  border-radius: 999px;
  background: rgb(231 194 122 / 0.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.dl-hero h1 {
  margin: 0;
  font-weight: 850;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, var(--gold-light) 15%, var(--gold) 60%, #b98a3c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgb(0 0 0 / 0.7));
}

.dl-lead {
  max-width: 34em;
  margin: 18px auto 0;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--cream);
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.8);
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.dl-bouton .icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-config {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--cream-dim);
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.9);
}

.page-telecharger code {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgb(0 0 0 / 0.35);
  font-size: 0.92em;
}

/* ----- Sections ----- */
.dl-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
}

/* Avertissement de la bêta : net, impossible à manquer. */
.dl-alerte {
  display: flex;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid rgb(240 138 36 / 0.75);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgb(240 138 36 / 0.16), rgb(240 138 36 / 0.06)),
    rgb(29 18 9 / 0.9);
  box-shadow: 0 14px 30px rgb(0 0 0 / 0.35);
}

.dl-alerte svg {
  flex: none;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--orange-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-alerte h2 {
  margin: 2px 0 8px;
  font-size: 19px;
  font-weight: 750;
  color: var(--orange-light);
}

.dl-alerte ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.1em;
  font-size: 16px;
  line-height: 1.55;
}

.dl-alerte b {
  color: var(--gold-light);
}

.dl-cadeaux {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

/* Étapes : pastilles numérotées sur un fil doré. */
.dl-etapes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

@media (width >= 1000px) {
  .dl-etapes {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (width < 600px) {
  .dl-etapes {
    grid-template-columns: 1fr;
  }
}

.dl-etapes li {
  position: relative;
  padding: 50px 20px 20px;
  border: 1px solid rgb(231 194 122 / 0.25);
  border-radius: 14px;
  background: linear-gradient(180deg, rgb(255 236 200 / 0.05), transparent), rgb(42 26 14 / 0.55);
  counter-increment: etape;
}

.dl-etapes li::before {
  content: counter(etape);
  position: absolute;
  top: 14px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  font-size: 14px;
  font-weight: 800;
  color: #2a1a0e;
}

.dl-etapes h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--title);
}

.dl-etapes p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream-dim);
}

.dl-etapes a,
.dl-aide a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Nouvelles : les mêmes que dans le lanceur. */
.dl-nouvelles {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dl-nouvelles li {
  padding: 18px 22px;
  border: 1px solid rgb(231 194 122 / 0.25);
  border-radius: 14px;
  background: rgb(42 26 14 / 0.55);
}

.dl-nouvelle-tete {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--cream-dim);
}

.dl-etiquette {
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--gold);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a1a0e;
}

.dl-nouvelles h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--title);
}

.dl-nouvelles li > p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream-dim);
}

.dl-aide {
  text-align: center;
  font-size: 15px;
  color: var(--cream-dim);
}
