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

Present

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


body.present footer {
    background-color: #0C0C0D;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
    overflow: hidden;
}

body.present footer .line {
    width: 100%;
    height: 1px;
    background-color: white;
}

body.present footer a {
    color: white;
    text-decoration: none;
    font-family: elza, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}

body.present footer .top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

body.present footer .logo-passe {
    display: none;
}


/*****************            ANIMATION LOGO                **********************/


body.present footer #nextus {
    width: 120px;
    margin: 0 auto;
    display: block;
    position: relative;
}

/* Conteneur + glow */
.logo-glitch {
    width: 100%;
    height: 100px; /* adapte si besoin */
    background-image: url("http://nextus.mmi-iutsf.org/wp-content/uploads/2025/12/logo-blanc-1.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    animation: glitch 5s 5s infinite;

    /* Glow réel */
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4))
            drop-shadow(0 0 25px rgba(255,255,255,0.3))
            drop-shadow(0 0 40px rgba(255,255,255,0.2));
}

/* Copies */
.logo-glitch::before,
.logo-glitch::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: inherit;
    background-repeat: inherit;
    background-position: inherit;
    overflow: hidden;
}

/* Déplacements réduits (moins large) */
.logo-glitch::before {
    left: -1px; /* avant : -2px */
    filter: drop-shadow(-3px 0 rgba(0, 0, 0, 0)); /* avant : -5px */
    animation: noise-1 3s linear infinite alternate-reverse, glitch 5s 5.05s infinite;
}

.logo-glitch::after {
    left: 1px; /* avant : 2px */
    filter: drop-shadow(-3px 0 rgba(0, 0, 0, 0));
    animation: noise-2 3s linear infinite alternate-reverse, glitch 5s 5s infinite;
}

/* Animation glitch */
@keyframes glitch {
  1% {
    transform: rotateX(8deg) skewX(60deg); /* moins violent aussi */
  }
  2% {
    transform: rotateX(0deg) skewX(0deg);
  }
}

/* Noise (inchangé) */
@keyframes noise-1 {
  0%   { clip-path: inset(10% 0 60% 0); }
  20%  { clip-path: inset(40% 0 20% 0); }
  40%  { clip-path: inset(70% 0 5% 0); }
  60%  { clip-path: inset(30% 0 50% 0); }
  80%  { clip-path: inset(5% 0 70% 0); }
  100% { clip-path: inset(60% 0 15% 0); }
}

@keyframes noise-2 {
  0%   { clip-path: inset(60% 0 20% 0); }
  20%  { clip-path: inset(20% 0 40% 0); }
  40%  { clip-path: inset(10% 0 70% 0); }
  60%  { clip-path: inset(50% 0 25% 0); }
  80%  { clip-path: inset(70% 0 5% 0); }
  100% { clip-path: inset(25% 0 60% 0); }
}


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





body.present footer .liens {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
}

body.present footer .liens .titres,
body.present footer .liens .details {
    display: flex;
    justify-content: space-between;
}

body.present footer .liens .titres>* {
    width: 20%;
}


body.present footer .liens .details>* {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 20%;

}

body.present footer .bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding:  0 30px;
}








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

Passe

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


body.passe footer {
    background-color: white;
    color: black;
    border-top: solid black 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
    overflow: hidden;
}

body.passe footer .line {
    width: 100%;
    height: 2px;
    background-color: black;
}

body.passe footer a {
    color: black;
    text-decoration: none;
    font-family: elza, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}

body.passe footer .top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}




body.passe footer #nextus {
    width: 120px;
    margin: 0 auto;
    display: block;
    position: relative;
}

body.passe footer .logo-passe {
    width: auto;
    height: 100px;
    display: block;
}


body.passe footer .logo-present {
    display: none;
}







body.passe footer .liens {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
}

body.passe footer .liens .titres,
body.passe footer .liens .details {
    display: flex;
    justify-content: space-between;
}

body.passe footer .liens .titres>* {
    width: 20%;
}


body.passe footer .liens .details>* {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 20%;

}

body.passe footer .bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding:  0 30px;
}




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

Futur

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

/* =========================================================
   FOOTER — Futur (adapté au style global)
   ========================================================= */

body.futur footer{
    position: relative;
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    color: white;
}


/* line cohérente avec ton global */
body.futur footer .line{
    width:100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,0.55),
        rgba(124, 206, 192, 0.45),
        rgba(63, 63, 208, 0.55),
        rgba(255,255,255,0)
    );

    box-shadow:
        0 0 12px rgba(63, 63, 208, 0.45);
}

/* top / bottom */
body.futur footer .top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 22px;
}

/* logo */
body.futur footer #nextus{
    width: 130px;
    min-width: 110px;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Ton glitch reste, j’ajoute juste une cohérence “couleurs globales” */
body.futur footer .logo-glitch{
    height: 92px;
    filter:
        drop-shadow(0 0 12px rgba(63,63,208,0.55))
        drop-shadow(0 0 28px rgba(63,63,208,0.35))
        drop-shadow(0 0 18px rgba(124,206,192,0.25));
}

