/* OTT-SYS Portal — styles P0 (site public, Portal, pages d'erreur).
   Aucune dépendance externe : compatible avec la CSP stricte (style-src 'self'). */

:root {
    --ott-bg: #0a0f1a;
    --ott-bg-elevated: #111a2b;
    --ott-border: #1f2b41;
    --ott-border-strong: #2c3b57;
    --ott-text: #e6ebf3;
    --ott-text-muted: #9aa8bf;
    --ott-brand-cyan: #38bdf8;
    --ott-brand-blue: #2563eb;
    --ott-brand-navy: #0b1f3a;
    --ott-focus: #60a5fa;
    --ott-radius: 14px;
    --ott-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(56, 189, 248, 0.12), transparent 60%),
        var(--ott-bg);
    color: var(--ott-text);
    font-family: var(--ott-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 16px 20px;
}

@media (min-width: 720px) {
    .shell {
        padding: 40px 32px 24px;
    }
}

/* Marque ------------------------------------------------------------------ */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand__logo {
    display: block;
    width: 44px;
    height: 44px;
}

.brand__name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand__product {
    color: var(--ott-brand-cyan);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Site public --------------------------------------------------------------- */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
    padding: 64px 0;
}

.hero__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hero__lead {
    margin: 0 0 32px;
    color: var(--ott-text-muted);
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}

.badge {
    align-self: flex-start;
    margin: 0 0 20px;
    padding: 4px 12px;
    border: 1px solid var(--ott-border-strong);
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.08);
    color: var(--ott-brand-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Portal / erreurs ------------------------------------------------------------ */

.panel {
    flex: 1;
    align-self: center;
    width: 100%;
    max-width: 560px;
    margin: 64px 0;
    padding: 32px 24px;
    border: 1px solid var(--ott-border);
    border-radius: var(--ott-radius);
    background: rgba(17, 26, 43, 0.85);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

@media (min-width: 720px) {
    .panel {
        padding: 40px;
    }
}

.panel__code {
    margin: 0 0 8px;
    color: var(--ott-brand-cyan);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.panel__title {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    line-height: 1.2;
}

.panel__lead {
    margin: 0 0 20px;
    color: var(--ott-brand-cyan);
    font-weight: 600;
}

.panel__text {
    margin: 0 0 20px;
    color: var(--ott-text-muted);
}

.notice {
    margin: 0 0 24px;
    padding: 12px 16px;
    border-left: 3px solid var(--ott-brand-blue);
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.1);
}

/* Actions --------------------------------------------------------------------- */

.actions {
    margin: 0;
}

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ott-brand-cyan), var(--ott-brand-blue));
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.button:hover {
    filter: brightness(1.08);
}

.link {
    color: var(--ott-brand-cyan);
    font-weight: 600;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.button:focus-visible,
.link:focus-visible {
    outline: 2px solid var(--ott-focus);
    outline-offset: 3px;
}

/* Pied de page ---------------------------------------------------------------- */

.footer {
    padding-top: 20px;
    border-top: 1px solid var(--ott-border);
    color: var(--ott-text-muted);
    font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
    .button {
        transition: none;
    }
}
