/* ---------- 3.104.2 : pied de page rangé ----------
   Un bandeau (la promesse + deux actions), quatre colonnes par usage, puis une ligne de confiance.
   Téléphone : bandeau empilé, colonnes deux par deux, tout reste lisible au pouce. */
.site-footer.sf2 { display: block; max-width: 1180px; margin: 48px auto 0; padding: 0 clamp(16px, 4vw, 36px) calc(20px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13.5px; text-align: left; }

.sf-band { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(20px, 3.4vw, 32px); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--grad-soft), var(--surface); overflow: hidden; isolation: isolate; }
.sf-band::before { content: ''; position: absolute; z-index: -1; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(76, 195, 166, .22), transparent 65%); pointer-events: none; }
.sf-band::after { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(127, 216, 194, .5), transparent); }
.sf-band-txt { min-width: 0; }
.sf-brand { display: inline-flex; margin-bottom: 10px; }
.sf-pitch { margin: 0; max-width: 520px; color: var(--text); font-family: 'Space Grotesk', Inter, system-ui, sans-serif; font-size: clamp(18px, 2.3vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.sf-band-cta { flex: none; display: flex; gap: 10px; }
.sf-band-cta .i { width: 18px; height: 18px; }

.sf-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 32px 4px 24px; }
.sf-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.sf-col h2 { margin: 0 0 4px; color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-footer.sf2 .sf-col a, .site-footer.sf2 .sf-col .link-btn { padding: 2px 0; border: 0; background: none; color: var(--muted); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: color .2s; }
.site-footer.sf2 .sf-col a:hover, .site-footer.sf2 .sf-col .link-btn:hover { color: var(--text); }
.site-footer.sf2 .sf-col a:focus-visible, .site-footer.sf2 .sf-col .link-btn:focus-visible { outline: none; border-radius: 6px; box-shadow: var(--ring); }

.sf-base { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 18px 4px 0; border-top: 1px solid var(--border); color: var(--faint); font-size: 12.5px; }
.sf-base p { margin: 0; }
.sf-trust { display: flex; align-items: flex-start; gap: 8px; max-width: 640px; }
.sf-trust .i { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--teal); }
.site-footer.sf2 .sf-by a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer.sf2 .sf-by a:hover { color: var(--text); }

@media (max-width: 860px) {
  .sf-band { flex-direction: column; align-items: flex-start; }
  .sf-band-cta { width: 100%; }
  .sf-band-cta .btn { flex: 1; }
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (max-width: 420px) {
  .site-footer.sf2 { margin-top: 32px; }
  .sf-band { padding: 20px 18px; border-radius: var(--r-lg); }
  .sf-band-cta { flex-direction: column; }
  .sf-band-cta .btn { width: 100%; }
  .sf-cols { padding-top: 26px; }
  .site-footer.sf2 .sf-col a, .site-footer.sf2 .sf-col .link-btn { padding: 4px 0; }   /* cibles plus grandes au pouce */
  .sf-base { flex-direction: column; align-items: flex-start; }
}
:root[data-theme="light"] .sf-band::before { opacity: .6; }
.site-footer.sf2 .sf-band a { text-decoration: none; }
.site-footer.sf2 .sf-band .btn:not(.primary) { color: var(--text); }
.site-footer.sf2 .sf-brand { color: var(--text); }

/* 3.119.3 : tant que la page n'est pas affichée (#view encore vide), le pied de page reste invisible.
   Avant, il apparaissait en haut de l'écran puis sautait vers le bas : « décalage de mise en page » (CLS 0,23 mesuré par Google). */
.view:empty ~ .site-footer { visibility: hidden; }
