@charset "UTF-8";
/* Eyefind News (news/*.php) : kiosque, journal, article, rédaction, écriture.
   --oc : couleur du journal (posée en ligne sur l'élément). Thème clair /
   sombre via les variables du site ; les textes à la couleur du journal sont
   éclaircis en sombre pour rester lisibles. */
.nw-body {
  --nw-brand: #0b4ea2;
  --nw-red: #d93025;
  --nw-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}
.nw-body *,
.nw-body *::before,
.nw-body *::after {
  box-sizing: border-box;
}

/* ---- En-tête ------------------------------------------------------------- */
.nw-top {
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nw-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px 8px;
}
.nw-top-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.nw-top-home:hover {
  border-color: var(--link);
  background: var(--link-tint);
}
.nw-top-home svg {
  width: 17px;
  height: 17px;
  color: var(--link);
}
.nw-brand {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(11, 78, 162, 0.25);
}
.nw-brand-eye {
  padding: 5px 9px;
  background: var(--nw-brand);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nw-brand-news {
  padding: 5px 10px 5px 8px;
  background: var(--nw-red);
  color: #fff;
  font-family: var(--nw-serif);
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
}
.nw-top-search {
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  min-width: 0;
  max-width: 460px;
  padding: 4px 4px 4px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
}
.nw-top-search:focus-within {
  border-color: var(--link);
  background: var(--bg);
}
.nw-top-search input {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
}
.nw-top-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--nw-brand);
  color: #fff;
  cursor: pointer;
}
.nw-top-search button svg {
  width: 17px;
  height: 17px;
}
.nw-top-redac {
  flex-shrink: 0;
}
.nw-top-account {
  flex-shrink: 0;
  gap: 10px;
  margin-left: auto;
}
.nw-rubs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 4px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 8px;
}
.nw-rubs a {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
}
.nw-rubs a:hover {
  background: var(--btn-bg);
}
.nw-rubs a.is-current {
  background: var(--nw-brand);
  color: #fff !important;
}

/* ---- Boutons, communs ------------------------------------------------------ */
.nw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text) !important;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s, border-color 0.15s;
}
.nw-btn:hover {
  background: var(--btn-bg);
}
.nw-btn svg {
  width: 16px;
  height: 16px;
}
.nw-btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}
.nw-btn-primary {
  border-color: transparent;
  background: var(--nw-brand);
  color: #fff !important;
}
.nw-btn-primary:hover {
  background: var(--nw-brand);
  filter: brightness(1.12);
}
.nw-btn-outlet {
  border-color: transparent;
  background: var(--oc, var(--nw-brand));
  color: #fff !important;
}
.nw-btn-outlet:hover {
  background: var(--oc, var(--nw-brand));
  filter: brightness(1.12);
}
.nw-btn-light {
  border-color: transparent;
  background: #fff;
  color: #202124 !important;
}
.nw-btn-light:hover {
  background: #fff;
  filter: brightness(0.95);
}
.nw-btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff !important;
}
.nw-btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}
.nw-btn-danger {
  color: var(--danger) !important;
}
.nw-btn-danger:hover {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.nw-link {
  font-size: 14px;
  font-weight: 600;
}
.nw-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 60px;
}
.nw-dateline {
  margin: 4px 0 18px;
  padding: 8px 0;
  border-top: 3px double var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.nw-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 8px 0 20px;
}
.nw-section-head h1 {
  margin: 0;
  font-family: var(--nw-serif);
  font-size: 32px;
  font-weight: 800;
}
.nw-block {
  margin: 34px 0 0;
}
.nw-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--nw-serif);
  font-size: 23px;
  font-weight: 800;
}
.nw-block-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.nw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 50px 20px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  text-align: center;
}
.nw-empty p {
  margin: 0;
  line-height: 1.55;
}
.nw-empty-icon {
  font-size: 40px;
}
.nw-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.nw-toast {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--success-bg);
  color: var(--success);
  font-weight: 500;
}
.nw-status-note {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--warning-bg);
  color: var(--warning);
  font-weight: 500;
}
.nw-errors {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--danger-bg);
  color: var(--danger);
}
.nw-errors p {
  margin: 2px 0;
}

