.bento-card.ruche-module {
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 40px !important;
  margin-bottom: -1100px !important;
  scroll-margin-top: 130px !important;
}

.ruche-module {
  --ruche-navy: #05386b;
  --ruche-teal: #04d0d0;
  --ruche-purple: #df40df;
  --ruche-amber: #f6b26b;
  --ruche-coral: #ff6b65;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --shadow-card: 0 16px 36px -6px rgba(5, 56, 107, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
  --shadow-tab: drop-shadow(0 -3px 4px rgba(5, 56, 107, 0.04));
  --tier1-top: 120px;
  --tier2-top: 156px;

  width: 100%;
  font-family: 'Quicksand', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
}

.ruche-module, .ruche-module * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ruche-module .page-wrapper {
  max-width: 1320px;
  margin: 0 auto;
}

.ruche-module .stack-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(500px, 1fr);
  gap: 56px;
  align-items: flex-start;
  position: relative;
}

.ruche-module .left-panel {
  position: sticky;
  top: var(--tier1-top);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 5;
  height: fit-content;
}

.ruche-module .top-badge-strip {
  display: flex;
  justify-content: flex-start;
}

.ruche-module .pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(5, 56, 107, 0.06);
  border: 1px solid rgba(5, 56, 107, 0.12);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ruche-navy);
}

.ruche-module .pill-dot {
  width: 8px;
  height: 8px;
  background-color: var(--ruche-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(4, 208, 208, 0.25);
}

.ruche-module .main-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ruche-navy);
  letter-spacing: -0.02em;
}

.ruche-module .forces-question-box {
  background: linear-gradient(135deg, rgba(255, 107, 101, 0.08) 0%, rgba(246, 178, 107, 0.06) 100%);
  border-left: 4px solid var(--ruche-coral);
  padding: 16px 20px;
  border-radius: 0 16px 16px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ruche-navy);
  line-height: 1.5;
  box-shadow: 0 4px 16px -2px rgba(5, 56, 107, 0.04);
}

.ruche-module .body-narrative {
  font-size: 14.5px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.65;
}

.ruche-module .body-narrative strong {
  color: var(--ruche-navy);
  font-weight: 700;
}

.ruche-module .btn-ruche-cta {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--ruche-navy);
  color: #ffffff;
  padding: 13px 28px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px -5px rgba(5, 56, 107, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.ruche-module .btn-ruche-cta:hover {
  background: #032446;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(5, 56, 107, 0.45);
}

.ruche-module .right-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 0 !important;
}

.ruche-module .folder-card {
  position: sticky;
  width: 100%;
  margin-bottom: 300px;
}

.ruche-module .right-stack::after {
  content: "";
  display: block;
  height: 1100px;
  flex-shrink: 0;
}

.ruche-module .folder-card:last-of-type {
  margin-bottom: 300px !important;
}

.ruche-module .tier-1 {
  top: var(--tier1-top);
  z-index: 10;
}

.ruche-module .tier-2 {
  top: var(--tier2-top);
  z-index: 25;
}

.ruche-module .card-1 { z-index: 10; }
.ruche-module .card-2 { z-index: 15; }
.ruche-module .card-3 { z-index: 20; }
.ruche-module .card-4 { z-index: 25; }
.ruche-module .card-5 { z-index: 30; }

.ruche-module .tab-bar-strip {
  position: relative;
  margin-bottom: -1px;
  z-index: 3;
  display: flex;
}

.ruche-module .tier-1 .tab-bar-strip {
  height: 48px;
}

.ruche-module .tier-2 .tab-bar-strip {
  height: 48px;
}

.ruche-module .tab-shape-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.ruche-module .tier-1 .tab-shape-wrap {
  height: 48px;
}

.ruche-module .tier-2 .tab-shape-wrap {
  height: 48px;
}

.ruche-module .card-1 .tab-shape-wrap { margin-left: 2%; width: 220px; }
.ruche-module .card-2 .tab-shape-wrap { margin-left: 33%; width: 220px; }
.ruche-module .card-3 .tab-shape-wrap { margin-left: 64%; width: 220px; }
.ruche-module .card-4 .tab-shape-wrap { margin-left: 12%; width: 220px; }
.ruche-module .card-5 .tab-shape-wrap { margin-left: 50%; width: 220px; }

.ruche-module .tab-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: var(--shadow-tab);
}

.ruche-module .tab-svg path {
  fill: #ffffff !important;
  stroke: var(--border-subtle);
  stroke-width: 1.5;
}

.ruche-module .tab-svg rect {
  fill: #ffffff !important;
}

.ruche-module .tab-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ruche-navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ruche-module .tier-1 .tab-text-overlay {
  height: 36px;
  bottom: auto;
  top: 0;
  padding-top: 6px;
}

