/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&display=swap');

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 68px;
    padding: 0 24px;

    background: linear-gradient(180deg,
        rgba(10, 16, 45, 0.90) 0%,
        rgba(15, 22, 60, 0.84) 60%,
        rgba(10, 16, 45, 0.76) 100%
    );
    border-bottom: 1px solid rgba(140, 185, 220, 0.22);
    box-shadow:
        0 1px 0 rgba(200, 230, 255, 0.07),
        0 4px 28px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(180, 220, 255, 0.10);

    
    overflow: visible;
}

nav::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 5px;
    background: rgba(140, 185, 220, 0.30);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(140, 185, 220, 0.15) 15%,
        rgba(140, 185, 220, 0.40) 40%,
        rgba(140, 185, 220, 0.40) 60%,
        rgba(140, 185, 220, 0.15) 85%,
        transparent 100%
    );
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

nav li {
    display: flex;
    align-items: center;
}


nav li + li::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: rgba(140, 185, 220, 0.32);
    transform: rotate(45deg);
    margin: 0 4px;
    flex-shrink: 0;
}

nav li:first-child a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0 26px 0 18px;
    text-decoration: none;
    height: 68px;
    justify-content: center;
    position: relative;
}

nav li:first-child a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(130, 200, 255, 0.75), transparent);
    border-radius: 1px;
}

nav li:first-child #archon {
    width: auto;
    height: 34px;
    object-fit: contain;
    filter: brightness(0.92) drop-shadow(0 0 4px rgba(100, 180, 255, 0.35));
    transition: filter 0.3s ease, transform 0.3s ease;
}

nav li:first-child a:hover #archon {
    filter: brightness(1.18) saturate(1.2) drop-shadow(0 0 8px rgba(100, 180, 255, 0.55));
    transform: scale(1.08);
}


nav li:not(:first-child) a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0 20px;
    text-decoration: none;
    height: 68px;
    justify-content: center;
    position: relative;
}

nav li:not(:first-child) a:hover::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(130, 200, 255, 0.6), transparent);
    border-radius: 1px;
}

nav #tp {
    width: auto;
    height: 26px;
    object-fit: contain;
    filter: brightness(0.80) saturate(0.85);
    transition: filter 0.25s ease, transform 0.25s ease;
}

nav li:not(:first-child) a:hover #tp {
    filter: brightness(1.15) saturate(1.25) drop-shadow(0 0 5px rgba(130, 200, 255, 0.55));
    transform: translateY(-1px);
}

nav a {
    color: rgba(185, 210, 235, 0.75);
    text-decoration: none;
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.12em;
    transition: color 0.25s ease;
}

nav a:hover {
    color: rgba(210, 240, 255, 1);
}

nav li:first-child a {
    color: rgba(200, 230, 255, 0.90);
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: 0.14em;
}

nav li:first-child a:hover {
    color: rgba(220, 245, 255, 1);
}
#bg_accueil {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}  
#quest {
    position: fixed;
    display: flex;
    height: 50px;
    width: auto;
    margin-top: 84px;
    margin-left: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#notif {
    position: fixed;
    height: 20px;
    width: auto;
    margin-left: 38px;
    margin-top: 80px;
}

#quest:hover {
    transform: scale(1.1);
}

.tableau-accueil {
    position: fixed;
    top: 36%;
    left: 74%;
    transform: translateX(-50%);
    width: clamp(180px, 21vw, 300px);
    z-index: 5;
    padding: 0 12px;
    pointer-events: auto;
}

.tableau-sous-titre {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: clamp(8px, 0.75vw, 11px);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(90, 58, 24, 0.65);
    margin-bottom: 4px;
}

.tableau-nom {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: clamp(16px, 1.8vw, 26px);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #2a1808;
    line-height: 1.2;
    margin-bottom: 4px;
}

.tableau-role {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: clamp(9px, 0.85vw, 13px);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(58, 37, 16, 0.78);
    margin-bottom: 10px;
}

.tableau-separateur {
    height: 1px;
    margin-bottom: 10px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(90, 58, 24, 0.35) 20%,
        rgba(90, 58, 24, 0.55) 50%,
        rgba(90, 58, 24, 0.35) 80%,
        transparent 100%
    );
}

.tableau-section {
    margin-bottom: 10px;
}

.tableau-section:last-child {
    margin-bottom: 0;
}

.tableau-section h2 {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: clamp(9px, 0.8vw, 12px);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(74, 48, 18, 0.88);
    margin-bottom: 4px;
}

.tableau-section p {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: clamp(8px, 0.72vw, 11.5px);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1;
    color: rgba(58, 37, 16, 0.82);
}

.tableau-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tableau-liste li {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: clamp(8px, 0.72vw, 11.5px);
    letter-spacing: 0.03em;
    color: rgba(58, 37, 16, 0.82);
    padding-left: 10px;
    position: relative;
}

.tableau-liste li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 4px;
    height: 4px;
    background: rgba(90, 58, 24, 0.45);
}

@media (max-width: 900px) {
    .tableau-accueil {
        top: 38%;
        left: 72%;
        width: clamp(160px, 28vw, 260px);
    }
}

@media (max-width: 600px) {
    .tableau-accueil {
        top: 40%;
        left: 74%;
        width: 34vw;
        padding: 0 6px;
    }

    .tableau-section {
        margin-bottom: 7px;
    }
}