/*
 * projects.css — Page /projects / /projets
 */

body.page-template-page-projects #content,
body.page-template-page-projects #primary,
body.page-template-page-projects main,
body.page-template-page-projects article,
body.page-template-page-projects .hentry,
body.page-template-page-projects .entry-content,
body.page-template-page-projets #content,
body.page-template-page-projets #primary,
body.page-template-page-projets main,
body.page-template-page-projets article,
body.page-template-page-projets .hentry,
body.page-template-page-projets .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.pj-page {
  background: #fff;
  color: #0D0D0D;
}

.pj-line {
  height: 1px;
  background: rgba(13,13,13,.10);
}

.pj-hero {
  padding: 32px 0 32px;
}

.pj-hero .pj-line {
  margin-bottom: 18px;
}

.pj-eyebrow {
  font-size: 13px;
  line-height: 18px;
  color: #737373;
  margin: 0 0 8px;
}

.pj-h1 {
  font-size: 56px;
  line-height: 56px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.pj-h1 span {
  font-size: 32px;
  line-height: 36px;
}

.pj-sub {
  font-size: 13px;
  line-height: 18px;
  color: #404040;
  margin: 0 0 24px;
}

.pj-banner {
  background: #0D0D0D;
  color: #fff;
  padding: 24px 40px;
  margin: 0 0 24px;
}

.pj-banner span {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pj-banner h2 {
  font-size: 22px;
  line-height: 28px;
  margin: 0 0 4px;
}

.pj-banner p {
  font-size: 13px;
  line-height: 18px;
  color: rgba(255,255,255,.72);
  margin: 0;
}

.pj-case {
  padding: 40px 0 40px;
}

.pj-case__head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  border-top: 1px solid rgba(13,13,13,.10);
  padding-top: 16px;
  margin-bottom: 8px;
}

.pj-case__head span {
  font-size: 11px;
  line-height: 16px;
  color: #737373;
  font-weight: 700;
  text-transform: uppercase;
}

.pj-case h2 {
  font-size: 32px;
  line-height: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px 80px;
}

.pj-meta {
  display: flex;
  gap: 40px;
  margin-left: 80px;
  margin-bottom: 12px;
}

.pj-meta span {
  font-size: 13px;
  line-height: 18px;
  color: #404040;
}

.pj-desc {
  max-width: 760px;
  margin: 0 0 24px 80px;
  font-size: 13px;
  line-height: 18px;
  color: #404040;
}

.pj-before {
  margin: 0 0 16px 0;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  color: #737373;
}

.pj-logo-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: 0;
  margin-bottom: 32px;
}

.pj-logo-row img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

.pj-logo-row span {
  color: #737373;
  font-size: 18px;
}

.pj-img-grid {
  margin-left: 0;
  display: grid;
  gap: 24px;
}

.pj-img-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  background: #f5f5f5;
}

.pj-img-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  height: 280px;
}

.pj-img-grid--ngo {
  grid-template-columns: 1.15fr .75fr .85fr;
  height: 360px;
}

.pj-note {
  margin: 24px 0 0 0;
  padding: 20px 24px;
  background: #F7F7F7;
  border-left: 2px solid rgba(13,13,13,.15);
  font-size: 13px;
  line-height: 18px;
  color: #404040;
}

.pj-note--dark {
  background: #0D0D0D;
  color: #fff;
  border-left: none;
}

.pj-cta {
  padding: 48px 0 56px;
}

.pj-cta .pj-line {
  margin-bottom: 40px;
}

.pj-cta h2 {
  font-size: 32px;
  line-height: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 24px 80px;
}

.pj-cta .na-btn {
  margin-left: 80px;
}