/* ---- Cartes d'articles ------------------------------------------------------- */
.nw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.nw-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.nw-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  color: var(--text) !important;
  text-decoration: none !important;
}
.nw-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  background: var(--btn-bg);
}
.nw-card-media::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  opacity: 0.6;
}
.nw-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.nw-card:hover .nw-card-media img {
  transform: scale(1.04);
}
.nw-card-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--oc);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--nw-serif);
  font-size: 54px;
  font-weight: 800;
}
.nw-card-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.75);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}
.nw-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.nw-card-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nw-card-outlet {
  color: var(--oc);
}
.nw-card-title {
  font-family: var(--nw-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.nw-card:hover .nw-card-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.nw-card-summary {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* À la une : grand article + colonne */
.nw-une {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.nw-card-lead .nw-card-media {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
}
.nw-card-lead .nw-card-title {
  font-size: 32px;
  line-height: 1.18;
  -webkit-line-clamp: 4;
}
.nw-card-lead .nw-card-summary {
  font-size: 16px;
  -webkit-line-clamp: 4;
}
.nw-une-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nw-card-row {
  flex-direction: row;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.nw-card-row:last-child {
  border-bottom: 0;
}
.nw-card-row .nw-card-media {
  flex: 0 0 132px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}
.nw-card-row .nw-card-title {
  font-size: 16.5px;
}

/* Journaux */
.nw-outlets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.nw-outlet {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--oc);
  border-radius: 14px;
  color: var(--text) !important;
  text-decoration: none !important;
  transition: border-color 0.15s, transform 0.15s;
}
.nw-outlet:hover {
  transform: translateY(-2px);
  border-color: var(--oc);
}
.nw-outlet-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nw-outlet-text strong {
  font-size: 15px;
}
.nw-outlet-text span {
  font-size: 12.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nw-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--oc);
  color: #fff;
  font-family: var(--nw-serif);
  font-size: 20px;
  font-weight: 800;
}
.nw-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.nw-logo-lg {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  font-size: 38px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Page d'un journal */
.nw-masthead {
  margin: 0 0 26px;
  padding: 26px 28px;
  border-radius: 24px;
  background: var(--oc);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 60%);
  color: #fff;
}
.nw-masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.nw-masthead-text {
  flex: 1;
  min-width: 200px;
}
.nw-masthead h1 {
  margin: 0;
  font-family: var(--nw-serif);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
}
.nw-masthead-tagline {
  margin: 4px 0 0;
  font-style: italic;
  opacity: 0.9;
}
.nw-masthead-stats {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.85;
}
.nw-follow-form {
  margin: 0;
}
.nw-masthead-desc {
  margin: 16px 0 0;
  max-width: 760px;
  line-height: 1.6;
  opacity: 0.95;
}

/* ---- Article --------------------------------------------------------------- */
.nw-editbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  max-width: 800px;
  margin: 0 auto 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--btn-bg);
  font-size: 13.5px;
}
.nw-article {
  max-width: 800px;
  margin: 0 auto;
}
.nw-article-outlet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--text) !important;
  text-decoration: none !important;
}
.nw-article-outlet span {
  display: flex;
  flex-direction: column;
}
.nw-article-outlet em {
  font-size: 12.5px;
  color: var(--text-muted);
}
.nw-article-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--oc);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nw-article-title {
  margin: 0 0 14px;
  font-family: var(--nw-serif);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.14;
  color: var(--oc);
  overflow-wrap: anywhere;
}
.nw-article-chapo {
  margin: 0 0 16px;
  font-family: var(--nw-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
.nw-article-byline {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.nw-article-byline strong {
  color: var(--text);
}
.nw-article-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.nw-article-tools form {
  margin: 0;
}
.nw-body-text {
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.nw-body-text p {
  margin: 0 0 1.1em;
}
.nw-mark {
  background: none;
  color: var(--oc);
  font-weight: 700;
}
.nw-h {
  clear: both;
  margin: 1.6em 0 0.6em;
  font-family: var(--nw-serif);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--oc);
}
.nw-quote {
  clear: both;
  margin: 1.6em 0;
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--oc);
}
.nw-quote p {
  margin: 0;
  font-family: var(--nw-serif);
  font-size: 23px;
  font-style: italic;
  line-height: 1.5;
}
.nw-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
}
.nw-hr {
  clear: both;
  width: 90px;
  margin: 2em auto;
  border: 0;
  border-top: 3px solid var(--oc);
}
.nw-fig {
  margin: 1.4em 0;
}
.nw-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  cursor: zoom-in;
}
.nw-fig figcaption {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
}
.nw-fig-left,
.nw-fig-right {
  width: 46%;
  margin-top: 0.3em;
}
.nw-fig-left {
  float: left;
  margin-right: 24px;
}
.nw-fig-right {
  float: right;
  margin-left: 24px;
}
.nw-fig-cover {
  margin: 0 0 26px;
}
.nw-fig-cover img {
  border-radius: 18px;
}
.nw-pages {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.nw-page-img {
  margin: 0;
}
.nw-page-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 30px var(--shadow-soft);
  cursor: zoom-in;
}
.nw-page-img figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}
.nw-article-foot {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.nw-article-foot a {
  color: var(--text-muted);
}

/* Visionneuse d'image (sans nouvel onglet) */
.nw-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.88);
  overflow: auto;
}
.nw-viewer img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  cursor: zoom-in;
}
.nw-viewer.is-zoomed {
  align-items: flex-start;
}
.nw-viewer.is-zoomed img {
  max-width: none;
  max-height: none;
  width: 180%;
  cursor: zoom-out;
}
.nw-viewer-close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #202124;
  font-size: 18px;
  cursor: pointer;
}

