/* ==========================================================================
   Furnality News — Direction artistique éditoriale
   Alignée sur global.css (angles droits, filets 1px, hiérarchie presse/TV)
   ========================================================================== */

:root {
  --n-red: #ff1d25;
  --n-red-d: #9e0b11;
  --n-ink: #0f1115;
  --n-text: #1f2329;
  --n-muted: #525866;
  --n-line: #e5e7eb;
  --n-line-strong: #111111;
  --n-soft: #f8f9fa;

  --rc: #ff1d25;
  --rt: #c81018;
  --rd: #2b0406;
}

.rub-rouge  { --rc: #ff1d25; --rt: #c81018; --rd: #2b0406; }
.rub-rose   { --rc: #ff007f; --rt: #b8005c; --rd: #38001c; }
.rub-orange { --rc: #ff6600; --rt: #c24d00; --rd: #3b1700; }
.rub-jaune  { --rc: #fbc531; --rt: #8a6500; --rd: #382900; }
.rub-bleu   { --rc: #0055ff; --rt: #0044cc; --rd: #00143d; }
.rub-vert   { --rc: #10d050; --rt: #087a2e; --rd: #032910; }
.rub-mauve  { --rc: #7f00ff; --rt: #6200c4; --rd: #1d003b; }
.rub-marron { --rc: #944613; --rt: #75360d; --rd: #291204; }

.n-main {
  padding-bottom: 56px;
  color: var(--n-text);
}
.n-main a { text-decoration: none; }
.n-main img { display: block; }
.n-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.n-icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.125em;
}

/* ---------- Barre de progression de lecture (page article) ---------- */
.n-progress {
  position: fixed;
  top: 72px;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--rc);
  z-index: 45;
  transition: width 0.08s linear;
}

/* ---------- Bandeau supérieur (Titre + Date/Heure + Alertes + Recherche) ---------- */
.n-band {
  background: #ffffff;
  position: relative;
}
.n-band-top {
  border-bottom: 1px solid var(--n-line);
}
.n-band-top .n-wrap {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.n-band-head {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}
.n-band-title {
  color: var(--n-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.n-band-title::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--n-red);
  display: inline-block;
  flex-shrink: 0;
}
.n-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--n-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: 16px;
  border-left: 1px solid var(--n-line);
  font-variant-numeric: tabular-nums;
  display: none;
  gap: 12px;
}
.n-clock {
  font-weight: 700;
  color: var(--n-ink);
  padding-left: 12px;
  border-left: 1px solid var(--n-line);
}
@media (min-width: 768px) {
  .n-date {
    display: inline-flex !important;
    align-items: center;
  }
}

.n-band-actions {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.n-push-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--n-ink);
  color: #ffffff;
  border: 1px solid var(--n-ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.n-push-btn:hover:not(:disabled) {
  background: var(--n-red);
  border-color: var(--n-red);
}
.n-push-btn.is-subscribed {
  background: var(--n-soft);
  color: var(--n-ink);
  border-color: var(--n-line);
  cursor: default;
}
.n-push-btn[hidden] {
  display: none !important;
}

.n-search {
  display: flex !important;
  align-items: center;
  flex-shrink: 0;
}
.n-search input {
  background: var(--n-soft);
  border: 1px solid var(--n-line);
  color: var(--n-ink);
  font-family: inherit;
  font-size: 12.5px;
  padding: 7px 12px;
  width: 210px;
  outline: none;
  transition: border-color 0.15s, background 0.15s, width 0.2s;
}
.n-search input::placeholder { color: var(--n-muted); }
.n-search input:focus {
  background: #ffffff;
  border-color: var(--n-ink);
  width: 260px;
}

/* ---------- Deuxième ligne : toutes les catégories ---------- */
.n-band-cats {
  background: #ffffff;
  border-bottom: 2px solid var(--n-line-strong);
}
.n-band-cats .n-wrap {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.n-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.n-nav::-webkit-scrollbar { display: none; }

.n-nav a {
  color: var(--n-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 13px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.n-nav a:hover {
  color: var(--n-ink);
  background: var(--n-soft);
  border-bottom-color: var(--rc);
}
.n-nav a.is-active {
  color: var(--n-ink);
  background: var(--n-soft);
  border-bottom-color: var(--rc);
}
.n-nav a .n-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--rc);
  flex-shrink: 0;
}

.n-cat-scroll {
  width: 32px;
  flex-shrink: 0;
  background: var(--n-soft);
  border: 0;
  border-left: 1px solid var(--n-line);
  border-right: 1px solid var(--n-line);
  color: var(--n-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.n-cat-scroll:hover {
  background: var(--n-ink);
  color: #ffffff;
}
.n-cat-scroll[hidden] {
  display: none !important;
}

.n-cat-all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  margin-left: auto;
  border: 0;
  border-left: 1px solid var(--n-line);
  background: transparent;
  color: var(--n-ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.n-cat-all:hover {
  background: var(--n-soft);
  color: var(--n-red);
}
.n-cat-all svg {
  transition: transform 0.2s ease;
}

.n-band-cats.is-expanded .n-nav {
  flex-wrap: wrap;
  overflow-x: visible;
  padding: 8px 0;
  gap: 6px;
}
.n-band-cats.is-expanded .n-nav a {
  padding: 8px 12px;
  border: 1px solid var(--n-line);
  border-bottom: 3px solid transparent;
}
.n-band-cats.is-expanded .n-nav a:hover,
.n-band-cats.is-expanded .n-nav a.is-active {
  border-bottom-color: var(--rc);
}
.n-band-cats.is-expanded .n-cat-scroll {
  display: none !important;
}
.n-band-cats.is-expanded .n-cat-all {
  background: var(--n-soft);
  color: var(--n-red);
}
.n-band-cats.is-expanded .n-cat-all svg {
  transform: rotate(180deg);
}

/* ---------- En-têtes de section & métadonnées ---------- */
.n-section { padding: 44px 0 8px; }
.n-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 2px solid var(--n-line-strong);
  padding-top: 14px;
  margin-bottom: 22px;
  position: relative;
}
.n-sec-head::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 56px;
  height: 4px;
  background: var(--rc);
}
.n-sec-head h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--n-ink);
}
.n-sec-head a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rt);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.n-sec-head a:hover { text-decoration: underline; }

.n-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt);
}
.n-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--rc);
  display: inline-block;
}
.n-meta {
  font-size: 12px;
  color: var(--n-muted);
  font-weight: 500;
}

/* ---------- Cartes article ---------- */
.n-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
}
.n-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--n-soft);
  border: 1px solid var(--n-line);
}
.n-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.n-card:hover .n-thumb img { transform: scale(1.03); }
.n-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rd) 0%, #16181d 100%);
  border: 0;
}
.n-thumb--empty span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 14px;
}
.n-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--rc);
}

