/* SAPOF Facturier — placeholder pré-déploiement
   2026-05-10
   Design sobre, mobile-first, conforme conventions projet (Bootstrap 5.3 CDN). */

:root {
    --sapof-primary: #0d6efd;
    --sapof-dark: #1a2332;
    --sapof-light: #f8f9fa;
    --sapof-border: #dee2e6;
    --sapof-text: #212529;
    --sapof-muted: #6c757d;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--sapof-text);
    background-color: #fafbfc;
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
    background: white;
    border-bottom: 1px solid var(--sapof-border);
    padding: 1rem 0;
}

.site-header .brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--sapof-dark);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.site-header .brand:hover {
    color: var(--sapof-primary);
}

.site-header .brand-suffix {
    color: var(--sapof-muted);
    font-weight: 400;
    margin-left: 0.5rem;
}

/* ── Main content ──────────────────────────────────────────────────────── */
main.site-main {
    flex: 1 0 auto;
    padding: 2rem 0;
}

/* ── Landing page ──────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--sapof-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero .lead {
    font-size: 1.1rem;
    color: var(--sapof-muted);
    margin-bottom: 0;
}

.login-card {
    max-width: 420px;
    margin: 2rem auto;
    background: white;
    border: 1px solid var(--sapof-border);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 2rem;
}

.login-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--sapof-dark);
}

.access-info {
    max-width: 540px;
    margin: 1.5rem auto 0;
    background: #fff8e6;
    border: 1px solid #ffd966;
    border-radius: 0.375rem;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
}

.access-info .info-icon {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.access-info a {
    color: var(--sapof-primary);
    font-weight: 500;
}

/* ── Legal pages ───────────────────────────────────────────────────────── */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--sapof-border);
    border-radius: 0.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.legal-content h1 {
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--sapof-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.legal-content .meta {
    font-size: 0.85rem;
    color: var(--sapof-muted);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sapof-border);
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--sapof-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
}

.legal-content table th,
.legal-content table td {
    border: 1px solid var(--sapof-border);
    padding: 0.6rem 0.85rem;
    vertical-align: top;
    text-align: left;
}

.legal-content table th {
    background: var(--sapof-light);
    font-weight: 600;
}

.legal-content blockquote {
    border-left: 3px solid var(--sapof-primary);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: #f1f7ff;
    color: #1a3a5c;
    font-size: 0.95rem;
    border-radius: 0 0.25rem 0.25rem 0;
}

.legal-content a {
    color: var(--sapof-primary);
    word-break: break-word;
}

.legal-content code {
    background: var(--sapof-light);
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #c0392b;
}

.legal-content .breadcrumb-back {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.legal-content .breadcrumb-back a {
    color: var(--sapof-muted);
    text-decoration: none;
}

.legal-content .breadcrumb-back a:hover {
    color: var(--sapof-primary);
}

.alert-warning-soft {
    background: #fff8e6;
    border: 1px solid #ffd966;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
    flex-shrink: 0;
    background: var(--sapof-dark);
    color: #d0d7de;
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.site-footer h5 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-footer a {
    color: #d0d7de;
    text-decoration: none;
    display: block;
    padding: 0.2rem 0;
}

.site-footer a:hover {
    color: white;
    text-decoration: underline;
}

.site-footer .copyright {
    border-top: 1px solid #2c3e50;
    padding-top: 1rem;
    margin-top: 1.5rem;
    color: #8b95a3;
    font-size: 0.85rem;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .hero h1 { font-size: 1.75rem; }
    .legal-content { padding: 1.5rem 1.25rem; }
    .legal-content h1 { font-size: 1.5rem; }
    .legal-content table { font-size: 0.85rem; }
    .legal-content table th,
    .legal-content table td { padding: 0.4rem 0.5rem; }
}
