/* Savoy.fr · Retrouver · navigation personnelle, édition 2026-10-13 */
.refonte-header .savoy-ret-trigger,
.site-header .savoy-ret-trigger {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  align-self:center;flex:0 0 auto;min-width:40px;height:42px;
  border:0;border-radius:999px;padding:0 12px;
  background:transparent;color:#234b61;
  font:650 12.5px/1 system-ui,-apple-system,sans-serif;
  text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:background .16s ease,color .16s ease;
}
.refonte-header .savoy-ret-trigger:hover,
.refonte-header .savoy-ret-trigger[aria-expanded="true"],
.site-header .savoy-ret-trigger:hover {
  background:#f2ebe0;color:#183f59;
}
.savoy-ret-trigger:focus-visible,.savoy-ret-panel :focus-visible {
  outline:2px solid #b07b38;outline-offset:3px;
}
.savoy-ret-glyph{font:400 27px/1 Georgia,serif;transform:translateY(-1px)}
.savoy-ret-panel,
.savoy-ret-panel *{box-sizing:border-box}
.savoy-ret-panel[hidden]{display:none!important}
.savoy-ret-panel{
  --svr-ink:#234352;--svr-muted:#687777;--svr-line:#e3dbcf;
  position:fixed;z-index:11000;
  width:min(420px,calc(100vw - 24px));max-height:min(710px,calc(100dvh - 95px));
  padding:23px 24px 17px;overflow:auto;overscroll-behavior:contain;
  background:#fffdf9;color:var(--svr-ink);
  border:1px solid #ded4c4;border-radius:17px;
  box-shadow:0 17px 52px rgba(24,52,62,.18);
  font-family:system-ui,-apple-system,sans-serif;
  font-size:14px;line-height:1.45;
}
.savoy-ret-panel-heading{display:flex;align-items:start;justify-content:space-between;gap:14px}
.savoy-ret-kicker{display:block;color:#95713f;letter-spacing:.07em;text-transform:uppercase;font-size:10px;font-weight:750}
.savoy-ret-panel h2{
  margin:5px 0 0;font:500 30px/1.1 "Iowan Old Style",Palatino,Georgia,serif;
  color:#20485e;letter-spacing:-.028em
}
.savoy-ret-close{
  flex:0 0 32px;display:grid;place-items:center;
  width:32px;height:32px;margin:-5px -7px 0 0;
  border:0;border-radius:50%;background:transparent;color:#536875;
  font:400 26px/1 Georgia,serif;cursor:pointer
}
.savoy-ret-close:hover{background:#f1ece4}
.savoy-ret-intro{margin:10px 0 17px;color:#596b70;font:400 14px/1.55 "Iowan Old Style",Palatino,Georgia,serif}
.savoy-ret-star{
  display:block;width:100%;padding:11px 12px;text-align:left;
  border:1px solid #d8c8a8;border-radius:10px;
  color:#244b60;background:#fffaf0;
  font:650 13px/1.3 system-ui,sans-serif;cursor:pointer;
}
.savoy-ret-star[aria-pressed="true"]{background:#f9efda}
.savoy-ret-star[disabled]{opacity:.55;cursor:default}
.savoy-ret-panel h3{
  margin:22px 0 8px;padding-bottom:8px;border-bottom:1px solid var(--svr-line);
  color:#25485a;font:500 20px/1.2 "Iowan Old Style",Palatino,Georgia,serif
}
.savoy-ret-list{display:grid;gap:3px}
.savoy-ret-item{display:flex;align-items:center;gap:8px;min-height:39px;padding:2px 0}
.savoy-ret-link{
  display:block;flex:1 1 auto;min-width:0;padding:7px 0;
  color:#23475b;text-decoration:none;
  overflow-wrap:anywhere;font:540 13px/1.4 system-ui,sans-serif
}
.savoy-ret-link:hover{text-decoration:underline;text-underline-offset:3px}
.savoy-ret-item-action{
  flex:0 0 auto;border:1px solid #e2d8ca;border-radius:8px;
  background:#fffdf9;color:#6a665c;cursor:pointer;
  padding:6px 8px;font:550 10.5px/1.2 system-ui,sans-serif
}
.savoy-ret-item-action:hover{background:#f5f0e7;color:#234352}
.savoy-ret-empty{margin:2px 0 1px;color:var(--svr-muted);font-size:12.5px;line-height:1.45}
.savoy-ret-opt{
  display:flex;align-items:flex-start;gap:9px;
  margin:10px 0;color:#425b65;font:500 12px/1.45 system-ui,sans-serif;cursor:pointer
}
.savoy-ret-opt input{flex:0 0 auto;width:16px;height:16px;margin:1px 0 0;accent-color:#315b6c}
.savoy-ret-footer{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;flex-wrap:wrap;margin-top:21px;padding-top:13px;border-top:1px solid var(--svr-line)
}
.savoy-ret-footer a,.savoy-ret-footer button{
  color:#39576a;font:600 11px/1.3 system-ui,sans-serif;
  text-decoration:underline;text-underline-offset:3px;
}
.savoy-ret-footer button{border:0;background:transparent;cursor:pointer;padding:5px}
.savoy-ret-note{margin:11px 0 0;color:#7b7f7b;font:400 10.5px/1.5 system-ui,sans-serif}
@media(max-width:1350px){
  .refonte-header .savoy-ret-trigger{padding:0 7px}
  .refonte-header .savoy-ret-label{display:none}
}
@media(max-width:780px){
  .refonte-header .savoy-ret-trigger{width:37px;min-width:37px;height:40px;padding:0}
  .refonte-header .savoy-ret-glyph{font-size:25px}
  .savoy-ret-panel{padding:20px 18px 15px;max-height:calc(100dvh - 96px);border-radius:14px}
  .savoy-ret-panel h2{font-size:28px}
}
@media(prefers-reduced-motion:reduce){
  .savoy-ret-trigger{transition:none!important}
}

/* Retrouver v2 — hiérarchie éditoriale, lecture et compte séparés */
.savoy-ret-panel {
  width:min(430px,calc(100vw - 24px));
  background:linear-gradient(155deg,#fffdf9 0%,#fffefa 67%,#faf6ed 100%);
  border-color:#e2d4bb;
  box-shadow:0 24px 68px rgba(26,48,55,.16),0 2px 12px rgba(26,48,55,.055);
}
.savoy-ret-panel-heading{padding-bottom:2px}
.savoy-ret-panel h2{
  font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  font-weight:500;letter-spacing:-.035em
}
.savoy-ret-intro{margin-bottom:20px;font-size:15px;color:#5c6867}
.savoy-ret-panel h3{
  margin:22px 0 10px;padding-bottom:9px;
  font:500 19px/1.2 "Iowan Old Style",Palatino,Georgia,serif;
  border-bottom:1px solid #e9dfd1
}
.savoy-ret-section-intro{
  margin:-3px 0 8px;color:#79807c;font:400 11px/1.55 system-ui,sans-serif
}
.savoy-ret-resume{margin:15px 0 0}
.savoy-ret-resume[hidden]{display:none!important}
.savoy-ret-resume h3{margin-top:21px}
.savoy-ret-resume .savoy-ret-item {
  padding:12px 13px;margin-top:9px;border:1px solid #dacdad;
  background:linear-gradient(130deg,#fff9ed,#f8f2e7);
  border-radius:10px
}
.savoy-ret-resume .savoy-ret-entry-title{font-size:14px}
.savoy-ret-item{min-height:44px;gap:10px}
.savoy-ret-link{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:7px 0}
.savoy-ret-entry-title{font:570 13px/1.38 system-ui,-apple-system,sans-serif;overflow-wrap:anywhere}
.savoy-ret-category{color:#85755e;font:550 10px/1.25 system-ui,sans-serif;letter-spacing:.012em}
.savoy-ret-item-action{min-width:39px;min-height:32px;font-size:13px;text-decoration:none}
.savoy-ret-item-action[data-action="remove"]{font-size:11px}
.savoy-ret-account {
  margin-top:19px;padding:0 0 1px;border-top:1px solid #e7dccb
}
.savoy-ret-account h3{margin-top:16px}
.savoy-ret-account-button{
  width:100%;margin:4px 0 0;padding:10px 12px;
  text-align:center;background:#f6f1e8;color:#315268;
  border:1px solid #e1d6c7;border-radius:9px;
  font:650 12px/1.35 system-ui,sans-serif;cursor:pointer
}
.savoy-ret-account-button:hover,.savoy-ret-account-button:focus-visible{
  background:#eee4d5
}
.savoy-ret-account-button:disabled{opacity:.6;cursor:wait}
.savoy-ret-account-message{margin:8px 0 0;color:#5c686d;font-size:11px;line-height:1.45}
.savoy-ret-account-message:empty{display:none}
.savoy-ret-account .savoy-ret-list{margin-top:7px}
.savoy-ret-footer{margin-top:16px}
.savoy-ret-panel .savoy-ret-opt{margin:12px 0}
@media (max-width:780px) {
  .savoy-ret-panel{
    width:calc(100vw - 24px);max-height:calc(100dvh - 90px);
    padding:19px 18px 15px
  }
  .savoy-ret-panel h3{font-size:18px}
  .savoy-ret-resume .savoy-ret-item{padding:9px 11px}
  .savoy-ret-intro{font-size:14px}
}
@media (prefers-contrast:more) {
  .savoy-ret-panel{background:#fff;border-color:#222}
  .savoy-ret-category,.savoy-ret-section-intro{color:#434343}
}

/* Retrouver — synchronisation des pages conservées, opt-in explicite */
.savoy-ret-sync{margin:11px 0 2px;padding:12px 13px;border-radius:10px;
  border:1px solid #e5d9c8;background:#faf6ee}
.savoy-ret-sync-status{margin:0 0 9px;color:#55686e;
  font:500 11px/1.55 system-ui,-apple-system,sans-serif}
.savoy-ret-sync-action,.savoy-ret-sync-import{
  display:block;width:100%;min-height:38px;margin:0;
  padding:9px 10px;border:1px solid #cbbda4;border-radius:9px;
  background:#fffcf6;color:#244d64;text-align:center;
  font:600 12px/1.3 system-ui,-apple-system,sans-serif;cursor:pointer
}
.savoy-ret-sync-action:hover,.savoy-ret-sync-import:hover{background:#f2e8d9}
.savoy-ret-sync-action:disabled,.savoy-ret-sync-import:disabled{opacity:.55;cursor:wait}
.savoy-ret-sync-import{margin-top:8px;background:transparent;border-color:#e0d5c5}
.savoy-ret-sync-action[hidden],.savoy-ret-sync-import[hidden]{display:none!important}
