/* =========================
   CONFIGURATION PARTIE – MOBILE-FIRST
========================= */

/* En mode dédié : masquer complètement la section "Choix des joueurs" (classique) */
.game-config.mode-dedicated #sectionClassicPlayers {
  display: none !important;
}

.game-config {
  padding-bottom: 40px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 374px) {
  .game-config {
    padding-bottom: 28px;
  }
  .config-section {
    padding-left: 10px;
    margin-bottom: 32px;
  }
  .players-grid {
    gap: 10px;
  }
  .player-card,
  .player-card-add,
  .player-card-temp {
    min-width: 120px;
  }
}

.game-config .back-btn {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.game-config .back-btn:hover {
  color: #ff4d8d;
}

.game-config .config-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.game-config header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.config-mode-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ff8fa3;
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 77, 109, 0.4);
  border-radius: 20px;
}


.game-config .subtitle {
  color: #b0b0b0;
  font-size: 0.95rem;
  margin: 0 0 24px 0;
}

.config-section {
  margin-bottom: 44px;
  padding-left: 14px;
}

.config-section h2 {
  font-size: 1.1rem;
  color: #ff4d8d;
  margin: 0 0 12px 0;
}

.config-section h3 {
  font-size: 0.95rem;
  color: #ddd;
  margin: 16px 0 10px 0;
}

.config-section .hint {
  color: #b0b0b0;
  font-size: 0.9rem;
  margin: 0 0 12px 0;
}

.anatomy-hint {
  margin: 0 0 12px 0;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #e0e0e0;
  background: rgba(255, 200, 100, 0.12);
  border: 1px solid rgba(255, 180, 60, 0.5);
  border-radius: 8px;
}

.anatomy-hint.hidden {
  display: none !important;
}

.msg-warning {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid #ff4d8d;
  border-radius: 8px;
  color: #ff8fa3;
  font-size: 0.9rem;
}

.msg-warning.hidden {
  display: none;
}

.empty-hint a {
  color: #ff4d8d;
}

/* ----- 1. Joueurs ----- */
.players-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.players-grid .player-card,
.players-grid .player-card-temp {
  order: 0;
}

.player-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 44px;
  padding: 10px 14px;
  background: #17171c;
  border: 2px solid #26262c;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.player-card .player-check {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
  border-radius: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  z-index: 1;
}

.player-card:hover {
  border-color: #3a3a42;
  background: #1a1a1f;
}

.player-card:has(.player-check:checked) {
  border-color: #ff4d8d;
  background: rgba(255, 77, 109, 0.08);
}

.player-check {
  /* Carte joueur : la case est masquée, toute la carte est cliquable (voir .player-card .player-check) */
}

.player-name {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.player-gender {
  font-size: 0.8rem;
  color: #b0b0b0;
}

/* Carte "Ajouter un joueur" (même forme que les cartes joueurs / objets, toujours en dernier) */
.player-card-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 44px;
  padding: 10px 14px;
  background: #17171c;
  border: 2px dashed #3a3a42;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font: inherit;
  color: inherit;
  text-align: center;
  order: 9999;
  box-sizing: border-box;
}

.player-card-add:hover:not(:disabled) {
  border-color: #ff4d8d;
  background: rgba(255, 77, 109, 0.06);
}

.player-card-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.player-card-add-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #ddd;
}

/* Carte joueur temporaire : même taille que les cartes objets */
.player-card-temp {
  position: relative;
  min-width: 140px;
  min-height: 44px;
  padding: 10px 14px;
  background: #17171c;
  border: 2px solid #26262c;
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.player-card-temp .player-check-temp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
  border-radius: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  z-index: 1;
}

.player-card-temp-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #b0b0b0;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.player-card-temp-remove:hover {
  background: rgba(255, 77, 109, 0.2);
  color: #ff4d8d;
}

/* Section joueurs + phrase discrète */
.players-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 20px;
}

.players-section .players-grid {
  flex: 0 1 auto;
}

.no-players-hint {
  font-size: 0.85rem;
  color: #a0a0a0;
  margin: 0;
  align-self: center;
}

.no-players-hint a {
  color: #ff4d8d;
  text-decoration: none;
}

