/* Masquer l'input de fichier classique */
input[type="file"] {
    display: none;
}

/* Zone de dépôt pour vidéos/audios */
.file-input-wrapper {
    width: 100%;
    max-width: 200px;
    min-height: 150px;
    margin: 0 auto 20px;
    border: 2px dashed #acb2b8;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f4f6;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s ease;
    position: relative; /* Ajout de cette ligne */
}


.file-input-wrapper:hover {
    background-color: #e2e8f0;
}

.file-input-wrapper label {
    width: 100%;
    max-width: 190px;
    font-size: 16px;
    color: #acb2b8;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 15px;
    display: block;
}

/* Liste des médias (vidéos/audio) */
.list_media {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
    margin-bottom: 30px;
}

.list_media li {
    flex: 1 1 calc(25% - 20px); /* 4 colonnes par défaut (PC) */
    max-width: calc(25% - 20px);
    margin: 0 auto 20px;
}

ul {
    list-style-type: none;
}

span {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #666666a0;
    margin-top: 5px;
	font-style: italic;
}

/* Bouton de soumission */
button[type="submit"] {
    color: rgb(255, 255, 255);
    background: #117dc3;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    padding: 15px;
    width: 100%;
    font-size: 20px;
    margin-top: 30px;
}

.button_green {
    color: rgb(255, 255, 255);
    background: #039a10;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    padding: 15px;
    font-size: 20px;
    margin-top: 30px;
}

.button_red {
    color: rgb(255, 255, 255);
    background: #c31111;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    padding: 15px;
    font-size: 20px;
    margin-top: 30px;
}

button[type="submit"]:disabled {
    background-color: #e1e1e1;
    cursor: not-allowed;
}

/* Checkbox et CGU */
.cgu {
    font-size: 16px;
    margin-bottom: 30px;
}

.cgu summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 10px;
}

.cgu ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

.cgu li {
    margin-bottom: 8px;
    padding-left: 10px;
}

input[type="checkbox"] {
    margin-right: 10px;
    vertical-align: middle;
}

.watermark_media {
    position: absolute;
    bottom: 5px;
    right: 5px;
    max-width: 30%;
    max-height: 30%;
    opacity: 0.7;
}

.ReactModal__Content {
    color: black;
}


/* Retour à la ligne sur mobile */
@media only screen and (max-width: 767px) {
    .file-input-wrapper label {
        white-space: normal;
        word-break: break-all;
    }

    .list_media li {
        flex: 1 1 100%; /* 1 colonne */
        max-width: 100%;
    }

    button[type="submit"] {
        padding: 12px;
        font-size: 18px;
    }
}

/* Responsive pour les tablettes */
@media only screen and (min-width: 768px) and (max-width: 1223px) {
    .list_media li {
        flex: 1 1 calc(50% - 20px); /* 2 colonnes */
        max-width: calc(50% - 20px);
    }
}

/* Responsive pour les écrans larges (PC) */
@media only screen and (min-width: 1224px) {
    .list_media li {
        flex: 1 1 calc(25% - 20px); /* 4 colonnes */
        max-width: calc(25% - 20px);
    }
}
