:root {
    --bg-deep: #050608;
    --bg-mid: #0d1016;
    --bg-soft: #12161d;

    --panel: rgba(10, 12, 16, 0.72);
    --panel-border: rgba(255,255,255,0.10);

    --text-main: #e8e5df;
    --text-soft: #bdb7ad;
    --accent: #d8c08a;
    --accent-soft: rgba(216,192,138,0.18);
}

/* =========================================================
   ARRIÈRE-PLAN GLOBAL
   ========================================================= */

html {
    min-height: 100%;

    background:
        radial-gradient(circle at 14% 18%, rgba(255,255,255,0.05), transparent 22%),
        radial-gradient(circle at 82% 14%, rgba(190,170,120,0.06), transparent 20%),
        radial-gradient(circle at 70% 75%, rgba(110,130,170,0.05), transparent 24%),
        linear-gradient(180deg, #040506 0%, #0a0c11 48%, #060708 100%);

    background-attachment: fixed;
}

/*
   Le body du template possédait déjà un fond.
   On le neutralise ici pour laisser respirer
   le fond principal.
*/

body {
    background: transparent !important;
    color: var(--text-main);
    padding-top: 110px !important;
    position: relative;
}

/* Léger voile pour donner une profondeur douce */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.015),
            rgba(255,255,255,0.0) 35%
        ),
        radial-gradient(
            circle at 50% 20%,
            rgba(255,255,255,0.04),
            transparent 40%
        ),
        radial-gradient(
            circle at 50% 120%,
            rgba(0,0,0,0.35),
            transparent 45%
        );
}

/* =========================================================
   TOPBAR
   ========================================================= */

.studio-topbar {
    position: fixed;
    top: 18px;
    left: 18px;
    right: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    z-index: 9999;
}

/* Bouton retour */

.studio-home-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 16px;

    border-radius: 999px;

    background: var(--panel);
    border: 1px solid var(--panel-border);

    color: #f2eee7;
    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.28);
}

.studio-home-button:hover {
    background: rgba(20, 23, 28, 0.86);
    border-color: rgba(255,255,255,0.16);
}

.studio-home-arrow {
    font-size: 16px;
    line-height: 1;
    color: var(--accent);
}

/* Logo */

.studio-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 12px;

    border-radius: 16px;

    background: var(--panel);
    border: 1px solid var(--panel-border);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.28);
}

.studio-brand img {
    display: block;
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* =========================================================
   BIBLIOTHÈQUE (index)
   ========================================================= */

.library-page {
    max-width: 980px;
    margin: 0 auto;
    padding:
        12vh
        7vw
        10vh;
}

.library-header {
    margin-bottom: 2.4em;
}

.library-logo {
    display: block;
    max-width: 460px;
    width: 100%;
    height: auto;
    margin-bottom: 1.4em;
}

.library-subtitle {
    color: var(--text-soft);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.book {
    display: block;

    padding: 0.95em 1.05em;
    margin: 0 0 0.85em;

    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(28,31,38,0.88),
            rgba(18,20,26,0.92)
        );

    border: 1px solid rgba(255,255,255,0.08);

    color: #f3efe8;
    text-decoration: none;

    font-size: 1.35em;

    box-shadow:
        0 8px 24px rgba(0,0,0,0.22);

    transition:
        transform 0.12s ease,
        border-color 0.12s ease,
        background 0.12s ease;
}

.book:hover {
    transform: translateY(-1px);
    border-color: rgba(216,192,138,0.40);

    background:
        linear-gradient(
            180deg,
            rgba(36,40,48,0.92),
            rgba(20,23,29,0.96)
        );
}

.library-footer {
    margin-top: 3em;
    color: #777;
    font-family: Arial, sans-serif;
    font-size: 0.85em;
}

/* =========================================================
   STATUT
   ========================================================= */

#status {
    background: rgba(8,10,14,0.78) !important;
    border: 1px solid rgba(255,255,255,0.08);
    color: #8b8b8b !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}