/* ===================================================================
   LA LOCO - page 404 (bloc laloco/erreur-404)
   Alternance : encre / creme. Rayon 5px. Aucune bordure coloree.
   =================================================================== */

.ll-404,
.ll-404__suite { margin-block-start: 0; margin-block-end: 0; }

/* Le theme ne definit pas de classe de masquage accessible. */
.ll-404__sr {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.ll-404__filet {
  width: 54px; height: 3px; border-radius: 5px;
  background: var(--wp--preset--color--projecteur);
  margin: 16px 0 0;
}
.ll-404__filet--clair { background: var(--wp--preset--color--projecteur-profond); }

/* ----------------------------------------------------------- ERREUR */
.ll-404 {
  position: relative;
  overflow: hidden;
  background: var(--wp--preset--color--encre);
  padding-block: clamp(72px, 9vw, 132px);
}
.ll-404__voile {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 92% at 6% 88%, rgba(251, 211, 76, 0.14), transparent 62%),
    radial-gradient(86% 70% at 94% 6%, rgba(91, 98, 112, 0.32), transparent 62%);
}

/* Le grand nombre : ornement, donc aria-hidden. Il ne porte aucune
   information que le titre ne dise deja. Degrade clippe, avec une couleur
   pleine de repli si background-clip: text n est pas supporte. */
.ll-404__chiffre {
  /* Ornement d ANGLE, jamais sous la colonne de lecture : a 1024 px il
     recouvrait le titre, l accroche, la recherche ET les raccourcis. */
  position: absolute;
  inset-block-end: -6%;
  inset-inline-end: -3%;
  z-index: 0;
  font-family: var(--wp--preset--font-family--titres);
  font-size: clamp(9rem, 30vw, 24rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: rgba(251, 211, 76, 0.10);
  pointer-events: none;
  user-select: none;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .ll-404__chiffre {
    background-image: linear-gradient(152deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(251, 211, 76, 0.20) 46%,
      rgba(251, 211, 76, 0.05) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}

.ll-404__wrap { position: relative; z-index: 1; }
.ll-404__titre {
  margin: 12px 0 0; max-width: 17ch;
  font-family: var(--wp--preset--font-family--titres);
  font-size: clamp(2.125rem, 4.8vw, 3.75rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--wp--preset--color--blanc);
}
.ll-404__accroche {
  margin: 20px 0 0; max-width: 52ch;
  font-size: 1.0625rem; line-height: 1.68; color: #C9CDD5;
}

/* ------------------------------------------------------- RECHERCHE */
.ll-404__recherche {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-block-start: clamp(24px, 3vw, 34px);
  max-width: 720px;
}
.ll-404__champ {
  position: relative;
  display: flex; align-items: center;
  flex: 1 1 260px;
}
.ll-404__champ .ll-picto {
  position: absolute; inset-inline-start: 15px;
  width: 18px; height: 18px; pointer-events: none;
}
.ll-404__saisie {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--wp--preset--color--blanc);
  font-family: inherit; font-size: 0.9375rem; line-height: 1.4;
}
.ll-404__saisie::placeholder { color: #A9B0BC; opacity: 1; }
.ll-404__saisie:focus-visible {
  outline: 2px solid var(--wp--preset--color--projecteur);
  outline-offset: 2px;
  background-color: rgba(255, 255, 255, 0.11);
}
.ll-404__envoi { flex: 0 0 auto; }

/* ------------------------------------------------------- RACCOURCIS */
.ll-404__liens {
  list-style: none; margin: clamp(26px, 3.4vw, 40px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch; grid-auto-rows: 1fr;
}
.ll-404__item { display: flex; }
/* Verre : la matiere signale, jamais un contour colore. */
.ll-404__lien {
  box-sizing: border-box;
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 15px 18px;
  border-radius: 5px;
  text-decoration: none;
  background-color: rgba(11, 13, 17, 0.52);
  background-image: linear-gradient(158deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 38%, transparent 74%);
  backdrop-filter: blur(22px) saturate(164%);
  -webkit-backdrop-filter: blur(22px) saturate(164%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 22px 50px -30px rgba(0, 0, 0, 0.72);
}
.ll-404__lien-picto {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 42px; width: 42px; height: 42px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
}
.ll-404__lien-picto .ll-picto { width: 21px; height: 21px; display: block; }
.ll-404__lien-txt { display: flex; flex-direction: column; gap: 3px; }
.ll-404__lien-nom {
  font-family: var(--wp--preset--font-family--titres);
  font-size: 1rem; font-weight: 600; line-height: 1.22;
  color: var(--wp--preset--color--blanc);
}
.ll-404__lien-leg { font-size: 0.8125rem; line-height: 1.45; color: #C9CDD5; }

/* ------------------------------------------------------------ SUITE */
.ll-404__suite {
  background: var(--wp--preset--color--creme);
  padding-block: clamp(58px, 7vw, 96px);
}
.ll-404__grille {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; align-items: stretch;
}
.ll-404__carte { display: flex; }
.ll-404__carte > * { width: 100%; }
.ll-404__suite-actions { margin-block-start: clamp(28px, 3.4vw, 42px); }

/* -------------------------------------------------------- RESPONSIVE */
@media (max-width: 1199.98px) {
  .ll-404__liens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023.98px) {
  .ll-404__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ll-404__chiffre { font-size: clamp(8rem, 34vw, 18rem); opacity: 0.9; }
}
@media (max-width: 767.98px) {
  .ll-404__liens { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
}
@media (max-width: 559.98px) {
  .ll-404__grille { grid-template-columns: minmax(0, 1fr); }
  .ll-404__envoi { width: 100%; text-align: center; }
}

/* --------------------------------------------------------- ANIMATIONS
   Enfermees ici : hors de cette requete, aucune regle d opacite n existe.
   Aucune transformation de classe sur un element anime au defilement. */
@media (prefers-reduced-motion: no-preference) {
  .ll-404__lien { transition: transform 340ms ease, box-shadow 340ms ease; }
  .ll-404__lien:hover,
  .ll-404__lien:focus-visible {
    transform: translateY(-4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 60px -28px rgba(0, 0, 0, 0.8);
  }
  @supports (animation-timeline: view()) {
    .ll-404__carte {
      animation: ll404Monte linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }
  @keyframes ll404Monte {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
}
