/* Gestion des trois visuels éditoriaux de l’accueil. */
.treatment-card{position:relative;min-width:0}
.treatment-link{display:block}
.home-image-edit{position:absolute;z-index:3;top:12px;right:12px;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:1px solid rgba(255,255,255,.9);border-radius:50%;background:rgba(255,255,255,.96);color:var(--gold);box-shadow:0 3px 14px #151a1530;cursor:pointer}
.home-image-edit:hover{background:var(--gold);border-color:var(--gold);color:#fff}
.home-image-edit:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.home-image-edit svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.home-images-announcement:empty{display:none}
.home-images-announcement{margin:20px auto 0;color:var(--gold);font-size:14px;text-align:center}
.home-image-dialog{width:min(620px,calc(100% - 28px));max-width:620px;max-height:min(92vh,900px);margin:auto;padding:0;border:1px solid #d4c393;background:#fff;color:var(--ink);box-shadow:0 20px 70px #151a1533;overflow:auto}
.home-image-dialog::backdrop{background:#151a1577;backdrop-filter:blur(4px)}
.home-image-form{display:grid;gap:14px;padding:clamp(20px,5vw,32px)}
.home-image-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.home-image-heading .eyebrow{margin-bottom:8px}
.home-image-heading h2{font-size:clamp(27px,6vw,36px);line-height:1.15}
.home-image-close{flex:none;width:42px;height:42px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:28px;line-height:1}
.home-image-file-label{font-size:15px;font-weight:600}
.home-image-form input[type=file]{width:100%;min-height:48px;padding:9px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:14px}
.home-image-help{color:var(--muted);font-size:14px;line-height:1.65}
.home-image-crop{min-width:0;margin:0;padding:14px;border:1px solid var(--line)}
.home-image-crop legend{padding-inline:7px;color:var(--gold);font-size:14px;font-weight:600}
.home-image-preview{width:min(100%,360px);margin:8px auto 0;aspect-ratio:4/4.65;touch-action:none;cursor:grab;user-select:none;outline-offset:3px}
.home-image-preview:active{cursor:grabbing}
.home-image-preview img{width:100%;height:100%;object-fit:cover;pointer-events:none}
.home-image-tools{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:14px}
.home-image-tools button{min-width:44px;min-height:44px;padding:8px 13px;border:1px solid var(--line);background:#fff;color:var(--gold);font-size:17px}
.home-image-tools button:hover:not(:disabled){border-color:var(--gold);background:var(--gold);color:#fff}
.home-image-tools button:disabled{opacity:.5;cursor:not-allowed}
.home-image-tools output{min-width:58px;text-align:center;color:var(--muted);font-size:14px}
#home-image-reset{font-size:14px}
.home-image-status{min-height:1.5em;color:#775b25;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.home-image-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px}
.home-image-actions .button{min-height:46px}
.home-image-actions button:disabled{opacity:.6;cursor:not-allowed}
@media(max-width:700px){
  .home-image-edit{top:10px;right:10px;width:42px;height:42px}
  .home-image-preview{aspect-ratio:1/1.02}
  .home-image-actions{justify-content:stretch}
  .home-image-actions button{flex:1 1 145px}
}