.n-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--n-ink);
  transition: color 0.15s;
}
.n-card:hover .n-title {
  color: var(--rt);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.n-chapo {
  font-size: 14px;
  color: var(--n-muted);
  line-height: 1.55;
}

.n-card--sm .n-title { font-size: 15.5px; }

.n-card--compact {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 6px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--n-line);
  align-items: start;
}
.n-card--compact:first-child { padding-top: 0; }
.n-card--compact:last-child { border-bottom: 0; padding-bottom: 0; }
.n-card--compact .n-thumb {
  grid-column: 2;
  grid-row: 1 / span 3;
}
.n-card--compact .n-title { font-size: 15.5px; line-height: 1.3; }

.n-card--text {
  padding-right: 20px;
  border-right: 1px solid var(--n-line);
  gap: 8px;
}
.n-card--text:last-child {
  border-right: 0;
  padding-right: 0;
}
.n-card--text .n-title { font-size: 15.5px; }

.n-card--row {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 6px 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--n-line);
  align-items: start;
}
.n-card--row:first-child { padding-top: 0; }
.n-card--row:last-child { border-bottom: 0; padding-bottom: 0; }
.n-card--row .n-thumb { grid-row: 1 / span 3; }
.n-card--row .n-title { font-size: 16.5px; }

/* ---------- Grille À la une ---------- */
.n-front {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  padding-top: 32px;
}
.n-lead {
  grid-column: span 7;
  padding-right: 28px;
  border-right: 1px solid var(--n-line);
}
.n-lead .n-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.n-lead .n-chapo {
  font-size: 15.5px;
  color: #374151;
}
.n-side {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
}
.n-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--n-line);
}
.n-strip:empty { display: none; }

/* ---------- Boutons ---------- */
.n-btn {
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #ffffff;
  color: var(--n-ink) !important;
  border: 1px solid var(--n-ink);
  transition: background 0.15s, color 0.15s;
}
.n-btn:hover {
  background: var(--n-ink);
  color: #ffffff !important;
}
.n-btn--dark {
  background: var(--n-ink);
  color: #ffffff !important;
  border-color: var(--n-ink);
}
.n-btn--dark:hover {
  background: var(--n-red);
  border-color: var(--n-red);
}

/* ---------- Deux colonnes : Plus d'infos + Dernières infos ---------- */
.n-two {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.n-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}

.n-feed {
  border: 1px solid var(--n-line);
  background: #ffffff;
  position: sticky;
  top: 96px;
}
.n-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--n-ink);
  color: #ffffff;
  padding: 13px 18px;
  border-left: 4px solid var(--n-red);
}
.n-feed-head h3 {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.n-feed-list {
  max-height: 640px;
  overflow-y: auto;
}
.n-feed-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--n-line);
  color: inherit;
  transition: background 0.15s;
}
.n-feed-item:hover { background: var(--n-soft); }
.n-feed-item:last-child { border-bottom: 0; }
.n-time {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--rt);
  padding-top: 2px;
}
.n-feed-item .n-title {
  font-size: 14.5px;
  line-height: 1.32;
  margin-top: 3px;
}

