.veil-page {
  --veille-grid: minmax(0, 1fr);
}

.veil-page .hero-section {
  padding-bottom: 34px;
}

.veille-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(34, 211, 238, 0.18), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(244, 63, 94, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(10, 12, 24, 0.96), rgba(18, 22, 40, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.veille-hero::before,
.veille-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.veille-hero::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.65), transparent 80%);
}

.veille-hero::after {
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 48%, transparent 100%);
  transform: translateX(-100%);
  animation: veilleSweep 7.5s ease-in-out infinite;
  opacity: 0.55;
}

@keyframes veilleSweep {
  0%, 16% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.veille-hero__copy,
.veille-hero__panel {
  position: relative;
  z-index: 1;
}

.veille-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.08);
  color: #8aeaff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.veille-hero__title {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.veille-hero__title .text-gradient {
  display: inline-block;
}

.veille-hero__subtitle {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.veille-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.veille-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  max-width: 620px;
}

.veille-kpi {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.veille-kpi__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.veille-kpi__value {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.veille-hero__panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.veille-sidecard {
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  backdrop-filter: blur(12px);
}

.veille-sidecard__title {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
}

.veille-sidecard p,
.veille-sidecard li {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.veille-sidecard ul {
  margin: 0;
  padding-left: 18px;
}

.veille-section {
  margin-top: 40px;
}

.veille-section__head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.veille-section__title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  font-family: var(--font-display);
}

.veille-section__desc {
  max-width: 60ch;
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.veille-method {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.veille-step {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 12, 24, 0.58);
}

.veille-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(34,211,238,0.86));
  color: white;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 12px 30px rgba(79,70,229,0.24);
}

.veille-step h3 {
  margin: 14px 0 8px;
  font-size: 1rem;
  color: var(--text-main);
}

.veille-step p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.veille-impact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.veille-panel {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 12, 24, 0.58);
}

.veille-panel h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.veille-panel p,
.veille-panel li {
  color: var(--text-muted);
  line-height: 1.75;
}

.veille-panel ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.veille-source-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.veille-filter {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
}

.veille-filter:hover,
.veille-filter.is-active {
  transform: translateY(-1px);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  box-shadow: 0 10px 24px rgba(0, 212, 255, 0.12);
}

.news-shell {
  display: grid;
  gap: 16px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-card {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  overflow: hidden;
  min-height: 250px;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34,211,238,0.12), transparent 34%);
  pointer-events: none;
}

.news-card--latest::before {
  background: radial-gradient(circle at top right, rgba(244,63,94,0.13), transparent 34%);
}

.news-card > * {
  position: relative;
  z-index: 1;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.news-badge--officiel {
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.26);
  color: #8aeaff;
}

.news-badge--media {
  background: rgba(244,63,94,0.1);
  border: 1px solid rgba(244,63,94,0.2);
  color: #ff8ea3;
}

.news-card time {
  color: var(--text-dim);
}

.news-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
}

.news-card h3 a {
  color: var(--text-main);
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--accent-secondary);
}

.news-card__summary {
  margin: 14px 0 18px;
  color: var(--text-muted);
  line-height: 1.75;
}

.news-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: end;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-tags span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  font-size: 11px;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 700;
}

.news-link:hover {
  color: var(--accent-primary);
}

.news-empty,
.news-loading {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.14);
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
}

.veille-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.veille-source {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 12, 24, 0.58);
}

.veille-source__top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
}

.veille-source__top h3 {
  margin: 0;
  font-size: 1rem;
}

.veille-source__count {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
}

.veille-source p {
  margin: 10px 0 16px;
  color: var(--text-muted);
  line-height: 1.7;
  min-height: 72px;
}

.veille-source__note {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  line-height: 1.6;
  min-height: 0;
}

.veille-source__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.veille-source__links a {
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 600;
}

.veille-source__links a:hover {
  color: var(--accent-primary);
}

.veille-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.veille-callout__pitch {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(34,211,238,0.1));
  border: 1px solid rgba(99,102,241,0.2);
}

.veille-callout__pitch h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.veille-callout__pitch p,
.veille-callout__pitch li {
  color: var(--text-muted);
  line-height: 1.75;
}

.veille-callout__pitch ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.veille-callout__quote {
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.veille-callout__quote blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-main);
}

.veille-callout__quote footer {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.veille-runtime {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.veille-runtime__flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}

.veille-runtime__flowstep {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  min-height: 136px;
}

.veille-runtime__flowlabel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(34,211,238,0.86));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(79,70,229,0.24);
}

