/* ==========================================================
   Lords of Echoes — page Actualités
   Un carnet de développement : bandeau illustré, sommaire des
   jours dans la marge, un tampon par jour, la première nouvelle
   du jour en vedette et les suivantes en cartes.
   La visionneuse vient de galerie.css / galerie.js.
   ========================================================== */

.page-actualites main { padding-top: var(--header-h); background: #0f1011; }

/* ---------- Bandeau ---------- */
.news-band {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  padding: 40px var(--gutter) 36px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.news-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.news-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 12, 13, .95) 0%, rgba(12, 12, 13, .78) 42%, rgba(12, 12, 13, .25) 100%),
              linear-gradient(180deg, rgba(12, 12, 13, .3) 0%, rgba(12, 12, 13, 0) 40%, rgba(12, 12, 13, .7) 100%);
}
.news-band-copy { max-width: 1240px; width: 100%; margin: 0 auto; }
.news-band-kicker { font-family: var(--font-display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.news-band h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 4.6vw, 66px); line-height: 1.02; color: #f4ecdc; margin-bottom: 10px; }
.news-band-copy > p:not(.news-band-kicker):not(.news-band-last) { font-style: italic; font-size: clamp(17px, 1.4vw, 20px); color: var(--cream); }
.news-band-last {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 7px 14px 6px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 13, .6);
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-2);
}
.news-band-last::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 3px rgba(196, 154, 92, .25); }

/* ---------- Mise en page : sommaire des jours, carnet ---------- */
.news-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(30px, 4vw, 64px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(46px, 5vw, 70px) var(--gutter) 30px;
}
.news-toc { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.news-toc > p { font-family: var(--font-display); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.news-toc ol { list-style: none; margin: 0; padding: 0; }
.news-toc > ol > li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.news-toc > ol > li > a { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.news-toc > ol > li > a b { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--gold); font-family: var(--font-display); font-weight: 400; font-size: 15px; color: var(--gold-light); }
.news-toc > ol > li > a span { font-size: 16px; }
.news-toc > ol > li > a:hover span { color: var(--gold-light); }
.news-toc ol ol { padding: 6px 0 0 46px; }
.news-toc ol ol a { display: block; padding: 3px 0; font-size: 14.5px; line-height: 1.35; color: var(--muted); }
.news-toc ol ol a:hover { color: var(--cream); }

/* ---------- Un jour ---------- */
.day { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(20px, 2.6vw, 34px); margin-bottom: clamp(56px, 6vw, 90px); scroll-margin-top: calc(var(--header-h) + 24px); }
.stamp {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  width: 96px;
  padding: 12px 6px 10px;
  text-align: center;
  background: #121315;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 5px #0f1011, 0 0 0 6px var(--line-soft);
  transform: rotate(-2deg);
}
.stamp small { font-style: italic; font-size: 14px; color: var(--muted); }
.stamp b { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; color: var(--gold-light); margin: 2px 0 4px; }
.stamp span { font-family: var(--font-display); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-2); }
.day-head { font-family: var(--font-display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }

/* ---------- Nouvelles ---------- */
.news { scroll-margin-top: calc(var(--header-h) + 24px); }
.news-media { position: relative; display: block; overflow: hidden; border: 1px solid var(--line-soft); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.news-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s; }
.news-media:hover img { transform: scale(1.03); }
.news-zoom {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 5px 10px 4px;
  font-family: var(--font-display);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(10, 10, 11, .7);
  border: 1px solid var(--line);
  opacity: 0;
  transition: opacity .25s;
}
.news-media:hover .news-zoom { opacity: 1; }
.news-text { padding-top: 18px; }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { padding: 4px 9px 3px; font-family: var(--font-display); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); border: 1px solid var(--line); background: rgba(196, 154, 92, .07); }
.news-text h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.22; color: var(--cream); margin-bottom: 10px; }
.news-text p:not(.news-tags) { font-size: 17.5px; line-height: 1.68; color: #e0d7c4; }

/* La première nouvelle du jour, en vedette */
.news--lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: center; }
.news--lead .news-media img { aspect-ratio: 4 / 3; }
.news--lead .news-text { padding-top: 0; }
.news--lead .news-text h3 { font-size: clamp(26px, 2.6vw, 38px); }
.news--lead .news-text p:not(.news-tags) { font-size: 18.5px; }
.day:first-child .news--lead { grid-template-columns: 1fr; }
.day:first-child .news--lead .news-media img { aspect-ratio: 21 / 9; }
.day:first-child .news--lead .news-text { max-width: 760px; }
.day:first-child .news--lead .news-text h3 { font-size: clamp(30px, 3vw, 44px); }

/* Les suivantes, en cartes */
.day-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 36px); margin-top: clamp(34px, 4vw, 50px); }
.day-grid .news { padding: 14px; background: linear-gradient(180deg, #16171a, #121315); border: 1px solid var(--line-soft); }
.day-grid .news-media { box-shadow: none; }
.day-grid .news-text p:not(.news-tags) { font-size: 16.5px; }

/* ---------- Fin ---------- */
.news-end { text-align: center; padding: 20px var(--gutter) clamp(80px, 9vw, 120px); }
.news-end p { font-style: italic; font-size: 22px; color: var(--cream); margin-bottom: 26px; }
.news-end-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-toc { position: static; }
  .news-toc ol ol { display: none; }
  .news-toc > ol { display: flex; flex-wrap: wrap; gap: 8px 22px; }
  .news-toc > ol > li { border: 0; padding: 4px 0; }
}
@media (max-width: 860px) {
  .news--lead { grid-template-columns: 1fr; }
  .day-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .day { grid-template-columns: 1fr; gap: 14px; }
  .stamp { position: static; flex-direction: row; gap: 8px; width: auto; justify-self: start; padding: 6px 12px; transform: none; }
  .stamp b { font-size: 22px; margin: 0; }
  .news-band { min-height: 240px; }
}
