/**
 * @file
 * Hub page styles — pixel-perfect from Figma (852:15122).
 */

/* ===== HERO ===== */
.hub-hero {
  position: relative;
  background: var(--color-blue-light);
  overflow: hidden;
}

.hub-hero__inner {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  min-height: 681px;
  padding: 15px clamp(16px, 5.5vw, 80px) 112px;
}

.hub-hero__shape {
  position: absolute;
  left: clamp(16px, 5.5vw, 80px);
  top: 15px;
  width: calc(100% - 2 * clamp(16px, 5.5vw, 80px));
  max-width: 1280px;
  height: 510px;
  pointer-events: none;
  z-index: 0;
}

.hub-hero__shape--mobile {
  display: none;
}

/* Hero globules — Figma 852:15125, positions relative to hero (header=120px subtracted) */
.hub-hero .globule--1 {
  top: -47px;
  left: calc(clamp(16px, 5.5vw, 80px) + 44px);
  width: 365px;
  height: 390px;
}

.hub-hero .globule--hub-hero-2 {
  top: 94px;
  left: 551px;
  width: 293px;
  height: 293px;
}

/* Figma: type4 right, coupé par le bord droit. Anchored to right edge. */
.hub-hero .globule--hub-hero-3 {
  top: 227px;
  right: -231px;
  width: 602px;
  height: 596px;
}

.hub-hero__content {
  position: absolute;
  z-index: 1;
  left: calc(clamp(16px, 5.5vw, 80px) + 40px);
  top: 150px;
  width: 698px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Breadcrumb */
.hub-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0;
}

.hub-breadcrumb__home {
  display: flex;
  align-items: center;
  color: var(--color-blue);
}

.hub-breadcrumb__home svg {
  width: 12px;
  height: 10px;
}

.hub-breadcrumb__sep {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-blue);
  line-height: 1.5;
}

.hub-breadcrumb__link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-blue);
  line-height: 1.5;
  text-decoration: none;
}

.hub-breadcrumb__link:hover {
  text-decoration: underline;
}

.hub-breadcrumb__home,
.hub-breadcrumb__link {
  transition: opacity var(--transition-base);
}

.hub-breadcrumb__home:hover,
.hub-breadcrumb__link:hover {
  opacity: 0.7;
}

/* Mobile: breadcrumb plus petit et ferré à gauche, inline sur une seule "ligne" (qui peut wrapper) */
@media (max-width: 768px) {
  .hub-breadcrumb {
    display: block;
    text-align: left;
    line-height: 1.3;
  }
  .hub-breadcrumb__home,
  .hub-breadcrumb__sep,
  .hub-breadcrumb__link,
  .hub-breadcrumb__current {
    display: inline;
    font-size: 10px;
    vertical-align: baseline;
  }
  .hub-breadcrumb__home svg {
    width: 10px;
    height: 8px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
  }
}

.hub-breadcrumb__current {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-blue);
  line-height: 1.5;
}

/* Hero title */
.hub-hero__title {
  font-family: var(--font-heading);
  font-size: 75px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--color-blue);
  line-height: 1;
  margin: 0;
  max-width: 590px;
}

/* Hero title pill (circled words) */
.hub-hero__title-pill,
.quiz-hero__title-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-blue);
  border-radius: 100px;
  padding: 0 16px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Hero text */
.hub-hero__text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-black);
  max-width: 698px;
}

.hub-hero__text strong {
  font-weight: 600;
}

/* ===== FEATURED ARTICLE CARD ===== */
.hub-featured-card {
  position: absolute;
  right: clamp(16px, 5.5vw, 80px);
  top: 15px;
  width: 634px;
  background: var(--color-white);
  border-radius: 16px 16px 16px 24px;
  padding: 16px;
  text-decoration: none;
  color: var(--color-black);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hub-featured-card:hover {
  text-decoration: none;
}

/* Featured card tag */
.hub-featured-card__tag .tag--orange {
  border: 1px solid var(--color-orange);
  color: var(--color-orange);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
}

.tag--orange {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-orange);
  border-radius: 100px;
  padding: 4px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-orange);
  line-height: 1.3;
}

.hub-featured-card__content {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hub-featured-card__img {
  width: 126px;
  height: 126px;
  border-radius: 16px;
  background: var(--color-blue-light);
  flex-shrink: 0;
  overflow: hidden;
}

.hub-featured-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-featured-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hub-featured-card__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-black);
  line-height: normal;
  margin: 0;
}

