﻿:root {
    --bg-main: #121212;
    --bg-panel: #1E1E1E;
    --bg-panel-alt: #252525;
    --gold-main: #D4AF37;
    --gold-light: #F1D67A;
    --accent-red: #B33A3A;
    --accent-orange: #E07A1F;
    --accent-ice: #7DA7C6;
    --accent-sand: #C9A45C;
    --text-main: #e6dcc8;
    --text-muted: #b3aa97;
}

/* montserrat-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('/Content/fonts/montserrat/montserrat-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 400;
    src: url('/Content/fonts/montserrat/montserrat-v31-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-800 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    src: url('/Content/fonts/montserrat/montserrat-v31-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cinzel-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400;
    src: url('/Content/fonts/cinzel/cinzel-v26-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cinzel-800 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 800;
    src: url('/Content/fonts/cinzel/cinzel-v26-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    margin-top: 10px;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 18px;
}

p {
    line-height: 1.6;
    color: var(--text-main);
}

.panel {
    background: linear-gradient(145deg, #1E1E1E, #2A2A2A);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

.menu {
    display: flex;
    background: #0E0E0E;
    border-bottom: 2px solid var(--gold-main);
}

    .menu a {
        font-family: 'Cinzel', serif;
        color: var(--gold-main);
        padding: 14px 20px;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
    }

        .menu a:hover {
            background: var(--gold-main);
            color: #000;
        }

input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 5px 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    background: linear-gradient(145deg, #1B1B1B, #252525);
    border: 1px solid #3A3A3A;
    border-radius: 6px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: var(--gold-main);
        box-shadow: inset 0 0 6px rgba(0,0,0,0.8), 0 0 6px rgba(212, 175, 55, 0.4);
    }

    select option {
        background-color: #1b1b1b;
        color: #f2e6b8;
    }


        select option:hover,
        select option:checked {
            background-color: #2a2a2a;
            color: #ffd87a;
        }

::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

label {
    display: block;
    margin-bottom: 6px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--gold-light);
    text-transform: uppercase;
}

input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--gold-main) 50%), linear-gradient(135deg, var(--gold-main) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.input-error {
    border-color: var(--accent-red);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.8), 0 0 6px rgba(179, 58, 58, 0.5);
}

.input-success {
    border-color: var(--accent-ice);
}

.btn {
    background: linear-gradient(145deg, #B33A3A, #7A1F1F);
    border: 1px solid #5E1616;
    color: #FFF;
    padding: 2px 5px;
    font-family: 'Cinzel', serif;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.6);
    }

.btn-danger {
    background: #7a1b1b;
    border: 1px solid #b54a4a;
    color: #f2e6b8;
}

    .btn-danger:hover {
        background: #921f1f;
    }

.zone {
    stroke: var(--gold-main);
    stroke-width: 2;
    fill: rgba(212, 175, 55, 0.15);
    cursor: pointer;
}

    .zone:hover {
        fill: rgba(212, 175, 55, 0.35);
    }

.admin-badge {
    background: var(--gold-main);
    color: #000;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
}

.pantheon-pantheon {
    border-left: 4px solid var(--gold-main);
}

.pantheon-ragnarok {
    border-left: 4px solid var(--accent-ice);
}

.pantheon-isfet {
    border-left: 4px solid var(--accent-sand);
}




html, body {
    height: 100%;
    margin: 0;
    background: var(--bg-main);
    color: var(--text-main);
}

#layout {
    display: flex;
    height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #0E0E0E, #1A1A1A);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, height 0.25s ease;
    overflow: hidden;
}

    .sidebar.left #img_logo_app {
        width: 100%;
    }

    /* LEFT */
    .sidebar.left {
        width: 250px;
        border-right: 2px solid var(--gold-main);
    }

        .sidebar.left.collapsed {
            width: 75px;
        }

    /* RIGHT */
    .sidebar.right {
        width: 150px;
        border-left: 2px solid var(--gold-main);
        min-width: 48px;
    }

        .sidebar.right.collapsed {
            width: 48px;
        }


#content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

    .sidebar-header .toggle {
        background: none;
        border: none;
        color: var(--gold-main);
        cursor: pointer;
        font-size: 1.2rem;
    }

.menu a {
    display: flex;
    align-items: center;
    padding: 12px;
    color: var(--gold-main);
    text-decoration: none;
    font-family: 'Cinzel', serif;
}

    .menu a:hover {
        background: rgba(212,175,55,0.15);
    }

.menu .icon {
    width: 50px;
    text-align: center;
    font-size: 1.2rem;
}


.sidebar.left.collapsed .menu .text {
    display: none;
}

.sidebar.right.collapsed .sidebar-content {
    display: none;
}

.sidebar.right.collapsed .toggle {
    transform: rotate(180deg);
}

.sidebar.right .toggle {
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: var(--gold-main);
    cursor: pointer;
    font-size: 1.1rem;
}

.sidebar.right.collapsed {
    background: linear-gradient(180deg, #111, #1B1B1B);
}

@media (max-width: 768px) {
    #layout {
        flex-direction: column;
    }

    .sidebar.left,
    .sidebar.right {
        width: 100%;
        height: auto;
        border: none;
    }

        .sidebar.left.collapsed,
        .sidebar.right.collapsed {
            height: 50px;
            width: 100%;
        }

    #content {
        flex: none;
        height: auto;
    }

    .menu {
        display: flex;
        justify-content: space-around;
    }

        .menu .text {
            display: none;
        }
}

@media (min-width: 769px) {
    .menu {
        flex-wrap: wrap;
    }
        .menu a {
            width: 100%;
        }
}



.gridview {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-panel);
    color: var(--text-main);
    font-size: 0.95rem;
}

    .gridview th {
        background: linear-gradient(180deg, #2b2b2b, #1a1a1a);
        color: var(--accent-gold);
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 10px;
        border-bottom: 2px solid var(--accent-gold);
    }


    .gridview td {
        padding: 8px 10px;
        border-bottom: 1px solid #333;
    }

    .gridview tr:nth-child(even) {
        background-color: var(--bg-panel-alt);
    }

    .gridview tr:hover {
        background-color: #2c2c2c;
    }

    .gridview a {
        color: var(--accent-gold-light);
        text-decoration: none;
        margin-right: 8px;
    }

        .gridview a:hover {
            text-decoration: underline;
        }

    .gridview .delete {
        color: var(--danger);
    }

.color-picker {
    height: 42px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #c9a44c;
    background: #111;
    padding: 4px;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

/* Cache l'input natif */
.file-input {
    display: none;
}

.file-label {
    background: linear-gradient(180deg, #c9a44c, #9f7e32);
    color: #111;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

    .file-label:hover {
        background: linear-gradient(180deg, #e3c66a, #c9a44c);
    }

.file-name {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}