

  /* Hub prestations — 4 lignes alternées image-gauche / image-droite */
  .pillars{ display:flex; flex-direction:column; gap:90px }
  .pillar{
    display:grid; grid-template-columns:1fr 1fr; gap:60px;
    align-items:center;
    background:transparent; border:0; padding:0; border-radius:0;
  }
  .pillar .txt{ order:2 }
  .pillar .ph{ order:1 }
  /* Alternance "auto" si plusieurs .pillar dans le même container (page Prestations) */
  .pillar:nth-child(even) .txt{ order:1 }
  .pillar:nth-child(even) .ph{ order:2 }
  /* Alternance "manuelle" via attribut Reverse du bloc Gutenberg
     (utilisée quand chaque .pillar est dans son propre wrap iso/pillar-row) */
  .pillar.reverse .txt{ order:1 }
  .pillar.reverse .ph{ order:2 }
  .pillar .ph{
    aspect-ratio:4/3; min-height:340px;
    background:var(--paper-2); border-radius:var(--radius);
    background-size:cover; background-position:center;
    display:flex; align-items:center; justify-content:center;
    color:var(--ink-3); font-size:13px;
  }
  .pillar:hover{ border:0; box-shadow:none }
  .pillar .txt h3{
    margin:10px 0 8px; font-size:24px;
    font-family:"Google Sans Flex", "Inter", sans-serif; font-weight:700; letter-spacing:-.4px;
    line-height:1.1;
  }
  .pillar .txt h3 em{ color:var(--ink); font-style:normal }
  .pillar .txt .tags{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px }
  .pillar .txt .tags span{
    font-size:10.5px; background:var(--paper-2);
    color:var(--ink-2); padding:3px 9px; border-radius:var(--radius-full);
    border:1px solid var(--line-2); font-weight:500;
    text-transform:uppercase; letter-spacing:1px;
  }
  .pillar .txt p{ font-size:13.5px; color:var(--ink-3); line-height:1.6 }
  .pillar .txt ul{
    font-size:13px; color:var(--ink-2); line-height:1.9;
    padding-left:18px; margin:10px 0 18px;
  }
  .pillar .ph{
    background:var(--wf); border:1px dashed var(--wf-line);
    border-radius:var(--radius); min-height:220px;
    color:var(--ink-3); display:flex; align-items:center; justify-content:center;
    font-size:11.5px;
  }

  /* PAGE PILIER ITE */
  .pillar-hero{
    padding:60px 40px 60px;
  }
  .pillar-hero .wrap{
    max-width:1180px; margin:0 auto;
    display:grid; grid-template-columns:1.1fr 1fr; gap:50px; align-items:center;
  }
  .pillar-hero h1{
    font-family:"Google Sans Flex", "Inter", sans-serif; font-weight:700;
    font-size:56px; line-height:1.02;
    margin:14px 0 18px; color:var(--ink); letter-spacing:-1.4px;
  }
  .pillar-hero h1 em{ color:var(--ink); font-style:normal }
  .pillar-hero h1 .dot-o{ color:var(--accent); font-style:normal }
  .pillar-hero p{ color:var(--ink-2); font-size:16px; line-height:1.6; max-width:560px }
  .pillar-hero .metrics{
    display:flex; gap:44px; margin-top:34px;
    padding-top:26px; border-top:1px solid var(--line);
  }
  .pillar-hero .metrics div b{
    display:block; font-family:"Google Sans Flex", "Inter", sans-serif;
    font-size:34px; color:var(--brand); font-weight:700; letter-spacing:-.5px;
  }
  .pillar-hero .metrics div span{
    font-size:11.5px; color:var(--ink-3);
    text-transform:uppercase; letter-spacing:1.2px; font-weight:600;
  }
  .pillar-hero .ph{
    background:var(--accent-soft); border:1px dashed var(--wf-line); border-radius:var(--radius-lg);
    aspect-ratio: 4/5;
    color:var(--ink-3); display:flex; align-items:center; justify-content:center;
    font-size:12px; position:relative; overflow:hidden;
  }
  /* ============= TABLETTE (≤1024px) ============= */
  @media (max-width: 1024px){
    .pillar-hero{ padding:48px 28px }
    .pillar-hero .wrap{ gap:32px }
    .pillar-hero h1{ font-size:44px }
  }

  /* ============= MOBILE (≤768px) ============= */
  @media (max-width: 768px){
    .pillars{ display:grid; grid-template-columns:1fr; gap:18px }
    .pillar{
      grid-template-columns:1fr; padding:0 0 20px; border-radius:var(--radius);
      background:#fff; border:1px solid var(--line); gap:0;
      overflow:hidden;
    }
    /* L'image colle au top et hérite de l'arrondi du parent (clip via overflow:hidden) */
    .pillar .txt,
    .pillar:nth-child(even) .txt{ order:2; padding:18px 20px 0 }
    .pillar .ph,
    .pillar:nth-child(even) .ph{
      order:1; margin:0; border-radius:0;
      min-height:200px; aspect-ratio:auto; height:200px;
      border:0;
    }
    .pillar-hero{ padding:32px 18px }
    .pillar-hero .wrap{ grid-template-columns:1fr; gap:28px }
    .pillar-hero h1{ font-size:36px }
    .pillar-hero .metrics{ flex-wrap:wrap; gap:22px }
  }


