/* Mon contenu coach */
#account-mon-contenu {
  width: 100%;
}

.cc-header { margin-bottom: 1.25rem; }
.cc-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
}
.cc-subtitle { color: rgba(255,255,255,0.75); margin: 0; font-size: 0.95rem; }

.cc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.cc-tab {
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}
.cc-tab:hover { background: rgba(255,255,255,0.18); }
.cc-tab.active {
  background: #fff;
  color: #0043ff;
  border-color: #fff;
}

.cc-panel { min-height: 200px; }

.cc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.cc-toolbar-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cc-section-title { color: #fff; margin: 0; font-size: 1.1rem; }

.cc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.cc-bc-link {
  background: none;
  border: none;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
  font-size: 0.9rem;
}
.cc-bc-sep { color: rgba(255,255,255,0.5); }

.cc-btn {
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cc-btn-primary { background: #22c55e; color: #fff; }
.cc-btn-primary:hover { background: #16a34a; }
.cc-btn-secondary { background: rgba(255,255,255,0.15); color: #fff; }
.cc-btn-sm { font-size: 0.8rem; padding: 0.35rem 0.65rem; }

.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.cc-card {
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid rgba(0,67,255,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.cc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #0043ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}
.cc-icon-lesson { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.cc-card-title, .cc-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.3;
}
.cc-meta { font-size: 0.8rem; color: #64748b; margin: 0 0 0.5rem; }
.cc-card-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cc-icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cc-icon-btn:hover { background: #dbeafe; }

.cc-tag {
  font-size: 0.7rem;
  background: #fef3c7;
  color: #92400e;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.cc-draggable { cursor: grab; }
.cc-dragging { opacity: 0.5; }
.cc-droppable.cc-drop-target { outline: 2px dashed #22c55e; outline-offset: 4px; }

.cc-empty, .cc-loading, .cc-error {
  color: rgba(255,255,255,0.85);
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
}
.cc-error { color: #fecaca; }

/* Modals */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cc-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}
.cc-modal-wide { max-width: 640px; }
.cc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.cc-modal-header h3 { margin: 0; font-size: 1.1rem; color: #0f172a; }
.cc-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}
.cc-modal-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.cc-modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cc-form { display: flex; flex-direction: column; gap: 0.85rem; }
.cc-label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.875rem; color: #334155; }
.cc-input, .cc-textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font: inherit;
}
.cc-textarea { min-height: 90px; resize: vertical; }

.cc-share-results { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.cc-share-coach-btn {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  margin-bottom: 0.35rem;
}
.cc-share-coach-btn:hover { background: #eff6ff; }

.cc-assign-list { list-style: none; padding: 0; margin: 0; }
.cc-assign-list li { padding: 0.4rem 0; }
.cc-checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }

/* Prompt modal */
.cc-prompt-modal { max-width: 420px; }
.cc-prompt-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}
.cc-prompt-title-row h3 { margin: 0; }
.cc-prompt-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  flex-shrink: 0;
  font-size: 1rem;
}
.cc-prompt-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.cc-readers-count { font-weight: 700; margin-bottom: 0.75rem; }
.cc-readers-list { list-style: none; padding: 0; margin: 0; }
.cc-reader-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.cc-trim-controls { display: flex; gap: 1rem; margin-top: 0.75rem; flex-wrap: wrap; }
.cc-trim-progress { margin-top: 0.5rem; font-size: 0.875rem; color: #64748b; }

.cc-move-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  font: inherit;
}
.cc-move-option:hover { background: #eff6ff; }

.cc-hint { font-size: 0.875rem; color: #64748b; margin: 0 0 0.75rem; }

/* Editor modal (cours, etc.) */
.cc-editor-modal { max-width: 600px; }
.cc-editor-header { align-items: flex-start; gap: 0.75rem; }
.cc-editor-title-block {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}
.cc-editor-title-block h3 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.cc-editor-subtitle {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
}
.cc-editor-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  color: #fff;
  flex-shrink: 0;
  font-size: 1.15rem;
}
.cc-editor-icon-lesson { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.cc-editor-icon-exercise { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cc-editor-icon-quiz { background: linear-gradient(135deg, #ec4899, #be185d); }
.cc-field-label--quiz i { color: #ec4899; }
.cc-editor-modal--quiz { max-width: 720px; }
.cc-quiz-questions { display: flex; flex-direction: column; gap: 1rem; }
.cc-q-block {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  background: #f8fafc;
}
.cc-q-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.cc-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #ec4899, #be185d);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.cc-q-remove {
  border: none;
  background: #fee2e2;
  color: #dc2626;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.cc-q-remove:hover { background: #fecaca; }
.cc-q-answers-head {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cc-ans-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.cc-ans-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.cc-ans-radio input { accent-color: #22c55e; width: 1rem; height: 1rem; }
.cc-ans-row .cc-ans-text { flex: 1; }
.cc-ans-remove {
  border: none;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1;
}
.cc-ans-remove:hover { color: #dc2626; background: #fee2e2; }
.cc-q-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.cc-btn-outline {
  background: #fff;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.cc-btn-outline:hover { background: #f8fafc; border-color: #94a3b8; }
.cc-btn-add-q {
  background: #fdf2f8;
  color: #be185d;
  border: 2px dashed #f9a8d4;
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  margin-top: 0.5rem;
}
.cc-btn-add-q:hover { background: #fce7f3; border-color: #ec4899; }
.cc-q-files-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0.75rem 0 0;
  font-style: italic;
}
.cc-q-file-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}
.cc-q-file-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.3rem;
}
.cc-q-file-item i { color: #ec4899; }
.cc-q-pending { background: #fdf2f8; border-color: #f9a8d4; }
.cc-q-pending-remove {
  margin-left: auto;
  border: none;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.25rem;
}
.cc-q-pending-remove:hover { color: #dc2626; }
.cc-editor-form { gap: 1.1rem; }
.cc-field { display: flex; flex-direction: column; gap: 0.4rem; }
.cc-field-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: #334155;
}
.cc-field-label i { color: #6366f1; width: 1rem; text-align: center; }
.cc-required { color: #ef4444; }
.cc-field-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.cc-input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
.cc-textarea.cc-field-input { min-height: 110px; resize: vertical; line-height: 1.5; }
.cc-field-input--readonly {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
  cursor: default;
}

.cc-editor-section { margin-top: 0.25rem; }
.cc-editor-section-head { margin-bottom: 0.75rem; }
.cc-editor-section-head h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.cc-editor-section-head h4 i { color: #6366f1; }
.cc-editor-section-head p {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.cc-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.cc-upload-card {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.cc-upload-card:hover {
  border-color: #6366f1;
  background: #eef2ff;
}
.cc-upload-card--selected {
  border-color: #6366f1;
  border-style: solid;
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.cc-upload-card--full { grid-column: 1 / -1; }
.cc-upload-icon-media { background: linear-gradient(135deg, #10b981, #059669); }
.cc-upload-card--has-existing {
  border-color: #a5b4fc;
  border-style: solid;
  background: #f5f3ff;
}
.cc-upload-card--has-existing:hover { border-color: #6366f1; }
.cc-upload-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5b21b6;
  background: #ede9fe;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}
.cc-upload-card--loading {
  opacity: 0.65;
  pointer-events: none;
  position: relative;
}
.cc-upload-card--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.4);
}
.cc-upload-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem 0.75rem;
  gap: 0.3rem;
}
.cc-upload-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}
.cc-upload-icon-video { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.cc-upload-icon-doc { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.cc-upload-label { font-weight: 700; font-size: 0.9rem; color: #1e293b; }
.cc-upload-filename {
  font-size: 0.78rem;
  color: #64748b;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-upload-formats { font-size: 0.72rem; color: #94a3b8; }
.cc-upload-clear {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.cc-upload-clear:hover { background: #fee2e2; color: #dc2626; }

.cc-files-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cc-file-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.cc-file-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.cc-file-name {
  flex: 1;
  font-size: 0.875rem;
  color: #334155;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-file-del {
  border: none;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.cc-file-del:hover { color: #dc2626; background: #fee2e2; }
.cc-files-empty {
  padding: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
}

.cc-btn-modal-secondary {
  background: #f1f5f9;
  color: #475569;
}
.cc-btn-modal-secondary:hover { background: #e2e8f0; }
.cc-editor-footer .cc-btn-primary { min-width: 8.5rem; justify-content: center; }
.cc-editor-footer .cc-btn-primary:disabled { opacity: 0.7; cursor: wait; }

@media (max-width: 640px) {
  .cc-grid { grid-template-columns: 1fr; }
  .cc-toolbar { flex-direction: column; align-items: stretch; }
  .cc-upload-grid { grid-template-columns: 1fr; }
  .cc-editor-title-block { flex-direction: column; align-items: flex-start; }
}
