/* =========================================================
   MON SUIVI PERSONNEL — Design éditorial clair
========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #f6f5f2;
  --bg-soft:   #ffffff;
  --bg-line:   #e8e6e1;
  --ink:       #0e0e0e;
  --ink-soft:  #4a4a4a;
  --ink-mute:  #8a8a8a;
  --highlight: #b8451f;
  --success:   #2f7d52;
  --warn:      #d97a1f;
  --danger:    #c0392b;
  --radius:    4px;
  --radius-lg: 8px;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body { display: flex; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============ SIDEBAR ============ */
.sidebar {
  width: 260px; background: var(--bg);
  border-right: 1px solid var(--bg-line);
  height: 100vh; position: fixed; top:0; left:0; z-index: 200;
  transition: transform .3s ease;
}
.sidebar-inner {
  display: flex; flex-direction: column; height: 100%;
  padding: 32px 22px 22px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 28px; border-bottom: 1px solid var(--bg-line);
  margin-bottom: 24px;
}
.brand-icon img{
  width: 50px; height: 50px; border-radius: 50%;
  object-fit: cover; background: var(--ink);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: .68rem; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .14em;
}

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-label {
  font-size: .68rem; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .14em;
  margin: 18px 8px 8px; font-weight: 500;
}
.nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px; border-radius: var(--radius);
  color: var(--ink-soft); font-size: .9rem;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(0,0,0,.03); color: var(--ink); }
.nav-item.active { background: var(--ink); color: #fff; }
.nav-num {
  font-size: .7rem; font-family: var(--serif);
  font-style: italic; opacity: .55; min-width: 18px;
}
.nav-item.active .nav-num { opacity: .85; }
.sidebar-footer {
  padding-top: 18px; border-top: 1px solid var(--bg-line);
  font-size: .72rem; color: var(--ink-mute);
  letter-spacing: .08em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.logout-link { color: var(--ink-mute); text-transform: none; letter-spacing: 0; font-size: .78rem; }
.logout-link:hover { color: var(--danger); }

/* ============ LOGIN ============ */
.login-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--bg);
}
.login-wrap { width: 100%; max-width: 380px; padding: 20px; }
.login-card {
  background: var(--bg-soft); border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg); padding: 36px 32px;
}
.login-title {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 400;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.login-card .field { margin-bottom: 16px; }

/* ============ TOPBAR ============ */
.topbar {
  display: none; position: fixed; top:0; left:0; right:0;
  height: 56px; background: rgba(246,245,242,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-line);
  z-index: 150; align-items: center; padding: 0 16px; gap: 14px;
}
.menu-btn {
  background: transparent; border: 1px solid var(--bg-line);
  width: 38px; height: 38px; border-radius: var(--radius);
  font-size: 1.1rem; color: var(--ink);
}
.topbar-title { font-family: var(--serif); font-size: 1rem; font-weight: 500; }

.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.35); z-index: 190;
  opacity: 0; transition: opacity .3s;
}
.overlay.show { display: block; opacity: 1; }

/* ============ MAIN ============ */
.main {
  margin-left: 260px; flex: 1;
  padding: 40px 56px 100px; min-width: 0;
}