/* ════════════════════════════════════════════════════════════════════
   SINGLE RÉALISATION — refonte template
   Scope strict : .real-single (n'impacte pas l'archive ni le hub)
   ════════════════════════════════════════════════════════════════════ */

.real-single { color: var(--ink); }

/* ─── 1. HEAD : titre centré + chips meta (pas de hero coloré) ─ */
.real-head {
  padding: 48px 40px 32px;
  text-align: center;
  background: transparent;
}
.real-head__title {
  font-family: "Google Sans Flex", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0 auto 22px;
  max-width: 880px;
}
.real-head__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
}
.real-head__meta .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-full);
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-2); letter-spacing: 0.2px;
}
.real-head__meta .chip svg { opacity: 0.65; color: var(--ink-3); }
.real-head__meta .chip.chip-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11.5px;
}
.real-head__meta .chip.chip-accent svg { color: inherit; opacity: 0.85; }

/* ─── 2. AVANT / APRÈS COMPARAISON DRAG ──────────────────────── */
.real-compare {
  padding: 56px 40px;
  background: var(--paper-2);
}
.real-compare .head {
  margin-bottom: 24px;
  text-align: center;
}
.compare {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: var(--paper-2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.compare__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}
.compare__before-wrap {
  position: absolute; inset: 0;
  width: 50%; /* contrôlé par JS via --pos */
  overflow: hidden;
  will-change: width;
}
.compare__before-wrap .compare__img {
  /* L'image avant doit garder ses dimensions absolues malgré le clip parent */
  width: 100vw;
  max-width: 1200px;
  height: 100%;
}
.compare__label {
  position: absolute;
  top: 18px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.66);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  border-radius: var(--radius-full);
  pointer-events: none;
}
.compare__label--before { left: 18px; background: rgba(20,20,20,0.78); }
.compare__label--after  { right: 18px; background: var(--accent); color: var(--ink); }
/* Le bouton EST le cercle 52px avec les chevrons dedans.
   La barre verticale traverse le bouton en arrière-plan via ::before
   (top/bottom négatifs pour atteindre les bords du conteneur). */
.compare__handle {
  position: absolute;
  top: 50%; /* centré vertical */
  left: 50%; /* contrôlé par JS */
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: ew-resize;
  display: flex; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.28);
  z-index: 5;
}
.compare__handle::before {
  /* La barre verticale fine qui traverse toute l'image, derrière le bouton */
  content: "";
  position: absolute;
  left: 50%;
  top: -2000px; bottom: -2000px;
  width: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}
