/* L'agenda de l'exposant (onglet « Rendez-vous », agenda.js) : la journée en colonne horaire, et à côté ce qui attend une réponse. */
.ag { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.ag-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.ag .panel { animation: rise .55s var(--ease) both; } .ag-side .panel { animation-delay: .06s; }
.ag-daybox { gap: 10px; } .ag-daybox .panel-h { align-items: center; }
.ag-daybox h2 { font-size: 30px; }
.ag-empty { display: grid; gap: 12px; justify-items: start; padding: 16px 18px; border-radius: var(--r1); background: rgba(255,255,255,.6); border: 1px dashed color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ink2); font-size: 14.500px; }
.ag-sum { margin-top: -6px; color: var(--mut); font-size: 13.500px; } .ag-sum span { display: block; margin-top: 2px; color: var(--mut2); font-size: 13px; }

/* la colonne horaire : l'heure à gauche, un rail, puis chaque élément de la journée */
.ag-day { position: relative; display: grid; gap: 6px; margin-top: 4px; }
.ag-day::before { content: ''; position: absolute; left: 63px; top: 10px; bottom: 10px; width: 1px; background: var(--line2); }
.ag-day > li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
.ag-day time { font: 500 14px/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); padding-top: 13px; text-align: right; }
.ag-day time b { display: block; font-weight: 500; } .ag-day time small { display: block; margin-top: 3px; font-size: 11.500px; color: var(--mut2); }
.ag-edge { align-items: center !important; } .ag-edge time { padding: 0; font-size: 12.500px; color: var(--mut); }
.ag-edge span { display: flex; align-items: center; gap: 10px; font-size: 11.500px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--mut); }
.ag-edge span::after { content: ''; flex: 1; height: 1px; background: var(--line2); }

