/* Harry Débarras — champ « photos » du formulaire de contact Divi
   Couleurs modifiables ici (ou dans « CSS supplémentaire ») */
.hd-pf{
  --hd-pf-accent:#748468;      /* sauge foncé : icône, progression, coches */
  --hd-pf-line:#9FAD95;        /* bordure pointillée */
  --hd-pf-bg:#F5F5F5;          /* fond de la zone */
  --hd-pf-tint:#EAF0E6;        /* fond au survol */
  --hd-pf-ink:#1E1E1A;
  --hd-pf-soft:#5B5A50;
  --hd-pf-error:#9A3B25;
  clear:both; width:100%; margin:0 0 22px; padding:0; font-family:inherit; text-align:left; color:var(--hd-pf-ink);
}
.hd-pf *, .hd-pf *::before, .hd-pf *::after{ box-sizing:border-box; }
.hd-pf p{ margin:0; padding:0; }
.hd-pf .hd-pf-title{ margin:0 0 10px; font-weight:600; font-size:inherit; line-height:1.4; color:inherit; }
.hd-pf .hd-pf-title span{ font-weight:400; opacity:0.7; }
.hd-pf .hd-pf-sr{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.hd-pf .hd-pf-drop{
  position:relative; display:flex; align-items:center; gap:14px; width:100%; margin:0; padding:16px 18px; cursor:pointer;
  border:1.5px dashed var(--hd-pf-line); border-radius:12px; background:var(--hd-pf-bg);
  transition:background 0.2s ease, border-color 0.2s ease;
}
.hd-pf .hd-pf-drop:hover, .hd-pf .hd-pf-drop.hd-pf-over{ background:var(--hd-pf-tint); border-color:var(--hd-pf-accent); }
.hd-pf .hd-pf-drop:focus-within{ outline:3px solid var(--hd-pf-accent); outline-offset:3px; }
.hd-pf .hd-pf-drop.hd-pf-full{ opacity:0.55; cursor:not-allowed; }
.hd-pf .hd-pf-ico{ flex:none; width:42px; height:42px; border-radius:50%; background:var(--hd-pf-accent); color:#fff; display:flex; align-items:center; justify-content:center; }
.hd-pf .hd-pf-txt{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.hd-pf .hd-pf-txt strong{ font-weight:600; font-size:0.95em; line-height:1.3; color:var(--hd-pf-ink); }
.hd-pf .hd-pf-txt span{ font-size:0.85em; line-height:1.4; color:var(--hd-pf-soft); }

.hd-pf .hd-pf-grid{ list-style:none; margin:14px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(92px,1fr)); gap:10px; }
.hd-pf .hd-pf-grid:empty{ display:none; }
.hd-pf .hd-pf-item{ position:relative; aspect-ratio:1 / 1; margin:0; padding:0; border-radius:12px; overflow:hidden; border:1px solid #ECE6DC; background:var(--hd-pf-bg); list-style:none; }
.hd-pf .hd-pf-item img{ display:block; width:100%; height:100%; max-width:none; object-fit:cover; }
.hd-pf .hd-pf-item.hd-pf-up img{ opacity:0.65; }
.hd-pf .hd-pf-x{
  position:absolute; top:6px; right:6px; z-index:2; width:26px; height:26px; margin:0; padding:0; border:0; border-radius:50%;
  background:rgba(255,255,255,0.95); color:var(--hd-pf-ink); cursor:pointer; display:flex; align-items:center; justify-content:center;
  box-shadow:0 1px 6px rgba(0,0,0,0.25); -webkit-appearance:none; appearance:none; line-height:1;
}
.hd-pf .hd-pf-x:hover{ background:var(--hd-pf-ink); color:#fff; }
.hd-pf .hd-pf-bar{ position:absolute; left:0; right:0; bottom:0; height:5px; background:rgba(255,255,255,0.6); display:none; }
.hd-pf .hd-pf-bar i{ display:block; height:100%; width:0; background:var(--hd-pf-accent); transition:width 0.15s linear; }
.hd-pf .hd-pf-item.hd-pf-up .hd-pf-bar{ display:block; }
.hd-pf .hd-pf-badge{ position:absolute; left:6px; bottom:6px; width:22px; height:22px; border-radius:50%; background:var(--hd-pf-accent); color:#fff; display:none; align-items:center; justify-content:center; box-shadow:0 1px 6px rgba(0,0,0,0.25); }
.hd-pf .hd-pf-item.hd-pf-ok .hd-pf-badge{ display:flex; }
.hd-pf .hd-pf-fail{ position:absolute; inset:0; display:none; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:8px; text-align:center; background:rgba(255,255,255,0.92); }
.hd-pf .hd-pf-item.hd-pf-err .hd-pf-fail{ display:flex; }
.hd-pf .hd-pf-fail > span{ font-size:0.78em; font-weight:600; color:var(--hd-pf-error); }
.hd-pf .hd-pf-retry{ margin:0; padding:5px 10px; border:1px solid #ECE6DC; border-radius:8px; background:#fff; color:var(--hd-pf-ink); font:inherit; font-size:0.78em; font-weight:600; cursor:pointer; line-height:1.2; -webkit-appearance:none; appearance:none; }

.hd-pf .hd-pf-msg{ min-height:1.4em; margin:10px 0 0; font-size:0.86em; line-height:1.4; color:var(--hd-pf-soft); }
.hd-pf .hd-pf-msg.hd-pf-warn{ color:var(--hd-pf-error); font-weight:600; }

@media (max-width:640px){
  .hd-pf .hd-pf-drop{ padding:14px; gap:12px; }
  .hd-pf .hd-pf-grid{ grid-template-columns:repeat(3,1fr); gap:8px; }
}