/* ============ ALERTES ============ */
.alert {
  padding: 12px 18px; border-radius: var(--radius);
  font-size: .85rem; margin-bottom: 24px;
  border: 1px solid var(--bg-line);
}
.alert-succes { background: #e9f5ee; border-color: #bfe2cd; color: var(--success); }
.alert-erreur { background: #fbeae7; border-color: #e5c9c0; color: var(--danger); }

/* ============ TYPO ============ */
.page-eyebrow {
  font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute);
  display: block; margin-bottom: 14px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.page-sub {
  color: var(--ink-soft); max-width: 620px;
  margin-bottom: 28px; font-size: .95rem;
}
.page-header { margin-bottom: 42px; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-lien-retour {
  display: inline-block; margin-top: 6px; font-size: .82rem;
  color: var(--ink-mute); border-bottom: 1px dotted var(--ink-mute);
}
.btn-lien-retour:hover { color: var(--ink); }

.section-head {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: 26px; padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-line);
}
.section-num {
  font-family: var(--serif); font-style: italic;
  font-size: .85rem; color: var(--ink-mute);
}
.section-title {
  font-family: var(--serif); font-size: 1.5rem;
  font-weight: 400; letter-spacing: -0.01em;
}

/* ============ HERO ============ */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 56px; align-items: center;
  padding-bottom: 40px; border-bottom: 1px solid var(--bg-line);
  margin-bottom: 60px;
}
.hero-img-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg); background: #eae7e0;
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(8%) contrast(1.02);
}
.hero-tag {
  font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-mute);
  display: block; margin-bottom: 18px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .98; font-weight: 400;
  letter-spacing: -0.03em;
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 24px;
}
.hero-italic { font-style: italic; color: var(--highlight); }
.hero-desc {
  font-size: 1.05rem; color: var(--ink-soft);
  max-width: 460px; margin-bottom: 32px; line-height: 1.55;
}
.hero-meta {
  display: flex; gap: 42px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--bg-line);
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: .88rem; font-weight: 500; }
.meta-sub, .meta-link { font-size: .78rem; color: var(--ink-mute); }
.meta-link:hover { color: var(--highlight); }

/* ============ SECTIONS ============ */
.section { margin-bottom: 60px; }

.progress-hero {
  display: grid; grid-template-columns: auto 1fr;
  align-items: center; gap: 40px;
  padding: 32px 0; border-bottom: 1px solid var(--bg-line);
}
.progress-big { display: flex; flex-direction: column; }
.progress-value {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 5rem);
  line-height: 1; font-weight: 400;
  letter-spacing: -0.03em;
}
.progress-label {
  font-size: .78rem; color: var(--ink-mute);
  letter-spacing: .1em; text-transform: uppercase;
  margin-top: 6px;
}
.progress-bar-lg {
  height: 3px; background: var(--bg-line);
  border-radius: 4px; overflow: hidden;
}
.progress-bar-lg .progress-fill {
  height: 100%; background: var(--ink);
  transition: width .6s cubic-bezier(.2,.7,.2,1);
}

