/* Suivi Formulaires : fenêtres et blocs. Police et couleur du texte héritées du thème. */
.sfo-overlay, .sfo-card { --sfo-accent: #e8a33d; --sfo-ink: #1f2a37; --sfo-muted: #5b6573; --sfo-line: #dfe3e8; }
.sfo-lock, .sfo-lock body { overflow: hidden; }

.sfo-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(15, 23, 32, .62);
  opacity: 0; transition: opacity .18s ease;
}
.sfo-overlay.sfo-in { opacity: 1; }
.sfo-panel {
  position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: #fff; color: var(--sfo-ink); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
  transform: translateY(12px); transition: transform .22s ease;
}
.sfo-in .sfo-panel { transform: none; }
.sfo-panel.sfo-wide { max-width: 720px; }
.sfo-content { padding: 32px; }
.sfo-wide .sfo-content { padding: 52px 16px 16px; }
.sfo-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--sfo-muted); cursor: pointer;
}
.sfo-close:hover, .sfo-close:focus-visible { background: #eef1f4; color: var(--sfo-ink); }

.sfo-card {
  margin: 2.2em 0; padding: 28px; border: 1px solid var(--sfo-line); border-radius: 14px;
  background: #fbfaf7; color: var(--sfo-ink);
}
.sfo-place-page .sfo-card { max-width: 980px; margin: 0 auto; padding: 40px; background: #fff; box-shadow: 0 16px 48px rgba(0, 0, 0, .12); border: 0; }

.sfo-grid { display: block; }
.sfo-grid.sfo-has-image { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 28px; align-items: center; }
.sfo-figure img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.sfo-body { min-width: 0; }
.sfo-center { text-align: center; }

.sfo-eyebrow {
  margin: 0 0 8px; font-size: .78em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sfo-accent);
  filter: brightness(.82);
}
.sfo-title { margin: 0 0 12px; font-size: 1.45em; line-height: 1.25; font-weight: 700; color: var(--sfo-ink); }
.sfo-text { margin: 0 0 18px; font-size: 1em; line-height: 1.55; color: var(--sfo-ink); }
.sfo-text p { margin: 0 0 .7em; }
.sfo-text ul { margin: 0 0 .7em; padding-left: 1.2em; }
.sfo-text li { margin: .25em 0; }
.sfo-small { font-size: .92em; color: var(--sfo-muted); }

.sfo-form { margin: 0; }
.sfo-field { margin: 0 0 12px; }
.sfo-field label { display: block; margin: 0 0 4px; font-size: .9em; font-weight: 600; color: var(--sfo-ink); }
.sfo-input {
  display: block; box-sizing: border-box; width: 100%; height: 48px; margin: 0; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--sfo-ink); background: #fff;
  border: 1.5px solid #c9d0d8; border-radius: 10px; box-shadow: none; appearance: none;
}
.sfo-input:focus { outline: 0; border-color: var(--sfo-accent); box-shadow: 0 0 0 3px rgba(232, 163, 61, .25); }
.sfo-input[aria-invalid="true"] { border-color: #c0392b; }
.sfo-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.sfo-btn {
  display: block; box-sizing: border-box; width: 100%; min-height: 52px; margin: 4px 0 0; padding: 12px 18px;
  font: inherit; font-size: 1.05em; font-weight: 700; line-height: 1.25; text-align: center;
  color: #1f1a12; background: var(--sfo-accent); border: 0; border-radius: 10px; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12); transition: filter .15s ease, transform .05s ease;
}
.sfo-btn:hover, .sfo-btn:focus-visible { filter: brightness(1.06); }
.sfo-btn:active { transform: translateY(1px); }
.sfo-btn[disabled] { opacity: .7; cursor: progress; }
.sfo-center .sfo-btn { max-width: 280px; margin: 8px auto 0; }
.sfo-actions { margin-top: 8px; }
.sfo-link {
  display: block; margin: 10px auto 0; padding: 6px; font: inherit; font-size: .9em; color: var(--sfo-muted);
  background: none; border: 0; text-decoration: underline; cursor: pointer;
}
.sfo-error { margin: 6px 0 0; font-size: .88em; color: #b03a2e; }
.sfo-general { margin-top: 10px; }
.sfo-legal { margin: 12px 0 0; font-size: .74em; line-height: 1.45; color: var(--sfo-muted); }
.sfo-legal p { margin: 0 0 .4em; }
.sfo-legal a { color: inherit; }

.sfo-quiz .sfo-title { padding-right: 36px; }
.sfo-suivi { min-height: 200px; margin: 6px 0 0; }
.sfo-loading { margin: 40px 0; text-align: center; color: var(--sfo-muted); }

@media (max-width: 640px) {
  .sfo-overlay { align-items: flex-end; padding: 0; }
  .sfo-panel { max-height: 94vh; max-height: 94dvh; border-radius: 18px 18px 0 0; }
  .sfo-content { padding: 26px 20px 22px; }
  .sfo-wide .sfo-content { padding: 50px 6px 6px; }
  .sfo-grid.sfo-has-image { display: block; }
  .sfo-figure { margin: 0 0 12px; text-align: center; }
  .sfo-figure img { display: inline-block; width: auto; max-width: 60%; max-height: 120px; }
  .sfo-title { font-size: 1.22em; }
  .sfo-card { padding: 22px 18px; }
  .sfo-place-page .sfo-card { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sfo-overlay, .sfo-panel { transition: none; }
}
/* Projecteur sur un bloc intégré (voir spotlight dans front.js) */
.sfo-veil { display: none; position: fixed; inset: 0; z-index: 2147482990; background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity .45s ease; cursor: pointer; }
.sfo-veil.sfo-in { opacity: 1; }
.sfo-card.sfo-lit { position: relative; z-index: 2147482991; }
@media (prefers-reduced-motion: reduce) { .sfo-veil { transition: none; } }

.sfo-hint { margin: 6px 0 0; font-size: .88em; color: var(--sfo-ink); }
.sfo-hint-fix { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }
