/* =========================================================
   ÉTUDE DE CAS — Posts Instagram Travaux-Hauteur
   ========================================================= */

/* ---------- Vitrine : téléphone + texte ---------- */
.ig-showcase { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-top: 1rem; }
.ig-phone {
  width: min(340px, 82vw);
  padding: 10px;
  border-radius: 42px;
  background: #0b0f17;
  box-shadow: 0 60px 80px -40px rgba(0, 0, 0, .85), inset 0 0 0 1.5px #2a3242;
}
.ig-phone__screen { border-radius: 33px; overflow: hidden; background: #fff; color: #111; font-family: "Inter", sans-serif; padding-bottom: 2px; }
.ig-top { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1rem .6rem; font-weight: 700; font-size: .95rem; }
.ig-top i { width: 18px; height: 2px; background: #111; box-shadow: 0 -6px 0 #111, 0 6px 0 #111; }
.ig-profile { display: flex; align-items: center; gap: 1rem; padding: .3rem 1rem; }
.ig-avatar {
  flex-shrink: 0;
  width: 66px; height: 66px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(#F67D01, #feda75, #d62976, #962fbf, #F67D01);
}
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 10% 10%; border: 2px solid #fff; }
.ig-counts { display: flex; flex: 1; justify-content: space-around; text-align: center; }
.ig-counts p { font-size: .7rem; color: #444; display: flex; flex-direction: column; }
.ig-counts b { font-size: .95rem; color: #111; }
.ig-bio { padding: .6rem 1rem .9rem; font-size: .75rem; line-height: 1.45; color: #222; }
.ig-tabs { display: flex; border-top: 1px solid #e6e6e6; }
.ig-tabs span { flex: 1; height: 30px; position: relative; }
.ig-tabs span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%); border: 1.5px solid #bbb; border-radius: 2px; }
.ig-tabs .is-on { box-shadow: inset 0 1px 0 #111; }
.ig-tabs .is-on::after { border-color: #111; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-grid button { aspect-ratio: 1; padding: 0; overflow: hidden; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .3s; }
.ig-grid button:hover img { opacity: .85; }

.ig-points { display: grid; gap: .8rem; }
.ig-points li { position: relative; padding-left: 1.4rem; color: #c3cedb; }
.ig-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.ig-points b { color: #fff; font-weight: 600; }

/* ---------- Galerie des posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s;
}
.post:hover { transform: translateY(-6px); border-color: rgba(246, 125, 1, .5); }
.post:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.post__img { aspect-ratio: 1; overflow: hidden; background: #fff; }
.post__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { padding: 1.1rem 1.2rem 1.3rem; }
.post__tag {
  display: inline-block;
  padding: .22rem .6rem;
  border-radius: 999px;
  background: rgba(246, 125, 1, .15);
  color: #ffb27a;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.post h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: .7rem 0 .35rem; line-height: 1.25; }
.post p { color: #aebbcb; font-size: .88rem; line-height: 1.55; }

/* ---------- Agrandissement ---------- */
.lightbox {
  width: min(94vw, 720px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 10, 18, .88); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; background: #fff; }
.lightbox figcaption { margin-top: .8rem; text-align: center; color: #dbe3ec; font-size: .92rem; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
  transition: background .3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); }
.lightbox__close { top: -54px; right: 0; }
.lightbox__nav { top: 45%; }
.lightbox__nav--prev { left: -60px; }
.lightbox__nav--next { right: -60px; }

/* ---------- Typo ---------- */
.ig-type .lp-type__aa { font-family: "Inter", sans-serif; font-weight: 700; color: #1C3C5C; }
.ig-type .lp-type__use b { color: #F67D01; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .ig-showcase { grid-template-columns: 1fr; justify-items: center; }
  .ig-showcase__text { justify-self: stretch; }
}
@media (max-width: 800px) {
  .lightbox__nav { top: auto; bottom: -58px; }
  .lightbox__nav--prev { left: calc(50% - 54px); }
  .lightbox__nav--next { right: calc(50% - 54px); }
}
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } }
