/* =============================================================================
   newsroom.css — refonte sobriété éditoriale (impeccable polish 2026-04-29)
   Tokens en OKLCH, pas de glassmorphism, pas de side-stripe, pas d'animations
   décoratives. Cible WCAG AA, focus visible custom, touch targets >= 44px.
   ============================================================================= */

.newsroom {
  /* Tokens — Stratechery rouge brique sur base near-white (warm hint discret) */
  --nr-bg: oklch(0.99 0.003 80);
  --nr-surface: oklch(0.998 0.002 80);
  --nr-surface-strong: oklch(0.995 0.002 80);
  --nr-card: oklch(0.97 0.006 80);
  --nr-border: oklch(0.86 0.010 80);
  --nr-border-strong: oklch(0.50 0.18 25);
  --nr-text: oklch(0.32 0.014 250);
  --nr-muted: oklch(0.48 0.012 250);
  --nr-soft: oklch(0.62 0.010 250);
  --nr-heading: oklch(0.18 0.018 250);
  --nr-accent: oklch(0.45 0.18 25);
  --nr-accent-soft: color-mix(in oklch, var(--nr-accent) 10%, transparent);
  --nr-input: oklch(0.998 0.002 80);
  --nr-shadow: 0 8px 24px oklch(0.18 0.018 250 / 0.06);
  --nr-button-bg: oklch(0.40 0.18 25);
  --nr-button-fg: oklch(0.99 0 0);
  --nr-radius: 8px;

  position: relative;
  isolation: isolate;
  background: var(--nr-bg);
  color: var(--nr-text);
  min-height: 75vh;
}

:where(.newsroom) a {
  color: inherit;
}

/* Container */
.newsroom-container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* Hero — sobre, pas de gradient, pas de blur, pas de dots */
.newsroom-hero {
  position: relative;
  border: 1px solid var(--nr-border);
  background: var(--nr-surface);
  border-radius: var(--nr-radius);
  padding: 40px 32px 32px;
  margin-bottom: 28px;
}

.newsroom-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nr-accent);
}

.newsroom-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--nr-heading);
  max-width: 22ch;
}

.newsroom-hero h1 em {
  font-style: normal;
  color: var(--nr-accent);
}

.newsroom-hero-kicker {
  margin: 0;
  max-width: 65ch;
  color: var(--nr-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.newsroom-hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons — touch target >= 44px */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: var(--nr-radius);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--nr-button-bg);
  border: 1px solid var(--nr-button-bg);
  color: var(--nr-button-fg);
}

.btn-primary:hover {
  background: oklch(from var(--nr-button-bg) calc(l - 0.05) c h);
  border-color: oklch(from var(--nr-button-bg) calc(l - 0.05) c h);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--nr-border);
  color: var(--nr-text);
}

.btn-ghost:hover {
  border-color: var(--nr-accent);
  color: var(--nr-accent);
}

/* Layout grid */
.newsroom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px) {
  .newsroom-layout {
    grid-template-columns: 1fr;
  }
}

/* Panels */
.newsroom-panel {
  border: 1px solid var(--nr-border);
  background: var(--nr-surface);
  border-radius: var(--nr-radius);
  padding: 24px;
}

/* KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .kpi-hint {
    display: none;
  }
}

.kpi {
  display: block;
  background: var(--nr-card);
  border: 1px solid var(--nr-border);
  border-radius: var(--nr-radius);
  padding: 16px;
  color: var(--nr-text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.kpi:hover,
.kpi:focus-visible {
  border-color: var(--nr-border-strong);
  background: var(--nr-accent-soft);
}

.kpi-label {
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--nr-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--nr-accent);
  margin-bottom: 6px;
}

.kpi-hint {
  margin: 0;
  font-size: 13px;
  color: var(--nr-muted);
  line-height: 1.4;
}

/* Thesis — pas de side-stripe, encart à fond tinté */
.newsroom-thesis {
  margin: 0 0 24px;
  padding: 16px 20px;
  background: var(--nr-accent-soft);
  border: 1px solid var(--nr-border);
  border-radius: var(--nr-radius);
}

.newsroom-thesis p {
  margin: 0;
  color: var(--nr-text);
  line-height: 1.55;
  max-width: 65ch;
}

.newsroom-thesis strong {
  color: var(--nr-heading);
}

/* Overline */
.newsroom-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--nr-accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.newsroom-overline::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

/* Section heads */
.newsroom-section-head {
  margin: 0 0 16px;
}

.newsroom-section-head h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--nr-heading);
}

/* Carousel: tabs + pause */
.newsroom-carousel {
  margin: 0 0 4px;
}

.newsroom-tablist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 16px;
}

