/* ── Section Mon Plan ───────────────────────────────────────── */
#mon-plan-container .admin-card {
  margin-bottom: 0;
}

#mon-plan-container .admin-card + .admin-card {
  margin-top: 0;
}

/* Responsive Mon Plan */
@media(max-width: 600px) {
  #mon-plan-container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── LM — Sections collapsibles ─────────────────────────── */
.form-section-title {
  cursor: pointer;
  user-select: none;
}
.form-section-title .btn-collapse-icon {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  transition: transform .2s ease;
  display: inline-block;
}
.form-section.collapsed .btn-collapse-icon {
  transform: rotate(-90deg);
}
.form-section.collapsed > *:not(.form-section-title) {
  display: none !important;
}

/* ── LM — Méthodes de création ──────────────────────────── */
.lm-methode-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.lm-methode-btn {
  flex: 1;
  min-width: 80px;
  padding: 8px 6px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  line-height: 1.4;
}
.lm-methode-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lm-methode-btn.active {
  border-color: var(--accent);
  background: var(--accent)22;
  color: var(--accent);
}
.lm-methode-btn i { display: block; font-size: 16px; margin-bottom: 3px; }

/* ── LM — Browser offres ────────────────────────────────── */
#lm-offres-browser {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg2);
  padding: 10px;
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
#lm-offres-browser.visible { display: block; }
.lm-offre-item {
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lm-offre-item:hover {
  border-color: var(--accent);
  background: var(--accent)11;
}
.lm-offre-item.selected {
  border-color: var(--accent);
  background: var(--accent)22;
}
.lm-offre-titre { font-weight: 700; font-size: 12px; margin-bottom: 2px; }
.lm-offre-meta  { font-size: 11px; color: var(--muted); }

/* ── LM — Source données candidat ──────────────────────── */
.lm-source-card {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color .15s;
  background: var(--bg2);
}
.lm-source-card.selected {
  border-color: var(--accent);
  background: var(--accent)11;
}
.lm-source-card i { color: var(--accent); }

/* ── Profil redesign — Barre de progression ─────────────── */
.profil-progress-wrap {
  margin-bottom: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.profil-progress-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.profil-progress-label { font-size: 13px; color: var(--muted); }
.profil-progress-pct   { font-size: 14px; font-weight: 700; color: var(--accent); }
.profil-progress-track {
  height: 6px; background: var(--hover);
  border-radius: 10px; overflow: hidden;
}
.profil-progress-bar {
  height: 100%; width: 0%;
  background: var(--accent);
  border-radius: 10px;
  transition: width .4s ease, background .3s;
}

/* ── Profil redesign — Layout 2 colonnes ────────────────── */
.profil-layout      { display: flex; gap: 20px; align-items: flex-start; }
.profil-form-col    { flex: 1; min-width: 0; }
.profil-preview-col { width: 240px; flex-shrink: 0; position: sticky; top: 64px; }

/* ── Profil redesign — Cards collapsibles ───────────────── */
.pc-header {
  cursor: pointer; user-select: none;
  transition: background .15s;
}
.pc-header:hover { background: var(--hover); border-radius: var(--radius-sm); }
.pc-toggle {
  background: none; border: none; color: var(--muted);
  padding: 4px 6px; cursor: pointer; margin-left: 8px;
  border-radius: var(--radius-sm);
  transition: transform .25s, color .15s;
  flex-shrink: 0; line-height: 1;
}
.pc-toggle:hover { color: var(--text); }
.pc-toggle.open  { transform: rotate(180deg); }
.pc-body         { display: none; padding-top: 4px; }
.pc-body.open    { display: block; }

/* Photo profil agrandie */
.profil-photo-zone-lg { width: 100px !important; height: 100px !important; }

/* ── Profil redesign — Sidebar aperçu ───────────────────── */
.prev-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.prev-avatar-wrap {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 10px;
  background: var(--accent-g);
  display: flex; align-items: center; justify-content: center;
}
.prev-avatar-init {
  font-size: 24px; font-weight: 700;
  color: var(--accent); font-family: 'Plus Jakarta Sans', sans-serif;
}
.prev-nom    { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.prev-poste  { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.prev-ville  { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.prev-famille {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
  background: var(--accent-g); color: var(--accent);
  margin-top: 4px; margin-bottom: 6px;
}
.prev-sep    { height: 1px; background: var(--border); margin: 10px 0; }
.prev-resume {
  font-size: 11px; color: var(--muted); line-height: 1.5;
  text-align: left; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.prev-comps  { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; justify-content: center; }
.prev-comp-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 20px;
  background: var(--hover); color: var(--text); border: 1px solid var(--border2);
}
.prev-prefs  { font-size: 11px; color: var(--muted); text-align: left; }
.prev-prefs span { display: block; margin-bottom: 2px; }

/* ── Profil redesign — Responsive ───────────────────────── */
@media(max-width:900px) {
  .profil-layout      { flex-direction: column; }
  .profil-preview-col { display: none; }
}
@media(max-width:768px) {
  .profil-infos-col .form-row,
  .profil-infos-col .form-row-3 { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
  .competence-row { grid-template-columns: 1fr 90px 50px 36px 20px; }
}
/* ── Planification scraping ──────────────────────────── */
.hour-picker-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}
@media(max-width:600px) {
  .hour-picker-grid { grid-template-columns: repeat(8, 1fr); }
}
.hour-btn {
  aspect-ratio: 1;
  border: 1.5px solid var(--border2);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hour-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.hour-btn:hover:not(.selected) {
  border-color: var(--accent);
  color: var(--accent);
}

/* Toggle switch (réutilisé aussi ailleurs) */
.toggle-switch { position:relative; display:inline-block; width:36px; height:20px; }
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-slider {
  position:absolute; cursor:pointer; inset:0;
  background:var(--border2); border-radius:20px;
  transition:.25s;
}
.toggle-slider:before {
  content:''; position:absolute; width:14px; height:14px;
  left:3px; bottom:3px;
  background:#fff; border-radius:50%; transition:.25s;
}
.toggle-switch input:checked + .toggle-slider { background:var(--accent); }
.toggle-switch input:checked + .toggle-slider:before { transform:translateX(16px); }

/* ── Modal site scraping ──────────────────────────────── */
#modal-edit-site .modal-box { padding:0; }
#modal-edit-site .modal-header { padding:16px 20px; border-bottom:1px solid var(--border2); display:flex; align-items:center; justify-content:space-between; }
#modal-edit-site .modal-body { padding:16px 20px; }
#modal-edit-site .modal-footer { padding:12px 20px; border-top:1px solid var(--border2); display:flex; justify-content:flex-end; gap:8px; }