.no-players-hint a:hover {
  text-decoration: underline;
}

.no-players-hint.hidden {
  display: none;
}

.temp-player-form {
  margin-top: 14px;
  padding: 16px;
  background: #17171c;
  border: 1px solid #26262c;
  border-radius: 10px;
  max-width: 320px;
}

.temp-player-form.hidden {
  display: none;
}

.temp-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.temp-form-row span {
  font-size: 0.9rem;
  color: #aaa;
}

.temp-player-form input[type="text"] {
  padding: 8px 12px;
  background: #0f0f12;
  border: 1px solid #26262c;
  border-radius: 6px;
  color: #f5f5f5;
  font-size: 1rem;
}

.temp-form-gender .gender-radios,
.temp-form-anatomy .temp-anatomy-checkboxes {
  display: flex;
  gap: 16px;
}

.temp-form-anatomy .temp-anatomy-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #ddd;
}

.temp-form-gender label,
.temp-form-anatomy .temp-anatomy-checkboxes label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #ddd;
}

.temp-form-anatomy .temp-anatomy-checkboxes input[type="checkbox"] {
  accent-color: #ff4d8d;
}

.temp-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.temp-form-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  box-sizing: border-box;
  background: #ff4d8d;
  color: #0f0f12;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.temp-form-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  box-sizing: border-box;
  background: transparent;
  color: #b0b0b0;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
}

.temp-players-list {
  display: none; /* joueurs temporaires affichés dans la grille (#playersList) uniquement */
}

.temp-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid #ff4d8d;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #f5f5f5;
}

.temp-player-chip .temp-remove {
  padding: 2px 6px;
  background: transparent;
  border: none;
  color: #ff4d8d;
  cursor: pointer;
  font-size: 1rem;
  line-height: 0.95;
  border-radius: 4px;
}

.temp-player-chip .temp-remove:hover {
  background: rgba(255, 77, 109, 0.3);
  color: #fff;
}

/* ----- Qui donne ? / Qui reçoit ? (mode dédié) ----- */
.section-dedicated-players .dedicated-role-block {
  margin-bottom: 24px;
}

.section-dedicated-players .dedicated-role-block:last-of-type {
  margin-bottom: 0;
}

.dedicated-role-block h2 {
  font-size: 1.1rem;
  color: #ff4d8d;
  margin: 0 0 6px;
}

.dedicated-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.dedicated-role-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  min-height: 52px;
  background: #17171c;
  border: 2px solid #26262c;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font: inherit;
  color: #ddd;
  text-align: center;
}

.dedicated-role-card:hover {
  border-color: #3a3a42;
}

.dedicated-role-card.selected {
  border-color: #ff4d8d;
  background: rgba(255, 77, 109, 0.08);
  color: #ff8fa3;
}

.dedicated-role-grid .dedicated-role-add {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #17171c;
  border: 2px dashed #3a3a42;
  color: #ddd;
  font-size: 0.9rem;
}

.dedicated-role-grid .dedicated-role-add:hover {
  border-color: #ff4d8d;
  background: rgba(255, 77, 109, 0.06);
}

.dedicated-form-slot {
  margin-top: 12px;
}

.dedicated-form-slot .temp-player-form-wrap {
  margin-top: 0;
}

/* ----- 2. Durée ----- */
.duration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

@media (min-width: 500px) {
  .duration-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.duration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  min-height: 72px;
  background: #17171c;
  border: 2px solid #26262c;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.duration-card:hover {
  border-color: #3a3a42;
}

.duration-card:has(input:checked) {
  border-color: #ff4d8d;
  background: rgba(255, 77, 109, 0.08);
}

.duration-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.duration-label {
  font-weight: 500;
  margin-bottom: 4px;
  text-align: center;
  font-size: 0.95rem;
}

.duration-time {
  font-size: 0.85rem;
  color: #ff4d8d;
}

.duration-intro {
  color: #b0b0b0;
  font-size: 0.9rem;
  margin: 0 0 12px 0;
}

.duration-dares {
  display: block;
  font-size: 0.75rem;
  color: #b0b0b0;
  margin-top: 6px;
  line-height: 1.3;
}

.tooltip-duration {
  font-size: 0.85rem;
  color: #a0a0a0;
  margin: 0;
}