/* ---- Rédaction ---------------------------------------------------------------- */
.nw-myoutlets {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
}
.nw-myoutlet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--oc);
  border-radius: 14px;
}
.nw-myoutlet > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 140px;
}
.nw-myoutlet span {
  font-size: 12.5px;
  color: var(--text-muted);
}
.nw-mylist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nw-myitem {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.nw-myitem-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--btn-bg);
}
.nw-myitem-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nw-myitem-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nw-myitem-body strong {
  font-family: var(--nw-serif);
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.nw-myitem-top,
.nw-myitem-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.nw-myitem-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nw-status {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.nw-status-published {
  background: var(--success-bg);
  color: var(--success);
}
.nw-status-draft {
  background: var(--btn-bg);
  color: var(--text-muted);
}
.nw-status-hidden {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ---- Écriture ------------------------------------------------------------------ */
.nw-write {
  max-width: 900px;
}
.nw-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nw-card-box {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
}
.nw-card-box h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.nw-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.nw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}
.nw-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.nw-field em,
.nw-field span em {
  font-weight: 400;
  font-style: normal;
}
.nw-field input[type=text],
.nw-field textarea,
.nw-field select,
.nw-in,
.nw-ta {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.5;
}
.nw-field input:focus,
.nw-field textarea:focus,
.nw-in:focus,
.nw-ta:focus {
  outline: none;
  border-color: var(--link);
  background: var(--bg);
}
.nw-input-title {
  font-family: var(--nw-serif) !important;
  font-size: 20px !important;
  font-weight: 700;
}
.nw-format {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.nw-format legend {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.nw-format-opt {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
}
.nw-format-opt:has(input:checked) {
  border-color: var(--link);
  background: var(--link-tint);
}
.nw-format-opt span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nw-format-opt em {
  font-size: 12.5px;
  font-style: normal;
  color: var(--text-muted);
}
.nw-cover-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}
.nw-cover-current img {
  width: 140px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}
.nw-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.nw-hint code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--btn-bg);
}
#nw-blocks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nw-block-edit {
  padding: 10px 12px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.nw-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nw-block-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.nw-tool {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.nw-tool:hover {
  background: var(--btn-bg);
}
.nw-tool-mark {
  color: var(--link);
  font-weight: 700;
}
.nw-tool-del:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.nw-ta {
  resize: vertical;
  min-height: 90px;
}
.nw-in-h {
  font-family: var(--nw-serif) !important;
  font-size: 18px !important;
  font-weight: 700;
}
.nw-block-quote .nw-in {
  margin-top: 8px;
}
.nw-img-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.nw-img-preview img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  align-self: flex-start;
  border-radius: 10px;
}
.nw-img-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 8px;
}
.nw-addbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.nw-pages-edit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.nw-pages-edit li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.nw-pages-edit img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}
.nw-pages-edit-num {
  font-size: 12.5px;
  font-weight: 700;
}
.nw-pages-edit-tools {
  display: flex;
  gap: 4px;
}
.nw-pages-edit-tools .nw-btn {
  flex: 1;
  padding: 5px 0;
}
.nw-form-actions {
  position: sticky;
  bottom: 10px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 8px 24px var(--shadow-soft);
}

