/**********************************************************************************************************************************************************

Present

*********************************************************************************************************************************************************************************************************/




body.present header {
    width: 100%;
    height: fit-content;
    position: fixed;
    top: 0%;
    left: 0%;
    z-index: 100;

}


body.present header nav {
    backdrop-filter: blur(8px);
    border-bottom: solid rgba(255, 255, 255, 0.623) 0.2px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.863);
    height: 70px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.present header nav #nextus {
    width: 60px;
    height: 50px;
    position: relative;
}

body.present header nav #nextus::after {
    display: none;
}

body.present header nav #nextus img {
    border-radius: 0;
    width: auto;
    height: 50px;
    opacity: 0.8;
    position: absolute;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
}

body.present header nav .liens {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    height: 100%;
}

body.present header nav .liens a {
    text-decoration: none;
    font-family: elza, sans-serif;
    font-weight: 600;
    color: rgb(218, 218, 218);
    font-size: 16px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5px;
    /* optionnel pour donner un peu d’espace */
}

body.present header nav .liens a.active {
    color: #77B6D6;
    text-shadow: black 1px 1px 4px, black -1px -1px 4px;
}


body.present header nav .liens a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    /* collé en bas du lien */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(218, 218, 218);
    border-radius: 5px;
}

body.present header nav .liens a.active::after {
    background-color: #77B6D6;
    box-shadow: black 1px 1px 4px, black -1px -1px 4px;
}

body.present header nav .liens a:hover::after {
    animation: lien 0.6s ease-in-out forwards;
}

@keyframes lien {

    0% {
        transform-origin: right;
    }

    45% {
        transform-origin: right;
        transform: scaleX(0);
    }

    55% {
        transform-origin: left;
    }

    100% {
        transform-origin: left;
        transform: scaleX(1);
    }
}

body.present header nav .liens .burger {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    position: relative;
}

body.present header nav .liens .burger img {
    width: 12px;
    height: 12px;
    transition: 0.3s ease-in-out;
}


body.present header nav .liens .burger.open img {
    transform: rotate(90deg);
    transition: 0.3s ease-in-out;
}


body.present .menu {
    width: 400px;
    height: 150px;
    margin: 10px auto 0 58%;
    border: solid rgba(255, 255, 255, 0.623) 0.2px;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    padding: 10px;
    transform-origin: top;
    transition: .3s ease-in-out;
    opacity: 0;
    transform: scale(0) translateY(-20px);

}

body.present .menu.open {
    transition: transform .3s ease-in-out;
    opacity: 1;
    transform: scale(1) translateY(0px);
}

body.present .menu.close {
    opacity: 0;
    transform: scale(0) translateY(-20px);
    transition: .3s ease-in-out;
    animation: MenuClose 0.01s forwards;
    animation-delay: .3s;
}

@keyframes MenuClose {
    to {
        display: none;
    }
}



body.present .menu .flex-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    height: 100%;
}


body.present .menu .flex-box a {
    font-family: elza, sans-serif;
    text-decoration: none;
    color: rgb(218, 218, 218);
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    width: fit-content;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-align: center;
}

body.present .menu .flex-box a img {
    transition: 0.3s ease-in-out;
}


body.present .menu .flex-box a:hover img {
    transform: scale(0.90);
    transition: 0.3s ease-in-out;

}


body.present .time {
    width: auto;
    height: 80%;
    cursor: pointer;
    color: rgb(218, 218, 218);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 10px;
    background-color: rgba(0, 0, 0, 0.442);
    border: solid rgba(255, 255, 255, 0.623) 0.2px;

    border-radius: 5px;
}


body.present .time p {
    font-family: "overtime-lcd-pro", sans-serif;
    /* base digitale */
    font-size: 40px;
    text-align: center;
    margin-top: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(113, 197, 178, 0.8), 0 0 20px rgba(56, 107, 226, 0.6);
    }

    50% {
        opacity: 0.5;
        text-shadow: none;
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(113, 197, 178, 0.8), 0 0 20px rgba(56, 107, 226, 0.6);
    }

}

