/* ============================================================
   Études de cas Exalt (2026-10-15)
   Chargé seulement sur une étude, la liste et les pages Industrie / Service (functions.php).
   Même disposition que pratcom.net, style des articles Exalt.
   ============================================================ */

/* Hero de l'étude : l'image à la une entre le titre et la description, fond coupé au milieu de l'image. */
.ex-bhero.ex-ehero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 72px; }
.ex-ehero .ex-ehero-img {
  --ex-ehero-w: min(1080px, calc(100vw - 48px));
  position: relative;
  width: var(--ex-ehero-w);
  max-width: none;
  margin: 28px calc((100% - var(--ex-ehero-w)) / 2) 32px;
  overflow: visible;
}
.ex-ehero .ex-ehero-img::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 200vw;
  height: 200vh;
  transform: translateX(-50%);
  background: var(--wp--preset--color--surface, #F9FAFB);
}
.ex-ehero .ex-ehero-img img {
  display: block;
  width: 100%;
  border-radius: 6px;
  background: #0E1B26;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.ex-ehero .ex-ehero-img ~ .ex-lead { color: var(--wp--preset--color--secondary, #373435); }
.ex-ehero .ex-ehero-img ~ .ex-gmeta,
.ex-ehero .ex-ehero-img ~ .ex-gmeta * { color: #6B7280; }
.ex-ehero .ex-ehero-img ~ .ex-gmeta strong { color: var(--wp--preset--color--secondary, #373435); }

/* Contenu : une boîte blanche pleine largeur, filet cyan à gauche (comme le sommaire des articles). */
.ex-ebody { padding-top: 24px; }
.ex-ebody .ex-ebox {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 44px 44px;
  background: #fff;
  border: 1px solid var(--wp--preset--color--border, #E5E7EB);
  border-left: 3px solid var(--wp--preset--color--primary, #00AFEF);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(55, 52, 53, 0.06);
}
.ex-ebody .ex-ebox .ex-article__body,
.ex-ebody .ex-ebox .ex-article__body > *,
.ex-ebody .ex-ebox > .ex-bshare,
.ex-ebody .ex-ebox > .ex-bnav { max-width: none; }
@media (max-width: 639px) {
  .ex-ebody .ex-ebox { padding: 24px 20px 28px; }
}
.ex-ebox > .ex-bshare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 2.75rem;
  padding-top: 1.625rem;
  border-top: 1px solid var(--wp--preset--color--border, #E5E7EB);
}
.ex-ebox > .ex-bnav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 1.75rem; }
@media (min-width: 700px) {
  .ex-ebox > .ex-bnav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Fiche projet : logo du client centré au-dessus, champs sur une ligne, résultats en cartes. */
.ex-ebody .pedc-sheet:has(.pedc-sheet__logo) { position: relative; padding-top: 76px; }
.ex-ebody .pedc-sheet .pedc-sheet__facts .pedc-sheet__logo {
  position: absolute;
  top: 0;
  left: 50%;
  grid-area: auto;
  margin: 0;
  transform: translateX(-50%);
}
.ex-ebody .pedc-sheet .pedc-sheet__logo img { display: block; width: auto; height: 48px; max-width: 240px; object-fit: contain; }
@media (min-width: 900px) {
  .ex-ebody .pedc-sheet__facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 20px;
    align-items: start;
  }
  .ex-ebody .pedc-sheet__facts dl { display: contents; }
}
.ex-ebody .pedc-sheet__facts dd a { overflow-wrap: normal; word-break: normal; }
/* Colonnes égales : texte des champs plus petit, l'adresse du site sur une seule ligne. */
.ex-ebody .pedc-sheet__facts dd { font-size: 15px; line-height: 1.5; }
.ex-ebody .pedc-sheet__facts dd:has(a[target="_blank"]) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ex-ebody .pedc-results li {
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--wp--preset--color--border, #E5E7EB);
  border-radius: 6px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ex-ebody .pedc-results li:hover {
  border-color: var(--wp--preset--color--primary, #00AFEF);
  box-shadow: 0 12px 28px rgba(55, 52, 53, 0.12);
}
.ex-ebody .pedc-results__value {
  display: block;
  margin-bottom: 0.5rem;
  font-size: clamp(1.7rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--wp--preset--color--primary, #00AFEF);
}
.ex-ebody .pedc-results__label { font-size: 0.95rem; line-height: 1.55; color: #6B7280; }

/* Liste et pages Industrie / Service : deux rangées de filtres, sans « Aucune catégorie ». */
.ex-bhero .ex-efilters + .ex-efilters { margin-top: 10px; }
.ex-efilters .cat-item-none { display: none; }
body.post-type-archive-etude_de_cas .ex-bfilters__all a { color: var(--wp--preset--color--primary, #00AFEF); }
.ex-elist .ex-bkicker .wp-block-post-terms::after { display: none; }