/* ---- Thème sombre : couleurs de journal éclaircies pour les textes ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nw-card-outlet,
  :root:not([data-theme="light"]) .nw-article-title,
  :root:not([data-theme="light"]) .nw-mark,
  :root:not([data-theme="light"]) .nw-h {
    filter: brightness(1.7) saturate(0.9);
  }
}
:root[data-theme="dark"] .nw-card-outlet,
:root[data-theme="dark"] .nw-article-title,
:root[data-theme="dark"] .nw-mark,
:root[data-theme="dark"] .nw-h {
  filter: brightness(1.7) saturate(0.9);
}

/* ---- Tablette / téléphone ------------------------------------------------------ */
@media (max-width: 1100px) {
  .nw-top-home span,
  .nw-top-redac span {
    display: none;
  }
  .nw-top-home,
  .nw-top-redac {
    padding: 8px;
  }
}
@media (max-width: 860px) {
  .nw-une {
    grid-template-columns: minmax(0, 1fr);
  }
  .nw-card-lead .nw-card-title {
    font-size: 26px;
  }
}
@media (max-width: 760px) {
  .nw-top-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px 8px;
  }
  .nw-top-search {
    order: 5;
    flex: 1 1 100%;
    max-width: none;
  }
  .nw-brand-eye {
    font-size: 15px;
  }
  .nw-brand-news {
    font-size: 16px;
  }
  .nw-rubs {
    justify-content: flex-start;
    gap: 2px;
    padding: 0 8px 8px;
  }
  .nw-rubs a {
    padding: 4px 8px;
    font-size: 11.5px;
  }
  .nw-page {
    padding: 12px 12px 40px;
  }
  .nw-section-head h1 {
    font-size: 25px;
  }
  .nw-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .nw-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .nw-grid-4 .nw-card-title {
    font-size: 15px;
  }
  .nw-grid-4 .nw-card-summary {
    display: none;
  }
  .nw-card-row .nw-card-media {
    flex-basis: 104px;
  }
  .nw-card-row .nw-card-title {
    font-size: 15px;
  }
  .nw-masthead {
    padding: 20px 16px;
    border-radius: 20px;
  }
  .nw-masthead h1 {
    font-size: 26px;
  }
  .nw-logo-lg {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
  .nw-article-title {
    font-size: 29px;
  }
  .nw-article-chapo {
    font-size: 17.5px;
  }
  .nw-body-text {
    font-size: 16.5px;
  }
  .nw-h {
    font-size: 22px;
  }
  .nw-quote p {
    font-size: 19px;
  }
  .nw-fig-left,
  .nw-fig-right {
    float: none;
    width: 100%;
    margin: 1.2em 0;
  }
  .nw-myitem {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .nw-myitem-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .nw-myitem-actions .nw-btn {
    flex: 1;
  }
  .nw-form-row,
  .nw-format,
  .nw-img-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .nw-card-box {
    padding: 16px;
  }
  .nw-form-actions .nw-btn {
    flex: 1 1 auto;
  }
}

/* Éditions en images : la page (portrait) reste entière dans les cartes. */
.nw-card-media.is-page img {
  object-fit: contain;
}
/* Journal puis rubrique, chacun sur sa ligne. */
.nw-article-outlet {
  display: flex;
  width: fit-content;
}

/* Téléphone : barre de boutons de l'éditeur en fin de formulaire (collée en
   bas, ses boutons empilés masquaient le contenu). */
@media (max-width: 760px) {
  .nw-form-actions {
    position: static;
    box-shadow: none;
  }
}

/* Logo Eyefind News (image /uploads/eyefindnews.png). */
.nw-brand {
  align-items: center;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.nw-brand img {
  display: block;
  height: 42px;
  width: auto;
}
@media (max-width: 760px) {
  .nw-brand img {
    height: 34px;
  }
}

/* ==========================================================================
   Publicités (Administration › Publicités, emplacements News) : mêmes
   composants que dans les Annonces (includes/annonces/ads.php). Cadre aux
   proportions de l'emplacement, image entière, fond flouté tiré d'elle.
   ========================================================================== */
.an-shell {
  display: block;
  flex: 1 0 auto;
  width: 100%;
}
.an-rail {
  display: none;
}
.an-shell-main {
  min-width: 0;
}
@media (min-width: 1560px) {
  .an-shell.has-rails {
    display: grid;
    grid-template-columns: 170px minmax(0, 1180px) 170px;
    justify-content: center;
    gap: 24px;
    padding: 0 16px;
  }
  .an-shell.has-rails .an-rail {
    display: block;
    padding-top: 18px;
  }
  .an-shell.has-rails .an-rail .an-ad {
    position: sticky;
    top: 120px;
  }
  .an-shell.has-rails .nw-page,
  .an-shell.has-rails .an-banner-slot {
    padding-left: 0;
    padding-right: 0;
  }
}
.an-ad {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background: var(--btn-bg);
  text-decoration: none !important;
}
.an-ad::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.2);
  opacity: 0.75;
}
.an-ad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.an-ad-label {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.62);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.an-banner-slot {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 20px;
}
.an-ad-banniere {
  aspect-ratio: 24 / 5;
}
.an-ad-cote {
  width: 170px;
  aspect-ratio: 4 / 15;
}
.an-ad-pave {
  aspect-ratio: 6 / 5;
}
/* Dans une grille d'articles : l'encart prend la hauteur de la rangée. */
.nw-grid-ad {
  display: flex;
  min-width: 0;
}
.nw-grid-ad .an-ad-pave {
  width: 100%;
  aspect-ratio: auto;
  min-height: 240px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
/* Fin d'article : format encart, centré. */
.nw-article-ad {
  max-width: 800px;
  margin: 26px auto 0;
}
.nw-article-ad .an-ad-pave {
  max-width: 336px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
@media (max-width: 760px) {
  .an-banner-slot {
    margin-top: 12px;
    padding: 0 12px;
  }
  .an-ad-banniere {
    aspect-ratio: 3 / 1;
  }
  .nw-grid-ad .an-ad-pave {
    aspect-ratio: 6 / 5;
    min-height: 0;
  }
}

/* Colonnes latérales : le cadre suit la hauteur réelle de l'image (plus de
   vide flouté en haut et en bas quand la pub n'est pas au format 160 × 600). */
.an-ad-cote {
  aspect-ratio: auto;
  max-height: calc(100vh - 150px);
}
.an-ad-cote img {
  height: auto;
  max-height: calc(100vh - 150px);
}
.an-ad-cote::before {
  display: none;
}

/* ==========================================================================
   Côté lecteurs : flash info, outils de mise en avant, les plus lus,
   choix de la rédaction, réactions, commentaires.
   ========================================================================== */
.nw-card-flash {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #b3261e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nw-toast-article {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Barre de la rédaction : outils de mise en avant */
.nw-tools {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.nw-tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 6px 0;
}
.nw-tool-row form {
  margin: 0;
}
.nw-tool-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 170px;
  font-weight: 700;
}
.nw-tool-state {
  flex: 1;
  min-width: 140px;
  color: var(--text-muted);
}
.nw-tool-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.nw-tool-row > form:last-child {
  margin-left: auto;
}
.nw-tool-form select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.nw-tool-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--oc, var(--nw-brand));
}
.nw-tool-dot.is-red {
  background: #d93025;
}
.nw-tool-dot.is-blue {
  background: var(--nw-brand);
}
.nw-tool-dot.is-white {
  background: #fff;
  animation: nw-blink 1.2s ease-in-out infinite;
}
@keyframes nw-blink {
  50% { opacity: 0.3; }
}
.nw-btn-flash {
  border-color: transparent;
  background: #b3261e;
  color: #fff !important;
}
.nw-btn-flash:hover {
  background: #b3261e;
  filter: brightness(1.12);
}

