html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Assure que la page prend toute la hauteur */
    width: 100%;
    overflow-x: hidden; /* Désactive le défilement horizontal */
    background: linear-gradient(135deg, #1f1f1f, #3f0071);
    background-size: cover; /* Assurer que le fond couvre toute la page */
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 120%;
    min-height: 120%; /* Le corps de la page prendra toujours au moins la hauteur de la fenêtre */
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-shadow: 0 0 10px #FF1493, 0 0 20px #FF69B4;
    box-sizing: border-box;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header .connexion {
    background: #FF1493;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 5vh;
    padding-top: 10vh!important; /* Ajout d'un margin-top pour compenser la hauteur du header fixe */
    z-index: 2;
}

.left-section,
.right-section {
    flex: 1;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
}

.right-section {
    max-height: 450px; /* Définir une hauteur maximale */
    overflow-y: auto; /* Activer le défilement vertical */
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding-top: calc(85vh) !important; /* Ajout d'un margin-top pour compenser la hauteur du header fixe */
        margin-left: 10vh !important;
        margin-right: 10vh !important;

    }

    .right-section {
        min-height: 450px;
    }
}

.input-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
}

.need50percent {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    flex: 1 1 calc(50% - 10px);
}

input {
    background-color: #222;
    color: white;
    border: 2px solid #FF1493;
    text-align: center;
    box-shadow: 0 0 10px #FF1493;
    transition: box-shadow 0.3s ease-in-out;
}

input:focus {
    box-shadow: 0 0 20px #FF1493;
}

.need50percentbtn {
    background: linear-gradient(135deg, #ff0077, #7700ff);
    color: white;
    text-shadow: 0 0 5px #fff;
    box-shadow: 0 0 10px #ff0077, 0 0 20px #7700ff;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

label {
    background: linear-gradient(135deg, #ff0077, #7700ff);
    padding: 10px;
    border-radius: 10px;
    color: white;
    text-shadow: 0 0 5px #fff;
    box-shadow: 0 0 10px #ff0077, 0 0 20px #7700ff;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    flex: 1 1 calc(50% - 10px);
}

button:hover, label:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #ff0077, 0 0 30px #7700ff;
}

.video-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.video-list li {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
    width: 100%;
    transition: transform 0.2s ease-in-out;
}

.video-list li:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 255, 1);
}

.video-list a {
    text-decoration: none;
    color: #FF1493;
    font-size: 1.3rem;
    text-shadow: 0 0 5px #FF1493, 0 0 15px #FF1493;
}

.video-list a:hover {
    color: #FF69B4;
}

footer {
    color: #FF1493;
    font-size: 1rem;
    text-align: center;
    margin-top: 30px;
}

/* Full width on smaller screens */
@media (max-width: 480px) {
    .need50percent {
        flex: 1 1 100%;
    }
}

#downloadButton {
    margin-top: 20px !important;
    display: block !important; 
    margin: 0 auto;
}

#editBtn {
    text-align: center;
    margin-top: 20px !important;
    display: block !important;
}