/* ----- 3. Avancé (repliable) ----- */
.advanced-toggle {
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 16px 20px;
  padding-left: 0;
  box-sizing: border-box;
  background: #17171c;
  border: 1px solid #26262c;
  border-radius: 12px;
  color: #ddd;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.advanced-toggle:hover {
  border-color: #3a3a42;
}

.advanced-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ff4d8d;
}

.advanced-subtitle {
  font-size: 0.88rem;
  color: #b0b0b0;
}

.advanced-chevron {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #a0a0a0;
}

.advanced-toggle {
  position: relative;
  padding-right: 44px;
}

.advanced-content {
  margin-top: 12px;
  padding: 20px;
  background: #1a1a1f;
  border: 1px solid #26262c;
  border-radius: 12px;
}

.advanced-content.hidden {
  display: none;
}

.save-config-content {
  margin-top: 12px;
  padding: 20px;
  background: #1a1a1f;
  border: 1px solid #26262c;
  border-radius: 12px;
}

.save-config-content.hidden {
  display: none;
}

.intensity-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}

.intensity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.intensity-label {
  flex: 1;
  min-width: 0;
}

.intensity-stepper {
  display: flex;
  align-items: center;
  gap: 0;
}

.intensity-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #26262c;
  background: #1a1a1f;
  color: #ddd;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.intensity-btn:hover {
  background: #ff4d8d;
  color: #0f0f12;
  border-color: #ff4d8d;
}

.intensity-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.intensity-btn:disabled:hover {
  background: #1a1a1f;
  color: #ddd;
  border-color: #26262c;
}

.intensity-value {
  width: 44px;
  margin: 0 4px;
  padding: 8px 4px;
  border: 1px solid #26262c;
  background: #0f0f12;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  border-radius: 6px;
  pointer-events: none;
  -moz-appearance: textfield;
}

.intensity-value::-webkit-outer-spin-button,
.intensity-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.intensity-row.hidden {
  display: none !important;
}

/* ----- 4. Switch custom dares ----- */
.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.switch-label {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #26262c;
  border-radius: 26px;
  transition: 0.25s;
}

.switch-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
}

.switch-label input:checked + .switch-slider {
  background: #ff4d8d;
}

.switch-label input:checked + .switch-slider::before {
  transform: translateX(22px);
}

.switch-text {
  font-size: 1rem;
  color: #ddd;
}

.custom-dares-hint {
  font-size: 0.9rem;
  color: #b0b0b0;
  margin: 8px 0 4px 0;
}

.custom-dares-hint a {
  color: #ff4d8d;
  text-decoration: none;
}

.custom-dares-hint a:hover {
  text-decoration: underline;
}

.tooltip-custom {
  font-size: 0.85rem;
  color: #a0a0a0;
  margin: 0;
}

/* ----- 5. Filtres ----- */
.filters-disclaimer {
  font-size: 0.9rem;
  color: #b0b0b0;
  margin: 0 0 16px 0;
  padding: 12px 14px;
  background: #17171c;
  border-radius: 8px;
  border-left: 4px solid #ff4d8d;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

/* Pratiques : catégories repliables */
.practice-category-block {
  grid-column: 1 / -1;
}
.practice-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: #1e1e24;
  border: 2px solid #26262c;
  border-radius: 10px;
  color: #ddd;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.practice-category-toggle:hover {
  border-color: #3a3a42;
  background: #25252c;
}
.practice-category-chevron {
  font-size: 0.75rem;
  opacity: 0.8;
}
.practice-category-sub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px 0 8px 12px;
  margin-top: 6px;
  border-left: 3px solid #26262c;
}
.practice-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px 12px;
  background: #17171c;
  border: 2px solid #26262c;
  border-radius: 10px;
}
.practice-row .practice-name {
  font-weight: 600;
  color: #ddd;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.practice-receivers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 4px;
}
.practice-receiver-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 26px;
}
.practice-receiver-line .practice-receiver-name {
  flex: 1;
  font-size: 0.88rem;
  color: #bbb;
  margin: 0;
}

