/* Ajouts de la version Astro. Le design d'origine est dans site.css (Tailwind compilé de l'ancien site). */

/* Polices prévues par le design (Inter + Playfair Display), désormais réellement chargées et auto-hébergées */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/playfair-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

[hidden] { display: none !important; }
:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Bouton WhatsApp flottant */
a[data-cta="whatsapp-float"] { background: #25D366; }

/* Menu mobile plein écran */
[data-mobile-menu] { z-index: 40; }
header [data-menu-toggle] { position: relative; z-index: 50; }

/* Curseurs (sliders) natifs, au style de l'ancien site */
.sb-range { -webkit-appearance: none; appearance: none; height: 8px; border-radius: 9999px; cursor: pointer; touch-action: pan-y;
  background: linear-gradient(to right, hsl(var(--primary)) 0 var(--p, 50%), hsl(var(--secondary)) var(--p, 50%) 100%); }
.sb-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 9999px; background: hsl(var(--background)); border: 2px solid hsl(var(--primary)); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.sb-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 9999px; background: hsl(var(--background)); border: 2px solid hsl(var(--primary)); }
.sb-range:active::-webkit-slider-thumb { transform: scale(1.15); }

/* Case RGPD et liste déroulante natives */
.sb-check { accent-color: hsl(var(--primary)); cursor: pointer; }
.sb-select { appearance: auto; cursor: pointer; }

/* Options du simulateur comptable */
[data-opt] { user-select: none; }

/* Notifications */
#toasts { position: fixed; z-index: 100; right: 0; bottom: 0; max-width: 420px; width: 100%; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.sb-toast { animation: sb-in .25s ease-out; }
@keyframes sb-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
