/*
Theme Name: Next.Us
Description: Thème WordPress personnalisé développé pour le projet NextUs. Structure minimaliste, modulaire et optimisée pour le développement sur VS Code avec synchronisation FTP.
Author: Yanis SINGER, Mohamed NDIAYE, Andoniaina TOMBOZAZA, Amin MILADI, Alexandre MEUX
Version: 1.0
*/

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

body {
    display: flex;
    flex-direction: column;
    background-color: black;
    overflow-x: hidden;
}

main {
    padding-top: 70px;
    padding-bottom: 100px;
    min-height: 100vh;
    width: 100%;
    background-image: var(--bg-image, url('https://nextus.yanis-singer.com/wp-content/uploads/2026/01/background-2.jpg')) !important;
    background-size: contain;
    background-repeat: repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

main > *{
    z-index: 1;
    position: relative;
}

main::before{
    width: 100%;
    height: 100%;
    background-image: none;
    backdrop-filter: blur(10px);
    position: absolute;
    content: '';
    top: 0px;
    left: 0px;
    transform: scale(1.1);
    z-index: 0;
}



section {
    padding: 0 50px;
    margin-bottom: 100px;
}

a {
    text-decoration: none;
    color: white;
}

/**************************        TEXTE       ***********************************/


h1 {
    font-family: haboro-soft, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 44px;
    margin-top: 20px;
    white-space: normal;
}

h2 {
    font-family: haboro-soft, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 34px;
    margin-top: 15px;
    white-space: normal;

}

h3 {
    font-family: haboro-soft, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    margin-top: 10px;
    white-space: normal;
}

h4 {
    font-family: haboro-soft, sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 20px;
    margin-top: 5px;
    white-space: normal;
}

span.violet {
    color: #B4B7FF;
}

p,
ul,
li,
label,
textarea {
    font-family: elza, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    margin-top: 5px;
    white-space: normal;
    color: white;
}

p:has(+ ul) {
    margin-bottom: 0 !important;
}

ul {
    margin-left: 30px;
}


p a {
    font-family: elza, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    text-decoration: underline;
    color: #77B6D6;
    height: auto;
    width: fit-content;
    transition: .3s ease-in;

}



p a:hover {
    color: rgb(255, 255, 255);
    transition: .3s ease-in;
}


/**************************        BOUTONS       ***********************************/


.bouton1,
button {
    font-family: elza, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    background-color: #3D3B4B;
    padding: 8px;
    border-radius: 8px;
    border: none;
    box-shadow: inset 3px 3px 5px #807BA4;
    height: auto;
    width: fit-content;
    transform: scale(1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: .3s ease-in;

}

.bouton1:hover,
button:hover {
    box-shadow: inset 3px 3px 5px #807BA4, -2px -2px 5px #77B6D6, 2px 2px 5px #71C5B2;
    color: white;
    transition: .3s ease-in;
}

.bouton1:active,
button:active {
    box-shadow: inset 3px 3px 5px #222029, -2px -2px 5px #77B6D6, 2px 2px 5px #71C5B2;
    transform: scale(0.95);
    transition: .1s ease-in;
}


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

    text-decoration: none;
    color: white;
    backdrop-filter: blur(10px);
    font-size: 18px;
    font-weight: 500;
    padding: 5px;
    border: solid white 2px;
    border-radius: 8px;
    height: auto;
    width: fit-content;
    display: block;
    transition: .3s ease-in;

}

.bouton2:hover {
    color: white;
    background-color: #3D3B4B;
    border: solid #3D3B4B 2px;
    transition: .3s ease-in;
}

/**************************        BANDEAU       ***********************************/


section.bandeau {
    background-color: #0D0E2D;
    width: 100%;
    height: 400px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 50px;
    animation: bandeau 1s ease-in-out forwards;
    transform: scaleX(0);
    transform-origin: center;
    border-bottom: solid rgba(255, 255, 255, 0.623) 0.2px;
    border-top: solid rgba(255, 255, 255, 0.623) 0.2px;

}

section.reverse {
    flex-direction: row-reverse;
}

section.transparent {
    background-color: #00000000;
    border: none;
    padding: 0 50px;

}

section.bandeau>* {
    opacity: 0;
    animation: contenu 0.5s ease-in forwards;
    animation-delay: 1s;
}

section.bandeau> :last-child {
    max-width: 60%;
}


@keyframes bandeau {
    to {
        transform: scaleX(1);
    }
}

@keyframes contenu {
    to {
        opacity: 1;
    }
}


/**************************        CONTAINER       ***********************************/


.container {
    min-width: 300px;
    width: fit-content;
    border: solid rgba(255, 255, 255, 0.623) 0.2px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    background-color: #0000001e;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 15px;
    transition: .3s ease-out;

}

.container:hover {
    transform: scale(1.03);
    box-shadow: -2px -2px 8px #77B6D6, 2px 2px 8px #71C5B2;
    transition: .3s ease-out;
}

.container.no-hover:hover{
    transform: scale(1);
    box-shadow: none;
    transition: .3s ease-out;

}

.line {
    background-color: rgba(255, 255, 255, 0.623);
    height: 0.2px;
    width: 100%;
}


/**************************        IMAGES       ***********************************/

img {
    object-fit: cover;
    border-radius: 15px;
    max-width: 100%;
    max-height: 100%;
}

.glitch {
    width: auto;
    height: auto;
    position: relative;
    z-index: 0;
}


.glitch::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 15px;
}