.ruche-module .tier-2 .tab-text-overlay {
  height: 100%;
  padding-top: 2px;
}

.ruche-module .tab-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.ruche-module .card-surface {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 30px 34px;
  height: 530px !important;
  min-height: 530px !important;
  max-height: 530px !important;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.ruche-module .alveoles-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.ruche-module .alveoles-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ruche-navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ruche-module .alveoles-intro {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.45;
}

.ruche-module .alveoles-list {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  flex: initial !important;
  overflow: hidden !important;
}

.ruche-module .alveole-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-page);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.ruche-module .alveole-bullet {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  margin-top: 1px;
  flex-shrink: 0;
}

.ruche-module .alveole-content {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.4;
  font-weight: 500;
}

.ruche-module .alveole-content strong {
  color: var(--ruche-navy);
  font-weight: 700;
}

.ruche-module .card-footer-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  flex-shrink: 0;
}

.ruche-module .metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ruche-navy);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 8px;
}

.ruche-module .metric-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--ruche-navy);
}

#navbar {
  z-index: 1000 !important;
}

html, body, .bento-wrapper {
  overflow-x: clip !important;
}

#etudes-de-cas {
  position: relative;
  z-index: 50;
}

.ruche-module .card-alveoles-widget {
  position: relative;
  overflow: hidden;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, rgba(223, 64, 223, 0.06) 100%);
  border: 1px solid rgba(223, 64, 223, 0.28);
  border-radius: 16px;
  margin-top: 4px;
}

.ruche-module .card-alveoles-widget::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(223, 64, 223, 0.22) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: beamSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes beamSweep {
  0% { left: -70%; }
  50% { left: 135%; }
  100% { left: 135%; }
}

.ruche-module .alveoles-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.ruche-module .alveole-hex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  animation: hexBeamWave 3.8s ease-in-out infinite;
}

.ruche-module .alveole-hex:nth-child(1) {
  animation-delay: 0s;
}

.ruche-module .alveole-hex.is-lead {
  animation-delay: 0.65s;
}

.ruche-module .alveole-hex:nth-child(5) {
  animation-delay: 1.3s;
}

@keyframes hexBeamWave {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  16% {
    transform: translateY(-5px) scale(1.18);
  }
  32% {
    transform: translateY(0) scale(1);
  }
}

.ruche-module .hex-shape {
  position: relative;
  width: 38px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ruche-module .hex-svg {
  width: 38px;
  height: 42px;
  position: absolute;
  inset: 0;
}

.ruche-module .hex-svg polygon {
  transition: all 0.3s ease;
  animation: polygonGlowWave 3.8s ease-in-out infinite;
}

.ruche-module .alveole-hex:nth-child(1) .hex-svg polygon {
  animation-delay: 0s;
}

.ruche-module .alveole-hex.is-lead .hex-svg polygon {
  animation-delay: 0.65s;
}

.ruche-module .alveole-hex:nth-child(5) .hex-svg polygon {
  animation-delay: 1.3s;
}

@keyframes polygonGlowWave {
  0%, 100% {
    stroke-width: 1.8;
    stroke: rgba(223, 64, 223, 0.4);
    fill: #ffffff;
    filter: drop-shadow(0 0 0 rgba(223, 64, 223, 0));
  }
  16% {
    stroke-width: 2.5;
    stroke: var(--ruche-purple);
    fill: rgba(223, 64, 223, 0.22);
    filter: drop-shadow(0 0 10px rgba(223, 64, 223, 0.8));
  }
  32% {
    stroke-width: 1.8;
    stroke: rgba(223, 64, 223, 0.4);
    fill: #ffffff;
    filter: drop-shadow(0 0 0 rgba(223, 64, 223, 0));
  }
}

.ruche-module .hex-num {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  color: var(--ruche-purple);
  letter-spacing: -0.02em;
}

.ruche-module .hex-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ruche-navy);
  text-align: center;
  white-space: nowrap;
}

.ruche-module .hex-bridge {
  flex: 0 0 24px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(223, 64, 223, 0.5) 0, rgba(223, 64, 223, 0.5) 4px, transparent 4px, transparent 8px);
  margin-top: -14px;
}

.ruche-module .card-deck-widget {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(246, 178, 107, 0.08) 0%, rgba(241, 245, 249, 0.6) 100%);
  border: 1px solid rgba(246, 178, 107, 0.35);
  border-radius: 16px;
  margin-top: 4px;
}

.ruche-module .deck-visual-cluster {
  position: relative;
  width: 60px;
  height: 52px;
  flex-shrink: 0;
}

