/* DevisMariage — sélection personnelle. Styles limités à cette fonctionnalité. */
.dm-sel,
.dm-sel *,
.dm-sel-dialog,
.dm-sel-dialog * { box-sizing: border-box; }

.dm-sel {
  container: dm-selection / inline-size;
  min-width: 0;
  margin-top: 24px;
  padding: clamp(18px, 2.4vw, 32px);
  scroll-margin-top: calc(var(--header-h, 78px) + 18px);
  border: 1px solid #e0d5cd;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffdfa 0%, #fcf8f3 100%);
  color: #30252b;
  box-shadow: 0 10px 38px rgba(55, 37, 46, .045);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

.dm-sel [hidden],
.dm-sel[hidden],
.dm-sel-dialog [hidden],
.dm-sel-dialog[hidden],
.dm-sel-shortcut[hidden],
.dm-sel-menu-count[hidden],
.dm-sel-profile-toggle[hidden],
.dm-sel-profile-link[hidden],
.dm-sel-dialog:not([open]) { display: none !important; }

.dm-sel :is(a, button, input, select, summary):focus-visible,
.dm-sel-dialog :is(a, button, input, select):focus-visible,
.dm-sel-shortcut:focus-visible {
  outline: 2px solid #7b4b5f;
  outline-offset: 4px;
}

.dm-sel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e9dfd6;
}
.dm-sel-head > div { min-width: 0; }
.dm-sel-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: #816142;
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.dm-sel-kicker::before { content: ""; width: 24px; height: 1px; background: #b99252; }
.dm-sel-title {
  margin: 0 0 12px;
  color: #4c2a3c;
  font-family: "Italiana", Georgia, serif;
  font-size: clamp(2rem, 3.1vw, 2.85rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.dm-sel-lead {
  max-width: 57ch;
  margin: 0;
  color: #76666d;
  font-size: .9rem;
  line-height: 1.7;
}

.dm-sel-button,
.dm-sel-buttons > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid #d8c9cd;
  border-radius: 8px;
  background: #fffdfa;
  color: #4c2a3c;
  font: 600 .82rem/1.4 "DM Sans", ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.dm-sel-button:hover,
.dm-sel-buttons > button:hover { background: #f4ecec; border-color: #9a6b79; color: #4c2a3c; }
.dm-sel-button-primary { background: #4c2a3c; border-color: #4c2a3c; color: #fff; }
.dm-sel-button-primary:hover { background: #35232d; border-color: #35232d; color: #fff; }
.dm-sel-head > .dm-sel-button { flex-shrink: 0; margin-top: 28px; }
.dm-sel-button svg,
.dm-sel-remove svg,
.dm-sel-close svg { width: 18px; height: 18px; flex: 0 0 18px; }
.dm-sel-button:disabled,
.dm-sel-buttons > button:disabled,
.dm-sel-remove:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }

.dm-sel-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 24px 0; }
.dm-sel-stat { min-width: 0; padding: 0 18px; border-left: 1px solid #e6dbd2; }
.dm-sel-stat:first-child { padding-left: 0; border-left: 0; }
.dm-sel-stat strong {
  display: block;
  margin-bottom: 4px;
  color: #4c2a3c;
  font-family: "Italiana", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.dm-sel-stat span { display: block; color: #76666d; font-size: .73rem; line-height: 1.5; }

.dm-sel-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid #e7ddd5;
  border-radius: 11px;
  background: #f7f2ec;
}
.dm-sel-field { display: grid; gap: 7px; min-width: 0; margin: 0; }
.dm-sel-field > span { color: #67545e; font-size: .7rem; font-weight: 600; line-height: 1.4; }
.dm-sel-field :is(input, select) {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dccfc7;
  border-radius: 7px;
  background: #fffdfa;
  color: #392c32;
  font: 400 .86rem/1.4 "DM Sans", ui-sans-serif, system-ui, sans-serif;
  box-shadow: none;
}
.dm-sel-field input::placeholder { color: #8a7a81; opacity: 1; }
.dm-sel-field select { padding-right: 26px; cursor: pointer; }
.dm-sel-search { min-width: 0; }
.dm-sel-search svg { width: 18px; height: 18px; }
.dm-sel-results { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.dm-sel-results > p { margin: 0; color: #76666d; font-size: .79rem; line-height: 1.6; }
.dm-sel-results .dm-sel-button { min-height: 40px; padding: 8px 12px; border-color: transparent; background: transparent; font-size: .76rem; }
.dm-sel-results .dm-sel-button:hover { border-color: #d8c9cd; background: #fffdfa; }

.dm-sel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; min-width: 0; }
.dm-sel-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2d7cf;
  border-radius: 12px;
  background: #fffdfa;
  box-shadow: 0 3px 12px rgba(55, 37, 46, .025);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.dm-sel-card:hover { transform: translateY(-2px); border-color: #c5a7b1; box-shadow: 0 12px 26px rgba(55, 37, 46, .075); }
.dm-sel-card:focus-within { border-color: #9a6b79; }
.dm-sel-photo { position: relative; flex-shrink: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #eee5dc; }
.dm-sel-photo > a { display: block; height: 100%; }
.dm-sel-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dm-sel-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 253, 249, .7);
  border-radius: 50%;
  background: rgba(255, 253, 249, .97);
  color: #6d3c52;
  font-size: 1.3rem;
  line-height: 1;
  box-shadow: 0 3px 13px rgba(41, 29, 34, .14);
  cursor: pointer;
}
.dm-sel-remove:hover { background: #f3e5eb; border-color: #d9b6c5; }
.dm-sel-unavailable {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 56px;
  background: linear-gradient(145deg, #f2eae2, #faf6f0);
  color: #806b72;
  font-size: .85rem;
  line-height: 1.6;
  text-align: center;
}
.dm-sel-cardbody { flex: 1; min-width: 0; padding: 22px 20px 16px; }
.dm-sel-category { margin: 0 0 9px; color: #8a6640; font-size: .64rem; font-weight: 700; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere; }
.dm-sel-name { margin: 0 0 10px; color: #3e2a34; font-family: "Italiana", Georgia, serif; font-size: 1.8rem; font-weight: 400; line-height: 1.13; letter-spacing: -.015em; overflow-wrap: anywhere; }
.dm-sel-name a { color: inherit; text-decoration: none; }
.dm-sel-name a:hover { color: #7b4b5f; }
.dm-sel-location { margin: 0 0 12px; color: #837078; font-size: .76rem; line-height: 1.5; overflow-wrap: anywhere; }
.dm-sel-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 16px; color: #776a6f; font-size: .82rem; line-height: 1.65; overflow-wrap: anywhere; }
.dm-sel-price { margin: 15px 0 0; padding-top: 12px; border-top: 1px solid #efe5dd; color: #4c2a3c; font-size: .85rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.dm-sel-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 20px 18px; }
.dm-sel-actions .dm-sel-button { min-height: 46px; padding: 10px 8px; font-size: .75rem; }
.dm-sel-cardbody .dm-sel-actions { padding: 16px 0 0; }
.dm-sel-compare-choice { display: flex; align-items: center; gap: 9px; min-height: 47px; margin: 0; padding: 12px 20px; border-top: 1px solid #eee3da; background: #faf6f0; color: #715866; font-size: .76rem; font-weight: 500; line-height: 1.5; cursor: pointer; }
.dm-sel-compare-choice input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: #6d3c52; cursor: pointer; }
.dm-sel-compare-choice:has(input:checked) { background: #f0e4e9; color: #4c2a3c; }
.dm-sel-compare-choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }

.dm-sel-empty { grid-column: 1 / -1; padding: clamp(30px, 5vw, 65px) 20px; border: 1px dashed #d9c9bf; border-radius: 12px; background: #fffcf8; text-align: center; }
.dm-sel-empty-icon { display: flex; align-items: center; justify-content: center; width: 74px; height: 74px; margin: 0 auto 20px; border: 1px solid #e2ceb1; border-radius: 50%; background: #faf0e3; color: #9c7644; font-size: 2.2rem; }
.dm-sel-empty-icon svg { width: 30px; height: 30px; }
.dm-sel-empty h3 { margin: 0 0 12px; color: #4c2a3c; font-family: "Italiana", Georgia, serif; font-size: 1.85rem; font-weight: 400; line-height: 1.2; }
.dm-sel-empty p { max-width: 48ch; margin: 0 auto 22px; color: #7a6870; font-size: .86rem; line-height: 1.75; }
.dm-sel-notice,
.dm-sel-error { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 14px 0; padding: 13px 16px; border: 1px solid #dacebe; border-radius: 9px; background: #f6eee2; color: #6b5035; font-size: .81rem; line-height: 1.6; }
.dm-sel-error { background: #fff2ee; border-color: #e8c0b5; color: #8b473b; }
.dm-sel-notice > p,
.dm-sel-error > p { margin: 0; }
.dm-sel-notice button:not(.dm-sel-button) { min-height: 36px; padding: 5px 8px; border: 0; background: transparent; color: #4c2a3c; font: 600 .8rem/1.4 "DM Sans", sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.dm-sel-status { margin: 17px 0 0; color: #8a7780; font-size: .72rem; line-height: 1.6; }

.dm-sel-comparebar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-top: 20px; padding: 17px 20px; border: 1px solid #5d414f; border-radius: 11px; background: #35232d; color: #fff; box-shadow: 0 12px 32px rgba(47, 27, 38, .2); }
.dm-sel-comparebar > p { margin: 0; color: #f2e6eb; font-size: .82rem; line-height: 1.6; }
.dm-sel-comparebar strong { color: #fff; font-weight: 600; }
.dm-sel-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dm-sel-comparebar .dm-sel-button,
.dm-sel-comparebar .dm-sel-buttons > button { border-color: #765b69; background: transparent; color: #fff; }
.dm-sel-comparebar .dm-sel-button:hover,
.dm-sel-comparebar .dm-sel-buttons > button:hover { background: #4f3442; border-color: #ac8c9b; }
.dm-sel-comparebar .dm-sel-button-primary,
.dm-sel-comparebar .dm-sel-buttons > .dm-sel-button-primary { border-color: #ead6aa; background: #ead6aa; color: #35232d; }
.dm-sel-comparebar .dm-sel-button-primary:hover,
.dm-sel-comparebar .dm-sel-buttons > .dm-sel-button-primary:hover { border-color: #f1e1c0; background: #f1e1c0; color: #35232d; }

.dm-sel-dialog { width: min(1120px, calc(100vw - 40px)); max-width: calc(100vw - 40px); max-height: 90vh; max-height: 90dvh; margin: auto; padding: 0; overflow: auto; border: 1px solid #d8c5ce; border-radius: 16px; background: #fffdfa; color: #392c32; font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif; box-shadow: 0 30px 100px rgba(29, 18, 24, .3); }
.dm-sel-dialog::backdrop { background: rgba(31, 21, 27, .68); backdrop-filter: blur(3px); }
.dm-sel-dialog-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-bottom: 1px solid #e5d8d0; background: #fffdfa; }
.dm-sel-dialog-head h2 { margin: 0; color: #4c2a3c; font-family: "Italiana", Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 400; line-height: 1.2; }
.dm-sel-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 9px; border: 1px solid #dfcfd5; border-radius: 50%; background: #f8f0f3; color: #4c2a3c; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.dm-sel-close:hover { background: #efe0e7; }
.dm-sel-table-wrap { width: 100%; max-height: 65vh; max-height: 65dvh; overflow: auto; overscroll-behavior: contain; }
.dm-sel-table { width: 100%; min-width: 660px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.dm-sel-table :is(th, td) { padding: 18px; border-right: 1px solid #ece1da; border-bottom: 1px solid #ece1da; color: #6e5e66; font-size: .82rem; font-weight: 400; line-height: 1.65; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.dm-sel-table :is(th, td):last-child { border-right: 0; }
.dm-sel-table tr:last-child > * { border-bottom: 0; }
.dm-sel-table thead th { background: #fbf5ef; color: #4c2a3c; font-family: "Italiana", Georgia, serif; font-size: 1.5rem; line-height: 1.2; }
.dm-sel-table :is(thead th:first-child, th[scope="row"]) { position: sticky; left: 0; z-index: 1; width: 145px; background: #f8f2eb; color: #795b6b; font-family: "DM Sans", sans-serif; font-size: .73rem; font-weight: 600; line-height: 1.6; }
.dm-sel-table tbody tr:nth-child(even) td { background: #fdf9f5; }
.dm-sel-table .dm-sel-button { font-size: .74rem; padding: 9px 10px; }
.dm-sel-compare-photo { display: block; width: 100%; height: 145px; margin-bottom: 14px; object-fit: cover; border-radius: 7px; background: #eee5dc; }
.dm-sel-dialog-foot { padding: 17px 24px; border-top: 1px solid #e5d8d0; background: #faf4ed; color: #826d78; font-size: .74rem; line-height: 1.7; }
.dm-sel-dialog-foot p { margin: 0; }

.dm-sel-skeleton { min-width: 0; min-height: 325px; overflow: hidden; border: 1px solid #e7dcd4; border-radius: 12px; background: #fffdfa; animation: dm-sel-pulse 1.8s ease-in-out infinite; }
.dm-sel-skeleton::before { content: ""; display: block; height: 175px; background: #ece3db; }
.dm-sel-skeleton::after { content: ""; display: block; height: 88px; margin: 23px; background: linear-gradient(#e8ded5, #e8ded5) 0 0 / 38% 8px no-repeat, linear-gradient(#ede5dd, #ede5dd) 0 23px / 78% 20px no-repeat, linear-gradient(#f0e9e2, #f0e9e2) 0 61px / 94% 10px no-repeat; }
.dm-sel-menu-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; min-height: 23px; margin-left: 6px; padding: 2px 7px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; background: rgba(255, 255, 255, .08); color: inherit; font-size: .7rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.4; }
.dm-sel-shortcut { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; max-width: 100%; margin-top: 7px; padding: 4px 0; color: #63374d; font: 600 .77rem/1.5 "DM Sans", ui-sans-serif, system-ui, sans-serif; text-decoration: underline; text-decoration-color: #c8aab6; text-underline-offset: 4px; }
.dm-sel-shortcut:hover { color: #35232d; text-decoration-color: #63374d; }
.dm-sel-profile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid #9a6b79;
  border-radius: 7px;
  background: #fffdfa;
  color: #4c2a3c;
  font: 600 .86rem/1.5 "DM Sans", ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  cursor: pointer;
}
.dm-sel-profile-toggle:hover { background: #f6edf1; border-color: #63374d; }
.dm-sel-profile-toggle[aria-pressed="true"] { background: #f0e3e9; border-color: #9a6b79; color: #4c2a3c; }
.dm-sel-profile-toggle:disabled { opacity: .5; cursor: not-allowed; }
.dm-sel-profile-toggle:focus-visible,
.dm-sel-profile-link:focus-visible { outline: 2px solid #7b4b5f; outline-offset: 4px; }
.dm-sel-profile-toggle svg { width: 18px; height: 18px; flex: 0 0 18px; }
.dm-sel-profile-link { display: flex; align-items: center; justify-content: center; min-height: 40px; max-width: 100%; margin-top: 5px; padding: 8px 0; color: #705361; font: 500 .79rem/1.5 "DM Sans", ui-sans-serif, system-ui, sans-serif; text-align: center; text-decoration: underline; text-decoration-color: #c8aab6; text-underline-offset: 4px; }
.dm-sel-profile-link:hover { color: #4c2a3c; text-decoration-color: #63374d; }

.dm-sel-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.dm-sel-photo > a { display: block; width: 100%; height: 100%; }
.dm-sel-price { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; }
.dm-sel-price > span { color: #76666d; font-size: .72rem; font-weight: 400; }
.dm-sel-results { flex-wrap: wrap; }
.dm-sel-comparebar > p > strong,
.dm-sel-comparebar > p > span { display: block; }

@keyframes dm-sel-pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

@container dm-selection (min-width: 1120px) {
  .dm-sel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container dm-selection (max-width: 760px) {
  .dm-sel-head { flex-direction: column; gap: 18px; }
  .dm-sel-head > .dm-sel-button { margin-top: 0; }
  .dm-sel-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-sel-search { grid-column: 1 / -1; }
}
@container dm-selection (max-width: 580px) {
  .dm-sel-grid { grid-template-columns: minmax(0, 1fr); }
  .dm-sel-cardbody { padding: 22px 20px 17px; }
  .dm-sel-comparebar { align-items: flex-start; }
  .dm-sel-comparebar .dm-sel-buttons { width: 100%; }
  .dm-sel-comparebar .dm-sel-buttons > * { flex: 1; }
}
@media (max-width: 740px) {
  .dm-sel { padding: 18px 14px; margin-top: 20px; border-radius: 13px; }
  .dm-sel-head { flex-direction: column; gap: 18px; padding-bottom: 22px; }
  .dm-sel-head > .dm-sel-button { width: 100%; margin-top: 0; }
  .dm-sel-title { font-size: 2.1rem; }
  .dm-sel-lead { font-size: .84rem; }
  .dm-sel-stat { padding-inline: 12px; }
  .dm-sel-stat strong { font-size: 1.9rem; }
  .dm-sel-stat span { font-size: .68rem; }
  .dm-sel-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 13px; }
  .dm-sel-search { grid-column: 1 / -1; }
  .dm-sel-field :is(input, select) { font-size: 16px; }
  .dm-sel-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dm-sel-results { gap: 8px; padding-block: 15px; }
  .dm-sel-results > p { font-size: .73rem; }
  .dm-sel-results .dm-sel-button { font-size: .72rem; padding-inline: 5px; }
  .dm-sel-comparebar { bottom: 9px; gap: 12px; padding: 15px; }
  .dm-sel-comparebar .dm-sel-buttons { width: 100%; }
  .dm-sel-comparebar .dm-sel-buttons > * { flex: 1; }
  .dm-sel-dialog { width: calc(100vw - 20px); max-width: calc(100vw - 20px); border-radius: 12px; }
  .dm-sel-dialog-head { padding: 16px; }
  .dm-sel-dialog-foot { padding: 15px 16px; }
  .dm-sel-table :is(th, td) { padding: 14px; }
  .dm-sel-table :is(thead th:first-child, th[scope="row"]) { width: 110px; }
  .dm-sel-compare-photo { height: 120px; }
}
@container dm-selection (max-width: 420px) {
  .dm-sel-toolbar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .dm-sel-toolbar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 370px) {
  .dm-sel { padding-inline: 12px; }
  .dm-sel-toolbar { grid-template-columns: minmax(0, 1fr); }
  .dm-sel-stat { padding-inline: 9px; }
  .dm-sel-stat span { font-size: .63rem; }
  .dm-sel-cardbody { padding-inline: 16px; }
  .dm-sel-actions { padding-inline: 16px; }
  .dm-sel-compare-choice { padding-inline: 16px; }
  .dm-sel-name { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-sel-skeleton { animation: none; }
  .dm-sel-card,
  .dm-sel-button,
  .dm-sel-buttons > button { transition: none; }
  .dm-sel-card:hover { transform: none; }
  .dm-sel-skeleton { animation: none; opacity: .85; }
}
