/**
 * Styles communs à toutes les pages - Bercy Folie's
 * Inclure via <link rel="stylesheet" href="/shared/common.css">
 * ou href="../../shared/common.css" depuis les modules
 */

/* ── Reset universel ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Alpine.js cloak ── */
[x-cloak] { display: none !important; }

/* ── Base HTML/Body ── */
html { background: #ffffff; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    isolation: isolate;
}

/* ── Fond bâtiment (overlay décoratif) ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('/images/parts/batiment.png') center center / 100% 100% no-repeat;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
}

/* ── Skip link (accessibilité WCAG) ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #667eea;
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ── Impression ── */
@media print {
    body::before { display: none; }
    .no-print, nav, .sidebar, button { display: none; }
    body { font-size: 12pt; color: black; background: white; }
    table { page-break-inside: avoid; }
}