/* Article : pastilles flash + rubrique, lien vers les commentaires */
.nw-article-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.nw-article-kickers .nw-article-kicker {
  margin: 0;
}
.nw-article-flash {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #b3261e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nw-byline-comments {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Réactions */
.nw-reactions {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 30px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--btn-bg);
}
.nw-reactions-label {
  font-family: var(--nw-serif);
  font-size: 18px;
  font-weight: 700;
}
.nw-reactions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nw-reaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.nw-reaction:hover {
  transform: translateY(-1px);
  border-color: var(--oc, var(--link));
}
.nw-reaction:active {
  transform: scale(0.96);
}
.nw-reaction.is-mine {
  border-color: var(--oc, var(--link));
  background: color-mix(in srgb, var(--oc, var(--link)) 14%, var(--bg));
}
.nw-reaction-emoji {
  font-size: 18px;
  line-height: 1;
}
.nw-reaction-count {
  min-width: 0;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.nw-reaction-count:empty {
  display: none;
}
.nw-reactions.is-busy {
  opacity: 0.7;
  pointer-events: none;
}
.nw-reactions-hint {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--text-muted);
}

/* Commentaires : avatar (photo de la carte de visite, sinon initiale sur la
   couleur de la carte), bulle, nom menant à la carte de visite. --av : couleur
   de l'avatar ; --oc : couleur du journal (badges, survols). */
