/* =========================================================
   ÉTUDE DE CAS — Newsletter Travaux-Hauteur
   ========================================================= */

/* ---------- Boîte mail ---------- */
.nl-showcase { padding-top: 1rem; }
.inbox {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 60px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
}
.inbox__body { display: grid; grid-template-columns: 300px 1fr; height: clamp(460px, 48vw, 640px); }
.inbox__list { border-right: 1px solid #e6e9ee; background: #f7f8fa; overflow: hidden; }
.mail {
  display: flex;
  gap: .75rem;
  padding: 1rem;
  border-bottom: 1px solid #e6e9ee;
  color: #2b3442;
}
.mail.is-active { background: #fff; box-shadow: inset 3px 0 0 #F67D01; }
.mail strong { font-size: .85rem; }
.mail__subject { font-size: .8rem; font-weight: 600; color: #1f2733; margin: .1rem 0; }
.mail__preview { font-size: .74rem; color: #7a8494; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.mail__avatar {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #193D5C;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
}
.mail__avatar--grey { background: #cfd5dd; color: #4b5563; }

.inbox__read { display: flex; flex-direction: column; min-width: 0; background: #eef1f4; }
.inbox__head { padding: 1rem 1.4rem; background: #fff; border-bottom: 1px solid #e6e9ee; color: #1f2733; }
.inbox__subject { font-weight: 600; font-size: 1.05rem; margin-bottom: .5rem; }
.inbox__from { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; }
.inbox__from small { font-weight: 400; color: #7a8494; }

.inbox__scroll { flex: 1; overflow: hidden; position: relative; padding: 1.2rem 0; }
.inbox__scroll img {
  display: block;
  width: min(92%, 560px);
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .15);
  transform: translateY(0);
  transition: transform 10s cubic-bezier(.45, 0, .55, 1);
}
.inbox__scroll:hover img,
.inbox__scroll:focus img,
.inbox__scroll:focus-visible img { transform: translateY(calc(-100% + clamp(335px, 48vw - 125px, 515px))); }
.inbox__scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: none) { .inbox__scroll { overflow-y: auto; } .inbox__scroll img { transition: none; } }

.nl-hint { margin-top: 1rem; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); text-align: center; }

/* ---------- Blocs ---------- */
.nl-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.nl-block {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s;
}
.nl-block:hover { transform: translateY(-5px); border-color: rgba(246, 125, 1, .5); }
.nl-block img { width: 100%; height: auto; display: block; background: #fff; }
.nl-block__num {
  position: absolute;
  top: .8rem; left: .8rem;
  z-index: 1;
  padding: .25rem .55rem;
  border-radius: 6px;
  background: rgba(7, 20, 35, .8);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
}
.nl-block figcaption { margin-top: auto; }
.nl-block figcaption { padding: 1.2rem 1.3rem 1.4rem; }
.nl-block h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: .4rem; }
.nl-block p { color: #aebbcb; font-size: .9rem; line-height: 1.6; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .inbox__body { grid-template-columns: 1fr; }
  .inbox__list { display: none; }
  .nl-blocks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .inbox__head { padding: .8rem 1rem; }
  .inbox__subject { font-size: .9rem; }

}
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
