/* Route /#dossier · dist/styles/ceremonie-famille.css */
#df-ceremonie {
  --ce-ink: #162653;
  --ce-blue: #08227f;
  --ce-gold: #bd9545;
  --ce-line: #dcd4c4;
  --ce-paper: #fffdf7;
  color: var(--ce-ink);
}
.ce-layout { display: grid; grid-template-columns: minmax(210px,.57fr) minmax(0,1.4fr); border: 1px solid var(--ce-line); background: var(--ce-paper); }
.ce-rail { isolation: isolate; position: relative; overflow: hidden; padding: clamp(25px,3vw,44px); color: #fcf5df; background: linear-gradient(150deg,#101e58,#072780 67%,#0a1c5d); }
.ce-rail::after { content: ""; position: absolute; z-index: -1; bottom: -48px; right: -55%; width: 130%; height: 50%; border: 1px solid #c7a95877; border-radius: 50%; transform: rotate(-32deg); box-shadow: 0 8px 0 -7px #c7a9587a, 0 17px 0 -16px #c7a95860; }
.ce-rail-label, .ce-letterhead { font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.ce-rail-label { color: #f4d88f; }
.ce-rail-title { margin: 24px 0 36px; font: 400 clamp(32px,3.6vw,49px)/1.06 var(--serif,Georgia,serif); }
.ce-rail-title em { color: #f6d783; font: 400 1.25em/.95 var(--script,Georgia,serif); }
.ce-chapters { list-style: none; padding: 0; margin: 0; max-width: 245px; }
.ce-chapters li { padding: 13px 4px 13px 17px; border-left: 1px solid #7380b3; color: #dddfee; font-size: 14px; line-height: 1.45; }
.ce-chapters li[aria-current="step"] { border-left: 3px solid #e8bf64; padding-left: 15px; color: #fff4d5; font-weight: 600; }
.ce-sheet { padding: clamp(24px,3.7vw,52px); min-width: 0; }
.ce-progress { display: flex; align-items: center; gap: 18px; margin: 0 0 23px; }
.ce-progress p { margin: 0; white-space: nowrap; color: #706039; font-weight: 600; font-size: 14px; }
.ce-progress progress { max-width: 150px; width: 38%; height: 4px; border: 0; border-radius: 999px; background: #e6dfcf; color: #aa8239; appearance: none; }
.ce-progress progress::-webkit-progress-bar { border-radius: 999px; background: #e6dfcf; }
.ce-progress progress::-webkit-progress-value { border-radius: 999px; background: #aa8239; }
.ce-progress progress::-moz-progress-bar { border-radius: 999px; background: #aa8239; }
.ce-sheet h2, .ce-paper h2 { margin: 0 0 10px; font: 400 clamp(29px,3.75vw,48px)/1.08 var(--serif,Georgia,serif); letter-spacing: -.025em; color: var(--ce-ink); scroll-margin-top: 20px; }
.ce-sheet h2:focus, .ce-paper h2:focus { outline: none; }
.ce-hint, .ce-paper-lead { margin: 0; color: #49546b; font-size: 16px; line-height: 1.6; }
.ce-choices { min-inline-size: 0; margin: 22px 0; border: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.ce-choice { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--ce-line); border-radius: 3px; font-size: 15px; line-height: 1.35; background: white; cursor: pointer; }
.ce-choice input { accent-color: var(--ce-blue); margin: 0; width: 16px; height: 16px; flex: 0 0 auto; }
.ce-choice:has(:checked) { border-color: #56659a; background: #f1f3fa; }
.ce-note-label { display: block; margin: 17px 0 7px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.df-screen textarea.ce-note { display: block; padding: 10px 13px; width: 100%; max-width: 100%; border: 1px solid #b9b2a3; border-radius: 3px; background: #fff; color: var(--ce-ink); resize: vertical; font-size: 16px; line-height: 1.55; }
.ce-note::placeholder { color: #657083; opacity: 1; }
.ce-actions, .ce-result-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ce-actions { margin-top: 19px; justify-content: space-between; }
.ce-primary, .ce-secondary, .ce-back, .ce-edit { min-height: 42px; border-radius: 3px; font-weight: 600; cursor: pointer; }
.ce-primary, .ce-secondary { padding: 10px 18px; border: 1px solid var(--ce-blue); }
.df-screen button.ce-primary { color: #fff; background: var(--ce-blue); font-size: 15px; font-weight: 600; }
.ce-actions .ce-primary { margin-left: auto; }
.df-screen button.ce-secondary { color: var(--ce-blue); background: white; font-size: 15px; }
.df-screen button.ce-back, .df-screen button.ce-edit { color: #233d78; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; padding: 3px; }
.ce-sheet .ce-local { margin: 22px 0 0; padding-top: 13px; border-top: 1px solid var(--ce-line); color: #596073; font-size: 13px; line-height: 1.5; }
.ce-paper { width: min(880px,100%); margin: 0 auto; border: 1px solid #c9b680; border-top: 4px solid #ac833a; background: var(--ce-paper); padding: clamp(24px,5vw,66px); box-shadow: 0 7px 23px #2d261711; }
.ce-paper-head { border-bottom: 1px solid #bca770; padding-bottom: 21px; }
.ce-letterhead { color: #766031; margin: 0 0 13px; }
.ce-paper h2 { font: 400 clamp(44px,6vw,69px)/1.09 var(--script,Georgia,serif); color: #816029; }
.ce-paper-section { margin-top: 26px; }
.ce-paper-section h3 { margin: 0 0 4px; font: 400 26px/1.2 var(--serif,Georgia,serif); }
.ce-list { margin: 0; }
.ce-row { display: grid; grid-template-columns: minmax(130px,.52fr) minmax(0,1fr); gap: 14px; border-bottom: 1px solid #e1daca; padding: 9px 0; }
.ce-row dt { align-self: center; margin: 0; font-size: 14px; line-height: 1.6; font-weight: 600; }
.ce-row-value { display: flex; align-items: center; margin: 0; min-width: 0; gap: 10px; justify-content: space-between; }
.ce-row-value > span { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.55; }
.ce-pending { color: #605b50; font-style: italic; }
.ce-edit { flex: none; }
.ce-paper-foot { margin: 24px 0 0; color: #675d48; font-size: 13px; }
.ce-result-actions { justify-content: center; margin: 19px auto; }
@media (max-width: 720px) {
  .ce-layout { grid-template-columns: 1fr; }
  .ce-rail { padding: 14px 18px; }
  .ce-rail-label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 16px; }
  .ce-rail-title, .ce-chapters { display: none; }
  .ce-sheet { padding: 20px 17px; }
  .ce-choices { margin: 16px 0; }
  .ce-progress { margin-bottom: 14px; }
  .ce-paper { padding: 24px 18px; }
}
@media (max-width: 460px) {
  .ce-choices { grid-template-columns: 1fr; gap: 6px; }
  .ce-choice { min-height: 42px; padding: 7px 10px; }
  .ce-primary, .ce-secondary { padding: 9px 12px; }
  .ce-row { grid-template-columns: 1fr; gap: 0; padding: 10px 0; }
  .ce-result-actions { align-items: stretch; flex-direction: column; }
}
@media print {
  body.ce-printing { background: #fff !important; color: #13224c !important; }
  body.ce-printing > :not(main), body.ce-printing main > :not([data-screen="dossier"]),
  body.ce-printing .df-head, body.ce-printing .df-tabs-outer, body.ce-printing .df-content > :not(#df-ceremonie),
  body.ce-printing #ce-editor, body.ce-printing .ce-result-actions, body.ce-printing .ce-edit { display: none !important; }
  body.ce-printing .df-screen, body.ce-printing .df-content { width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; background: #fff; }
  body.ce-printing .ce-paper { border: 0; border-top: 1.5pt solid #947341; background: #fff; box-shadow: none; width: 100%; padding: 14pt 2pt 0; }
  body.ce-printing .ce-paper-head { padding-bottom: 9pt; }
  body.ce-printing .ce-letterhead, body.ce-printing .ce-paper-foot { font-size: 9pt; }
  body.ce-printing .ce-paper h2 { color: #604620; font-size: 34pt; }
  body.ce-printing .ce-paper-lead, body.ce-printing .ce-row dt, body.ce-printing .ce-row-value > span { font-size: 11pt; }
  body.ce-printing .ce-paper-section { margin: 12pt 0 0; }
  body.ce-printing .ce-paper-section h3 { font-size: 16pt; break-after: avoid; }
  body.ce-printing .ce-row { display: grid; grid-template-columns: 29% 1fr; gap: 10pt; padding: 5pt 0; break-inside: avoid; }
  body.ce-printing .ce-row-value { display: block; }
}
