/* =========================================================
   CXO Club — styles isolés (préfixe .cxo-club- systématique)
   ========================================================= */

.cxo-club-section {
  --cxo-blue: #1f40fc;
  --cxo-blue-light: #0e97f7;
  --cxo-violet: #8d3ffd;
  --cxo-violet-light: #a259ff;
  --cxo-ink: #0c1932;
  --cxo-gray: #5b6478;
  --cxo-bg: #f8faff;
  --cxo-navy: #05070f;
  --cxo-navy-2: #0a0e22;

  position: relative;
  isolation: isolate;
  background: var(--cxo-bg);
  overflow: hidden;
  padding: 88px 5vw;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--cxo-ink);
  box-sizing: border-box;
  /* Full-bleed : le container WordPress (thème / page builder) qui entoure
     le shortcode peut être étroit (900-1200px). On sort visuellement de ce
     container pour que la section — et donc .cxo-club-grid, qui a déjà sa
     propre largeur de référence (max-width: 1680px) — se base sur la
     largeur du VIEWPORT et non sur celle du parent WordPress. */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.cxo-club-section *,
.cxo-club-section *::before,
.cxo-club-section *::after {
  box-sizing: inherit;
}
.cxo-club-section img {
  max-width: 100%;
  display: block;
}

/* ---------- decorative layer ---------- */
.cxo-club-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cxo-club-earth {
  position: absolute;
  left: -8%;
  bottom: -10%;
  width: 50%;
  aspect-ratio: 680 / 740;
  overflow: hidden;
  background-image: url("../images/earth-bg.jpg");
  background-size: cover;
  background-position: 50% 50%;
  -webkit-mask-image: radial-gradient(ellipse 74% 60% at 32% 74%, #000 56%, rgba(0, 0, 0, .38) 76%, transparent 92%);
  mask-image: radial-gradient(ellipse 74% 60% at 32% 74%, #000 56%, rgba(0, 0, 0, .38) 76%, transparent 92%);
}
.cxo-club-earth::before {
  content: "";
  position: absolute;
  top: 38%;
  left: 76%;
  width: 32%;
  height: 32%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(180, 215, 255, 0.32) 0%, rgba(150, 130, 255, 0.16) 42%, transparent 68%);
}
.cxo-club-earth::after {
  content: "";
  position: absolute;
  top: 38%;
  left: 76%;
  width: 9%;
  height: 9%;
  min-width: 46px;
  min-height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.95) 12%, rgba(190, 225, 255, 0.75) 30%, rgba(120, 170, 255, 0.32) 55%, transparent 74%);
}
.cxo-club-orbit {
  stroke: url(#cxo-club-orbit-gradient);
  fill: none;
}
.cxo-club-orbits-svg {
  position: absolute;
  top: 4%;
  left: 30%;
  width: 34%;
  max-width: 480px;
  height: auto;
  opacity: .95;
}
.cxo-club-dot {
  fill: var(--cxo-violet-light);
}

/* ---------- layout ---------- */
/* Grille fluide à 3 zones : INTRO | CARTES | CXO.
   Chaque colonne est un minmax() — aucune ne peut jamais dépasser
   son conteneur, donc aucun chevauchement n'est possible, à
   n'importe quelle largeur d'écran desktop (1201px et plus). */
.cxo-club-grid {
  position: relative;
  z-index: 1;
  width: calc(100% - 64px);
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(345px, 350px) minmax(0, 1fr) minmax(400px, 0.575fr);
  gap: 28px;
  align-items: start;
}

/* ---------- intro ---------- */
.cxo-club-intro {
  grid-column: 1;
  min-width: 0;
  padding-top: 8px;
}
.cxo-club-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cxo-blue);
  text-transform: uppercase;
}
.cxo-club-title {
  margin: 0;
  font-size: 39px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
  color: var(--cxo-ink);
  word-break: normal !important;
  overflow-wrap: normal !important;
}
.cxo-club-title-gradient {
  background: linear-gradient(92deg, var(--cxo-blue-light), var(--cxo-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cxo-club-title-rule {
  width: 46px;
  height: 3px;
  border-radius: 2px;
  margin: 20px 0;
  background: linear-gradient(90deg, var(--cxo-blue-light), var(--cxo-violet));
}
.cxo-club-intro-text {
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--cxo-gray);
  max-width: 260px;
}
.cxo-club-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 13px;
  background: linear-gradient(180deg, #171b2e, #0a0d1a);
  border: 1px solid rgba(140, 170, 255, 0.35);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(141, 63, 253, 0.1),
    0 12px 28px -10px rgba(31, 64, 252, 0.5),
    0 6px 26px -6px rgba(141, 63, 253, 0.5);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cxo-club-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.cxo-club-cta:hover,
.cxo-club-cta:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(162, 89, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(141, 63, 253, 0.18),
    0 14px 30px -10px rgba(31, 64, 252, 0.55),
    0 0 28px -4px rgba(141, 63, 253, 0.65);
  color: #fff;
}
.cxo-club-cta:hover svg,
.cxo-club-cta:focus-visible svg {
  transform: translateX(4px);
}
.cxo-club-cta:focus-visible {
  outline: 2px solid var(--cxo-blue-light);
  outline-offset: 3px;
}

/* ---------- cards ---------- */
.cxo-club-cards {
  grid-column: 2;
  min-width: 0;
  align-self: start;
  margin-top: 66px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cxo-club-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 562px;
  background: #fff;
  border-radius: 20px;
  padding: 0 0 18px;
  box-shadow: 0 14px 40px -20px rgba(20, 30, 70, 0.25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cxo-club-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 22px 50px -18px rgba(20, 30, 70, 0.3),
    0 0 26px -6px rgba(141, 63, 253, 0.35),
    0 0 26px -6px rgba(31, 64, 252, 0.25);
}
.cxo-club-card-media {
  position: relative;
  margin: 10px 10px 0;
  overflow: visible;
  flex-shrink: 0;
}
.cxo-club-card-image-crop {
  border-radius: 15px;
  overflow: hidden;
  height: 306px;
}
.cxo-club-card-image-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cxo-club-card:hover .cxo-club-card-image-crop img {
  transform: scale(1.06);
}
.cxo-club-badge {
  position: absolute;
  left: 50%;
  bottom: -23px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
  background: linear-gradient(145deg, #176cff 0%, #315cff 45%, #7a32ff 100%);
  box-shadow:
    0 10px 18px -6px rgba(10, 15, 40, 0.5),
    0 0 18px -2px rgba(122, 50, 255, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.cxo-club-badge svg {
  width: 18px;
  height: 18px;
  color: #fff;
}
.cxo-club-card-rule {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  margin: 36px 14px 10px;
  background: linear-gradient(90deg, var(--cxo-blue-light), var(--cxo-violet));
  flex-shrink: 0;
}
.cxo-club-card-title {
  margin: 0 14px 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cxo-ink);
  word-break: normal !important;
  overflow-wrap: normal !important;
  flex-shrink: 0;
}
.cxo-club-card-text {
  margin: 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cxo-gray);
  flex: 1;
}
.cxo-club-card-arrow {
  margin: auto 14px 0;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(141, 63, 253, 0.45);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cxo-violet);
  text-decoration: none;
  transition: background .25s ease, transform .25s ease, border-color .25s ease, color .25s ease;
}
.cxo-club-card-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform .25s ease;
}
.cxo-club-card:hover .cxo-club-card-arrow {
  background: linear-gradient(160deg, var(--cxo-blue-light), var(--cxo-violet));
  border-color: transparent;
  color: #fff;
}
.cxo-club-card:hover .cxo-club-card-arrow svg {
  transform: translateX(3px);
}

/* ---------- LinkedIn panel ---------- */
.cxo-club-linkedin {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  align-self: stretch;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--cxo-navy-2), var(--cxo-navy));
  border-radius: 24px;
  padding: 26px;
  border: 1px solid rgba(120, 130, 255, 0.25);
  box-shadow:
    0 26px 60px -28px rgba(10, 15, 40, 0.6),
    0 0 38px -12px rgba(90, 90, 255, 0.32);
  min-height: 100%;
}
.cxo-club-li-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cxo-club-li-eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.cxo-club-li-eyebrow strong {
  color: #4ea1ff;
  font-weight: 700;
}
.cxo-club-li-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #2f6fed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cxo-club-li-logo svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.cxo-club-li-title {
  margin: 0 0 20px;
  font-size: 33px;
  line-height: 1.12;
  font-weight: 800;
  color: #fff;
}
.cxo-club-li-title-gradient {
  background: linear-gradient(92deg, #2e93ff, #a259ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cxo-club-li-post {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
}
.cxo-club-li-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
}
.cxo-club-li-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #0c1932;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cxo-club-li-post-meta {
  flex: 1;
  min-width: 0;
}
.cxo-club-li-post-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cxo-ink);
  line-height: 1.3;
}
.cxo-club-li-post-sub {
  font-size: 11.5px;
  color: var(--cxo-gray);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cxo-club-li-post-sub svg {
  width: 11px;
  height: 11px;
}
.cxo-club-li-menu {
  color: var(--cxo-gray);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  padding: 4px;
}
.cxo-club-li-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.cxo-club-li-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 45%;
}
.cxo-club-li-caption {
  margin: 18px 0 20px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.cxo-club-li-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.cxo-club-li-cta {
  position: relative;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 13px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#070c1c, #070c1c) padding-box,
    linear-gradient(90deg, #00beff, #2e6bff, #8b3cff) border-box;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 0 18px rgba(0, 190, 255, .26),
    0 0 30px rgba(139, 60, 255, .26);
  transition: box-shadow .25s ease, transform .25s ease;
}
.cxo-club-li-cta:hover,
.cxo-club-li-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 32px -4px rgba(140, 100, 255, 0.7);
  color: #fff;
}
.cxo-club-li-cta:focus-visible {
  outline: 2px solid #4ea1ff;
  outline-offset: 3px;
}

/* =========================================================
   Planète — élément décoratif indépendant du layout principal.
   Elle ne participe pas à la grille (position absolute dans
   .cxo-club-deco, qui est lui-même absolute/inset:0 sur la
   section) : elle ne peut donc jamais influencer les largeurs
   de colonnes ni provoquer d'overflow horizontal. On lui donne
   sa présence complète dès que l'écran repasse en desktop
   (au-dessus du breakpoint tablette 1200px).
   ========================================================= */
@media (min-width: 1201px) {
  .cxo-club-earth {
    width: 920px;
    aspect-ratio: 680 / 740;
    left: -500px;
    bottom: -247px;
  }
}

/* =========================================================
   Desktop — TROIS paliers à colonnes FIXES (jamais de
   minmax(0, fr) sur les cartes au-dessus de 1200px). Chaque
   palier a été dimensionné pour tenir sans aucun débordement
   à SA largeur minimale réelle (calcul, pas estimation) :

   1201-1365px : cartes 137px  (tient dès 1201px, marge 2px)
   1366-1535px : cartes 175px  (tient dès 1366px, marge 3px)
   >=1536px    : cartes 196px  (tient dès 1520px, marge 16px)

   Une carte ne descend donc jamais sous ~137px, et chaque
   palier est intégralement autonome (toutes les propriétés
   nécessaires sont redéfinies) pour éviter qu'un palier hérite
   accidentellement d'une valeur d'un autre.
   ========================================================= */
@media (min-width: 1201px) {
  .cxo-club-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .cxo-club-grid {
    width: 100%;
    max-width: none;
    justify-content: center;
    grid-template-columns: 316px auto 360px;
    gap: 18px;
  }
  .cxo-club-intro {
    width: 316px;
  }
  .cxo-club-title {
    font-size: 34px;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  .cxo-club-cards {
    grid-template-columns: repeat(3, 137px);
    gap: 14px;
  }
  .cxo-club-card {
    width: 137px;
    min-width: 137px;
    height: 495px;
  }
  .cxo-club-card-image-crop {
    height: 214px;
  }
  .cxo-club-card-rule {
    margin: 30px 12px 8px;
  }
  .cxo-club-badge {
    width: 38px;
    height: 38px;
    bottom: -19px;
  }
  .cxo-club-badge svg {
    width: 15px;
    height: 15px;
  }
  .cxo-club-card-arrow {
    width: 38px;
    height: 38px;
    margin: auto 12px 0;
  }
  .cxo-club-card-arrow svg {
    width: 14px;
    height: 14px;
  }
  .cxo-club-linkedin {
    width: 360px;
  }
}

@media (min-width: 1366px) {
  .cxo-club-section {
    padding-left: 28px;
    padding-right: 28px;
  }
  .cxo-club-grid {
    width: 100%;
    max-width: none;
    justify-content: center;
    grid-template-columns: 320px auto 390px;
    gap: 20px;
  }
  .cxo-club-intro {
    width: 320px;
  }
  .cxo-club-title {
    font-size: 34px;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  .cxo-club-cards {
    grid-template-columns: repeat(3, 175px);
    gap: 16px;
  }
  .cxo-club-card {
    width: 175px;
    min-width: 175px;
    height: 545px;
  }
  .cxo-club-card-image-crop {
    height: 275px;
  }
  .cxo-club-card-rule {
    margin: 33px 14px 10px;
  }
  .cxo-club-badge {
    width: 42px;
    height: 42px;
    bottom: -21px;
  }
  .cxo-club-badge svg {
    width: 17px;
    height: 17px;
  }
  .cxo-club-card-arrow {
    width: 42px;
    height: 42px;
    margin: auto 14px 0;
  }
  .cxo-club-card-arrow svg {
    width: 15px;
    height: 15px;
  }
  .cxo-club-linkedin {
    width: 390px;
  }
}

@media (min-width: 1536px) {
  .cxo-club-section {
    padding-left: 32px;
    padding-right: 32px;
  }
  .cxo-club-grid {
    width: 100%;
    max-width: none;
    justify-content: center;
    grid-template-columns: 350px auto 430px;
    gap: 24px;
  }
  .cxo-club-intro {
    width: 350px;
  }
  .cxo-club-title {
    font-size: 39px;
    letter-spacing: -0.025em;
    white-space: nowrap;
  }
  .cxo-club-cards {
    grid-template-columns: repeat(3, 196px);
    gap: 20px;
  }
  .cxo-club-card {
    width: 196px;
    min-width: 196px;
    height: 562px;
  }
  .cxo-club-card-image-crop {
    height: 306px;
  }
  .cxo-club-card-rule {
    margin: 36px 14px 10px;
  }
  .cxo-club-badge {
    width: 46px;
    height: 46px;
    bottom: -23px;
  }
  .cxo-club-badge svg {
    width: 18px;
    height: 18px;
  }
  .cxo-club-card-arrow {
    width: 46px;
    height: 46px;
    margin: auto 14px 0;
  }
  .cxo-club-card-arrow svg {
    width: 16px;
    height: 16px;
  }
  .cxo-club-linkedin {
    width: 430px;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .cxo-club-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .cxo-club-intro { grid-column: 1 / 2; grid-row: 1; }
  .cxo-club-linkedin { grid-column: 2 / 3; grid-row: 1 / 3; margin-top: 0; }
  .cxo-club-cards {
    grid-column: 1 / 2;
    grid-row: 2;
    margin-top: 36px;
    grid-template-columns: 1fr 1fr;
  }
  .cxo-club-cards .cxo-club-card:last-child {
    grid-column: 1 / 3;
  }
  .cxo-club-cards .cxo-club-card:last-child .cxo-club-card-image-crop {
    aspect-ratio: 16 / 6;
  }
}

@media (max-width: 768px) {
  .cxo-club-section { padding: 56px 6vw; }
  .cxo-club-grid {
    grid-template-columns: 1fr;
  }
  .cxo-club-intro { grid-column: 1; grid-row: 1; text-align: left; }
  .cxo-club-cards {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 1fr;
    margin-top: 40px;
    gap: 44px;
  }
  .cxo-club-cards .cxo-club-card:last-child { grid-column: 1; }
  .cxo-club-cards .cxo-club-card:last-child .cxo-club-card-image-crop { aspect-ratio: 4/5; }
  .cxo-club-linkedin {
    grid-column: 1;
    grid-row: 3;
    margin-top: 44px;
  }
  .cxo-club-earth { width: 70%; left: -30%; bottom: -20%; }
  .cxo-club-orbits-svg { display: none; }
  .cxo-club-intro-text { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cxo-club-section * {
    transition: none !important;
    animation: none !important;
  }
}


/* =========================================================
   V2.2 — équilibre desktop : intro lisible + 3 cartes confortables
   Aucun transform : on dimensionne réellement les 3 zones.
   ========================================================= */
@media (min-width: 1201px) and (max-width: 1365px) {
  .cxo-club-grid {
    grid-template-columns: 326px auto 345px;
    column-gap: 18px;
  }
  .cxo-club-intro { width: 326px; }
  .cxo-club-title { max-width: 326px; font-size: 32px; }
  .cxo-club-cards {
    grid-template-columns: repeat(3, 134px);
    gap: 14px;
    transform: none !important;
  }
  .cxo-club-card { width: 134px; min-width: 134px; }
  .cxo-club-linkedin { width: 345px; }
}

@media (min-width: 1366px) and (max-width: 1535px) {
  .cxo-club-grid {
    grid-template-columns: 350px auto 390px;
    column-gap: 20px;
  }
  .cxo-club-intro { width: 350px; }
  .cxo-club-title { max-width: 350px; font-size: 34px; }
  .cxo-club-cards {
    grid-template-columns: repeat(3, 165px);
    gap: 14px;
    transform: none !important;
  }
  .cxo-club-card { width: 165px; min-width: 165px; }
  .cxo-club-linkedin { width: 390px; }
}

@media (min-width: 1536px) {
  .cxo-club-grid {
    grid-template-columns: 390px auto 430px;
    column-gap: 24px;
  }
  .cxo-club-intro { width: 390px; }
  .cxo-club-title { max-width: 390px; font-size: 39px; }
  .cxo-club-cards {
    grid-template-columns: repeat(3, 185px);
    gap: 16px;
    transform: none !important;
  }
  .cxo-club-card { width: 185px; min-width: 185px; }
  .cxo-club-linkedin { width: 430px; }
}

