/* [photos-visiteurs] v14oct2 — bouton flottant, galerie, visionneuse, formulaire d'envoi.
   L'orange est réservé au geste photo, pour qu'on le reconnaisse partout. */
:root {
  --mph-or: #E8701A; --mph-or-f: #a84a06; --mph-or-p: #fff4ea;
  --mph-encre: #1E2731; --mph-gris: #55606d; --mph-filet: #d3dce7; --mph-fond: #f6f8fb; --mph-bleu: #0a3f9c; --mph-vert: #0f6b3d;
}
html body .mph-fab, html body .mph-galerie, html body .mph-envoi, html body .mph-vis { font-family: Archivo, system-ui, sans-serif; box-sizing: border-box; }
html body .mph-galerie *, html body .mph-envoi *, html body .mph-vis * { box-sizing: border-box; }

/* ---------------------------------------------------------------- bouton flottant */
html body .mph-fab {
  position: fixed; right: 16px; bottom: 20px; z-index: 9990;
  display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px; border-radius: 27px;
  background: var(--mph-or); color: #fff !important; text-decoration: none !important;
  font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(30, 39, 49, .28);
}
html body .mph-fab:hover, html body .mph-fab:focus-visible { background: var(--mph-or-f); }
html body .mph-fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
html body .mph-fab.mph-pulse { animation: mph-halo 1.8s ease-out infinite; }
@keyframes mph-halo { 0% { box-shadow: 0 0 0 0 rgba(232, 112, 26, .55); } 70% { box-shadow: 0 0 0 18px rgba(232, 112, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 112, 26, 0); } }
@media (prefers-reduced-motion: reduce) { html body .mph-fab.mph-pulse { animation: none; } }
@media (max-width: 600px) { html body .mph-fab { right: 12px; bottom: 14px; } }
/* sur la carte radar, le bouton ne doit pas gêner la barre de temps */
html body.carte-radar .mph-fab { display: none; }

