/* Styles pour la page "Get Started" */

/* Conteneur image entête */
.top-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
}

.laboratory-img {
    width: 100%;
    max-height: 450px;
    display: block;
    object-fit: cover;
    clip-path: inset(0 0 20% 0);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* blanc semi-transparent */
}

.title {
    position: absolute;
    top: 17%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0d96a4; /* couleur du texte */
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    z-index: 2; /* au-dessus de l'overlay */
}

/* Sous-titre de la page*/
.subtitle-container {
    text-align: center;
    margin: 30px 0;
    
}

.subtitle {
    font-size: 3rem;
    font-weight: lighter;
    color: #0d96a4;
}

/* Bloc infos avec vidéo */

.infos-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.left-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;    
}

.left-text h3 {
    margin-bottom: 15px;
}

.left-text ul {
    list-style: none;
    padding: 0;
}

.left-text li {
    margin-bottom: 10px;
}

.right-video{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-video video {
    border-radius: 8px;
    height : 315px;
}

/* Navigation rapide */
.quick-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.nav-btn {
    display: inline-block;
    padding: 12px 20px;
    color: #142c70;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    transition: background-color 0.3s ease;
}

/* Couleurs spécifiques navigation rapide*/
.btn-env {
    background-color: #82eae6; 
}
.btn-env:hover {
    background-color: #3eded9;
}

.btn-trainer {
    background-color: #f7f180; 
}
.btn-trainer:hover {
    background-color: #eae02f;
}

.btn-learner {
    background-color: #80fb72; 
}
.btn-learner:hover {
    background-color: #42ed2f;
}

/* Scroll fluide */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 600px) {
    .quick-nav {
        flex-direction: column;
        align-items: center;
    }
}

/* Bouton retour en haut */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    background-color: #0d96a4;
    color: #fafafa;
    padding: 12px 14px;
    border-radius: 50%;
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.scroll-top:hover {
    background-color: #0d96a4;
    transform: translateY(-3px);
}

/* Sections pleines et hauteur minimale */
.env, .vm_trainer, .vm_learner {
    min-height: 800px;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

.env-container h1, .vmTrainer-container h1, .createForm-container h1 {
    text-align: center;
    color: #0d96a4;
    margin-bottom: 30px;
    font-size: 2rem;
}

.env-container h2, .vmTrainer-container h2, .createForm-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2rem;
    font-weight: lighter;
}

/* Optionnel : couleur de fond différente pour distinguer chaque section */
.env { background-color: #D0EAE9; }
.vm_trainer { background-color: #fbfae5; }
.vm_learner { background-color: #def6db; }


/* Conteneur env-step centré et limité à 80% */
.env-step, .vmt-steps, .formation-steps {
    width: 80%;
    margin: 0 auto; /* centre horizontalement */
    padding: 20px;
    box-sizing: border-box;
}

.separator {
    border-top: 2px solid #142c70;
    border-bottom: 2px solid #142c70;
    height: 20px; /* espace entre les deux lignes */
}

/* Étapes */

.env-step .step, .vmt-steps .step, .formation-steps .step {
    font-size: 1.3rem;       /* plus gros que le texte normal */
    color: #142c70;          /* couleur différente (bleu) */
    font-weight: bold;
    margin-bottom: 10px;
}

.env-step .substep, .vmt-steps .substep, .formation-steps .substep {
    margin-left: 2%;
    font-size: 1.2rem;       /* plus gros que le texte normal */
    color: #202e52;          /* couleur différente (bleu) */
    font-weight: bold;
    margin-bottom: 10px;
    font-style: italic;
}

.env-step .contentstep, .vmt-steps .contentstep, .formation-steps .contentstep {
    margin-left: 2%;
    text-align: justify;     /* justifie le texte */
    margin-bottom: 15px;
    line-height: 1.6;       /* espace entre les lignes */
    text-align: justify;
}

.env-step .strong, .vmt-steps .strong, .formation-steps .strong {
    font-weight: bolder;
    font-weight: 900;
}

.env-step p, .vmt-steps p, .formation-steps p {
    text-align: justify;
}

/* Lien */
.env-step a, .vmt-steps a, .formation-steps a {
    margin-left: 2%;
    display: inline-block;
    margin-bottom: 10px;
    color: #0078d7;        /* couleur des liens */
    word-break: break-all; /* si URL longue */
    text-align: justify;
}

/* Images */
.env-step img, .vmt-steps img, .formation-steps img {
    width: 70%;
    height: auto;
    margin: 20px auto;
    border-radius: 6px;
    display: block;        /* centre l'image */
}

/* Lightbox pour zoomer sur l'image */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    padding: 20px;
    background: rgba(0,0,0,0.8);
    top: 0; left: 0; right: 0; bottom: 0;
    text-align: center;
}
.lightbox img {
    transform: scale(1.5);
    max-width: 90%;
    max-height: 80%;
    margin-top: 5%;
    text-align: center;
    }

/* Listes */
.env-step ul, .vmt-steps ul, .formation-steps ul {
    margin-left: 2%;
    padding-left: 20px;  /* indent des puces */
    margin-bottom: 20px;
}

.env-step li, .vmt-steps li, .formation-steps li {
    margin-bottom: 8px;
    text-align: justify;
}

/* Code block avec bouton copier ou simple*/
.formation-steps code {
    position: relative;
    background: #f5f5f5;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 20px;
}


.code-block {
    position: relative;
    background: #f5f5f5;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.code-block pre {
    margin: 0;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0078d7;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: #005ea6;
}

/* Menu latéral pour la section "Créer une formation" */
.menu-formation {
    display: flex;
    flex-direction: column; /* aligne verticalement */
    margin-bottom: 25px;
}

.menu-formation a {
    text-decoration: none;  /* enlève le soulignement */
    color: #0066cc;         /* couleur du lien (modifiable) */
    font-weight: 500;
    font-size: 1.2rem;
    padding: 5px 20px;
    margin-left: 5%;
    
}

.menu-formation a:hover {
    text-decoration: underline; /* petit effet au survol */
}