/* ============================================================
   Stratfu — Vue « Dossiers » + modale d'un dossier
   À inclure APRÈS builder.css.
   ============================================================ */

/* ── Grille de cartes-dossier (dans le profil) ── */
.fv-folders-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px; padding: 4px;
}
.fv-folder-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 18px 14px 14px;
  background: var(--bg-card, #111827); border: 1px solid var(--border2, #334155);
  border-radius: 14px; cursor: pointer; transition: .15s; text-align: center;
}
.fv-folder-card:hover { transform: translateY(-3px); border-color: rgba(240,192,64,0.5); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }

.fv-folder-ico {
  width: 72px; height: 72px; border-radius: 14px; overflow: hidden;
  background: #1a1d23; border: 2px solid rgba(240,192,64,0.35);
  display: flex; align-items: center; justify-content: center;
}
.fv-folder-ico img { width: 100%; height: 100%; object-fit: contain; }
.fv-folder-name {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--text-white, #f1f5f9); line-height: 1.2;
}
.fv-folder-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.fv-tag {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  color: var(--pc); background: color-mix(in srgb, var(--pc) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent);
}
.fv-folder-count { font-size: 11px; color: var(--muted, #64748b); font-weight: 600; }

.fv-folder-tools {
  position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: .15s;
}
.fv-folder-card:hover .fv-folder-tools { opacity: 1; }
.fv-folder-tool {
  width: 24px; height: 24px; border-radius: 6px; cursor: pointer;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15); color: #cbd5e1;
  font-size: 12px; display: flex; align-items: center; justify-content: center; transition: .12s;
}
.fv-folder-tool:hover { background: rgba(0,0,0,0.75); color: #fff; }
.fv-folder-tool[data-del]:hover { color: #ef4444; border-color: rgba(239,68,68,0.5); }

/* Carte « nouveau dossier » */
.fv-folder-new {
  border-style: dashed; border-color: rgba(240,192,64,0.4);
  background: rgba(240,192,64,0.05); color: #f0c040; justify-content: center; min-height: 150px;
}
.fv-folder-new:hover { background: rgba(240,192,64,0.12); }
.fv-folder-new-plus { font-size: 40px; font-weight: 300; line-height: 1; }
.fv-folder-new-txt { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }

/* ── Modale d'un dossier ── */
.fv-modal-overlay {
  position: fixed; inset: 0; z-index: 720;
  background: rgba(6,7,10,0.80); backdrop-filter: blur(5px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.fv-modal-overlay.open { display: flex; }
.fv-modal {
  width: 100%; max-width: 1040px; height: 82vh;
  background: linear-gradient(180deg, #101217, #0e1014);
  border: 1px solid rgba(255,255,255,0.10); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55); overflow: hidden;
  display: flex; flex-direction: column; font-family: 'Rajdhani', sans-serif; color: #e8e8e0;
}
.fv-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.fv-modal-title { display: flex; align-items: center; gap: 12px; font-family: 'Uncial Antiqua', cursive; font-size: 19px; color: #f0c040; }
.fv-modal-title span:first-child { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #1a1d23; border: 1px solid rgba(240,192,64,0.4); }
.fv-modal-title span:first-child img { width: 100%; height: 100%; object-fit: contain; }
.fv-modal-close {
  width: 32px; height: 32px; border-radius: 8px; background: transparent;
  border: 1px solid rgba(255,255,255,0.10); color: rgba(200,200,190,0.5);
  font-size: 18px; cursor: pointer; transition: .15s; display: flex; align-items: center; justify-content: center;
}
.fv-modal-close:hover { background: rgba(255,255,255,0.08); color: #e8e8e0; }

.fv-modal-toolbar { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 14px; min-height: 0; }
.fv-modal-toolbar:empty { display: none; }
.fv-tb-btn {
  padding: 9px 16px; border-radius: 9px; cursor: pointer;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .4px; transition: .15s;
}
.fv-tb-add { background: rgba(240,192,64,0.14); border: 1px solid rgba(240,192,64,0.5); color: #f0c040; }
.fv-tb-add:hover { background: rgba(240,192,64,0.24); }
.fv-tb-back { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #cbd5e1; }
.fv-tb-back:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.fv-tb-hint { font-size: 12px; color: var(--muted, #64748b); }

.fv-modal-body { flex: 1; overflow-y: auto; padding: 18px 20px; min-height: 0; }

/* Filtres du panneau d'ajout */
.fv-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.fv-search {
  width: 100%; box-sizing: border-box; padding: 10px 13px;
  background: #131519; border: 1px solid rgba(255,255,255,0.10); border-radius: 9px;
  color: #e8e8e0; font-family: 'Rajdhani', sans-serif; font-size: 14px;
}
.fv-search:focus { outline: none; border-color: rgba(240,192,64,0.5); }
.fv-fclasses { display: flex; flex-wrap: wrap; gap: 5px; }
.fv-fclass {
  width: 38px; height: 38px; border-radius: 8px; padding: 2px; cursor: pointer;
  background: #1a1d23; border: 2px solid transparent; overflow: hidden; transition: .12s;
}
.fv-fclass img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.fv-fclass:hover { border-color: rgba(240,192,64,0.5); }
.fv-fclass.sel { border-color: #f0c040; }
.fv-frow { display: flex; gap: 16px; flex-wrap: wrap; }
.fv-fpills { display: flex; gap: 6px; }
.fv-pill {
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  background: #131519; border: 1px solid rgba(255,255,255,0.10); color: rgba(200,200,190,0.6);
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 13px; transition: .15s;
}
.fv-pill:hover { color: #e8e8e0; border-color: rgba(255,255,255,0.22); }
.fv-pill.sel { color: #f0c040; border-color: rgba(240,192,64,0.5); background: rgba(240,192,64,0.10); }

.fv-add-scroll { }

/* Boutons d'action sur les cartes (ajouter / retirer) */
.fv-card { position: relative; }
.fv-card-action {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; transition: .12s; border: 1px solid;
}
.fv-add { background: rgba(52,211,153,0.18); border-color: rgba(52,211,153,0.6); color: #34d399; }
.fv-add:hover { background: rgba(52,211,153,0.32); transform: scale(1.1); }
.fv-remove { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.6); color: #ef4444; }
.fv-remove:hover { background: rgba(239,68,68,0.32); transform: scale(1.1); }
