/* Socle global : variables, reset, shell, bandeau de lancement et en-tête. */

:root {
    --ink: #17202a;
    --muted: #667085;
    --line: #d9dee7;
    --panel: #ffffff;
    --surface: #f3f5f7;
    --accent: #d9363e;
    --shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
    --substation-surface: #f5f8fa;
    --substation-track: #e2e8ee;
    --substation-neutral: #667085;
    --substation-available: #15803d;
    --substation-moderate: #2563eb;
    --substation-high: #b54708;
    --substation-very-high: #c2410c;
    --substation-critical: #b42318;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--surface);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
    min-height: 100vh;
    padding: 0;
}

.launch-offer-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    background: #f3b84b;
    color: #3b2a08;
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: center;
}

.launch-offer-banner-icon {
    flex: 0 0 auto;
    font-size: 18px;
}

.launch-offer-banner-link {
    flex: 0 0 auto;
    padding: 4px 9px;
    border: 1px solid #3b2a08;
    border-radius: 999px;
    color: #3b2a08;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.launch-offer-banner-link:hover,
.launch-offer-banner-link:focus {
    background: #3b2a08;
    color: #fff;
}

.app-header {
    min-height: 86px;
    padding: 18px 28px;
    background: #15202b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-home-link {
    color: inherit;
    text-decoration: none;
}

.brand-title-link {
    color: inherit;
    text-decoration: none;
}

.brand-title-link:hover,
.brand-title-link:focus {
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: block;
    flex: 0 0 auto;
}

.brand h1 {
    margin: 0 0 3px;
    font-size: 1.3rem;
    font-weight: 700;
}

.brand p {
    margin: 0;
    color: #b7c0cc;
    font-size: 0.88rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.account-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.account-link:hover,
.account-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.estimation-header-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    box-shadow: 0 5px 14px rgba(217, 54, 62, 0.28);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease,
        box-shadow 150ms ease;
}

.estimation-header-link:hover,
.estimation-header-link:focus {
    color: #fff;
    background: #bd2c34;
    border-color: #bd2c34;
    box-shadow: 0 7px 18px rgba(217, 54, 62, 0.34);
}

.estimation-header-link:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.82);
    outline-offset: 2px;
}
