/* ============================================================
   REALISATIONS.CSS — Styles spécifiques à la page portfolio
   ============================================================ */

/* ── Grille projets ──────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
}

/* Chaque projet occupe la pleine largeur en layout horizontal */
.project-card {
  background: var(--bg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  transition: background 0.25s;
}
.project-card:hover { background: var(--bg-card); }
.project-card[data-hidden="true"] { display: none; }

/* Alternance : image à droite sur les cartes paires */
.project-card:nth-child(even) { direction: rtl; }
.project-card:nth-child(even) > * { direction: ltr; }

/* ── Vignette image ──────────────────────────────────────── */
.project-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-thumb img {
  width: 100%;
  height: 60%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0.82;
  transition: opacity 0.4s, transform 0.55s var(--ease);
}
.project-thumb img {
  object-position: center center;
}
.project-card:hover .project-thumb img {
  opacity: 1;
  transform: scale(1.04);
}

/* Dégradé bas de l'image au hover */
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(13,13,13,0.55) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover .project-thumb::after { opacity: 1; }

/* Badge URL flottant */
.project-thumb-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(232,228,220,0.8);
  background: rgba(13,13,13,0.75);
  padding: 5px 10px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 0.5px solid rgba(200,169,110,0.25);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.project-card:hover .project-thumb-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ── Corps texte ─────────────────────────────────────────── */
.project-body {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 0.5px solid var(--border);
}
/* La bordure passe à droite quand l'image est à droite */
.project-card:nth-child(even) .project-body {
  border-left: none;
  border-right: 0.5px solid var(--border);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.project-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.project-year {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.06em;
}

.project-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.3rem;
}

.project-url {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
  opacity: 0.65;
}

/* ── Liste des missions ──────────────────────────────────── */
.project-missions { margin-bottom: 1.75rem; }

.project-missions-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 0.5px solid var(--border);
}

.project-mission-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.5rem 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.project-mission-item:last-child { border-bottom: none; }

.project-mission-num {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  margin-top: 2px;
}

.project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ── CTA bas de page ─────────────────────────────────────── */
.folio-cta {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 0.5px solid var(--border);
}
.folio-cta p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  background: var(--bg);
  border: 0.5px solid var(--border-mid);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--sans);
  transition: color 0.2s;
  line-height: 1;
}
.lightbox-close:hover { color: var(--accent); }

.lightbox-img {
  width: 100%;
  overflow: hidden;
  border-bottom: 0.5px solid var(--border);
}
.lightbox-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
  max-height: 460px;
}

.lightbox-body { padding: 2.5rem; }

