/* assets/font-preview.css - Aperçu des 29 polices EB : version autonome et futur composant HTMX. */
.eb-font-preview-page{min-height:60vh}
.eb-font-preview{--ebfp-red:#b92326;--ebfp-dark:#28211b;--ebfp-border:#e9e9e9;--ebfp-muted:#757575;max-width:1190px;margin:auto;padding:25px 20px 42px;color:var(--ebfp-dark);font:15px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;box-sizing:border-box}
.eb-font-preview *, .eb-font-preview *::before, .eb-font-preview *::after{box-sizing:border-box}
.eb-font-preview button,.eb-font-preview textarea{font:inherit}
.eb-font-preview button{cursor:pointer}
.eb-font-preview__masthead{text-align:center;margin:0 0 20px}
.eb-font-preview__brand{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--ebfp-red)}
.eb-font-preview__brand::before,.eb-font-preview__brand::after{content:"";height:1px;width:35px;background:var(--ebfp-red);opacity:.55}
.eb-font-preview__masthead h1{font:700 clamp(25px,4vw,34px)/1.1 Georgia,serif;margin:8px 0;color:var(--ebfp-dark)}
.eb-font-preview__masthead p{color:var(--ebfp-muted);font-size:14px;margin:0}
.eb-font-preview__notice{width:100%;margin:0 0 18px;padding:15px 18px;border:1px solid #dbdbdb;background:#faf7f4;border-radius:10px;color:#505050;font-size:13px;line-height:1.55; text-align:center}
.eb-font-preview__notice strong{font-weight:800}
.eb-font-preview__layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:start;gap:18px}
.eb-font-preview__panel{background:#fff;border:1px solid var(--ebfp-border);border-radius:17px;box-shadow:0 8px 25px #2f1c0b08;min-width:0}
.eb-font-preview__preview{position:sticky;top:95px;padding:15px}
.eb-font-preview__panel h2{font-size:17px;font-weight:750;line-height:1.3;margin:0 0 8px;color:var(--ebfp-dark)}
.eb-font-preview__photo{display:flex;justify-content:center;align-items:center;overflow:hidden}
.eb-font-preview__photo canvas{display:block;width:auto;height:auto;max-height:min(65vh,680px);max-width:100%;aspect-ratio:2/3;border-radius:6px;background:#e7e7e7}
.eb-font-preview__selected{font-size:13px;font-weight:750;margin-top:12px}
.eb-font-preview__selected strong{color:var(--ebfp-red)}
.eb-font-preview__status{min-height:21px;font-size:12px;color:var(--ebfp-muted);margin:8px 0 0}
.eb-font-preview__status.is-error{color:#b42323}
.eb-font-preview__controls{padding:17px 18px 12px}
.eb-font-preview__controls label{display:block;font-size:13px;font-weight:800;margin:0 0 6px}
.eb-font-preview__controls textarea{display:block;width:100%;border:1px solid #d6d6d6;border-radius:9px;padding:12px;resize:vertical;min-height:70px;line-height:1.4;font-size:16px;background:#fff;color:var(--ebfp-dark)}
.eb-font-preview__controls textarea:focus-visible,.eb-font-preview__font-choice:focus-visible{outline:2px solid #d7a5a5;outline-offset:2px}
.eb-font-preview__controls p{font-size:12px;color:var(--ebfp-muted);margin:7px 0 0}
.eb-font-preview__type-heading{border-top:1px solid var(--ebfp-border);padding:14px 18px 9px}
.eb-font-preview__type-heading h2{font-size:16px;margin:0}
.eb-font-preview__type-heading p{margin:3px 0 0;font-size:12px;color:var(--ebfp-muted)}
.eb-font-preview__font-grid{padding:0 12px 15px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:auto;overscroll-behavior:contain}
.eb-font-preview__font-choice{width:100%;min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:5px;padding:8px;background:#fff;border:1px solid #e6e6e6;border-radius:10px;text-align:left;color:#1e1915;transition:background .12s,border-color .12s}
.eb-font-preview__font-choice:hover{border-color:#cb9191;background:#fffafa}
.eb-font-preview__font-choice[aria-pressed="true"]{border:2px solid var(--ebfp-red);padding:7px;background:#fff5f4}
.eb-font-preview__font-number{color:var(--ebfp-red);font-weight:800;font-size:14px}
.eb-font-preview__font-sample{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:24px;line-height:1.12;display:block}
.eb-font-preview__font-choice[aria-pressed="true"] .eb-font-preview__font-number{font-size:15px}
@media(max-width:860px){.eb-font-preview__layout{grid-template-columns:1fr}.eb-font-preview__preview{position:static}.eb-font-preview__photo canvas{max-height:490px}.eb-font-preview__font-grid{max-height:none;max-height:430px;}}
@media(max-width:520px){.eb-font-preview{padding:15px 10px 30px}.eb-font-preview__preview{padding:12px}.eb-font-preview__controls{padding:13px}.eb-font-preview__font-grid{padding:0 9px 12px;max-height:430px;}.eb-font-preview__font-choice{grid-template-columns:28px minmax(0,1fr);padding:6px;min-height:58px}.eb-font-preview__font-sample{font-size:20px}.eb-font-preview__font-choice[aria-pressed="true"]{padding:5px}}
