:root {
    --bg: #3a6ea5;
    --card: #1c2430;
    --muted: #9fb0c2;
    --text: #eef4fb;
    --accent: #7dd3fc;
    --danger: #f87171;
    --border: #314155;
    --success: #16a34a;
    --warning: #d97706;
    --info: #2563eb;

    /* Win95-ish colors */
    --win95-face: #c0c0c0;
    --win95-light: #ffffff;
    --win95-midlight: #dfdfdf;
    --win95-shadow: #808080;
    --win95-dark: #404040;
    --win95-text: #000000;
    --win95-blue: #000080;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

/* -------------------------------------------------------------------------
   Header façon barre Windows 95
   ------------------------------------------------------------------------- */

.site-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;

    /*
       La marge négative permet à la barre de sortir du container
       et de prendre toute la largeur de l’écran.
    */
    margin: -24px calc(50% - 50vw) 24px;
    padding: 6px 24px;

    background: var(--win95-face);
    color: var(--win95-text);

    border-top: 2px solid var(--win95-light);
    border-left: 2px solid var(--win95-light);
    border-right: 2px solid var(--win95-dark);
    border-bottom: 2px solid var(--win95-dark);

    box-shadow:
        inset 1px 1px 0 var(--win95-midlight),
        inset -1px -1px 0 var(--win95-shadow),
        0 2px 0 rgba(0, 0, 0, 0.25);
}

/* Bloc logo + titre, façon bouton Start / appli active */
.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 42px;
    padding: 4px 14px 4px 6px;

    background: var(--win95-face);
    color: var(--win95-text);


}

.site-logo {
    height: 34px;
    width: auto;
    display: block;
}

.site-header h1 {
    margin: 0 0 2px;
    color: var(--win95-text);

    font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 700;

    text-shadow: 1px 1px 0 var(--win95-light);
}

.site-header .subtitle {
    color: #222;
    margin: 0;

    font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
    font-size: 12px;
    line-height: 1.2;
}

/* Si le header contient un nav avec les boutons */
.site-header nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
}

/* Boutons uniquement dans le header : look Windows 95 */
.site-header .button,
.site-header .button-secondary,
.site-header .button-danger {
    margin-top: 0;
    padding: 6px 12px;

    background: var(--win95-face);
    color: var(--win95-text);

    border-radius: 0;

    border-top: 2px solid var(--win95-light);
    border-left: 2px solid var(--win95-light);
    border-right: 2px solid var(--win95-dark);
    border-bottom: 2px solid var(--win95-dark);

    box-shadow:
        inset 1px 1px 0 var(--win95-midlight),
        inset -1px -1px 0 var(--win95-shadow);

    font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;

    transition: none;
}

.site-header .button:hover,
.site-header .button-secondary:hover,
.site-header .button-danger:hover {
    background: #d4d0c8;
    filter: none;
    transform: none;
    box-shadow:
        inset 1px 1px 0 var(--win95-light),
        inset -1px -1px 0 var(--win95-shadow);
}

.site-header .button:active,
.site-header .button-secondary:active,
.site-header .button-danger:active {
    padding: 7px 11px 5px 13px;

    background: #b8b8b8;

    border-top: 2px solid var(--win95-dark);
    border-left: 2px solid var(--win95-dark);
    border-right: 2px solid var(--win95-light);
    border-bottom: 2px solid var(--win95-light);

    box-shadow: inset 1px 1px 0 var(--win95-shadow);
    transform: none;
}

/* -------------------------------------------------------------------------
   Reste du style existant
   ------------------------------------------------------------------------- */

.subtitle {
    color: var(--muted);
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.card {
    background: #15377a;
    border: 1px solid #9cc8ff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.info {
    width: 100%;
    padding: 3px 8px;
    border-style: dashed;
    color: #ff0000;
    background: #b7b7b7;
    border-left: 5px solid #f0ff00;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

.card.narrow {
    max-width: 520px;
    margin: 48px auto;
}

.form-actions {
    text-align: center;
    margin-top: 24px;
}

.form-actions .button {
    margin-top: 0;
}

label {
    display: block;
    font-weight: 600;
    margin: 12px 0 6px;
}

input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #347597;
    background: #347597;
    color: var(--text);
}

.button {
    display: inline-block;
    background: var(--accent);
    color: #00131d;
    font-weight: 700;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 14px;
    transition: all 0.2s ease;
}

.button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-secondary {
    background: #d9d9d9;
    color: #000000;
    border: 1px solid var(--border);
}

.button-danger {
    background: var(--danger);
    color: white;
}

.muted {
    color: var(--muted);
    font-size: 0.95rem;
}

.flash {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.flash-success {
    background: rgba(80, 184, 73, 0.92);
}

.flash-error {
    background: rgba(248, 113, 113, 0.15);
}

.flash-info {
    background: rgba(37, 99, 235, 0.15);
}

.flash-warning {
    background: rgba(217, 119, 6, 0.15);
}

a {
    color: var(--accent);
}

code {
    background: #0f141b;
    padding: 2px 6px;
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    text-align: left;
    border-top: 1px solid var(--border);
    vertical-align: top;
}

.inline-form {
    display: inline-block;
    margin-right: 8px;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 700px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;

        margin: -24px calc(50% - 50vw) 18px;
        padding: 6px 10px;
        gap: 6px;
    }

    .site-branding {
        width: 100%;
        gap: 10px;
    }

    .site-logo {
        height: 30px;
    }

    .site-header h1 {
        font-size: 16px;
    }

    .site-header .subtitle {
        font-size: 11px;
    }

    .site-header nav {
        justify-content: flex-end;
        flex-wrap: wrap;
        margin-left: 0;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        border-top: 1px solid var(--border);
        padding: 10px 0;
    }

    td {
        border: 0;
        padding: 6px 0;
    }
}
