.fr-language { color: #f1deb9; text-underline-offset: .22em; }
dialog { width: min(620px, calc(100% - 24px)); max-height: 88dvh; margin: auto; padding: clamp(20px, 4vw, 38px); border: 1px solid #cba966; border-radius: 8px; color: #35101a; background: #fcfaf6; overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #210911ae; }
body:has(dialog[open]) { overflow: hidden; }
dialog h2 { font-size: clamp(1.55rem, 4vw, 2rem); margin: 0 32px 10px 0; line-height: 1.15; }
dialog p { line-height: 1.45; }
dialog .fr-close { position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; color: #461323; font-size: 30px; }
dialog fieldset { min-width: 0; border: 0; padding: 0; }
dialog legend { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
dialog [hidden] { display: none !important; }
dialog label { display: grid; gap: 5px; margin: 6px 0 13px; font-weight: 600; font-size: .94rem; }
dialog :is(input:not([type=checkbox]), select, textarea) { width: 100%; min-width: 0; border: 1px solid #b9a9aa; padding: 10px; border-radius: 4px; background: white; color: #361520; font: inherit; font-weight: normal; font-size: 1rem; }
dialog input:disabled { background: #eee7e1; }
dialog .fr-check { display: flex; align-items: baseline; gap: .6em; font-weight: 400; }
.fr-check input { accent-color: #511323; flex: none; }
.fr-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 17px; }
.fr-actions .button, .fr-choices .button { min-height: 43px; }
.fr-choices { display: grid; gap: 12px; margin-top: 16px; }
.fr-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
#etape { margin: 14px 0 8px; font-size: .85rem; color: #634c44; }
#recap { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 8px 0 20px; }
#recap dt { font-weight: bold; }
#recap dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
dialog summary { cursor: pointer; margin-bottom: 10px; }
#erreur { color: #8a1736; }
@media(max-width:600px) { .fr-grid { grid-template-columns: 1fr; } #recap { grid-template-columns: 1fr; } }
@media(max-width:440px) { .fr-language { font-size: .78rem; } .header-actions { gap: 10px; } }