.ruche-module .deck-mini-card {
  position: absolute;
  width: 42px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(246, 178, 107, 0.45);
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(5, 56, 107, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-origin: bottom center;
}

.ruche-module .deck-mini-card.is-back {
  left: 4px;
  top: 2px;
  background: #fff7ed;
  z-index: 1;
  animation: deckAutoFanBack 4.2s ease-in-out infinite;
}

.ruche-module .deck-mini-card.is-mid {
  left: 10px;
  top: 1px;
  background: #ffedd5;
  z-index: 2;
  animation: deckAutoFanMid 4.2s ease-in-out infinite;
}

.ruche-module .deck-mini-card.is-front {
  left: 14px;
  top: 0;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  border: 1.5px solid #f6b26b;
  z-index: 3;
  animation: deckAutoFanFront 4.2s ease-in-out infinite;
}

@keyframes deckAutoFanBack {
  0%, 100% {
    transform: translate(0, 0) rotate(-10deg);
    box-shadow: 0 4px 10px rgba(5, 56, 107, 0.08);
  }
  35%, 65% {
    transform: translate(-11px, -3px) rotate(-22deg);
    box-shadow: 0 8px 16px rgba(246, 178, 107, 0.28);
  }
}

@keyframes deckAutoFanMid {
  0%, 100% {
    transform: translate(0, 0) rotate(2deg);
    box-shadow: 0 4px 10px rgba(5, 56, 107, 0.08);
  }
  35%, 65% {
    transform: translate(0, -7px) rotate(0deg);
    box-shadow: 0 8px 16px rgba(246, 178, 107, 0.22);
  }
}

@keyframes deckAutoFanFront {
  0%, 100% {
    transform: translate(0, 0) rotate(8deg);
    box-shadow: 0 4px 10px rgba(5, 56, 107, 0.08);
  }
  35%, 65% {
    transform: translate(11px, -3px) rotate(22deg);
    box-shadow: 0 10px 20px rgba(246, 178, 107, 0.35);
  }
}

.ruche-module .deck-card-chip {
  font-size: 8px;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
}

.ruche-module .deck-card-icon {
  font-size: 11px;
  line-height: 1;
}

.ruche-module .deck-card-num {
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
  line-height: 1.1;
}

.ruche-module .deck-card-label {
  font-size: 7.5px;
  font-weight: 700;
  color: var(--ruche-navy);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.ruche-module .deck-legend-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-primary);
}

.ruche-module .deck-legend-text strong {
  color: var(--ruche-navy);
  font-weight: 700;
}

.ruche-module .deck-legend-text span {
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 992px) {
  .bento-card.ruche-module {
    margin: 40px 0 60px 0 !important;
    margin-bottom: 40px !important;
  }

  .ruche-module .right-stack::after {
    display: none !important;
  }

  .ruche-module .stack-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ruche-module .left-panel {
    position: relative;
    top: 0;
  }

  .ruche-module .right-stack {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 10px 14px 24px 14px !important;
    margin: 0 -14px !important;
    scrollbar-width: thin;
    scrollbar-color: var(--ruche-orange) transparent;
  }

  .ruche-module .right-stack::-webkit-scrollbar {
    height: 6px;
  }

  .ruche-module .right-stack::-webkit-scrollbar-thumb {
    background: var(--ruche-orange);
    border-radius: 999px;
  }

  .ruche-module .folder-card {
    position: static !important;
    top: auto !important;
    margin-bottom: 0 !important;
    flex: 0 0 88% !important;
    max-width: 88% !important;
    min-width: 290px !important;
    scroll-snap-align: center !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .ruche-module .folder-card:last-of-type {
    margin-bottom: 0 !important;
  }

  .ruche-module .card-surface {
    height: auto !important;
    min-height: 520px !important;
    max-height: none !important;
    overflow: visible !important;
    flex: 1 1 auto !important;
    padding: 24px 20px !important;
  }

  .ruche-module .alveoles-list {
    overflow: visible !important;
  }

  .ruche-module .tier-1 .tab-bar-strip,
  .ruche-module .tier-1 .tab-shape-wrap,
  .ruche-module .tier-2 .tab-bar-strip,
  .ruche-module .tier-2 .tab-shape-wrap {
    height: 42px;
  }

  .ruche-module .tier-1 .tab-text-overlay,
  .ruche-module .tier-2 .tab-text-overlay {
    height: 100%;
    padding-top: 4px;
  }

  .ruche-module .tab-shape-wrap {
    margin-left: 28px !important;
    width: 200px !important;
  }

  .ruche-module .alveoles-track {
    gap: 4px;
  }
  
  .ruche-module .hex-bridge {
    flex: 0 0 16px;
  }
  
  .ruche-module .hex-label {
    font-size: 9.5px;
    white-space: normal;
    line-height: 1.1;
  }

  .ruche-module .card-deck-widget {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .ruche-module .folder-card {
    flex: 0 0 92% !important;
    max-width: 92% !important;
    min-width: 280px !important;
  }

  .ruche-module .tab-shape-wrap {
    margin-left: 24px !important;
    width: 190px !important;
  }
}