body.present .time:hover p {
    animation: none;
    opacity: 1;
    text-shadow: 0 0 10px rgba(113, 197, 178, 0.8),
        0 0 20px rgba(56, 107, 226, 0.6);
}



body.present .time .present {
    display: block;
}

body.present .time .passe {
    display: none;
}

body.present .time .futur {
    display: none;
}



/* Style de l'horloge temporelle */
#timewarp-clock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-family: 'overtime-lcd-pro', sans-serif;
    /* Ta typo */
    font-size: 6rem;
    /* Ajuste la taille selon tes besoins */
    color: #fff;
    text-shadow: 0 0 20px rgba(113, 197, 178, 0.8), 0 0 40px rgba(56, 107, 226, 0.6);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 3s ease-out;
    font-variant-numeric: tabular-nums;
    /* Empêche les chiffres de bouger horizontalement */
    letter-spacing: 4px;
}

/* Quand l'animation court, l'horloge apparaît */
.is-running #timewarp-clock {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}












/**********************************************************************************************************************************************************

passe 

*********************************************************************************************************************************************************************************************************/




body.passe header {
    width: 100%;
    height: fit-content;
    position: fixed;
    top: 0%;
    left: 0%;
    z-index: 100;

}


body.passe header nav {
    height: 70px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e4ab66;
}

body.passe header nav #nextus {
    width: 60px;
    height: 50px;
    position: relative;
}

body.passe header nav #nextus img {
    border-radius: 0;
    width: auto;
    height: 50px;
    opacity: 0.8;
    position: absolute;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
}

body.passe header nav .liens {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    height: 100%;
}

body.passe header nav .liens a {
    text-decoration: underline;
    text-shadow: black 1px 1px 0px;
    font-weight: 600;
    color: rgb(218, 218, 218);
    font-size: 16px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5px;
}


body.passe header nav .liens .burger {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    position: relative;
}

body.passe header nav .liens .burger img {
    width: 12px;
    height: 12px;
}




body.passe .menu {
    width: 400px;
    height: 150px;
    margin: 10px auto 0 58%;
    background-color: #e4ab66;
    padding: 10px;
    transform-origin: top;
    opacity: 0;
    transform: scale(0) translateY(-20px);

    border-top: solid #e9c79e 3px;
    border-left: solid #e9c79e 3px;
    border-right: solid #936d40 3px;
    border-bottom: solid #936d40 3px;



}

body.passe .menu.open {
    opacity: 1;
    transform: scale(1) translateY(0px);
}

body.passe .menu.close {
    opacity: 0;
    transform: scale(0) translateY(-20px);
    animation: MenuClose 0.01s forwards;
    animation-delay: .3s;
}

@keyframes MenuClose {
    to {
        display: none;
    }
}



body.passe .menu .flex-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    height: 100%;
}


body.passe .menu .flex-box a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    text-decoration: underline;
    text-shadow: black 1px 1px 0px;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    width: fit-content;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-align: center;
}


body.passe .menu .flex-box a:hover img {
    transform: scale(0.90);

}




body.passe header nav #nextus:after {
    display: none;
}



body.passe .time {
    width: auto;
    height: 80%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 10px;
    background-color: rgb(0, 0, 0);
    border-top: solid #e9c79e 3px;
    border-left: solid #e9c79e 3px;
    border-right: solid #936d40 3px;
    border-bottom: solid #936d40 3px;

    box-shadow: inset -1px -1px 7px #7ccec0c3, inset 1px 1px 7px #7ccec0c3;

    position: relative;

}


body.passe .time p {
    font-family: "overtime-lcd-pro", sans-serif;
    /* base digitale */
    font-size: 40px;
    text-align: center;
    color: #7CCEC0;
    margin-top: 0;
}