.compare__handle svg {
  position: relative;
  flex: 0 0 auto;     /* anti-shrink flex pour que les SVG conservent leur taille */
  color: var(--ink);
}

/* ─── 3-bis. PERFORMANCE : DPE avant/après, économies, avis lié ─ */
.real-perf {
  padding: 40px 40px 8px;
  background: var(--paper-2);
}
.real-perf__panel {
  background: #fff;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
/* Classe énergétique : badge DPE avant → flèche → badge DPE après */
.real-perf__dpe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.real-perf__dpe-label {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  margin-right: 4px;
}
.real-perf__dpe-badge {
  width: 56px;
  height: 56px;
  display: block;
}
.real-perf__dpe-arrow { color: var(--ink-4); flex: 0 0 auto; }
/* Pills résultats chiffrés (économies, plus-value) */
.real-perf__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.real-perf__pill {
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
}
.real-perf__pill strong { color: var(--accent); font-weight: 800; margin-left: 2px; }
.real-perf__pill-note { color: var(--accent); font-weight: 600; font-size: 0.82em; margin-left: 1px; }
/* Avis client lié (Google / Eldo) */
.real-perf__review {
  margin: 4px 0 0;
  max-width: 640px;
  border-top: 1px solid var(--paper-2);
  padding-top: 20px;
}
.real-perf__review-stars { color: var(--accent-warm); font-size: 18px; letter-spacing: 2px; }
.real-perf__review blockquote {
  margin: 10px 0 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
}
.real-perf__review-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.real-perf__review-author { display: flex; flex-direction: column; line-height: 1.3; }
.real-perf__review-author b { color: var(--ink); }
.real-perf__review-author span { color: var(--ink-3); font-size: 13px; }
.real-perf__review-source { height: 24px; width: auto; opacity: 0.9; }

/* Avis client vidéo (témoignage oEmbed YouTube/Vimeo) */
.proof__video {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 18px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.proof__video iframe,
.proof__video video,
.proof__video embed,
.proof__video object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── 4-bis. GALERIE SLIDER (Swiper) ─────────────────────────── */
/* Le wrapper .real-gallery__frame est la zone clipée (border-radius +
   overflow:hidden). Les images à l'intérieur sont plates, c'est leur
   translation qui est masquée par le clip du parent.
   La pagination vit HORS du frame pour ne pas être clippée. */
.real-gallery {
  padding: 56px 40px;
  background: var(--paper-2);
}
.real-gallery .head { text-align: center; margin-bottom: 24px; }
.real-gallery__frame {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;             /* clip qui contient le slide */
  box-shadow: 0 24px 64px rgba(0,0,0,0.10);
  position: relative;
  background: #000;
  isolation: isolate;            /* nouveau stacking context */
}
.real-swiper {
  width: 100%;
  position: relative;
  border-radius: 0;              /* pas de radius sur le swiper lui-même */
  overflow: visible;             /* on laisse le parent clipper */
}
.real-swiper .swiper-wrapper {
  display: flex;
}
.real-swiper .swiper-slide {
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 0;              /* images plates, jamais arrondies */
  overflow: hidden;
}
.real-swiper .swiper-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.real-swiper .swiper-button-prev,
.real-swiper .swiper-button-next {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  margin-top: -26px;
  border: 0;
  cursor: pointer;
  z-index: 5;
}
.real-swiper .swiper-button-prev::after,
.real-swiper .swiper-button-next::after {
  font-size: 17px;
  font-weight: 800;
}
/* Pagination externe au frame (donc non clippée par le border-radius) */
.real-gallery__pagination {
  max-width: 1200px;
  margin: 22px auto 0;
  text-align: center;
}
.real-gallery__pagination .swiper-pagination {
  position: relative;
  bottom: auto !important;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}
.real-gallery__pagination .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: var(--ink-3); opacity: 0.4;
  transition: all .2s ease;
  cursor: pointer;
}
.real-gallery__pagination .swiper-pagination-bullet-active {
  background: var(--accent); opacity: 1;
  width: 22px; border-radius: 4px;
}

/* ─── 4. CHANTIER : prose + sidebar specs ────────────────────── */
.real-content {
  padding: 56px 40px;
  background: var(--paper-2);
}
/* La specs-card vit sur fond paper-2 → on passe en blanc pour contraste */
.specs-card { background: #fff; }
.real-content__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
.real-content__prose .head { margin-bottom: 28px; }
.real-content__prose .article-prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}
.real-content__prose .article-prose p {
  margin: 0 0 18px;
}
.real-content__prose .article-prose p:first-child {
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
}
.real-content__prose .article-prose strong { color: var(--ink); }
.real-content__prose .article-prose a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.18);
  text-underline-offset: 3px;
}
.real-content__prose .article-prose ul {
  padding-left: 22px;
  margin: 0 0 18px;
}
.real-content__prose .article-prose li { margin: 6px 0; }

