
/* Le livre d'or utilise les mêmes composants et styles de badge que l'accueil. */
.echo-badge-button{position:fixed;z-index:90;bottom:16px;left:16px;border:1px solid #b69b72;border-radius:999px;padding:9px 16px;background:#fff8e9;color:#403a33;box-shadow:0 5px 18px #19232736;font:600 .78rem/1.2 system-ui,sans-serif}
.echo-badge-button[hidden]{display:none}
.echo-badge-button:hover{background:#f3e5cc}
.echo-badge-popover{box-sizing:border-box;width:min(880px,calc(100vw - 24px));max-height:calc(100svh - 110px);padding:22px;border:1px solid #c8bba6;border-radius:24px;background:#faf5ec;color:#283d40;box-shadow:0 22px 90px #0005;overflow:auto;overscroll-behavior:contain}
.echo-badge-popover::backdrop{background:#18272955}
.echo-badge-popover>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.echo-badge-popover h2{margin:0;font-size:1.65rem}
.echo-badge-popover>header>button{font:inherit;font-weight:700;border:1px solid currentColor;border-radius:999px;padding:9px 14px;color:inherit;background:transparent;cursor:pointer}
.echo-badge-popover:not([popover]){position:fixed;inset:48px 12px auto;margin:auto;z-index:150}
.echo-badge-toast{box-sizing:border-box;position:fixed;z-index:2147483600;right:20px;bottom:125px;display:flex;align-items:center;gap:13px;min-width:230px;max-width:min(92vw,360px);padding:0;border:1px solid #a88255;border-radius:15px;background:#fff9ed;color:#3b3832;box-shadow:0 12px 38px #18242c55;animation:echo-badge-arrive .3s ease-out both}
.echo-badge-toast-link{display:flex;align-items:center;gap:13px;width:100%;padding:10px 22px 10px 10px;box-sizing:border-box;color:inherit;text-decoration:none;border:0;background:transparent;text-align:left;border-radius:inherit;cursor:pointer}
.echo-badge-toast-link:hover{background:#f0e5d0}
.echo-badge-toast-link:focus-visible{outline:3px solid #846340;outline-offset:3px}
.echo-badge-toast-link>span:last-child{display:grid;gap:3px}
.echo-badge-toast small{font:700 .62rem/1.3 system-ui,sans-serif;letter-spacing:.15em;color:#876b4a}
.echo-badge-toast strong{font:600 1.05rem/1.2 Georgia,serif}
.echo-badge-emblem{box-sizing:border-box;position:relative;isolation:isolate;flex:none;display:grid;place-items:center;width:56px;height:56px;border:2px solid #b8976d;border-radius:50%;background:radial-gradient(circle at 40% 28%,#fffdf5,#ead7b7 78%);color:#353a39;box-shadow:inset 0 0 0 3px #fff6e6,0 2px 5px #4b382a22;overflow:hidden}
.echo-badge-icon{font:600 29px/1 Georgia,serif}
.echo-badge-keyboard{display:block;width:45px;height:42px}
.echo-badge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.echo-badge-card{display:flex;align-items:center;gap:18px;min-height:102px;padding:17px;border:1px solid #d8c6aa;border-radius:14px;background:#f9f0df}
.echo-badge-card>span:last-child{display:grid;gap:6px}
.echo-badge-card strong{font:600 1.1rem/1.2 Georgia,serif}
.echo-badge-card small{font:.8rem/1.35 system-ui,sans-serif;color:#6f6355}
.echo-badge-card--locked{background:#e9e8e3;color:#777a78}
.echo-badge-card--locked .echo-badge-emblem{filter:grayscale(1);opacity:.44}
.echo-badge-progress{margin:10px 0 24px;color:#6c5a42;font:600 .9rem/1.4 system-ui,sans-serif}
.echo-badge-privacy{font:.8rem/1.5 system-ui,sans-serif;color:#6f756e;margin:26px 0 18px}
.echo-badge-reset{border:1px solid #a88255;border-radius:12px;padding:10px 14px;background:transparent;color:inherit;cursor:pointer}
@keyframes echo-badge-arrive{from{opacity:0;transform:translateY(12px) scale(.95)}to{opacity:1;transform:none}}
@media(max-width:530px){.echo-badge-grid{grid-template-columns:1fr}.echo-badge-toast{bottom:100px;right:12px;max-width:calc(100vw - 24px)}}
@media(prefers-reduced-motion:reduce){.echo-badge-toast{animation:none}}

.echo-badge-card{min-width:0;box-sizing:border-box}.echo-badge-card>span:last-child{min-width:0;overflow-wrap:anywhere}.echo-badge-popover>header{background:#faf5ec}.echo-badge-secret-section{--ink:#283d40}.echo-badge-popover:focus-visible,.echo-badge-button:focus-visible{outline:3px solid #b8863b;outline-offset:3px}
html[data-theme=dark] .echo-badge-button,html[data-theme=dark] .echo-badge-toast{background:#28383a;color:#f5ead8;border-color:#ba9b6d}html[data-theme=dark] .echo-badge-popover{background:#203439;color:#f5ead8;border-color:#9e8b6b}html[data-theme=dark] .echo-badge-popover>header{background:#203439}html[data-theme=dark] .echo-badge-card{background:#35474a;color:#f5ead8;border-color:#8c7b65}html[data-theme=dark] .echo-badge-card small,html[data-theme=dark] .echo-badge-privacy{color:#d8cbb8}html[data-theme=dark] .echo-badge-card--locked{background:#303638;border-color:#535b5b;color:#a3a8a5}html[data-theme=dark] .echo-badge-card--locked small{color:#a3a8a5}html[data-theme=dark] .echo-badge-secret-section{--ink:#f5ead8}
