/* ============================================================
   Repère IA — Hub Single  (.ri-hub-s-*)
   Namespace: .ri-hub-s-*  +  override .ri-hub-single
   LOCKED 2026-09-18 — desktop + mobile validated (commit 243fab6, v2.3.9)
   Reference: /hubs-ia/chatgpt/
   Do not modify layout or spacing during unrelated tasks.
   Explicit unlock required before any structural change.
   ============================================================ */

/* ── Container ────────────────────────────────────────────── */
.ri-hub-single { padding: 16px 0 32px; }
.ri-hub-single .ri-hubs-wrap {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ── Layout ───────────────────────────────────────────────── */
.ri-hub-s-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}
.ri-hub-s-main,
.ri-hub-s-side { min-width: 0; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.ri-hub-s-bc {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  color: var(--ri-text-muted);
  margin: 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ri-hub-s-bc a { color: #64748b; text-decoration: none; }
.ri-hub-s-bc a:hover { color: var(--ri-blue); }
.ri-hub-s-bc-sep { color: #b0b9cc; margin: 0 6px; font-size: 11px; }
.ri-hub-s-bc span:last-child { color: var(--ri-blue); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }

/* ── Hero ─────────────────────────────────────────────────── */
.ri-hub-s-hero {
  position: relative;
  min-height: 310px;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 77% 35%, rgba(62, 92, 255, .35), transparent 28%),
    linear-gradient(110deg, #07182f 0%, #091b42 54%, #061733 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 24px 28px;
}
.ri-hub-s-hero__copy { position: relative; z-index: 2; }
.ri-hub-s-badge {
  display: inline-flex;
  background: linear-gradient(90deg, #6950ff, #435eff);
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
}
.ri-hub-s-hero__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 10px 0 0;
}
.ri-hub-s-logo-tile {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  overflow: hidden;
}
.ri-hub-s-logo-tile img,
.ri-hub-s-logo-tile svg { width: 26px; height: 26px; object-fit: contain; display: block; }
.ri-hub-s-hero h1 {
  font-size: 42px;
  line-height: 1.0;
  margin: 0;
  letter-spacing: -1.2px;
  color: #fff;
}
.ri-hub-s-hero__copy > p {
  font-size: 12px;
  line-height: 1.55;
  color: #d9e3f4;
  max-width: 430px;
  margin: 10px 0 0;
}

.ri-hub-s-hero__stats {
  display: flex;
  gap: 18px;
  margin-top: 16px;
}
.ri-hub-s-stat b    { display: block; font-size: 20px; font-weight: 900; color: #fff; }
.ri-hub-s-stat span { font-size: 8px; color: #b9c7dc; }

.ri-hub-s-hero__actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ri-hub-s-btn {
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
}
.ri-hub-s-btn--primary { background: linear-gradient(90deg, #4c3cff, #416fff); color: #fff; }
.ri-hub-s-btn--ghost   { border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent; }
.ri-hub-s-btn svg      { width: 12px; height: 12px; }

/* ── Hero visual ──────────────────────────────────────────── */
.ri-hub-s-hero__visual { position: relative; min-height: 240px; }
.ri-hub-s-orb {
  position: absolute;
  inset: 6% 4% 0 4%;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 255, 210, .23), transparent 24%),
    radial-gradient(circle at 50% 52%, rgba(93, 71, 255, .28), transparent 36%);
}
.ri-hub-s-center-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  width: 130px;
  height: 130px;
  border-radius: 28px;
  background: linear-gradient(145deg, #02d8c7, #1d4fd6 60%, #161d68);
  box-shadow: 0 18px 44px rgba(3, 13, 52, .45),
              0 0 40px rgba(2, 216, 199, .18),
              inset 0 0 0 2px rgba(255,255,255,.2),
              inset 0 0 18px rgba(2, 216, 199, .07);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ri-hub-s-center-tile img,
.ri-hub-s-center-tile svg { width: 65px; height: 65px; object-fit: contain; }
.ri-hub-s-center-tile svg { color: rgba(255,255,255,.9); }
.ri-hub-s-platform {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
  width: 200px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #6154ff 0%, #241d7e 42%, #08142c 74%);
  box-shadow: 0 0 28px rgba(93, 74, 255, .6);
}
/* Subtle elliptic rings around the glow platform */
.ri-hub-s-platform::before,
.ri-hub-s-platform::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.ri-hub-s-platform::before {
  width: 135%;
  height: 135%;
  border: 1px solid rgba(97, 84, 255, .22);
}
.ri-hub-s-platform::after {
  width: 175%;
  height: 175%;
  border: 1px solid rgba(97, 84, 255, .12);
}
.ri-hub-s-float {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(96,117,255,.35);
  border-radius: 10px;
  background: rgba(14,32,83,.55);
  display: grid;
  place-items: center;
}
.ri-hub-s-float svg { width: 18px; height: 18px; color: #7c91ff; }
.ri-hub-s-float--1 { left: 10%; top: 12%; }
.ri-hub-s-float--2 { right: 6%;  top: 16%; }
.ri-hub-s-float--3 { left: 5%;   bottom: 16%; }
.ri-hub-s-float--4 { right: 8%; bottom: 14%; }

/* ── Ad slot ──────────────────────────────────────────────── */
.ri-hub-s-ad {
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #f3f7ff);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin: 12px 0;
  flex-direction: column;
  gap: 4px;
}
.ri-hub-s-ad strong { font-size: 12px; color: #3154ff; }
.ri-hub-s-ad span   { font-size: 10px; color: #71819b; display: block; }
.ri-hub-s-ad::after { content: "PUBLICITÉ"; position: absolute; right: 12px; top: 9px; font-size: 7px; letter-spacing: .08em; color: #8a98b3; }
.ri-hub-s-ad--square { min-height: 140px; }

/* ── Section head ─────────────────────────────────────────── */
.ri-hub-s-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 18px 0 10px;
}
.ri-hub-s-section-head h2 { font-size: 17px; margin: 0; color: #101a33; }
.ri-hub-s-section-head p  { font-size: 10px; color: #6e7c94; margin: 3px 0 0; }
.ri-hub-s-section-head a  { font-size: 9px; color: #3154ff; font-weight: 800; white-space: nowrap; }

/* ── Explore grid (5-col) ─────────────────────────────────── */
.ri-hub-s-explore-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.ri-hub-s-explore-card {
  border: 1px solid #e4e9f2;
  border-radius: 10px;
  padding: 12px;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow .18s ease;
}
.ri-hub-s-explore-card:hover { box-shadow: 0 5px 15px rgba(20,41,84,.06); }
.ri-hub-s-explore-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f0f2ff;
  color: #5e53ff;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  flex: 0 0 36px;
}
.ri-hub-s-explore-icon svg { width: 17px; height: 17px; }
.ri-hub-s-explore-card h3 { font-size: 11px; margin: 0 0 5px; color: #101a33; font-weight: 700; }
.ri-hub-s-explore-card p  { font-size: 9px; line-height: 1.45; color: #68778f; margin: 0; flex: 1; }
.ri-hub-s-explore-cta     { margin-top: auto; padding-top: 10px; font-size: 9px; color: #3154ff; font-weight: 800; text-decoration: none; display: block; }

/* ── Article grid (dynamic cols, set via inline style) ────── */
.ri-hub-s-article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
/* wpautop may inject empty <p> as phantom grid cells — remove from flow */
.ri-hub-s-article-grid > p { display: none; }
.ri-hub-s-article-card {
  border: 1px solid #e4e9f2;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .18s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.ri-hub-s-article-card:hover { box-shadow: 0 5px 14px rgba(20,41,84,.06); }
.ri-hub-s-article-image {
  height: 108px;
  overflow: hidden;
  background: linear-gradient(145deg, #031833, #16449f);
  position: relative;
  flex: 0 0 108px;
}
.ri-hub-s-article-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ri-hub-s-article-image--fallback { display: grid; place-items: center; }
.ri-hub-s-article-image--fallback svg { width: 24px; height: 24px; color: rgba(255,255,255,.3); }
.ri-hub-s-article-label {
  position: absolute;
  left: 7px;
  top: 7px;
  background: #5a4cff;
  color: #fff;
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .04em;
}
.ri-hub-s-article-body { padding: 9px 11px 11px; flex: 1; display: flex; flex-direction: column; }
.ri-hub-s-article-card h3 {
  font-size: 11px;
  line-height: 1.35;
  margin: 0 0 5px;
  color: #101a33;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ri-hub-s-article-card p  {
  font-size: 8.5px;
  line-height: 1.4;
  color: #6f7c92;
  margin: 0 0 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ri-hub-s-article-meta    { font-size: 8px; color: #8793a7; margin-top: auto; }

/* ── Editorial banner ─────────────────────────────────────── */
.ri-hub-s-banner {
  margin: 16px 0 0;
  border-radius: 10px;
  background: linear-gradient(100deg, #08162f, #101c48 55%, #07182e);
  color: #fff;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
}
.ri-hub-s-banner-illus {
  height: 68px;
  border-radius: 9px;
  background: radial-gradient(circle at 35% 42%, #5a52ff 0, #281987 34%, #07162d 76%);
  display: grid;
  place-items: center;
}
.ri-hub-s-banner-illus svg { width: 30px; height: 30px; color: rgba(255,255,255,.7); }
.ri-hub-s-banner h3 { font-size: 14px; margin: 0 0 4px; }
.ri-hub-s-banner p  { font-size: 9px; color: #c8d2e3; margin: 0 0 10px; }
.ri-hub-s-banner a  {
  display: inline-flex;
  background: linear-gradient(90deg, #5243ff, #3b64ff);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

/* ── Bottom 3-col grid ────────────────────────────────────── */
.ri-hub-s-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  margin: 16px 0 0;
}
.ri-hub-s-list-card {
  border: 1px solid #e4e9f2;
  border-radius: 9px;
  padding: 14px;
  min-height: 170px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.ri-hub-s-list-card h3 { font-size: 12px; margin: 0 0 10px; color: #101a33; font-weight: 700; }
.ri-hub-s-list { display: grid; gap: 7px; }
.ri-hub-s-list-row { display: flex; gap: 8px; align-items: flex-start; }
.ri-hub-s-list-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #edf2ff;
  color: #3154ff;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  flex: 0 0 24px;
}
.ri-hub-s-list-dot svg { width: 12px; height: 12px; color: #3154ff; }
.ri-hub-s-list-row b    { font-size: 9px; line-height: 1.3; color: #101a33; }
.ri-hub-s-list-row span { display: block; color: #7a879c; font-size: 8px; margin-top: 1px; }
.ri-hub-s-list-link     { display: block; margin-top: auto; padding-top: 10px; color: #3154ff; font-size: 9px; font-weight: 800; text-decoration: none; }

/* ── Sidebar ──────────────────────────────────────────────── */
.ri-hub-s-side { display: flex; flex-direction: column; gap: 12px; }
.ri-hub-s-sidebox {
  border: 1px solid #e4e9f2;
  border-radius: 11px;
  padding: 14px;
  background: #fff;
}
.ri-hub-s-sidebox h3 { font-size: 13px; margin: 0 0 10px; color: #101a33; font-weight: 700; }
.ri-hub-s-news-list { display: grid; gap: 9px; }
.ri-hub-s-news-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 9px;
  align-items: start;
  position: relative;
  cursor: pointer;
}
.ri-hub-s-news-row__abs {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}
/* wpautop occasionally injects empty <p> as first grid child — remove from flow */
.ri-hub-s-news-row > p { display: none; }
.ri-hub-s-news-row:hover b { color: #3154ff; }
.ri-hub-s-news-thumb {
  width: 58px;
  height: 46px;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(145deg, #0a1c48, #0b6691);
  flex: 0 0 58px;
}
.ri-hub-s-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ri-hub-s-news-thumb--fallback { display: grid; place-items: center; }
.ri-hub-s-news-thumb--fallback svg { width: 16px; height: 16px; color: rgba(255,255,255,.4); }
.ri-hub-s-news-row b    { font-size: 9.5px; line-height: 1.3; display: block; color: #101a33; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ri-hub-s-news-row span { display: block; margin-top: 3px; color: #7e8aa0; font-size: 8px; }
.ri-hub-s-side-cta {
  margin-top: 10px;
  border: 1px solid #dfe6f0;
  border-radius: 7px;
  padding: 8px;
  text-align: center;
  color: #3154ff;
  font-size: 9px;
  font-weight: 800;
  display: block;
  text-decoration: none;
}

/* ── Newsletter sidebar (validated premium pattern) ───────── */
.ri-hub-s-nl { background: #07182a; color: #fff; }
.ri-hub-s-nl-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.ri-hub-s-nl-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(49,84,255,.18);
  border: 1px solid rgba(49,84,255,.28);
  display: grid;
  place-items: center;
  flex: 0 0 36px;
}
.ri-hub-s-nl-icon svg { width: 17px; height: 17px; color: #8bb4ff; }
.ri-hub-s-nl h3 { color: #fff; font-size: 13px; line-height: 1.2; margin: 0; font-weight: 800; }
.ri-hub-s-nl p  { font-size: 10px; color: #aebbd0; line-height: 1.4; margin: 0 0 12px; }
.ri-hub-s-nl input {
  width: 100%;
  padding: 0 10px;
  height: 36px;
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  margin: 0 0 7px;
  font-size: 11px;
  color: #fff;
  box-sizing: border-box;
  display: block;
}
.ri-hub-s-nl input::placeholder { color: rgba(255,255,255,.4); }
.ri-hub-s-nl button {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, #3154ff, #654cff);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: block;
}

/* ── Tool ranking sidebar ─────────────────────────────────── */
.ri-hub-s-rank { display: grid; gap: 8px; }
.ri-hub-s-rank-row {
  display: grid;
  grid-template-columns: 18px 28px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.ri-hub-s-rank-num {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f0f3fa;
  display: grid;
  place-items: center;
  font-size: 7px;
  font-weight: 800;
  color: #4a5568;
}
.ri-hub-s-rank-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #eef4ff;
  border: 1px solid #dde6f7;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ri-hub-s-rank-logo img,
.ri-hub-s-rank-logo svg { width: 14px; height: 14px; display: block; object-fit: contain; color: #3154ff; }
.ri-hub-s-rank-row b    { font-size: 9px; color: #101a33; display: block; }
.ri-hub-s-rank-row span { display: block; color: #8390a5; font-size: 8px; }
.ri-hub-s-rank-score    { font-size: 9px; color: #f5a30a; font-weight: 800; white-space: nowrap; }

/* ── Help box ─────────────────────────────────────────────── */
.ri-hub-s-help-box { background: linear-gradient(135deg, #f8faff, #f2f5ff); }
.ri-hub-s-help-box p { font-size: 9px; color: #65738a; line-height: 1.4; margin-bottom: 10px; }
.ri-hub-s-help-box a {
  display: inline-block;
  background: #3154ff;
  color: #fff;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ri-hub-s-layout   { grid-template-columns: 1fr; }
  .ri-hub-s-side     { display: grid; grid-template-columns: 1fr 1fr; }
  .ri-hub-s-hero     { grid-template-columns: 1fr; min-height: auto; }
  .ri-hub-s-hero__visual { min-height: 200px; }
  .ri-hub-s-explore-grid  { grid-template-columns: repeat(3, 1fr); }
  .ri-hub-s-article-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ri-hub-s-bottom-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .ri-hub-single     { padding-top: 14px; padding-bottom: 28px; }
  .ri-hub-s-hero     { padding: 20px 16px; }
  .ri-hub-s-hero h1  { font-size: 32px; }
  .ri-hub-s-hero__stats    { gap: 14px; }
  .ri-hub-s-hero__actions  { flex-direction: column; }
  .ri-hub-s-hero__visual   { min-height: 190px; }
  .ri-hub-s-center-tile    { width: 110px; height: 110px; }
  .ri-hub-s-explore-grid   { grid-template-columns: repeat(2, 1fr); }
  .ri-hub-s-article-grid   { grid-template-columns: 1fr !important; }
  .ri-hub-s-bottom-grid    { grid-template-columns: 1fr !important; }
  .ri-hub-s-banner         { grid-template-columns: 1fr; }
  .ri-hub-s-side           { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ri-hub-s-hero h1       { font-size: 28px; }
  .ri-hub-s-hero__visual  { min-height: 170px; }
  .ri-hub-s-center-tile   { width: 92px; height: 92px; }
  .ri-hub-s-float         { width: 38px; height: 38px; }
  .ri-hub-s-explore-grid  { grid-template-columns: 1fr 1fr; }
}