body.passe .time .passe {
    display: block;
}

body.passe .time .present {
    display: none;
}


body.passe .time .futur {
    display: none;
}














/**********************************************************************************************************************************************************

futur 

*********************************************************************************************************************************************************************************************************/




body.futur header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    /* garde le header centré */
    height: fit-content;
    z-index: 100;
}


body.futur header nav {
    height: 70px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(135deg,
            rgba(63, 63, 208, 0.18),
            rgba(63, 63, 208, 0.05));
    backdrop-filter: blur(12px);

    border: 1px solid white;
    border-radius: 25px;

    box-shadow:
        0 0 12px rgba(63, 63, 208, 0.55),
        0 0 32px rgba(63, 63, 208, 0.35),
        0 0 64px rgba(63, 63, 208, 0.2),

        /* Glow interne */
        inset 0 0 18px rgba(63, 63, 208, 0.6);

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


body.futur header nav #nextus {
    width: 60px;
    height: 50px;
    position: relative;
}

body.futur header nav #nextus img {
    border-radius: 0;
    width: auto;
    height: 50px;
    opacity: 0.8;
    position: absolute;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
}

body.futur header nav .liens {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    height: 100%;
}

body.futur header nav .liens a {
    position: relative;
    display: flex;
    align-items: center;

    font-family: elza, sans-serif;
    font-weight: 600;
    font-size: 16px;

    color: rgba(218, 218, 218, 0.95);
    text-decoration: none;

    padding: 6px 10px;

    /* Lisibilité */
    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.8);

    transition:
        color 0.3s ease,
        text-shadow 0.3s ease;
}

body.futur header nav .liens a:hover {
    color: #ffffff;

    text-shadow:
        0 0 6px rgba(63, 63, 208, 0.8),
        0 0 14px rgba(63, 63, 208, 0.6),
        0 0 26px rgba(63, 63, 208, 0.4);
}


body.futur header nav .liens a.active {
    color: #ffffff;

    text-shadow:
        0 0 8px rgba(63, 63, 208, 0.9),
        0 0 18px rgba(63, 63, 208, 0.7),
        0 0 36px rgba(63, 63, 208, 0.5);
}


body.futur header nav .liens .burger {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    position: relative;
}

body.futur header nav .liens .burger img {
    width: 12px;
    height: 12px;
}




body.futur .menu {
    width: 400px;
    height: 150px;
    margin: 10px auto 0 58%;
    padding: 10px;
    transform-origin: top;
    opacity: 0;
    transform: scale(0) translateY(-20px);

    background: linear-gradient(135deg,
            rgba(63, 63, 208, 0.18),
            rgba(63, 63, 208, 0.05));
    backdrop-filter: blur(12px);

    border: 1px solid white;
    border-radius: 25px;

    box-shadow:
        0 0 12px rgba(63, 63, 208, 0.55),
        0 0 32px rgba(63, 63, 208, 0.35),
        0 0 64px rgba(63, 63, 208, 0.2),

        /* Glow interne */
        inset 0 0 18px rgba(63, 63, 208, 0.6);

    transition: 0.4s ease;

}

body.futur .menu.open {
    opacity: 1;
    transform: scale(1) translateY(0px);
    transition: 0.4s ease;

}

body.futur .menu.close {
    opacity: 0;
    transform: scale(0) translateY(-20px);
    animation: MenuClose 0.01s forwards;
    animation-delay: .3s;
}

@keyframes MenuClose {
    to {
        display: none;
    }
}



body.futur .menu .flex-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    height: 100%;
}


body.futur .menu .flex-box a {
    font-family: elza, sans-serif;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    width: fit-content;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-align: center;

    /* Lisibilité */
    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.8);

    transition:
        color 0.3s ease,
        text-shadow 0.3s ease;
}

body.futur .menu .flex-box a:hover {
    color: #ffffff;

    text-shadow:
        0 0 6px rgba(63, 63, 208, 0.8),
        0 0 14px rgba(63, 63, 208, 0.6),
        0 0 26px rgba(63, 63, 208, 0.4);
}


