/* Planning des séminaires et formations (s'appuie sur iqraa.css) */
.pl-wrap { display: grid; gap: 20px; }
.pl-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--sh); position: sticky; top: 88px; z-index: 6; }
.admin-bar .pl-tools { top: 120px; }
.pl-search { flex: 1 1 300px; margin: 0; }
.pl-search input { width: 100%; height: 46px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; }
.pl-search input:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.pl-month { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 14px; color: var(--muted); }
.pl-month select { height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.pl-past { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.pl-past input { width: 18px; height: 18px; accent-color: var(--g); }
.pl-print { height: 46px; padding: 0 18px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.pl-chip b { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--mint); color: var(--g-700); font-size: 12px; }
.pl-chip:hover { border-color: var(--g); }
.pl-chip.is-on { background: var(--g); border-color: var(--g); color: #fff; }
.pl-chip.is-on b { background: rgba(255, 255, 255, .25); color: #fff; }
.pl-note { margin: 0; font-size: 14px; }
.pl-note a { color: var(--g-700); font-weight: 600; }

.pl-list { display: grid; gap: 34px; }
.pl-dom[hidden], .pl-row[hidden] { display: none !important; }
.pl-dom-title { font-size: clamp(19px, 2.4vw, 24px); margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.pl-dom-title span { font-size: 14px; font-weight: 600; color: var(--muted); }

.pl-table { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--sh); }
.pl-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px repeat(3, 150px) 118px; align-items: center; border-top: 1px solid var(--line); }
.pl-head { border-top: 0; background: var(--g-900, #064e3b); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pl-head > span { padding: 12px 10px; }
.pl-head > span:first-child { padding-left: 18px; }
.pl-row:not(.pl-head):nth-child(even) { background: #fbfdfc; }
.pl-row:not(.pl-head):hover { background: var(--mint); }
.pl-t { padding: 12px 10px 12px 18px; font-weight: 600; color: var(--ink); line-height: 1.4; font-size: 15px; }
.pl-dur { padding: 0 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.pl-c { padding: 10px; font-size: 14px; font-weight: 600; color: var(--g-900, #064e3b); line-height: 1.3; }
.pl-c time { display: block; }
.pl-c small { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.pl-c.st-past { color: #94a3b8; font-weight: 500; }
.pl-c.st-past time { text-decoration: line-through; }
.pl-c.st-past small { background: #f1f5f9; color: #64748b; }
.pl-c.st-now small { background: #fef3c7; color: #b45309; }
.pl-mn { display: none; }
.pl-row.is-past .pl-t { color: #94a3b8; }
.pl-act { padding: 8px 14px 8px 4px; text-align: right; }
.pl-btn { display: inline-block; padding: 8px 14px; border-radius: 10px; background: var(--g); color: #fff !important; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s; }
.pl-btn:hover { background: var(--g-700); }
.pl-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* Filtre par mois : une seule colonne de dates */
.pl-m10 .pl-c11, .pl-m10 .pl-c12, .pl-m11 .pl-c10, .pl-m11 .pl-c12, .pl-m12 .pl-c10, .pl-m12 .pl-c11 { display: none; }
.pl-m10 .pl-row, .pl-m11 .pl-row, .pl-m12 .pl-row { grid-template-columns: minmax(0, 1fr) 84px 190px 118px; }

@media (max-width: 900px) {
	.pl-tools { position: static; }
	.pl-table { border: 0; background: transparent; box-shadow: none; display: grid; gap: 12px; overflow: visible; }
	.pl-head { display: none; }
	.pl-row, .pl-m10 .pl-row, .pl-m11 .pl-row, .pl-m12 .pl-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff !important; }
	.pl-m10 .pl-row, .pl-m11 .pl-row, .pl-m12 .pl-row { grid-template-columns: 1fr; }
	.pl-t { grid-column: 1 / -1; padding: 0; font-size: 15.5px; }
	.pl-dur { grid-column: 1 / -1; padding: 0; font-size: 13px; }
	.pl-c { background: var(--mint); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }
	.pl-c.st-past { background: #f8fafc; }
	.pl-mn { display: block; font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
	.pl-act { grid-column: 1 / -1; padding: 4px 0 0; text-align: left; }
	.pl-btn { display: block; text-align: center; padding: 10px; }
}
@media (max-width: 420px) {
	.pl-row { grid-template-columns: 1fr; }
}

@media print {
	.site-header, .site-footer, .pl-tools, .pl-chips, .pl-act, .pl-note a, .page-hero .btn { display: none !important; }
	.pl-table { box-shadow: none; }
	.pl-row { grid-template-columns: minmax(0, 1fr) 70px repeat(3, 120px); break-inside: avoid; }
	.pl-dom { break-inside: auto; }
	.pl-dom-title { break-after: avoid; }
	.pl-head { background: #e2f5ec !important; color: #064e3b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