/* ---------------------------------------------------------------- galerie */
html body .mph-galerie { max-width: 1200px; margin: 28px auto; padding: 0 16px; color: var(--mph-encre); }
html body .mph-g-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
html body .mph-g-titre { margin: 0; font-weight: 900; font-stretch: 82%; font-size: clamp(20px, 3vw, 28px); text-transform: uppercase; letter-spacing: .01em; }
html body .mph-g-compte { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; color: var(--mph-gris); text-transform: uppercase; }
html body .mph-g-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
html body .mph-g-item { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: #dfe6ec; }
html body .mph-g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
html body .mph-g-item:hover img { transform: scale(1.03); }
html body .mph-g-item:focus-visible { outline: 3px solid var(--mph-or); outline-offset: 2px; }
html body .mph-g-leg { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 9px; background: linear-gradient(transparent, rgba(11, 17, 24, .78)); color: #fff; font-size: 12px; text-align: left; line-height: 1.3; }
html body .mph-g-tag { position: absolute; top: 8px; left: 8px; background: var(--mph-or); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 3px; letter-spacing: .05em; }
html body .mph-g-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 46px; height: 46px; border-radius: 50%; background: rgba(11, 17, 24, .6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
html body .mph-g-rien { grid-column: 1 / -1; margin: 0; padding: 18px; background: var(--mph-fond); border-radius: 6px; color: var(--mph-gris); }
html body .mph-g-pied { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 14px; }
html body .mph-g-cta { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; background: var(--mph-or); color: #fff !important; border-radius: 4px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none !important; font-size: 14px; }
html body .mph-g-cta:hover { background: var(--mph-or-f); }
html body .mph-g-plus { background: none; border: 0; color: var(--mph-bleu) !important; font: inherit; font-weight: 700; cursor: pointer; padding: 10px 0; text-decoration: none; }

/* ---------------------------------------------------------------- visionneuse */
html body .mph-vis { border: 0; padding: 0; max-width: min(1100px, 96vw); width: 100%; background: #0b1118; color: #fff; border-radius: 8px; overflow: hidden; }
html body .mph-vis::backdrop { background: rgba(11, 17, 24, .82); }
html body .mph-vis-m img, html body .mph-vis-m video { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
html body .mph-vis-t { padding: 12px 16px 16px; }
html body .mph-vis-h, html body .mph-vis-d { margin: 0 0 4px; font-size: 14px; line-height: 1.45; }
html body .mph-vis-d { color: #c9d3de; }
html body .mph-vis-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }

/* ---------------------------------------------------------------- formulaire d'envoi */
html body .mph-envoi { max-width: 620px; margin: 0 auto 40px; color: var(--mph-encre); }
html body .mph-etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 6px; }
html body .mph-etapes span { height: 4px; border-radius: 2px; background: var(--mph-filet); }
html body .mph-etapes span.on { background: var(--mph-or); }
html body .mph-etape-nom { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mph-gris); margin: 0 0 14px; }
html body .mph-pan { display: flex; flex-direction: column; gap: 14px; }
html body .mph-pan[hidden] { display: none; }
html body .mph-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html body .mph-gros { height: 116px; border: 2px solid #c7d3e2; border-radius: 6px; background: #fff; color: var(--mph-encre); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 15px; cursor: pointer; text-align: center; }
html body .mph-gros svg { color: var(--mph-bleu); }
html body .mph-gros.mph-prim { background: var(--mph-or); border-color: var(--mph-or); color: #fff; }
html body .mph-gros.mph-prim svg { color: #fff; }
html body .mph-gros:focus-within { outline: 3px solid var(--mph-bleu); outline-offset: 2px; }
html body .mph-apercu { background: #fff; border: 1px solid #dbe3ec; border-radius: 6px; overflow: hidden; }
html body .mph-apercu[hidden] { display: none; }
html body .mph-ap-fig { position: relative; background: #0b1118; }
html body .mph-ap-fig img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
html body .mph-ap-tag { position: absolute; left: 10px; bottom: 10px; background: rgba(11, 17, 24, .75); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 3px; }
html body .mph-apercu > p { margin: 0; padding: 10px 14px; }
html body .mph-ok { color: var(--mph-vert); font-weight: 700; font-size: 14px; margin: 0; }
html body .mph-err { color: #a3201a; font-weight: 700; margin: 0; }
html body .mph-msg { margin: 0; padding: 12px 14px; font-size: 14px; }
html body .mph-petit { font-size: 13px; color: var(--mph-gris); margin: 0; }
html body .mph-conseil { margin: 0; background: var(--mph-or-p); color: #5a3110; border-radius: 6px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
html body .mph-abri { margin: 0; background: var(--mph-encre); color: #fff; border-radius: 6px; padding: 10px 14px; font-size: 13px; }
html body .mph-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--mph-encre); color: #fff !important; font: inherit; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-decoration: none !important; }
html body .mph-bouton.mph-prim { background: var(--mph-or); }
html body .mph-bouton:disabled { opacity: .45; cursor: not-allowed; }
html body .mph-bouton:focus-visible, html body .mph-lien:focus-visible { outline: 3px solid var(--mph-bleu); outline-offset: 2px; }
html body .mph-lien { background: none; border: 0; font: inherit; font-weight: 700; color: var(--mph-encre); cursor: pointer; min-height: 44px; }
html body .mph-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
html body .mph-ligne2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html body .mph-envoi label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--mph-gris); }
html body .mph-envoi input[type=date], html body .mph-envoi input[type=time], html body .mph-envoi input[type=text], html body .mph-envoi textarea {
  min-height: 46px; border: 1px solid #c7d3e2; border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 16px; color: var(--mph-encre); background: #fff; width: 100%; }
html body .mph-envoi textarea { resize: vertical; }
html body .mph-lieu { display: flex; flex-direction: column; gap: 6px; position: relative; }
html body .mph-lieu > label { font-size: 13px; font-weight: 700; color: var(--mph-gris); }
html body .mph-recherche { display: flex; gap: 8px; }
html body .mph-loc { flex: none; min-height: 46px; padding: 0 12px; border: 1px solid #c7d3e2; border-radius: 4px; background: #fff; font: inherit; font-weight: 700; font-size: 13px; color: var(--mph-bleu); cursor: pointer; }
html body .mph-sugg { list-style: none; margin: 0; padding: 4px; position: absolute; top: 76px; left: 0; right: 0; z-index: 1000; background: #fff; border: 1px solid #c7d3e2; border-radius: 4px; box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
html body .mph-sugg[hidden] { display: none; }
html body .mph-sugg button { width: 100%; text-align: left; background: none; border: 0; padding: 10px; font: inherit; cursor: pointer; border-radius: 3px; }
html body .mph-sugg button:hover, html body .mph-sugg button:focus { background: var(--mph-fond); }
html body .mph-carte { height: 210px; border-radius: 6px; border: 1px solid #c7d3e2; z-index: 0; }
html body .mph-envoi fieldset { border: 0; margin: 0; padding: 0; }
html body .mph-envoi legend { font-size: 13px; font-weight: 700; color: var(--mph-gris); margin-bottom: 6px; padding: 0; }
html body #mph-cats { display: flex; flex-wrap: wrap; gap: 6px; }
html body .mph-puce { min-height: 38px; padding: 0 13px; border-radius: 19px; border: 1px solid #c7d3e2; background: #fff; color: var(--mph-encre); font: inherit; font-size: 14px; cursor: pointer; }
html body .mph-puce[aria-pressed=true] { background: var(--mph-or); border-color: var(--mph-or); color: #fff; font-weight: 700; }
html body .mph-tailles[hidden] { display: none; }
html body #mph-tailles-l { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
html body .mph-taille { min-height: 60px; border-radius: 4px; border: 1px solid #c7d3e2; background: #fff; color: var(--mph-encre); font: inherit; font-size: 12.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
html body .mph-taille[aria-pressed=true] { border: 2px solid var(--mph-or); background: var(--mph-or-p); font-weight: 700; }
html body .mph-rond { display: block; border-radius: 50%; background: #9aa6b2; }
html body .mph-envoi .mph-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; line-height: 1.45; color: var(--mph-encre); }
html body .mph-consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--mph-or); }
html body .mph-resultat { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
html body .mph-r-titre { margin: 0; font-weight: 900; font-stretch: 90%; font-size: 24px; text-transform: uppercase; }
html body .mph-r-ok { width: 60px; height: 60px; border-radius: 50%; background: #e3f3ea; color: var(--mph-vert); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 900; }
html body .mph-barre { height: 10px; background: var(--mph-filet); border-radius: 5px; overflow: hidden; }
html body .mph-barre span { display: block; height: 100%; width: 0; background: var(--mph-or); transition: width .2s; }
html body .mph-badge { display: flex; flex-direction: column; gap: 2px; background: var(--mph-encre); color: #fff; border-radius: 6px; padding: 12px 14px; }
html body .mph-badge .mph-petit { color: #c9d3de; }
html body .mph-badge-t { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; color: #ffc89e; text-transform: uppercase; }
html body .mph-cliche { margin: 0; background: var(--mph-or-p); color: #5a3110; border-radius: 6px; padding: 12px 14px; font-size: 14px; }
html body .mph-pourquoi { margin-top: 28px; padding: 18px; background: #fff; border: 1px solid #dbe3ec; border-radius: 6px; }
html body .mph-pourquoi h2 { margin: 0 0 10px; font-weight: 900; font-stretch: 85%; font-size: 20px; text-transform: uppercase; }
html body .mph-pourquoi ol { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
html body .mph-pourquoi li, html body .mph-pourquoi p { font-size: 14px; line-height: 1.5; margin: 0; }
@media (max-width: 420px) { html body #mph-tailles-l { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-color-scheme: dark) {
  html[data-theme=dark] body .mph-galerie, html[data-theme=dark] body .mph-envoi { color: #e6ecf2; }
}

html body .mph-vis-o { color: #ffc89e !important; font-weight: 700; }