body.futur .menu .flex-box a.active {
    color: #ffffff;

    text-shadow:
        0 0 8px rgba(63, 63, 208, 0.9),
        0 0 18px rgba(63, 63, 208, 0.7),
        0 0 36px rgba(63, 63, 208, 0.5);
}



body.futur .menu .flex-box a:hover img {
    transform: scale(0.90);

}




body.futur header nav #nextus:after {
    display: none;
}



/* ==============================
   TIME — Hologramme + Glitch
   ============================== */

body.futur .time {
    width: auto;
    height: 80%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    position: relative;
}

/* --- TEXTE HOLOGRAMME --- */
body.futur .time p {
    font-family: "overtime-lcd-pro", sans-serif;
    font-size: 40px;
    margin: 0;
    position: relative;
    display: inline-block;
    color: #7CCEC0;

    /* Glow fort et lisible */
    text-shadow:
        0 0 8px rgba(124, 206, 192, .95),
        0 0 18px rgba(124, 206, 192, .55),
        0 0 28px rgba(63, 63, 208, .65),
        0 0 55px rgba(63, 63, 208, .45);

    /* Faisceau projeté du bas */
    filter:
        drop-shadow(0 18px 18px rgba(124, 206, 192, .35)) drop-shadow(0 28px 30px rgba(63, 63, 208, .28));

    /* Scanlines + halo holographique */
    background:
        radial-gradient(ellipse at bottom,
            rgba(124, 206, 192, .35) 0%,
            rgba(63, 63, 208, .22) 35%,
            rgba(0, 0, 0, 0) 70%),
        repeating-linear-gradient(to bottom,
            rgba(255, 255, 255, .10) 0 1px,
            rgba(0, 0, 0, 0) 1px 4px);
    -webkit-background-clip: text;
    background-clip: text;

    /* Glitch occasionnel */
    animation: holoGlitch 5s infinite;
}

/* --- GLITCH VISIBLE MAIS BREF --- */
@keyframes holoGlitch {

    0%,
    90%,
    100% {
        transform: translate(0, 0) skewX(0deg);
        filter:
            drop-shadow(0 18px 18px rgba(124, 206, 192, .35)) drop-shadow(0 28px 30px rgba(63, 63, 208, .28));
    }

    91% {
        transform: translate(-2px, 0px) skewX(6deg);
        filter:
            drop-shadow(-6px 18px rgba(124, 206, 192, .55)) drop-shadow(6px 22px rgba(63, 63, 208, .45));
    }

    92% {
        transform: translate(2px, 0px) skewX(-6deg);
    }

    93% {
        transform: translate(-1px, 0px) skewX(3deg);
    }

    94% {
        transform: translate(0, 0) skewX(0deg);
    }
}






body.futur .time .passe {
    display: none;
}

body.futur .time .present {
    display: none;
}


body.futur .time .futur {
    display: block;
}











/******************************************************************************************
RESPONSIVE — MENU BURGER + OVERLAY
+ styles liens restaurés
+ time réduit
******************************************************************************************/

:root {
    --overlay-top: 0px;
}

/* Desktop safe */
header nav .liens .burgerMobile,
.mobileOverlay,
.mobilePanel {
    display: none;
}

/* Burger mobile */
header nav .liens .burgerMobile {
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
}

header nav .liens .burgerMobile span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: rgba(218, 218, 218, 0.95);
    transition: transform .25s ease, opacity .2s ease;
}

/* X animation */
body.mobile-open header nav .liens .burgerMobile span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.mobile-open header nav .liens .burgerMobile span:nth-child(2) {
    opacity: 0;
}

body.mobile-open header nav .liens .burgerMobile span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.mobileOverlay {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--overlay-top);
    bottom: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

body.mobile-open .mobileOverlay {
    opacity: 1;
    pointer-events: auto;
}

