/* ============================================================
   Insight Publisher — Style façon Aether.com
   ============================================================ */
:root {
  --ip-navy: #051c2c;
  --ip-accent: #2251ff;
  --ip-bg-soft: #f3f5f9;
  --ip-text: #1a2b3c;
  --ip-muted: #5b6b7c;
  --ip-border: #dfe6ee;
  --ip-radius: 10px;
  --ip-font-sans: "Helvetica Neue", Helvetica, Arial, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ip-font-serif: Georgia, "Times New Roman", serif;
  --ip-max: 1120px;
  --ip-max-narrow: 760px;
}

.ip-aether-layout {
  color: var(--ip-text);
}

/* ---------- Barre de progression ---------- */
.ip-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 9999;
}
.ip-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ip-accent);
  transition: width .1s linear;
}

/* ---------- HERO ---------- */
.ip-hero {
  max-width: var(--ip-max);
  margin: 0 auto 28px;
  padding: 36px 24px 0;
  font-family: var(--ip-font-sans);
}
.ip-hero.ip-align-center { text-align: center; }
.ip-hero.ip-align-center .ip-toolbar { justify-content: center; }
.ip-collection {
  margin: 0 0 10px;
  font-size: 15px;
}
.ip-collection em {
  font-family: var(--ip-font-serif);
  font-style: italic;
  color: var(--ip-navy);
  border-bottom: 2px solid var(--ip-navy);
  padding-bottom: 2px;
}
.ip-title {
  font-size: clamp(30px, 4.4vw, 52px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em;
  color: var(--ip-navy) !important;
  margin: 0 0 12px !important;
  font-weight: 600 !important;
  font-family: var(--ip-font-sans) !important;
}
.ip-subtitle {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ip-muted);
  max-width: 720px;
  margin: 0 0 14px;
}
.ip-align-center .ip-subtitle { margin-left: auto; margin-right: auto; }
.ip-meta-line {
  font-size: 14px;
  color: var(--ip-muted);
  margin: 0 0 8px;
}
.ip-dot { margin: 0 8px; opacity: .5; }
.ip-byline {
  font-size: 15px;
  color: var(--ip-text);
  margin: 0 0 18px;
}
.ip-byline a { color: var(--ip-accent); text-decoration: none; }
.ip-byline a:hover { text-decoration: underline; }
.ip-hero-media { margin: 22px 0 0; }
.ip-hero-media img { width: 100%; height: auto; border-radius: var(--ip-radius); }

/* ---------- TOOLBAR ---------- */
.ip-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  border-top: 1px solid var(--ip-border);
  border-bottom: 1px solid var(--ip-border);
  padding: 10px 0;
  margin-top: 16px;
  position: relative;
  font-family: var(--ip-font-sans);
}
.ip-tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ip-navy);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s ease;
}
.ip-tool:hover { background: var(--ip-bg-soft); }
.ip-tool-ic { display: inline-flex; color: var(--ip-navy); }
.ip-tool[data-ip-saved="1"] { color: var(--ip-accent); }
.ip-share-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(5,28,44,.14);
  padding: 8px;
  display: flex;
  gap: 4px;
  z-index: 50;
}
.ip-share-pop a, .ip-share-pop button {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ip-navy);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.ip-share-pop a:hover, .ip-share-pop button:hover { background: var(--ip-bg-soft); }

/* Résumé Summarize */
.ip-summary {
  background: var(--ip-bg-soft);
  border: 1px solid var(--ip-border);
  border-left: 4px solid var(--ip-accent);
  border-radius: 0 var(--ip-radius) var(--ip-radius) 0;
  padding: 16px 18px;
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.6;
}
.ip-summary-title {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ip-accent);
  font-weight: 700;
}
.ip-summary p:last-child { margin: 0; }

/* ---------- PROSE / FLOW ---------- */
.ip-prose, .ip-article-flow {
  font-family: var(--ip-font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ip-text);
}
.ip-prose { max-width: var(--ip-max-narrow); margin: 0 auto; padding: 0 24px; }
.ip-prose h2, .ip-article-flow h2 {
  font-size: 26px !important;
  line-height: 1.3 !important;
  color: var(--ip-navy) !important;
  margin: 38px 0 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}