.hub-featured-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
}

.hub-featured-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.hub-featured-card__author-info {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding-bottom: 2px;
}

.hub-featured-card__author-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--color-black);
  line-height: 1.5;
}

/* "avec le" prefix — Figma: lowercase, regular weight */
.hub-featured-card__author-prefix {
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0;
}

.hub-featured-card__author-role {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-orange);
  line-height: 1.5;
}

.hub-featured-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  align-self: flex-end;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--transition-base);
}

.hub-featured-card__cta-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--color-blue);
  line-height: 1;
}

.hub-featured-card__cta svg {
  color: var(--color-blue);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.hub-featured-card:hover .hub-featured-card__cta {
  border-color: var(--color-blue);
}

.hub-featured-card:hover .hub-featured-card__cta svg {
  transform: scale(1.3);
}

/* ===== BLOC 1 — ARTICLE LISTING ===== */
.hub-articles {
  position: relative;
  background: var(--color-white);
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  overflow: hidden;
}

.hub-articles__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 80px 188px 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

/* Hub heading — H2 with pill pattern */
.hub-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.hub-heading--left {
  align-items: flex-start;
  text-align: left;
}

.hub-heading__text {
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--color-blue);
  line-height: 1;
}

.hub-heading__pill {
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--color-blue);
  line-height: 1;
  border: 1px solid var(--color-blue);
  border-radius: 100px;
  padding: 0 8px;
  display: inline-block;
}

/* Article list */
.hub-article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1064px;
}

.hub-article-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--color-black);
}

.hub-article-item:hover {
  text-decoration: none;
}

.hub-article-item:hover .hub-article-item__title {
  text-decoration: underline;
}

.hub-article-item__separator {
  height: 2px;
  background: rgba(15, 101, 228, 0.1);
}

.hub-article-item__content {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hub-article-item__img {
  width: 78px;
  height: 78px;
  border-radius: var(--radius-md);
  background: var(--color-blue-light);
  flex-shrink: 0;
  overflow: hidden;
}

.hub-article-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-article-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-article-item__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-black);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-article-item__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-article-item__author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.hub-article-item__author-details {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
}

.hub-article-item__author-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--color-black);
  line-height: 1.3;
}

.hub-article-item__author-role {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-orange);
  line-height: 1.5;
}

.hub-article-item__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0.8px solid var(--color-blue);
  background: var(--color-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-blue);
  transition: background var(--transition-base), color var(--transition-base);
}

.hub-article-item:hover .hub-article-item__arrow {
  background: var(--color-blue);
  color: var(--color-white);
}

/* ===== BLOC 2 — MEDECIN ===== */
.hub-medecin {
  background: var(--color-blue-light);
  overflow: hidden;
  border-radius: 32px;
  position: relative;
  z-index: 1;
  margin-top: -32px;
}

/* Medecin globules — Figma 852:15327
   Positions anchored to edges so they work on any screen width. */
.globule--hub-med-left {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  left: -169px;
  top: 50%;
  width: 422px;
  height: 415px;
  opacity: 0.9;
  transform: translateY(-50%) rotate(11.28deg);
}

.globule--hub-med-right {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  top: -174px;
  right: -442px;
  width: 800px;
  height: 777px;
  opacity: 0.7;
  transform: rotate(106.25deg);
}

.globule--hub-med-left img,
.globule--hub-med-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hub-medecin__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 80px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.hub-medecin__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

/* Medecin H2 — left-aligned, Figma: 50px Share Tech Mono */
.hub-medecin__left .hub-heading__text {
  font-size: 50px;
}

/* Quote card — Figma: 433×200 */
.hub-medecin__quote {
  position: relative;
  width: 433px;
  height: 200px;
}

.hub-medecin__quote-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hub-medecin__quote-bg--mobile {
  display: none;
}

.hub-medecin__quote-inner {
  position: relative;
  z-index: 1;
  padding: 16px;
  height: 100%;
}

.hub-medecin__quote-icon {
  position: absolute;
  right: 0;
  top: 0;
  width: 57px;
  height: 57px;
  overflow: hidden;
  z-index: 2;
}

/* Figma: shape center offset calc(50% - 5.66px), calc(50% + 3.1px) */
.hub-medecin__quote-icon img {
  position: absolute;
  width: 46px;
  height: 47px;
  left: calc(50% - 5.66px - 23px);
  top: calc(50% + 3.1px - 23.5px);
}

