/* DolceRoutes — Billet doux mobile. Aucun fichier décoratif à télécharger. */
.dr-mobile-affiliation {
  --dr-ma-paper: var(--white, #fffdf9);
  --dr-ma-background: var(--paper, #f9f4ed);
  --dr-ma-ink: var(--ink, #1c1510);
  --dr-ma-muted: #695a4e;
  --dr-ma-rule: var(--rule, #d9cfc4);
  --dr-ma-terra: #a94416;
  --dr-ma-olive: #68744f;
  --dr-ma-fruit: #4a513a;
  display: none;
  position: fixed;
  z-index: 180;
  left: var(--dr-ma-left, 50%);
  bottom: max(calc(12px + env(safe-area-inset-bottom, 0px) + var(--dr-ma-viewport-bottom, 0px)), var(--dr-ma-toc-bottom, 0px));
  width: var(--dr-ma-width, min(520px, calc(100% - 24px)));
  max-width: calc(100% - 24px);
  transform: translateX(-50%);
  color: var(--dr-ma-ink);
  font: 400 13px/1.4 'DM Sans', Arial, sans-serif;
  pointer-events: none;
}
.dr-mobile-affiliation *, .dr-mobile-affiliation *::before, .dr-mobile-affiliation *::after { box-sizing: border-box; }
.dr-mobile-affiliation[hidden], .dr-mobile-affiliation [hidden] { display: none !important; }
.dr-mobile-affiliation.is-minimized {
  bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--dr-ma-viewport-bottom, 0px));
}
.dr-ma-ticket, .dr-ma-reopen { pointer-events: auto; }
.dr-ma-ticket {
  position: relative;
  width: 100%;
  max-height: var(--dr-ma-max-height, 30vh);
  padding: 0 14px;
  border: 1px solid var(--dr-ma-rule);
  border-radius: 4px;
  background: var(--dr-ma-paper);
  box-shadow: 0 4px 20px rgba(46, 31, 19, .13);
}
.dr-ma-ticket::before, .dr-ma-ticket::after {
  content: '';
  position: absolute;
  bottom: 51px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dr-ma-background);
  pointer-events: none;
}
.dr-ma-ticket::before { left: -5px; }
.dr-ma-ticket::after { right: -5px; }
.dr-ma-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; }
.dr-ma-signature { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dr-ma-kicker { color: var(--dr-ma-olive); font: 400 11px/1.35 'DM Sans', Arial, sans-serif; }
.dr-ma-mask {
  flex-shrink: 0;
  min-width: 54px;
  min-height: 44px;
  margin: -2px -3px -2px 0;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--dr-ma-muted);
  font: 400 12px/1.3 'DM Sans', Arial, sans-serif;
  cursor: pointer;
}
.dr-ma-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-width: 0;
  margin: 0 0 9px;
  padding: 0 2px;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--dr-ma-ink);
  font: 400 17px/1.22 'Playfair Display', Georgia, serif;
}
.dr-ma-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 6px 0; border-top: 1px dashed var(--dr-ma-rule); }
.dr-ma-provider { min-width: 0; overflow-wrap: anywhere; color: var(--dr-ma-muted); font: 400 11px/1.35 'DM Sans', Arial, sans-serif; }
.dr-ma-action {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  max-width: 100%;
  margin-left: auto;
  padding: 8px 10px;
  border: 0;
  border-radius: 3px;
  background: var(--dr-ma-terra);
  color: #fffdf9;
  font: 400 13px/1.35 'DM Sans', Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}