.ip-prose h3, .ip-article-flow h3 {
  font-size: 20px !important;
  color: var(--ip-navy) !important;
  margin: 28px 0 10px !important;
  font-weight: 600 !important;
}
.ip-prose p, .ip-article-flow p { margin: 0 0 18px; }
.ip-prose a, .ip-article-flow a { color: var(--ip-accent); }
.ip-prose ul, .ip-prose ol, .ip-article-flow ul, .ip-article-flow ol { margin: 0 0 20px 22px; padding: 0; }
.ip-prose li, .ip-article-flow li { margin-bottom: 10px; }
.ip-prose li::marker { color: var(--ip-accent); }

/* Chapeau */
.ip-lede {
  font-size: 20px !important;
  line-height: 1.6 !important;
  color: var(--ip-navy) !important;
  font-weight: 400;
  margin: 0 0 22px !important;
}
.ip-lede strong, .ip-lede b { font-weight: 700; }
.ip-lede-dropcap::first-letter {
  float: left;
  font-size: 56px;
  line-height: .9;
  padding-right: 10px;
  font-weight: 700;
  color: var(--ip-navy);
}

/* Citation */
.ip-quote {
  border-left: 4px solid var(--ip-accent);
  background: var(--ip-bg-soft);
  border-radius: 0 var(--ip-radius) var(--ip-radius) 0;
  padding: 18px 22px;
  margin: 28px 0 !important;
}
.ip-quote p { font-size: 19px; font-style: italic; color: var(--ip-navy); margin: 0 0 8px !important; }
.ip-quote cite { font-size: 14px; color: var(--ip-muted); font-style: normal; }

.ip-divider {
  border: 0 !important;
  text-align: center;
  margin: 34px 0 !important;
  color: var(--ip-muted);
  letter-spacing: 12px;
}
.ip-divider::after { content: "* * *"; font-size: 18px; }

/* ---------- AUDIO ---------- */
.ip-audio {
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  background: #fff;
  margin: 22px 0;
  overflow: hidden;
}
.ip-audio-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--ip-bg-soft);
  border-bottom: 1px solid var(--ip-border);
  font-size: 15px;
  color: var(--ip-navy);
}
.ip-audio-ic { color: var(--ip-accent); display: inline-flex; }
.ip-audio-tag {
  margin-left: auto;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--ip-navy);
  color: #fff;
  border-radius: 20px;
  padding: 3px 10px;
}
.ip-audio-body { padding: 12px 16px; }
.ip-audio-body audio, .ip-audio-body iframe { width: 100%; border: 0; }

/* ---------- DOWNLOADS ---------- */
.ip-downloads {
  background: var(--ip-bg-soft);
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 18px;
  margin: 22px 0;
}
.ip-downloads-title {
  margin: 0 0 12px !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--ip-navy) !important;
}
.ip-dl-list { display: grid; gap: 10px; }
.ip-dl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none !important;
  color: var(--ip-navy) !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ip-dl-item:hover { border-color: var(--ip-accent); box-shadow: 0 4px 14px rgba(34,81,255,.12); }
.ip-dl-ic { color: var(--ip-accent); display: inline-flex; flex: none; }
.ip-dl-text { display: flex; flex-direction: column; }
.ip-dl-text strong { font-size: 15px; }
.ip-dl-text small { font-size: 12.5px; color: var(--ip-muted); }

/* ---------- EXHIBIT / TABLE ---------- */
.ip-exhibit {
  margin: 30px 0 !important;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  background: #fff;
  padding: 20px;
}
.ip-exhibit-label {
  margin: 0 0 4px !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--ip-muted) !important;
}
.ip-exhibit-title {
  margin: 0 0 14px !important;
  font-size: 17px !important;
  font-weight: 600;
  color: var(--ip-navy) !important;
}
.ip-exhibit-media { text-align: center; }
.ip-exhibit-media img { max-width: 100%; height: auto; border-radius: 6px; }
.ip-exhibit-caption { font-size: 13.5px; color: var(--ip-muted); margin-top: 12px; }
.ip-exhibit-access { font-size: 12.5px; color: var(--ip-muted); margin: 10px 0 0 !important; }
.ip-exhibit-access a { color: var(--ip-accent); }