.hub-medecin__quote-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.hub-medecin__quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.hub-medecin__quote-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--color-black);
  line-height: normal;
  padding-bottom: 2px;
}

.hub-medecin__quote-role {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-orange);
  line-height: 1.5;
}

/* Figma: 14px SemiBold, absolute position left:64 right:33 top:88 */
.hub-medecin__quote-text {
  position: absolute;
  top: 88px;
  left: 64px;
  right: 33px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-black);
  margin: 0;
}

.text-blue {
  color: var(--color-blue);
}

/* Right column — Figma: flex-col, gap 20px, items-start justify-center */
.hub-medecin__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* Figma: H3, 32px Share Tech Mono, orange, center, letter-spacing -5% */
.hub-medecin__right-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--color-orange);
  text-align: center;
  line-height: normal;
  margin: 0;
  width: 100%;
}

/* RDV card in hub reuses homepage hp-rdv-card__* classes.
   No additional styles needed — all handled by homepage.css. */

/* ===== BLOC 3 — RELATED HUBS ===== */
.hub-related {
  background: var(--color-white);
  border-radius: 0;
  overflow: hidden;
  margin-top: -32px;
}

.hub-related__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 80px 80px 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.hub-related__grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Hub related card */
.hub-related-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  max-width: 413px;
}

/* Figma: image 413×413, border-radius 16px */
.hub-related-card__img {
  position: relative;
}

.hub-related-card__img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-blue-light);
  border-radius: 16px;
}

.hub-related-card__img > img:first-child {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Decorative shapes on card images — Figma */
.hub-related-card__shape {
  position: absolute;
  pointer-events: none;
}

.hub-related-card__shape--top-left {
  top: -1.5px;
  left: -9px;
  width: 74px;
  height: 40px;
}

.hub-related-card__shape--bottom-right {
  bottom: -2px;
  right: -9px;
  width: 121.5px;
  height: 40px;
  transform: rotate(180deg);
}

/* Figma: body = gap 40px between H3+Txt group and CTA */
.hub-related-card__body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Figma: H3 + Txt group = gap 8px */
.hub-related-card__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-related-card__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--color-orange);
  line-height: normal;
  margin: 0;
}

/* Figma: 16px Regular, line-height 1.5 — texte entier affiché */
.hub-related-card__text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-black);
  margin: 0;
}

/* CTA button in related cards — pill style, not full-width */
.hub-related-card .btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 100px;
  border: 0.8px solid var(--color-blue);
  background: var(--color-blue-light);
  color: var(--color-blue);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  text-decoration: none;
  overflow: hidden;
}

/* ===== HUBS LIES (shared with podcast) ===== */
.hubs-lies {
  background: var(--color-blue-light);
  padding-block: var(--space-3xl);
  margin-top: var(--space-3xl);
}

.hubs-lies__title {
  font-family: var(--font-heading);
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.hubs-lies__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

/* Hub link card (shared) */
.hub-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-decoration: none;
  color: var(--color-black);
  display: block;
}

.hub-card__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-blue-light);
  margin-bottom: var(--space-md);
  display: block;
}

/* Ensure real images display properly in hub cards */
.hub-card__image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.hub-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xs);
}

.hub-card__text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-black);
  opacity: 0.7;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.hub-card__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
}

/* Mobile CTA — hidden on desktop */
.hub-hero__mobile-cta {
  display: none;
}