.nw-comments {
  max-width: 800px;
  margin: 34px auto 0;
}
.nw-comments-count {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--btn-bg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}
.nw-comment-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--av, var(--nw-brand));
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in srgb, var(--av, var(--nw-brand)) 55%, transparent);
  color: #fff;
  font-family: var(--nw-serif);
  font-size: 18px;
  font-weight: 800;
}
.nw-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nw-comment-avatar-link {
  flex-shrink: 0;
  align-self: flex-start;
  border-radius: 50%;
  transition: transform 0.15s;
}
.nw-comment-avatar-link:hover {
  transform: scale(1.06);
}

/* Zone d'écriture */
.nw-composer {
  display: flex;
  gap: 12px;
  margin: 0 0 24px;
}
.nw-composer-avatar {
  margin-top: 4px;
}
.nw-composer-box {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--btn-bg);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.nw-composer-box:focus-within {
  border-color: var(--oc, var(--link));
  background: var(--bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--oc, var(--link)) 18%, transparent);
}
.nw-composer-box textarea {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px 4px;
  border: 0;
  outline: none;
  resize: vertical;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
}
.nw-composer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 6px 8px 8px 16px;
}
.nw-composer-as {
  flex: 1;
  min-width: 180px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.nw-composer-as strong {
  color: var(--text);
}
.nw-composer-as a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nw-composer-as a:hover {
  color: var(--text);
}
.nw-composer-count {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.nw-comment-login,
.nw-comment-closed,
.nw-comment-empty {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-muted);
}
.nw-comment-login {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.nw-comment-closed {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--btn-bg);
}

/* Fil de commentaires */
.nw-comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nw-comment {
  display: flex;
  gap: 12px;
  scroll-margin-top: 140px;
}
.nw-comment-main {
  flex: 1;
  min-width: 0;
}
.nw-comment-bubble {
  padding: 10px 14px 12px;
  border: 1px solid transparent;
  border-radius: 4px 18px 18px 18px;
  background: var(--btn-bg);
  transition: border-color 0.2s, background 0.2s;
}
.nw-comment.is-staff .nw-comment-bubble {
  border-color: color-mix(in srgb, var(--oc, var(--nw-brand)) 35%, transparent);
  background: color-mix(in srgb, var(--oc, var(--nw-brand)) 8%, var(--btn-bg));
}
.nw-comment:target .nw-comment-bubble {
  border-color: var(--oc, var(--link));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--oc, var(--link)) 18%, transparent);
}
.nw-comment.is-hidden .nw-comment-bubble {
  border: 1px dashed var(--danger);
  background: transparent;
  opacity: 0.75;
}
.nw-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.nw-comment-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text) !important;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none !important;
}
a.nw-comment-name svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  transition: color 0.15s;
}
a.nw-comment-name:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
a.nw-comment-name:hover svg {
  color: var(--oc, var(--link));
}
.nw-comment-badge {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--oc, var(--nw-brand));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.nw-comment-badge.is-author::before {
  content: "✎ ";
}
.nw-comment-date {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}
.nw-comment-headline {
  margin: 1px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nw-comment-modnote {
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--danger);
}
.nw-comment-body {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.nw-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 4px 0 0 6px;
}
.nw-comment-actions form {
  margin: 0;
}
.nw-comment-actions button,
.nw-comment-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-muted) !important;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
}
.nw-comment-actions svg {
  width: 14px;
  height: 14px;
}
.nw-comment-actions button:hover,
.nw-comment-actions a:hover {
  background: var(--btn-bg);
  color: var(--text) !important;
}
.nw-comment-actions .is-danger:hover {
  background: var(--danger-bg);
  color: var(--danger) !important;
}