.real-content__specs { position: sticky; top: 100px; }
.specs-card {
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.specs-card__title {
  font-family: "Google Sans Flex", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--ink-3);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.specs-card__list {
  display: grid;
  grid-template-columns: 100px 1fr;
  row-gap: 14px;
  column-gap: 16px;
  margin: 0 0 24px;
  font-size: 13.5px;
}
.specs-card__list dt {
  color: var(--ink-3);
  font-weight: 500;
}
.specs-card__list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.specs-card__cta {
  display: block; width: 100%;
  text-align: center;
  padding: 14px 20px;
}

/* ─── 6. AUTRES RÉALISATIONS ─────────────────────────────────── */
.real-related { padding: 56px 40px; background: var(--paper-2); }
.real-related .head { text-align: center; margin-bottom: 28px; }
.real-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  max-width: 1280px;
  margin: 0 auto;
}
.real-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.real-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}
.real-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2) center/cover no-repeat;
}
.real-card__chip {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 11px;
  background: var(--accent);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  border-radius: var(--radius-full);
}
.real-card__body { padding: 16px 18px 20px; }
.real-card__title {
  margin: 0 0 6px;
  font-family: "Google Sans Flex", "Inter", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.real-card__meta {
  font-size: 12.5px;
  color: var(--ink-3);
}
.real-related__cta { text-align: center; margin-top: 44px; }

/* ─── 7. FORMULAIRE DEVIS ────────────────────────────────────── */
.real-quote { padding: 56px 40px; }
.real-quote .head { text-align: center; margin-bottom: 32px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .real-head { padding: 48px 22px 32px; }
  .real-head__title { font-size: clamp(26px, 6vw, 36px); }

  .real-compare, .real-gallery, .real-content, .real-related, .real-quote {
    padding: 40px 22px;
  }
  .real-perf { padding: 32px 22px 4px; }
  .real-perf__panel { padding: 24px 20px; gap: 18px; }
  .real-perf__review blockquote { font-size: 15px; }
  .compare { aspect-ratio: 4 / 3; }
  .compare__handle::before { width: 44px; height: 44px; }

  .real-content__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .real-content__specs { position: static; }

  .real-related__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .real-swiper .swiper-button-prev,
  .real-swiper .swiper-button-next { width: 40px; height: 40px; margin-top: -20px; }
  .real-swiper .swiper-button-prev::after,
  .real-swiper .swiper-button-next::after { font-size: 14px; }
}

@media (max-width: 600px) {
  .real-head__meta .chip { font-size: 11.5px; padding: 5px 10px; }
  .real-related__grid { grid-template-columns: 1fr; }
}

/* Fix head section "Le chantier" : titre + em alignés gauche */
.real-content__prose .head.head-left,
.real-content__prose .head {
  text-align: left;
}
.real-content__prose .head .title {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  margin-left: 0;
}
.real-content__prose .head .title em {
  font-style: normal;
  white-space: normal;
  display: inline;
}
.real-content__prose .head .eyebrow {
  justify-content: flex-start;
}

/* Finitions v2 */
.real-related__grid .real-card { display: flex; flex-direction: column; }
.real-related__grid .real-card__thumb { flex: 0 0 auto; }
.real-related__grid .real-card__body { flex: 1 1 auto; min-height: 88px; }


/* Quote form : centrer + cap la largeur */
.real-quote .wpcf7,
.real-quote form[class*="iso"] {
  max-width: 880px;
  margin: 0 auto;
}


/* ════════════════════════════════════════════════════════════════════
   ARCHIVE RÉALISATIONS — page /realisations/
   ════════════════════════════════════════════════════════════════════ */

.real-archive-head {
  padding: 56px 40px 32px;
  text-align: center;
}
.real-archive-head__title {
  font-family: "Google Sans Flex", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin: 14px auto 18px;
  max-width: 880px;
}
.real-archive-head__title em { color: var(--accent); font-style: normal; }
.real-archive-head__lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ─── Carte Leaflet ──────────────────────────────────────────────── */
.real-archive-map {
  padding: 24px 40px 56px;
  background: var(--paper-2);
}
.real-archive-map .head { text-align: center; margin-bottom: 24px; }
.real-map {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.10);
  z-index: 0;
}
.real-map__hint {
  text-align: center;
  margin: 18px auto 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* Leaflet : skin du marqueur isoface */
.leaflet-iso-marker {
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Google Sans Flex", "Inter", sans-serif;
  font-size: 12px; font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.leaflet-iso-marker--big { font-size: 14px; }
.leaflet-popup-content {
  margin: 14px 16px !important;
  font-family: inherit !important;
  min-width: 160px;
}
.leaflet-popup-content strong { font-size: 14px; color: var(--ink); }
.leaflet-popup-content a {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
}
.leaflet-popup-content a:hover { text-decoration: underline; }
.leaflet-popup-tip { background: #fff !important; }

/* ─── Barre de filtres ───────────────────────────────────────────── */
.real-archive-filters {
  padding: 32px 40px 16px;
  background: transparent;
}
.real-filters-bar {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
}
.real-filters-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.real-filters-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--ink-3);
  margin-right: 4px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.filter-chip:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}
.filter-chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-chip__count {
  display: inline-block;
  padding: 1px 8px;
  background: rgba(0,0,0,0.08);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}
.filter-chip.on .filter-chip__count {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.filter-chip.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-3);
  font-size: 12.5px;
  padding: 6px 10px;
}
.filter-chip.ghost:hover { color: var(--ink); }

