/* =====================================================================
   TripCooking – Paramètres des notifications
   Thème clair, tout scopé sous .tcParam (réutilise les variables .tcf)
   ===================================================================== */
.tcParam { --pc: 56px; --pside: 360px; }

.tcParam-shell {
  margin-left: var(--tcf-side, 240px);
  padding: calc(var(--tcf-head, 64px) + 22px) 26px 48px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pside);
  gap: 22px;
  align-items: start;
}

/* La nav réutilise .tcf-side / .tcSideFix (déjà stylées globalement). */

/* ---------- En-tête ---------- */
.tcParam-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.tcParam-head__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #efe9ff; font-size: 24px; }
.tcParam-head h1 { font-size: 24px; font-weight: 800; margin: 0; color: #1f2430; }
.tcParam-head p { margin: 2px 0 0; color: #8a867f; font-size: 14px; }

/* ---------- Onglets ---------- */
.tcParam-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tcParam-tab { border: 1px solid rgba(24,28,38,.12); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; color: #66616b; cursor: pointer; transition: .15s; }
.tcParam-tab:hover { border-color: rgba(102,71,232,.4); }
.tcParam-tab.is-active { background: #1f2430; color: #fff; border-color: #1f2430; }

/* ---------- En-têtes de colonnes ---------- */
.tcParam-colhead { display: grid; grid-template-columns: 1fr repeat(3, var(--pc)); align-items: end; gap: 0; padding: 0 20px 8px; }
.tcParam-colhead span { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #a7a29a; }
.tcParam-colhead__site { text-align: right !important; padding-right: 8px; }

/* ---------- Carte de catégorie ---------- */
.tcParam-cat { background: #fff; border: 1px solid rgba(24,28,38,.07); border-radius: 18px; box-shadow: 0 10px 30px rgba(40,44,58,.05); margin-bottom: 14px; overflow: hidden; }
.tcParam-cat__head { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; }
.tcParam-cat__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 20px; }
.tcParam-cat__tx { min-width: 0; }
.tcParam-cat__title { font-size: 15px; font-weight: 800; color: #1f2430; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tcParam-cat__badge { font-size: 11px; font-weight: 700; color: #6647e8; background: #efe9ff; border-radius: 999px; padding: 2px 9px; }
.tcParam-cat__tx p { margin: 3px 0 0; font-size: 12.5px; color: #8a867f; line-height: 1.4; }
.tcParam-cat__ctrls { display: grid; grid-template-columns: repeat(3, var(--pc)); align-items: center; justify-items: center; }
.tcParam-cat__chev { background: none; border: none; font-size: 15px; color: #a7a29a; cursor: pointer; transition: transform .2s; }
.tcParam-cat.is-open .tcParam-cat__chev { transform: rotate(180deg); }
.tcParam-essentiel { grid-column: 1 / 3; justify-self: end; font-size: 11px; font-weight: 700; color: #9a6b00; background: #fdf2da; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

/* Corps repliable */
.tcParam-cat__body { display: none; padding: 0 20px 8px; border-top: 1px solid rgba(24,28,38,.06); }
.tcParam-cat.is-open .tcParam-cat__body { display: block; }
.tcParam-opt { display: grid; grid-template-columns: 26px 1fr repeat(3, var(--pc)); align-items: center; gap: 0 4px; padding: 11px 0; border-bottom: 1px solid rgba(24,28,38,.05); }
.tcParam-opt:last-child { border-bottom: none; }
.tcParam-opt__ic { font-size: 15px; }
.tcParam-opt__label { font-size: 13.5px; color: #3a3f4b; }

/* ---------- Case à cocher personnalisée ---------- */
.tcParam-pref__cell { display: grid; place-items: center; cursor: pointer; }
.tcParam-pref__cell input { position: absolute; opacity: 0; width: 0; height: 0; }
.tcf-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid rgba(24,28,38,.2); display: grid; place-items: center; transition: .15s; }
.tcf-check::after { content: '✓'; color: #fff; font-size: 13px; font-weight: 800; transform: scale(0); transition: transform .15s; }
.tcParam-pref__cell input:checked + .tcf-check { background: #6647e8; border-color: #6647e8; }
.tcParam-pref__cell input:checked + .tcf-check::after { transform: scale(1); }
.tcParam-pref__cell.is-lock { cursor: not-allowed; }
.tcParam-pref__cell.is-lock .tcf-check { background: #cfcadf; border-color: #cfcadf; opacity: .8; }

/* ---------- Interrupteur (bascule catégorie) ---------- */
.tcParam-switch { width: 44px; height: 26px; border-radius: 999px; border: none; background: rgba(24,28,38,.18); position: relative; cursor: pointer; transition: background .18s; padding: 0; }
.tcParam-switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tcParam-switch.is-on { background: #6647e8; }
.tcParam-switch.is-on span { transform: translateX(18px); }

/* ---------- Colonne droite ---------- */
.tcParam-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--tcf-head, 64px) + 22px); }
.tcParam-card { background: #fff; border: 1px solid rgba(24,28,38,.07); border-radius: 18px; box-shadow: 0 10px 30px rgba(40,44,58,.05); padding: 18px; }
.tcParam-card h2 { font-size: 15px; font-weight: 800; margin: 0 0 4px; color: #1f2430; }
.tcParam-card__sub { font-size: 11.5px; color: #a7a29a; margin: 0 0 14px; }

.tcParam-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcParam-stat { border: 1px solid rgba(24,28,38,.07); border-radius: 14px; padding: 12px; }
.tcParam-stat__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 16px; margin-bottom: 8px; }
.tcParam-stat b { display: block; font-size: 22px; font-weight: 800; color: #1f2430; }
.tcParam-stat small { font-size: 11px; color: #8a867f; line-height: 1.3; display: block; }
.tcParam-up { color: #1d9e75; font-style: normal; font-weight: 700; }

.tcParam-actions { list-style: none; margin: 0; padding: 0; }
.tcParam-actions li + li { border-top: 1px solid rgba(24,28,38,.06); }
.tcParam-actions button { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 12px 2px; font-size: 13.5px; font-weight: 600; color: #3a3f4b; cursor: pointer; text-align: left; }
.tcParam-actions button:hover { color: #6647e8; }
.tcParam-actions__ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; color: #fff; }

/* Pastilles de couleur réutilisables */
.tcParam-ic--pink { background: #fbe6ee; } .tcParam-ic--purple { background: #ece7fd; } .tcParam-ic--green { background: #e2f5ec; }
.tcParam-ic--amber { background: #fbeed6; } .tcParam-ic--blue { background: #e4eefb; } .tcParam-ic--gray { background: #eeece7; } .tcParam-ic--red { background: #fbe3e3; }
.tcParam-actions__ic.tcParam-ic--green { background: #1d9e75; } .tcParam-actions__ic.tcParam-ic--red { background: #d64550; } .tcParam-actions__ic.tcParam-ic--purple { background: #6647e8; }

.tcParam-freq { width: 100%; padding: 11px 12px; border: 1px solid rgba(24,28,38,.14); border-radius: 12px; font-size: 13.5px; font-weight: 600; color: #3a3f4b; background: #fff; cursor: pointer; }

.tcParam-preview { display: flex; gap: 11px; align-items: flex-start; background: #faf9f7; border-radius: 14px; padding: 12px; }
.tcParam-preview .tcf-ini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.tcParam-preview__tx { font-size: 12.5px; color: #66616b; line-height: 1.5; }
.tcParam-preview__tx strong { display: block; color: #1f2430; }
.tcParam-preview__tx small { display: block; color: #a7a29a; margin-top: 2px; }

.tcParam-save { background: linear-gradient(180deg,#f3efff 0%,#fbfaff 100%); text-align: center; }
.tcParam-save b { font-size: 13.5px; color: #1f2430; }
.tcParam-save p { font-size: 12px; color: #8a867f; margin: 4px 0 12px; }
.tcParam-savebtn { width: 100%; padding: 13px; border: none; border-radius: 13px; background: #6647e8; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: .15s; }
.tcParam-savebtn:hover { background: #5738e0; }
.tcParam-savebtn:disabled { opacity: .6; cursor: default; }
.tcParam-savemsg { font-size: 12px; font-weight: 700; color: #1d9e75; margin-top: 10px; opacity: 0; transition: opacity .2s; }
.tcParam-savemsg.is-show { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .tcParam-shell { grid-template-columns: minmax(0, 1fr); }
  .tcParam-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .tcParam-side .tcParam-card { flex: 1 1 260px; }
}
@media (max-width: 760px) {
  .tcParam-shell { margin-left: 0; padding: calc(var(--tcf-head, 64px) + 14px) 12px 40px; }
  .tcParam-cat__tx p { display: none; }
}