/* 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_video {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Arc d'expériences autour de Klee */
.arc-experiences {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.arc-trace {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.arc-trace path {
    filter: drop-shadow(0 0 4px rgba(226, 196, 140, 0.35));
}

.bulle-experience {
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: auto;

    width: clamp(56px, 7vmin, 88px);
    height: clamp(56px, 7vmin, 88px);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;

    background:
        radial-gradient(120% 120% at 50% 20%, rgba(90, 150, 220, 0.20), transparent 65%),
        linear-gradient(165deg, rgba(20, 14, 30, 0.92) 0%, rgba(10, 8, 20, 0.94) 100%);
    border: 1.5px solid rgba(226, 196, 140, 0.65);
    box-shadow:
        0 0 0 1px rgba(8, 6, 14, 0.55),
        0 6px 16px rgba(0, 0, 0, 0.5),
        0 0 18px rgba(110, 170, 255, 0.30);

    font-family: 'Cinzel', 'Georgia', serif;
    font-size: clamp(9px, 1.1vmin, 11.5px);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.15;
    color: rgba(226, 196, 140, 0.95);
    cursor: pointer;

    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bulle-experience[data-importance="petite"] {
    width: clamp(42px, 5.4vmin, 66px);
    height: clamp(42px, 5.4vmin, 66px);
    font-size: clamp(9px, 1vmin, 10.5px);
}

.bulle-experience[data-importance="grande"] {
    width: clamp(72px, 9vmin, 112px);
    height: clamp(72px, 9vmin, 112px);
    font-size: clamp(10px, 1.25vmin, 13px);
}

.bulle-experience:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
        0 0 0 1px rgba(8, 6, 14, 0.55),
        0 6px 18px rgba(0, 0, 0, 0.55),
        0 0 26px rgba(110, 170, 255, 0.5);
    border-color: rgba(240, 215, 165, 0.9);
}

.bulle-experience.active {
    border-color: rgba(240, 215, 165, 1);
    box-shadow:
        0 0 0 1px rgba(8, 6, 14, 0.55),
        0 6px 18px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(110, 170, 255, 0.6);
}

/* Trait de liaison entre une bulle et sa fiche de détail */
.trait-liaison-exp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 19;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trait-liaison-exp.visible {
    opacity: 1;
}

.trait-liaison-exp line {
    filter: drop-shadow(0 0 3px rgba(110, 180, 255, 0.5));
    animation: pulsation-trait-exp 2.4s ease-in-out infinite;
}

.trait-liaison-exp .point-liaison-exp {
    fill: rgba(226, 196, 140, 0.9);
    transform-origin: center;
    transform-box: fill-box;
    transform: rotate(45deg);
    filter: drop-shadow(0 0 4px rgba(110, 180, 255, 0.7));
    animation: pulsation-trait-exp 2.4s ease-in-out infinite;
}

@keyframes pulsation-trait-exp {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

/* Fiche de détail d'une expérience */
.bulle-detail {
    position: fixed;
    z-index: 20;
    width: min(280px, calc(100vw - 32px));

    background:
        radial-gradient(120% 140% at 50% 0%, rgba(90, 150, 220, 0.16), transparent 60%),
        linear-gradient(165deg,
            rgba(38, 24, 16, 0.95) 0%,
            rgba(22, 16, 30, 0.95) 55%,
            rgba(12, 10, 24, 0.96) 100%
        );
    border: 1.5px solid rgba(201, 168, 110, 0.55);
    border-radius: 4px;
    box-shadow:
        0 0 0 1px rgba(8, 6, 14, 0.6),
        0 12px 30px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(110, 170, 255, 0.22),
        inset 0 0 20px rgba(120, 90, 180, 0.16);

    padding: 16px 16px 14px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.bulle-detail.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.bulle-detail-aura {
    position: absolute;
    inset: -12px;
    border-radius: 8px;
    background: radial-gradient(closest-side, rgba(110, 170, 255, 0.22), transparent 72%);
    filter: blur(7px);
    z-index: -1;
    animation: pulsation-aura-exp 3.2s ease-in-out infinite;
}

@keyframes pulsation-aura-exp {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.95; }
}

.bulle-detail-angle {
    position: absolute;
    width: 13px;
    height: 13px;
    pointer-events: none;
}

.bulle-detail-angle--hg {
    top: 5px;
    left: 5px;
    border-top: 2px solid rgba(226, 196, 140, 0.85);
    border-left: 2px solid rgba(226, 196, 140, 0.85);
}

.bulle-detail-angle--hd {
    top: 5px;
    right: 5px;
    border-top: 2px solid rgba(226, 196, 140, 0.85);
    border-right: 2px solid rgba(226, 196, 140, 0.85);
}

.bulle-detail-angle--bg {
    bottom: 5px;
    left: 5px;
    border-bottom: 2px solid rgba(226, 196, 140, 0.85);
    border-left: 2px solid rgba(226, 196, 140, 0.85);
}

.bulle-detail-angle--bd {
    bottom: 5px;
    right: 5px;
    border-bottom: 2px solid rgba(226, 196, 140, 0.85);
    border-right: 2px solid rgba(226, 196, 140, 0.85);
}

.bulle-detail-titre {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(226, 196, 140, 0.95);
    text-shadow: 0 0 8px rgba(140, 185, 220, 0.35);
}

.bulle-detail-periode {
    margin-top: 4px;
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-align: center;
    color: rgba(150, 200, 255, 0.75);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 168, 110, 0.35);
}

.bulle-detail-texte {
    margin-top: 10px;
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 10.5px;
    line-height: 1.7;
    letter-spacing: 0.03em;
    text-align: center;
    color: rgba(214, 224, 235, 0.85);
}

.bulle-detail-fermer {
    position: absolute;
    top: 4px;
    right: 8px;
    background: transparent;
    border: none;
    font-family: 'Georgia', serif;
    font-size: 17px;
    line-height: 1;
    color: rgba(214, 224, 235, 0.5);
    cursor: pointer;
    transition: color 0.25s ease;
}

.bulle-detail-fermer:hover {
    color: rgba(226, 196, 140, 1);
}