.practice-receiver-player-name {
  font-weight: bold;
  color: #ddd;
}
.practice-receiver-line .practice-receiver-switch {
  flex-shrink: 0;
}
.practice-info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #b0b0b0;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: help;
  flex-shrink: 0;
  margin-left: 2px;
}
.practice-info-icon-symbol {
  line-height: 1;
}
.practice-info-tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8px;
  padding: 8px 10px;
  width: max-content;
  max-width: 280px;
  background: #1a1a1f;
  border: 1px solid #26262c;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 400;
  color: #ddd;
  line-height: 1.4;
  white-space: normal;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.practice-info-icon:hover .practice-info-tooltip {
  opacity: 1;
}
.practice-info-icon:hover {
  background: rgba(255, 77, 109, 0.25);
  color: #ff8fa3;
}
.practice-category-sub.hidden {
  display: none;
}
.practice-category-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #26262c;
}
.practice-cat-select-all,
.practice-cat-deselect-all {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #444;
  border-radius: 8px;
  color: #aaa;
  font-size: 0.82rem;
  cursor: pointer;
}
.practice-cat-select-all:hover,
.practice-cat-deselect-all:hover {
  border-color: #ff4d8d;
  color: #ff8fa3;
}
.practice-custom .badge {
  margin-left: 6px;
  font-size: 0.7rem;
  opacity: 0.9;
}

.filter-check {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #17171c;
  border: 2px solid #26262c;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #ddd;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.filter-check:hover {
  border-color: #3a3a42;
}

.filter-check input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.filter-check.filter-card:has(input:checked) {
  border-color: rgba(255, 77, 109, 0.8);
  background: rgba(255, 77, 109, 0.15);
  color: #ff8fa3;
}

/* Éléments réservés Premium : grisés et non cliquables pour les comptes gratuits */
.filter-card-premium {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.filter-card-premium .filter-card-text::after {
  content: ' 🔒';
  font-size: 0.75em;
}

/* Cartes objets / lieux avec fond SVG (désactivé, à réactiver plus tard)
.filter-card-with-bg {
  justify-content: flex-start;
  background-color: var(--config-card-bg, #1a1a1e);
  background-size: 95% 200%;
  background-position: right center;
  background-repeat: no-repeat;
  padding-left: 16px;
  padding-right: 12px;
}
.filter-card-with-bg .filter-card-text {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 52%;
  flex-shrink: 0;
}
*/

.filter-card-text {
  text-align: center;
}

/* ----- Blocs Premium : overlay hachuré sur le contenu, phrases explicatives en bas hors hachage ----- */
section.config-section[data-premium-block] .premium-section-content {
  position: relative;
}

.premium-section-lock {
  display: none;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  color: #ff4d8d;
  pointer-events: none;
}

.premium-section-lock .premium-lock-svg {
  width: 100%;
  height: 100%;
  stroke: #ff4d8d;
  stroke-width: 2.5;
}

section.config-section.premium-locked .premium-section-lock {
  display: block;
}

section.config-section.premium-locked .premium-section-content > *:not(.premium-section-lock) {
  opacity: 0.5;
}

section.config-section.premium-locked .premium-section-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.25) 6px,
    rgba(0, 0, 0, 0.45) 6px,
    rgba(0, 0, 0, 0.45) 12px
  );
  pointer-events: none;
  z-index: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 109, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.2);
}

.premium-locked {
  pointer-events: none;
}

.premium-locked .reload-config-row select,
.premium-locked .reload-config-row button {
  pointer-events: none;
}

section.config-section.premium-locked .advanced-toggle {
  pointer-events: none;
}

section.config-section.section-custom.premium-locked .switch-label,
section.config-section.section-custom.premium-locked .switch-text {
  pointer-events: none;
}

section.config-section.section-save-config.premium-locked input,
section.config-section.section-save-config.premium-locked .btn-save-config {
  pointer-events: none;
}

