/* ==================================================================================================
   ############ STYLE SPÉCIFIQUE À LA PAGE DES LIENS #################################################
   ================================================================================================== */

/* ====================================
       STYLES DE LA PAGE DES LIENS
   ==================================== */

.exterieur-liens {
  background: rgba(4, 34, 84, 0.28);
}

@media (min-width: 761px) {
  .exterieur-liens {
    align-items: stretch;
  }

  .exterieur-liens .image-avec-texte {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 2 / 2.75;
    max-height: 420px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
    align-self: start;
    z-index: 1;
  }

  .exterieur-liens .image-avec-texte:hover {
    z-index: 20;
  }

  .exterieur-liens .image-avec-texte picture,
  .exterieur-liens .image-avec-texte img.auteur,
  .exterieur-liens .image-avec-texte .ecran {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
  }

  .exterieur-liens .image-avec-texte img.auteur {
    display: block;
    object-fit: cover;
    object-position: center 18%;
  }

  .texte-liens {
    height: 100%;
  }
}

.texte-liens {
  justify-content: center;
  padding: clamp(18px, 2.2vw, 30px);
  background: linear-gradient(180deg, rgba(2, 21, 58, 0.94), rgba(3, 30, 78, 0.88));
}

.liens-contenu {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.liens-intro {
  margin: 0;
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  line-height: 1.7;
  text-align: left;
  color: #eef7ff;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.65);
}

.liens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  justify-items: stretch;
}

.lien-carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: none;
  padding: 16px 50px 16px 18px;
  border: 2px solid rgba(156, 207, 255, 0.72);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 42, 104, 0.84), rgba(2, 18, 48, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 10px 24px rgba(0,0,0,0.22);
}

.lien-categorie {
  display: inline-flex;
  align-self: flex-start;
  max-width: calc(100% - 150px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(228, 186, 90, 0.14);
  border: 1px solid rgba(242, 222, 145, 0.42);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe39a;
}

.lien-titre {
  display: block;
  max-width: calc(100% - 10px);
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.04rem, 1.2vw, 1.2rem);
  line-height: 1.3;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.lien-desc {
  font-size: 0.93rem;
  line-height: 1.55;
  color: #dbeeff;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.6);
}

.lien-bouton {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--gold-1), var(--gold-2), var(--gold-3));
  color: #082346;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: none;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.24);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.lien-bouton:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.32),
    0 0 14px rgba(255, 230, 140, 0.45),
    0 0 24px rgba(120, 220, 255, 0.18);
}

.lien-bouton:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.lien-bouton:visited,
.lien-bouton:link {
  color: #082346;
}

/* ====================================
       PAGE DES LIENS - MOBILE / TABLETTE
   ==================================== */

@media (max-width: 760px), ((min-width: 761px) and (max-width: 900px) and (orientation: portrait)) {
  .texte-liens {
    padding: 14px;
  }

  .liens-contenu {
    gap: 14px;
  }

  .liens-intro {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .liens-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .lien-carte {
    max-width: none;
    padding: 14px;
    border-radius: 14px;
    gap: 7px;
  }

  .lien-categorie {
    max-width: 100%;
  }

  .lien-titre {
    font-size: 1rem;
  }

  .lien-desc {
    font-size: 0.91rem;
    line-height: 1.5;
  }

  .lien-bouton {
    position: static;
    top: auto;
    right: auto;
    min-width: 0;
    margin-top: 6px;
    align-self: flex-start;
    padding: 7px 12px;
    font-size: 0.88rem;
  }
}