@media (max-width: 1100px) {
  .pj-case h2,
  .pj-meta,
  .pj-desc,
  .pj-before,
  .pj-logo-row,
  .pj-img-grid,
  .pj-note,
  .pj-cta h2,
  .pj-cta .na-btn {
    margin-left: 0;
  }

  .pj-img-grid--3,
  .pj-img-grid--ngo {
    grid-template-columns: 1fr;
    height: auto;
  }

  .pj-img-grid img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .pj-h1 {
    font-size: 38px;
    line-height: 40px;
  }

  .pj-h1 span {
    font-size: 24px;
    line-height: 28px;
  }

  .pj-banner {
    padding: 24px;
  }

  .pj-case h2,
  .pj-cta h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .pj-meta {
    flex-direction: column;
    gap: 4px;
  }

  .pj-logo-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ==============================================
   GRILLES IMAGES — valeurs exactes Figma
   Conteneur na-w = 1200px de contenu utile
   ============================================== */

/* Slot image générique */
.pj-gi {
  overflow: hidden;
  background: var(--bg);
  border-radius: 4px;
}
.pj-gi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Conteneur grille générique */
.pj-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

/* Pierre de Seine — BEFORE/AFTER (logos, contain) */
.pj-ba {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 24px;
  height: 120px;
}
.pj-ba__img {
  width: 280px;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg);
  border-radius: 4px;
}
.pj-ba__img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* logos — pas de crop */
  display: block;
}
.pj-ba__arrow {
  font-size: 20px;
  color: var(--soft);
  flex-shrink: 0;
}

/* Pierre de Seine — 3 images Figma : 320 | 320 | 512, h=400 */
.pj-grid--pds {
  grid-template-columns: 320px 320px 512px;
  height: 400px;
}

/* Territoires Submergés — 3 images Figma : 560 | 280 | 280, h=440 */
.pj-grid--ts {
  grid-template-columns: 560px 280px 280px;
  height: 440px;
}

/* Règles de l'Art — 3 images égales Figma : 376 | 376 | 376, h=280 */
.pj-grid--rda {
  grid-template-columns: 376px 376px 376px;
  height: 280px;
}

/* na-proj-* (structure, tadi, résultat, CTA) */
.na-proj-tadi {
  background: var(--ink);
  color: var(--wh);
  padding: 32px 0;
}
.na-proj-tadi .na-lbl    { color: rgba(255,255,255,.45); margin-bottom: 8px; }
.na-proj-tadi__t         { font-size: 20px; font-weight: 700; line-height: 26px; margin: 0 0 8px; color: var(--wh); }
.na-proj-tadi .na-pg-body{ color: rgba(255,255,255,.65); margin: 0; }

.na-proj-case {
  padding: 48px 0;
  /* border-top retiré : la na-rule dans le na-pg-hdr suffit comme séparateur */
}
.na-proj-case .na-pg-hdr   { margin-bottom: 0; }
.na-proj-case__t           { font-size: 28px; font-weight: 800; line-height: 34px; letter-spacing: -.02em; margin: 16px 0 8px; }
.na-proj-case__meta        { display: flex; gap: 32px; margin-bottom: 16px; flex-wrap: wrap; }
.na-proj-case__meta span   { font-size: 13px; color: var(--mid); }
.na-proj-case .na-pg-body  { max-width: 720px; margin-bottom: 0; }

.na-proj-result {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-top: 20px;
  padding: 18px 24px;
  background: var(--bg);
}
.na-proj-result__bar { flex-shrink: 0; width: 2px; background: rgba(13,13,13,.15); border-radius: 1px; }
.na-proj-result p    { font-size: 13px; line-height: 20px; color: var(--mid); margin: 0; }

.na-proj-cta          { padding: 56px 0; border-top: 1px solid rgba(13,13,13,.10); }
.na-proj-cta .na-pg-h2{ font-size: 32px; font-weight: 800; line-height: 38px; margin: 0 0 24px; }

/* Responsive */
@media (max-width: 1100px) {
  .pj-grid--pds { grid-template-columns: 1fr 1fr 1.6fr; }
  .pj-grid--ts  { grid-template-columns: 1.4fr 1fr 1fr; }
  .pj-grid--rda { grid-template-columns: repeat(3, 1fr); }
  .pj-ba__img   { width: 220px; }
}

@media (max-width: 767px) {
  .pj-ba               { flex-direction: column; height: auto; gap: 16px; align-items: flex-start; }
  .pj-ba__img          { width: 100%; height: 100px; }
  .pj-grid--pds,
  .pj-grid--ts,
  .pj-grid--rda        { grid-template-columns: 1fr; height: auto; }
  .pj-gi               { height: 220px; }
  .na-proj-case        { padding: 32px 0; }
  .na-proj-case__t     { font-size: 22px; line-height: 28px; }
  .na-proj-case__meta  { flex-direction: column; gap: 4px; }
  .na-proj-cta .na-pg-h2 { font-size: 24px; line-height: 30px; }
}