.lightbox-body .project-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.lightbox-title {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

.lightbox-url {
  font-size: 13px;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.lightbox-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.lightbox-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 2rem;
}
.lightbox-detail {
  background: var(--bg-card);
  padding: 1.25rem;
}
.lightbox-detail-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.lightbox-detail-val {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* Missions dans la lightbox */
.lightbox-missions { margin-bottom: 2rem; }
.lightbox-missions-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 0.5px solid var(--border);
}
.lightbox-missions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.lightbox-missions li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 0.5px solid var(--border);
  line-height: 1.5;
}
.lightbox-missions li:last-child { border-bottom: none; }
.lightbox-missions .lb-num {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* Tablette (< 1024px) — empilé, image 16/9 */
@media (max-width: 1024px) {
  .project-card {
    grid-template-columns: 1fr;
    min-height: auto;
    direction: ltr !important;
  }
  .project-card:nth-child(even) > * { direction: ltr; }

  .project-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
  }
  .project-body {
    border-left: none !important;
    border-right: none !important;
    border-top: 0.5px solid var(--border);
    padding: 2.5rem 2rem;
  }
  .lightbox-detail-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile (< 768px) — image 4/3 pour un bon aperçu */
@media (max-width: 768px) {
  .project-thumb { aspect-ratio: 4 / 3; }
  .project-body { padding: 2rem 1.5rem; }
  .project-title { font-size: 1.5rem; }
  .lightbox-body { padding: 1.5rem; }
  .lightbox-title { font-size: 1.5rem; }
  .lightbox-detail-grid { grid-template-columns: 1fr; }
  .lightbox-img img { max-height: 260px; }
}
    /* ============================================================
       RÉALISATIONS — Nouveau concept
       Grille projets visuels + galerie mots-clés + logos
    ============================================================ */

    /* ── Section générale réalisations ─────────────────────── */
    .real-section {
      padding: 5rem 3rem;
      border-top: 0.5px solid var(--border);
    }
    .real-inner {
      max-width: 1200px;
      margin: 0 auto;
    }
    .real-section-header {
      margin-bottom: 3.5rem;
    }
    .real-section-header .label {
      display: block;
      margin-bottom: 0.75rem;
    }
    .real-section-header h2 {
      font-family: var(--serif);
      font-size: clamp(1.8rem, 3vw, 2.6rem);
      font-weight: 400;
      margin-bottom: 0.9rem;
      color: var(--text);
    }
    .real-section-header p {
      font-size: 14px;
      color: var(--text-muted);
      max-width: 500px;
      line-height: 1.75;
    }

    /* ── Grille projets visuels (3 col desktop) ─────────────── */
    .projects-visual-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
    }

    .pv-card {
      background: var(--bg);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: background 0.25s;
    }
    .pv-card:hover {
      background: var(--bg-card);
    }

    /* Visuel en haut */
    .pv-thumb {
      position: relative;
      overflow: hidden;
      aspect-ratio: 4 / 3;
      background: var(--bg-card);
    }
    .pv-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      display: block;
      opacity: 0.82;
      transition: opacity 0.4s, transform 0.55s var(--ease);
    }
    .pv-card:hover .pv-thumb img {
      opacity: 1;
      transform: scale(1.04);
    }
    /* Placeholder quand pas d'image */
    .pv-thumb-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg-alt);
      border-bottom: 0.5px solid var(--border);
    }
    .pv-thumb-placeholder svg {
      width: 48px;
      height: 48px;
      opacity: 0.18;
      stroke: var(--text);
      fill: none;
    }

    /* Dégradé overlay hover */
    .pv-thumb::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, transparent 50%, rgba(13,13,13,0.4) 100%);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.4s;
    }
    .pv-card:hover .pv-thumb::after { opacity: 1; }

    /* Descriptif en bas */
    .pv-body {
      padding: 1.75rem 1.75rem 2rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      border-bottom: 0.5px solid var(--border);
      flex: 1;
    }

    .pv-client {
      font-family: var(--serif);
      font-size: 1.1rem;
      font-weight: 400;
      color: var(--text);
      line-height: 1.2;
    }

    .pv-services {
      font-size: 12px;
      letter-spacing: 0.04em;
      color: var(--text-muted);
      line-height: 1.65;
      font-family: var(--sans);
    }

    /* ── Galerie mots-clés (clients + prestations) ──────────── */
    .keywords-section {
      padding: 5rem 3rem;
      border-top: 0.5px solid var(--border);
      background: var(--bg-alt);
    }
    .keywords-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .keywords-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
    }

    .kw-item {
      background: var(--bg-alt);
      padding: 1.5rem 1.75rem;
      transition: background 0.2s;
      position: relative;
      overflow: hidden;
    }
    .kw-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 2px;
      background: var(--accent);
      opacity: 0;
      transition: opacity 0.3s;
    }
    .kw-item:hover {
      background: var(--bg-card);
    }
    .kw-item:hover::before {
      opacity: 1;
    }

    .kw-client {
      font-family: var(--serif);
      font-size: 1rem;
      font-weight: 400;
      color: var(--text);
      margin-bottom: 0.4rem;
      line-height: 1.2;
    }

    .kw-services {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--accent);
      opacity: 0.75;
      line-height: 1.6;
      font-family: var(--sans);
    }

    /* ── Section logos "ils nous ont fait confiance" ─────────── */
    .trust-section {
      padding: 5rem 3rem;
      border-top: 0.5px solid var(--border);
    }
    .trust-inner {
      max-width: 1200px;
      margin: 0 auto;
    }
    .trust-logos {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 1px;
      background: var(--border);
      margin-top: 3rem;
    }
    .trust-logo-item {
      background: var(--bg);
      aspect-ratio: 3 / 2;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      transition: background 0.25s;
    }
    .trust-logo-item:hover {
      background: var(--bg-card);
    }
    .trust-logo-item img {
      max-width: 100%;
      max-height: 56px;
      width: auto;
      height: auto;
      object-fit: contain;
      opacity: 0.6;
      filter: grayscale(1);
      transition: opacity 0.3s, filter 0.3s;
    }
    .trust-logo-item:hover img {
      opacity: 1;
      filter: grayscale(0);
    }
    /* Placeholder logo */
    .trust-logo-placeholder {
      width: 80px;
      height: 36px;
      background: var(--border-mid);
      border-radius: var(--r);
      opacity: 0.35;
    }

    /* ── CTA bas de page ─────────────────────────────────────── */
    .real-cta {
      padding: 5rem 3rem;
      border-top: 0.5px solid var(--border);
      background: var(--bg-card);
    }
    .real-cta-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      flex-wrap: wrap;
    }
    .real-cta-text p {
      font-size: 14px;
      color: var(--text-muted);
      margin-top: 0.5rem;
      max-width: 420px;
      line-height: 1.7;
    }

    /* ── Responsive ──────────────────────────────────────────── */
    @media (max-width: 1024px) {
      .projects-visual-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .keywords-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .trust-logos {
        grid-template-columns: repeat(3, 1fr);
      }
      .real-section,
      .keywords-section,
      .trust-section,
      .real-cta {
        padding: 4rem 2rem;
      }
    }

    @media (max-width: 768px) {
      .projects-visual-grid {
        grid-template-columns: 1fr;
      }
      .keywords-grid {
        grid-template-columns: 1fr;
      }
      .trust-logos {
        grid-template-columns: repeat(2, 1fr);
      }
      .real-section,
      .keywords-section,
      .trust-section,
      .real-cta {
        padding: 3.5rem 1.5rem;
      }
      .real-cta-inner {
        flex-direction: column;
        align-items: flex-start;
      }
    }

    @media (max-width: 480px) {
      .trust-logos {
        grid-template-columns: 1fr;
      }
    }