:root {
  --bg: #0f172a;
  --bg-soft: rgba(255, 255, 255, 0.06);
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --text-soft: #b8c0d9;
  --accent: #ec4899;
  --accent-2: #8b5cf6;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  /* Calendrier dispo + toast : même famille que #pbDispoToast */
  --pb-dispo-grad: linear-gradient(165deg, rgba(16, 185, 129, 0.28), rgba(6, 95, 70, 0.42));
  --pb-dispo-grad-panel: linear-gradient(165deg, rgba(16, 185, 129, 0.16), rgba(6, 95, 70, 0.26));
  --pb-dispo-grad-cell: linear-gradient(165deg, rgba(16, 185, 129, 0.2), rgba(6, 95, 70, 0.32));
  --pb-dispo-border: rgba(52, 211, 153, 0.45);
  --pb-dispo-border-soft: rgba(52, 211, 153, 0.32);
  --pb-dispo-border-muted: rgba(52, 211, 153, 0.2);
  --pb-dispo-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --pb-dispo-text: #ecfdf5;
  --pb-indispo-grad-cell: linear-gradient(165deg, rgba(244, 63, 94, 0.22), rgba(127, 29, 29, 0.38));
  --pb-indispo-border: rgba(251, 113, 133, 0.42);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 25%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 25%),
    linear-gradient(160deg, #0b1120 0%, #111827 100%);
  color: var(--text);
  min-height: 100%;
}

body {
  display: flex;
  min-height: 100vh;
  /* --sidebar-width : défini dans style.css (réduction rail) */
}

/* Sidebar & navigation : définition complète dans style.css (.sidebar, .menu…) */

.main {
  flex: 1;
  padding: 32px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.project-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 15px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
}

.planning-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.planning-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.22);
}

.planning-hint {
  color: var(--text-soft);
  font-size: 14px;
}

.search-input {
  min-width: 320px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: 0.2s ease;
}

.planning-filter-select {
  min-width: 160px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

.planning-filter-select:focus {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.planning-filter-select option {
  background: #0f172a;
  color: #fff;
}

.search-input:focus {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.planning-list {
  display: grid;
  gap: 12px;
}

.fire-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: start;
  transition: 0.2s ease;
}

.fire-main {
  min-width: 0;
  align-self: start;
  padding-top: 2px;
}

.fire-card:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 72, 153, 0.25);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.fire-date {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
}

.fire-day {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.fire-month {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-soft);
}

.fire-year {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
}

.fire-main {
  min-width: 0;
}

.fire-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.fire-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.meta-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-soft);
  font-size: 12px;
}

.fire-details {
  display: grid;
  gap: 9px;
  color: var(--text-soft);
  font-size: 14px;
}

.fire-team-inline {
  margin-top: 25px;
}

.fire-team-inline-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 15px;
}

.fire-team-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-inline-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  font-size: 12px;
  line-height: 1;
}

.team-inline-chip small {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 500;
}