.filter-select {
  padding: 8px 32px 8px 14px;
  background: var(--paper-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23677685' stroke-width='2' stroke-linecap='round' d='M1 1l5 5 5-5'/></svg>") right 12px center / 10px no-repeat;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--ink-2);
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  max-width: 240px;
}
.filter-select:focus {
  outline: 0;
  border-color: var(--ink);
  color: var(--ink);
}

.real-filters-reset {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}
.real-filters-count {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
}

/* ─── Grille ─────────────────────────────────────────────────────── */
.real-archive-grid {
  padding: 32px 40px 56px;
}
.real-archive__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.real-card--archive {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.real-card--archive:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}
.real-card--archive .real-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2) center/cover no-repeat;
  flex: 0 0 auto;
}
.real-card--archive .real-card__body {
  padding: 16px 18px 20px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.real-card--archive .real-card__title {
  margin: 0;
  font-family: "Google Sans Flex", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.real-card--archive .real-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
}
.real-card--archive .real-card__meta svg { opacity: 0.7; }

/* État « aucun résultat » */
.real-archive__empty {
  max-width: 480px;
  margin: 64px auto;
  text-align: center;
  padding: 40px 24px;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
}
.real-archive__empty p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 15px;
}

/* ─── Scroll infini ─────────────────────────────────────────────
   Zone sentinelle observée par archive-blog.js : un simple spinner
   discret affiché tant qu'il reste des cards à révéler au scroll. */
