/* ============================================================
   ORIOMA — NEWS PAGE CSS
   Chargé uniquement sur is_page('news') via functions.php
   Hérite de toutes les variables :root de style.css
   ============================================================ */

/* ===== PAGE HEAD ===== */
.page-head {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 85% 50%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 85% 50%, #000 0%, transparent 65%);
  opacity: 0.4;
  pointer-events: none;
}
.page-head .breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 40px;
  display: flex; gap: 12px; align-items: center;
  position: relative;
}
.page-head .breadcrumb a { color: var(--muted); transition: color .2s; }
.page-head .breadcrumb a:hover { color: var(--orioma-blue); }
.page-head .breadcrumb .sep { color: var(--line-strong); }
.page-head .breadcrumb .current { color: var(--orioma-blue); }
.page-head-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
  position: relative;
}
h1.page-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 6.5vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.038em;
  color: var(--ink);
}
h1.page-title em {
  font-style: italic;
  color: var(--orioma-blue);
  font-weight: 300;
}
.page-lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
}

/* ===== NEWSROOM WRAPPER ===== */
.newsroom {
  padding: 100px 0 140px;
}

/* ===== EN-TÊTE NEWSROOM ===== */
.newsroom-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 80px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.newsroom-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orioma-blue);
  box-shadow: 0 0 0 4px var(--orioma-blue-glow);
  animation: nw-dot-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes nw-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--orioma-blue-glow); }
  50%       { box-shadow: 0 0 0 10px transparent; }
}
.newsroom-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.newsroom-title em {
  font-style: italic;
  color: var(--orioma-blue);
  font-weight: 300;
}
.newsroom-live {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orioma-blue);
  padding: 6px 14px;
  background: var(--orioma-blue-glow);
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; gap: 8px;
}
.newsroom-live::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--orioma-blue);
  border-radius: 50%;
  animation: nw-dot-pulse 2s infinite;
}

/* ===== ARTICLE FEATURED ===== */
.nw-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 100px;
  transition: box-shadow .3s, transform .3s, border-color .3s;
  text-decoration: none;
  color: inherit;
}
.nw-featured:hover {
  box-shadow: 0 24px 48px -16px rgba(8, 68, 124, 0.18);
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.nw-featured-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.nw-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
  filter: grayscale(15%);
}
.nw-featured:hover .nw-featured-img img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.nw-featured-badge {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  background: var(--orioma-blue);
  padding: 5px 12px;
  border-radius: 100px;
  z-index: 2;
}
.nw-featured-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.nw-featured-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orioma-blue);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.nw-featured-tag::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--orioma-blue);
}
.nw-featured-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 20px;
  transition: color .2s;
}
.nw-featured:hover .nw-featured-title { color: var(--orioma-blue); }
.nw-featured-excerpt {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 36px;
}
.nw-featured-meta {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.nw-featured-date {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.nw-featured-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--orioma-blue);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: gap .2s, border-color .2s;
}
.nw-featured:hover .nw-featured-cta {
  gap: 12px;
  border-color: var(--orioma-blue);
}

/* ===== SÉPARATEUR DE SECTION ===== */
.nw-section-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orioma-blue);
  margin-bottom: 48px;
  display: flex; align-items: center; gap: 16px;
}
.nw-section-label::before {
  content: ""; width: 24px; height: 1px;
  background: var(--orioma-blue);
}
.nw-section-label::after {
  content: ""; flex: 1; height: 1px;
  background: var(--line);
}

/* ===== GRILLE DE CARDS ===== */
.nw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.nw-card {
  display: flex; flex-direction: column;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: background .25s;
}
.nw-card:hover { background: var(--paper-2); }
.nw-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
.nw-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  filter: grayscale(20%);
}
.nw-card:hover .nw-card-img img {
  transform: scale(1.06);
  filter: grayscale(0%);
}
.nw-card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,22,40,0.5) 100%);
  pointer-events: none;
}
.nw-card-num {
  position: absolute;
  top: 14px; right: 14px; z-index: 2;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  background: rgba(10,22,40,0.45);
  backdrop-filter: blur(4px);
  padding: 3px 9px; border-radius: 4px;
}
.nw-card-body {
  padding: 28px 28px 32px;
  display: flex; flex-direction: column;
  gap: 10px; flex: 1;
}
.nw-card-tag {
  font-family: var(--mono);
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--orioma-blue);
}
.nw-card-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color .2s;
  margin: 0;
}
.nw-card:hover .nw-card-title { color: var(--orioma-blue); }
.nw-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-card-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center;
  justify-content: space-between;
}
.nw-card-date {
  font-family: var(--mono);
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted);
}
.nw-card-arrow {
  font-size: 14px; font-weight: 600;
  color: var(--orioma-blue);
  display: flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.nw-card:hover .nw-card-arrow { gap: 10px; }

/* ===== VOIR TOUT ===== */
.nw-all-wrap {
  margin-top: 80px;
  display: flex; justify-content: center;
}
.nw-all-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 36px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-weight: 600; font-size: 15px;
  color: var(--ink);
  transition: all .25s;
  text-decoration: none;
}
.nw-all-link::after { content: "→"; transition: transform .2s; }
.nw-all-link:hover {
  background: var(--orioma-blue);
  color: var(--white);
  border-color: var(--orioma-blue);
}
.nw-all-link:hover::after { transform: translateX(4px); }

/* ===== LOADER ===== */
.nw-loader {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 0; gap: 20px;
}
.nw-spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--orioma-blue-glow);
  border-top-color: var(--orioma-blue);
  border-radius: 50%;
  animation: nw-spin .8s linear infinite;
}
@keyframes nw-spin { to { transform: rotate(360deg); } }
.nw-loader-text {
  font-family: var(--mono);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
}
.nw-error {
  text-align: center; padding: 60px 0;
  font-size: 15px; color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .page-head { padding: 60px 0 48px; }
  .page-head-grid { grid-template-columns: 1fr; gap: 24px; }
  .nw-featured { grid-template-columns: 1fr; margin-bottom: 60px; }
  .nw-featured-body { padding: 32px 28px; }
  .newsroom { padding: 60px 0 80px; }
  .newsroom-head { margin-bottom: 48px; }
}
@media (max-width: 640px) {
  .nw-grid { grid-template-columns: 1fr; }
  .nw-featured-body { padding: 24px 20px; }
  .nw-all-link { padding: 14px 24px; }
}