.fire-status {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-badge {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.status-a-faire,
.status-en-attente,
.status-reporte,
.status-reporté {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.status-confirme,
.status-confirmé,
.status-valide,
.status-validé {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.status-realise,
.status-réalisé,
.status-termine,
.status-terminé {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.status-annule,
.status-annulé {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.empty-state,
.loading-state,
.error-state {
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  color: var(--text-soft);
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.12);
}

.empty-state strong,
.error-state strong {
  color: white;
}

@media (max-width: 1100px) {
  .fire-card {
    grid-template-columns: 1fr;
  }

  .fire-status {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    min-height: auto;
    max-height: min(70vh, 520px);
  }

  .sidebar .menu-item a:hover,
  .sidebar .menu-item.active a:hover {
    transform: none;
  }

  .main {
    padding: 20px;
  }

  .project-header h1 {
    font-size: 26px;
  }

  .search-input {
    width: 100%;
    min-width: 100%;
  }

  .toolbar-right {
    width: 100%;
    margin-left: 0;
  }

  .planning-filter-select {
    flex: 1 1 180px;
    min-width: 0;
  }
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.filter-chip:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(139,92,246,0.25));
  border-color: rgba(236,72,153,0.4);
  color: #fff;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.btn-modern {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-modern:hover {
  background: rgba(255,255,255,0.12);
}

.btn-primary {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border: none;
  color: white;
  box-shadow: 0 8px 20px rgba(236,72,153,0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.planning-board-card {
  margin-top: 16px;
}

.planning-board-card > h2 {
  color: rgba(255, 255, 255, 0.96);
}

.planning-board-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.planning-board-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.pb-weekday {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
  padding: 6px 0 8px;
  font-weight: 600;
}

.pb-day {
  position: relative;
  min-height: 120px;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  padding: 7px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  box-sizing: border-box;
}

.pb-day-empty {
  visibility: hidden;
  pointer-events: none;
}

.pb-day-num {
  font-weight: 700;
  font-size: 13px;
}

.pb-fire-count {
  align-self: flex-end;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #86efac;
}

.pb-day.has-fire {
  border-color: rgba(236, 72, 153, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

.pb-day.is-unavailable {
  background: var(--pb-indispo-grad-cell);
  border-color: var(--pb-indispo-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

button.pb-day.pb-day-dispo {
  appearance: none;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  min-height: 92px;
  gap: 6px;
  cursor: pointer;
  border-radius: 14px;
  color: var(--pb-dispo-text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease, filter 0.18s ease;
}

button.pb-day.pb-day-dispo.is-available:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.22);
}

button.pb-day.pb-day-dispo.is-unavailable:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.18);
}

button.pb-day.pb-day-dispo:active {
  transform: scale(0.98);
}

/* Uniquement le mode calendrier « dispo » (boutons), pas les cases feux */
button.pb-day.pb-day-dispo.is-available {
  background: var(--pb-dispo-grad-cell);
  border: 1px solid var(--pb-dispo-border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

button.pb-day.pb-day-dispo .pb-day-num {
  color: var(--pb-dispo-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.pb-day-dispo-label {
  margin-top: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 6px 10px;
  align-self: flex-start;
}

.pb-day.is-available .pb-day-dispo-label {
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.45);
  border: 1px solid var(--pb-dispo-border-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pb-day.is-unavailable .pb-day-dispo-label {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(252, 165, 165, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#pbDispoToast.pb-dispo-toast {
  padding: 14px 22px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--pb-dispo-text) !important;
  background: var(--pb-dispo-grad) !important;
  border: 1px solid var(--pb-dispo-border) !important;
  box-shadow: var(--pb-dispo-shadow) !important;
}

.planning-board-side-title {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.planning-board-fire-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.pb-fire-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.pb-fire-title {
  font-size: 14px;
  font-weight: 700;
}

.pb-fire-sub {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}

.pb-btn-wish {
  margin-top: 8px;
  border: 1px solid rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  border-radius: 10px;
  padding: 6px 9px;
  cursor: pointer;
}

.pb-btn-wish.is-on {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.pb-wishes {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pb-wish-chip {
  border-radius: 999px;
  border: 1px solid rgba(236, 72, 153, 0.42);
  background: rgba(236, 72, 153, 0.16);
  color: #fbcfe8;
  font-size: 11px;
  padding: 3px 8px;
}

.pb-no-wish,
.pb-empty,
.planning-board-help {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
}

.planning-board-lead {
  margin: 0 0 16px;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 62ch;
}

.planning-board-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.planning-board-month {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 200px;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
}

.pb-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.pb-nav-btn:hover {
  border-color: rgba(236, 72, 153, 0.45);
  background: rgba(236, 72, 153, 0.12);
}

.pb-nav-btn:active {
  transform: scale(0.96);
}

.pb-day.has-wishes {
  padding-top: 9px;
}

.pb-day-wish-notif {
  position: absolute;
  top: 5px;
  right: 6px;
  z-index: 4;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(165deg, #fb7185 0%, #dc2626 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 2px 10px rgba(220, 38, 38, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.pb-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 2px;
  flex-shrink: 0;
  min-width: 0;
  gap: 4px;
}

.pb-indispo-dot {
  color: #f87171;
  font-size: 12px;
}

.pb-day-fires {
  margin-top: 6px;
  display: grid;
  gap: 5px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.pb-fire-pill {
  border: none;
  border-radius: 8px;
  padding: 6px 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #fff;
  font-size: 11px;
  text-align: left;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.pb-fire-pill-title {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-fire-pill-wish-badge {
  flex-shrink: 0;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(165deg, #fb7185 0%, #b91c1c 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 2px 8px rgba(220, 38, 38, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(0, 0, 0, 0.22);
}

.pb-fire-pill.color-cold {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.75), rgba(37, 99, 235, 0.85));
}

.pb-fire-pill.color-warm {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.8), rgba(217, 119, 6, 0.9));
}

.pb-fire-pill.color-hot {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.85), rgba(190, 24, 93, 0.92));
}

.pb-fire-more {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  padding: 5px 6px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-fire-modal-panel {
  width: min(460px, 96vw);
  max-height: 86vh;
  border-radius: 20px;
  border: 1px solid rgba(236, 72, 153, 0.22);
  background:
    radial-gradient(110% 80% at 50% -10%, rgba(236, 72, 153, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, rgba(18, 20, 32, 0.99) 0%, rgba(8, 10, 20, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.1),
    0 36px 100px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.pb-fire-modal-body {
  overflow: auto;
  padding: 18px 20px 22px;
  scrollbar-width: thin;
}

.pb-fire-modal-msg {
  min-height: 1.2em;
  margin: 0 0 10px;
  color: #86efac;
  font-size: 13px;
}

.pb-wishes-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 10px;
}

.pb-fire-modal-wishes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.pb-fire-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.pb-fire-modal-admin-row {
  margin-bottom: 6px;
}

.pb-fire-participant-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pb-fire-flow-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.pb-wish-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-wish-confirm-lead {
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.pb-wish-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

#pbFireModal .pb-wish-chip {
  border-radius: 999px;
  border: 1px solid rgba(236, 72, 153, 0.42);
  background: rgba(236, 72, 153, 0.18);
  color: #fde7ef;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  line-height: 1.35;
}

#pbFireModal .pb-no-wish {
  margin-top: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  color: rgba(255, 255, 255, 0.46);
}

.pb-fire-modal-btn {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.pb-fire-modal-btn:active {
  transform: scale(0.98);
}

.pb-fire-modal-btn--primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  box-shadow:
    0 12px 36px rgba(236, 72, 153, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pb-fire-modal-btn--primary:hover {
  box-shadow:
    0 14px 42px rgba(236, 72, 153, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.pb-fire-modal-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.05);
}

.pb-fire-modal-btn--ghost:hover {
  border-color: rgba(236, 72, 153, 0.35);
  background: rgba(236, 72, 153, 0.12);
}

.pb-fire-modal-btn--project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  text-decoration: none;
  border: 1px solid rgba(236, 72, 153, 0.45);
  color: #fce7f3;
  background: rgba(236, 72, 153, 0.12);
  padding: 11px 18px;
}

.pb-fire-modal-btn--project:hover {
  background: rgba(236, 72, 153, 0.22);
  border-color: rgba(236, 72, 153, 0.55);
}

.pb-wish-confirm-actions .pb-fire-modal-btn--primary,
.pb-wish-confirm-actions .pb-fire-modal-btn--ghost {
  width: auto;
  min-width: 132px;
}

.pb-wish-toast {
  max-width: min(440px, 94vw);
  white-space: normal;
  text-align: center;
  line-height: 1.5;
  z-index: 99999;
}

#pbWishToast.pb-wish-toast {
  padding: 18px 26px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  color: #ecfdf5 !important;
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.28), rgba(6, 95, 70, 0.42)) !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.action-btn.action-btn-primary.is-on {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.pip-hidden {
  display: none !important;
}

/* Enveloppe pip-style agenda souhaits (planning sans plan-implantation.css) */
#pbFireModalBackdrop.pip-style-studio-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
}

#pbFireModal.pip-style-popup {
  position: fixed;
  inset: 0;
  z-index: 9001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 0;
  border: none;
  background: transparent;
  pointer-events: none;
}

#pbFireModal .pip-style-popup__panel {
  pointer-events: auto;
}

#pbFireModal .pip-style-popup__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 16px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: default;
  user-select: text;
}

#pbFireModal .pip-style-popup__head-text {
  flex: 1;
  min-width: 0;
}

#pbFireModal .pip-style-popup__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(241, 245, 249, 0.98);
}

#pbFireModal .pip-style-popup__lead {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.52);
}

#pbFireModal .pip-style-popup__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

#pbFireModal .pip-style-popup__close:active {
  transform: scale(0.95);
}

#pbFireModal .pip-style-popup__close:hover {
  color: #fce7f3;
  border-color: rgba(236, 72, 153, 0.45);
  background: rgba(236, 72, 153, 0.15);
}