.dr-ma-action:hover { background: #8c3a10; color: #fffdf9; }
.dr-ma-arrow { flex-shrink: 0; font-size: 16px; line-height: 1; }
.dr-ma-action:focus-visible, .dr-ma-mask:focus-visible, .dr-ma-reopen:focus-visible { outline: 2px solid var(--dr-ma-terra); outline-offset: 3px; }
.dr-ma-olive { position: relative; display: block; width: 24px; height: 32px; flex-shrink: 0; transform: rotate(26deg); pointer-events: none; }
.dr-ma-olive::before { content: ''; position: absolute; left: 11px; bottom: 2px; width: 1px; height: 27px; background: var(--dr-ma-olive); }
.dr-ma-olive > span { position: absolute; left: 9px; width: 5px; height: 11px; border-radius: 100% 0 100% 0; background: var(--dr-ma-olive); transform-origin: 50% 100%; }
.dr-ma-olive > span:nth-child(1) { bottom: 23px; height: 8px; transform: rotate(8deg); }
.dr-ma-olive > span:nth-child(2) { bottom: 17px; transform: rotate(-52deg); }
.dr-ma-olive > span:nth-child(3) { bottom: 17px; transform: rotate(46deg); }
.dr-ma-olive > span:nth-child(4) { bottom: 7px; transform: rotate(-52deg); }
.dr-ma-olive > span:nth-child(5) { bottom: 7px; transform: rotate(46deg); }
.dr-ma-olive::after { content: ''; position: absolute; left: 12px; bottom: 16px; width: 3px; height: 4px; border-radius: 50%; background: var(--dr-ma-fruit); box-shadow: -3px 9px 0 var(--dr-ma-fruit); }
.dr-ma-olive--small { width: 21px; height: 26px; transform: rotate(26deg) scale(.75); }
.dr-ma-reopen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  max-width: 100%;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--dr-ma-rule);
  border-radius: 22px;
  background: var(--dr-ma-paper);
  color: #754631;
  box-shadow: 0 3px 12px rgba(46, 31, 19, .12);
  font: 400 13px/1.4 'DM Sans', Arial, sans-serif;
  cursor: pointer;
}
.dr-ma-chevron { width: 7px; height: 7px; margin: 3px 3px 0 4px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(-45deg); }
/* Même rangée que le Sommaire ; le billet ouvert reste au-dessus. */
.dr-mobile-affiliation.has-toc .dr-ma-reopen {
  height: 44px;
  max-width: calc(100% - var(--dr-ma-toc-width, 120px) - 10px);
  gap: 6px;
  padding: 4px 10px;
  line-height: 1.2;
  text-align: center;
}
.dr-mobile-affiliation.has-toc .dr-ma-chevron { flex-shrink: 0; }
@media (max-width: 640px) {
  body.dr-ma-shared-controls .mob-toc-btn {
    box-sizing: border-box;
    left: var(--dr-ma-row-left, 12px);
    bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--dr-ma-viewport-bottom, 0px));
    width: var(--dr-ma-toc-width, 120px);
    height: 44px;
    min-height: 44px;
    padding: 4px 12px;
    transform: none;
    justify-content: center;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0;
  }
  body.dr-ma-shared-controls .mob-toc-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
/* Écran bas : titre sur une ligne et deux commandes côte à côte. */
.dr-mobile-affiliation.is-compact .dr-ma-ticket { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 8px; padding: 8px 10px; }
.dr-mobile-affiliation.is-compact .dr-ma-heading, .dr-mobile-affiliation.is-compact .dr-ma-footer { display: contents; }
.dr-mobile-affiliation.is-compact .dr-ma-signature, .dr-mobile-affiliation.is-compact .dr-ma-provider { display: none; }
.dr-mobile-affiliation.is-compact .dr-ma-title { grid-column: 1 / -1; margin: 0; padding: 0; -webkit-line-clamp: 1; line-clamp: 1; }
.dr-mobile-affiliation.is-compact .dr-ma-mask { grid-column: 1; grid-row: 2; margin: 0; }
.dr-mobile-affiliation.is-compact .dr-ma-action { grid-column: 2; grid-row: 2; width: 100%; margin: 0; padding-left: 6px; padding-right: 6px; }
.dr-mobile-affiliation.is-compact .dr-ma-ticket::before, .dr-mobile-affiliation.is-compact .dr-ma-ticket::after { bottom: 49px; }
@media (max-width: 1024px) { .dr-mobile-affiliation { display: block; } }
@media (max-width: 360px) { .dr-ma-ticket { padding-left: 12px; padding-right: 12px; } }