/* Fils : réponses en retrait sous le commentaire de départ */
.nw-thread,
.nw-thread-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nw-replies {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0 0 21px;
  padding-left: 33px;
  border-left: 2px solid var(--border);
}
/* Ni réponse ni formulaire ouvert : pas de trait vide */
.nw-replies:not(:has(.nw-thread-list, .nw-reply-form:not([hidden]))) {
  display: none;
}
.nw-replies > .nw-thread-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nw-replies .nw-comment-avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.nw-replies .nw-comment-body {
  font-size: 14.5px;
}
.nw-reply-form {
  margin: 0;
}
.nw-reply-form[hidden] {
  display: none;
}
.nw-reply-form .nw-composer-avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.nw-reply-form textarea {
  min-height: 48px;
}
@media (max-width: 760px) {
  .nw-replies {
    margin-left: 17px;
    padding-left: 14px;
  }
  .nw-replies .nw-comment-avatar {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  .nw-comment-avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .nw-composer-avatar {
    display: none;
  }
  .nw-comment-date {
    margin-left: 0;
  }
}

/* Les plus lus */
.nw-mostread-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 16px;
}
.nw-mostread-head .nw-block-title {
  flex: 1;
  margin: 0;
}
.nw-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--btn-bg);
}
.nw-tab {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.nw-tab.is-current {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 4px var(--shadow-soft);
}
.nw-mostread-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nw-mostread-item {
  display: flex;
  gap: 10px;
  height: 100%;
  color: var(--text) !important;
  text-decoration: none !important;
}
.nw-mostread-rank {
  flex-shrink: 0;
  font-family: var(--nw-serif);
  font-size: 40px;
  font-weight: 800;
  line-height: 0.95;
  color: var(--oc);
  opacity: 0.85;
}
.nw-mostread-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nw-mostread-title {
  font-family: var(--nw-serif);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.nw-mostread-item:hover .nw-mostread-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.nw-mostread-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Page d'un journal : choix de la rédaction */
.nw-featured {
  margin: 0 0 30px;
  padding: 18px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--oc);
  border-radius: 20px;
}
.nw-featured-label {
  margin: 0 0 12px;
  color: var(--oc);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nw-featured .nw-card-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nw-mostread-rank,
  :root:not([data-theme="light"]) .nw-featured-label {
    filter: brightness(1.7) saturate(0.9);
  }
}
:root[data-theme="dark"] .nw-mostread-rank,
:root[data-theme="dark"] .nw-featured-label {
  filter: brightness(1.7) saturate(0.9);
}
@media (max-width: 1000px) {
  .nw-mostread-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .nw-mostread-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .nw-mostread-rank {
    width: 30px;
    font-size: 32px;
  }
  .nw-featured {
    padding: 14px;
  }
  .nw-featured .nw-card-lead {
    display: flex;
    gap: 10px;
  }
  .nw-tool-label {
    min-width: 0;
  }
  .nw-tool-form,
  .nw-tool-row > form:last-child {
    margin-left: 0;
  }
  .nw-reactions {
    padding: 14px;
  }
  .nw-reaction-name {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nw-tool-dot.is-white {
    animation: none;
  }
  .nw-reaction:hover,
  .nw-reaction:active {
    transform: none;
  }
}

/* Badge flash sur les petites vignettes (colonne de la une) : une ligne. */
.nw-card-flash {
  white-space: nowrap;
}
.nw-card-row .nw-card-flash {
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  font-size: 9.5px;
}