/* 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_projets {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.bouton-zone {
position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
}

.bouton {
position: absolute;
    pointer-events: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    
    
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(43, 25, 12, 0);  
    

    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.bouton:hover {
    background-color: rgba(255, 215, 0, 0.07);
    box-shadow: 0 0 15px rgba(130, 200, 255, 0.5);
}

#étude {
    top: 60%;
    left: 50.6%;
    width: 9.3%;
    height: 4.8%;
}

/* Trait de liaison entre un bouton et sa fiche */
#trait-liaison {
    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.visible {
    opacity: 1;
}

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

#trait-liaison .point-liaison {
    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 2.4s ease-in-out infinite;
}

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

/* Fiche projet : encadrement magique qui apparaît dans un renfoncement
   de l'étagère, dans l'esprit des vitrines d'objets façon Genshin Impact */
.fiche-projet {
    position: fixed;
    z-index: 20;

    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: 18px 16px 16px;

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

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

.fiche-projet-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 3.2s ease-in-out infinite;
}

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

.fiche-projet-angle {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.fiche-projet-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);
}

.fiche-projet-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);
}

.fiche-projet-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);
}

.fiche-projet-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);
}

.fiche-projet-titre {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 14px;
    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);
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(201, 168, 110, 0.35);
}

.fiche-projet-cadre-image {
    position: relative;
    border: 1px solid rgba(201, 168, 110, 0.40);
    border-radius: 3px;
    overflow: hidden;
    box-shadow:
        inset 0 0 14px rgba(0, 0, 0, 0.6),
        0 0 14px rgba(110, 170, 255, 0.18);
}

.fiche-projet-image {
    display: block;
    width: 100%;
}

.fiche-projet-texte {
    margin-top: 12px;
    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);
}

.fiche-projet-veille {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(201, 168, 110, 0.35);
}

.fiche-projet-veille-label {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(150, 200, 255, 0.80);
    margin-bottom: 6px;
}

.fiche-projet-veille-theme {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 10px;
    line-height: 1.65;
    letter-spacing: 0.02em;
    text-align: center;
    color: rgba(214, 224, 235, 0.82);
    margin-bottom: 10px;
}

.fiche-projet-veille-lien {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;

    background: linear-gradient(165deg, rgba(38, 24, 16, 0.55) 0%, rgba(22, 16, 30, 0.55) 100%);
    border: 1px solid rgba(201, 168, 110, 0.55);
    border-radius: 3px;

    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(226, 196, 140, 0.92);

    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.fiche-projet-veille-lien:hover {
    background: linear-gradient(165deg, rgba(58, 38, 20, 0.75) 0%, rgba(30, 20, 38, 0.75) 100%);
    border-color: rgba(240, 215, 165, 0.9);
    color: rgba(240, 215, 165, 1);
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(110, 170, 255, 0.25);
}

.fiche-projet-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;
}

.fiche-projet-fermer:hover {
    color: rgba(226, 196, 140, 1);
}
#experience {
    top: 60%;
    left: 66.8%;
    width: 9.3%;
    height: 4.8%;
}
#paradisia-Milliastral {
    top: 60%;
    left: 80.8%;
    width: 12%;
    height: 4.8%;
}