/**
 * Funnel — base : reset léger, typographie, primitives partagées.
 * Portage de funnel.css (landing) : bloc reset + .reveal + reduced-motion.
 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fnl-font);
  color: var(--fnl-text);
  background: var(--fnl-surface);
  line-height: var(--fnl-lh);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--fnl-font-head); }

.material-icons-outlined {
  font-family: 'Material Icons Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
}

/* Lien d'évitement (a11y) — visible seulement au focus clavier. */
.sws-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--fnl-orange);
  color: var(--fnl-on-accent);
  font-weight: 700;
  padding: 12px 18px;
}
.sws-skip-link:focus { left: 0; }

/* Révélation au scroll — piloté par IntersectionObserver (theme.js). */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--fnl-ease), transform .55s var(--fnl-ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Slots de blocs V3.
   JAMAIS display:none sur un slot vide : l'élément sortirait du flux, les slots
   s'empileraient à top:0 et le Studio n'afficherait qu'un seul « Ajouter un bloc ». */
.fnl-slot:empty { display: block; height: 0; }
.fnl-slot:empty.sws-slot-overlay { height: auto; overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover { transform: none !important; }
}
