/* Paramètres PNS — modern settings page (desktop + mobile) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-main, 'Plus Jakarta Sans', system-ui, sans-serif);
  color: var(--text-main, #0f172a);
  background: var(--bg-app, linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%));
  min-height: 100vh;
}
@media (min-width: 769px) {
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    z-index: 100 !important;
  }
  .params-app {
    margin-left: 280px !important;
  }
}
/* ===== Classic flat settings — style Facebook / Twitter ===== */
.params-app {
  min-height: 100vh;
  padding: 30px 28px 70px;
  max-width: 800px;
  box-sizing: border-box;
}
.params-hero h1 {
  font-family: var(--font-heading, Manrope, sans-serif);
  font-size: 28px;
  margin: 8px 0 14px;
  letter-spacing: -0.8px;
}
.params-hero h1 span { color: var(--primary, #2563eb); }

.params-flat {
  max-width: 680px;
}

/* Full-width sections, without boxes: title + separated rows */
.params-section {
  padding: 16px 0 4px;
}
.params-section + .params-section {
  margin-top: 8px;
  border-top: 1px solid var(--border-color, rgba(148, 163, 184, .3));
}
.params-section-title {
  margin: 0 0 2px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 8px;
}
.params-section-title i { color: var(--primary, #2563eb); font-size: 12px; }
.params-section.params-danger .params-section-title i { color: #dc2626; }

/* Row: label on the left, control on the right (like FB / X) */
.sett-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  min-height: 62px;
  border-bottom: 1px solid var(--border-color, rgba(148, 163, 184, .22));
}
.params-section .sett-row:last-child { border-bottom: none; }
.sett-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  min-width: 0;
}
.sett-row input[type="text"],
.sett-row select {
  width: 300px;
  flex-shrink: 0;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color, rgba(148, 163, 184, .3));
  background: var(--bg-input, #fff);
  color: inherit;
  font: inherit;
  font-size: 13px;
  padding: 0 12px;
  outline: none;
  transition: border-color 0.15s ease;
}
.sett-row input:focus,
.sett-row select:focus { border-color: var(--primary, #2563eb); }

/* Segmented control (Day/Night · FR/EN) — slim */
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border-color, rgba(148, 163, 184, .3));
  border-radius: 11px;
  background: transparent;
}
.segmented button {
  border: none;
  background: transparent;
  color: var(--text-muted, #64748b);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.segmented button.active { background: var(--primary, #2563eb); color: #fff; }

/* Danger zone: classic flat row, red border without heavy effect */
.params-danger .params-wipe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid rgba(220, 38, 38, 0.5);
  background: transparent;
  color: #dc2626;
  font: inherit;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.params-danger .params-wipe-btn:hover { background: rgba(220, 38, 38, 0.08); }
.params-danger .params-wipe-btn:disabled { opacity: 0.55; cursor: wait; }

.params-toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px);
  background: #0f172a; color: #fff; font-size: 13px; font-weight: 600;
  padding: 11px 18px; border-radius: 12px; opacity: 0; pointer-events: none;
  transition: all 0.25s ease; z-index: 3000; max-width: 90vw;
}
.params-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) {
  .params-app { margin-left: 0; padding: 20px 16px 90px; }
}
@media (max-width: 600px) {
  .params-hero h1 { font-size: 22px; margin-bottom: 8px; }
  .params-section { padding: 12px 0 2px; }
  .sett-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 11px 0;
    min-height: 0;
  }
  .sett-label { font-size: 13px; }
  .sett-row input[type="text"],
  .sett-row select { width: 100%; flex-shrink: 1; }
  .segmented { display: flex; width: 100%; }
  .segmented button { flex: 1; justify-content: center; padding: 8px 10px; font-size: 11.5px; }
  .params-danger .params-wipe-btn { justify-content: center; }
}


/* ===== Floating confirmation menu (strict: opaque, no shadow, no animation) ===== */
.pns-confirm-menu {
  position: fixed;
  z-index: 4200;
  width: 250px;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, .38);
  box-shadow: none;
  filter: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: none;
  animation: none;
  contain: layout style paint;
}

[data-theme="dark"] .pns-confirm-menu,
body.dark .pns-confirm-menu,
body.theme-dark .pns-confirm-menu {
  background: #131b2e;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, .34);
}

.pns-confirm-menu[hidden] { display: none !important; }

.pns-confirm-head {
  padding: 6px 8px 9px;
  border-bottom: 1px solid rgba(148, 163, 184, .24);
  margin-bottom: 6px;
}

.pns-confirm-title {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
}

.pns-confirm-text {
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
  margin-top: 3px;
}

[data-theme="dark"] .pns-confirm-text,
body.dark .pns-confirm-text,
body.theme-dark .pns-confirm-text { color: #94a3b8; }

.pns-confirm-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.pns-confirm-item i { font-size: 12px; width: 14px; text-align: center; }

.pns-confirm-item:hover,
.pns-confirm-item:focus-visible {
  background: rgba(148, 163, 184, .16);
  outline: none;
}

.pns-confirm-item.danger { color: #f87171; }
.pns-confirm-item.danger:hover,
.pns-confirm-item.danger:focus-visible { background: rgba(220, 38, 38, .18); }

@media (max-width: 600px) {
  .pns-confirm-menu { width: min(250px, calc(100vw - 24px)); }
}