.newsroom-tab {
  background: var(--nr-card);
  border: 1px solid var(--nr-border);
  color: var(--nr-text);
  padding: 10px 14px;
  min-height: 40px;
  border-radius: var(--nr-radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.newsroom-tab[aria-selected="true"] {
  background: var(--nr-surface-strong);
  border-color: var(--nr-accent);
  color: var(--nr-accent);
}

.newsroom-pause {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--nr-card);
  border: 1px solid var(--nr-border);
  color: var(--nr-muted);
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.newsroom-pause:hover,
.newsroom-pause:focus-visible {
  border-color: var(--nr-accent);
  color: var(--nr-accent);
}

.newsroom-pause svg {
  width: 14px;
  height: 14px;
  display: block;
}

.newsroom[data-newsroom-paused="false"] .newsroom-pause-icon-play,
.newsroom[data-newsroom-paused="true"] .newsroom-pause-icon-pause {
  display: none;
}

/* Slides — visibilité gérée par [hidden] (UA stylesheet) */
.newsroom-slides {
  position: relative;
}

.newsroom-slide:focus {
  outline: none;
}

/* Items — 1 featured pleine largeur (horizontal) + 2 côte-à-côte */
.newsroom-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.newsroom-item {
  display: flex;
  flex-direction: column;
  background: var(--nr-card);
  border: 1px solid var(--nr-border);
  border-radius: var(--nr-radius);
  padding: 16px;
  transition: border-color 0.15s ease;
}

.newsroom-item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* Featured (1er item du slide) — full-width + image gauche / body droite */
.newsroom-items > .newsroom-item:first-child {
  grid-column: 1 / -1;
  flex-direction: row;
  padding: 0;
  align-items: stretch;
  overflow: hidden;
}

.newsroom-items > .newsroom-item:first-child > .newsroom-item-media {
  flex: 0 0 42%;
  margin: 0;
  aspect-ratio: auto;
  border-right: 1px solid var(--nr-border);
  border-bottom: 0;
  border-radius: var(--nr-radius) 0 0 var(--nr-radius);
}

.newsroom-items > .newsroom-item:first-child > .newsroom-item-body {
  padding: 24px 28px;
}

.newsroom-items > .newsroom-item:first-child .newsroom-item-title {
  font-size: 1.25rem;
  line-height: 1.25;
}

.newsroom-items > .newsroom-item:first-child .newsroom-item-desc {
  font-size: 1rem;
  max-width: 60ch;
}

@media (max-width: 980px) {
  .newsroom-items {
    grid-template-columns: 1fr;
  }
  .newsroom-items > .newsroom-item:first-child {
    grid-column: 1;
    flex-direction: column;
    padding: 16px;
  }
  .newsroom-items > .newsroom-item:first-child > .newsroom-item-media {
    flex-basis: auto;
    margin: -16px -16px 12px;
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-bottom: 1px solid var(--nr-border);
    border-radius: var(--nr-radius) var(--nr-radius) 0 0;
  }
  .newsroom-items > .newsroom-item:first-child > .newsroom-item-body {
    padding: 0;
  }
  .newsroom-items > .newsroom-item:first-child .newsroom-item-title {
    font-size: 1rem;
  }
  .newsroom-items > .newsroom-item:first-child .newsroom-item-desc {
    font-size: 0.9375rem;
  }
}

.newsroom-item:hover {
  border-color: var(--nr-border-strong);
}

.newsroom-item-media {
  margin: -16px -16px 12px;
  border-bottom: 1px solid var(--nr-border);
  border-radius: var(--nr-radius) var(--nr-radius) 0 0;
  overflow: hidden;
  background: var(--nr-card);
  aspect-ratio: 16 / 10;
}

.newsroom-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.newsroom-item-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--nr-soft);
  margin-bottom: 10px;
}

.newsroom-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--nr-border);
  background: var(--nr-card);
  color: var(--nr-text);
  white-space: nowrap;
}

.newsroom-badge-accent {
  border-color: var(--nr-border-strong);
  background: var(--nr-accent-soft);
  color: var(--nr-accent);
}

.newsroom-item-title {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.3;
}

.newsroom-item-title a {
  color: var(--nr-heading);
  text-decoration: none;
}

.newsroom-item-title a:hover,
.side-signal-title a:hover,
.tool-link:hover .tool-link-name {
  color: var(--nr-accent);
}

.newsroom-item-desc {
  margin: 0 0 12px;
  color: var(--nr-muted);
  line-height: 1.5;
  font-size: 0.9375rem;
}

.newsroom-item-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.newsroom-empty {
  margin: 0;
  color: var(--nr-muted);
}

/* Aside */
.newsroom-aside {
  display: grid;
  gap: 16px;
}

