/* =========================================================
   BASE
   ========================================================= */
.dct-root,
.dct-root * {
  box-sizing: border-box;
}

.dct-root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  max-width: 1200px;
  margin: 10px auto;
  padding: 10px;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.dct-topbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dct-brand {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 8px 10px;
  flex: 1 1 420px;
}

.dct-brand-title {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.1;
}

.dct-brand-sub {
  margin-top: 3px;
  font-size: 12px;
  color: #444;
}

.dct-turnbox {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.dct-turn-left { display: grid; gap: 2px; }
.dct-turn-label { font-size: 12px; color: #444; }
.dct-turn-value { font-size: 24px; font-weight: 900; line-height: 1; }
.dct-turn-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* =========================================================
   LAYOUT
   ========================================================= */
.dct-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 10px;
}

@media (max-width: 980px) {
  .dct-body { grid-template-columns: 1fr; }
}

/* =========================================================
   TOOLBAR
   ========================================================= */
.dct-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* =========================================================
   PARTICIPANTS
   ========================================================= */
.dct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px;
}

@media (max-width: 760px) {
  .dct-grid { grid-template-columns: 1fr; }
}

.dct-participant {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 10px;
}

.dct-participant-header {
  display: grid;
  grid-template-columns: 1fr 140px auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

/* Inputs / Selects visibles */
.dct-input,
.dct-select {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  background: #fff;
  color: #111;
}

.dct-input::placeholder { color: #666; }

.dct-input:focus,
.dct-select:focus {
  outline: none;
  border-color: #b7b7b7;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

/* =========================================================
   SPELL GRID  ✅ 2 colonnes
   ========================================================= */
.dct-spells {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
}

@media (max-width: 520px) {
  .dct-spells {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ESPACEMENT SORTS COMMUNS (toggle)
   ========================================================= */

/* Bouton "Voir / Masquer les sorts communs" */
.dct-common-toggle {
  margin-top: 8px;
  margin-bottom: 10px; /* ✅ espace avec les sorts */
}

/* Conteneur des sorts communs */
.dct-common-spells {
  margin-top: 4px;
}

/* =========================================================
   ✅ RESET & STYLE UNIQUEMENT POUR LES SORTS
   ========================================================= */

/* Reset Elementor / thème UNIQUEMENT ici */
.dct-root .dct-spell-tile {
  all: unset;
  box-sizing: border-box;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Bouton sort : compact, fond bleu */
.dct-root .dct-spell-btn.dct-spell-tile {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;

  min-height: 52px;
  width: 100%;

  border: 1px solid rgba(0,0,0,0.12);
  background: #c9bf9c;
  border-radius: 12px;
  overflow: hidden;
}

/* Hover : plus sombre + texte gris clair */
.dct-root .dct-spell-btn.dct-spell-tile:hover {
  background: #1f7ea0;
  border-color: rgba(0,0,0,0.18);
}

.dct-root .dct-spell-btn.dct-spell-tile:hover .dct-spell-name {
  color: #e6e6e6;
}

/* Cooldown : gris foncé */
.dct-root .dct-spell-btn.dct-spell-tile.is-cd {
  background: #4a4a4a;
  border-color: rgba(0,0,0,0.25);
}

.dct-root .dct-spell-btn.dct-spell-tile.is-cd .dct-spell-name {
  color: #f0f0f0;
}

/* Icône : plus de zone grise, icône plus grande */
.dct-root .dct-spell-tile .dct-spell-icon {
  width: 52px;
  height: 100%;

  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;

  position: relative;
}

/* Badge cooldown */
.dct-root .dct-spell-tile .dct-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.9);
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* Texte : 2 lignes max, lisible */
.dct-root .dct-spell-tile .dct-spell-name {
  padding: 8px 10px;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.15;
  text-align: left;
  align-self: center;

  color: #0b0b0b;

  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* =========================================================
   SIDE / RECAP
   ========================================================= */
.dct-side { display: grid; gap: 10px; align-content: start; }

.dct-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 10px 12px;
}

.dct-card-title { font-weight: 900; font-size: 14px; }
.dct-card-sub { margin-top: 4px; font-size: 12px; color: #444; }

.dct-recap { margin-top: 8px; display: grid; gap: 8px; }

.dct-recap-row {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 8px;
  background: #fafafa;
}

.dct-recap-title { font-weight: 900; font-size: 12px; }
.dct-recap-sub { margin-top: 2px; font-size: 11px; color: #444; }

.dct-empty { color: #555; font-size: 12px; padding: 6px 0; }

/* =========================================================
   BOUTONS GENERIQUES
   ========================================================= */
.dct-btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: 7px 9px;
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
}

.dct-btn:hover { background: #f6f6f6; }

.dct-btn-primary { border-color: #bfc9ff; background: #eef1ff; }
.dct-btn-primary:hover { background: #e5e9ff; }

.dct-btn-danger { border-color: #f0b3b3; background: #fff0f0; }
.dct-btn-danger:hover { background: #ffe4e4; }

.dct-btn-small { padding: 6px 8px; font-size: 12px; }