

/* HEADER------------------------------ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: top 0.3s;
}

.header-container {
    max-width: 1440px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 50px;
    padding-right: 50px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'GeneralSans-Bold';
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Animación para el header */
@keyframes slideDownFade {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-animate {
    animation: slideDownFade 0.8s ease forwards;
}



/* Oculta el contenido del sitio hasta que se muestre */
.hidden {
    display: none;
}



/* STRUCTURE-------------------------- */

body {
    margin: 0 auto;
    max-width: 100%;
    background-color: rgb(89, 89, 250);
    font-family: 'GeneralSans-Regular';
    color: white;
}

h1 {
    font-family: 'GeneralSans-Bold';
    text-transform: uppercase;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

main {
    margin: 10px auto;
    max-width: 1440px;
    padding: 50px;
}

/* VIDéOS  -------------------------------- */

/* Vidéo plein écran */
.video-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    z-index: 1000;
    overflow: hidden;
}


.video-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    touch-action: manipulation;
}

.video-section.hidden {
    display: none; /* Cache la section une fois terminée */
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Indique qu'on peut cliquer */
}

#secondVideoSection {
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}



/* bouton discret */
.reload-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.2rem;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1015;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease, transform 0.3s ease;
}

.reload-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.reload-button.hidden {
    display: none;
}



/* Listes de Metiers --------------------------- */

.video-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    z-index: 5;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.video-indicator.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    animation: bounceIn 0.5s ease;
}

.video-indicator.hidden {
    opacity: 0;
    transform: translateX(-50%) scale(0.95);
}

@keyframes bounceIn {
    0% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateX(-50%) scale(1.05);
        opacity: 1;
    }
    80% {
        transform: translateX(-50%) scale(0.97);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}



/* .video-indicator.hidden {
    display: none;
} */

@keyframes pulseIndicator {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}


.formations-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(248, 141, 42, 0.85); */
    background-color: rgba(12, 12, 64, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.formations-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}


.formations-content {
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 10px;
    color: rgb(0, 0, 0);
    text-align: left;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.formations-overlay:not(.hidden) .formations-content {
    transform: scale(1);
    opacity: 1;
}

.formations-content h3 {
    margin-bottom: 15px;
}

.close-overlay {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: rgb(0, 0, 0);
    cursor: pointer;
}



.listeMetiers{
    margin-top: 200px;
    margin-bottom: 200px;
}

.listeMetiers video {
    width: 100%; /* Ajusta el ancho al contenedor */
    max-width: 1440px; /* Limita el tamaño */
    height: auto; /* Mantiene las proporciones */
}

.video-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-container.visible {
    opacity: 1;
    transform: translateY(0);
}


.pulse-button {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background-color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1010;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pulse-button.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: scaleIn 0.5s ease, pulse 1.5s infinite 0.5s;
}


.hint-button {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    animation: bounce 1s infinite;
    z-index: 1011;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -10px);
    }
}


/* Animación de aparición con escala */
#continueButton {
    position: absolute;
    top: 50%; /* Centrado verticalmente */
    left: 50%; /* Centrado horizontalmente */
    transform: translate(-50%, -50%) scale(0); /* Inicia reducido */
    width: 60px; /* Tamaño del botón */
    height: 60px; /* Tamaño circular */
    background-color: white; /* Fondo del botón */
    border: none; /* Sin bordes */
    border-radius: 50%; /* Botón circular */
    cursor: pointer; /* Interactivo */
    z-index: 1010; /* Por encima */
    display: none; /* Oculto por defecto */
    opacity: 0; /* Transparente inicialmente */
    transition: opacity 0.5s ease; /* Transición suave */
}

#continueButton.show {
    display: block; /* Se muestra cuando recibe la clase */
    opacity: 1; /* Totalmente visible */
    transform: translate(-50%, -50%) scale(1); /* Escala al tamaño normal */
    animation: scaleIn 0.5s ease, pulse 1.5s infinite 0.5s; /* Combina aparición y palpitación */
}

/* Animación de aparición */
@keyframes scaleIn {
    0% {
        transform: translate(-50%, -50%) scale(0); /* Empieza reducido */
        opacity: 0; /* Transparente */
    }
    100% {
        transform: translate(-50%, -50%) scale(1); /* Tamaño normal */
        opacity: 1; /* Visible */
    }
}

/* Animación de palpitación */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1); /* Tamaño normal */
        background-color: white; /* Color original */
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2); /* Más grande */
        background-color: #f1f1f1; /* Fondo más claro */
    }
    100% {
        transform: translate(-50%, -50%) scale(1); /* Regresa al tamaño original */
        background-color: white; /* Fondo original */
    }
}





/* Estilo para el formulario */
.apple-form {
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.apple-form label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #f1f1f1;
}

.apple-form input,
.apple-form select,
.apple-form textarea {
    padding: 5px 8px;
    font-size: 1rem;
    background-color: #f9f9f9;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 10px;
    transition: border 0.3s, box-shadow 0.3s;
}

.apple-form input:focus,
.apple-form select:focus,
.apple-form textarea:focus {
    border-color: rgb(89, 89, 250);
    box-shadow: 0 0 0 2px rgba(89, 89, 250, 0.3);
    outline: none;
}

.apple-form .checkbox-label {
    font-size: 0.85rem;
    color: #f1f1f1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.apple-form button {
    padding: 12px 20px;
    background-color: #F88D2A;
    color: rgb(255, 255, 255);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'GeneralSans-Bold';
}




/* Video interactivo */
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Indica que el video es interactivo */
}


/* Efecto de desenfoque y transición */
.video-section.blend {
    animation: fadeOutBlur 1.5s forwards; /* Transición combinada */
}

/* El contenido aparece con un fade-in */
.main-content.fade-in {
    animation: fadeInContent 1.5s forwards;
}

.fade-in {
    animation: fadeInContent 1.5s forwards;
}

@keyframes fadeInContent {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
/* Animación de desvanecimiento con desenfoque */
@keyframes fadeOutBlur {
    0% {
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        filter: blur(10px);
    }
}

/* Animación para el contenido */
@keyframes fadeInContent {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/*FERMETURE ----------------------- */

#exitOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(89, 89, 250);
    z-index: 9999;
    transition: opacity 0.8s ease;
    opacity: 0;
    pointer-events: none;
}

#exitOverlay.show {
    opacity: 1;
    pointer-events: all;
}

#transitionOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(89, 89, 250);
    z-index: 9998;
    opacity: 1;
    transition: opacity 1s ease;
    pointer-events: none;
}





/* FOOTER  ------------------------------------------*/




 footer{
    background-color: rgb(248, 141, 42);
    color: white;
    height: 500px;
    margin-top: 200px;
    padding: 50px;
 }

 .info-foot{
    margin: 10px auto;
    max-width: 1440px;
    width: auto;
    height: 500px;
    display:flex;
    align-items:end;
    justify-content: space-between;
 }

/* media */

 @media (max-width: 960px) {
    .formations-content {
        padding: 20px;
        font-size: 0.95rem;
    }

    .apple-form {
        padding: 10px;
    }

    .video-indicator {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}



.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    animation: bounceArrow 1.5s infinite;
    transition: opacity 0.4s ease;
}

.scroll-indicator.show {
    opacity: 1;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

