/* =========================================================
   LA PIEUVRE - ARCHIVE DES CAS CLIENTS
   Cotes relevees dans l'export du hub (frame 1440) :
   vague bleue 584x393 a x395 y135, titre y226 (56px, centre),
   pastilles expertise 246x26 a y319, pastilles secteur 169x23 a y368.
   ========================================================= */

.lp-archive-cas { --lp-ac-marge: 150px; }

/* ---------- Titre et filtres ---------- */
/* Pas de plan propre ici : la forme bleue doit rester derriere les vignettes. */
.lp-ac-head {
  position: relative;
  padding: 189px 24px 0;
  overflow-x: clip;
}
/* Grande forme bleue du haut de page : 1665x1121 a x-146 y-47. */
.lp-ac-head__fond {
  position: absolute;
  left: -10.1%;
  top: -47px;
  width: 115.6%;
  max-width: none;
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.lp-ac-head__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.lp-ac-head__inner h1 {
  font-size: 56px;
  line-height: 58px;
}

/* ---------- Pastilles de filtre ---------- */
.lp-filtres__liste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.lp-filtres__liste--expertise { gap: 20px; margin-top: 35px; }
/* Six secteurs : ils passent naturellement sur deux lignes si besoin. */
.lp-filtres__liste--secteur {
  column-gap: 24px;
  row-gap: 16px;
  margin-top: 35px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.lp-filtre {
  border: 0;
  cursor: pointer;
  border-radius: 100px;
  font-family: var(--font-texte);
  text-align: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.lp-filtre:hover { transform: scale(1.04); }

/* Expertise : meme cartouche que les pastilles du reste du site. */
.lp-filtre--expertise {
  padding: 9px 22px;
  background: var(--jaune);
  color: var(--marine);
  font-size: 18px;
  font-weight: 400;
  line-height: 19px;
}
.lp-filtre--expertise.is-active {
  background: var(--marine);
  color: var(--blanc);
}

/* Secteur : cartouche blanc cercle de marine, marine une fois choisi. */
.lp-filtre--secteur {
  padding: 8px 22px;
  background: var(--blanc);
  border: 1px solid var(--marine);
  color: var(--marine);
  font-size: 18px;
  font-weight: 400;
  line-height: 19px;
}
.lp-filtre--secteur.is-active {
  background: var(--marine);
  color: var(--blanc);
}
.lp-filtres__etat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  font-size: 16px;
}
.lp-filtres__reset {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-texte);
  font-size: 16px;
  color: var(--marine);
  text-decoration: underline;
}

/* ---------- Grille de vignettes ----------
   Gabarit : cartes 350x364, 41 d'ecart entre colonnes, 40 entre lignes,
   marges laterales de 154. La carte elle-meme est definie dans home.css. */
.lp-ac-grille {
  position: relative;
  z-index: 2;
  margin-top: 80px;
}
.lp-ac-grille .lp-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 45px;
  row-gap: 38px;
  width: calc(100% - 2 * var(--lp-ac-marge));
  margin: 0 auto;
}

.lp-cases__vide {
  width: calc(100% - 2 * var(--lp-ac-marge));
  margin: 40px auto 0;
  text-align: center;
  font-size: 18px;
}
/* ---------- Pagination : 12 vignettes par page ---------- */
.lp-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
}
.lp-pagination__lien {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--marine);
  border-radius: 100px;
  background: var(--blanc);
  color: var(--marine);
  cursor: pointer;
  font-family: var(--font-texte);
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.lp-pagination__lien:hover { transform: scale(1.06); }
.lp-pagination__lien.is-active {
  background: var(--marine);
  color: var(--blanc);
}

/* ---------- Bandeau contact ---------- */
.lp-archive-cas .lp-cta { margin-top: 110px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .lp-archive-cas { --lp-ac-marge: 40px; }
  .lp-ac-head { padding-top: 170px; }
  .lp-ac-head__fond { width: 150%; left: -25%; }
  .lp-ac-head__inner h1 { font-size: 42px; line-height: 46px; }
  .lp-ac-grille .lp-cases__grid { column-gap: 30px; row-gap: 40px; }
  .lp-archive-cas .lp-cta { margin-top: 80px; }
}

@media (min-width: 941px) and (max-width: 1100px) {
  .lp-ac-grille .lp-cases__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .lp-archive-cas { --lp-ac-marge: 16px; }
  .lp-ac-head { padding: 140px 16px 0; }
  .lp-ac-head__fond { display: none; }
  .lp-ac-head__inner h1 { font-size: 32px; line-height: 38px; }
  .lp-filtres__liste--expertise { gap: 12px; margin-top: 28px; }
  .lp-filtres__liste--secteur { gap: 12px; margin-top: 16px; }
  .lp-filtre--expertise { min-width: 0; font-size: 16px; padding: 6px 18px; }
  .lp-filtre--secteur { min-width: 0; font-size: 15px; padding: 6px 14px; }
  .lp-ac-grille .lp-cases__grid { grid-template-columns: 1fr; }
}