.real-archive__pagination {
  margin-top: 40px;
}
.real-archive__sentinel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
}
.real-archive__sentinel[hidden] {
  display: none;
}
.real-archive__spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--line-2);
  border-top-color: var(--accent);
  animation: real-archive-spin .7s linear infinite;
}
@keyframes real-archive-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .real-archive__spinner { animation-duration: 1.6s; }
}

/* ─── Bloc SEO long-tail ──────────────────────────────────────── */
.real-archive-seo {
  padding: 64px 40px;
  background: var(--paper-2);
}
.real-archive-seo .wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
}
.real-archive-seo__title {
  font-family: "Google Sans Flex", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--ink);
}
.real-archive-seo__content {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  .real-archive-head { padding: 40px 22px 24px; }
  .real-archive-map { padding: 16px 22px 40px; }
  .real-archive-filters { padding: 24px 22px 12px; }
  .real-archive-grid { padding: 24px 22px 40px; }
  .real-archive-seo { padding: 48px 22px; }
  .real-archive__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .real-filters-reset { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
  .real-archive__grid { grid-template-columns: 1fr; }
  .filter-chip { padding: 6px 11px; font-size: 12px; }
  .filter-chip__count { font-size: 10.5px; padding: 1px 6px; }
}

/* ─── Leaflet clusters (skin ISO&FACE) ───────────────────────── */
.leaflet-iso-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.30);
  color: #fff;
  font-family: "Google Sans Flex", "Inter", sans-serif;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease;
}
.leaflet-iso-cluster:hover { transform: scale(1.06); }
.leaflet-iso-cluster span {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.leaflet-iso-cluster small {
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 2px;
  opacity: 0.88;
}
/* Reset le style par défaut de la lib markercluster */
.marker-cluster, .marker-cluster div { background: transparent !important; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: transparent !important; }


/* ════════════════════════════════════════════════════════════════════
   AUTHOR ARCHIVE — /author/{slug}/
   ════════════════════════════════════════════════════════════════════ */

.author-hero {
  padding: 56px 40px 32px;
}
.author-hero .wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
}
.author-hero__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 32px 36px;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
}
.author-hero__avatar {
  flex-shrink: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper);
}
.author-hero__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.author-hero__info { flex: 1; }
.author-hero__info .eyebrow { margin-bottom: 10px; justify-content: flex-start; }
.author-hero__name {
  margin: 0 0 6px;
  font-family: "Google Sans Flex", "Inter", sans-serif;
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.6px;
  line-height: 1.1;
}
.author-hero__role {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.author-hero__bio {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 620px;
}
.author-hero__meta {
  display: inline-block;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

@media (max-width: 700px) {
  .author-hero { padding: 32px 22px 16px; }
  .author-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 22px;
  }
  .author-hero__avatar { width: 88px; height: 88px; }
}


/* ════════════════════════════════════════════════════════════════════
   FALLBACK PICTO ISO&FACE — cards sans featured image
   - Orange (brand) sur l'archive /realisations/ et son cross-sell
   - Vert (brand-2) sur /conseils/, archive auteur, et les related articles
   ════════════════════════════════════════════════════════════════════ */

.real-card__thumb--empty {
  position: relative;
  background: var(--accent-soft) !important; /* surcharge background-image:none */
  overflow: hidden;
}
.real-card__thumb--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--brand);
  -webkit-mask-image: url("../images/picto-isoface-mark.svg");
          mask-image: url("../images/picto-isoface-mark.svg");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: 42% auto;
          mask-size: 42% auto;
  opacity: 0.55;
  pointer-events: none;
}

/* ─── Variante verte pour les articles / archive auteur ────────── */
#blog-archive-grid .real-card__thumb--empty {
  background: rgba(0, 120, 53, 0.12) !important;
}
#blog-archive-grid .real-card__thumb--empty::after {
  background-color: var(--brand-2);
}

/* Le real-card__chip (badge orange catégorie/service) doit toujours rester
   au-dessus du picto fallback */
.real-card__thumb--empty .real-card__chip { position: relative; z-index: 2; }