.glitch.bottom:after {
    right: 15px;
    top: 15px;
}


.glitch.top:after {
    left: 15px;
    bottom: 15px;
}


.glitch.bleu:after {
    background-color: #77B6D6;
}   

.glitch.vert:after {
    background-color: #71C5B2;
}

/****      block : image        ***/

figure.wp-block-image {
    width: fit-content;
    height: fit-content;
}


/**************************        MESSAGES       ***********************************/

.message {
    background-color: rgb(56, 107, 226);
    color: white;
    padding: 10px;
    border-radius: 10px;
    height: auto;
    max-width: 270px;
    width: fit-content;
    min-width: 50px;
    position: relative;
    word-wrap: break-word;
    /* Coupe les mots trop longs */
    overflow-wrap: break-word;
    /* Compatibilité moderne */
}

.message:after {
    content: "";
    position: absolute;
    right: -4px;
    /* position horizontale */
    bottom: 6px;
    /* position verticale */
    width: 12px;
    height: 12px;
    background: rgb(56, 107, 226);
    border-bottom-right-radius: 12px;
    transform: rotate(45deg);
}

/**************************        OVERLAY       ***********************************/

.filtre-overlay {
    position: fixed;
    inset: 0;
    background: transparent; /* aucun assombrissement */
    z-index: 80; /* sous le menu */
    opacity: 0;
    pointer-events: none;
}

/* Overlay actif */
.filtre-overlay.active {
    opacity: 1;
    pointer-events: auto;
}


/**************************        OVERLAY Changement temps      ***********************************/


/* ============================= */
/* OVERLAY TEMPOREL – GLOBAL     */
/* ============================= */

#timewarp-overlay{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483647;

  background: #000;

  /* invisible par défaut */
  visibility: hidden;
  pointer-events: none;

  /* fondu via opacity */
  opacity: 0;
  transition: opacity 500ms ease;
}

/* présent (dans le flow visuel) */
#timewarp-overlay.is-visible{
  visibility: visible;
}

/* état “affiché” (opacity 1) : doit rester pendant toute l’animation */
#timewarp-overlay.is-active{
  opacity: 1;
}

/* ============================= */
/* CANVAS                        */
/* ============================= */

#timewarp-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================= */
/* RIDEAU D’INTRO (OUVERTURE)    */
/* ============================= */

#timewarp-curtain{
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 1;
  pointer-events: none;
}

#timewarp-overlay.is-running #timewarp-curtain{
  animation: timewarpCurtainOpen 700ms cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes timewarpCurtainOpen{
  0%   { opacity: 1; }
  45%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ============================= */
/* GLOW (COULEURS DEMANDÉES)     */
/* ============================= */

#timewarp-glow{
  position: absolute;
  inset: -10%;
  pointer-events: none;

  background: radial-gradient(circle at center,
    rgba(56,107,226,0.22) 0%,
    rgba(113,197,178,0.14) 28%,
    rgba(119,182,214,0.12) 45%,
    rgba(0,0,0,0) 70%
  );

  filter: blur(18px);
  animation: timewarpPulse 1.8s ease-in-out infinite;
}

@keyframes timewarpPulse{
  0%,100%{
    transform: scale(1);
    opacity: .9;
  }
  50%{
    transform: scale(1.04);
    opacity: 1;
  }
}

/* ============================= */
/* VIGNETTAGE                    */
/* ============================= */

#timewarp-vignette{
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.35) 55%,
    rgba(0,0,0,0.9) 100%
  );

  mix-blend-mode: multiply;
}