/* ===== INTERMEDIATE — 1024px ===== */
@media (max-width: 1024px) {
  .hub-hero__inner {
    padding: 15px clamp(16px, 5.5vw, 80px) 120px;
  }
  /* Switch to mobile shape (filled) at 1024px */
  .hub-hero__shape--desktop {
    display: none;
  }
  .hub-hero__shape--mobile {
    display: block;
    position: absolute;
    top: 15px;
    left: clamp(16px, 5.5vw, 80px);
    width: calc(100% - 2 * clamp(16px, 5.5vw, 80px));
    max-width: none;
    height: calc(100% - 15px - 120px);
    z-index: 0;
    pointer-events: none;
  }
  /* Show mobile CTA */
  .hub-hero__mobile-cta {
    display: flex;
    align-items: center;
    gap: 32px;
    position: absolute;
    bottom: 52px;
    left: clamp(16px, 5.5vw, 80px);
    right: clamp(16px, 5.5vw, 80px);
    width: auto;
    padding: 8px 24px 8px 8px;
    background: var(--color-blue);
    color: var(--color-white);
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: -0.7px;
    text-decoration: none;
    text-align: center;
    line-height: normal;
    z-index: 4;
    justify-content: center;
    transition: background var(--transition-base);
  }
  .hub-hero__mobile-cta:hover {
    background: var(--color-orange);
  }
  .hub-hero__mobile-cta-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .hub-hero__content {
    position: absolute;
    left: calc(clamp(16px, 5.5vw, 80px) + 20px);
    top: 139px;
    width: 50%;
    margin-top: 0;
    margin-left: 0;
  }
  .hub-hero__title {
    font-size: 50px;
    max-width: 100%;
  }
  .hub-featured-card {
    top: 15px;       /* aligned to shape top */
    right: clamp(16px, 5.5vw, 80px);     /* aligned to shape right edge */
    width: 45%;
  }
  .hub-featured-card__img {
    width: 100px;
    height: 100px;
  }
  .hub-articles__inner {
    padding: 60px 80px 80px;
  }
  .hub-medecin__inner {
    padding: 60px 80px;
  }
  .hub-related__inner {
    padding: 40px 80px 80px;
  }
}
/* ===== TAILLES INTERMEDIAIRES — titre progressif ===== */
@media (max-width: 1410px) {
  .hub-hero__title {
    font-size: 70px;
  }
}

@media (max-width: 1370px) {
  .hub-hero__title {
    font-size: 65px;
  }
}

@media (max-width: 1335px) {
  .hub-hero__title {
    font-size: 60px;
  }
}

@media (max-width: 1300px) {
  .hub-hero__title {
    font-size: 55px;
  }
}

