@font-face {
  font-family: Raleway;
  src: url('/media/raleway.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Font Awesome 5 Free';
  src: url('/media/fa-solid-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

:root {
  color-scheme: light;
  font-family: Raleway, system-ui, sans-serif;
  line-height: 1.5;
  color: #33272b;
  background: #fff;
  --heading: #b06e76;
  --accent: #7f4651;
  --button-text: white;
  --muted: #604f55;
  --border: #e1cbd0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.page-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: white;
}
body:has(> .page-loading:not([hidden])) dialog[open],
body:has(> .page-loading:not([hidden])) dialog::backdrop {
  opacity: 0;
  pointer-events: none;
}
.page-loading-circle {
  position: relative;
  width: 80vmin;
  aspect-ratio: 1;
}
.page-loading-circle img {
  position: absolute;
  inset: 25%;
  width: 50%;
  height: 50%;
  object-fit: contain;
}
.page-loading-ring {
  width: 100%;
  height: 100%;
  border: 8px solid transparent;
  border-top-color: #25beeb;
  border-radius: 50%;
  animation: page-loading-turn 5s linear infinite;
}
@keyframes page-loading-turn {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .page-loading-ring { animation: none; }
}
.welcome {
  min-height: 100vh;
  padding: 10px 10px calc(6.5rem + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  background: var(--heading) url('/media/wedding-ceremony.webp') center / cover no-repeat;
  text-align: center;
}
.welcome-panel {
  width: min(100%, 1140px);
  min-height: 70vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  background: #ffffffeb;
  border-radius: 20px;
}
.welcome-logo { display: block; width: min(100%, 512px); margin: 0 auto; }
.welcome-logo img { display: block; width: min(34%, 7.5rem); height: auto; margin: 0 auto; }
.welcome h1 { margin: 0; color: var(--heading); font-size: 2.5rem; font-weight: 600; line-height: 1.3; }
#welcome .welcome-panel {
  width: min(100%, 31rem);
  min-height: 0;
  padding: clamp(1rem, 4vw, 1.65rem);
  gap: .55rem;
  background: #fffffff5;
}
#welcome .welcome-logo img { width: 3.5rem; }
#registration-title { color: var(--accent); font-size: 1.75rem; font-weight: 700; text-wrap: balance; }
.checklist-slogan { font-size: .875rem; font-weight: 500; }
.checklist-intro { position: relative; width: min(100%, 38rem); margin: .5rem 0; padding: 1rem; color: #33272b; }
#checklist-intro-close { position: absolute; inset: .4rem .4rem auto auto; width: 44px; padding: 0; font-size: 1.5rem; line-height: 1; }
.intro-image { display: block; width: min(100%, 19rem); height: clamp(5rem, 20vh, 9rem); object-fit: contain; margin: .75rem auto 0; }
.checklist-intro [data-intro-step] :is(h2, p) { text-align: center; margin: .5rem 0; }
.checklist-intro form { text-align: left; }
.checklist-intro form :is(label, input) { text-align: center; }
.checklist-intro .actions { justify-content: center; margin-top: .75rem; }
.checklist-intro-arrow { min-width: 44px; }
#checklist-intro-status:empty { position: absolute; }
#account-benefits { margin: 0; padding: .55rem .75rem; font-size: .9375rem; text-wrap: balance; }
.account-entry { display: grid; gap: .45rem; min-width: 0; }
.account-entry button { overflow-wrap: anywhere; }
.account-form { text-align: left; }
.account-form label { margin-top: .55rem; }
.account-form > button[type="submit"], #sign-in, #register-passkey, #password-register-choice button { width: 100%; }
#password-forgot { display: flex; justify-content: flex-end; font-size: .875rem; }
#password-start-help { margin: .35rem 0 .65rem; font-size: .875rem; }
#password-complete-cancel { display: flex; margin-inline: auto; }
.account-separator { display: flex; align-items: center; gap: .75rem; margin: .25rem 0 .45rem; color: var(--muted); font-size: .875rem; }
.account-separator::before, .account-separator::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.account-inline-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 650; }
.account-entry > .account-inline-link { justify-self: center; }
#register { display: grid; place-items: center; min-height: 44px; margin-top: .35rem; text-decoration: none; }
button.account-inline-link { background: transparent; padding-inline: .4rem; text-decoration: underline; }
.account-legal { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1rem; font-size: .8125rem; }
.account-legal .account-inline-link { font-weight: 400; }
#welcome-status { margin: 0; }
#welcome-status:empty { position: absolute; }
main {
  width: min(100%, 71.25rem);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.25rem);
}
:is(#espace, #information) { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
h2 { margin: 0; color: var(--accent); font-size: 1.43rem; }
h3 { margin: 1rem 0 .45rem; font-size: 1.05rem; }
p { margin: .6rem 0; }
.panel { min-width: 0; padding: clamp(.9rem, 3vw, 1.5rem); background: #ffffffa6; border: 1px solid var(--border); border-radius: 20px; }
.panel-heading, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.panel-heading { justify-content: space-between; margin-bottom: .85rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
label { display: block; margin: .7rem 0 .3rem; font-weight: 650; }
input, select, button { font: inherit; min-height: 44px; border: 1px solid #a67982; }
input, select { width: 100%; min-width: 0; padding: .42rem .65rem; background: white; color: inherit; border-radius: 5px; }
input[type='date'] { font-variant-numeric: lining-nums; }
button, #register { cursor: pointer; padding: .45rem .9rem; border-color: transparent; border-radius: 999px; background: var(--accent); color: var(--button-text); font-weight: 650; }
button.quiet { background: transparent; color: var(--accent); border-color: #a67982; }
button:not(:disabled, [aria-disabled='true']):hover, #register:hover { filter: brightness(.88); }
button:is(:disabled, [aria-disabled='true']) { cursor: wait; opacity: .62; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.muted { color: var(--muted); }
.planning-icon {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-style: normal;
  line-height: 1;
}
#account-status:empty, #email-settings-status:empty, #push-settings-status:empty, #wishlist-status:empty { margin: 0; }
#email-pending-address, #email-verified-address { overflow-wrap: anywhere; }
.notice, .recovery { margin-top: 1rem; padding: .75rem; border: 1px solid var(--border); border-radius: 12px; background: #fbf1f3; }
.welcome .recovery:not([open]) { margin: 0 auto; padding: 0; border: 0; background: transparent; }
.welcome .recovery summary { color: var(--accent); text-decoration: underline; }
.wedding-editor-dialog { width: min(27rem, 100%); height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 1rem; border: 0; border-left: 1px solid var(--border); color: var(--text); background: #fff; box-shadow: -12px 0 36px rgb(0 0 0 / 18%); }
.wedding-editor-dialog::backdrop { background: rgb(35 22 26 / 38%); }
.wedding-editor-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.wedding-editor-header h2 { margin: 0; font-size: 1.35rem; }
.wedding-editor-header form { margin: 0; }
.wedding-editor-close { width: 2.5rem; min-height: 2.5rem; padding: 0; font-size: 1.75rem; line-height: 1; }
.wedding-editor-form { display: grid; gap: 1rem; margin-top: 1rem; }
.wedding-editor-status { min-height: 1.25rem; margin: 1rem 0 0; }
.wedding-editor-status:empty { display: none; }
.wedding-editor-status.is-error { color: #a12c3c; }
.notice h3 { margin-top: 0; }
summary { cursor: pointer; padding: .42rem 0; min-height: 44px; }
.codes, .projects { margin: .55rem 0; padding-left: 1.3rem; overflow-wrap: anywhere; }
.codes { font-family: ui-monospace, monospace; font-size: .9rem; }
.projects li { margin: .4rem 0; }
.projects button { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.account-card { width: min(100%, 42rem); margin-inline: auto; padding: clamp(1rem, 4vw, 2rem); background: #fff; }
.account-profile { display: flex; align-items: center; gap: .75rem; padding-bottom: 1.25rem; }
.account-avatar { flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #fbf1f3; color: var(--accent); font-size: 1.35rem; }
.account-profile h1 { margin: 0; color: var(--accent); font-size: clamp(1.375rem, 6vw, 1.75rem); overflow-wrap: anywhere; }
.account-section { padding-bottom: 1rem; }
.account-primary { display: flex; align-items: center; gap: .7rem; min-height: 44px; margin-bottom: .75rem; padding: .65rem .9rem; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 650; }
.account-primary:hover { text-decoration: underline; }
#reset-wedding-dialog { width: min(28rem, calc(100% - 2rem)); margin: auto; }
#reset-wedding-dialog::backdrop { background: rgb(0 0 0 / .35); }
#push-settings-activate { width: 100%; }
#push-settings-activate[aria-disabled='true'] { opacity: .62; cursor: wait; }
.account-disclosure { border-top: 1px solid var(--border); }
.account-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .25rem; color: var(--accent); font-weight: 650; list-style: none; }
.account-disclosure > summary::-webkit-details-marker { display: none; }
.account-disclosure > summary::after { content: ''; flex: none; width: .45rem; height: .45rem; margin-right: .2rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.account-disclosure[open] > summary::after { transform: rotate(225deg); }
#fiche-prestataire > summary { scroll-margin-top: 1rem; }
:is(#directory-owner, #withdrawal-form) .actions { margin-top: .75rem; }
#directory-edit-title { font-size: 1.2rem; }
#directory-owner-view a { color: var(--accent); }
.account-disclosure-content { margin: 0; padding: .15rem .25rem .9rem; }
.account-links { display: grid; gap: .35rem; list-style: none; }
.account-links a { display: flex; align-items: center; gap: .7rem; min-height: 44px; padding: .45rem .65rem; border-radius: 8px; background: #fbf1f3; color: var(--accent); text-decoration: none; }
.account-links a:hover { text-decoration: underline; }
.account-email { margin-bottom: .75rem; padding: .75rem .85rem; border: 1px solid var(--border); border-radius: 10px; }
.account-email h2 { margin-bottom: .5rem; font-size: 1.05rem; }
.account-email .actions { margin-top: .5rem; }
.account-subscription-mode { margin: 0; color: var(--muted); font-size: .875rem; font-weight: 650; }
.account-email-row { display: flex; align-items: center; justify-content: space-between; gap: .55rem; }
.account-email-row > div { min-width: 0; }
.account-email-row p { margin: 0; overflow-wrap: anywhere; }
.account-email-label { color: var(--muted); font-size: .875rem; }
#email-settings-verified:not([hidden]) + #email-settings-pending {
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid var(--border);
}
.account-icon { display: inline-grid; place-items: center; flex: none; width: 44px; min-height: 44px; padding: 0; }
.account-logout { margin-inline-start: auto; }
.account-information { display: flex; flex-wrap: wrap; column-gap: .75rem; margin-top: 1rem; padding-top: .25rem; border-top: 1px solid var(--border); font-size: .8rem; }
.account-information a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); }
.error { color: #932d25; }

.wedding-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0 .75rem; }
#save-status:empty { position: absolute; }

.checklist { width: 100%; padding: 0; }
.checklist-content { width: min(100%, 54rem); margin-inline: auto; padding: clamp(1rem, 3vw, 2.25rem); }
.checklist-summary { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .3rem 1.25rem; margin-bottom: .75rem; }
.checklist-progress { flex: 1 1 20rem; }
.checklist-progress p { margin: 0 0 .35rem; }
.checklist-progress progress { display: block; width: 100%; height: .75rem; accent-color: var(--accent); }
#checklist-premium-status { flex: 0 1 auto; margin: 0; font-size: .875rem; font-weight: 650; }
.checklist-tools { display: flex; flex-wrap: wrap; align-items: center; column-gap: .75rem; }
.checklist-tools > :not([hidden], :empty) { margin: 0 0 .65rem; }
.checklist-conflict { margin-bottom: 1rem; }
#checklist-status:empty { position: absolute; }
#checklist-tasks { display: grid; gap: 1rem; }
.checklist-period { padding: 1rem; }
.checklist-period h2 { margin-bottom: .5rem; }
.checklist-task { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) 2.75rem; align-items: center; gap: .75rem; min-height: 44px; margin: 0; padding: .4rem 0; font-weight: 400; }
.checklist-task ~ .checklist-task { border-top: 1px solid var(--border); }
.checklist-task input { width: 1.25rem; min-height: 1.25rem; margin: 0; accent-color: var(--accent); }
.checklist-task-label { min-width: 0; margin: 0; color: inherit; font-weight: inherit; }
.checklist-task input:checked + label { color: var(--muted); text-decoration: line-through; }
.checklist-budget-button { display: grid; place-items: center; width: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; padding: 0; font-size: 1.05rem; }
.checklist-budget-button--has-action { position: relative; }
.checklist-budget-button--has-action::after { content: ''; position: absolute; inset: .375rem .375rem auto auto; width: .5rem; height: .5rem; border-radius: 50%; background: #b52c37; }
#checklist-task-action { margin-top: 1rem; color: var(--accent); }
.checklist-budget-field label { margin-top: 0; }
.checklist-budget-field textarea { display: block; width: 100%; min-height: 6rem; padding: .42rem .65rem; resize: vertical; font: inherit; color: inherit; background: #fff; border: 1px solid #a67982; border-radius: 5px; }

.offer-page { width: min(100%, 48rem); padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
.offer-page > p:first-child { margin-top: 0; }
.offer-page a { color: var(--accent); }
.offer-panel { display: grid; gap: .5rem; }
.offer-panel > * { margin: 0; }
.offer-panel h1 { margin: 0; color: var(--heading); font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; }
.offer-price { color: var(--accent); font-size: 2rem; font-weight: 700; }
.offer-price span { display: block; color: var(--muted); font-size: .95rem; font-weight: 650; }
.offer-benefits { display: grid; gap: .35rem; margin: .25rem 0; padding-left: 1.25rem; }
.offer-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .65rem; margin: .5rem 0; padding: 0; }
.offer-choices legend { margin-bottom: .15rem; font-weight: 700; }
.offer-choice { display: flex; gap: .75rem; align-items: flex-start; margin: 0; padding: .85rem; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.offer-choice:has(input:checked) { border-color: var(--accent); background: #fbf1f3; }
.offer-choice input { flex: none; width: 1.25rem; min-height: 1.25rem; margin: .2rem 0 0; accent-color: var(--accent); }
.offer-choice span { display: grid; gap: .2rem; }
.offer-choice small { color: var(--muted); font-weight: 400; }
.offer-choice-benefit { color: var(--accent); }
.offer-actions { margin-top: .25rem; }
.offer-action-link { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .9rem; border: 1px solid #a67982; border-radius: 999px; text-decoration: none; font-weight: 650; }
.offer-test { font-size: .875rem; }

@media (max-width: 767px) {
  .checklist-intro .wedding-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr)); align-items: end; }
}

@media (max-width: 767px) and (max-height: 700px) {
  .welcome .welcome-panel { min-height: 0; padding: 1rem; gap: .65rem; }
  .welcome-logo img { width: min(28%, 4.5rem); }
}