/* Les phrases explicatives restent au-dessus de l’overlay pour rester bien lisibles */
.premium-lock-msg {
  margin: 14px 0 0 0;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-lock-msg::before {
  content: '🔒 ';
}

.premium-lock-msg {
  pointer-events: auto;
}

.premium-lock-msg .config-premium-link {
  color: #ff4d8d;
  font-weight: 600;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.premium-lock-msg .config-premium-link:hover {
  text-decoration: underline;
  color: #ff8fa3;
}

.filters-free-limit {
  margin: 0 0 12px 0;
  font-size: 0.85rem;
  color: #b0b0b0;
}

.filters-free-limit::before {
  content: '⚠️ ';
}

/* ----- Reprendre une configuration (intégré au flux, pas de boîte) ----- */
.section-reload-config {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Décaler le bloc de fond et le hachage vers la gauche (alignement commun des 4 blocs) */
.section-reload-config .premium-section-content,
.section-advanced .premium-section-content,
.section-custom .premium-section-content,
.section-save-config .premium-section-content {
  margin-left: -20px;
  padding-left: 20px;
}

/* Reprendre une config : augmenter la hauteur du bloc hachuré vers le bas */
.section-reload-config .premium-section-content {
  padding-top: 12px;
  padding-bottom: 22px;
}

/* Personnalisation avancée : plus d’espace entre le bord gauche du bloc et le texte (padding interne uniquement, comme Sauvegarder) */
.section-advanced .advanced-toggle {
  padding-left: 18px;
}
.section-advanced .advanced-content {
  padding-left: 28px;
}

/* Inclure mes gages dans Préférences : retrouver la même largeur qu’en bloc de premier niveau */
.section-filters .section-custom {
  margin-left: -14px;
  margin-right: -14px;
  width: calc(100% + 28px);
  padding-right: 14px;
  box-sizing: border-box;
}

/* Inclure mes gages : augmenter la hauteur du bloc hachuré */
.section-custom .premium-section-content {
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Sauvegarder cette config : bloc décalé à peine à droite */
.section-save-config .premium-section-content {
  margin-left: -10px;
  padding-left: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Sauvegarder : plus d’espace entre le bord gauche du bloc et le texte (padding interne uniquement, le bloc ne bouge pas) */
.section-save-config .save-config-toggle {
  padding-left: 18px;
}
.section-save-config .save-config-content {
  padding-left: 28px;
}

/* Aligner le message Premium avec le texte du bloc */
.section-save-config .premium-lock-msg {
  margin-left: 24px;
}

.section-reload-config h2 {
  margin: 0 0 12px 0;
}

.reload-config-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.reload-config-select {
  width: 160px;
  min-width: 120px;
  padding: 8px 10px;
  background: #0f0f12;
  border: 1px solid #26262c;
  border-radius: 6px;
  color: #f0f0f0;
  font-size: 0.88rem;
}

.btn-reload-prefill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  box-sizing: border-box;
  background: transparent;
  color: #b0b0b0;
  border: 1px solid #ff4d8d;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
}

.btn-reload-prefill:hover {
  color: #ff6b8a;
  background: transparent;
}

.btn-reload-delete {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  box-sizing: border-box;
  background: transparent;
  color: #b0b0b0;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
}

.btn-reload-delete:hover {
  color: #ff6b8a;
  border-color: #ff4d8d;
}

/* ----- Sauvegarder la configuration ----- */
.section-save-config {
  padding: 20px 0;
}

.save-config-field {
  display: block;
  margin-bottom: 12px;
  max-width: 400px;
}

.save-config-label {
  display: block;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 6px;
}

.save-config-field input {
  width: 100%;
  padding: 10px 12px;
  background: #17171c;
  border: 1px solid #26262c;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 1rem;
  box-sizing: border-box;
}

.save-config-field input::placeholder {
  color: #a0a0a0;
}

.btn-save-config {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  box-sizing: border-box;
  background: transparent;
  color: #ff4d8d;
  border: 1px solid #ff4d8d;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-save-config:hover {
  background: rgba(255, 77, 109, 0.15);
}

/* ----- 7. Bouton lancer ----- */
.section-launch {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #26262c;
}

.btn-start {
  width: 100%;
  padding: 16px 24px;
  min-height: 52px;
  background: #ff4d8d;
  border: none;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f0f12;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-start:hover:not(:disabled) {
  background: #ff6b88;
  transform: translateY(-1px);
}

.btn-start:disabled {
  background: #3a3a42;
  color: #b0b0b0;
  cursor: not-allowed;
}

.launch-hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #a0a0a0;
  text-align: center;
}