.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--bg-line);
  margin-top: 26px; border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stat {
  background: var(--bg-soft); padding: 20px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num {
  font-family: var(--serif); font-size: 1.6rem;
  font-weight: 400; letter-spacing: -0.02em;
}
.stat-lbl {
  font-size: .7rem; color: var(--ink-mute);
  letter-spacing: .08em; text-transform: uppercase;
}

/* ============ DOMAINES (dashboard) ============ */
.domaines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px; background: var(--bg-line);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.domaine-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.domaine-icon { width: 30px; height: 30px; border-radius: var(--radius); object-fit: cover; }
.obj-card {
  background: var(--bg-soft);
  padding: 26px 24px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .2s; position: relative;
}
.obj-card:hover { background: #fbfaf7; }
.obj-title {
  font-family: var(--serif); font-size: 1.25rem;
  line-height: 1.2; font-weight: 400;
  letter-spacing: -0.01em;
}
.obj-desc {
  font-size: .82rem; color: var(--ink-soft);
  line-height: 1.5;
}
.obj-foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.obj-bar {
  flex: 1; height: 2px; background: var(--bg-line);
  border-radius: 4px; overflow: hidden;
}
.obj-bar-fill { height: 100%; background: var(--ink); transition: width .5s ease; }
.obj-pct { font-family: var(--serif); font-size: .9rem; min-width: 40px; text-align: right; }

/* ============ BADGES ============ */
.badge {
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; background: var(--bg);
  color: var(--ink-mute); white-space: nowrap;
}
.badge-type-competence { background: #eef1fb; color: #3b4fa3; }
.badge-type-habitude { background: #fdf3e7; color: var(--warn); }
.badge-statut-a_venir { background: #eef1fb; color: #3b4fa3; }
.badge-statut-termine { background: #e9f5ee; color: var(--success); }
.badge-statut-annule { background: #fbeae7; color: var(--danger); }

/* ============ CATÉGORIES / ÉLÉMENTS ============ */
.skills-categories { display: flex; flex-direction: column; gap: 56px; }
.cat-block { display: flex; flex-direction: column; }

.skill-cat-head {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0; padding-bottom: 14px;
  border-bottom: 1px solid var(--bg-line); flex-wrap: wrap;
}
.cat-icon {
  width: 50px; height: 50px; border-radius: var(--radius);
  object-fit: cover; flex-shrink: 0;
}
.cat-icon-empty { display: inline-block; }
.cat-name {
  font-family: var(--serif); font-size: 1.2rem;
  font-weight: 500; letter-spacing: -0.01em;
}
.cat-count {
  margin-left: auto; font-size: .75rem;
  color: var(--ink-mute); letter-spacing: .08em;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.skill-card {
  background: var(--bg-soft);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: border-color .15s, transform .15s;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  position: relative;
}
.skill-card:hover { border-color: var(--ink); }
.skill-card-link {
  display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0;
}
.skill-card-actions { display: flex; gap: 2px; flex-shrink: 0; }
.skill-name {
  font-family: var(--serif); font-size: 1.05rem;
  font-weight: 500; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis;
}
.skill-status {
  font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute);
  display: flex; align-items: center; gap: 6px;
  width: fit-content;
}
.skill-status::before {
  content: ''; width: 7px; height: 7px;
  border-radius: 50%; background: var(--ink-mute); flex-shrink: 0;
}
.skill-status.en-cours { color: var(--warn); }
.skill-status.en-cours::before { background: var(--warn); }
.skill-status.termine { color: var(--success); }
.skill-status.termine::before { background: var(--success); }
.tr-status { margin-left: 6px; }

/* ============ FORMULAIRES EN LIGNE ============ */
.inline-form {
  background: var(--bg-soft); border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg); padding: 22px 24px;
  margin-bottom: 24px;
}
.inline-form-full { margin-top: -10px; }
.inline-form.hidden { display: none; }
.inline-form h3 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  margin-bottom: 14px;
}
.form-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field textarea, .field select,
.inline-form > input[type="file"] {
  width: 100%; padding: 10px 13px;
  background: var(--bg); border: 1px solid var(--bg-line);
  border-radius: var(--radius); font-size: .9rem;
  color: var(--ink); outline: none;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
.radio-row label {
  display: flex; align-items: center; gap: 6px;
  font-size: .85rem; color: var(--ink-soft); text-transform: none; letter-spacing: 0;
}
form.inline { display: inline; }

/* Statut radios colorés (fiche élément) */
.status-radios { display: flex; gap: 8px; flex-wrap: wrap; }
.status-radios label {
  flex: 1; min-width: 110px;
  padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--bg-line); background: var(--bg);
  cursor: pointer; text-align: center;
  font-size: .82rem; letter-spacing: 0; text-transform: none;
  color: var(--ink-soft); transition: all .15s;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin: 0;
}
.status-radios label::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-mute);
}
.status-radios label:hover { border-color: var(--ink); }
.status-radios input { display: none; }
.status-radios input:checked + span { font-weight: 600; }
.status-radios label.checked-idle { border-color: var(--ink-mute); background: #f0eee9; color: var(--ink); }
.status-radios label.checked-idle::before { background: var(--ink-mute); }
.status-radios label.checked-active { border-color: var(--warn); background: #fdf3e7; color: var(--warn); }
.status-radios label.checked-active::before { background: var(--warn); }
.status-radios label.checked-done { border-color: var(--success); background: #e9f5ee; color: var(--success); }
.status-radios label.checked-done::before { background: var(--success); }

/* ============ FICHE ÉLÉMENT ============ */
.fiche-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
}
.fiche-col h3 {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 500; margin-bottom: 10px;
}
.fiche-details {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: .82rem; color: var(--ink-mute); padding: 6px 0;
}
.notes-add-row { display: flex; gap: 8px; margin-bottom: 14px; }
.notes-add-row input {
  flex: 1; padding: 10px 13px;
  background: var(--bg-soft); border: 1px solid var(--bg-line);
  border-radius: var(--radius); font-size: .9rem;
  color: var(--ink); outline: none;
  transition: border-color .15s;
}
.notes-add-row input:focus { border-color: var(--ink); }
.notes-add-row .btn { flex-shrink: 0; }
.notes-list { display: flex; flex-direction: column; gap: 6px; }
.note-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; background: var(--bg-soft);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius); border-left: 2px solid var(--highlight);
  font-size: .85rem; color: var(--ink-soft); line-height: 1.5;
}
.note-item .txt { flex: 1; white-space: pre-wrap; word-break: break-word; }
.empty-msg-sm { font-size: .82rem; color: var(--ink-mute); padding: 8px 0; }

/* ============ TABS ============ */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--bg-line);
  margin-bottom: 32px;
}
.tab {
  padding: 12px 20px; font-size: .88rem;
  color: var(--ink-mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab:hover { color: var(--ink); }

/* ============ TRACKER TABLES ============ */
.tracker-toolbar {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.tracker-toolbar form { display: flex; align-items: center; gap: 10px; }
.tracker-toolbar label {
  font-size: .78rem; color: var(--ink-mute);
  letter-spacing: .08em; text-transform: uppercase;
}
.tracker-toolbar select {
  background: var(--bg-soft); color: var(--ink);
  border: 1px solid var(--bg-line);
  padding: 8px 14px; border-radius: var(--radius);
  cursor: pointer; font-size: .88rem;
}
.legend {
  margin-left: auto; display: flex; gap: 16px;
  font-size: .75rem; color: var(--ink-mute);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-active { background: var(--warn); }
.dot-done { background: var(--success); }
.dot-idle { background: var(--ink-mute); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.tr-table {
  width: 100%; min-width: 900px;
  border-collapse: collapse; font-size: .78rem;
}
.tr-table th, .tr-table td {
  padding: 9px 6px; text-align: center;
  border-bottom: 1px solid var(--bg-line);
  white-space: nowrap;
}
.tr-table th {
  background: var(--bg); color: var(--ink-mute);
  font-weight: 500; font-size: .7rem;
  letter-spacing: .06em; position: sticky; top: 0;
}
.tr-table th:first-child, .tr-table td:first-child {
  text-align: left; padding-left: 14px;
  position: sticky; left: 0;
  background: var(--bg-soft);
  min-width: 190px; z-index: 2;
  border-right: 1px solid var(--bg-line);
}
.tr-table th:first-child { background: var(--bg); z-index: 3; }
.tr-name {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: .92rem;
}
.tr-name img {
  width: 18px; height: 18px;
  border-radius: 3px; object-fit: cover; flex-shrink: 0;
}
.tr-total { font-family: var(--serif); }

.tr-cell {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  border-radius: 3px;
  background: var(--bg);
  font-size: .72rem;
  color: transparent;
  cursor: pointer;
  transition: all .15s;
}
.tr-cell:hover { background: #edeae3; }
.tr-cell.on { background: var(--warn); color: #fff; }

.tr-cell.locked {
  background: repeating-linear-gradient(
    45deg, #f0eee9, #f0eee9 3px, #e8e6e1 3px, #e8e6e1 6px
  );
  cursor: not-allowed;
  color: transparent;
}

/* ============ NOTES ============ */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.note-card {
  background: var(--bg-soft); border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s;
}
.note-card:hover { border-color: var(--ink); }
.note-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.note-title {
  font-family: var(--serif); font-size: 1.05rem;
  font-weight: 500; letter-spacing: -0.01em;
}
.note-cat {
  font-size: .65rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute);
  padding: 3px 8px; background: var(--bg); border-radius: 99px;
  white-space: nowrap;
}
.note-content {
  font-size: .87rem; color: var(--ink-soft);
  line-height: 1.6; white-space: pre-wrap;
}
.note-date {
  font-size: .7rem; color: var(--ink-mute);
  padding-top: 10px; border-top: 1px solid var(--bg-line);
  margin-top: auto; display: flex; justify-content: space-between;
  align-items: center;
}

/* ============ RENDEZ-VOUS ============ */
.rdv-list { display: flex; flex-direction: column; gap: 12px; }
.rdv-card {
  background: var(--bg-soft); border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg); padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 18px;
}
.rdv-date {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg); border-radius: var(--radius);
  padding: 8px 14px; flex-shrink: 0; min-width: 54px;
}
.rdv-jour { font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
.rdv-mois { font-size: .65rem; text-transform: uppercase; color: var(--ink-mute); letter-spacing: .08em; }
.rdv-body { flex: 1; min-width: 0; }
.rdv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rdv-head h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.rdv-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--ink-mute); }
.rdv-notes { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; white-space: pre-wrap; }
.rdv-actions { display: flex; gap: 2px; flex-shrink: 0; }

/* ============ PLANIFICATION ============ */
.semaine-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 30px; flex-wrap: wrap;
}
.semaine-label {
  font-family: var(--serif); font-size: 1.1rem; text-align: center; flex: 1;
}
.choix-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.choix-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--bg-soft);
  border: 1px solid var(--bg-line); border-radius: var(--radius);
  font-size: .88rem; cursor: pointer;
}
.choix-item input { flex-shrink: 0; }
.choix-item span:nth-child(2) { flex: 1; }

/* ============ SETTINGS ============ */
.settings-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.setting-card {
  background: var(--bg-soft); border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.setting-card.danger { border-color: #e5c9c0; }
.setting-card h3 {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 500;
}
.setting-card p { font-size: .85rem; color: var(--ink-soft); }
.setting-card form { width: 100%; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  background: var(--bg-soft); color: var(--ink);
  border: 1px solid var(--bg-line);
  padding: 10px 18px; border-radius: var(--radius);
  font-size: .85rem; font-weight: 500;
  letter-spacing: .02em; transition: all .15s;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #2a2a2a; }
.btn-danger { background: #fff; color: var(--danger); border-color: #e5c9c0; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .78rem; }
.btn-ghost {
  background: transparent; border: none;
  padding: 4px 8px; color: var(--ink-mute);
  font-size: .95rem; border-radius: var(--radius);
}
.btn-ghost:hover { color: var(--ink); background: var(--bg); }

.empty-msg {
  padding: 30px; text-align: center; color: var(--ink-mute);
  font-size: .9rem; background: var(--bg-soft);
  border: 1px dashed var(--bg-line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  display: none; position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(246,245,242,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--bg-line);
  z-index: 150;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.bn-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  padding: 6px 4px; color: var(--ink-mute);
  font-size: 1rem; transition: color .15s;
}
.bn-item small { font-size: .6rem; letter-spacing: .04em; }
.bn-item.active { color: var(--ink); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .main { padding: 32px 32px 120px; }
  .fiche-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); box-shadow: 8px 0 40px rgba(0,0,0,.08); }
  .sidebar.open { transform: translateX(0); }
  .topbar { display: flex; }
  .bottom-nav { display: flex; }
  .main { margin-left: 0; padding: 76px 20px 100px; }
  .page-title { font-size: 1.9rem; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .progress-hero { grid-template-columns: 1fr; gap: 20px; }
  .legend { margin-left: 0; width: 100%; }
  .semaine-nav { flex-direction: column; }
}

@media (max-width: 520px) {
  .main { padding: 72px 16px 96px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .domaines-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
  .status-radios label { min-width: 90px; font-size: .78rem; padding: 10px; }
  .rdv-card { flex-direction: column; }
}