/* Panel */
.mobilePanel {
    position: fixed;
    display: grid;
    justify-items: center;
    grid-template-columns: 1fr 1fr;
    /* 2 colonnes égales */
    /* espace entre les éléments */

    align-items: center;

    left: 12px;
    right: 12px;
    top: calc(var(--overlay-top) + 12px);
    z-index: 9999;

    padding: 14px;
    border-radius: 18px;

    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;

    transition: opacity .25s ease, transform .25s ease;
}

body.mobile-open .mobilePanel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* =========================
   LIENS — IDENTIQUES AU HEADER
   ========================= */

/* PRESENT */
body.present .mobilePanel a {
    position: relative;
    display: block;
    padding: 12px;
    font-family: elza, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: rgb(218, 218, 218);
    width: fit-content;
    text-align: center;
    text-decoration: none;
}

body.present .mobilePanel a::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 12px;
    width: calc(100% - 24px);
    height: 2px;
    background-color: rgb(218, 218, 218);
    border-radius: 5px;
}

body.present .mobilePanel a:hover::after {
    animation: lien 0.6s ease-in-out forwards;
}

/* PASSE */
body.passe .mobilePanel a {
    display: block;
    padding: 12px;
    text-decoration: underline;
    text-shadow: black 1px 1px 0px;
    width: fit-content;
    font-weight: 600;
    font-size: 16px;
    text-align: center;

    color: rgb(218, 218, 218);
}

/* FUTUR */
body.futur .mobilePanel a {
    display: block;
    padding: 12px;
    font-family: elza, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: rgba(218, 218, 218, 0.95);
    width: fit-content;

    text-decoration: none;
    text-align: center;

    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

body.futur .mobilePanel a:hover {
    color: #ffffff;
    text-shadow:
        0 0 6px rgba(63, 63, 208, 0.8),
        0 0 14px rgba(63, 63, 208, 0.6),
        0 0 26px rgba(63, 63, 208, 0.4);
}

/* Fonds panel */
body.present .mobilePanel {
    background: transparent;
    backdrop-filter: blur(10px);
    border: solid rgba(255, 255, 255, 0.623) 0.2px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, .75);
}

body.futur .mobilePanel {
    background: linear-gradient(135deg, rgba(63, 63, 208, .22), rgba(63, 63, 208, .10));
    backdrop-filter: blur(10px);
    border: 1px solid white;
}

body.passe .mobilePanel {
    background: #e4ab66;
    border-top: solid #e9c79e 3px;
    border-left: solid #e9c79e 3px;
    border-right: solid #936d40 3px;
    border-bottom: solid #936d40 3px;
}

/* Passe = pas de transition */
body.passe .mobileOverlay,
body.passe .mobilePanel,
body.passe header nav .liens .burgerMobile span {
    transition: none !important;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width:768px) {

    html,
    body {
        overflow-x: hidden;
    }

    /* Désactive ancien menu projets */
    body.present .burger,
    body.passe .burger,
    body.futur .burger,
    body.present .menu,
    body.passe .menu,
    body.futur .menu {
        display: none !important;
    }

    header nav .liens>a:not(#nextus) {
        display: none;
    }

    header nav .liens>.time {
        display: flex;
    }

    header nav .liens .burgerMobile {
        display: flex;
    }

    .mobileOverlay {
        display: block;
    }

    /* TIME réduit */
    header nav .liens>.time {
        padding: 6px 8px;
    }

    header nav .liens>.time p {
        font-size: 22px !important;
    }

    body.present header nav,
    body.passe header nav,
    body.futur header nav {
        justify-content: space-between;
        padding: 0 14px;
    }

    header nav .liens {
        gap: 10px;
    }
}

@media (max-width:420px) {
    header nav .liens>.time p {
        font-size: 18px !important;
    }

    .mobilePanel {
        left: 10px;
        right: 10px;
    }
}