/* ---------- Blocs de rubrique ---------- */
.n-rub {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}
.n-rub .n-big {
  grid-column: span 6;
  padding-right: 28px;
  border-right: 1px solid var(--n-line);
}
.n-rub .n-big .n-title { font-size: 23px; }
.n-rub .n-rest {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
}

/* ---------- En-tête de page Rubrique ---------- */
.n-rub-head {
  background: var(--n-soft);
  border-top: 5px solid var(--rc);
  border-bottom: 1px solid var(--n-line);
  padding: 36px 0 32px;
}
.n-rub-head .n-crumbs {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt);
}
.n-rub-head .n-crumbs a { color: var(--n-muted); }
.n-rub-head .n-crumbs a:hover { color: var(--n-ink); text-decoration: underline; }
.n-rub-head h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--n-ink);
  margin-top: 8px;
}
.n-rub-head p {
  font-size: 15.5px;
  color: var(--n-muted);
  margin-top: 10px;
  max-width: 640px;
  line-height: 1.55;
}

/* ---------- Page Article ---------- */
.n-article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 36px;
  align-items: start;
}
.n-article h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin: 12px 0 16px;
  color: var(--n-ink);
}
.n-article .n-lede {
  font-size: 18.5px;
  line-height: 1.55;
  color: #374151;
  font-weight: 500;
  margin-bottom: 20px;
}
.n-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 13px 0;
  border-top: 1px solid var(--n-line);
  border-bottom: 1px solid var(--n-line);
  margin-bottom: 24px;
  font-size: 12.5px;
  color: var(--n-muted);
}
.n-byline b { color: var(--n-ink); font-weight: 700; }

.n-figure {
  margin: 0 0 28px;
  position: relative;
  border: 1px solid var(--n-line);
}
.n-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.n-figure::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--rc);
}

.n-body { max-width: 68ch; }
.n-body p {
  font-size: 17.5px;
  line-height: 1.78;
  margin-bottom: 1.2em;
  color: var(--n-text);
}
.n-share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--n-line);
}
.n-more { margin-top: 44px; }
.n-more .n-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---------- États vides (carte éditoriale) & chargement ---------- */
.n-empty-state {
  background: linear-gradient(180deg, #ffffff 0%, var(--n-soft) 100%);
  border: 1px solid var(--n-line);
  border-top: 4px solid var(--rc);
  padding: 52px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.n-empty-icon {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1px solid var(--n-line);
  color: var(--rt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 4px;
}
.n-empty-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--n-ink);
  line-height: 1.25;
}
.n-empty-desc {
  font-size: 14.5px;
  color: var(--n-muted);
  line-height: 1.6;
  max-width: 480px;
}
.n-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.n-skel {
  background: linear-gradient(90deg, #f3f4f6, #ffffff, #f3f4f6);
  background-size: 200% 100%;
  animation: n-sk 1.4s infinite;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--n-line);
}
@keyframes n-sk { to { background-position: -200% 0; } }

/* ---------- Encart contact rédaction ---------- */
.n-tip {
  margin: 36px 0 0;
  background: var(--n-soft);
  border: 1px solid var(--n-line);
  border-left: 4px solid var(--n-red);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.n-tip h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--n-ink);
}
.n-tip p {
  font-size: 13.5px;
  color: var(--n-muted);
  margin-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .n-lead {
    grid-column: span 12;
    padding-right: 0;
    border-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--n-line);
  }
  .n-side { grid-column: span 12; }
  .n-strip { grid-template-columns: repeat(2, 1fr); }
  .n-card--text:nth-child(2n) { border-right: 0; padding-right: 0; }
  .n-two { grid-template-columns: 1fr; }
  .n-feed { position: static; }
  .n-rub .n-big {
    grid-column: span 12;
    padding-right: 0;
    border-right: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--n-line);
  }
  .n-rub .n-rest { grid-column: span 12; }
  .n-article-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .n-wrap { padding: 0 16px; }
  .n-band-top .n-wrap { gap: 8px; }
  .n-band-title { font-size: 11px; }
  .n-band-actions { gap: 6px; }
  .n-push-btn { padding: 6px 8px; font-size: 10px; }
  .n-search input { width: 120px; padding: 6px 8px; font-size: 12px; }
  .n-search input:focus { width: 150px; }
  .n-lead .n-title { font-size: 24px; }
  .n-grid2 { grid-template-columns: 1fr; }
  .n-strip { grid-template-columns: 1fr; }
  .n-card--text {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--n-line);
  }
  .n-card--text:last-child { border-bottom: 0; padding-bottom: 0; }
  .n-card--compact { grid-template-columns: 1fr 96px; }
  .n-card--row { grid-template-columns: 116px 1fr; gap: 6px 14px; }
  .n-article h1 { font-size: 28px; }
  .n-article .n-lede { font-size: 16.5px; }
  .n-body p { font-size: 16.5px; }
  .n-more .n-three { grid-template-columns: 1fr; }
  .n-rub-head h1 { font-size: 30px; }
  .n-empty-state { padding: 36px 20px; }
  .n-empty-title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