.ip-table-block {
  margin: 30px 0;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  background: #fff;
  padding: 20px;
}
.ip-table-scroll { overflow-x: auto; }
table.ip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.55;
  min-width: 640px;
}
table.ip-table thead th {
  background: var(--ip-navy);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}
table.ip-table thead th:first-child { border-radius: 8px 0 0 0; }
table.ip-table thead th:last-child { border-radius: 0 8px 0 0; }
table.ip-table tbody th, table.ip-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ip-border);
  vertical-align: top;
  text-align: left;
}
table.ip-table tbody th { color: var(--ip-navy); font-weight: 600; background: #f8fafd; }
table.ip-table tbody tr:last-child th, table.ip-table tbody tr:last-child td { border-bottom: 0; }
table.ip-table tbody tr:hover td { background: #f4f7ff; }
.ip-table-caption { font-size: 13px; color: var(--ip-muted); margin: 10px 0 0; }

/* Lightbox */
.ip-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,28,44,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 32px;
}
.ip-lightbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; background: #fff; padding: 12px; }
.ip-lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  background: #fff; border: 0; border-radius: 50%;
  width: 40px; height: 40px; font-size: 22px; cursor: pointer; line-height: 1;
}

/* ---------- PROMO INLINE ---------- */
.ip-promo {
  display: flex;
  gap: 16px;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  background: #fff;
  padding: 16px;
  margin: 26px 0;
  align-items: center;
}
.ip-promo-vertical { flex-direction: column; align-items: stretch; }
.ip-promo-media { flex: 0 0 180px; }
.ip-promo-vertical .ip-promo-media { flex: none; }
.ip-promo-media img { width: 100%; height: auto; border-radius: 8px; display: block; aspect-ratio: 16/9; object-fit: cover; }
.ip-promo-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ip-accent); font-weight: 700; margin: 0 0 4px !important; }
.ip-promo-title { font-size: 16.5px; font-weight: 600; color: var(--ip-navy); margin: 0 0 8px !important; }
.ip-promo-link { font-size: 14.5px; font-weight: 600; color: var(--ip-accent) !important; text-decoration: none !important; }
.ip-promo-link:hover { text-decoration: underline !important; }

/* ---------- TAKEAWAYS ---------- */
.ip-takeaways {
  background: #eef2ff;
  border: 1px solid #c9d4ff;
  border-radius: var(--ip-radius);
  padding: 20px 22px;
  margin: 26px 0;
}
.ip-takeaways-title {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--ip-accent) !important;
}
.ip-takeaways ul { margin: 0 0 0 20px !important; padding: 0 !important; }
.ip-takeaways li { margin-bottom: 8px !important; font-size: 15.5px; }

/* ---------- SIDEBAR ---------- */
.ip-side-title {
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700 !important;
  color: var(--ip-navy) !important;
  margin: 0 0 12px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ip-navy);
}
.ip-popular, .ip-toc, .ip-feedback {
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 18px;
  margin: 0 0 22px;
  font-family: var(--ip-font-sans);
}
.ip-pop-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ip-pop-list li {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ip-border);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 !important;
}
.ip-pop-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ip-pop-num { font-weight: 700; color: var(--ip-accent); flex: none; }
.ip-pop-list a { color: var(--ip-navy) !important; text-decoration: none !important; font-weight: 500; }
.ip-pop-list a:hover { color: var(--ip-accent) !important; text-decoration: underline !important; }

