/* ═══════════════════════════════════════════════════════════════════════
   assets/css/quittance-libre.css — [2026-11]
   Commun au formulaire de quittance du blog et de /public/guest-quittance.php :
     - sélecteur de date (assets/js/mc-datepicker.js) ;
     - choix « Période continue / Jours précis » et calendrier des jours.
   Couleurs : jetons de d3-public.css (--p-*), avec des valeurs de repli.
   ═══════════════════════════════════════════════════════════════════════ */
.mcdp-champ-wrap, .gq-bloc-jours {
  --dp-ink: var(--p-ink, #1e1b4b); --dp-ink-2: var(--p-ink-2, #2b2770);
  --dp-coral: var(--p-coral, #ff7a59); --dp-coral-d: var(--p-coral-d, #e8603f);
  --dp-lav: var(--p-lav, #e4dcff); --dp-violet: var(--p-violet, #6d5dfc);
  --dp-muted: var(--p-muted, #6b6b8a); --dp-line: #ececf4;
  --dp-title: var(--p-title, 'Outfit', 'DM Sans', system-ui, sans-serif);
}

/* ── Champ « jj/mm/aaaa » ─────────────────────────────────────────── */
.mcdp-champ-wrap { position: relative; }
.mcdp-natif {   /* le vrai <input type="date"> : présent, invisible */
  position: absolute !important; left: 0; bottom: 0; width: 1px !important; height: 1px !important; min-height: 0 !important;
  padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none;
}
.mcdp-bouton {
  -webkit-appearance: none; appearance: none; width: 100%; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.mcdp-bouton svg { flex: none; color: var(--dp-muted); transition: color .15s; }
.mcdp-bouton:hover svg, .mcdp-ouvert .mcdp-bouton svg { color: var(--dp-ink); }
.mcdp-txt { font-variant-numeric: tabular-nums; }
.mcdp-txt.vide { color: #a2a2bb; }
.mcdp-ouvert .mcdp-bouton { border-color: var(--dp-violet) !important; background-color: #fff !important; box-shadow: 0 0 0 4px rgba(109, 93, 252, .14) !important; }

/* ── Fenêtre du calendrier ────────────────────────────────────────── */
.mcdp-pop {
  position: absolute; z-index: 80; top: calc(100% + 8px); left: 0;
  width: 316px; max-width: calc(100vw - 32px); padding: 14px 14px 10px;
  background: #fff; border-radius: 24px;
  box-shadow: 0 0 0 1px var(--dp-line), 0 26px 60px -22px rgba(30, 27, 75, .5);
  animation: mcdpIn .16s ease-out;
}
.mcdp-pop.haut { top: auto; bottom: calc(100% - 18px); }
.mcdp-pop[hidden] { display: none; }
@keyframes mcdpIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── Calendrier (fenêtre et calendrier des jours) ─────────────────── */
.mcdp-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mcdp-titre { font: 800 16px/1 var(--dp-title); color: var(--dp-ink); text-transform: capitalize; letter-spacing: -.01em; }
.mcdp-nav {
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: #f4f4f9; color: var(--dp-ink); font: 700 20px/1 var(--dp-title); padding: 0 0 2px;
}
.mcdp-nav:hover { background: var(--dp-lav); }
.mcdp-sem { display: grid; grid-template-columns: repeat(7, 1fr); margin: 4px 0 2px; }
.mcdp-sem span { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--dp-muted); padding: 4px 0; }
.mcdp-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mcdp-j {
  position: relative; aspect-ratio: 1; min-width: 0; border: 0; border-radius: 12px; cursor: pointer; padding: 0;
  background: transparent; color: var(--dp-ink); font: 600 14px/1 var(--p-text, 'DM Sans', system-ui, sans-serif);
  font-variant-numeric: tabular-nums; transition: background-color .12s, color .12s;
}
.mcdp-j:hover { background: var(--dp-lav); }
.mcdp-j.we { color: var(--dp-muted); }
.mcdp-j.hors { color: #c4c4d6; }
.mcdp-j.auj { box-shadow: inset 0 0 0 2px var(--dp-coral); }
.mcdp-j.plage { background: var(--dp-lav); border-radius: 0; }
.mcdp-j.plage-d { background: var(--dp-lav); border-radius: 12px 0 0 12px; }
.mcdp-j.plage-f { background: var(--dp-lav); border-radius: 0 12px 12px 0; }
.mcdp-j.sel, .mcdp-j.sel:hover { background: var(--dp-ink); color: #fff; }
.mcdp-j.sel.plage-d { border-radius: 12px 0 0 12px; }
.mcdp-j.sel.plage-f { border-radius: 0 12px 12px 0; }
.mcdp-j.sel.auj { box-shadow: inset 0 0 0 2px var(--dp-coral), inset 0 0 0 4px var(--dp-ink); }
.mcdp-j:disabled { opacity: .3; cursor: not-allowed; background: transparent; }
.mcdp-j:focus-visible, .mcdp-nav:focus-visible, .mcdp-lien:focus-visible { outline: 3px solid var(--dp-violet); outline-offset: 1px; z-index: 1; }
.mcdp-pied {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f0f6;
}
.mcdp-lien {
  border: 0; background: none; padding: 4px 0; cursor: pointer;
  font: 700 13px var(--p-text, 'DM Sans', system-ui, sans-serif); color: var(--dp-ink);
  text-decoration: underline; text-decoration-color: var(--dp-coral); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.mcdp-pop .mcdp-pied { justify-content: space-between; }
.mcdp-compte { font-size: 13px; color: var(--dp-muted); margin-right: auto; }
.mcdp-compte b { color: var(--dp-ink); font-family: var(--dp-title); font-size: 15px; }

/* ── Choix « Période continue / Jours précis » ────────────────────── */
.gq-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gq-mode-opt {
  position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 12px 16px; border: 2px solid transparent; border-radius: 18px; background: #f4f4f9;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.gq-mode-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.gq-mode-opt::before {   /* pastille radio */
  content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #c9c9dc; background: #fff; transition: border .15s;
}
.gq-mode-opt span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gq-mode-opt b { font: 800 15px/1.2 var(--p-title, 'Outfit', sans-serif); color: var(--p-ink, #1e1b4b); }
.gq-mode-opt small { font-size: 12.5px; color: var(--p-muted, #6b6b8a); }
.gq-mode-opt:hover { background: #ededf6; }
.gq-mode-opt.selected { background: #fff; border-color: var(--p-ink, #1e1b4b); box-shadow: 0 4px 0 var(--p-ink, #1e1b4b); }
.gq-mode-opt.selected::before { border: 6px solid var(--p-ink, #1e1b4b); }
.gq-mode-opt:has(input:focus-visible) { outline: 3px solid var(--p-violet, #6d5dfc); outline-offset: 3px; }
.gq-bloc-continue[hidden], .gq-bloc-jours[hidden] { display: none !important; }
.gq-bloc-jours { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-start; }
.gq-bloc-jours .gq-cal { flex: 0 1 400px; }
.gq-jours-cote { flex: 1 1 200px; min-width: 0; padding-top: 6px; }
.gq-jours-astuce { margin: 10px 2px 0 !important; font-size: 12.5px !important; line-height: 1.5; color: var(--dp-muted) !important; }

/* ── Calendrier des jours précis ──────────────────────────────────── */
.gq-cal {
  padding: 16px 16px 12px; border-radius: 24px; background: #fff;
  border: 2px solid var(--dp-line); transition: border-color .15s, box-shadow .15s;
}
.gq-cal .mcdp-j { font-size: 15px; }
.gq-cal.invalid { border-color: var(--dp-coral-d); box-shadow: 0 0 0 4px rgba(232, 96, 63, .12); }
.gq-bloc-jours .gn-err { margin: 0 0 6px; }
.gq-jours-resume { margin: 0 2px !important; font-size: 14px !important; line-height: 1.5; color: #34345a !important; }
.gq-jours-resume b { color: var(--dp-ink); font-family: var(--dp-title); }

@media (max-width: 560px) {
  .gq-mode { grid-template-columns: 1fr; }
  .gq-bloc-jours .gq-cal { flex-basis: 100%; padding: 12px 10px 10px; }
  .mcdp-pop { width: min(316px, calc(100vw - 40px)); }
}
