/* =========================================================
   ASSISTANT PLANNING — page unique (ap-*)   v1
   ========================================================= */
.ap-screen{flex-direction:column;background:#EEF1F5;min-height:100%;}
.ap-screen.active{display:flex;}
.ap-topbar{position:sticky;top:0;z-index:20;background:linear-gradient(180deg,#00A86B 0%,#019d64 100%);
  padding:calc(env(safe-area-inset-top,0px) + 14px) 16px 18px;display:flex;align-items:center;gap:10px;
  border-bottom-left-radius:22px;border-bottom-right-radius:22px;box-shadow:0 4px 16px rgba(0,168,107,.18);}
.ap-back{width:40px;height:40px;flex:0 0 40px;border:none;background:rgba(255,255,255,.16);border-radius:50%;
  display:grid;place-items:center;cursor:pointer;transition:background .15s;}
.ap-back:active{background:rgba(255,255,255,.28);}
.ap-head-center{flex:1;min-width:0;text-align:center;}
.ap-title{margin:0;color:#fff;font-size:19px;font-weight:800;letter-spacing:.2px;}
.ap-subtitle{margin:2px 0 0;color:rgba(255,255,255,.92);font-size:12.5px;font-weight:500;line-height:1.3;}
.ap-status{flex:0 0 auto;display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.18);
  color:#fff;font-size:12px;font-weight:700;padding:6px 10px;border-radius:999px;}
.ap-status-dot{width:8px;height:8px;border-radius:50%;background:#D7FBE9;animation:apPulse 2s infinite;}
.ap-status.paused .ap-status-dot{background:#CBD5E1;animation:none;}
@keyframes apPulse{0%{box-shadow:0 0 0 0 rgba(215,251,233,.6)}70%{box-shadow:0 0 0 7px rgba(215,251,233,0)}100%{box-shadow:0 0 0 0 rgba(215,251,233,0)}}

.ap-body{flex:1;padding:16px 14px 104px;overflow-y:auto;}
.ap-card{background:#fff;border-radius:18px;padding:16px;margin-bottom:14px;box-shadow:0 2px 10px rgba(16,24,40,.05);}

.ap-crit-hd{display:flex;align-items:center;gap:9px;margin-bottom:12px;}
.ap-crit-ic{width:34px;height:34px;border-radius:10px;background:#E7F6EE;display:grid;place-items:center;flex:0 0 34px;}
.ap-crit-hd strong{font-size:16px;color:#0F172A;font-weight:800;}
/* Bandeau semaine (navigation jour par jour) */
.ap-weekstrip{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:14px;}
.ap-day{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0;
  border:1.5px solid #E6EDF2;background:#fff;border-radius:12px;cursor:pointer;}
.ap-day-wd{font-size:11px;color:#64748B;font-weight:600;text-transform:capitalize;}
.ap-day-n{font-size:16px;font-weight:800;color:#0F172A;}
.ap-day.on{background:#00A86B;border-color:#00A86B;}
.ap-day.on .ap-day-wd{color:rgba(255,255,255,.85);}
.ap-day.on .ap-day-n{color:#fff;}
.ap-day-dot{position:absolute;bottom:5px;width:5px;height:5px;border-radius:50%;background:#00A86B;}
.ap-day.on .ap-day-dot{background:#fff;}
.ap-chip-static{cursor:default;}
.ap-chip-static:active{background:#fff;border-color:#D6E9DF;box-shadow:none;}

.ap-chips{display:flex;flex-wrap:wrap;gap:8px;}
.ap-chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1.5px solid #D6E9DF;color:#0F766E;
  font-size:13px;font-weight:600;padding:9px 12px;border-radius:12px;cursor:pointer;min-height:40px;
  transition:border-color .15s,background .15s,box-shadow .15s;}
.ap-chip svg{flex:0 0 16px;}
.ap-chip:active{background:#F0FAF4;border-color:#00A86B;box-shadow:0 0 0 3px rgba(0,168,107,.10);}
.ap-crit-hint{margin:12px 2px 0;color:#94A3B8;font-size:12.5px;}

.ap-seclabel{display:flex;align-items:center;justify-content:space-between;margin:4px 4px 10px;}
.ap-seclabel>span:first-child{display:inline-flex;align-items:center;gap:8px;font-size:16px;font-weight:800;color:#0F172A;}
.ap-seccount{background:#E7F6EE;color:#00875A;font-weight:800;font-size:13px;padding:3px 11px;border-radius:999px;}

.ap-list{display:flex;flex-direction:column;gap:12px;}
.ap-ride{display:flex;gap:12px;background:#fff;border:2px solid #EDF0F4;border-radius:18px;padding:14px;
  box-shadow:0 2px 10px rgba(16,24,40,.05);cursor:pointer;transition:border-color .15s,box-shadow .15s;}
.ap-ride.selected{border-color:#00A86B;box-shadow:0 4px 14px rgba(0,168,107,.14);}
.ap-ride.unavail{opacity:.6;}
.ap-ride.done{cursor:default;background:#F8FAFC;}
.ap-check{width:26px;height:26px;flex:0 0 26px;border-radius:8px;border:2px solid #CBD5E1;background:#fff;
  display:grid;place-items:center;cursor:pointer;margin-top:2px;transition:background .15s,border-color .15s;padding:0;}
.ap-check svg{opacity:0;transition:opacity .15s;}
.ap-ride.selected .ap-check{background:#00A86B;border-color:#00A86B;}
.ap-ride.selected .ap-check svg{opacity:1;}
.ap-check-static{border-color:#E2E8F0;background:#F1F5F9;}
.ap-check-static svg{opacity:1;}
.ap-ride-main{flex:1;min-width:0;}
.ap-ride-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;}
.ap-ride-time{font-size:17px;font-weight:800;color:#0F172A;}
.ap-ride-time em{font-style:normal;font-weight:600;color:#94A3B8;font-size:14px;margin-left:4px;}
.ap-ride-tags{display:flex;align-items:center;gap:6px;flex-shrink:0;}
.ap-score{min-width:30px;text-align:center;font-weight:800;font-size:13px;padding:3px 8px;border-radius:8px;}
.ap-score.hi{background:#DCFCE7;color:#15803D;}
.ap-score.mi{background:#E7F6EE;color:#00875A;}
.ap-score.lo{background:#FEF3C7;color:#B45309;}
.ap-ride-route{margin:2px 0 10px;}
.ap-rr{display:flex;align-items:center;gap:9px;}
.ap-dot{width:10px;height:10px;border-radius:50%;flex:0 0 10px;}
.ap-dot.from{background:#00A86B;}
.ap-dot.to{background:#EF4444;}
.ap-city{font-size:15px;font-weight:600;color:#1F2937;}
.ap-rconn{width:2px;height:12px;background:#E2E8F0;margin-left:4px;}
.ap-ride-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:8px;}
.ap-ride-meta>span{background:#F1F5F9;color:#475569;font-size:12px;font-weight:600;padding:4px 9px;border-radius:8px;}
.ap-mtag{font-size:12px;font-weight:700;padding:4px 9px;border-radius:8px;}
.ap-mtag.g{background:#DCFCE7;color:#15803D;}
.ap-mtag.o{background:#E7F6EE;color:#00875A;}
.ap-mtag.t{background:#FEF3C7;color:#B45309;}
.ap-deadhead{font-size:12px;color:#64748B;margin-bottom:6px;display:flex;align-items:center;gap:5px;}
.ap-deadhead strong{color:#334155;}
.ap-reason{display:flex;align-items:flex-start;gap:7px;background:#F0FAF4;color:#15803D;font-size:13px;font-weight:500;
  padding:9px 11px;border-radius:11px;line-height:1.4;}
.ap-reason svg{flex:0 0 14px;margin-top:2px;}
.ap-ride-accept{margin-top:12px;width:100%;border:none;background:#00A86B;color:#fff;font-weight:800;
  font-size:15px;padding:13px;border-radius:13px;cursor:pointer;min-height:48px;
  box-shadow:0 4px 12px rgba(0,168,107,.22);transition:background .15s;}
.ap-ride-accept:active{background:#019d64;}
.ap-filter{display:inline-flex;align-items:center;gap:6px;border:1.5px solid #D6E9DF;background:#fff;color:#00875A;
  font-weight:700;font-size:13.5px;padding:8px 14px;border-radius:11px;cursor:pointer;min-height:38px;}
.ap-filter:active{background:#F0FAF4;}
.ap-switch-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #EDF0F4;border-radius:14px;
  padding:12px 14px;margin:4px 0 14px;cursor:pointer;position:relative;}
.ap-switch-txt{flex:1;display:flex;align-items:center;gap:9px;font-size:15px;color:#0F172A;}
.ap-switch-txt b{font-weight:700;}
.ap-switch-row input{position:absolute;opacity:0;width:0;height:0;}
.ap-switch-track{width:50px;height:30px;border-radius:999px;background:#D1D5DB;position:relative;flex:0 0 50px;transition:background .18s;}
.ap-switch-thumb{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .18s;}
.ap-switch-row input:checked ~ .ap-switch-track{background:#00A86B;}
.ap-switch-row input:checked ~ .ap-switch-track .ap-switch-thumb{transform:translateX(20px);}
.ap-sheet-row{margin-bottom:6px;}
.ap-pos-btn{display:flex;align-items:center;gap:9px;width:100%;border:1.5px dashed #CBD5E1;background:#fff;
  color:#475569;font-weight:600;font-size:14px;padding:12px 14px;border-radius:14px;cursor:pointer;margin:-8px 0 14px;
  min-height:48px;transition:border-color .15s,background .15s;}
.ap-pos-btn.on{border-style:solid;border-color:#00A86B;background:#F0FAF4;color:#00875A;}
.ap-pos-btn:active{background:#F0FAF4;}

.ap-badge{font-size:11.5px;font-weight:700;padding:4px 9px;border-radius:999px;white-space:nowrap;}
.ap-badge.sel{background:#DCFCE7;color:#15803D;}
.ap-badge.unsel{background:#F1F5F9;color:#64748B;}
.ap-badge.rec{background:#E7F6EE;color:#00875A;}
.ap-badge.accepted{background:#00A86B;color:#fff;}
.ap-badge.locked{background:#EEF2F7;color:#475569;}
.ap-badge.unavail{background:#FEE2E2;color:#B91C1C;}
.ap-badge.replaced{background:#DBEAFE;color:#1D4ED8;}

.ap-why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;}
.ap-why-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;}
.ap-why-ic{width:38px;height:38px;border-radius:50%;background:#E7F6EE;display:grid;place-items:center;}
.ap-why-item span{font-size:11px;color:#475569;font-weight:600;line-height:1.25;}

.ap-act-hd{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:15px;font-weight:800;color:#0F172A;}
.ap-act-row{display:flex;gap:9px;align-items:flex-start;padding:7px 0;border-top:1px solid #F1F5F9;font-size:13px;color:#475569;}
.ap-act-row:first-of-type{border-top:none;}
.ap-act-t{color:#94A3B8;font-weight:700;font-variant-numeric:tabular-nums;flex:0 0 auto;}

.ap-rej{margin-top:6px;}
.ap-rej summary{cursor:pointer;font-size:14px;font-weight:700;color:#64748B;padding:6px 2px;list-style:none;}
.ap-rej summary::-webkit-details-marker{display:none;}
.ap-rej-item{background:#fff;border-radius:12px;padding:11px 13px;margin-top:8px;box-shadow:0 1px 6px rgba(16,24,40,.04);}
.ap-rej-top{display:flex;justify-content:space-between;gap:8px;font-size:13px;font-weight:700;color:#334155;}
.ap-rej-reason{font-size:12.5px;color:#94A3B8;margin-top:4px;}

.ap-empty{text-align:center;padding:26px 18px;}
.ap-empty-ic{width:54px;height:54px;border-radius:50%;background:#E7F6EE;display:grid;place-items:center;margin:0 auto 12px;}
.ap-empty-t{font-size:16px;font-weight:800;color:#0F172A;margin-bottom:6px;}
.ap-empty-s{font-size:13.5px;color:#64748B;line-height:1.5;margin-bottom:14px;}

.ap-actionbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;gap:10px;
  padding:12px 14px calc(env(safe-area-inset-bottom,0px) + 12px);background:rgba(255,255,255,.96);
  backdrop-filter:saturate(180%) blur(8px);box-shadow:0 -4px 18px rgba(16,24,40,.10);}
.ap-ab-secondary{flex:0 0 auto;border:1.5px solid #D6E9DF;background:#fff;color:#00875A;font-weight:700;
  font-size:14px;padding:0 16px;min-height:50px;border-radius:14px;cursor:pointer;transition:background .15s;}
.ap-ab-secondary:active{background:#F0FAF4;}
.ap-ab-primary{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;border:none;
  background:#00A86B;color:#fff;font-weight:800;font-size:16px;min-height:50px;border-radius:14px;cursor:pointer;
  box-shadow:0 6px 16px rgba(0,168,107,.28);transition:background .15s,opacity .15s;}
.ap-ab-primary:active{background:#019d64;}
.ap-ab-primary:disabled{background:#CBD5E1;box-shadow:none;cursor:not-allowed;}

.ap-sheet-overlay{position:fixed;inset:0;z-index:40;background:rgba(15,23,42,.45);opacity:0;transition:opacity .2s;}
.ap-sheet-overlay.open{opacity:1;}
.ap-sheet{position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;border-top-left-radius:24px;border-top-right-radius:24px;
  max-height:88vh;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .26s cubic-bezier(.22,1,.36,1);
  box-shadow:0 -10px 40px rgba(16,24,40,.22);}
.ap-sheet.open{transform:translateY(0);}
.ap-sheet-grab{width:40px;height:4px;border-radius:4px;background:#E2E8F0;margin:10px auto 4px;}
.ap-sheet-hd{display:flex;align-items:center;gap:10px;padding:8px 18px 12px;border-bottom:1px solid #F1F5F9;}
.ap-sheet-ic{width:34px;height:34px;border-radius:10px;background:#E7F6EE;display:grid;place-items:center;flex:0 0 34px;}
.ap-sheet-hd strong{flex:1;font-size:17px;font-weight:800;color:#0F172A;}
.ap-sheet-close{width:34px;height:34px;border:none;background:#F1F5F9;border-radius:50%;display:grid;place-items:center;cursor:pointer;}
.ap-sheet-body{padding:16px 18px;overflow-y:auto;}
.ap-field{margin-bottom:18px;}
.ap-field-lbl{font-size:15px;font-weight:700;color:#0F172A;}
.ap-field-help{font-size:12.5px;color:#94A3B8;margin:2px 0 10px;}
.ap-stepper{display:flex;align-items:center;justify-content:space-between;background:#F8FAFC;border:1px solid #EDF0F4;border-radius:14px;padding:6px;}
.ap-stepper button{width:42px;height:42px;border:none;background:#fff;border-radius:11px;font-size:22px;color:#00875A;font-weight:700;cursor:pointer;box-shadow:0 1px 3px rgba(16,24,40,.08);}
.ap-stepper button:active{background:#F0FAF4;}
.ap-stepval{font-size:22px;font-weight:800;color:#00A86B;}
.ap-stepval em{font-size:14px;font-style:normal;color:#64748B;font-weight:600;}
.ap-range{width:100%;margin:12px 0 2px;accent-color:#00A86B;height:6px;}
.ap-range-ticks{display:flex;justify-content:space-between;font-size:11px;color:#94A3B8;margin-top:2px;}
.ap-seg{display:flex;gap:8px;}
.ap-seg .ap-chip{flex:1;justify-content:center;}
.ap-seg .ap-chip.on{background:#00A86B;border-color:#00A86B;color:#fff;}
.ap-mini-chips{display:flex;gap:8px;flex-wrap:wrap;}
.ap-mini-chips .ap-chip.on{background:#00A86B;border-color:#00A86B;color:#fff;}
.ap-week-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;}
.ap-week-days button{border:1.5px solid #D6E9DF;background:#fff;color:#0F766E;font-weight:700;font-size:13px;
  padding:11px 0;border-radius:11px;cursor:pointer;}
.ap-week-days button.is-on{background:#00A86B;border-color:#00A86B;color:#fff;}
.ap-weekcount{font-size:12.5px;color:#00875A;font-weight:600;margin-top:8px;text-align:center;}
.ap-time-row{display:flex;gap:10px;}
.ap-time-col{flex:1;}
.ap-time-col span{display:block;font-size:12px;color:#64748B;margin-bottom:4px;}
.ap-time-col input{width:100%;border:1px solid #E2E8F0;border-radius:11px;padding:11px;font-size:15px;box-sizing:border-box;}
.ap-sheet-count{display:flex;align-items:center;justify-content:center;gap:7px;color:#00875A;font-weight:700;font-size:13.5px;padding:6px 0 2px;}
.ap-sheet-foot{display:flex;gap:10px;padding:12px 18px calc(env(safe-area-inset-bottom,0px) + 14px);border-top:1px solid #F1F5F9;}
.ap-btn-ghost{flex:0 0 38%;border:1.5px solid #E2E8F0;background:#fff;color:#475569;font-weight:700;font-size:15px;min-height:50px;border-radius:14px;cursor:pointer;}
.ap-btn-primary{flex:1;border:none;background:#00A86B;color:#fff;font-weight:800;font-size:15px;min-height:50px;border-radius:14px;cursor:pointer;box-shadow:0 6px 16px rgba(0,168,107,.26);}
.ap-btn-primary:active,.ap-btn-ghost:active{opacity:.9;}

@media (prefers-reduced-motion:reduce){
  .ap-status-dot{animation:none;}
  .ap-sheet,.ap-sheet-overlay{transition:none;}
}

/* ── Support / Aide & FAQ ── */
.sup-search{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:0 14px;margin-bottom:16px;}
.sup-search input{flex:1;border:none;outline:none;font-size:15px;padding:13px 0;background:transparent;}
.sup-cat{margin-bottom:18px;}
.sup-cat-hd{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:800;color:#0F172A;margin:0 2px 10px;}
.sup-cat-ic{width:32px;height:32px;border-radius:9px;background:#E7F6EE;display:grid;place-items:center;flex:0 0 32px;}
.sup-item{background:#fff;border-radius:14px;margin-bottom:8px;box-shadow:0 1px 6px rgba(16,24,40,.05);overflow:hidden;}
.sup-item summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 15px;cursor:pointer;list-style:none;font-size:14.5px;font-weight:600;color:#1F2937;}
.sup-item summary::-webkit-details-marker{display:none;}
.sup-chev{flex:0 0 18px;transition:transform .2s;}
.sup-item[open] .sup-chev{transform:rotate(180deg);}
.sup-answer{padding:0 15px 15px;font-size:14px;color:#475569;line-height:1.55;}
.sup-empty{text-align:center;color:#94A3B8;font-size:14px;padding:30px 16px;line-height:1.6;}
@media (prefers-reduced-motion:reduce){.sup-chev{transition:none;}}