/* ===== TAILLE INTERMEDIAIRE ===== */
@media (max-width: 1370px) {
  .hub-hero__content{
    top: 240px;
  }

  .hub-hero__content{
    width: calc(100% - 125px);
  }
  .hub-hero__title{
    max-width: initial;
  }
}
/* ===== MOBILE ===== */
@media (max-width: 768px) {

  /* ---- Hero ---- */
  /* Fluid layout mirroring homepage pattern.
     Padding = --container-padding-mobile (20px). Shape fills container minus padding.
     Card right-aligned to shape edge. Content positioned via calc.
     JS shape CARD_W=252, GAP=8 → notch matches card position. */
  .hub-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 750px;
    padding: 16px 16px 80px;
  }
  /* Mobile shape — Figma: top 169, height 533, grows with content */
  .hub-hero__shape--mobile {
    top: 16px;
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 16px - 130px);
    min-height: 533px;
  }
  .hub-hero .globule--1 {
    top: 17px;
    left: -7px;
    width: 216px;
    height: 230px;
    display: block;
    z-index: 1;
  }
  /* Fil d'ariane — Figma: visible en mobile */
  .hub-breadcrumb {
    font-size: 12px;
  }
  /* Content — relative so it pushes hero height, inside shape with 12px inset */
  .hub-hero__content {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    max-width: none;
    margin-top: 215px;
    padding: 0 12px;
    gap: 12px;
  }
  .hub-hero__title {
    font-size: 42px;
    letter-spacing: -2.1px;
    max-width: 100%;
  }
  .hub-hero__title-pill,
  .quiz-hero__title-pill {
    border-width: 0.8px;
    padding: 0 8px;
  }

  /* Featured card — right-aligned to shape edge, 252px wide.
     Card right = shape right = container padding = var(--container-padding-mobile).
     This ensures JS notch (CARD_W=252) aligns exactly with card. */
  .hub-featured-card {
    position: absolute;
    top: 16px;       /* aligned to shape top */
    left: auto;
    right: 16px;
    width: 252px;
    z-index: 2;
    padding: 16px;
    border-radius: 16px 16px 16px 24px;
    gap: 6px;
  }
  .hub-featured-card__tag {
    display: flex;
  }
  .hub-featured-card__content {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }
  .hub-featured-card__img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }
  /* On mobile, flatten info so title stays next to image
     and author drops to its own full-width row */
  .hub-featured-card__info {
    display: contents;
  }
  .hub-featured-card__title {
    flex: 1;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: -0.36px;
  }
  .hub-featured-card__author {
    width: 100%;
    height: 34px;
    gap: 8px;
    order: 3;
  }
  .hub-featured-card__avatar {
    width: 24px;
    height: 24px;
  }
  .hub-featured-card__author-name {
    font-size: 12px;
  }
  .hub-featured-card__author-role {
    font-size: 12px;
  }
  .hub-featured-card__cta {
    display: flex;
  }
  .hub-featured-card__cta-text {
    font-size: 14px;
  }

  /* Mobile CTA — below the shape, in the flow */
  .hub-hero__mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
    margin: auto auto 0;
    position: relative;
    top: 30px;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 8px 24px 8px 8px;
    background: var(--color-blue);
    color: var(--color-white);
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: -0.7px;
    text-decoration: none;
    text-align: center;
    line-height: normal;
    z-index: 4;
    justify-content: center;
    transition: background var(--transition-base);
  }
  .hub-hero__mobile-cta:hover {
    background: var(--color-orange);
  }
  .hub-hero__mobile-cta-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* ---- Bloc 1 — Articles ---- */
  .hub-articles {
    border-radius: 32px 32px 0 0;
    margin-top: -24px;
  }
  .hub-articles__inner {
    padding: 42px 16px 42px;
    gap: 24px;
  }
  .hub-heading__text,
  .hub-heading__pill {
    font-size: 30px;
    letter-spacing: -2px;
  }
  .hub-article-list {
    max-width: 358px;
  }
  .hub-article-item__title {
    font-size: 16px;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }
  /* Figma: extra spacing below H2 heading */
  .hub-articles__inner .hub-heading {
    margin-bottom: 8px;
  }

  .globule--hub-med-left,
  .globule--hub-med-right {
    display: none;
  }
  /* Hide desktop-only hero globule type3 on mobile */
  .hub-hero .globule--hub-hero-2 {
    display: none;
  }
  /* Reposition type4 for mobile — Figma 772:5242 */
  .hub-hero .globule--hub-hero-3 {
    display: block;
    top: 750px;
    right: auto;
    left: 138px;
    width: 354px;
    height: 350px;
    z-index: 0;
    opacity: 0.7;
  }

  /* ---- Bloc 2 — Médecin ---- */
  /* White wrapper flush against articles (both white). No border-radius on top
     to avoid exposing body bg. Inner gets blue bg + rounded-32. */
  .hub-medecin {
    background: var(--color-white);
    border-radius: 0;
    margin-top: 0;
  }
  .hub-medecin__inner {
    background: var(--color-blue-light);
    border-radius: 32px;
    flex-direction: column;
    padding: 42px 16px;
    gap: 24px;
  }
  /* display:contents so children participate in inner's flex ordering */
  .hub-medecin__left {
    display: contents;
  }
  .hub-medecin__left .hub-heading {
    order: 1;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .hub-medecin__left .hub-heading__text {
    font-size: 30px;
    text-align: center;
  }
  .hub-medecin__left .hub-heading__pill {
    font-size: 30px;
  }
  .hub-medecin__right-title {
    display: none;
  }
  .hub-medecin__right {
    order: 2;
    width: 100%;
    min-width: 0;
  }
  /* Quote — after options (order 3) */
  .hub-medecin__quote {
    order: 3;
    width: 100%;
    max-width: 358px;
    height: 200px;
    align-self: center;
  }
  .hub-medecin__quote-bg--desktop {
    display: none;
  }
  .hub-medecin__quote-bg--mobile {
    display: block;
  }
  .hub-medecin__quote-text {
    font-size: 16px;
  }

  /* ---- Bloc 3 — Related hubs ---- */
  /* Figma: Bloc 3 bg white, rounded-bl/br-32, py-42 px-16 */
  .hub-related {
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    padding-top: 30px;
  }
  .hub-related__inner {
    padding: 42px 16px 80px;
    gap: 42px;
  }
  .hub-related__grid {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-top: 15px;
  }
  .hub-related-card {
    max-width: 100%;
    gap: 24px;
    align-items: center;
  }
  /* Images — Figma: 280x280, border-radius 16px, centré */
  .hub-related-card__img {
    max-width: 280px;
    margin: 0 auto;
    overflow: visible;
  }
  .hub-related-card__img > img:first-child,
  .hub-related-card__img-placeholder {
    width: 280px;
    height: 280px;
    aspect-ratio: 1;
    border-radius: 16px;
  }
  .hub-related-card__title {
    font-size: 24px;
    letter-spacing: -1.2px;
  }
  .hub-related-card__text {
    flex: 0;
  }
  /* Boutons — Figma: centré, 100% width */
  .hub-related-card .btn--secondary {
    width: 100%;
    align-self: center;
  }
  .hub-related-card__body {
    align-items: center;
  }

  .hubs-lies__grid {
    grid-template-columns: 1fr;
  }
}