.side-item {
  background: var(--nr-card);
  border: 1px solid var(--nr-border);
  border-radius: var(--nr-radius);
  padding: 18px;
  transition: border-color 0.15s ease;
}

.side-item:hover {
  border-color: var(--nr-border-strong);
}

.side-item h2,
.side-item h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--nr-heading);
}

.side-item p {
  margin: 0 0 12px;
  color: var(--nr-muted);
  line-height: 1.5;
  font-size: 0.9375rem;
}

.side-signal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--nr-soft);
  margin: 8px 0 10px;
}

.side-signal-title {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.3;
}

.side-signal-title a {
  color: var(--nr-heading);
  text-decoration: none;
}

.side-signal-actions {
  display: flex;
  justify-content: flex-end;
}

/* Tools */
.tools-list {
  display: grid;
  gap: 10px;
}

.tool-link {
  display: block;
  padding: 14px;
  border: 1px solid var(--nr-border);
  border-radius: var(--nr-radius);
  background: var(--nr-surface-strong);
  text-decoration: none;
  color: var(--nr-text);
  transition: border-color 0.15s ease;
}

.tool-link:hover,
.tool-link:focus-visible {
  border-color: var(--nr-border-strong);
}

.tool-link-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tool-link-name {
  display: block;
  font-weight: 700;
  color: var(--nr-heading);
  font-size: 0.9375rem;
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.tool-link-desc {
  display: block;
  color: var(--nr-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Contact form */
.newsroom-contact-form {
  display: grid;
  gap: 12px;
}

.newsroom-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.newsroom-contact-form input,
.newsroom-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  border-radius: var(--nr-radius);
  border: 1px solid var(--nr-border);
  background: var(--nr-input);
  color: var(--nr-heading);
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.newsroom-contact-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.newsroom-contact-form input::placeholder,
.newsroom-contact-form textarea::placeholder {
  color: var(--nr-soft);
}

.newsroom-contact-form input:focus-visible,
.newsroom-contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--nr-accent);
  box-shadow: 0 0 0 3px var(--nr-accent-soft);
}

.newsroom-contact-submit {
  justify-self: flex-start;
}

/* Newsletter — surcharge en contexte newsroom */
.newsroom-extras {
  margin-top: 24px;
}

.newsroom-extras .newsletter-subscription {
  background: var(--nr-surface);
  border: 1px solid var(--nr-border);
  border-radius: var(--nr-radius);
  padding: 28px 22px;
  margin: 0;
}

.newsroom-extras .newsletter-subscription::before {
  display: none;
}

.newsroom-extras .newsletter-form {
  background: var(--nr-card);
  border: 1px solid var(--nr-border);
  backdrop-filter: none;
}

.newsroom-extras .newsletter-header h2 {
  color: var(--nr-heading);
}

.newsroom-extras .newsletter-header p,
.newsroom-extras .newsletter-privacy {
  color: var(--nr-muted);
}

.newsroom-extras .newsletter-input {
  background: var(--nr-input);
  border-color: var(--nr-border);
  color: var(--nr-heading);
}

.newsroom-extras .newsletter-input::placeholder {
  color: var(--nr-soft);
}

.newsroom-extras .newsletter-input:focus {
  background: var(--nr-input);
  border-color: var(--nr-accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--nr-accent-soft);
}

.newsroom-extras .newsletter-submit {
  background: var(--nr-button-bg);
  color: var(--nr-button-fg);
  border: 1px solid var(--nr-button-bg);
}

.newsroom-extras .newsletter-submit:hover {
  background: oklch(from var(--nr-button-bg) calc(l - 0.05) c h);
  border-color: oklch(from var(--nr-button-bg) calc(l - 0.05) c h);
  box-shadow: none;
  transform: none;
  filter: none;
}

/* Focus visible — règle universelle */
.newsroom :focus-visible {
  outline: 2px solid var(--nr-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.newsroom .btn-primary:focus-visible,
.newsroom .btn-ghost:focus-visible,
.newsroom .kpi:focus-visible,
.newsroom .newsroom-tab:focus-visible,
.newsroom .newsroom-pause:focus-visible {
  outline-offset: 3px;
}

/* Mobile fine-tune */
@media (max-width: 640px) {
  .newsroom-container {
    padding: 22px 16px 48px;
  }

  .newsroom-hero {
    padding: 32px 20px 24px;
  }

  .newsroom-hero h1 {
    font-size: 1.75rem;
  }

  .newsroom-hero-kicker {
    font-size: 1rem;
  }

  .newsroom-hero-actions .btn-primary,
  .newsroom-hero-actions .btn-ghost {
    width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .newsroom *,
  .newsroom *::before,
  .newsroom *::after {
    transition: none !important;
    animation: none !important;
  }
}