/* Liens */
body.futur footer a{
    position: relative;
    color: white;
    text-decoration: none;

    font-family: elza, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;

    opacity: 0.92;

    transition:
        opacity .25s ease,
        color .25s ease,
        text-shadow .25s ease,
        transform .18s ease;
}

/* underline holo (cohérent avec tes <p a>) */
body.futur footer a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-2px;
    width:100%;
    height:1.5px;
    border-radius:10px;

    background: linear-gradient(90deg,
        rgba(119, 182, 214, 0),
        rgba(119, 182, 214, 0.75),
        rgba(119, 182, 214, 0)
    );

    box-shadow:
        0 0 6px rgba(119, 182, 214, 0.65),
        0 0 14px rgba(63, 63, 208, 0.25);

    opacity: 0;
    transform: scaleX(0.92);
    transition: opacity .25s ease, transform .25s ease;
}

body.futur footer a:hover{
    opacity: 1;
    color: #ffffff;

    text-shadow:
        0 0 6px rgba(124, 206, 192, 0.55),
        0 0 16px rgba(63, 63, 208, 0.35);

    transform: translateY(-1px);
}

body.futur footer a:hover::after{
    opacity: 1;
    transform: scaleX(1.05);
}

body.futur footer .logo-passe {
    display: none;
}


body.futur footer .logo-present {
    display: block;
}



/* Colonnes de liens */
body.futur footer .liens{
    width: min(760px, 70%);
    display:flex;
    flex-direction:column;
    gap: 14px;
    z-index: 1;
}

body.futur footer .liens .titres,
body.futur footer .liens .details{
    display:flex;
    justify-content:space-between;
    gap: 18px;
}

body.futur footer .liens .titres > *{
    width: 20%;
    min-width: 120px;

    /* un petit style “titre colonne” */
    font-family: haboro-soft, sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.2px;

    color: #B4B7FF;
    text-shadow: 0 0 10px rgba(63,63,208,0.25);
}

body.futur footer .liens .details > *{
    width: 20%;
    min-width: 120px;

    display:flex;
    flex-direction:column;
    gap: 7px;
}

/* bottom */
body.futur footer .bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    padding: 0 2px;
    z-index: 1;
}

/* Petit texte bottom */
body.futur footer .bottom p,
body.futur footer .bottom span{
    font-family: elza, sans-serif;
    font-size: 14px;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 900px){
    body.futur footer .top{
        flex-direction: column;
        align-items: center;
        gap: 18px;
        text-align: center;
    }

    body.futur footer #nextus{
        margin: 0 auto;
    }

    body.futur footer .liens{
        width: 100%;
    }

    body.futur footer .liens .titres,
    body.futur footer .liens .details{
        flex-wrap: wrap;
        justify-content: center;
    }

    body.futur footer .liens .titres > *,
    body.futur footer .liens .details > *{
        width: 45%;
        min-width: 160px;
    }

    body.futur footer .bottom{
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px){
    body.futur footer{
        padding: 30px 18px;
    }

    body.futur footer .liens .titres > *,
    body.futur footer .liens .details > *{
        width: 100%;
        min-width: 0;
    }

    /* ========================================================================= */
/* ADAPTATION MOBILE DU FOOTER (Écrans < 768px)                              */
/* S'applique au Présent, Passé et Futur                                     */
/* ========================================================================= */

@media (max-width: 768px) {

    /* 1. On passe la section "Top" en colonne */
    body.present footer .top,
    body.passe footer .top,
    body.futur footer .top {
        flex-direction: column;
        align-items: center; /* Centre le logo et les liens */
        gap: 40px; /* Plus d'espace entre le logo et les liens */
    }

    /* 2. Le conteneur des liens prend 100% de la largeur */
    body.present footer .liens,
    body.passe footer .liens,
    body.futur footer .liens {
        width: 100%;
        gap: 30px; /* Espace entre chaque bloc de liens */
    }

    /* 3. On modifie l'affichage en grille/colonne pour les liens */
    /* On cache la ligne des titres qui ne fonctionne pas en empilé */
    body.present footer .liens .titres,
    body.passe footer .liens .titres,
    body.futur footer .liens .titres {
        display: none; 
    }

    /* On passe les "détails" (les colonnes) en vertical */
    body.present footer .liens .details,
    body.passe footer .liens .details,
    body.futur footer .liens .details {
        flex-direction: column;
        align-items: center;
        gap: 40px; /* Espace entre les différentes "colonnes" de base */
    }

    body.present footer .liens .details > *,
    body.passe footer .liens .details > *,
    body.futur footer .liens .details > * {
        width: 100%;
        align-items: center; /* Centre les liens à l'intérieur de chaque groupe */
        text-align: center;
        gap: 15px; /* On aère les liens pour les gros doigts */
    }

    /* 4. On empile la section "Bottom" */
    body.present footer .bottom,
    body.passe footer .bottom,
    body.futur footer .bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 0 15px;
    }
}
}