/* TOC */
.ip-toc { position: sticky; top: 90px; }
.ip-toc-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ip-toc-list li { margin: 0 0 4px !important; }
.ip-toc-list a {
  display: block;
  font-size: 14px;
  color: var(--ip-muted) !important;
  text-decoration: none !important;
  padding: 6px 10px;
  border-left: 2px solid var(--ip-border);
  line-height: 1.45;
}
.ip-toc-list a:hover { color: var(--ip-navy) !important; }
.ip-toc-list a.is-active { color: var(--ip-accent) !important; border-left-color: var(--ip-accent); font-weight: 600; }
.ip-toc-empty { font-size: 13px; color: var(--ip-muted); }

/* Feedback */
.ip-feedback { text-align: center; }
.ip-feedback-btns { display: flex; gap: 12px; justify-content: center; }
.ip-feedback-btns button {
  font-size: 24px;
  background: var(--ip-bg-soft);
  border: 1px solid var(--ip-border);
  border-radius: 50%;
  width: 52px; height: 52px;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.ip-feedback-btns button:hover { transform: scale(1.1); border-color: var(--ip-accent); }
.ip-feedback-msg { font-size: 14px; color: var(--ip-accent); margin: 10px 0 0 !important; font-weight: 600; }

/* ---------- AUTHORS ---------- */
.ip-authors { margin: 40px 0 10px; }
.ip-h2-line {
  font-size: 24px !important;
  color: var(--ip-navy) !important;
  font-weight: 600 !important;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ip-navy);
  margin: 0 0 20px !important;
  font-family: var(--ip-font-sans);
}
.ip-authors-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .ip-authors-grid { grid-template-columns: 1fr 1fr; } }
.ip-author-card { display: flex; gap: 16px; align-items: flex-start; }
.ip-author-photo img {
  width: 88px; height: 88px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.ip-author-name { font-size: 16.5px !important; font-weight: 600 !important; margin: 0 0 2px !important; }
.ip-author-name a { color: var(--ip-navy) !important; text-decoration: none !important; }
.ip-author-name a:hover { color: var(--ip-accent) !important; }
.ip-author-meta { font-size: 13.5px !important; color: var(--ip-muted) !important; margin: 0 0 6px !important; }
.ip-author-links { display: flex; gap: 14px; margin: 0 !important; }
.ip-author-links a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--ip-accent) !important; text-decoration: none !important;
}
.ip-author-links a:hover { text-decoration: underline !important; }

.ip-edited {
  font-size: 14px;
  color: var(--ip-muted);
  border-top: 1px solid var(--ip-border);
  padding-top: 16px;
  margin-top: 26px !important;
}

/* ---------- RELATED ---------- */
.ip-related { margin: 44px 0 10px; }
.ip-rel-grid { display: grid; gap: 22px; }
.ip-cols-2 .ip-rel-grid { grid-template-columns: 1fr 1fr; }
.ip-cols-3 .ip-rel-grid { grid-template-columns: 1fr 1fr 1fr; }
.ip-cols-4 .ip-rel-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .ip-rel-grid { grid-template-columns: 1fr !important; } }
.ip-rel-card { display: flex; flex-direction: column; }
.ip-rel-media { display: block; border-radius: var(--ip-radius); overflow: hidden; margin-bottom: 12px; aspect-ratio: 16/9; background: var(--ip-bg-soft); }
.ip-rel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; display: block; }
.ip-rel-card:hover .ip-rel-media img { transform: scale(1.04); }
.ip-rel-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #051c2c, #2251ff); }
.ip-rel-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ip-muted); margin: 0 0 6px !important; }
.ip-rel-title { font-size: 18px !important; line-height: 1.35 !important; margin: 0 !important; }
.ip-rel-title a { color: var(--ip-navy) !important; text-decoration: none !important; }
.ip-rel-title a:hover { color: var(--ip-accent) !important; }

/* ---------- Responsive WPBakery helpers ---------- */
@media (max-width: 767px) {
  .ip-hero { padding: 24px 16px 0; }
  .ip-prose { padding: 0 16px; }
  .ip-promo { flex-direction: column; align-items: stretch; }
  .ip-promo-media { flex: none; }
  .ip-toc { position: static; }
  .ip-toolbar { gap: 2px; }
  .ip-tool { padding: 8px; font-size: 13px; }
}
