html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.evenementiel-content {
    height: 100vh !important; /* Full viewport height */
    width: 100%;      /* 100% of viewport width */
    box-sizing: border-box;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: hidden !important;
    background: linear-gradient(45deg, #ffffff, #000000, #ffffff) !important;
    background-size: cover;
    /* Animation settings */
    animation: bg-move 30s linear infinite;
    scrollbar-width: thin;
    scrollbar-color: #fff4e3 #000000;
    margin: 0;
   
}

/* Animate background position diagonally */
@keyframes bg-move {
    0% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 100% 0%;
    }
}


.edition-image {
    display: flex;
    justify-content: center;
    flex-direction: row;
    height: 100% !important; /* Full viewport height */
    width: 100%;
    gap: 2rem;
    margin-top: 0;
}

.evenementiel-content h1 {
    margin-top: auto; /* pushes h1 to the bottom */
    display: flex;
    font-family: 'Orbitron', sans-serif;
    font-size: 4.1rem;
    letter-spacing: 1px;
    flex-direction: column;
    /* Remove height: 100%; and justify-content: center; */
    text-align: center;
    color: #fff4e3 !important;
    text-shadow: 10px 10px 10px #000000;
    font-weight: bold;
}

.evenementiel-content p {
    /* pushes h1 to the bottom */
    display: flex;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    flex-direction: column;
    /* Remove height: 100%; and justify-content: center; */
    text-align: center;
    color: #fff4e3;
    font-weight: bold;
}

.evenementiel-content a {
    margin-top: auto; /* pushes h1 to the bottom */
    display: flex;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    flex-direction: column;
    /* Remove height: 100%; and justify-content: center; */
    text-align: center;
    color: #ffe6e6;
    text-shadow: 10px 10px 10px #000000;
    list-style: none;
    text-decoration: none;
    font-weight: bold;
}

.edition-flex {
    margin-top: 1rem;
    background: transparent;
    border-radius: 12px;
   padding: 1rem 1.5rem;
   width: 60%;
   height: auto;
   margin-bottom: 3rem;

}

.edition-flex h2 {
    
    color: #fff4e3;
     display: flex;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 1px;
    flex-direction: column;
    /* Remove height: 100%; and justify-content: center; */
    text-align: center;
    font-weight: bold;
}

.auteur {
    margin-top: 1rem;
    background: transparent;
    border-radius: 12px;
   padding: 1rem 1.5rem;
   width: 60%;
    height: auto;
    margin-bottom: 3rem;
   

}

.auteur h2 {
    color: #fff4e3;
     display: flex;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 1px;
    flex-direction: column;
    /* Remove height: 100%; and justify-content: center; */
    text-align: center;
    font-weight: bold;
}

.edit-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 28px;
    background: linear-gradient(45deg, #ffffff, #000000, #ffffff);
    color: #000000;
    border: #fff4e3 solid 1px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    width: 40%;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
   
}

.edit-btn:hover {
   background: linear-gradient(90deg, #376cff, #fff4e3, #376cff);
    color: #000000;
   transform: scale(1.03);
    border: #fff4e3 solid 1px;
     font-size: 0.9em;
     font-family: 'orbitron', sans-serif;
     font-weight: bold
}

a.fragment-link {
    text-decoration: none;
}

.nice-btn {
  padding: 0.7rem 1.7rem;
    margin-top: 0 !important;
    margin-left: 1.5rem;
    margin-right: 0;
    margin-bottom: 0;
    background: linear-gradient(90deg, #000000, #fff4e3, #000000);
    color: #000000;
    border:1px solid #fff4e3;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: auto;
    align-self: flex-start;
    font-size: 0.8rem;
    font-family: 'orbitron', sans-serif;
    animation: all 0.3s ease;
    text-decoration: none;
}

.nice-btn:hover {
    background: linear-gradient(90deg, #376cff, #fff4e3, #376cff);
    color: #000000;
    transform: scale(1.03);
}

.img-edit {
    display: block;
    flex-direction: column;
    width: 100%;
    height: 370px;
    border-radius: 8px;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
        box-shadow: 3px 3px 15px #fff4e3;
        margin-bottom: 2rem;
        margin-top: 2rem;
}

.img-lec {
    display: block;
    flex-direction: column;
    width: 42%;
    height: 360px;
    border-radius: 12px;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 3px 3px 15px #da065e;
    animation: pulse 3s infinite;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 3px 3px 15px #da065e;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 5px 5px 20px #da065e;
    }
    100% {
        transform: scale(1);
        box-shadow: 3px 3px 15px #da065e;
    }
}