/* ── Planning Hebdomadaire Public ─────────────────────────────────────── */
.planning-hebdo-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
}

/* ── Barre supérieure ─────────────────────────────────────────────────── */
.ph-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.ph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  flex: 1;
}
.ph-leg {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.ph-leg-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.6);
}
.ph-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 8px;
  background: rgba(255,255,255,.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.ph-pdf-btn:hover { background: rgba(255,255,255,.28); }
.ph-pdf-btn svg   { width:15px; height:15px; flex-shrink:0; stroke:#fff; }

/* ── Vue timeline (desktop) ───────────────────────────────────────────── */
.ph-scroll   { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ph-planning {
  display: flex;
  min-width: 560px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.ph-time-col {
  flex: 0 0 46px;
  position: relative;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
}
.ph-time-header { height:36px; border-bottom:1px solid #e2e8f0; }
.ph-time-body   { position: relative; }
.ph-tick {
  position: absolute;
  right: 6px;
  font-size: 9px;
  color: #94a3b8;
  line-height: 1;
  transform: translateY(-50%);
  white-space: nowrap;
}
.ph-time-line      { position:absolute; left:0; right:0; border-top:1px solid #e2e8f0; }
.ph-time-line.half { border-top:1px dashed #e2e8f0; opacity:.6; }
.ph-days     { display:flex; flex:1; min-width:0; }
.ph-day-col  { flex:1; display:flex; flex-direction:column; border-right:1px solid #e2e8f0; min-width:0; }
.ph-day-col:last-child { border-right:none; }
.ph-day-head {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}
.ph-day-body { position:relative; flex:1; }
.ph-h-line      { position:absolute; left:0; right:0; border-top:1px solid #e2e8f0; pointer-events:none; }
.ph-h-line.half { border-top:1px dashed #e2e8f0; opacity:.45; }
.ph-slot {
  position: absolute;
  left: 3px; right: 3px;
  border-radius: 10px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
  text-align: center;
  cursor: default;
}
.ph-slot .sn { font-weight:800; font-size:11px; line-height:1.3; text-transform:uppercase; letter-spacing:.03em; }
.ph-slot .sa { font-size:10.5px; font-weight:500; opacity:.9; }
.ph-slot .sh { font-size:10px; font-weight:700; opacity:.75; margin-top:1px; }

/* ── Vue liste mobile (accordéon) ─────────────────────────────────────── */
.ph-mobile-list {
  display: none;
}
.ph-day-card {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.ph-day-card.ph-day-today .ph-day-card-hdr {
  background: #0f766e;
  color: #ffffff;
}
.ph-day-card-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #1e40af;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: opacity .15s;
}
.ph-day-card-hdr:hover { opacity: .92; }
.ph-day-card-name  { font-size:15px; font-weight:700; flex:1; }
.ph-day-card-count { font-size:12px; opacity:.8; }
.ph-day-card-arrow { font-size:13px; opacity:.7; }
.ph-day-card-body  { padding: 8px; }
.ph-day-empty {
  padding: 14px 10px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}
.ph-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
}
.ph-list-row:last-child { border-bottom: none; }
.ph-list-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ph-list-time {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  min-width: 90px;
}
.ph-list-info  { display:flex; flex-direction:column; gap:3px; }
.ph-list-name  {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.3;
}
.ph-list-interv {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  padding-left: 2px;
}

/* ── Print ────────────────────────────────────────────────────────────── */
@media print {
  .ph-top-bar { display:none !important; }
  .ph-slot, .ph-list-name { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

/* ── Responsive breakpoint ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ph-scroll   { display:none; }
  .ph-mobile-list { display: block; }
  .ph-leg      { font-size:11px; }
  .ph-top-bar  { gap:8px; }
  .ph-pdf-btn  { font-size:12px; padding:6px 12px; }
}
@media (min-width: 769px) {
  .ph-mobile-list { display:none !important; }
  .ph-scroll      { display:block; }
}