.ag-card { width: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; text-align: left; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh1); transition: transform .25s var(--spring), box-shadow .2s, border-color .2s, background .2s; }
.ag-card:hover { transform: translateY(-1px); border-color: var(--line2); box-shadow: var(--sh2); }
.ag-who { display: grid; gap: 1px; min-width: 0; } .ag-who b { font-weight: 600; font-size: 15px; }
.ag-who small { display: block; color: var(--mut); font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-who small.ag-want { color: var(--ink2); }
.ag-r { display: grid; justify-items: end; gap: 5px; }
.ag-go { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.ag-it.rdv .ag-card { border-left: 3px solid var(--accent); }
.ag-it.encours .ag-card { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg), var(--sh2); }
.ag-it.anoter .ag-card { border-left-color: var(--warn); } .ag-it.fait .ag-card { border-left-color: var(--ok); } .ag-it.manque .ag-card { border-left-color: var(--mut2); }
.ag-it.free .ag-card, .ag-it.closed .ag-card { grid-template-columns: minmax(0, 1fr) auto; padding: 9px 14px; box-shadow: none; }
.ag-it.free .ag-card { background: rgba(255,255,255,.4); border: 1.500px dashed color-mix(in srgb, var(--ok) 45%, transparent); } .ag-it.free .ag-who b { color: var(--ok); }
.ag-it.free .ag-card:hover { background: #fff; }
.ag-it.closed .ag-card { background: repeating-linear-gradient(-45deg, rgba(11,16,32,.05) 0 6px, rgba(255,255,255,.35) 6px 12px); } .ag-it.closed .ag-who b { color: var(--ink2); } .ag-it.closed .ag-go { color: var(--mut); }
.ag-it.free time, .ag-it.closed time { padding-top: 10px; }
.ag-it.past { opacity: .5; } .ag-it.past .ag-card:hover { transform: none; }

.ag-gap { align-items: center !important; } .ag-gap time { padding: 0; font-size: 12px; color: var(--mut2); }
.ag-gap button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 34px; padding: 4px 14px; border-radius: 12px; font-size: 13px; color: var(--mut); text-align: left; transition: background .2s, color .2s; }
.ag-gap button:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.ag-gap em { font-style: normal; }
.ag-gap b { display: inline-flex; align-items: center; gap: 4px; flex: none; font-weight: 600; color: var(--accent); } .ag-gap b svg { width: 14px; height: 14px; }

.ag-now { align-items: center !important; } .ag-now time { padding: 0; font-weight: 600; color: var(--accent); }
.ag-now span { display: flex; align-items: center; gap: 8px; font-size: 11.500px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ag-now span::after { content: ''; flex: 1; height: 2px; border-radius: 1px; background: var(--accent); }
.ag-now i { width: 11px; height: 11px; margin-left: -12.500px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); flex: none; }

/* ce qui attend une réponse */
.ag-todo { gap: 14px; }
.ag-n { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; font: 400 20px/1 var(--serif); font-style: normal; color: #fff; background: var(--aurora-btn); }
.ag-g h4 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; font-size: 11.500px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.ag-g h4 em { font: 400 19px/1 var(--serif); font-style: normal; color: var(--ink); letter-spacing: 0; }
.ag-g li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ag-g li:last-of-type { border-bottom: 0; }
.ag-person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; text-align: left; border-radius: 12px; }
.ag-person > span { min-width: 0; } .ag-person b { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.ag-nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ag-person small { display: block; color: var(--mut); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-person:hover b { color: var(--accent-ink); }
.ag-sc { flex: none; padding: 1px 6px; border-radius: 999px; font: 600 11.500px var(--mono); font-style: normal; vertical-align: 1px; color: var(--accent-ink); background: var(--accent-bg); }
.ag-more { margin-top: 4px; }
.ag-qr { flex-direction: row; align-items: center; gap: 16px; } .ag-qr .qr { width: 92px; box-shadow: var(--sh1); } .ag-qr h3 { margin-bottom: 4px; } .ag-qr p { font-size: 13.500px; }

/* fenêtres */
.ag-mini { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r1); background: rgba(11,16,32,.04); } .ag-mini small { display: block; color: var(--mut); font-size: 13px; }
.ag-when { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); box-shadow: var(--sh1); }
.ag-when.anoter { border-left-color: var(--warn); } .ag-when.fait { border-left-color: var(--ok); } .ag-when.manque { border-left-color: var(--mut2); }
.ag-when time { font: 400 32px/1 var(--serif); font-variant-numeric: tabular-nums; } .ag-when time small { display: block; margin-top: 3px; font: 500 12px var(--mono); color: var(--mut); }
.ag-when span small { display: block; color: var(--mut); font-size: 13px; }
.ag-facts, .ag-prep ul { display: grid; gap: 6px; margin-top: 6px; }
.ag-facts li, .ag-prep li { position: relative; padding-left: 16px; font-size: 14.500px; line-height: 1.45; color: var(--ink2); }
.ag-facts li::before, .ag-prep li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ag-prep li::before { background: var(--a3); } .ag-prep ul { margin-top: 0; }
.ag-pick li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); } .ag-pick li:last-child { border-bottom: 0; } .ag-pick small { display: block; color: var(--mut); font-size: 13px; }
.ag-sheet .seg { align-self: flex-start; } .ag-sheet .seg button { display: inline-flex; align-items: center; gap: 6px; } .ag-sheet .seg svg { width: 15px; height: 15px; }
.ag-rm { align-self: flex-start; }
.ag-acts { display: grid; gap: 8px; justify-items: start; } .ag-acts .btn.wide { justify-self: stretch; }
.ag-chips .chip { min-width: 78px; font-family: var(--mono); font-size: 14px; }

@media (max-width: 1100px) {
  .ag { grid-template-columns: minmax(0, 1fr); }
  .ag-side { display: contents; }
  .ag-todo { order: -1; } .ag-todo.calm { order: 1; } .ag-qr { order: 2; }   /* rien à traiter : l'agenda passe devant */
}
@media (max-width: 860px) {
  .ag { gap: 12px; }
  .ag .panel { padding: 16px 14px; border-radius: 22px; }
  .ag-day::before { left: 51px; }
  .ag-day > li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .ag-day time { font-size: 13px; }
  .ag-card { gap: 10px; padding: 10px 12px; } .ag-card > .av { display: none; } .ag-it.rdv .ag-card { grid-template-columns: minmax(0, 1fr) auto; }
  .ag-gap button { padding: 4px 10px; } .ag-gap em { display: none; }
  .ag-it.free .ag-go { display: none; }
  .ag-daybox h2 { font-size: 27px; }
  /* l'action de la fiche reste sous le pouce, collée en bas de la fenêtre */
  .ag-acts { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); z-index: 2; display: grid; gap: 8px; margin: 0 -18px calc(-22px - env(safe-area-inset-bottom)); padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .ag-g li .btn.sm { padding: 5px 12px; } .ag-long { display: none; }
}

/* Secteur du visiteur sur un rendez-vous (département ou pays) : pour savoir quel commercial le reçoit. */
.ag-sect { color: var(--accent); font-weight: 600; }