.veille-runtime__flowstep strong {
  color: var(--text-main);
  font-size: 1rem;
}

.veille-runtime__flowstep span:last-child {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.93rem;
}

.veille-runtime__arrow {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
  font-size: 1.15rem;
}

.veille-runtime__note {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(99,102,241,0.08));
  color: var(--text-muted);
  line-height: 1.75;
}

.veille-runtime__note strong {
  color: var(--text-main);
}

.veille-panel code {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

html[data-theme="light"] .veille-hero {
  background:
    radial-gradient(circle at 15% 18%, rgba(34, 211, 238, 0.16), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(244, 63, 94, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245,248,255,0.96));
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .veille-kpi,
html[data-theme="light"] .veille-sidecard,
html[data-theme="light"] .veille-step,
html[data-theme="light"] .veille-panel,
html[data-theme="light"] .news-card,
html[data-theme="light"] .veille-source,
html[data-theme="light"] .veille-callout__quote,
html[data-theme="light"] .veille-runtime__flowstep {
  background: rgba(255,255,255,0.94);
  border-color: rgba(15,23,42,0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .news-tags span,
html[data-theme="light"] .veille-source__count,
html[data-theme="light"] .veille-filter,
html[data-theme="light"] .news-empty,
html[data-theme="light"] .news-loading {
  background: rgba(15,23,42,0.03);
  border-color: rgba(15,23,42,0.08);
  color: #556176;
}

html[data-theme="light"] .veille-hero__subtitle,
html[data-theme="light"] .veille-sidecard p,
html[data-theme="light"] .veille-sidecard li,
html[data-theme="light"] .veille-section__desc,
html[data-theme="light"] .veille-step p,
html[data-theme="light"] .veille-panel p,
html[data-theme="light"] .veille-panel li,
html[data-theme="light"] .news-card__summary,
html[data-theme="light"] .veille-source p,
html[data-theme="light"] .veille-callout__pitch p,
html[data-theme="light"] .veille-callout__pitch li,
html[data-theme="light"] .veille-runtime__flowstep span:last-child,
html[data-theme="light"] .veille-runtime__note {
  color: #4b5873;
}

html[data-theme="light"] .news-card h3 a,
html[data-theme="light"] .veille-sidecard__title,
html[data-theme="light"] .veille-section__title,
html[data-theme="light"] .veille-panel h3,
html[data-theme="light"] .veille-source__top h3,
html[data-theme="light"] .veille-callout__quote blockquote,
html[data-theme="light"] .veille-runtime__flowstep strong,
html[data-theme="light"] .veille-runtime__note strong {
  color: #121a33;
}

html[data-theme="light"] .veille-runtime__note {
  background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(99,102,241,0.07));
  border-color: rgba(15,23,42,0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .veille-panel code {
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.08);
}

@media (max-width: 1080px) {
  .veille-hero,
  .veille-impact,
  .veille-callout {
    grid-template-columns: 1fr;
  }

  .veille-method,
  .veille-sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .veille-runtime,
  .veille-runtime__flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .veille-kpis,
  .news-grid,
  .veille-method,
  .veille-sources,
  .veille-runtime,
  .veille-runtime__flow {
    grid-template-columns: 1fr;
  }

  .veille-hero {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .veille-hero__title {
    max-width: 100%;
  }

  .veille-source p {
    min-height: 0;
  }
}

/* --- 2026 veille refinement --- */
.veille-hero,
.veille-source,
.news-card,
.veille-panel,
.veille-step,
.veille-sidecard {
  border-color: rgba(255,255,255,0.08);
}

.news-card {
  padding: clamp(20px, 2.5vw, 26px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)), rgba(10, 12, 24, 0.54);
}

.news-card__meta {
  gap: 10px;
}

.news-tag--freshness {
  border-color: rgba(34, 211, 238, 0.3);
  color: #8be8ff;
}

[data-theme="light"] .news-card,
[data-theme="light"] .veille-source,
[data-theme="light"] .veille-panel,
[data-theme="light"] .veille-step,
[data-theme="light"] .veille-sidecard {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.82));
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .news-tag--freshness {
  color: #0f5f7f;
  border-color: rgba(14, 165, 233, 0.24);
}

@media (max-width: 768px) {
  .veille-hero,
  .news-card,
  .veille-source,
  .veille-panel,
  .veille-step,
  .veille-sidecard {
    border-radius: 22px;
  }
}
