/* ==========================================================================
   Divi RenLow — Roue de Compétences
   Styles génériques (préfixe .dwr-) — voir assets/js/wheel.js pour la
   construction dynamique du SVG et de l'accordéon.
   ========================================================================== */

.dwr-wheel {
  width: 100%;
}

.dwr-wheel * {
  box-sizing: border-box;
}

/* ── Disposition générale : roue à gauche, accordéon à droite ── */
.dwr-layout {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}

/* ── Colonne roue ── */
.dwr-wheel-col {
  flex: 0 0 460px;
  max-width: 460px;
  position: relative;
}
.dwr-wheel-svg {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  overflow: visible;
}
.dwr-empty-msg {
  display: none;
  text-align: center;
  color: #999;
  font-size: 13px;
  line-height: 1.6;
  padding: 24px 12px;
}

.dwr-sector-g {
  cursor: pointer;
  transform-origin: 500px 500px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.3s, opacity 0.3s;
}
.dwr-sector-g.dwr-dimmed {
  opacity: 0.42;
  transform: scale(0.97);
}
.dwr-sector-g.dwr-active {
  transform: scale(1.11);
  filter: drop-shadow(0 10px 32px rgba(0, 0, 0, 0.3));
}

.dwr-icon-fo {
  overflow: visible;
}
.dwr-icon-fo-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dwr-icon-svg {
  width: 30px;
  height: 30px;
  display: block;
}
.dwr-icon-divi {
  font-size: 26px;
  line-height: 1;
  display: block;
}
.dwr-icon-img {
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
  display: block;
}

/* ── Colonne accordéon ── */
.dwr-accord-col {
  flex: 1;
  min-width: 0;
  max-width: 480px;
}

/* Source de données pour le JS : toujours masquée en mode normal */
.dwr-items-source {
  display: none;
}

.dwr-acc-item {
  border-bottom: 1px solid #E0DDD5;
  cursor: default;
  transition: opacity 0.28s ease;
}
.dwr-acc-item:first-of-type {
  border-top: 1px solid #E0DDD5;
}
.dwr-acc-item.dwr-dimmed {
  opacity: 0.38;
}

.dwr-acc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 8px;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.dwr-acc-header:hover {
  background: rgba(0, 0, 0, 0.025);
}
.dwr-acc-item.dwr-open .dwr-acc-header {
  background: rgba(0, 0, 0, 0.03);
}

.dwr-acc-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: transform 0.2s;
}
.dwr-acc-item.dwr-open .dwr-acc-dot {
  transform: scale(1.3);
}

.dwr-acc-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 1;
  transition: color 0.2s;
}

.dwr-acc-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.35s ease;
  color: #AAA;
}
.dwr-acc-item.dwr-open .dwr-acc-chevron {
  transform: rotate(90deg);
}

.dwr-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), padding 0.38s;
  padding: 0 8px 0 28px;
}
.dwr-acc-item.dwr-open .dwr-acc-body {
  max-height: 600px;
  padding: 4px 8px 20px 28px;
}

.dwr-acc-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dwr-acc-body ul li {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  padding: 2px 0 2px 14px;
  position: relative;
}
.dwr-acc-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

/* ── Repli sans JavaScript : la source redevient une liste lisible ── */
.dwr-wheel-item {
  padding: 14px 0;
  border-bottom: 1px solid #E0DDD5;
}
.dwr-item-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.dwr-item-icon {
  display: none;
}
.dwr-item-list {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
}
.dwr-item-list li {
  font-size: 13px;
  line-height: 1.7;
  padding: 2px 0;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .dwr-layout {
    flex-direction: column;
    gap: 32px;
  }
  .dwr-wheel-col {
    flex: 0 0 auto;
    max-width: 380px;
    width: 100%;
  }
  .dwr-accord-col {
    max-width: 100%;
    width: 100%;
  }
}
