/* ===================================================================
   LA LOCO - page Les partenaires (bloc laloco/partenaires-page)
   Alternance des fonds : encre / creme / encre
   Rayon 5px partout. Aucune bordure coloree.
   =================================================================== */

.ll-part__hero,
.ll-part__liste,
.ll-part__sortie { margin-block-start: 0; margin-block-end: 0; }

/* Le theme ne definit PAS de classe de masquage accessible : on la pose ici,
   sinon la mention de nouvelle fenetre s afficherait a l ecran. */
.ll-part__sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.ll-part__filet {
  width: 54px; height: 3px; border-radius: 5px;
  background: var(--wp--preset--color--projecteur);
  margin: 15px 0 0;
}
.ll-part__prose {
  margin: 14px 0 0; font-size: 1rem; line-height: 1.72;
  color: var(--wp--preset--color--encre-douce); max-width: 62ch;
}
.ll-sombre .ll-part__prose { color: #C9CDD5; }

/* ------------------------------------------------------------- HERO */
.ll-part__hero {
  position: relative;
  background: var(--wp--preset--color--encre);
  padding-block: clamp(64px, 8vw, 112px);
}
/* Le fond photo. L image est deja tres sombre a gauche, la ou se trouve le
   texte : le voile reste LEGER pour ne pas eteindre la scene bleue. */
.ll-part__fond { position: absolute; inset: 0; overflow: hidden; }
.ll-part__fond-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 46%;
  display: block;
}
.ll-part__voile {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(96deg, rgba(9, 11, 15, 0.90) 0%, rgba(9, 11, 15, 0.80) 32%, rgba(9, 11, 15, 0.66) 50%, rgba(9, 11, 15, 0.34) 72%, rgba(9, 11, 15, 0.16) 88%, rgba(9, 11, 15, 0.12) 100%),
    linear-gradient(180deg, rgba(9, 11, 15, 0.34) 0%, rgba(9, 11, 15, 0.10) 42%, rgba(9, 11, 15, 0.44) 100%);
}
.ll-part__hero-wrap { position: relative; z-index: 1; }
.ll-part__titre {
  margin: 12px 0 0; max-width: 18ch;
  font-family: var(--wp--preset--font-family--titres);
  font-size: clamp(2.125rem, 4.6vw, 3.5rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.02em;
  color: var(--wp--preset--color--blanc);
}
.ll-part__accroche {
  margin: 20px 0 0; max-width: 58ch;
  font-size: 1.0625rem; line-height: 1.68; color: #C9CDD5;
}

/* ------------------------------------------------------------ CARTES */
.ll-part__liste {
  background: var(--wp--preset--color--creme);
  padding-block: clamp(64px, 8vw, 104px);
}
.ll-part__grille {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  grid-auto-rows: 1fr; /* egalise aussi les RANGEES entre elles */
}
.ll-part__item { display: flex; }
.ll-part__carte {
  box-sizing: border-box;
  display: flex; flex-direction: column;
  width: 100%;
  border-radius: 5px; overflow: hidden;
  background: var(--wp--preset--color--blanc);
  box-shadow: 0 26px 56px -34px rgba(14, 16, 20, 0.5);
  text-decoration: none;
}

/* La plaque : hauteur fixe, donc les logos partagent la meme ligne de base.
   Les fichiers sont deja recadres sur leur boite utile : un contain suffit,
   toute ponderation supplementaire deseequilibrait davantage (mesure). */
.ll-part__plaque {
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  height: 118px; padding: 26px 30px;
  background: var(--wp--preset--color--creme);
}
.ll-part__logo {
  display: block;
  max-width: min(100%, 208px);
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}

.ll-part__corps {
  box-sizing: border-box;
  display: flex; flex-direction: column; gap: 7px; flex: 1;
  padding: 20px 22px 22px;
}
.ll-part__cat {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--wp--preset--color--projecteur-profond);
}
.ll-part__nom {
  font-family: var(--wp--preset--font-family--titres);
  font-size: 1.0625rem; font-weight: 600; line-height: 1.24;
  color: var(--wp--preset--color--encre);
}
.ll-part__desc {
  font-size: 0.9375rem; line-height: 1.6;
  color: var(--wp--preset--color--encre-douce);
}
.ll-part__dom {
  margin-block-start: auto; padding-block-start: 12px;
  display: flex; align-items: center; gap: 7px;
  font-size: 0.8125rem; color: var(--wp--preset--color--graphite);
}
.ll-part__fleche {
  width: 14px; height: 14px; flex: 0 0 14px;
  stroke: var(--wp--preset--color--graphite);
}

/* La case d appel : la matiere la distingue, jamais un contour. */
.ll-part__carte--appel {
  background: var(--wp--preset--color--encre);
  box-shadow: 0 30px 62px -32px rgba(14, 16, 20, 0.74);
}
.ll-part__plaque--appel { background: rgba(255, 255, 255, 0.05); }
.ll-part__plus { width: 34px; height: 34px; stroke: var(--wp--preset--color--projecteur); }
.ll-part__carte--appel .ll-part__cat { color: var(--wp--preset--color--projecteur); }
.ll-part__carte--appel .ll-part__nom { color: var(--wp--preset--color--blanc); }
.ll-part__carte--appel .ll-part__desc { color: #C9CDD5; }
.ll-part__carte--appel .ll-part__dom { color: #C9CDD5; }

/* ------------------------------------------------------------ SORTIE */
.ll-part__sortie {
  background: var(--wp--preset--color--encre);
  padding-block: clamp(52px, 6vw, 80px);
}
.ll-part__sortie-grille {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 26px;
}
.ll-part__sortie-txt { max-width: 52ch; }
.ll-part__sortie-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------------------------------------- RESPONSIVE */
@media (max-width: 1023.98px) {
  .ll-part__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023.98px) {
  .ll-part__voile {
    background: linear-gradient(180deg,
      rgba(9, 11, 15, 0.62) 0%,
      rgba(9, 11, 15, 0.70) 24%,
      rgba(9, 11, 15, 0.78) 52%,
      rgba(9, 11, 15, 0.86) 100%);
  }
  .ll-part__fond-img { object-position: 58% 44%; }
}
@media (max-width: 559.98px) {
  .ll-part__grille { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .ll-part__plaque { height: 104px; }
  .ll-part__sortie-actions { width: 100%; }
  .ll-part__sortie-actions .ll-btn { flex: 1 1 auto; 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-part__carte { transition: transform 340ms ease, box-shadow 340ms ease; }
  .ll-part__carte:hover,
  .ll-part__carte:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 34px 66px -34px rgba(14, 16, 20, 0.6);
  }

  @supports (animation-timeline: view()) {
    .ll-part__item {
      animation: llPartMonte linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }
  @keyframes llPartMonte {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
}
